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
Defines common reactive operations inherited by all kinds of loaders.
public interface ReactiveLoader { default boolean isPostgresSQL(SharedSessionContractImplementor session) { return session.getJdbcServices().getDialect() instanceof PostgreSQL9Dialect; } default CompletionStage<List<Object>> doReactiveQueryAndInitializeNonLazyCollections( final String sql, final SharedSessionContractImplementor session, final QueryParameters queryParameters) { return doReactiveQueryAndInitializeNonLazyCollections(sql, session, queryParameters, false, null); } default CompletionStage<List<Object>> doReactiveQueryAndInitializeNonLazyCollections( final String sql, final SharedSessionContractImplementor session, final QueryParameters queryParameters, final boolean returnProxies, final ResultTransformer forcedResultTransformer) { final PersistenceContext persistenceContext = session.getPersistenceContext(); boolean defaultReadOnlyOrig = persistenceContext.isDefaultReadOnly(); if ( queryParameters.isReadOnlyInitialized() ) { // The read-only/modifiable mode for the query was explicitly set. // Temporarily set the default read-only/modifiable setting to the query's setting. persistenceContext.setDefaultReadOnly( queryParameters.isReadOnly() ); } else { // The read-only/modifiable setting for the query was not initialized. // Use the default read-only/modifiable from the persistence context instead. queryParameters.setReadOnly( persistenceContext.isDefaultReadOnly() ); } persistenceContext.beforeLoad(); final List<AfterLoadAction> afterLoadActions = new ArrayList<>(); return executeReactiveQueryStatement( sql, queryParameters, afterLoadActions, session ) .thenCompose( resultSet -> { discoverTypes( queryParameters, resultSet ); return reactiveProcessResultSet( resultSet, queryParameters, session, returnProxies, forcedResultTransformer, afterLoadActions ); } ) .whenComplete( (list, e) -> persistenceContext.afterLoad() ) .thenCompose( list -> // only initialize non-lazy collections after everything else has been refreshed ((ReactivePersistenceContextAdapter) persistenceContext ).reactiveInitializeNonLazyCollections() .thenApply(v -> list) ) .whenComplete( (list, e) -> persistenceContext.setDefaultReadOnly(defaultReadOnlyOrig) ); } Parameters parameters(); default CompletionStage<ResultSet> executeReactiveQueryStatement( String sqlStatement, QueryParameters queryParameters, List<AfterLoadAction> afterLoadActions, SharedSessionContractImplementor session) { // Processing query filters. queryParameters.processFilters( sqlStatement, session ); // Applying LIMIT clause. final LimitHandler limitHandler = limitHandler( queryParameters.getRowSelection(), session ); String sql = limitHandler.processSql( queryParameters.getFilteredSQL(), queryParameters.getRowSelection() ); // Adding locks and comments. sql = preprocessSQL( sql, queryParameters, session.getFactory(), afterLoadActions ); Object[] parameterArray = toParameterArray( queryParameters, session, limitHandler ); boolean hasFilter = session.getLoadQueryInfluencers().hasEnabledFilters(); if ( hasFilter ) { // If the query is using filters, we know that they have been applied when we // reach this point. Therefore it is safe to process the query. sql = parameters().process( sql ); } else if ( LimitHelper.useLimit( limitHandler, queryParameters.getRowSelection() ) ) { // if the query is not using filters, it should have been preprocessed before // but limit and offset are only applied before execution and therefore we // might have some additional parameters to process. sql = parameters().processLimit( sql, parameterArray, LimitHelper.hasFirstRow( queryParameters.getRowSelection() ) ); } return ((ReactiveConnectionSupplier) session).getReactiveConnection() .selectJdbc( sql, parameterArray ); } default LimitHandler limitHandler(RowSelection selection, SharedSessionContractImplementor session) { LimitHandler limitHandler = session.getJdbcServices().getDialect().getLimitHandler(); return LimitHelper.useLimit( limitHandler, selection ) ? limitHandler : NoopLimitHandler.INSTANCE; } default CompletionStage<List<Object>> reactiveProcessResultSet( ResultSet rs, QueryParameters queryParameters, SharedSessionContractImplementor session, boolean returnProxies, ResultTransformer forcedResultTransformer, List<AfterLoadAction> afterLoadActions) { try { return getReactiveResultSetProcessor() .reactiveExtractResults( rs, session, queryParameters, null, returnProxies, queryParameters.isReadOnly( session ), forcedResultTransformer, afterLoadActions ); } catch (SQLException sqle) { //don't log or convert it - just pass it on to the caller throw new JDBCException( "could not load batch", sqle ); } } ReactiveResultSetProcessor getReactiveResultSetProcessor(); /** * Used by query loaders to add stuff like locking and hints/comments * * @see org.hibernate.loader.Loader#preprocessSQL(String, QueryParameters, SessionFactoryImplementor, List) */ default String preprocessSQL(String sql, QueryParameters queryParameters, SessionFactoryImplementor factory, List<AfterLoadAction> afterLoadActions) { // I believe this method is only needed for query-type loaders return sql; } /** * Used by {@link org.hibernate.reactive.loader.custom.impl.ReactiveCustomLoader} * when there is no result set mapping. */ default void discoverTypes(QueryParameters queryParameters, ResultSet resultSet) {} default Object[] toParameterArray(QueryParameters queryParameters, SharedSessionContractImplementor session, LimitHandler limitHandler) { return QueryParametersAdaptor.arguments( queryParameters, session, limitHandler ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Reactive() {\r\n\t\t// utility class\r\n\t}", "public interface BaseSchedulers {\n\n Scheduler io();\n\n Scheduler computation();\n\n Scheduler ui();\n\n}", "private ExtendedOperations(){}", "public interface Loader {\n\t\tpublic void load();\n\t}", "public interface BaseView {\r\n void showLoading();\r\n void hideLoading();\r\n}", "public interface BaseView {\n /*******内嵌加载*******/\n void showLoading(boolean show);\n void Loading();\n void showErrorTip(String... msg);\n}", "public interface LOAD {\n\n /**\n * Create a new loader with a given set of arguments and kick off the\n * loading process. An instance of the class specified by the\n * {@code java_class} parameter is created. The specified class is expected\n * to implement the {@link\n * io.ciera.runtime.instanceloading.generic.IGenericLoader IGenericLoader}\n * interface. Once created, the {@code load} method of the loader will be\n * invoked, passing {@code args} and an instance of the {@code LOAD} class\n * to link call back in to the instance population.\n *\n * @param java_class the fully qualified class name of the loader class to\n * create\n * @param args the list of arguments to pass to the loader class\n * @throws XtumlException if the class specified by {@code java_class}\n * cannot be loaded or if it does not implement the {@link\n * io.ciera.runtime.instanceloading.generic.IGenericLoader IGenericLoader}\n * interface\n * @see io.ciera.runtime.instanceloading.generic.IGenericLoader IGenericLoader\n */\n public void load(String java_class, String[] args) throws XtumlException;\n\n /**\n * Create an xtUML class instance.\n *\n * @param key_letters the key letters of the xtUML class\n * @return an instance handle to the newly created class instance\n * @throws XtumlException if no class with matching key letters can be found\n * in the component\n */\n\tpublic Object create(String key_letters) throws XtumlException;\n\n /**\n * Relate two xtUML instances together across the given relationship. For\n * non-reflexive relationships, {@code inst1} and {@code inst2} are\n * interchangeable and the value of {@code phrase} has no effect. It may be\n * {@code null}. For reflexive relationships, {@code inst1} and {@code inst2}\n * will \"read across\" according to the value of {@code phrase} with the same\n * semantics as OAL.\n *\n * @param inst1 the first instance to relate\n * @param inst2 the second instance to relate\n * @param rel_num the relationship number to create\n * @param phrase the text phrase used to disambiguate relates of reflexive\n * relationships\n * @throws XtumlException if the relationship specified does not exist\n * between inst1 and inst2 or if the act of relating the instances results in\n * a model integrity violation\n */\n public void relate(Object inst1, Object inst2, int rel_num, String phrase) throws XtumlException;\n\n /**\n *\n * Relate three xtUML instances together across the given associative\n * relationship. For non-reflexive relationships, {@code inst1} and {@code\n * inst2} are interchangeable and the value of {@code phrase} has no effect.\n * It may be {@code null}. For reflexive relationships, {@code inst1} and\n * {@code inst2} will \"read across\" according to the value of {@code phrase}\n * with the same semantics as OAL.\n *\n * @param inst1 the first instance to relate\n * @param inst2 the second instance to relate\n * @param link the associative instance to relate\n * @param rel_num the relationship number to create\n * @param phrase the text phrase used to disambiguate relates of reflexive\n * relationships\n * @throws XtumlException if the relationship specified does not exist\n * between inst1 and inst2 or if the act of relating the instances results in\n * a model integrity violation\n */\n public void relate_using(Object inst1, Object inst2, Object link, int rel_num, String phrase) throws XtumlException;\n\n /**\n * Set the value of an attribute on an instance of an xtUML class.\n *\n * @param instance the model class instance\n * @param attribute_name the name of the attribute to set\n * @param value the value to assign to the specified attribute\n * @throws XtumlException if the specified attribute does not exist on the\n * class or if the type of the passed value is not compatible with the\n * attribute type\n */\n public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;\n\n /**\n * Invoke an xtUML domain function in the same component which originally\n * created the instance of {@code LOAD}.\n *\n * @param function_name The name of the domain function to invoke\n * @param args The argument list in modeled order\n * @return The result of the function invocation or {@code null} for\n * functions with void return type\n * @throws XtumlException if the a domain function could not be found with\n * the given names, or if the number of arguments or types of arguments\n * mismatch\n */\n\tpublic Object call_function(String function_name, Object ... args) throws XtumlException;\n\n\n\n}", "public interface BaseView\n{\n void showLoading();\n void hideLoading();\n}", "public interface IBaseView {\n\n void showLoading();\n\n void hideLoading();\n\n void onError(Throwable e);\n\n void addDisposable(Disposable d);\n\n void showLoadDataing();\n\n void showLoadEmpty();\n\n}", "public interface DownLoadPresenter {\n\n //Load all data paginate.\n void loadAll(int pageNum, LoadView mLoadView);\n\n //Load data by id\n void loadById(int id, LoadView mLoadView);\n\n /**\n * Load data by the given condition,subclass MUST switch type to decide the condition\n *\n * @param condition the action param that will give to server\n * @param type type in Type class\n */\n void loadByCondition(String condition, Type type, LoadView mLoadView);\n\n enum Type {\n TITLE, TAG, TIME, TYPE\n }\n\n}", "public interface ILoadView<T>{\n /**\n * type表示针对不同动作做不同的刷新\n */\n void refreshUI(T m, int type);\n void loadError(int type);\n}", "public interface PaginationLoader\n{\n\n\tpublic abstract boolean isLoading();\n\n\tpublic abstract void loadMore();\n\n\tpublic abstract void onDetach();\n\n\tpublic abstract void onStart();\n\n\tpublic abstract void onStop();\n\n\tpublic abstract void reload();\n\n\tpublic abstract void setFilters(Set set);\n\n\tpublic abstract void setListener(PaginationLoaderListener paginationloaderlistener);\n}", "public interface BaseView {\n\n //显示正在加载\n void showLoading();\n\n // 隐藏正在加载\n void hideLoading();\n}", "@Component(modules = {LocalModule.class, NetworkModule.class}, dependencies = ApplicationComponent.class)\npublic interface BaseComponent {\n\n OKHttp getOkHTTP();\n\n Retrofit getRetrofit();\n\n LocalDataCache getLocalDataCache();\n}", "static void init() {\n\t\tContainerProviderRegistry.INSTANCE.registerFactory(ROCKET_CRATE_CONTAINER,\n\t\t\t\t(syncId, id, player, buf) -> new RocketCrateScreenHandler(syncId, buf.readInt(), player.inventory));\n\t\tContainerProviderRegistry.INSTANCE.registerFactory(LAUNCH_PAD_CONTAINER,\n\t\t\t\t(syncId, id, player, buf) -> new LaunchPadScreenHandler(syncId, buf.readBlockPos(), player.inventory));\n\t\tContainerProviderRegistry.INSTANCE.registerFactory(CONTRACT_MACHINE,\n\t\t\t\t(syncId, id, player, buf) -> new ContractMachineScreenHandler(syncId, buf.readBlockPos(), player.inventory));\n\t}", "public interface App {\n RxErrorHandler getRxErrorHandler();\n\n ImageLoader getImageLoader();\n}", "public interface CommandLoader {\n\n\t/**\n\t * Gets list of commands in bundle\n\t * @return\n\t */\n\tList<CommandInfo> list();\n\t\n\t/**\n\t * Executes command\n\t * @param cmdName command name\n\t * @return\n\t */\n\tObject execute(String cmdName, String param);\n}", "public interface ImageLoaderInter {\n /**\n * 加载普通的图片\n *\n * @param activity\n * @param imageUrl\n * @param imageView\n */\n void loadCommonImgByUrl(Activity activity, String imageUrl, ImageView imageView);\n\n /**\n * 加载普通的图片\n *\n * @param fragment\n * @param imageUrl\n * @param imageView\n */\n void loadCommonImgByUrl(Fragment fragment, String imageUrl, ImageView imageView);\n\n /**\n * 加载圆形或者是圆角图片\n *\n * @param activity\n * @param imageUrl\n * @param imageView\n */\n void loadCircleOrReboundImgByUrl(Activity activity, String imageUrl, ImageView imageView);\n\n /**\n * 加载圆形或者是圆角图片\n *\n * @param fragment\n * @param imageUrl\n * @param imageView\n */\n void loadCircleOrReboundImgByUrl(Fragment fragment, String imageUrl, ImageView imageView);\n\n void resumeRequests(Activity activity);\n\n void resumeRequests(Fragment fragment);\n\n void pauseRequests(Activity activity);\n\n void pauseRequests(Fragment fragment);\n}", "private void registerGlobalEvents() {\n\t\tsubmit(new CycleEvent());\n\t\tsubmit(new CleanupEvent());\n\t\tsubmit(new FloorItemEvent());\n\t}", "public interface BaseView {\n void onNoNetworkAvailable();\n void onNetworkAvailable();\n void onShowProgress();\n void onHideProgress();\n\n//s\n\n}", "private void initClassloaders() {\n\t\tthis.commonloader = createClassloader(\"common\",null);\n\t\tthis.sharedloader = createClassloader(\"shared\", commonloader);\n\t\tthis.catalinaloader = createClassloader(\"server\", commonloader);\n\t}", "protected abstract void loader() throws IOException;", "public interface ReaderExtension {\n\n /**\n * Returns this extension's priority.\n * Note: Extension will be executed first with lowest priority.\n *\n * @return this extension's priority\n */\n int getPriority();\n\n /**\n * Checks that a resource should be scanned.\n *\n * @param context is the resource context\n * @return true if the resource needs to be scanned, otherwise false\n */\n boolean isReadable(ReaderContext context);\n\n /**\n * Reads the consumes from the method's annotations and applies these to the operation.\n *\n * @param context is the resource context\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void applyConsumes(ReaderContext context, Operation operation, Method method);\n\n /**\n * Reads the produces from the method's annotations and applies these to the operation.\n *\n * @param context is the resource context\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void applyProduces(ReaderContext context, Operation operation, Method method);\n\n /**\n * Returns http method.\n *\n * @param context is the resource context\n * @param method is the method for reading annotations\n * @return http method\n */\n String getHttpMethod(ReaderContext context, Method method);\n\n /**\n * Returns operation's path.\n *\n * @param context is the resource context\n * @param method is the method for reading annotations\n * @return operation's path\n */\n String getPath(ReaderContext context, Method method);\n\n /**\n * Reads the operation id from the method's annotations and applies it to the operation.\n *\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void applyOperationId(Operation operation, Method method);\n\n /**\n * Reads the summary from the method's annotations and applies it to the operation.\n *\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void applySummary(Operation operation, Method method);\n\n /**\n * Reads the description from the method's annotations and applies it to the operation.\n *\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void applyDescription(Operation operation, Method method);\n\n /**\n * Reads the schemes from the method's annotations and applies these to the operation.\n *\n * @param context is the resource context\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void applySchemes(ReaderContext context, Operation operation, Method method);\n\n /**\n * Sets the deprecated flag to the operation.\n *\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void setDeprecated(Operation operation, Method method);\n\n /**\n * Reads the security requirement from the method's annotations and applies these to the operation.\n *\n * @param context is the resource context\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void applySecurityRequirements(ReaderContext context, Operation operation, Method method);\n\n /**\n * Reads the tags from the method's annotations and applies these to the operation.\n *\n * @param context is the resource context\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void applyTags(ReaderContext context, Operation operation, Method method);\n\n /**\n * Reads the responses from the method's annotations and applies these to the operation.\n *\n * @param context is the resource context\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void applyResponses(ReaderContext context, Operation operation, Method method);\n\n /**\n * Reads the parameters from the method's annotations and applies these to the operation.\n *\n * @param context is the resource context\n * @param operation is the container for the operation data\n * @param type is the type of parameter\n * @param annotations are the method's annotations\n */\n void applyParameters(ReaderContext context, Operation operation, Type type, Annotation[] annotations);\n\n /**\n * Reads the implicit parameters from the method's annotations and applies these to the operation.\n *\n * @param context is the resource context\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void applyImplicitParameters(ReaderContext context, Operation operation, Method method);\n\n /**\n * Reads the extensions from the method's annotations and applies these to the operation.\n *\n * @param context is the resource context\n * @param operation is the container for the operation data\n * @param method is the method for reading annotations\n */\n void applyExtensions(ReaderContext context, Operation operation, Method method);\n\n void applyParameters(ReaderContext context, Operation operation, Method method,\n Method interfaceMethod);\n\n}", "public interface ILoaderView extends IView {\n\n void showLoading(String loadingMessage);\n\n void hideLoading();\n\n void showError(String title, String message);\n\n}", "@Override\r\n\tprotected void intializeSpecific() {\n\r\n\t}", "boolean supportsReloading();", "private void initializeSelectors() {\n\t\tpathSelector = new PathEffectSelector();\n\t\tscaleSelector = new ScaleEffectSelector();\n\t\trotationSelector = new RotationEffectSelector();\n\t\timageSelector = new ImageAnimationEffectSelector();\n\t}", "public static void register() {\n\t\tInteractionEvent.RIGHT_CLICK_BLOCK.register(OriginEventHandler::preventBlockUse);\n\t\t//Replaces ItemStackMixin\n\t\tInteractionEvent.RIGHT_CLICK_ITEM.register(OriginEventHandler::preventItemUse);\n\t\t//Replaces LoginMixin#openOriginsGui\n\t\tPlayerEvent.PLAYER_JOIN.register(OriginEventHandler::playerJoin);\n\t\t//Replaces LoginMixin#invokePowerRespawnCallback\n\t\tPlayerEvent.PLAYER_RESPAWN.register(OriginEventHandler::respawn);\n\t}", "public interface IBaseView {\n\n void showLoading();\n\n void hideLoading();\n\n\n void showData();\n\n void showError(String error);\n\n void showEmpty();\n\n}", "private void manageLoaders() {\n\n // note: null is used in place of a Bundle object since all additional\n // parameters for Loader are global variables\n\n // get LoaderManager and initialise the loader\n if (getSupportLoaderManager().getLoader(LOADER_ID_01) == null) {\n getSupportLoaderManager().initLoader(LOADER_ID_01, null, this);\n } else {\n getSupportLoaderManager().restartLoader(LOADER_ID_01, null, this);\n }\n }", "public ContainerLoader getLoader();", "@Override\r\n\tprotected void initLoad() {\n\r\n\t}", "private void loadRegistredCommands() {\n ServiceLoader<Command> loader = ServiceLoader.load(Command.class);\n for (Command command : loader) {\n addCommand(command);\n }\n }", "public interface ILoadingBuildingAction<T>\n{\n public T load();\n\n public void build(T data);\n}", "public abstract void init(ResourceLoader loader);", "interface CommonCssResource extends CssResource {\n\n /**\n * Generic container .\n * @return the css class for a generic container\n */\n String genericContainer();\n\n /**\n * @return\n */\n String lassoPanel();\n\n /**\n * @return\n */\n String lassoElement();\n\n /**\n * Generic container padding.\n * @return\n */\n int genericContainerPaddingPx();\n}", "@Override\n\tpublic void initUtils() {\n\n\t}", "@Override\n\tpublic void loadEvents() {\n\t\t\n\t}", "public interface MvpBaseLoaderView<T> extends MvpBaseView {\n void getData();\n\n void loadSuccess(List<T> datas);\n\n void loadError();\n}", "@Override\n public void addLoaders(WorldLoader wl, WorldInfo info) {\n }", "public interface CommonContainerInteractor {\n\n List<BaseEntity> getCommonCategoryList(Context context);\n}", "public void dispatch();", "@Override public void init() {\n /// Important Step 2: Get access to a list of Expansion Hub Modules to enable changing caching methods.\n all_hubs_ = hardwareMap.getAll(LynxModule.class);\n /// Important Step 3: Option B. Set all Expansion hubs to use the MANUAL Bulk Caching mode\n for (LynxModule module : all_hubs_ ) {\n switch (motor_read_mode_) {\n case BULK_READ_AUTO:\n module.setBulkCachingMode(LynxModule.BulkCachingMode.AUTO);\n break;\n case BULK_READ_MANUAL:\n module.setBulkCachingMode(LynxModule.BulkCachingMode.MANUAL);\n break;\n case BULK_READ_OFF:\n default:\n module.setBulkCachingMode(LynxModule.BulkCachingMode.OFF);\n break;\n }\n }\n\n /// Use the hardwareMap to get the dc motors and servos by name.\n\n motorLF_ = hardwareMap.get(DcMotorEx.class, lfName);\n motorLB_ = hardwareMap.get(DcMotorEx.class, lbName);\n motorRF_ = hardwareMap.get(DcMotorEx.class, rfName);\n motorRB_ = hardwareMap.get(DcMotorEx.class, rbName);\n motorLF_.setDirection(DcMotor.Direction.REVERSE);\n motorLB_.setDirection(DcMotor.Direction.REVERSE);\n\n // map odometry encoders\n verticalLeftEncoder = hardwareMap.get(DcMotorEx.class, verticalLeftEncoderName);\n verticalRightEncoder = hardwareMap.get(DcMotorEx.class, verticalRightEncoderName);\n horizontalEncoder = hardwareMap.get(DcMotorEx.class, horizontalEncoderName);\n\n if( USE_ENCODER_FOR_TELEOP ) {\n motorLF_.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorLF_.setMode ( DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorLB_.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorLB_.setMode ( DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorRF_.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorRF_.setMode ( DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorRB_.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorRB_.setMode ( DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n verticalLeftEncoder.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n verticalRightEncoder.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n horizontalEncoder.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n motorLF_.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n motorLB_.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n motorRF_.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n motorRB_.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n }\n\n if( USE_INTAKE ) {\n motor_left_intake_ = hardwareMap.get(DcMotorEx.class, \"motorLeftIntake\");\n motor_right_intake_ = hardwareMap.get(DcMotorEx.class, \"motorRightIntake\");\n motor_right_intake_.setDirection(DcMotor.Direction.REVERSE) ;\n\n motor_left_intake_.setMode( DcMotor.RunMode.STOP_AND_RESET_ENCODER );\n motor_left_intake_.setMode( DcMotor.RunMode.RUN_USING_ENCODER );\n motor_right_intake_.setMode( DcMotor.RunMode.STOP_AND_RESET_ENCODER );\n motor_right_intake_.setMode( DcMotor.RunMode.RUN_USING_ENCODER );\n\n servo_left_intake_ = hardwareMap.servo.get(\"servoLeftIntake\");\n servo_left_intake_pos_ = CR_SERVO_STOP ;\n servo_left_intake_.setPosition(CR_SERVO_STOP);\n servo_right_intake_ = hardwareMap.servo.get(\"servoRightIntake\");\n servo_right_intake_pos_ = CR_SERVO_STOP ;\n servo_right_intake_.setPosition(CR_SERVO_STOP);\n }\n if( USE_LIFT ) {\n motor_lift_ = hardwareMap.get(DcMotorEx.class, \"motorLift\");\n motor_lift_.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n motor_lift_.setMode( DcMotor.RunMode.STOP_AND_RESET_ENCODER );\n power_lift_ = 0.0;\n if( USE_RUN_TO_POS_FOR_LIFT ) {\n motor_lift_.setTargetPosition(0);\n motor_lift_.setMode( DcMotor.RunMode.RUN_TO_POSITION ); // must call setTargetPosition() before switching to RUN_TO_POSISTION\n } else {\n motor_lift_.setMode( DcMotor.RunMode.RUN_USING_ENCODER);\n }\n last_stone_lift_enc_ = -1;\n }\n\n if( USE_STONE_PUSHER ) {\n servo_pusher_ = hardwareMap.servo.get(\"servoPusher\");\n servo_pusher_.setPosition(PUSHER_INIT);\n servo_pusher_pos_ = PUSHER_INIT;\n }\n if( USE_STONE_GATER ) {\n servo_gater_ = hardwareMap.servo.get(\"servoGater\");\n servo_gater_.setPosition(GATER_INIT);\n servo_gater_pos_ = GATER_INIT;\n }\n\n if( USE_ARM ) {\n servo_arm_ = hardwareMap.servo.get(\"servoArm\");\n servo_arm_.setPosition(ARM_INIT);\n servo_arm_pos_ = ARM_INIT;\n servo_claw_ = hardwareMap.servo.get(\"servoClaw\");\n servo_claw_.setPosition(CLAW_OPEN);\n servo_claw_pos_ = CLAW_OPEN;\n }\n\n if( USE_HOOKS ) {\n servo_left_hook_ = hardwareMap.servo.get(\"servoLeftHook\");\n servo_left_hook_.setPosition(LEFT_HOOK_UP);\n servo_left_hook_pos_ = LEFT_HOOK_UP;\n servo_right_hook_ = hardwareMap.servo.get(\"servoRightHook\");\n servo_right_hook_.setPosition(RIGHT_HOOK_UP);\n servo_right_hook_pos_ = RIGHT_HOOK_UP;\n }\n\n if( USE_PARKING_STICKS ) {\n servo_left_park_ = hardwareMap.servo.get(\"servoLeftPark\");\n servo_left_park_.setPosition(LEFT_PARK_IN);\n servo_left_park_pos_ = LEFT_PARK_IN;\n servo_right_park_ = hardwareMap.servo.get(\"servoRightPark\");\n servo_right_park_.setPosition(RIGHT_PARK_IN);\n servo_right_park_pos_ = RIGHT_PARK_IN;\n }\n\n if( USE_RGB_FOR_STONE ) {\n rev_rgb_range_ = hardwareMap.get(LynxI2cColorRangeSensor.class, \"stoneColor\");\n //rev_rgb_range_ = hardwareMap.get(LynxI2cColorRangeSensor.class, \"stoneColorV3\"); // different interface for V3, can't define it as LynxI2cColorRangeSensor anymore, 2020/02/29\n if( rev_rgb_range_!=null ) {\n if( AUTO_CALIBRATE_RGB ) {\n int alpha = rev_rgb_range_.alpha();\n //double dist = rev_rgb_range_.getDistance(DistanceUnit.CM);\n double dist = rev_rgb_range_.getDistance(DistanceUnit.METER);\n if( alpha>=MIN_RGB_ALPHA && alpha<100000 ) {\n rev_rgb_alpha_init_ = alpha;\n }\n if( AUTO_CALIBRATE_RGB_RANGE && !Double.isNaN(dist) ) {\n if( dist>MIN_RGB_RANGE_DIST && dist<MAX_RGB_RANGE_DIST ) {\n rev_rgb_dist_init_ = dist;\n }\n }\n }\n }\n }\n if( USE_RGBV3_FOR_STONE ) {\n //rgb_color_stone_ = hardwareMap.get(ColorSensor.class, \"stoneColorV3\");\n rgb_range_stone_ = hardwareMap.get(DistanceSensor.class, \"stoneColorV3\");\n if( AUTO_CALIBRATE_RANGE && rgb_range_stone_!=null ) {\n while(true) { // wait till range sensor gets a valid reading\n double dis = getRangeDist(RangeName.RGB_RANGE_STONE);\n if( dis>0.0 && dis<0.2 ) {\n rgb_range_stone_dist_init_ = dis;\n break;\n }\n }\n }\n }\n\n if( USE_RIGHT_RANGE ) {\n range_right_ = (Rev2mDistanceSensor) (hardwareMap.get(DistanceSensor.class, \"rightRange\"));\n if( AUTO_CALIBRATE_RANGE && range_right_!=null ) {\n while(true) { // wait till range sensor gets a valid reading\n double dis = getRangeDist(RangeName.RANGE_RIGHT);\n if( dis>0.01 && dis<2.0 ) {\n range_right_dist_init_ = dis;\n break;\n }\n }\n }\n }\n if( USE_LEFT_RANGE ) {\n range_left_ = (Rev2mDistanceSensor) (hardwareMap.get(DistanceSensor.class, \"leftRange\"));\n if( AUTO_CALIBRATE_RANGE && range_left_!=null ) {\n while(true) { // wait till range sensor gets a valid reading\n double dis = getRangeDist(RangeName.RANGE_LEFT);\n if( dis>0.01 && dis<2.0 ) {\n range_left_dist_init_ = dis;\n break;\n }\n }\n }\n }\n\n if( USE_RANGE_FOR_STONE) {\n range_stone_ = (Rev2mDistanceSensor) (hardwareMap.get(DistanceSensor.class, \"stoneRange\"));\n if( AUTO_CALIBRATE_RANGE && range_stone_!=null ) {\n while(true) { // wait till range sensor gets a valid reading\n double dis = getRangeDist(RangeName.RANGE_STONE);\n if( dis>0.01 && dis<0.5 ) {\n range_stone_dist_init_ = dis;\n break;\n }\n }\n }\n }\n\n if( USE_INTAKE_MAG_SWITCH ) {\n intake_mag_switch_ = hardwareMap.get(DigitalChannel.class, \"intake_mag_switch\");\n intake_mag_switch_.setMode(DigitalChannelController.Mode.INPUT);\n intake_mag_prev_state_ = intake_mag_switch_.getState();\n intake_mag_change_time_ = 0.0;\n }\n if( USE_STONE_LIMIT_SWITCH ) {\n stone_limit_switch_ = hardwareMap.get(DigitalChannel.class, \"stone_limit_switch\");\n stone_limit_switch_.setMode(DigitalChannelController.Mode.INPUT);\n stone_limit_switch_prev_state_ = stone_limit_switch_.getState();\n }\n\n\n /////***************************** JOY STICKS *************************************/////\n\n /// Set joystick deadzone, any value below this threshold value will be considered as 0; moved from init() to init_loop() to aovid crash\n if(gamepad1!=null) gamepad1.setJoystickDeadzone( JOYSTICK_DEAD_ZONE );\n if(gamepad2!=null) gamepad2.setJoystickDeadzone( JOYSTICK_DEAD_ZONE );\n\n resetControlVariables();\n }", "public LoadBasedDivision() {\n }", "protected void additionalProcessing() {\n\t}", "public interface BaseController {\n\n\t/**\n\t * Root Endpoint\n\t *\n\t * @return the root\n\t */\n\tResponseEntity<String> getRoot();\n\n\t/**\n\t * This method exposes API to show the main application info\n\t *\n\t * @return the main application info\n\t */\n\tResponseEntity<String> getAbout();\n\t#if (${withCache} == 'Y')\n\t/**\n\t * Cache Endpoint\n\t *\n\t * @return the cache\n\t */\n\tResponseEntity<String> cleanCache();\n\t#end\n\n}", "public interface ImageLoaderSources<E> {\n /**\n * Returns an instance of each type of ImageLoader that can\n * load an image for the generic type.\n *\n * @return An instance of each type of ImageLoader that can\n * load an image for the generic type.\n */\n public ArrayList<ImageLoader<E>> getImageLoaders();\n}", "private ProcessorUtils() { }", "public interface FileConstract {\n interface FileView extends BaseView<FilePresenter> {\n void refreshUI(List<FileBean> data);\n void showToast(String msg);\n }\n\n interface FilePresenter extends BasePresenter {\n void initData();\n\n void uploadFile(String path);\n }\n\n}", "private void configurePhotoLoaders() {\n String themePhotosUrl = null;\n String myPhotosUrl = null;\n String friendPhotosUrl = null;\n\n if (mTheme != null) {\n themePhotosUrl = String.format(Endpoints.THEME_PHOTO_LIST, mTheme.id);\n\n if (!isAuthenticating() && mPhotoUser != null) {\n myPhotosUrl = String.format(Endpoints.USER_THEME_PHOTO_LIST, Endpoints.ME_ID,\n mTheme.id);\n\n friendPhotosUrl = String.format(Endpoints.FRIENDS_PHOTO_LIST, Endpoints.ME_ID,\n mTheme.id);\n }\n }\n\n mThemePhotosLoader = restartLoader(mLoaderMgr, THEME_PHOTOS_ID, mThemePhotosLoader,\n new PhotoCallbacks(THEME_PHOTOS_ID, mThemePhotos), themePhotosUrl);\n mMyPhotosLoader = restartLoader(mLoaderMgr, MY_PHOTOS_ID, mMyPhotosLoader,\n new PhotoCallbacks(MY_PHOTOS_ID, mMyPhotos), myPhotosUrl);\n mFriendPhotosLoader = restartLoader(mLoaderMgr, FRIEND_PHOTOS_ID, mFriendPhotosLoader,\n new PhotoCallbacks(FRIEND_PHOTOS_ID, mFriendPhotos), friendPhotosUrl);\n }", "public interface EagerReactive {\n\t/**\n\t * Add a value to an simple-react Async.Adapter (Queue / Topic /Signal) if present\n\t * Returns the Adapter wrapped in an Optional\n\t * \n\t * @see Pipes#register(Object, com.aol.simple.react.async.Adapter)\n\t * \n\t * @param key : identifier for registered Queue\n\t * @param value : value to add to Queue\n\t */\n\tdefault <K,V> Optional<Adapter<V>> enqueue(K key,V value){\n\t\tOptional<Adapter<V>> queue = Pipes.get(key);\n\t\tqueue.map(adapter -> adapter.offer(value));\n\t\n\t\treturn queue;\n\t\t\n\t\t\n\t}\n\t\n\t\n\t/**\n\t * \n\t * Generate a sequentially executing single-threaded a EagerFutureStream that executes all tasks directly without involving\n\t * a task executor between each stage (unless async operator invoked). A preconfigured EagerReact builder that will be supplied as\n\t * input to the function supplied. The user Function should create a EagerFutureStream with any\n\t * business logic stages predefined. This method will handle elastic scaling and pooling of Executor\n\t * services. User code should call a terminal op on the returned EagerFutureStream\n\t * \n\t * \n\t * @param react Function that generates a EagerFutureStream from a EagerReact builder\n\t * @return Generated EagerFutureStream\n\t */\n\tdefault <T> EagerFutureStream<T> sync(Function<EagerReact,EagerFutureStream<T>> react){\n\t\t EagerReact r =SequentialElasticPools.eagerReact.nextReactor().withAsync(false);\n\t\t return react.apply( r)\n\t\t\t\t \t.onFail(e->{ SequentialElasticPools.eagerReact.populate(r); throw e;})\n\t\t\t\t \t.peek(i->SequentialElasticPools.eagerReact.populate(r));\n\t\t \t\t\t\t \t\n\t}\n\t\n\t/**\n\t * Switch EagerFutureStream into execution mode suitable for IO (reuse ioReactors task executor)\n\t * \n\t * @param stream to convert to IO mode\n\t * @return EagerFutureStream in IO mode\n\t */\n\tdefault <T> EagerFutureStream<T> switchToIO(EagerFutureStream<T> stream){\n\t\tEagerReact react = EagerReactors.ioReact;\n\t\treturn stream.withTaskExecutor(react.getExecutor()).withRetrier(react.getRetrier());\n\t}\n\t/**\n\t * Switch EagerFutureStream into execution mode suitable for CPU bound execution (reuse cpuReactors task executor)\n\t * \n\t * @param stream to convert to CPU bound mode\n\t * @return EagerFutureStream in CPU bound mode\n\t */\n\tdefault <T> EagerFutureStream<T> switchToCPU(EagerFutureStream<T> stream){\n\t\tEagerReact react = EagerReactors.cpuReact;\n\t\treturn stream.withTaskExecutor(react.getExecutor()).withRetrier(react.getRetrier());\n\t}\n\t/**\n\t * @return Stream builder for IO Bound Streams\n\t */\n\tdefault OptimizedEagerReact ioStream(){\n\t\treturn new OptimizedEagerReact(EagerReactors.ioReact);\n\t}\n\t/**\n\t * @return Stream builder for CPU Bound Streams\n\t */\n\tdefault OptimizedEagerReact cpuStream(){\n\t\treturn new OptimizedEagerReact(EagerReactors.cpuReact);\n\t}\n\t/**\n\t * Generate a multi-threaded EagerFutureStream that executes all tasks via \n\t * a task executor between each stage (unless sync operator invoked). \n\t * A preconfigured EagerReact builder that will be supplied as\n\t * input to the function supplied. The user Function should create a EagerFutureStream with any\n\t * business logic stages predefined. This method will handle elastic scaling and pooling of Executor\n\t * services. User code should call a terminal op on the returned EagerFutureStream\n\t * \n\t * \n\t * @param react Function that generates a EagerFutureStream from a EagerReact builder\n\t * @return Generated EagerFutureStream\n\t */\n\tdefault <T> EagerFutureStream<T> async(Function<EagerReact,EagerFutureStream<T>> react){\n\t\t EagerReact r =ParallelElasticPools.eagerReact.nextReactor().withAsync(true);\n\t\treturn react.apply( r)\n\t\t\t\t\t.onFail(e->{ SequentialElasticPools.eagerReact.populate(r); throw e;})\n\t\t\t\t\t.peek(i->SequentialElasticPools.eagerReact.populate(r));\n\t\t \t\n\t}\n\t\n\t\n\t\n}", "LoadGenerator createLoadGenerator();", "LoadGenerator createLoadGenerator();", "public interface Common {\n}", "default void dispatchConsumers() {\n\t\tthis.getItemListeners().forEach(Runnable::run);\n\t}", "public interface CommonLayer extends Layer {\n\n List<PlainFile> getCommonSources(String packageName);\n\n}", "public interface OiServerSelector\n{\n Activator getActivator( Task task, Application application, ActivateOptions options );\n Committer getCommitter( Task task, List<? extends View> viewList, CommitOptions options );\n}", "public interface EventInteractor {\n\n void getEvents(String sellerId,\n Date after,\n Date before,\n final PaginatedResourceRequestCallback<PR_AEvent> callback);\n\n void getCustomerEvents(String customerId,\n final PaginatedResourceRequestCallback<PR_AEvent> callback);\n\n}", "public interface MouseListenerMixin {\r\n\r\n\t/**\r\n\t * This method is defined in {@link Control}.\r\n\t */\r\n\tvoid addMouseListener(MouseListener listener);\r\n\r\n\t/**\r\n\t * The given consumer will receive a {@link MouseEvent} when a double click\r\n\t * occurs.\r\n\t */\r\n\tdefault void addMouseDoubleClickedListener(Consumer<MouseEvent> consumer) {\r\n\t\taddMouseListener(new MouseListenerAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\tconsumer.accept(e);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * The given consumer will receive a {@link MouseEvent} when a mouse button\r\n\t * is pressed.\r\n\t */\r\n\tdefault void addMouseDownListener(Consumer<MouseEvent> consumer) {\r\n\t\taddMouseListener(new MouseListenerAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDown(MouseEvent e) {\r\n\t\t\t\tconsumer.accept(e);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * The given consumer will receive a {@link MouseEvent} when a mouse button\r\n\t * is released.\r\n\t */\r\n\tdefault void addMouseUpListener(Consumer<MouseEvent> consumer) {\r\n\t\taddMouseListener(new MouseListenerAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tconsumer.accept(e);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n}", "public interface ImageLoader {\n\n}", "public interface IBaseView {\n void toastAlert(String info);\n\n void toastSucc(String info);\n\n void toastFailed(String info);\n\n void toastNetError();\n\n void showProgress();\n\n void removeProgress();\n\n void tokenTimeout();\n\n <T> ObservableTransformer<T, T> initNetLifecycler();\n}", "public interface CommonEventListener extends EventListener {\n\n\n default boolean filterProject(byte[] data, int project, int clazz, int cmd) {\n\n return data[7] == project && data[8] == clazz && data[9] == cmd;\n }\n}", "public interface IInteractorOperations {\n\n String concatenarNombre(String nombres, String apellidos);\n int calcularEdad(String fechaNacimiento);\n}", "public interface RawController {\n\n // NEW MESSAGE\n //\n // Add a new message to the model with a specific id. If the id is already\n // in use, the call will fail and null will be returned.\n Message newMessage(Uuid id, Uuid author, Uuid conversation, String body, Time creationTime);\n\n // NEW USER\n //\n // Add a new user to the server with a given username and password. If the input is\n // invalid or the username is already taken, the call will fail and an error code\n // will be returned.\n int newUser(String username, String password, Time creationTime);\n\n // LOGIN\n //\n // Login with a given id, username, and password. If the id is already in use, the\n // call will fail and null will be returned. If the username and password are invalid,\n // the call will fail and null will be returned.\n User login(Uuid id, String username, String password, Time creationTime);\n\n // NEW CONVERSATION\n //\n // Add a new conversation to the model with a specific if. If the id is\n // already in use, the call will fail and null will be returned.\n Conversation newConversation(Uuid id, String title, Uuid owner, Time creationTime);\n\n}", "private void initSharedPre() {\n\t}", "private void setupMachinery() {\n\t\tthis.renderer = new IntermediateRenderer();\n\t\tthis.controllerModel = new ControllerModel();\n\t\t\n\t\t// connect the Renderer to the Hub\n\t\tthis.hub = new ControllerHub(this.controllerModel, this.renderer, this);\n\t\tthis.hub.addAtomContainer(ac);\n\t\t\n\t\t// connect mouse events from Panel to the Hub\n\t\tthis.mouseEventRelay = new SwingMouseEventRelay(this.hub);\n\t\tthis.addMouseListener(mouseEventRelay);\n\t}", "public interface RpcFilter {\n\n boolean needToLoad();\n\n void before(FilterContext context);\n\n void after(Object obj, FilterContext context);\n}", "public interface StatisticView extends LoadingView{\n void initActionBar();\n void initWidget();\n}", "@Override\n public void execute(Map<String, FileInfo> fileInfos) throws Exception {\n FileInfo fileInfo = fileInfos.computeIfAbsent(COMMON_FILE, FileInfo::new);\n fileInfo.setImports(ImmutableSet.of());\n fileInfo.getStructInfos().put(EMPTY.getName(), EMPTY);\n EMPTY.setFileInfo(fileInfo);\n // create loaders\n enumLoader = new EnumLoader(name -> fileInfos.computeIfAbsent(name, FileInfo::new));\n structLoader = new StructLoader(enumLoader);\n rpcLoader = new ServiceLoader(structLoader);\n // load classes\n for (Class<?> clz : ScanUtils.scanClass(packageName, this::filterClass)) {\n if (clz.isInterface()) {\n rpcLoader.execute(clz);\n interfaceCount++;\n } else if (clz.getInterfaces().length > 1) {\n structLoader.execute(clz);\n classCount++;\n } else if (clz.getInterfaces().length > 0) {\n enumLoader.execute(clz);\n enumCount++;\n }\n }\n }", "public interface ILoadState {\n\n /**\n *\n */\n void onLoadComplete(boolean hasMore);\n\n /**\n * 请求失败\n */\n void onLoadFailed();\n\n /**\n * @param hasMore 是否还有数据\n */\n void onLoadMoreComplete(boolean hasMore);\n\n /**\n * 加载更多失败\n */\n void onLoadMoreFailed();\n\n void notifyResult(List resultModels, boolean loadMore);\n}", "public interface MainBaseView extends BaseView {\n\n void onGetFirstDataSuccess(FirstDataResponse response);\n\n void onSelectNationSuccess(ProvinceResponse response);\n\n void onCheckUserStatusSuccess(User user);\n}", "public interface MainView {\n void showLoading();\n void hideLoading();\n void showError();\n}", "public interface HandlesAllDataEvents extends HandlesDeleteEvents, HandlesUpdateEvents,\r\n RowInsertEvent.Handler, DataChangeEvent.Handler {\r\n}", "public interface Loader<Params, Result>\n {\n Result result(Context context, MicroFragmentEnvironment<Params> env) throws Exception;\n }", "public interface RxViewDispatch {\n\n /**\n * All the stores will call this event after they process an action and the store change it.\n * The view can react and request the needed data\n */\n void onRxStoreChanged(@NonNull RxStoreChange change);\n\n\n}", "public interface ResourceEntityMapperExt {\n\n List<ResourceEntity> getAllResource();\n\n Set<ResourceEntity> selectRoleResourcesByRoleId(@Param(\"roleId\") String roleId);\n\n void disable(@Param(\"resourceId\") String resourceId);\n\n void enable(@Param(\"resourceId\") String resourceId);\n\n List<Map> getParentMenusByUserId(@Param(\"userId\") String userId);\n\n List<Map> getChildrenMenusByUserId(@Param(\"userId\") String userId);\n\n List<Map> getAllParentMenus();\n\n List<Map> getAllChildrenMenus();\n\n List<Map> queryResourceList();\n\n void deleteByResourceId(@Param(\"resourceId\")String resourceId);\n\n List<String> resourcesByRoleId(@Param(\"roleId\") String roleId);\n\n List<Map> getAllChildrenMenusBySourceId(@Param(\"sourceId\")String sourceId);\n}", "public static void initLoaderType() {\r\n boolean autoaddBoolean = GrouperLoaderConfig.retrieveConfig().propertyValueBoolean(\"loader.autoadd.typesAttributes\", true);\r\n\r\n if (!autoaddBoolean) {\r\n return;\r\n }\r\n\r\n GrouperSession grouperSession = null;\r\n\r\n try {\r\n\r\n grouperSession = GrouperSession.startRootSession(false);\r\n\r\n GrouperSession.callbackGrouperSession(grouperSession, new GrouperSessionHandler() {\r\n\r\n public Object callback(GrouperSession grouperSession)\r\n throws GrouperSessionException {\r\n try {\r\n \r\n GroupType loaderType = GroupType.createType(grouperSession, \"grouperLoader\", false);\r\n\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderType\", false);\r\n \r\n loaderType.addAttribute(grouperSession,\"grouperLoaderDbName\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderScheduleType\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderQuery\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderQuartzCron\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderIntervalSeconds\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderPriority\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderAndGroups\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderGroupTypes\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderGroupsLike\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderGroupQuery\", false);\r\n\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderDisplayNameSyncBaseFolderName\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderDisplayNameSyncLevels\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderDisplayNameSyncType\", false);\r\n\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderFailsafeUse\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMaxGroupPercentRemove\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMaxOverallPercentGroupsRemove\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMaxOverallPercentMembershipsRemove\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMinGroupSize\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMinManagedGroups\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderFailsafeSendEmail\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMinGroupNumberOfMembers\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMinOverallNumberOfMembers\", false);\r\n \r\n } catch (Exception e) {\r\n throw new RuntimeException(e.getMessage(), e);\r\n } finally {\r\n GrouperSession.stopQuietly(grouperSession);\r\n }\r\n return null;\r\n }\r\n\r\n });\r\n\r\n //register the hook if not already\r\n GroupTypeTupleIncludeExcludeHook.registerHookIfNecessary(true);\r\n \r\n } catch (Exception e) {\r\n throw new RuntimeException(\"Problem adding loader type/attributes\", e);\r\n }\r\n\r\n }", "public interface MultimediaControl {\n\n public void play();//Method adding play functionality\n\n public void stop();//Method adding stop functionality\n\n public void previous();//Method adding previous functionality\n\n public void next();//Method adding next functionality\n}", "public interface Startup<T> extends Dispatcher {\n /**\n * 给程序写任务逻辑使用\n *\n * @param context\n * @return\n */\n @Nullable\n T create(Context context);\n\n\n /**\n * 本任务以来哪些任务\n *\n * @return\n */\n List<Class<? extends Startup<?>>> dependencies();\n\n /**\n * 入度数\n *\n * @return\n */\n int getDependenciesCount();\n\n\n void removeDependencies(Class<? extends Startup<?>> startup);\n\n\n}", "private void registerAll() {\n\t// register decoders\n\tregister(new KeepAliveEventDecoder());\n\tregister(new CharacterDesignEventDecoder());\n\tregister(new WalkEventDecoder());\n\tregister(new ChatEventDecoder());\n\tregister(new ButtonEventDecoder());\n\tregister(new CommandEventDecoder());\n\tregister(new SwitchItemEventDecoder());\n\tregister(new FirstObjectActionEventDecoder());\n\tregister(new SecondObjectActionEventDecoder());\n\tregister(new ThirdObjectActionEventDecoder());\n\tregister(new EquipEventDecoder());\n\tregister(new FirstItemActionEventDecoder());\n\tregister(new SecondItemActionEventDecoder());\n\tregister(new ThirdItemActionEventDecoder());\n\tregister(new FourthItemActionEventDecoder());\n\tregister(new FifthItemActionEventDecoder());\n\tregister(new ClosedInterfaceEventDecoder());\n\tregister(new EnteredAmountEventDecoder());\n\tregister(new DialogueContinueEventDecoder());\n\n\t// register encoders\n\tregister(new IdAssignmentEventEncoder());\n\tregister(new RegionChangeEventEncoder());\n\tregister(new ServerMessageEventEncoder());\n\tregister(new MobSynchronizationEventEncoder());\n\tregister(new PlayerSynchronizationEventEncoder());\n\tregister(new OpenInterfaceEventEncoder());\n\tregister(new CloseInterfaceEventEncoder());\n\tregister(new SwitchTabInterfaceEventEncoder());\n\tregister(new LogoutEventEncoder());\n\tregister(new UpdateItemsEventEncoder());\n\tregister(new UpdateSlottedItemsEventEncoder());\n\tregister(new UpdateSkillEventEncoder());\n\tregister(new OpenInterfaceSidebarEventEncoder());\n\tregister(new EnterAmountEventEncoder());\n\tregister(new SetInterfaceTextEventEncoder());\n\tregister(new OpenDialogueInterfaceEventEncoder());\n\tregister(new MobModelOnInterfaceEventEncoder());\n\tregister(new InterfaceModelAnimationEventEncoder());\n\tregister(new InterfaceItemModelEventEncoder());\n\n\t// register handlers\n\tregister(new CharacterDesignEventHandler());\n\tregister(new WalkEventHandler());\n\tregister(new ChatEventHandler());\n\tregister(new CommandEventHandler());\n\tregister(new SwitchItemEventHandler());\n\tregister(new EquipEventHandler());\n\tregister(new ClosedInterfaceEventHandler());\n\tregister(new EnteredAmountEventHandler());\n\tregister(new DialogueContinueEventHandler());\n\n\t// world handlers\n\tregister(new ObjectEventHandler(world));\n\tregister(new ButtonEventHandler(world));\n\tregister(new ItemActionEventHandler(world));\n }", "public interface ILauncherInteractor extends IBaseRequestInteractor {\n void callInitialDevice(InitDeviceRequest initialDeviceRequest, OnInitialDeviceListener listener);\n\n void callShutdownDevice(ImeiRequest imei);\n\n void callSOS(OnSOSListener listener, ImeiRequest imei);\n\n void callUpdateInfoAndGetEventService(OnEventListener listener, LocationUpdateRequest locationInfo);\n\n void callSendNewLocationService(RefreshLocationRequest locationInfo);\n\n void callTimezoneChanged(TimezoneUpdateRequest timeZoneParam);\n}", "public interface IBaseView<T> {\n\n boolean bindEvents();//是否需要在对应的控制器里绑定总线消息接听\n\n void showData(List<T> data, boolean canNext);\n\n void showLoadingProgress(boolean show);\n\n void showMessage(String mes);\n\n void showError(String mes);\n\n void onTokenError();\n\n}", "public interface BaseUi {\n\n /**\n * Show error.\n */\n void showError();\n\n /**\n * Show error.\n *\n * @param titleId\n * the title id\n * @param messageId\n * the message id\n */\n void showError(@StringRes int titleId, @StringRes int messageId);\n\n /**\n * Show loading state.\n */\n void showLoadingState();\n\n /**\n * Show loading state.\n *\n * @param res\n * the res\n */\n void showLoadingState(@StringRes int res);\n\n /**\n * Hide loading state.\n */\n void hideLoadingState();\n}", "public interface BaseView{\r\n\r\n void showProgressNoCancel();\r\n\r\n void showProgress(String msg);\r\n\r\n void showProgress();\r\n\r\n void hideProgress();\r\n\r\n void showMsg(String msg);\r\n}", "public interface ResourceManager extends RemoteService{\n\n /**\n * This method returns a list of the resources.\n *\n * @return This list of resources.\n * @throws ResourcesException\n */\n public List<ResourceBase> listTypes() throws ResourceException;\n}", "private CoreFlowsAll() {\n }", "public abstract void loaded();", "public interface BaseView {\n void initViews();\n}", "public interface IStoreMixin {\n\n\t/**\n\t * store: Object\n\t * <p>\n\t * Reference to data provider object used by this widget.\n\t */\n\tpublic static final String STORE = \"store\";\n\n\t/**\n\t * query: Object\n\t * <p>\n\t * A query that can be passed to 'store' to initially filter the items.\n\t */\n\tpublic static final String QUERY = \"query\";\n\n\t/**\n\t * queryOptions: Object\n\t * <p>\n\t * An optional parameter for the query.\n\t */\n\tpublic static final String QUERYOPTIONS = \"queryOptions\";\n\n\t/**\n\t * labelProperty: String (default: \"label\")\n\t * <p>\n\t * A property name (a property in the dojo/store item) that specifies that\n\t * item's label.\n\t */\n\tpublic static final String LABELPROPERTY = \"labelProperty\";\n\n\t/**\n\t * childrenProperty: String (default: \"children\")\n\t * <p>\n\t * A property name (a property in the dojo/store item) that specifies that\n\t * item's children.\n\t */\n\tpublic static final String CHILDRENPROPERTY = \"childrenProperty\";\n}", "public interface SplashInteractor extends Interactor {\n}", "public interface MainUpdateInteractor {\n void execute();\n}", "public interface SysFileService extends CommonService<SysFile> {\n}", "public interface ILoader {\n\n void init(Context context,int cacheSizeInM);\n\n void request(SingleConfig config);\n\n void pause();\n\n void resume();\n\n void clearDiskCache();\n\n void clearMomoryCache();\n\n long getCacheSize();\n\n void clearCacheByUrl(String url);\n\n void clearMomoryCache(View view);\n void clearMomoryCache(String url);\n\n File getFileFromDiskCache(String url);\n\n void getFileFromDiskCache(String url,FileGetter getter);\n\n\n\n\n\n boolean isCached(String url);\n\n void trimMemory(int level);\n\n void onLowMemory();\n\n\n /**\n * 如果有缓存,就直接从缓存里拿,如果没有,就从网上下载\n * 返回的file在图片框架的缓存中,非常规文件名,需要自己拷贝出来.\n * @param url\n * @param getter\n */\n void download(String url,FileGetter getter);\n\n}", "public BasicLoader() {\n }", "public void loadPlugins() {\n\n ServiceLoader<Pump> serviceLoader = ServiceLoader.load(Pump.class);\n for (Pump pump : serviceLoader) {\n availablePumps.put(pump.getPumpName(), pump);\n }\n\n Pump dummy = new DummyControl();\n availablePumps.put(dummy.getName(), dummy);\n\n Pump lego = new LegoControl();\n availablePumps.put(lego.getName(), lego);\n }", "public abstract void load();", "@ImplementedBy(DefaultStringManager.class)\npublic interface StringManager extends ResourceManager<StringManager, StringResource> {\n\n @Override\n default String getType() {\n return \"string\";\n }\n}", "public interface MainView extends BaseView{\n\n void updateLoadLocation(String result);\n}", "public interface IDownloads\n{\n /***\n * Presenter interfaces for the Home Fragments to communicate with their presenters.\n *\n */\n interface DownloadsPres extends LifeCycleMap\n {\n Fragment getAdapterFragment(int position);\n }\n\n interface DownloadsSavedPres extends LifeCycleMap, EventBusMap\n {\n\n }\n\n interface DownloadsDownloadingPres extends LifeCycleMap\n {\n\n }\n\n\n /***\n * Mapper interfaces for the Home presenters to communicate with their views.\n *\n */\n interface DownloadsMap extends PagerAdapterMap, InitViewMap, ContextMap\n {\n\n }\n\n interface DownloadsSavedMap extends RecycleAdapterMap, InitViewMap, ContextMap\n {\n\n }\n\n interface DownloadsDownloadingMap extends RecycleAdapterMap, InitViewMap, ContextMap\n {\n void scrollToUpdateViews();\n }\n}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n public static void enable() {\n if (lock.compareAndSet(false, true)) {\n\n RxJavaPlugins.setOnFlowableAssembly(new Function<Flowable, Flowable>() {\n @Override\n public Flowable apply(Flowable f) throws Exception {\n if (f instanceof Supplier) {\n if (f instanceof ScalarSupplier) {\n return new FlowableOnAssemblyScalarSupplier(f);\n }\n return new FlowableOnAssemblySupplier(f);\n }\n return new FlowableOnAssembly(f);\n }\n });\n\n RxJavaPlugins.setOnConnectableFlowableAssembly(new Function<ConnectableFlowable, ConnectableFlowable>() {\n @Override\n public ConnectableFlowable apply(ConnectableFlowable f) throws Exception {\n return new FlowableOnAssemblyConnectable(f);\n }\n });\n\n RxJavaPlugins.setOnObservableAssembly(new Function<Observable, Observable>() {\n @Override\n public Observable apply(Observable f) throws Exception {\n if (f instanceof Supplier) {\n if (f instanceof ScalarSupplier) {\n return new ObservableOnAssemblyScalarSupplier(f);\n }\n return new ObservableOnAssemblySupplier(f);\n }\n return new ObservableOnAssembly(f);\n }\n });\n\n RxJavaPlugins.setOnConnectableObservableAssembly(new Function<ConnectableObservable, ConnectableObservable>() {\n @Override\n public ConnectableObservable apply(ConnectableObservable f) throws Exception {\n return new ObservableOnAssemblyConnectable(f);\n }\n });\n\n RxJavaPlugins.setOnSingleAssembly(new Function<Single, Single>() {\n @Override\n public Single apply(Single f) throws Exception {\n if (f instanceof Supplier) {\n if (f instanceof ScalarSupplier) {\n return new SingleOnAssemblyScalarSupplier(f);\n }\n return new SingleOnAssemblySupplier(f);\n }\n return new SingleOnAssembly(f);\n }\n });\n\n RxJavaPlugins.setOnCompletableAssembly(new Function<Completable, Completable>() {\n @Override\n public Completable apply(Completable f) throws Exception {\n if (f instanceof Supplier) {\n if (f instanceof ScalarSupplier) {\n return new CompletableOnAssemblyScalarSupplier(f);\n }\n return new CompletableOnAssemblySupplier(f);\n }\n return new CompletableOnAssembly(f);\n }\n });\n\n RxJavaPlugins.setOnMaybeAssembly(new Function<Maybe, Maybe>() {\n @Override\n public Maybe apply(Maybe f) throws Exception {\n if (f instanceof Supplier) {\n if (f instanceof ScalarSupplier) {\n return new MaybeOnAssemblyScalarSupplier(f);\n }\n return new MaybeOnAssemblySupplier(f);\n }\n return new MaybeOnAssembly(f);\n }\n });\n\n RxJavaPlugins.setOnParallelAssembly(new Function<ParallelFlowable, ParallelFlowable>() {\n @Override\n public ParallelFlowable apply(ParallelFlowable t) throws Exception {\n return new ParallelFlowableOnAssembly(t);\n }\n });\n\n lock.set(false);\n }\n }" ]
[ "0.5340388", "0.5173487", "0.5170746", "0.51594543", "0.51060075", "0.5075525", "0.5073789", "0.50707", "0.5057088", "0.50473696", "0.5045318", "0.502075", "0.5009577", "0.49479696", "0.49324238", "0.48881978", "0.48778555", "0.4870874", "0.4868534", "0.48541874", "0.48426142", "0.48207226", "0.48183352", "0.47809562", "0.4780605", "0.4780204", "0.47599867", "0.47498226", "0.47462896", "0.47421598", "0.47408435", "0.47385186", "0.47363156", "0.47335076", "0.47304502", "0.4723806", "0.4721273", "0.47185844", "0.4708412", "0.47050622", "0.470248", "0.46971595", "0.46955442", "0.46924475", "0.46838948", "0.46819407", "0.4662368", "0.4659863", "0.46560553", "0.46557695", "0.46541327", "0.4646061", "0.4646061", "0.46434096", "0.46297655", "0.46271193", "0.46252766", "0.46170706", "0.46056497", "0.45955268", "0.459364", "0.45907706", "0.4587732", "0.45853406", "0.45836794", "0.45811576", "0.45784914", "0.45769277", "0.45751336", "0.45738754", "0.45712003", "0.45699504", "0.45695418", "0.4567568", "0.45633188", "0.45624572", "0.4554618", "0.45516402", "0.45493957", "0.45486975", "0.4548072", "0.45476636", "0.4546791", "0.45447817", "0.45444646", "0.4543818", "0.45391026", "0.4537404", "0.4534316", "0.45285922", "0.45279637", "0.45254087", "0.45212644", "0.45208538", "0.4511458", "0.4510592", "0.45095173", "0.45076242", "0.44966388", "0.4490138" ]
0.53007245
1
Used by query loaders to add stuff like locking and hints/comments
default String preprocessSQL(String sql, QueryParameters queryParameters, SessionFactoryImplementor factory, List<AfterLoadAction> afterLoadActions) { // I believe this method is only needed for query-type loaders return sql; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void addCacheHints(final TypedQuery<?> typedQuery, final String comment) {\n\t\ttypedQuery.setHint(\"org.hibernate.cacheMode\", CacheMode.NORMAL);\n\t\ttypedQuery.setHint(\"org.hibernate.cacheable\", Boolean.TRUE);\n\t\ttypedQuery.setHint(\"org.hibernate.comment\", comment);\n\t}", "public void cacheableQuery() throws HibException;", "private void addQuery(String query){\n this.queries.add( query);\n }", "protected void add(Query query) {\n queries.add(query);\n executeThread();\n }", "@Override\r\n\tpublic void addLockToken(String lt) {\n\t\t\r\n\t}", "void addRowsLock();", "private void RecordStoreLockFactory() {\n }", "private void initClauses() {\n if (!mIsInitialized) {\n if (ConnectionUtil.getDBProductID() == ConnectionUtil.DB_ORACLE ||\n ConnectionUtil.getDBProductID() == ConnectionUtil.DB_MYSQL) {\n mForUpdateClause = \" FOR UPDATE \";\n } else if (ConnectionUtil.getDBProductID() == ConnectionUtil.DB_SQLSERVER) {\n mWithClause = \" WITH (ROWLOCK, UPDLOCK) \";\n }\n mIsInitialized = true;\n }\n\n }", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "protected abstract void onQueryStart();", "interface WithNotes {\n /**\n * Specifies the notes property: Notes about the lock. Maximum of 512 characters..\n *\n * @param notes Notes about the lock. Maximum of 512 characters.\n * @return the next definition stage.\n */\n Update withNotes(String notes);\n }", "protected abstract void trace_pre_updates();", "private void queryList (String query) {\n\t\tmemoListAdapter.query(query);\n\t}", "private void ini_CacheDB()\r\n\t{\r\n\t\tLogger.DEBUG(\"ini_CacheDB\");\r\n\t\t// chk if exist filter preset splitter \"#\" and Replace\r\n\r\n\t}", "private Locks() {\n\t\tlockId = ObjectId.get().toString();\n\t}", "protected void putDatabaseQueryCache(String key, String value) {\n\t\t\n\t\tSession session = this.openSession();\n\t\tsession.beginTransaction();\n\t\tsession.save( new Metainfo( key, value ) );\n\t\tsession.getTransaction().commit();\n\t\tsession.close();\n\t}", "@Override\n\tpublic void comment() {\n\t\t\n\t}", "public LocksRecord() {\n\t\tsuper(org.jooq.example.gradle.db.information_schema.tables.Locks.LOCKS);\n\t}", "@Override\n\tpublic void visit(OracleHint arg0) {\n\t\t\n\t}", "@Test\n public void testQueryAdHocs() throws Exception {\n\n // SETUP: Change all the Tasks to Blocks\n List<RefTaskClassKey> lClasses = new ArrayList<RefTaskClassKey>();\n SchedStaskTable lSchedStask = SchedStaskTable.create( new TaskKey( 4650, 101 ) );\n lClasses.add( lSchedStask.getTaskClass() );\n lSchedStask.setTaskClass( RefTaskClassKey.ADHOC );\n lSchedStask.update();\n lSchedStask = SchedStaskTable.create( new TaskKey( 4650, 102 ) );\n lClasses.add( lSchedStask.getTaskClass() );\n lSchedStask.setTaskClass( RefTaskClassKey.ADHOC );\n lSchedStask.update();\n lSchedStask = SchedStaskTable.create( new TaskKey( 4650, 400 ) );\n lClasses.add( lSchedStask.getTaskClass() );\n lSchedStask.setTaskClass( RefTaskClassKey.ADHOC );\n lSchedStask.update();\n lSchedStask = SchedStaskTable.create( new TaskKey( 4650, 500 ) );\n lClasses.add( lSchedStask.getTaskClass() );\n lSchedStask.setTaskClass( RefTaskClassKey.ADHOC );\n lSchedStask.update();\n\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // There should be 4 rows\n MxAssert.assertEquals( \"Number of retrieved rows\", 4, iDataSet.getRowCount() );\n\n // Set them all back to REQ\n lSchedStask = SchedStaskTable.create( new TaskKey( 4650, 101 ) );\n lSchedStask.setTaskClass( lClasses.get( 0 ) );\n lSchedStask.update();\n lSchedStask = SchedStaskTable.create( new TaskKey( 4650, 102 ) );\n lSchedStask.setTaskClass( lClasses.get( 1 ) );\n lSchedStask.update();\n lSchedStask = SchedStaskTable.create( new TaskKey( 4650, 400 ) );\n lSchedStask.setTaskClass( lClasses.get( 2 ) );\n lSchedStask.update();\n lSchedStask = SchedStaskTable.create( new TaskKey( 4650, 500 ) );\n lSchedStask.setTaskClass( lClasses.get( 3 ) );\n lSchedStask.update();\n }", "@Override\n protected void setHint(String hint) {\n }", "org.hl7.fhir.String addNewComments();", "public abstract void inLineQuery(InlineQuery q);", "public void dataBaseLocked();", "@DefaultMessage(\"Locking record for Update...\")\n @Key(\"gen.lockForUpdate\")\n String gen_lockForUpdate();", "public String appendLockHint(LockOptions lockOptions, String tableName){\n \t\treturn tableName;\n \t}", "public void addLock(I_MemoryLock lock);", "public void markDMLFence(PTable dataTable);", "public void addHint(String key, Object value) {\n if (_hintKeys == null) {\n _hintKeys = new LinkedList();\n _hintVals = new LinkedList();\n }\n _hintKeys.add(key);\n _hintVals.add(value);\n }", "public interface SQLLoopStatus {\n int getIndex();\n Map<String,Object> getAdditionalParams();\n}", "public void Query() {\n }", "void lockMetadata(String key);", "JpaQuery<T> setHint(String name, Object value);", "@Test\n\tpublic void testQueryCaching(){\n\t\tqueryCache();\n\t\tqueryCache2();\n\t}", "protected String applyLocks(String sql, LockOptions lockOptions, Dialect dialect) throws HibernateException {\n \t\treturn sql;\n \t}", "@Override\n public void addBulkLoadInProgressFlag(String path, long fateTxid) {\n Mutation m = new Mutation(BlipSection.getRowPrefix() + path);\n m.put(EMPTY_TEXT, EMPTY_TEXT, new Value(FateTxId.formatTid(fateTxid)));\n\n try (BatchWriter bw = context.createBatchWriter(MetadataTable.NAME)) {\n bw.addMutation(m);\n } catch (MutationsRejectedException | TableNotFoundException e) {\n throw new IllegalStateException(e);\n }\n }", "interface WithNotes {\n /**\n * Specifies the notes property: Notes about the lock. Maximum of 512 characters..\n *\n * @param notes Notes about the lock. Maximum of 512 characters.\n * @return the next definition stage.\n */\n WithCreate withNotes(String notes);\n }", "public void lock() {\n\n }", "@Override\n public void comment(String comment)\n {\n }", "private void run()\n {\n searchLexDb(\"^providing_\", true);\n }", "void runQueries();", "public interface DbLoader {\n\n /**\n * prepares the database\n */\n void prepareDatabase();\n}", "@Override\n\tpublic void queryUpdate() {\n\t\tneedToUpdate = true;\n\t}", "public void createSQL(String id, String query){\n\n\t\tif(DBHandler.getConnection() == null){\n\t\t\treturn;\n\t\t}\n\n\t\tcache.create(id, query);\t\t\n\t}", "public void addOneQuery(QueryInfo queryInfo) {\n\t\tthis.maxQueries.add(queryInfo);\n\t}", "private void addInterceptor(Class<? extends QueryInterceptor> interceptorClass)\n throws IllegalAccessException, InstantiationException {\n \n // get the component registry and then register the searchFactory.\n ComponentRegistry cr = cache.getAdvancedCache().getComponentRegistry();\n cr.registerComponent(searchFactory, SearchFactoryImplementor.class);\n \n // Get the interceptor chain factory so I can create my interceptor.\n InterceptorChainFactory icf = cr.getComponent(InterceptorChainFactory.class);\n \n CommandInterceptor inter = icf.createInterceptor(interceptorClass);\n cr.registerComponent(inter, QueryInterceptor.class);\n \n cache.getAdvancedCache().addInterceptorAfter(inter, LockingInterceptor.class);\n \n }", "private DbQuery() {}", "protected void additionalProcessing() {\n\t}", "void rewrite(MySqlSelectQueryBlock query);", "@Override\n protected String applyLocks(String sql, LockOptions lockOptions, Dialect dialect) throws QueryException {\n \t\tfinal String result;\n \t\tif ( lockOptions == null ||\n \t\t\t( lockOptions.getLockMode() == LockMode.NONE && lockOptions.getAliasLockCount() == 0 ) ) {\n \t\t\treturn sql;\n \t\t}\n \t\telse {\n \t\t\tLockOptions locks = new LockOptions();\n \t\t\tlocks.setLockMode(lockOptions.getLockMode());\n \t\t\tlocks.setTimeOut(lockOptions.getTimeOut());\n \t\t\tlocks.setScope(lockOptions.getScope());\n \t\t\tIterator iter = lockOptions.getAliasLockIterator();\n \t\t\twhile ( iter.hasNext() ) {\n \t\t\t\tMap.Entry me = ( Map.Entry ) iter.next();\n \t\t\t\tlocks.setAliasSpecificLockMode( getAliasName( ( String ) me.getKey() ), (LockMode) me.getValue() );\n \t\t\t}\n \t\t\tMap keyColumnNames = null;\n \t\t\tif ( dialect.forUpdateOfColumns() ) {\n \t\t\t\tkeyColumnNames = new HashMap();\n \t\t\t\tfor ( int i = 0; i < names.length; i++ ) {\n \t\t\t\t\tkeyColumnNames.put( names[i], persisters[i].getIdentifierColumnNames() );\n \t\t\t\t}\n \t\t\t}\n \t\t\tresult = dialect.applyLocksToSql( sql, locks, keyColumnNames );\n \t\t}\n \t\tlogQuery( queryString, result );\n \t\treturn result;\n \t}", "abstract protected void doMyOptimization(TransactionId tid, ParallelQueryPlan plan);", "public interface QueryPart extends Serializable {\n\n /**\n * Render a SQL string representation of this <code>QueryPart</code>.\n * <p>\n * For improved debugging, this renders a SQL string of this\n * <code>QueryPart</code> with inlined bind variables. If this\n * <code>QueryPart</code> is {@link Attachable}, then the attached\n * {@link Configuration} may be used for rendering the SQL string, including\n * {@link SQLDialect} and {@link Settings}. Do note that most\n * <code>QueryPart</code> instances are not attached to a\n * {@link Configuration}, and thus there is no guarantee that the SQL string\n * will make sense in the context of a specific database.\n *\n * @return A SQL string representation of this <code>QueryPart</code>\n */\n @Override\n String toString();\n\n /**\n * Check whether this <code>QueryPart</code> can be considered equal to\n * another <code>QueryPart</code>.\n * <p>\n * In general, <code>QueryPart</code> equality is defined in terms of\n * {@link #toString()} equality. In other words, two query parts are\n * considered equal if their rendered SQL (with inlined bind variables) is\n * equal. This means that the two query parts do not necessarily have to be\n * of the same type.\n * <p>\n * Some <code>QueryPart</code> implementations may choose to override this\n * behaviour for improved performance, as {@link #toString()} is an\n * expensive operation, if called many times.\n *\n * @param object The other <code>QueryPart</code>\n * @return Whether the two query parts are equal\n */\n @Override\n boolean equals(Object object);\n\n /**\n * Generate a hash code from this <code>QueryPart</code>.\n * <p>\n * In general, <code>QueryPart</code> hash codes are the same as the hash\n * codes generated from {@link #toString()}. This guarantees consistent\n * behaviour with {@link #equals(Object)}\n * <p>\n * Some <code>QueryPart</code> implementations may choose to override this\n * behaviour for improved performance, as {@link #toString()} is an\n * expensive operation, if called many times.\n *\n * @return The <code>QueryPart</code> hash code\n */\n @Override\n int hashCode();\n\n // -------------------------------------------------------------------------\n // XXX: Query Object Model\n // -------------------------------------------------------------------------\n\n /**\n * Traverser this {@link QueryPart} expression tree using a composable\n * {@link Traverser}, producing a result.\n * <p>\n * This offers a generic way to traverse expression trees to translate the\n * tree to arbitrary other data structures. The simplest traversal would\n * just count all the tree elements:\n * <p>\n * <code><pre>\n * int count = CUSTOMER.NAME.eq(1).$traverse(0, (i, p) -> i + 1);\n * </pre></code>\n * <p>\n * The same can be achieved by translating the JDK {@link Collector} API to\n * the {@link Traverser} API using {@link Traversers#collecting(Collector)}.\n * <p>\n * <code><pre>\n * CUSTOMER.NAME.eq(1).$traverse(Traversers.collecting(Collectors.counting()));\n * </pre></code>\n * <p>\n * Unlike a {@link Collector}, a {@link Traverser} is optimised for tree\n * traversal, not stream traversal:\n * <ul>\n * <li>Is not designed for parallelism</li>\n * <li>It can {@link Traverser#abort()} traversal early when the result can\n * be produced early (e.g. when running\n * {@link Traversers#containing(QueryPart)}, and a result has been\n * found).</li>\n * <li>It can decide whether to {@link Traverser#recurse()} into a\n * {@link QueryPart} subtree, or whether that is not necessary or even\n * undesirable, e.g. to prevent entering new subquery scopes.</li>\n * <li>Unlike a Collector, which can use its {@link Collector#accumulator()}\n * to accumulate each element only once, in tree traversal, it's desirable\n * to be able to distinguish between accumulating an item\n * {@link Traverser#before()} or {@link Traverser#after()} recursing into\n * it. This is useful e.g. to wrap each tree node in XML opening and closing\n * tags.</li>\n * </ul>\n */\n <R> R $traverse(Traverser<?, R> traverser);\n\n /**\n * Convenience method for {@link #$traverse(Traverser)}.\n */\n default <R> R $traverse(\n R init,\n BiFunction<? super R, ? super QueryPart, ? extends R> before,\n BiFunction<? super R, ? super QueryPart, ? extends R> after\n ) {\n return $traverse(Traverser.of(() -> init, before, after));\n }\n\n /**\n * Convenience method for {@link #$traverse(Traverser)}.\n */\n default <R> R $traverse(\n R init,\n BiFunction<? super R, ? super QueryPart, ? extends R> before\n ) {\n return $traverse(Traverser.of(() -> init, before));\n }\n\n /**\n * Convenience method for {@link #$traverse(Traverser)}.\n */\n default <R> R $traverse(\n R init,\n Predicate<? super R> abort,\n Predicate<? super QueryPart> recurse,\n BiFunction<? super R, ? super QueryPart, ? extends R> before,\n BiFunction<? super R, ? super QueryPart, ? extends R> after\n ) {\n return $traverse(Traverser.of(() -> init, abort, recurse, before, after));\n }\n\n /**\n * Convenience method for {@link #$traverse(Traverser)}.\n */\n default <R> R $traverse(\n R init,\n Predicate<? super R> abort,\n Predicate<? super QueryPart> recurse,\n BiFunction<? super R, ? super QueryPart, ? extends R> before\n ) {\n return $traverse(Traverser.of(() -> init, abort, recurse, before));\n }\n\n /**\n * Traverse a {@link QueryPart} hierarchy and recursively replace its\n * elements by alternatives.\n *\n * @param recurse A predicate to decide whether to recurse into a\n * {@link QueryPart} subtree.\n * @param replacement The replacement function. Replacement continues\n * recursively until the function returns null or its input for\n * any given input.\n */\n @NotNull\n QueryPart $replace(\n Predicate<? super QueryPart> recurse,\n Function1<? super QueryPart, ? extends QueryPart> replacement\n );\n\n /**\n * Convenience method for {@link #$replace(Predicate, Function1)}.\n */\n @NotNull\n default QueryPart $replace(Function1<? super QueryPart, ? extends QueryPart> replacement) {\n return $replace(p -> true, replacement);\n }\n}", "public void queryOrder(){\n\t\ttry{\n\t\t\tlock.lock();\n\t\t\tSystem.out.println(Thread.currentThread().getName()+\"查询到数据:\"+System.currentTimeMillis());\n\t\t\tThread.sleep(2000);\n\t\t}catch( Exception e){\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tlock.unlock();\n\t\t}\n\t}", "public interface QueryCache {\n IQ get(InputQuery inputQuery);\n\n void put(InputQuery inputQuery, IQ executableQuery);\n\n void clear();\n}", "public interface HiveMetaDao {\n String getLocationByDbAndTable(Map<String, String> map);\n List<String> getDbsByUser(String userName);\n List<Map<String, Object>> getTablesByDbNameAndUser(Map<String, String> map);\n Long getPartitionSize(Map<String, String> map);\n List<String> getPartitions(Map<String, String> map);\n List<Map<String, Object>> getColumns(Map<String, String> map);\n List<Map<String, Object>> getPartitionKeys(Map<String, String> map);\n String getTableComment(@Param(\"DbName\") String DbName, @Param(\"tableName\") String tableName);\n}", "protected String applyLocks(String sql, LockOptions lockOptions, Dialect dialect) throws QueryException {\n \n \t\tif ( lockOptions == null ||\n \t\t\t( lockOptions.getLockMode() == LockMode.NONE && lockOptions.getAliasLockCount() == 0 ) ) {\n \t\t\treturn sql;\n \t\t}\n \n \t\t// we need both the set of locks and the columns to reference in locks\n \t\t// as the ultimate output of this section...\n \t\tfinal LockOptions locks = new LockOptions( lockOptions.getLockMode() );\n \t\tfinal Map keyColumnNames = dialect.forUpdateOfColumns() ? new HashMap() : null;\n \n \t\tlocks.setScope( lockOptions.getScope() );\n \t\tlocks.setTimeOut( lockOptions.getTimeOut() );\n \n \t\tfinal Iterator itr = sqlAliasByEntityAlias.entrySet().iterator();\n \t\twhile ( itr.hasNext() ) {\n \t\t\tfinal Map.Entry entry = (Map.Entry) itr.next();\n \t\t\tfinal String userAlias = (String) entry.getKey();\n \t\t\tfinal String drivingSqlAlias = (String) entry.getValue();\n \t\t\tif ( drivingSqlAlias == null ) {\n \t\t\t\tthrow new IllegalArgumentException( \"could not locate alias to apply lock mode : \" + userAlias );\n \t\t\t}\n \t\t\t// at this point we have (drivingSqlAlias) the SQL alias of the driving table\n \t\t\t// corresponding to the given user alias. However, the driving table is not\n \t\t\t// (necessarily) the table against which we want to apply locks. Mainly,\n \t\t\t// the exception case here is joined-subclass hierarchies where we instead\n \t\t\t// want to apply the lock against the root table (for all other strategies,\n \t\t\t// it just happens that driving and root are the same).\n \t\t\tfinal QueryNode select = ( QueryNode ) queryTranslator.getSqlAST();\n \t\t\tfinal Lockable drivingPersister = ( Lockable ) select.getFromClause()\n \t\t\t\t\t.findFromElementByUserOrSqlAlias( userAlias, drivingSqlAlias )\n \t\t\t\t\t.getQueryable();\n \t\t\tfinal String sqlAlias = drivingPersister.getRootTableAlias( drivingSqlAlias );\n \n \t\t\tfinal LockMode effectiveLockMode = lockOptions.getEffectiveLockMode( userAlias );\n \t\t\tlocks.setAliasSpecificLockMode( sqlAlias, effectiveLockMode );\n \n \t\t\tif ( keyColumnNames != null ) {\n \t\t\t\tkeyColumnNames.put( sqlAlias, drivingPersister.getRootTableIdentifierColumnNames() );\n \t\t\t}\n \t\t}\n \n \t\t// apply the collected locks and columns\n \t\treturn dialect.applyLocksToSql( sql, locks, keyColumnNames );\n \t}", "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}", "private void addQueries(String query){\n ArrayList <String> idsFullSet = new ArrayList <String>(searchIDs);\n while(idsFullSet.size() > 0){\n ArrayList <String> idsSmallSet = new ArrayList <String>(); \n if(debugMode) {\n System.out.println(\"\\t Pmids not used in query available : \" + idsFullSet.size());\n }\n idsSmallSet.addAll(idsFullSet.subList(0,Math.min(getSearchIdsLimit(), idsFullSet.size())));\n idsFullSet.removeAll(idsSmallSet);\n String idsConstrain =\"\";\n idsConstrain = idsConstrain(idsSmallSet);\n addQuery(query,idsConstrain);\n }\n }", "public interface GraphQLMutex {\n GraphQLMutex mo2714a(Set<String> set);\n\n GraphQLResult mo2715a(GraphQLResult graphQLResult);\n\n ImmutableSet<String> mo2716a();\n\n boolean mo2717a(GraphQLRequestLock graphQLRequestLock);\n\n GraphQLResult mo2718b(GraphQLResult graphQLResult);\n}", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic void addRenderingHints(Map hints)\r\n\t{\r\n\t\t// System.out.println(\"addRenderingHints\");\r\n\t}", "private void m145783m() {\n if (this.f119478k) {\n mo115433a(\"PRAGMA query_only = 1\", null, null);\n }\n }", "@Around(\"proxyHintLatencyTrackerPointcut()\")\n public void hintTracker(ProceedingJoinPoint join) throws Throwable\n {\n join.proceed(new Object[] { buildTracker(\"WRITE.HINTING\") });\n }", "private String getSingleLockSBRStmt() {\n\n if (null == mSingleLockStmt) {\n initClauses();\n mSingleLockStmt = \"SELECT s.EUID FROM SBYN_SYSTEMSBR s \" + mWithClause + \" WHERE s.EUID = ? AND s.REVISIONNUMBER = ? \" + mForUpdateClause;\n }\n\n return mSingleLockStmt;\n }", "void processBeforeLocking(MutableCachedNode modifiedOrNewNode,\n SaveContext context) throws Exception;", "private void reacquireLocks() {\n getCommander().requestLockOn( getPart() );\n for ( Long id : expansions ) {\n try {\n ModelObject expanded = getQueryService().find( ModelObject.class, id );\n if ( !( expanded instanceof Segment || expanded instanceof Plan ) )\n getCommander().requestLockOn( expanded );\n } catch ( NotFoundException e ) {\n LOG.warn( \"Expanded model object not found at: \" + id );\n }\n }\n }", "@Override\n public void cacheStarting(ComponentRegistry cr, Configuration cfg, String cacheName) {\n BasicComponentRegistry gcr = cr.getGlobalComponentRegistry().getComponent(BasicComponentRegistry.class);\n\n if (PROTOBUF_METADATA_CACHE_NAME.equals(cacheName)) {\n BasicComponentRegistry bcr = cr.getComponent(BasicComponentRegistry.class);\n ProtobufMetadataManagerInterceptor protobufInterceptor = new ProtobufMetadataManagerInterceptor();\n bcr.registerComponent(ProtobufMetadataManagerInterceptor.class, protobufInterceptor, true);\n bcr.addDynamicDependency(AsyncInterceptorChain.class.getName(), ProtobufMetadataManagerInterceptor.class.getName());\n bcr.getComponent(AsyncInterceptorChain.class).wired()\n .addInterceptorAfter(protobufInterceptor, EntryWrappingInterceptor.class);\n }\n\n InternalCacheRegistry icr = gcr.getComponent(InternalCacheRegistry.class).running();\n if (!icr.isInternalCache(cacheName)) {\n ProtobufMetadataManagerImpl protobufMetadataManager =\n (ProtobufMetadataManagerImpl) gcr.getComponent(ProtobufMetadataManager.class).running();\n protobufMetadataManager.addCacheDependency(cacheName);\n\n SerializationContext serCtx = protobufMetadataManager.getSerializationContext();\n RemoteQueryManager remoteQueryManager = buildQueryManager(cfg, serCtx, cr);\n cr.registerComponent(remoteQueryManager, RemoteQueryManager.class);\n }\n }", "public void setDeferredLoading(boolean deferred) {\n/* 77 */ this.deferred = deferred;\n/* */ }", "public interface IDBQuery {\n String query();\n}", "protected void sequence_QuerySection(ISerializationContext context, QuerySection semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "@Override public boolean syncResults(StatementHandle h, QueryState state, long offset)\n throws NoSuchStatementException {\n throw new UnsupportedOperationException();\n }", "public void testAddLockToken() {\n \n String lock = \"some lock\";\n session.addLockToken(lock);\n \n sessionControl.replay();\n sfControl.replay();\n \n jt.addLockToken(lock);\n \n }", "public void requestExtraSync()\n {\n executor.requestExtraSync();\n }", "public TransactionBuilder enableBatchLoading();", "public static void loadAllAdditionalCachedObjectList() {\n\n\t\t// TODO Completar cuando sea necesario.\n\n\t}", "public JdbcReadOnly(String query) {\n //this.query = query;\n }", "public void performAdditionalUpdates() {\n\t\t// Default: do nothing - subclasses should override if needed\n\t}", "private void setSql() {\n sql = sqlData.getSql();\n }", "private void setLock(int tid, int varIndex, Lock.Type type) {\n List<Lock> lockList = null;\n if (_lockTable.containsKey(varIndex)) {\n lockList = _lockTable.get(varIndex);\n lockList.add(new Lock(tid, type));\n } else {\n lockList = new ArrayList<Lock>();\n lockList.add(new Lock(tid, type));\n _lockTable.put(varIndex, lockList);\n }\n }", "private String getQueryHint() {\n return ApiProperties.getProperty(\n \"api.bigr.library.\" + ApiFunctions.shortClassName(getClass().getName()) + \".hint\");\n }", "int insertSelective(HelpInfo record);", "private void writefastcq() {\n\t\tEditor edit = preticket.edit();\r\n\t\tedit.putString(\"tickettype\", \"cq\");\r\n\t\tedit.commit();\r\n\t}", "void lock(String name) {\n execute(name, connection -> doLock(name, connection));\n }", "public void lock() {\r\n super.lock();\r\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 }", "private void addProfileDataToCache(String userId, Document content) {\n \t\n \t\tlruCache.put(userId, content);\n \t}", "@Override\n public void addLoadHistoryHeader(boolean showLoader) throws RemoteException {\n }", "public void testMultiEMCachingTrue() {\n Map props = new HashMap(System.getProperties());\n props.put(\"openjpa.MetaDataFactory\", \"jpa(Types=\" + Person.class.getName() + \")\");\n props.put(\"openjpa.jdbc.QuerySQLCache\", \"true\");\n runMultiEMCaching(props);\n }", "Object getExplainPlan(ObjectStorage storage, Connection connection,\r\n Alias alias, String sql);", "private void addQuery(String query, String idsConstrain){\n this.queries.add( idsConstrain + query);\n }", "@Override\n public void addStatement(IRBodyBuilder builder, TranslationContext context,\n FunctionCall call) {\n \n }", "public static void increaseQueryLevel() {\n\t\tif (!running) return;\n\t\t\n\t\tstate.queryLevel++;\n\t\tstate.currentLevelStore = state.currentLevelStore.getNextLevel();\n\t}", "void beforeContentsSynchronized();", "public interface SettingsEventQuery {\r\n public static final String[] COLUMNS = {\"keyField\", \"keyValue\"};\r\n public static final String CREATE_TABLE = (\"CREATE TABLE IF NOT EXISTS Settings(\" + COLUMNS[0] + \" TEXT, \" + COLUMNS[1] + \" TEXT )\");\r\n public static final String DROP_TABLE = \"DROP TABLE IF EXISTS Settings\";\r\n public static final int KEY_FIELD = 0;\r\n public static final int KEY_VALUE = 1;\r\n public static final String TABLE = \"Settings\";\r\n }", "public void lock() {\n super.lock();\n }", "public void lock() {\n super.lock();\n }", "public void lock() {\n super.lock();\n }", "public DistributedDbLock(@Nonnull LockId id, @Nonnull AbstractLockAllocator allocator) {\n super(id, allocator);\n setupMetrics(Metrics.METRIC_LATENCY_LOCK,\n Metrics.METRIC_LATENCY_UNLOCK,\n Metrics.METRIC_COUNTER_CALLS,\n Metrics.METRIC_COUNTER_ERROR);\n }", "public static void openComment() {\n Log.write(\"<!-- \");\n }", "void clientThreadQueryResult(String queryId, Thread thread);", "public interface TaskCommentQueryMapper {\n\n @SelectProvider(type = TaskCommentQuerySqlProvider.class, method = \"queryTaskComments\")\n @Result(property = \"id\", column = \"ID\")\n @Result(property = \"taskId\", column = \"TASK_ID\")\n @Result(property = \"textField\", column = \"TEXT_FIELD\")\n @Result(property = \"creator\", column = \"CREATOR\")\n @Result(property = \"creatorFullName\", column = \"FULL_NAME\")\n @Result(property = \"created\", column = \"CREATED\")\n @Result(property = \"modified\", column = \"MODIFIED\")\n List<TaskCommentImpl> queryTaskComments(\n TaskCommentQueryImpl taskCommentQuery, RowBounds rowBounds);\n\n @SelectProvider(type = TaskCommentQuerySqlProvider.class, method = \"countQueryTaskComments\")\n Long countQueryTaskComments(TaskCommentQueryImpl taskCommentQuery);\n\n @SelectProvider(type = TaskCommentQuerySqlProvider.class, method = \"queryTaskCommentColumnValues\")\n List<String> queryTaskCommentColumnValues(TaskCommentQueryImpl taskCommentQuery);\n}", "@Override\r\n public void setCacheBlocks(boolean b) {\n\r\n }" ]
[ "0.59441274", "0.5415899", "0.54086506", "0.53284067", "0.53203446", "0.5270327", "0.52562195", "0.5207692", "0.5158717", "0.5108669", "0.5012224", "0.498006", "0.49617136", "0.4917062", "0.4894183", "0.48834282", "0.48610476", "0.48530933", "0.48325458", "0.48206404", "0.48107338", "0.48032504", "0.4798553", "0.4786603", "0.47836646", "0.47775224", "0.4768521", "0.47649574", "0.4764392", "0.47632864", "0.47623762", "0.47522515", "0.4739338", "0.47281057", "0.47277516", "0.46896484", "0.46834192", "0.46772903", "0.46730044", "0.46713513", "0.46647382", "0.4661905", "0.4653402", "0.46490735", "0.46449023", "0.46333474", "0.46331146", "0.46312815", "0.46268082", "0.46086556", "0.46068904", "0.459209", "0.45738542", "0.45721576", "0.45715466", "0.4566091", "0.45640972", "0.45633048", "0.45611265", "0.4557635", "0.45570424", "0.4554637", "0.45523605", "0.4549643", "0.45405474", "0.45366994", "0.45243925", "0.45225206", "0.45223784", "0.45223194", "0.45211425", "0.45207584", "0.45186895", "0.4515376", "0.45097435", "0.45052803", "0.4500741", "0.4500244", "0.44953728", "0.448762", "0.448222", "0.44767183", "0.44689864", "0.446585", "0.44658038", "0.44641012", "0.44623092", "0.4458981", "0.44573689", "0.44565776", "0.4456212", "0.44526285", "0.44435322", "0.44406387", "0.44406387", "0.44406387", "0.44387034", "0.44373423", "0.4437097", "0.44362372", "0.44332558" ]
0.0
-1
interface: the object of device.
public interface I_DevOBJ { /** * get:deviceId * * @return the deviceId */ public String getDeviceId(); /** * get:oui * * @return the oui */ public String getOui(); /** * get:device_serialnumber * * @return the device_serialnumber */ public String getSn(); /** * set:deviceId * * @param deviceId * the deviceId to set */ public void setDeviceId(String deviceId); /** * set:oui * * @param oui * the oui to set */ public void setOui(String oui); /** * set:device_serialnumber * * @param device_serialnumber * the device_serialnumber to set */ public void setSn(String sn); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Reference getDevice();", "public interface IDeviceInfo\r\n{\r\n public DeviceInfo GetDeviceInfo();\r\n}", "public interface ElectronicsDevice {\n}", "public interface IRobotDeviceRequest {\n\n /**\n * Returns the device name.\n * \n * @return the device name\n */\n String getDeviceName();\n\n /**\n * Returns the priority of the request.\n * \n * @return the priority of the request\n */\n int getPriority();\n\n /**\n * Returns the time-stamp of this request.\n * \n * @return the time-stamp of this request\n */\n long getTimeStamp();\n\n /**\n * Uid to differentiate the device requests.\n * \n * @return\n */\n long getUID();\n}", "public AIDLInterface getInterface()\n\t{\n\t\t//System.out.println(\"---- mInterface -----\" + mInterface);\n\t\treturn mInterface;\n\t}", "public static com.xintu.smartcar.bluetoothphone.iface.ContactInterface asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof com.xintu.smartcar.bluetoothphone.iface.ContactInterface))) {\nreturn ((com.xintu.smartcar.bluetoothphone.iface.ContactInterface)iin);\n}\nreturn new com.xintu.smartcar.bluetoothphone.iface.ContactInterface.Stub.Proxy(obj);\n}", "public static com.jancar.media.Notify asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof com.jancar.media.Notify))) {\nreturn ((com.jancar.media.Notify)iin);\n}\nreturn new com.jancar.media.Notify.Stub.Proxy(obj);\n}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:36:02.868 -0500\", hash_original_method = \"E552E8F41A6230395AD2464B82A88215\", hash_generated_method = \"B474121E171E0C15AB9C9C17C2686C0E\")\n \npublic static android.net.wifi.IWifiManager asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof android.net.wifi.IWifiManager))) {\nreturn ((android.net.wifi.IWifiManager)iin);\n}\nreturn new android.net.wifi.IWifiManager.Stub.Proxy(obj);\n}", "Interface getInterface();", "Interface getInterface();", "public static info.guardianproject.otr.app.im.plugin.IPresenceMapping asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof info.guardianproject.otr.app.im.plugin.IPresenceMapping))) {\nreturn ((info.guardianproject.otr.app.im.plugin.IPresenceMapping)iin);\n}\nreturn new info.guardianproject.otr.app.im.plugin.IPresenceMapping.Stub.Proxy(obj);\n}", "public device() {\n\t\tsuper();\n\t}", "public static com.heuristic.download.aidl.IBatterySaver asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof com.heuristic.download.aidl.IBatterySaver))) {\nreturn ((com.heuristic.download.aidl.IBatterySaver)iin);\n}\nreturn new com.heuristic.download.aidl.IBatterySaver.Stub.Proxy(obj);\n}", "Device createDevice();", "public Device getDevice() {\n\t\treturn this.device;\n\t}", "public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }", "Interface_decl getInterface();", "public interface CommunicationDevice {\n String getAddress();\n\n CommunicationSocket createCommunicationSocket(UUID uuid) throws IOException;\n}", "public static android.service.fingerprint.IFingerprintServiceReceiver asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof android.service.fingerprint.IFingerprintServiceReceiver))) {\nreturn ((android.service.fingerprint.IFingerprintServiceReceiver)iin);\n}\nreturn new android.service.fingerprint.IFingerprintServiceReceiver.Stub.Proxy(obj);\n}", "@Override\n IDeviceFactory getFactory();", "public IDevice[] getDevices() { return devices; }", "org.omg.CORBA.Object _get_interface_def();", "public String getDevice() {\r\n return device;\r\n }", "public interface Message {\n Device getTargetDevice();\n Device getSourceDevice();\n}", "public interface IDeviceListener {\n /**\n * 获取设备成功\n */\n void onDeviceSuccess(List<DeviceBean.DevicesBean> devicesList);\n\n /**\n * 获取设备失败\n */\n void onDeviceFail(String message);\n\n /**\n * 获取设备错误\n */\n void onDeviceError(String message);\n}", "public abstract Object getInterface(String strInterfaceName_p, Object oObject_p) throws Exception;", "DeviceClass getDeviceClass();", "public static com.example.aidltest1.MyAIDL asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof com.example.aidltest1.MyAIDL))) {\nreturn ((com.example.aidltest1.MyAIDL)iin);\n}\nreturn new com.example.aidltest1.MyAIDL.Stub.Proxy(obj);\n}", "public static com.sogou.speech.wakeup.wakeupservice.IWakeupService asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof com.sogou.speech.wakeup.wakeupservice.IWakeupService))) {\nreturn ((com.sogou.speech.wakeup.wakeupservice.IWakeupService)iin);\n}\nreturn new com.sogou.speech.wakeup.wakeupservice.IWakeupService.Stub.Proxy(obj);\n}", "public interface DeviceResource extends GpoResource, GpiResource {\n\n public String getId();\n}", "@Override\r\n public void onDeviceConnecting(GenericDevice mDeviceHolder,\r\n PDeviceHolder innerDevice) {\n\r\n }", "@BusInterface (name = IconTransport.INTERFACE_NAME)\npublic interface IconTransport extends BusObject\n{\n public static final String INTERFACE_NAME = \"org.alljoyn.Icon\";\n public final static String OBJ_PATH = \"/About/DeviceIcon\";\n\n /**\n * @return Interface version\n * @throws BusException indicating failure to obtain Version property\n */\n @BusProperty(signature=\"q\")\n public short getVersion() throws BusException;\n\n /**\n * @return Mime type for the icon\n * @throws BusException indicating failure to obtain MimeType property\n */\n @BusProperty(signature=\"s\")\n public String getMimeType() throws BusException;\n\n /**\n * @return Size of the icon\n * @throws BusException indicating failure to obtain Size property\n */\n @BusProperty(signature=\"u\")\n public int getSize() throws BusException;\n\n /**\n * Returns the URL if the icon is hosted on the cloud\n * @return the URL if the icon is hosted on the cloud\n * @throws BusException indicating failure to make GetUrl method call\n */\n @BusMethod(replySignature=\"s\")\n public String GetUrl() throws BusException;\n\n /**\n * Returns binary content for the icon\n * @return binary content for the icon\n * @throws BusException indicating failure to make GetContent method call\n */\n @BusMethod(replySignature=\"ay\")\n public byte[] GetContent() throws BusException;\n}", "public static android.app.IProfileManager asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof android.app.IProfileManager))) {\nreturn ((android.app.IProfileManager)iin);\n}\nreturn new android.app.IProfileManager.Stub.Proxy(obj);\n}", "public String getName() {\n\t\treturn \"Device\";\r\n\t}", "public static com.itheima.alipay.IALiPayService asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof com.itheima.alipay.IALiPayService))) {\nreturn ((com.itheima.alipay.IALiPayService)iin);\n}\nreturn new com.itheima.alipay.IALiPayService.Stub.Proxy(obj);\n}", "public static com.gofun.voice.IGFVoiceWakeupListener asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof com.gofun.voice.IGFVoiceWakeupListener))) {\nreturn ((com.gofun.voice.IGFVoiceWakeupListener)iin);\n}\nreturn new com.gofun.voice.IGFVoiceWakeupListener.Stub.Proxy(obj);\n}", "public interface MidiDevice\n{\n}", "public Device() {\n }", "public Object createObject() {\n return klass.__call__().__tojava__(interfaceType);\n }", "public static ElectronicDevice getDevice(){\n\t\treturn new Television();\n\t\t\n\t}", "public static Interface getInterface() {\n return null;\n }", "public DeviceLocator getDeviceLocator();", "public static android.service.dreams.IDreamManager asInterface(android.os.IBinder obj)\n {\n if ((obj==null)) {\n return null;\n }\n android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\n if (((iin!=null)&&(iin instanceof android.service.dreams.IDreamManager))) {\n return ((android.service.dreams.IDreamManager)iin);\n }\n return new android.service.dreams.IDreamManager.Stub.Proxy(obj);\n }", "public interface IDeviceManager {\n\n //디바이스 제어시 사용\n ResultMessage deviceExecute(String commandId, String deviceId, String deviceCommand);\n}", "interface USB {\n void open();\n void close();\n}", "public interface ISystem extends INonFlowObject {\n\n}", "public interface ICamera {\n\n /**\n * Return frame access interface for client usage\n *\n * @param interface_index\n * @return\n */\n public long getFrameAccessIfc(int interface_index);\n\n /**\n * Start the camera stream\n */\n public void start();\n\n /**\n * Stop the camera stream\n */\n public void stop();\n\n public String prepare(final UsbMonitor.UsbConnectionData connectionData);\n\n /**\n * Register json status callback\n *\n * @param callback\n */\n public void setStatusCallback(final IStatusCallback callback);\n\n /**\n * Queries camera for supported mode\n *\n * @return supported video modes String\n */\n public String getSupportedVideoModes();\n\n// /**\n// * Select camera capture mode\n// *\n// * @param width\n// * @param height\n// * @param frameFormat\n// */\n// public void setCaptureMode(final int width, final int height, final int frameFormat);\n\n /**\n * Select camera capture mode\n *\n * @param width\n * @param height\n * @param min_fps\n * @param max_fps\n * @param frameFormat\n */\n public void setCaptureMode(final int width, final int height, final int min_fps, final int max_fps, final int frameFormat);\n}", "interface DeviceAPI {\n /**\n * Get the children of the device.\n *\n * @param device the device\n *\n * @return the children\n */\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getChildrenOfDevice/{device}\")\n List<JsonDevice> childrenOf(@PathParam(\"device\") int device);\n\n /**\n * Get the SensorML description of the device.\n *\n * @param id the id\n *\n * @return the SensorML description\n */\n @GET\n @Produces(MediaType.APPLICATION_XML)\n @Path(\"getDeviceAsSensorML/{device}\")\n String getSensorML(@PathParam(\"device\") int id);\n\n /**\n * Get the list of all devices.\n *\n * @return the devices\n */\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllActiveDevicesFast\")\n List<JsonDevice> all();\n\n /**\n * Get the device.\n *\n * @param device the id\n *\n * @return the device\n */\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getDevice/{device}\")\n JsonDevice byId(@PathParam(\"device\") int device);\n\n /**\n * Get all device categories.\n *\n * @return the device categories\n */\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllDeviceCategories\")\n List<JsonType> types();\n\n /**\n * Get the device.\n *\n * @param urn the URN\n *\n * @return the device\n */\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getDeviceByUrn/{urn}\")\n JsonDevice byURN(@PathParam(\"urn\") String urn);\n }", "public interface IDevicesModel {\n /**\n * action = addDevice\n userid = 12\n username = yuan\n devicename = demo\n deviceaddre = 00:00:00:00\n addtime = 152355660000\n * @param iDevicesListener\n */\n void addDevice(String userid,String username,String devicename,String deviceaddre,Long addtime,\n IDevicesListener iDevicesListener);\n\n void updateDevice(String deviceid,String userid,String username,String devicename,\n String deviceaddre,Long addtime,IDevicesListener iDevicesListener);\n\n void deleteDevice(String deviceid,String userid,String username,IDeleteDeviceListener iDeleteDeviceListener);\n}", "public interface TCNetworkManageInterface {\n\n public String serviceIdentifier();\n\n public String apiClassPath();\n\n public String apiMethodName();\n}", "public interface IWlanElement {\n\n\t/**\n\t * retrieve element id\n\t * \n\t * @return\n\t */\n\tpublic byte getElementId();\n\t\n\t/**\n\t * data \n\t * @return\n\t */\n\tpublic byte[] getData();\n\t\n}", "public interface IsisInterface {\n\n /**\n * Sets interface index.\n *\n * @param interfaceIndex interface index\n */\n void setInterfaceIndex(int interfaceIndex);\n\n /**\n * Sets intermediate system name.\n *\n * @param intermediateSystemName intermediate system name\n */\n void setIntermediateSystemName(String intermediateSystemName);\n\n /**\n * Sets system ID.\n *\n * @param systemId system ID\n */\n void setSystemId(String systemId);\n\n /**\n * Sets LAN ID.\n *\n * @param lanId LAN ID\n */\n void setLanId(String lanId);\n\n /**\n * Sets ID length.\n *\n * @param idLength ID length\n */\n void setIdLength(int idLength);\n\n /**\n * Sets max area addresses.\n *\n * @param maxAreaAddresses max area addresses\n */\n void setMaxAreaAddresses(int maxAreaAddresses);\n\n /**\n * Sets reserved packet circuit type.\n *\n * @param reservedPacketCircuitType reserved packet circuit type\n */\n void setReservedPacketCircuitType(int reservedPacketCircuitType);\n\n /**\n * Sets point to point.\n *\n * @param p2p point to point\n */\n void setP2p(int p2p);\n\n /**\n * Sets area address.\n *\n * @param areaAddress area address\n */\n void setAreaAddress(String areaAddress);\n\n /**\n * Sets area length.\n *\n * @param areaLength area length\n */\n void setAreaLength(int areaLength);\n\n /**\n * Sets link state packet ID.\n *\n * @param lspId link state packet ID\n */\n void setLspId(String lspId);\n\n /**\n * Sets holding time.\n *\n * @param holdingTime holding time\n */\n void setHoldingTime(int holdingTime);\n\n /**\n * Sets priority.\n *\n * @param priority priority\n */\n void setPriority(int priority);\n\n /**\n * Sets hello interval.\n *\n * @param helloInterval hello interval\n */\n void setHelloInterval(int helloInterval);\n}", "public static com.piusvelte.taplock.client.core.ITapLockService asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof com.piusvelte.taplock.client.core.ITapLockService))) {\nreturn ((com.piusvelte.taplock.client.core.ITapLockService)iin);\n}\nreturn new com.piusvelte.taplock.client.core.ITapLockService.Stub.Proxy(obj);\n}", "public interface DeviceBasedTask {\n\n\tpublic Device getDevice();\n\n\tpublic void setDevice(Device device);\n}", "@Override\n public org.omg.CORBA.Object _get_interface_def()\n {\n if (interfaceDef != null)\n return interfaceDef;\n else\n return super._get_interface_def();\n }", "public String getInterface () throws SDLIPException {\r\n XMLObject theInterface = new sdlip.xml.dom.XMLObject();\r\n tm.getInterface(theInterface);\r\n //return postProcess (theInterface, \"SDLIPInterface\", false);\r\n return theInterface.getString();\r\n }", "public TestDevice getDevice() {\n return mDevice;\n }", "public static org.chromium.weblayer_private.interfaces.ITab asInterface(android.os.IBinder obj)\n {\n if ((obj==null)) {\n return null;\n }\n android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\n if (((iin!=null)&&(iin instanceof org.chromium.weblayer_private.interfaces.ITab))) {\n return ((org.chromium.weblayer_private.interfaces.ITab)iin);\n }\n return new org.chromium.weblayer_private.interfaces.ITab.Stub.Proxy(obj);\n }", "public static interface thDevice\n{\n\n public abstract void C_();\n\n public abstract boolean a(BluetoothDevice bluetoothdevice, int i, byte abyte0[]);\n}", "public Device getDevice() {\n\t\treturn parentDevice;\n\t}", "public Object _get_interface_def()\n {\n // First try to call the delegate implementation class's\n // \"Object get_interface_def(..)\" method (will work for JDK1.2\n // ORBs).\n // Else call the delegate implementation class's\n // \"InterfaceDef get_interface(..)\" method using reflection\n // (will work for pre-JDK1.2 ORBs).\n\n throw new NO_IMPLEMENT(reason);\n }", "public String getDeviceName(){\n\t return deviceName;\n }", "public interface ControlledObjectI extends java.io.Serializable {\n /**\n * Sets the Controller for the object\n */\n public void setController(Controller controller);\n /**\n * Gets the Controller for the object\n */\n public Controller getController();\n public Object getControllerWindow();\n}", "private DisplayDevice(){\t\t\r\n\t\t\r\n\t}", "@Override\n public Object getData() {\n return devices;\n }", "public DeviceInfo() {}", "public interface SerialHelper {\n\n interface DeviceReadyListener{\n void OnDeviceReady(boolean deviceReadyStatus);\n }\n\n ArrayList<String> enumerateDevices();\n void connectDevice(String id, DeviceReadyListener deviceReadyListener);\n void disconnect();\n boolean isDeviceConnected();\n boolean writeString(String data);\n boolean writeBytes(byte[] data);\n byte readByte();\n}", "public Object getObject() ;", "public void initDevice() {\r\n\t\t\r\n\t}", "public interface DeviceService extends BaseService<PDevice,String> {\n\n int checkDeviceName(String dname);\n List<String> getallIp();\n int count();\n String authDevice(String msg1);\n void updateDeviceCon(String eid,String conStatue);\n ReType showCon(PDevice pDevice, int page, int limit);\n\n\n List<PDevice> getAlldevice();\n\n void addDevice(PDevice pDevice);\n\n void updateDeviceIp(String eid, String inetAddress);\n\n PDevice selectDevicebyeid(String eid);\n\n JsonUtil deletebydeviceId(String eid, boolean flag);\n\n void updateDevice(PDevice pDevice);\n\n\n List<HashMap<String,String>> getDeviceConnect(List<String> deviceids);\n}", "public static jag.kumamoto.apps.gotochi.stamprally.IArriveWatcherService asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof jag.kumamoto.apps.gotochi.stamprally.IArriveWatcherService))) {\nreturn ((jag.kumamoto.apps.gotochi.stamprally.IArriveWatcherService)iin);\n}\nreturn new jag.kumamoto.apps.gotochi.stamprally.IArriveWatcherService.Stub.Proxy(obj);\n}", "@Override\n protected VmNetworkInterfaceDAO getVmNetworkInterfaceDAO() {\n return super.getVmNetworkInterfaceDAO();\n }", "public interface InoObject extends JMElement {\r\n\t/** Sets the objects document name. May be null,\r\n * because a document is typically not required.\r\n\t */\r\n public void setInoDocname(String pDocname);\r\n\r\n /** Sets the objects ino:id. May be null,\r\n * because an ino:id is no longer required\r\n * nowadays.\r\n */\r\n public void setInoId(String pId);\r\n\r\n /** Returns the objects document name. May be null,\r\n * because a document is typically not required.\r\n */\r\n public String getInoDocname();\r\n\r\n /** Returns the objects ino:id. May be null,\r\n * because an ino:id is no longer required\r\n * nowadays.\r\n */\r\n public String getInoId();\r\n}", "public interface IInventoryObject extends IID\n{\n}", "On_Device_Resource createOn_Device_Resource();", "public interface USBPort {\n void workWithUSB();\n}", "public String getDeviceName() {\n return this.deviceName;\n }", "public byte[] getIntegrateInterfaceInfo() {\n return integrateInterfaceInfo;\n }", "public interface SmartDevicesDb {\n\t\n\tpublic static String INTERFACES = \"smart-interfaces\";\n\tpublic static String DEVICES = \"smart-devices\";\n\t\n\t/**\n\t * Add a new interface for smart devices, e.g. a smart home HUB or MQTT broker.\n\t * @param data - object with e.g. id, type, name, host, auth_info, auth_data, etc.\n\t * @return result code (0 - all good, 1 - no connection or error, 2 - invalid data)\n\t */\n\tpublic int addOrUpdateInterface(JSONObject data);\n\t/**\n\t * Remove interface with given ID.\n\t * @param id - ID of the interface, e.g. fhem2\n\t * @return result code (0 - all good, 1 - no connection or error)\n\t */\n\tpublic int removeInterface(String id);\n\t/**\n\t * Load all known interfaces.\n\t * @return Map with interface IDs as keys, empty map or null (error during load)\n\t */\n\tpublic Map<String, SmartHomeHub> loadInterfaces();\n\t/**\n\t * Return a cached map of interfaces (to reduce database i/o).\t\n\t */\n\tpublic Map<String, SmartHomeHub> getCachedInterfaces();\n\t\n\t/**\n\t * Add a custom smart device.\n\t * @param data - object with e.g. name, type, room, custom_commands, etc.\n\t * @return JSON with device (doc) \"id\" (if new) and result \"code\" (0=good, 1=connection err, 2=other err)\n\t */\n\tpublic JSONObject addOrUpdateCustomDevice(JSONObject data);\n\t/**\n\t * Remove custom smart device with given ID.\n\t * @param id - ID of the device\n\t * @return result code\n\t */\n\tpublic int removeCustomDevice(String id);\n\t/**\n\t * Get custom smart device with given ID.\n\t * @param id - ID of the device\n\t * @return\n\t */\n\tpublic SmartHomeDevice getCustomDevice(String id);\n\t/**\n\t * Get all custom smart devices that correspond to filter set.<br>\n\t * NOTE: If you add multiple filters the method will try to get the best fit but may return partial fits! Be sure to check the result again afterwards. \n\t * @param filters - Map with filters, e.g. type=\"light\" ({@link SmartDevice.Types}) or typeArray=\"heater, fan\" (string or collection), room=\"livingroom\" ({@link Room.Types}) or roomArray, etc.\n\t * @return\n\t */\n\tpublic Map<String, SmartHomeDevice> getCustomDevices(Map<String, Object> filters);\n\t\n\t/**\n\t * Returns a map with device type as key and a set of device names for this type as value.<br> \n\t * The method is meant to be used for example by NLU parameters to extract entities. It should return a buffered result for super fast\n\t * access.<br>\n\t * Note for developers: AVOID RELOADING during the call (except on first call) since this can slow down SEPIA's NLU chain dramatically!\n\t * @return set of device names by type\n\t */\n\tpublic Map<String, Set<String>> getBufferedDeviceNamesByType();\n\t/**\n\t * Clear device name buffer.\n\t * @return success/fail\n\t */\n\tpublic boolean clearDeviceTypeAndNameBuffer();\n\t\n}", "public static github.tornaco.android.thanos.core.pref.IPrefManager asInterface(android.os.IBinder obj)\n {\n if ((obj==null)) {\n return null;\n }\n android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\n if (((iin!=null)&&(iin instanceof github.tornaco.android.thanos.core.pref.IPrefManager))) {\n return ((github.tornaco.android.thanos.core.pref.IPrefManager)iin);\n }\n return new github.tornaco.android.thanos.core.pref.IPrefManager.Stub.Proxy(obj);\n }", "public interface IEnergyBuffer extends IElectric {\n \n public int getMaxStored();\n \n public int getStored();\n \n public void setBuffer(int energy);\n \n}", "@Override\r\n\tpublic Class getObjectType() {\n\t\treturn mapperInterface;\r\n\t}", "public AddressInfo getManagementInterface() {\r\n return managementInterface;\r\n }", "public org.thethingsnetwork.management.proto.HandlerOuterClass.Device getDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request);", "DeviceActuator createDeviceActuator();", "Device_Resource createDevice_Resource();", "public interface ICamera {\n}", "public DeviceModel getDeviceModel()\r\n\t{\r\n\t\treturn deviceModel;\r\n\t}", "public interface IScreen {\n Object getScreen(int width);\n int[] getPortSize();\n}", "public interface OsSystemCycle extends EcucContainer {\n}", "DeviceSensor createDeviceSensor();", "public iOS(){\n //super.deviceOSType = OSType.iOS;\n //super.deviceType = \"Unknown\";\n this.iOSOSVersion = 9.0;\n }", "public interface C4813ib extends IInterface {\n void beginAdUnitExposure(String str, long j) throws RemoteException;\n\n void clearConditionalUserProperty(String str, String str2, Bundle bundle) throws RemoteException;\n\n void endAdUnitExposure(String str, long j) throws RemoteException;\n\n void generateEventId(C5027vb vbVar) throws RemoteException;\n\n void getAppInstanceId(C5027vb vbVar) throws RemoteException;\n\n void getCachedAppInstanceId(C5027vb vbVar) throws RemoteException;\n\n void getConditionalUserProperties(String str, String str2, C5027vb vbVar) throws RemoteException;\n\n void getCurrentScreenClass(C5027vb vbVar) throws RemoteException;\n\n void getCurrentScreenName(C5027vb vbVar) throws RemoteException;\n\n void getGmpAppId(C5027vb vbVar) throws RemoteException;\n\n void getMaxUserProperties(String str, C5027vb vbVar) throws RemoteException;\n\n void getTestFlag(C5027vb vbVar, int i) throws RemoteException;\n\n void getUserProperties(String str, String str2, boolean z, C5027vb vbVar) throws RemoteException;\n\n void initForTests(Map map) throws RemoteException;\n\n void initialize(C4519d dVar, zzv zzv, long j) throws RemoteException;\n\n void isDataCollectionEnabled(C5027vb vbVar) throws RemoteException;\n\n void logEvent(String str, String str2, Bundle bundle, boolean z, boolean z2, long j) throws RemoteException;\n\n void logEventAndBundle(String str, String str2, Bundle bundle, C5027vb vbVar, long j) throws RemoteException;\n\n void logHealthData(int i, String str, C4519d dVar, C4519d dVar2, C4519d dVar3) throws RemoteException;\n\n void onActivityCreated(C4519d dVar, Bundle bundle, long j) throws RemoteException;\n\n void onActivityDestroyed(C4519d dVar, long j) throws RemoteException;\n\n void onActivityPaused(C4519d dVar, long j) throws RemoteException;\n\n void onActivityResumed(C4519d dVar, long j) throws RemoteException;\n\n void onActivitySaveInstanceState(C4519d dVar, C5027vb vbVar, long j) throws RemoteException;\n\n void onActivityStarted(C4519d dVar, long j) throws RemoteException;\n\n void onActivityStopped(C4519d dVar, long j) throws RemoteException;\n\n void performAction(Bundle bundle, C5027vb vbVar, long j) throws RemoteException;\n\n void registerOnMeasurementEventListener(C4690ac acVar) throws RemoteException;\n\n void resetAnalyticsData(long j) throws RemoteException;\n\n void setConditionalUserProperty(Bundle bundle, long j) throws RemoteException;\n\n void setCurrentScreen(C4519d dVar, String str, String str2, long j) throws RemoteException;\n\n void setDataCollectionEnabled(boolean z) throws RemoteException;\n\n void setEventInterceptor(C4690ac acVar) throws RemoteException;\n\n void setInstanceIdProvider(C4704bc bcVar) throws RemoteException;\n\n void setMeasurementEnabled(boolean z, long j) throws RemoteException;\n\n void setMinimumSessionDuration(long j) throws RemoteException;\n\n void setSessionTimeoutDuration(long j) throws RemoteException;\n\n void setUserId(String str, long j) throws RemoteException;\n\n void setUserProperty(String str, String str2, C4519d dVar, boolean z, long j) throws RemoteException;\n\n void unregisterOnMeasurementEventListener(C4690ac acVar) throws RemoteException;\n}", "NetworkInterface getNetworkInterface(int id);", "@Override\n public String getDeviceName() {\n return null;\n }", "public interface IHomePage extends BaseInterface{\n\n //获取设备最后数据\n void get4GPushData();\n\n //重新登录\n void reEnterIn(String loginName, String password);\n\n void getDeviceList(String loginName);\n\n\n //发送巡检指令\n void check4GData();\n\n\n void sendJTOrder(String phoneNumber);\n\n\n //开关ZB灯\n void sendOpenZBLight(String lightflag);\n\n\n //开关ZB门锁\n void sendOpenZBDoorLock(String doorlockflag);\n\n}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-06 12:51:01.210 -0400\", hash_original_method = \"7566BC2B626607E08A4F626E75CAA331\", hash_generated_method = \"BCBA63D269AC172069CC3013D225B7B0\")\n \npublic static android.print.IPrintJobStateChangeListener asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof android.print.IPrintJobStateChangeListener))) {\nreturn ((android.print.IPrintJobStateChangeListener)iin);\n}\nreturn new android.print.IPrintJobStateChangeListener.Stub.Proxy(obj);\n}", "public interface HbInterfaceInternal {\n\t/**\n\t * The cluster path is a relative path from the parent device with the following format:\n\t * &lt;cluster type&gt;/&lt;instance id&gt;\n\t * \n\t * @return the relative path from the parent device with the following format:\n\t * &lt;cluster type&gt;/&lt;instance id&gt;\n\t */\n\tpublic String getPath();\n\n\t/**\n\t * Get all the attributes\n\t * \n\t * @return a collection of attributes\n\t */\n\tpublic Collection<HbAttributeInternal> attributes();\n\n\t/**\n\t * Get attribute by name\n\t * \n\t * @param name\n\t * attribute name\n\t * @return the suitable attribute or null if they are no attribute available\n\t * with the given name\n\t */\n\tpublic HbAttributeInternal getAttribute(String name);\n\t\n}", "public interface Native {\n\n}", "interface PCI{//接口内的方法无法静态化,1.8后加入接口静态化。\n void start();\n void stop();\n}" ]
[ "0.70390016", "0.68213785", "0.68060476", "0.67690223", "0.66911894", "0.66456985", "0.663261", "0.65998983", "0.6597535", "0.6597535", "0.6542434", "0.6485562", "0.6424698", "0.64103705", "0.6408736", "0.6402556", "0.6363049", "0.63056076", "0.63043576", "0.6301273", "0.629698", "0.62757427", "0.62626624", "0.6257061", "0.62550473", "0.622237", "0.62001604", "0.61921954", "0.61858326", "0.6137007", "0.6121997", "0.61210394", "0.6111968", "0.6103139", "0.6100442", "0.6088933", "0.6077827", "0.603995", "0.6034346", "0.6030809", "0.60297495", "0.60233855", "0.60005754", "0.5958448", "0.59459496", "0.59265244", "0.5924256", "0.59122866", "0.5906586", "0.5902749", "0.59020615", "0.5877024", "0.5874283", "0.587119", "0.58675694", "0.58535564", "0.58307385", "0.5824844", "0.5822821", "0.5818391", "0.5815433", "0.5808182", "0.5807451", "0.5780046", "0.5777104", "0.57729954", "0.57728255", "0.57655144", "0.57582605", "0.5757584", "0.57541233", "0.57473445", "0.5746956", "0.5733628", "0.5723784", "0.5719038", "0.5712278", "0.57107306", "0.5709308", "0.5707591", "0.57070816", "0.5699373", "0.56850606", "0.56736654", "0.5670067", "0.5667102", "0.5651513", "0.56513625", "0.56445813", "0.56421095", "0.5641478", "0.56411386", "0.5637531", "0.5635096", "0.5633635", "0.563076", "0.56307495", "0.5618047", "0.5616351", "0.56083316" ]
0.7591194
0
Gets the application context
public static Context getAppContext() { return mContext; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Context getContext(){\n return appContext;\n }", "public static Context getAppContext() {\n return _BaseApplication.context;\n }", "public static ApplicationContext getApplicationContext() {\n return appContext;\n }", "ApplicationContext getAppCtx();", "public static ApplicationContext getApplicationContext() {\r\n\t\treturn applicationContext;\r\n\t}", "public Context getApplicationContext();", "public ApplicationContext getApplicationContext() {\n return applicationContext;\n }", "public ApplicationContext getApplicationContext()\n {\n return this.applicationContext;\n }", "static Application getContext() {\n if (ctx == null)\n // TODO: 2019/6/18\n// throw new RuntimeException(\"please init LogXixi\");\n return null;\n else\n return ctx;\n }", "Context getContext() {\n Context context = mContextRef.get();\n return context != null ? context : AppUtil.getAppContext();\n }", "public static Context getApplicationContext() { return mApplicationContext; }", "public static Context getContext() {\n\t\treturn context;\n\t}", "public static Context getContext() {\n\t\treturn context;\n\t}", "public static Context getContext() {\n if (sContext == null) {\n throw new RuntimeException(APPLICATION_CONTEXT_IS_NULL);\n }\n return sContext;\n }", "private Context getApplicationContext() {\n\t\treturn this.cordova.getActivity().getApplicationContext();\n\t}", "private Context getApplicationContext() {\n\t\treturn this.cordova.getActivity().getApplicationContext();\n\t}", "public ServletContext getApplication() {\n return servletRequest.getServletContext();\n }", "public static ApplicationContext getContext() {\n if (context == null) {\n CompilerExtensionRegistry.setActiveExtension( OTA2CompilerExtensionProvider.OTA2_COMPILER_EXTENSION_ID );\n }\n return context;\n }", "public Context getContext() {\n return context;\n }", "@Override\n public Context getContext() {\n return this.getApplicationContext();\n }", "public Context getContext() {\r\n\t\treturn context;\r\n\t}", "public Context getContext() {\n\t\treturn context;\n\t}", "public String getContext() {\n return context;\n }", "public String getContext() {\n return context;\n }", "public String getContext() {\n return context;\n }", "public String getApplicationContext()\n {\n return configfile.getApplicationPath(getASPManager().getCurrentHostIndex());\n }", "public static Context getContext() {\n\t\treturn instance;\n\t}", "public String getContext() {\r\n\t\treturn context;\r\n\t}", "public String getContext() {\n\t\treturn context;\n\t}", "public Context getContext() {\n return contextMain;\n }", "public Context getContext() {\n if (context == null) {\n context = Model.getSingleton().getSession().getContext(this.contextId);\n }\n return context;\n }", "public String getContext() { return context; }", "@Override\n public Context getApplicationContext() {\n return mView.get().getApplicationContext();\n }", "Context getContext();", "public Context getContext() {\n\t\treturn ctx;\n\t}", "public abstract ApplicationLoader.Context context();", "public Context getContext() {\n\t\treturn mContext;\n\t}", "public Context getContext() {\n return this.mService.mContext;\n }", "public ServletContext getContext() {\r\n\t\treturn new ContextWrapper(getEvent().getServletContext());\r\n\t}", "@Override\r\n\tpublic Context getContext()\r\n\t{\n\t\treturn this.getActivity().getApplicationContext();\r\n\t}", "public Context getContext() {\n return mContext;\n }", "@Provides\n @Singleton\n @ApplicationScope\n public Context provideApplicationContext() {\n return mApp.getApplicationContext();\n }", "public static ApplicationContext getInstance()\n\t{\n\t\treturn SingletonHolder.INSTANCE;\n\t}", "private Context getContext() {\n return mContext;\n }", "private Context getContext() {\n return mContext;\n }", "static synchronized Context getContext() {\n checkState();\n return sInstance.mContext;\n }", "public final Context getContext() {\n return mContext;\n }", "public ContextRequest getContext() {\n\t\treturn context;\n\t}", "Context context();", "Context context();", "public Context getContext() {\n return this.mContext;\n }", "public Context getContext() {\n return this.mContext;\n }", "public Object getContextObject() {\n return context;\n }", "public static BundleContext getContext() {\n return context;\n }", "public Context getContext() {\n if (context == null) {\n try {\n context = new InitialContext();\n } catch (NamingException exception) {\n }\n }\n return context;\n }", "Map<String, Object> getContext();", "public UserContext getUserContext();", "public ModuleContext getContext() {\r\n return context;\r\n }", "public StaticContext getUnderlyingStaticContext() {\n return env;\n }", "protected RestContext getContext() {\n\t\tif (context.get() == null)\n\t\t\tthrow new InternalServerError(\"RestContext object not set on resource.\");\n\t\treturn context.get();\n\t}", "@Override\r\n\tpublic Context getContext() {\r\n\t\treturn this.context;\r\n\t}", "public Context getContext() {\n\t\treturn null;\n\t}", "protected Application getApplication() {\r\n\t\treturn application;\r\n\t}", "public Context getContext() {\n return this;\n }", "public ContextInstance getContextInstance() {\n\t\treturn token.getProcessInstance().getContextInstance();\r\n\t}", "ContextBucket getContext() {\n\treturn context;\n }", "public IRuntimeContext getContext() {\n return fContext;\n }", "Application getApplication();", "public static Context getContext() {\r\n\t\tif (mContext == null)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\treturn mContext;\r\n\r\n\t}", "private Context getContextAsync() {\n return getActivity() == null ? IotSensorsApplication.getApplication().getApplicationContext() : getActivity();\n }", "long getCurrentContext();", "public TApplication getApplication() {\n return window.getApplication();\n }", "public static String getContext(HttpServletRequest request) {\n\t\tString context = request.getParameter(CONTEXT_KEY);\n\t\tif (context == null && Server.getInstance().getAllKnownInternalContexts().size() == 1) {\n\t\t\tcontext = (String) Server.getInstance().getAllKnownInternalContexts().toArray()[0];//req.getContextPath();\n\t\t}\n\t\t// If no or invalid context, display a list of available WebApps\n\t\tif (context == null || Server.getInstance().getApplication(context) == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn context;\n\t\t}\n\t}", "protected Activity getContext() {\n return contextWeakReference.get();\n }", "public ServletContext getServletContext() {\n return this.context;\n }", "public abstract Context context();", "public static Context getResourceContext() {\n return context;\n }", "public cl_context getContext() {\r\n return context;\r\n }", "public static WebContext getInstance() {\n return webContext;\n }", "public ServletContext getServletContext() {\n\t\treturn _context;\n\t}", "public ActionBeanContext getContext() {\r\n return context;\r\n }", "public static Activity getContext() {\n return instance;\n\n }", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "public static BundleContext getBundleContext()\r\n {\r\n return bundleContext;\r\n }", "public ExecutionContext getContext();", "private AnnotationConfigWebApplicationContext getGlobalApplicationContext() {\r\n\t\tAnnotationConfigWebApplicationContext rootContext = new AnnotationConfigWebApplicationContext();\r\n\t\t//rootContext.register(ApplicationConfig.class);\r\n\t\trootContext.register(new Class[] {ApplicationConfig.class});\r\n\t\treturn rootContext;\r\n\t}", "public RuntimeContext getRuntimeContext() {\n return runtimeContext;\n }", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "public static Context getInstance(){\n\t\treturn (Context) t.get();\n\t}", "public static ApplicationContext getInstance() {\r\n\t\tsynchronized (SpringApplicationContextProvider.class) {\r\n\t\tif (applicationContext == null) {\r\n\t\t\tapplicationContext = new ClassPathXmlApplicationContext(\r\n\t\t\t\t\tnew String[] { \"META-INF/app-context.xml\" });\r\n\t\t}\r\n\t\t}\r\n\t\treturn (ApplicationContext) applicationContext;\r\n\t}", "public Context getContext() {\n return (Context)this;\n }", "public String getSessionContext() {\n return this.SessionContext;\n }", "public static App get(Context ctx){\n return (App) ctx.getApplicationContext();\n }", "default String getContext() {\n return getContextOpt().orElseThrow(IllegalStateException::new);\n }", "private DiaryApplication getApp() {\n ServletContext application = (ServletContext) context.getMessageContext().get(MessageContext.SERVLET_CONTEXT);\n synchronized (application) {\n DiaryApplication diaryApp = (DiaryApplication) application.getAttribute(\"diaryApp\");\n if (diaryApp == null) {\n try {\n diaryApp = new DiaryApplication();\n diaryApp.setAllPath(application.getRealPath(\"WEB-INF/bookings.xml\"), application.getRealPath(\"WEB-INF/students.xml\"), application.getRealPath(\"WEB-INF/tutors.xml\"));\n application.setAttribute(\"diaryApp\", diaryApp);\n } catch (JAXBException ex) {\n Logger.getLogger(soapService.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(soapService.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return diaryApp;\n }\n }", "protected BackendContext getBackendContext() {\n assertActivityNotNull();\n return mActivity.getBackendContext();\n }", "private Context getThreadContext() throws NamingException {\n final ThreadContext threadContext = ThreadContext.getThreadContext();\n if (skipEjbContext(threadContext)) {\n return ContextBindings.getClassLoader();\n }\n final Context context = threadContext.getBeanContext().getJndiEnc();\n return context;\n }", "public static FHIRRequestContext get() {\n FHIRRequestContext result = contexts.get();\n if (log.isLoggable(Level.FINEST)) {\n log.finest(\"FHIRRequestContext.get: \" + result.toString());\n }\n return result;\n }", "protected AbstractApplicationContext getServicesContext() {\r\n\t\treturn this.servicesContext;\r\n\t}", "public PortletContext getPortletContext ()\n {\n \treturn config.getPortletContext();\n }" ]
[ "0.8746098", "0.84311223", "0.8304579", "0.82281965", "0.8206656", "0.8061354", "0.79799086", "0.79325354", "0.79133826", "0.7822299", "0.7719088", "0.77165294", "0.77165294", "0.77041197", "0.7617046", "0.7617046", "0.76075464", "0.7420828", "0.73844504", "0.7370674", "0.73179644", "0.7314486", "0.72928995", "0.72928995", "0.72928995", "0.72723454", "0.7253335", "0.71601164", "0.7159449", "0.7150517", "0.71472675", "0.71422493", "0.71160805", "0.7112698", "0.71023697", "0.71000105", "0.7079115", "0.7063508", "0.7061802", "0.7047088", "0.7030735", "0.70233816", "0.70166457", "0.7003736", "0.7003736", "0.69984233", "0.6926212", "0.6918005", "0.68905026", "0.68905026", "0.6890481", "0.6890481", "0.68762285", "0.6868413", "0.6865158", "0.68222785", "0.6814689", "0.6787997", "0.677714", "0.6771571", "0.67443085", "0.6692047", "0.6656637", "0.66088593", "0.65889937", "0.65619946", "0.6561415", "0.6557547", "0.65531486", "0.6552469", "0.6550547", "0.6546255", "0.65445626", "0.65413266", "0.65353507", "0.65336305", "0.65203875", "0.6519519", "0.6516951", "0.64978325", "0.64914143", "0.6489959", "0.6433756", "0.6422594", "0.64174813", "0.64156383", "0.64035", "0.6390145", "0.6377003", "0.63728875", "0.63710195", "0.6369625", "0.63518333", "0.6343707", "0.63401073", "0.6338686", "0.6315959", "0.62962466", "0.6291324", "0.6281665" ]
0.7598048
17
Gets the RCS service control singleton
public static RcsServiceControl getRcsServiceControl() { return mRcsServiceControl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static RCProxy instance(){\n\t\treturn SingletonHolder.INSTANCE;\n\t}", "public static final RadiusServiceStarter getInstance() {\n return starter;\n }", "public synchronized static RMIClient getInstance() {\n if (instance == null) {\n instance = new RMIClient();\n }\n\n return instance;\n }", "public Service getService() {\n return serviceInstance;\n }", "public static ServiceUtils getInstance(){\r\n\t\tif(serviceUtil == null)\r\n\t\t\tserviceUtil = new ServiceUtils();\r\n\t\t\r\n\t\treturn serviceUtil;\r\n\t}", "public static synchronized PlatformInit getService() {\n\t\tif(theService == null || theService.initialised)\n\t\t\treturn theService;\n\t\treturn null;\n\t}", "public static GeneralServices getInstance() {\r\n\t\treturn INSTANCE;\r\n\t}", "public static RadioPlayerService getRadioPlayerService() {\n\n if (radioPlayerService == null) {\n radioPlayerService = new RadioPlayerService();\n }\n\n return radioPlayerService;\n\n }", "public TTSService getService() {\n return TTSService.this;\n }", "public static Service getInstance()\n\t{\n\t\tif (serviceInstance == null)\n\t\t{\n\t\t\tserviceInstance = new Service(LocalDao.getInstance());\n\t\t}\n\t\treturn serviceInstance;\n\t}", "private Service getService() {\n return service;\n }", "public static RcsNotification getInstance() {\n return INSTANCE;\n }", "protected StatusService getStatusService() {\n return getLockssDaemon().getStatusService();\n }", "public static SchedulerService get() {\n return SINGLETON;\n }", "public static RepositoryService getInstance() {\n return instance;\n }", "public ResourceService getResourceService() {\n return resourceService;\n }", "public static CatlogImplService getInstance()\n {\n if(instance == null)\n {\n synchronized(CatlogImplService.class){\n instance = new CatlogImplService();\n }\n }\n return instance;\n }", "public static RRCPServer getInstance() {\n if (instance == null) {\n instance = new RRCPServer();\n }\n return instance;\n }", "public SsoService ssoService() {\n\t\treturn ssoService;\n\t}", "public Service getService() {\n\t\treturn _service;\n\t}", "public Object getService() {\n return service;\n }", "public go.micro.runtime.RuntimeOuterClass.Service getService() {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n }", "public go.micro.runtime.RuntimeOuterClass.Service getService() {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n }", "public go.micro.runtime.RuntimeOuterClass.Service getService() {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n }", "public static CCControl instance() {\n if (cccontrol == null) {\n return (cccontrol = new CCControl());\n } else {\n return cccontrol;\n }\n }", "public AbstractService getService() {\n return service;\n }", "public static ThreadedPmClientInstanceResolver get() {\n\t\t// synchronization :: rely on registry to return same impl\n\t\tif (instance == null) {\n\t\t\tinstance = Registry.impl(ThreadedPmClientInstanceResolver.class);\n\t\t}\n\t\treturn instance;\n\t}", "public static CarRental getInstance() {\r\n\t\treturn INSTANCE;\r\n\t}", "public static LocationServices getInstance() {\n\t\tif (instance == null) {\t\n\t\t\tinstance = new LocationServices();\n\t\t}\n\t\treturn instance;\n\t}", "public Service getService() {\n\t\treturn this;\n\t}", "public static LocalVpnService getInstance() {\n\n return instance;\n }", "public SyncJobService getSyncJobService() {\n\t\tif (syncJobService == null) {\n\t\t\tsyncJobService = Registry.getCoreApplicationContext().getBean(\"syncJobService\", SyncJobService.class);\n\t\t}\n\t\treturn syncJobService;\n\t}", "public static RMIUtils getInstance() {\n return InstanceHolder.INSTANCE;\n }", "public IServerService getService() {\n return ServerService.this;\n }", "public static Controller getInstance() { return INSTANCE; }", "MainService getService() {\n return MainService.this;\n }", "private SparkeyServiceSingleton(){}", "public static ServerServiceAsync getService() {\n\n return GWT.create(ServerService.class);\n }", "public static Settings get() {\n return INSTANCE;\n }", "public static RssFeedServiceImpl getInstance()\n {\n if (single_instance == null)\n single_instance = new RssFeedServiceImpl();\n \n return single_instance;\n }", "private static synchronized ParticipantService getParticipantService()\n {\n if (participantService.get() == null) {\n participantService.set(new ParticipantService());\n }\n return participantService.get();\n }", "public synchronized static WSControlador getControlador() {\n if (instancia == null) {\n instancia = new WSControlador();\n }\n return instancia;\n }", "public static SelectorFactory getInstance() {\n return ServiceFactoryHolder.INSTANCE;\n }", "public static AngleCalculatorService getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new AngleCalculatorService();\n\t\t}\n\n\t\treturn instance;\n\t}", "public static ResourcesHolder getInstance() {\n\t\tif (instance==null)\n\t\t{\n\t\t\tinstance=new ResourcesHolder();\n\t\t}\n\t\treturn instance;\n\n\n\t}", "public static synchronized SubscriptionHelper getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new SubscriptionHelper();\n\t\t}\n\t\treturn instance;\n\t}", "public String getService() {\n\t\treturn service.get();\n\t}", "public static GameController getInstance() {\n\t\treturn INSTANCE; \n\t}", "public static ServiceLocator getInstance() {\r\n\t\tif(serviceLocator == null) {\r\n\t\t\tserviceLocator = new ServiceLocator();\r\n\t\t}\r\n\t\treturn serviceLocator;\r\n\t}", "@Override\n\tpublic IServiceControlAccesoOrd getControlAccesoOrdService() {\n\t\tif (conAccOrdService == null) {\n\t\t\tconAccOrdService = (IServiceControlAccesoOrd) BeanUtil.getBeanName(\"ControlAccesoOrdBean\");\n\t\t}\n\t\treturn conAccOrdService;\n\t}", "public static ServiceFactory getInstance(){\n\t\tif(instance == null)\n\t\t\tinstance = new ServiceFactory();\n\t\treturn instance;\n\t}", "public StatusService getStatusService() {\r\n return this.statusService;\r\n }", "private RepositoryService getRepositoryService() {\n\t\tif (repositoryService == null && getServletContext() != null) {\n\t\t\tthis.repositoryService = (RepositoryService) getServletContext().getAttribute(\"repositoryService\");\n\t\t}\n\t\treturn this.repositoryService;\n\t}", "public static ReportService getInstance()\n {\n return reportService;\n }", "public static Singleton getInstance() {\n return SingletonHolder.SINGLETON_INSTANCE;\n }", "public static ServiceLocatorFactory getInstance() {\n return INSTANCE;\n }", "public static RestClient getInstance() {\n synchronized (RestClient.class) {\n if (ourInstance == null) {\n ourInstance = new RestClient();\n }\n }\n return ourInstance;\n }", "public static Singleton getInstance( ) {\n return singleton;\n }", "static SerialCommunication getInstance() {\r\n\t\treturn INSTANCE;\r\n\t}", "TestpressService getService() {\n if (CommonUtils.isUserAuthenticated(activity)) {\n try {\n testpressService = serviceProvider.getService(activity);\n } catch (IOException | AccountsException e) {\n e.printStackTrace();\n }\n }\n return testpressService;\n }", "public static Singleton getInstance() {\n return mSing;\n }", "public TPSControlWebServiceClient() {\n controlExecutor = newControlExecutor();\n controlExecutor.setControlUnit(TimeUnit.SECONDS);\n Executor executor = new RetryExecutor();\n ((RetryExecutor)executor).setExecutor(controlExecutor);\n this.setExecutor(executor);\n }", "LocService getService() {\n return LocService.this;\n }", "public static FluentdRemoteSettings getInstance() {\n return INSTANCE;\n }", "private HttpService getHTTPService() {\n\t\tHttpService sobjHTTPService = null;\n\t\tServiceReference srefHTTPService = bc\n\t\t\t\t.getServiceReference(HttpService.class.getName());\n\n\t\tif (srefHTTPService != null) {\n\t\t\tsobjHTTPService = (HttpService) bc.getService(srefHTTPService);\n\t\t} else {\n\t\t\tlogger.error(\"Could not find a HTTP service\");\n\t\t\treturn null;\n\t\t}\n\n\t\tif (sobjHTTPService == null) {\n\t\t\tlogger.error(\"Could retrieve the HTTP service\");\n\t\t\treturn null;\n\t\t}\n\n\t\treturn sobjHTTPService;\n\t}", "public static FcRenewalManager getInstance() {\n try {\n logger.methodStart();\n if (instance == null) {\n instance = new FcRenewalManager();\n }\n return (FcRenewalManager) instance;\n } finally {\n logger.methodEnd();\n }\n }", "public static ResourceManager getInstance() {\n if (instance == null)\n instance = new ResourceManager();\n return instance;\n }", "public static SinglController getController(){\n if (scl==null) {\n TemperatureSensor tmpsen = new TemperatureSensor(\"Kitchen\");\n LightSensor lsen = new LightSensor (\"Kitchen\");\n scl=new SinglController(tmpsen,lsen);\n }\n return scl;\n }", "public static Singleton getInstance( ) {\n return singleton;\n }", "private static synchronized InitiatorService getInitiatorService()\n {\n if (initiatorService.get() == null) {\n initiatorService.set(new InitiatorService());\n }\n return initiatorService.get();\n }", "public String getService() {\n return this.service;\n }", "public String getService() {\n return this.service;\n }", "public String getService() {\n return this.service;\n }", "public String getService() {\n return service;\n }", "public String getService() {\n return service;\n }", "public String getService() {\n return service;\n }", "public static RpcClient getInstance() {\n\t\tif (instance == null) {\n\t\t\tsynchronized (RpcClient.class) {\n\t\t\t\tif (instance == null) {\n\t\t\t\t\tinstance = new RpcClient(\"ye-cheng.duckdns.org\", 8980); // FIXME: ugly hard code\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}", "public go.micro.runtime.RuntimeOuterClass.Service getService() {\n if (serviceBuilder_ == null) {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n } else {\n return serviceBuilder_.getMessage();\n }\n }", "public go.micro.runtime.RuntimeOuterClass.Service getService() {\n if (serviceBuilder_ == null) {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n } else {\n return serviceBuilder_.getMessage();\n }\n }", "public go.micro.runtime.RuntimeOuterClass.Service getService() {\n if (serviceBuilder_ == null) {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n } else {\n return serviceBuilder_.getMessage();\n }\n }", "public static ServiceLocator instance() {\n\t\tif(instance == null){\n\t\t\tinstance = new ServiceLocator();\n\t\t\tinstance.initializeCache();\n\n\t\t\tinstance.initializeCache();\n\t\t\tinstance.loadFileApplication(RESOURCE_BUNDLE_DEVELOPMENT);\n\t\t\t//instance.loadFileApplication(RESOURCE_BUNDLE_CHEMIN);\t\t\t\n\t\t}\n\n\t\treturn instance;\t\n\t}", "public ConnecService connecService() {\n\t\treturn connecService;\n\t}", "public static JDRestartController getInstance() {\r\n return JDRestartController.INSTANCE;\r\n }", "go.micro.runtime.RuntimeOuterClass.Service getService();", "go.micro.runtime.RuntimeOuterClass.Service getService();", "go.micro.runtime.RuntimeOuterClass.Service getService();", "public static UIManager getInstance() {\n return ourInstance;\n }", "public SubResource swappableCloudService() {\n return this.swappableCloudService;\n }", "public Text getService() {\n return service;\n }", "public static ResourceManager getInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\tinstance = new ResourceManager();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "public static WPVService createInstance() {\n if ( CONFIG != null )\n return new WPVService( CONFIG );\n return null;\n }", "static public AtomSlinger Get_Instance ()\n {\n return AtomSlingerContainer._instance;\n }", "public static ResourcesManager getInstance() {\n\n if (instance == null) {\n instance = new ResourcesManager();\n }\n return instance;\n\n }", "public static TCPClient getController(){\n if(tcps==null){\n tcps=new TCPClient();\n }\n return tcps;\n }", "protected TravelRulesService getTravelRulesService()\n\t{\n\t\treturn travelRulesService;\n\t}", "protected static KShingler getInstance() {\n return ShinglerSingleton.INSTANCE;\n }", "static synchronized public StyleManager getInstance() {\n\t\tif (_instance == null)\n\t\t\t_instance = new StyleManager();\n\t\treturn _instance;\n\t}", "public static AccessSub getInstance() {\n\t\treturn instance;\n\t}", "public LocationService getService()\n {\n return LocationService.this;\n }", "public static synchronized APIClient getINSTANCE() {\n if (INSTANCE == null) {\n INSTANCE = new APIClient();\n }\n return INSTANCE;\n }" ]
[ "0.6793711", "0.6516552", "0.6410248", "0.6372726", "0.6365056", "0.63190407", "0.6278899", "0.6269949", "0.62232363", "0.62115914", "0.62014616", "0.6193816", "0.6186206", "0.61792386", "0.6172333", "0.6170132", "0.61246914", "0.61245525", "0.61216277", "0.6108766", "0.6099588", "0.6095943", "0.6095943", "0.6095943", "0.6081651", "0.6007752", "0.60042083", "0.6001188", "0.5997634", "0.59685796", "0.5957076", "0.59029233", "0.5897049", "0.5861718", "0.5856262", "0.58551735", "0.5831897", "0.5820699", "0.58150846", "0.5812365", "0.580425", "0.57829535", "0.5776116", "0.575329", "0.57466555", "0.5720813", "0.5720536", "0.57157916", "0.5714681", "0.5712624", "0.57040495", "0.5675606", "0.5664743", "0.5652445", "0.5650218", "0.5649462", "0.5634814", "0.5628653", "0.5628455", "0.5626745", "0.56163925", "0.56155014", "0.5606986", "0.5600223", "0.5597535", "0.5596324", "0.5587073", "0.5585421", "0.5573132", "0.557105", "0.5568522", "0.5568522", "0.5568522", "0.5567911", "0.5567911", "0.5567911", "0.5567357", "0.5561301", "0.5561301", "0.5561301", "0.5559417", "0.5552915", "0.5552274", "0.5547806", "0.5547806", "0.5547806", "0.55443704", "0.5543366", "0.55417037", "0.55407643", "0.5530824", "0.5517616", "0.55152917", "0.55051464", "0.5504694", "0.5494678", "0.5485257", "0.5481629", "0.5481314", "0.54803014" ]
0.7887058
0
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Thread timer = new Thread() { public void run() { try { sleep(2500); if (android.os.Build.VERSION.SDK_INT >= 11) { startActivity(new Intent( "com.gameprobabilities.siokas.MAIN_ACTIVITY")); } else{ startActivity(new Intent("com.gameprobabilities.siokas.MENU")); } } catch (Exception e) { e.printStackTrace(); } finally { finish(); } } }; timer.start(); }
{ "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
for stack add operation
@Test void whenElementAddedToStackLastElementShouldTop() { MyNode<Integer> myFirstNode = new MyNode<>(70); MyNode<Integer> mySecondNode = new MyNode<>(30); MyNode<Integer> myThirdNode = new MyNode<>(56); MyStack myStack = new MyStack(); myStack.push(myFirstNode); myStack.push(mySecondNode); myStack.push(myThirdNode); boolean result = myStack.head.equals(myFirstNode) && myStack.head.getNext().equals(mySecondNode) && myStack.tail.equals(myThirdNode); Assertions.assertTrue(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addition() throws Exception {\n\t\tif(!(stackBiggerThanTwo())) throw new Exception(\"Stack hat zu wenig einträge mindestens 2 werden gebraucht!!\");\n\t\telse{\n\t\t\tvalue1=stack.pop();\n\t\t\tvalue2=stack.peek();\n\t\t\tstack.push(value2+value1);\n\t\t}\n\t\t\n\t}", "static void stackPush(Stack<Integer> stack)\r\n\t{\r\n\t\tfor(int i=0;i<5;i++)\r\n\t\t{\r\n\t\t\tstack.push(i*5);\r\n\t\t}\r\n\t\tSystem.out.println(\"Printing the stack value which is push:\");\r\n\t\tSystem.out.println(\"Push :\"+stack +\"\\nsize of stack: \"+ stack.size());\r\n\t}", "public void push(E object) {stackList.insertAtFront(object);}", "public void add(T val){\n myCustomStack[numElements] = val; // myCustomStack[0] = new value, using numElements as index of next open space\n numElements++; //increase numElements by one each time a value is added to the stack, numElements will always be one more than number of elements in stack\n resize(); //call resize to check if array needs resizing\n }", "public void add() {\n //TODO: Fill in this method, then remove the RuntimeException\n throw new RuntimeException(\"RatPolyStack->add() unimplemented!\\n\");\n }", "private void addOp(Scanner input) {\n\t\tprogramStack.add(\"add\");\n\t\tString firstToken = input.next();\n\t\tif(firstToken.equalsIgnoreCase(\"add\"))\n\t\t\taddOp(input);\n\t\telse\n\t\t\tprogramStack.push(firstToken);\n\n\t\tString secondToken = input.next();\n\t\tif(secondToken.equalsIgnoreCase(\"add\"))\n\t\t\taddOp(input);\n\t\telse\n\t\t\tprogramStack.push(secondToken);\n\n\t\tint val2;\n\t\tif (isVariable(programStack.peek()))\n\t\t\tval2 = getRAMValue(programStack.pop());\n\t\telse\n\t\t\tval2 = Integer.parseInt(programStack.pop());\n\n\t\tint val1;\n\t\tif (isVariable(programStack.peek()))\n\t\t\tval1 = getRAMValue(programStack.pop());\n\t\telse\n\t\t\tval1 = Integer.parseInt(programStack.pop());\n\n\t\tint sum = val1 + val2;\n\n\t\tprogramStack.pop();\n\t\tprogramStack.push(Integer.toString(sum));\n\n\t}", "@Override\r\n\tpublic void push() {\n\t\tSystem.out.println(\"Push logic for Fixed Stack\");\r\n\t\t\r\n\t}", "public void push(AnyType e) throws StackException;", "private final void push(Object ob) {\r\n\t\teval_stack.add(ob);\r\n\t}", "public void push(T value) {\n \tstack.add(value);\n }", "void push(int e) {\r\n\t\tif (top==stack.length) {\r\n\t\t\tmakeNewArray();\r\n\t\t}\r\n\t\tstack[top] = e;\r\n\t\ttop++;\r\n\t}", "@SubL(source = \"cycl/stacks.lisp\", position = 2898) \n public static final SubLObject stack_push(SubLObject item, SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n _csetf_stack_struc_elements(stack, cons(item, stack_struc_elements(stack)));\n _csetf_stack_struc_num(stack, Numbers.add(stack_struc_num(stack), ONE_INTEGER));\n return stack;\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 }", "private void add() {\n\n\t}", "public void push (E item){\n this.stack.add(item);\n }", "@Override\r\n\tpublic void push(E e) {\r\n\t\tif (size() == stack.length)\r\n\t\t\texpandArray();\r\n\t\tstack[++t] = e; // increment t before storing new item\r\n\t}", "void setStack(int[][][] add);", "public void pushStack(int newStack){\n // creates a new object\n GenericStack temp = new GenericStack(newStack);\n temp.next = top;\n top = temp;\n }", "@Override\r\n\tpublic boolean push(T e) {\r\n\t\tif(!isFull()) {\r\n\t\t\tstack[topIndex + 1] = e;\r\n\t\t\ttopIndex++;\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public StoredEnergyStack getStackToAdd(long inputSize, StoredEnergyStack stack, StoredEnergyStack returned) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void push() {\n\t\tSystem.out.println(\"Push logic for Dynamic Stack\");\r\n\t}", "Stack<Operation> addOperation(Stack<Operation> operationStack, String token) {\n\n final Stack<Operation> newStack = new Stack<>();\n newStack.addAll(operationStack);\n\n newStack.add(Operation.formString(token));\n\n return newStack;\n }", "private void addRValueToStack (){\n if (numStack.size() < 23){\n numStack.push(rValues[rCount]);\n if(rCount< rValues.length){ // cycles through the 'r' values\n rCount++;\n }\n else{ \n rCount=0; // if end of r values reached, rCount is set to 0.\n }\n }\n else {\n System.out.println(\"Stack overflow.\"); \n }\n }", "public void testPush() {\n assertEquals(this.stack.size(), 10, 0.01);\n this.stack.push(10);\n assertEquals(this.stack.size(), 11, 0.01);\n assertEquals(this.stack.peek(), 10, 0.01);\n }", "@Test\n public void addAllTypesTest(){\n stack.addToAllTypes(stack2);\n ResourceStack stack3 = new ResourceStack(3, 5, 7, 9);\n assertEquals(stack3.toString(), stack.toString());\n\n stack.addToAllTypes(stack2);\n stack3 = new ResourceStack(5, 8, 11, 14);\n assertEquals(stack3.toString(), stack.toString());\n }", "default ItemStack addStack(ItemStack stack) {\n for (IInventoryAdapter inv : this) {\n InventoryManipulator im = InventoryManipulator.get(inv);\n stack = im.addStack(stack);\n if (InvTools.isEmpty(stack))\n return InvTools.emptyStack();\n }\n return stack;\n }", "void push(int stackNum, int value) throws Exception{\n\t//check if we have space\n\tif(stackPointer[stackNum] + 1 >= stackSize){ //last element\n\t\tthrows new Exception(\"Out of space.\");\n\t}\n\n\t//increment stack pointer and then update top value\n\tstackPointer[stackNum]++; \n\tbuffer[absTopOfStack(stackNum)] = value;\n}", "private void push( Card card ) {\r\n undoStack.add( card );\r\n }", "public void push(int x) {\n this.stack1.add(x);\n }", "public void push(Item item){\n this.stack.add(item);\n\n }", "private static void push(Stack<Integer> top_ref, int new_data) {\n //Push the data onto the stack\n top_ref.push(new_data);\n }", "public Integer add();", "void push(T value) {\n if (stackSize == stackArray.length) {\n resizeArray();\n }\n stackArray[stackSize++] = value;\n }", "public void add() {\n\t\t\n\t}", "public void push(int x) {\n stack.add(x);\n }", "@Override\r\n public void push (T operando){\r\n miLista.add(operando);\r\n posicion++;\r\n }", "public void push(T o) {\r\n\t\tadd(o);\t\r\n\t}", "public void push(int elem);", "@Override\n\tpublic void push(T element) {\n\t\tif(top == stack.length) \n\t\t\texpandCapacity();\n\t\t\n\t\tstack[top] = element;\n\t\ttop++;\n\n\t}", "static void push(Stack<Integer> top_ref, int new_data) {\r\n // Push the data onto the stack\r\n top_ref.push(new_data);\r\n }", "public StackPushSingle()\n {\n super(\"PushStackSingle\");\n }", "public void push(E inValue)\n {\n stack.insertFirst(inValue);\n }", "@Test\r\n\tpublic void addPatientStackTest() {\r\n\t\tstack.addPatient(sp1);\r\n\t\tAssert.assertEquals(\"failed to add patient to StackHospital\", 1, stack.numPatients(),0.0000001);\r\n\t\t\r\n\t\tstack.addPatient(sp2);\r\n\t\tAssert.assertEquals(\"allPatientInfo incorrect for Stack Hospital\",sp1.toString() + sp2.toString(), stack.allPatientInfo());\r\n\t}", "public void push(int x) {\n stk1.push(x);\n }", "public void push(Object obj) {\n if (top < stack.length - 1) {\n stack[++top] = obj;\n }\n else\n {\n increaseStackSize(1);\n stack[++top] = obj; \n }\n }", "public void add(HayStack stack){\n if(canMoveTo(stack.getPosition())){\n mapElement.put(stack.getPosition(), stack);\n }\n else{\n throw new IllegalArgumentException(\"UnboundedMap.add - This field is occupied\");\n }\n }", "@Test\n public void pushOnStackTest_Correct(){\n assertEquals(stack.getTop().getData() , stack.getStack().returnFirst());\n }", "void push(E e);", "void push(E e);", "@Override\n\tpublic void visit(AdditionListNode node) {\n\t\tstackPair.push(new Pair<>(\"+\", 2));\n\t\tnode.getNext().accept(this);\n\t}", "String stackAdd(String a, String b){\n\n Stack<Character> SA = new Stack<Character>();\n Stack<Character> SB = new Stack<Character>();\n\n for (int i = 0; i < a.length(); i++) { SA.add( a.charAt(i)); }\n for (int i = 0; i < b.length(); i++) { SB.add( b.charAt(i)); }\n\n int SAL = SA.size();\n int SBL = SB.size();\n\n int resultCap = Math.max(SAL, SBL) + 1;\n int carry = 0;\n\n char [] arr = new char[resultCap];\n\n int index = arr.length - 1;\n\n while ( !SA.empty() || !SB.empty()) {\n\n int ANUM = 0;\n int BNUM = 0;\n\n if (!SA.empty()) { ANUM = SA.pop() - 48; }\n if (!SB.empty()) { BNUM = SB.pop() - 48; }\n\n int sum = ANUM + BNUM + carry;\n\n if ( sum > 9) {\n carry = 1;\n arr[index] = (char) ((sum - 10 ) + 48);\n\n } else {\n carry = 0;\n arr[index] = (char) (sum + 48);\n }\n\n index--;\n\n }\n\n \treturn new String(arr);\n }", "@Override\r\n\tpublic int add() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic void push(AnyType data) throws StackException {\n\t\ttop = new Node<AnyType>(data,top);\r\n\t}", "public void push(int element) {\n stack1.push(element);\n }", "public void push(int x) {\r\n inStack.push(x);\r\n }", "@Override\n public ListNode<T> push(T e) {\n \treturn new ListNode<T>(e, this);\n }", "public void push(int value){\n // check if there is stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // check if stack is full or not\n if(this.topOfStack==(this.arr.length-1)){\n System.out.println(\"Stack is full, Can't push into stack\");\n return;\n }\n // if stack is empty\n this.topOfStack++;\n this.arr[this.topOfStack]=value;\n }", "void push(int a)\n\t{\n\t // Your code here\n\t top++;\n\t arr[top]=a;\n\t}", "public void push(int x) {\n s1.push(x);\n }", "public void push(E e) {\n\t\ttop = new SNode<E>(e, top);\n\t}", "@Override\n public E push(final E obj) {\n // TODO\n top = new Node<>(obj, top);\n return obj;\n }", "public Block push(Block blockToAdd){\n\t\tif(tail == (ds.length - 1)){ //checks if stack is full\n\t\t\tSystem.out.println(\"Stack is full!\");\n\t\t\treturn ds[tail];\n\t\t}\n\t\ttail++;\n\t\tds[tail] = blockToAdd;\n\t\treturn blockToAdd;\n\t}", "public void push(int x) {\n this.stack1.push(x);\n }", "@Override\n public void outPlusExp(PlusExp node)\n {\n Type lexpType = this.mCurrentST.getExpType(node.getLExp());\n Type rexpType = this.mCurrentST.getExpType(node.getRExp());\n mPrintWriter.println(\"#Addddddddddddding\");\n Label l1 = new Label();\n Label l0 = new Label();\n Label l2 = new Label();\n Label l3 = new Label();\n //# Load constant int 1\n if(lexpType == Type.BYTE && rexpType == Type.INT){\n /*mPrintWriter.println(\"ldi r24,lo8(\"+node.getLExp().value+\")\");\n mPrintWriter.println(\"ldi r25,hi8(\"+node.getLExp().value+\")\");\n //# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n //# Load constant int 0\n mPrintWriter.println(\"ldi r24,lo8(\"+node.getRExp().value+\")\");\n mPrintWriter.println(\"ldi r25,hi8(\"+node.getRExp().value+\")\");\n //# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n //# Casting int to byte by popping\n //# 2 bytes off stack and only pushing low order bits\n //# back on. Low order bits are on top of stack.\n mPrintWriter.println(\"pop r24\");\n mPrintWriter.println(\"pop r25\");\n mPrintWriter.println(\"push r24\");*/\n //# load a one byte expression off stack\n mPrintWriter.println(\"pop r18\");\n mPrintWriter.println(\"pop r19\");\n //mPrintWriter.println(# load a one byte expression off stack\n mPrintWriter.println(\"pop r24\");\n //mPrintWriter.println(# promoting a byte to an int\n mPrintWriter.println(\"tst r24\");\n mPrintWriter.println(\"brlt \" + l0);\n mPrintWriter.println(\"ldi r25, 0\");\n mPrintWriter.println(\"jmp \" + l1);\n mPrintWriter.println(l0 + \":\");\n mPrintWriter.println(\"ldi r25, hi8(-1)\");\n mPrintWriter.println( l1 + \":\");\n\n // mPrintWriter.println(# Do add operation\n mPrintWriter.println(\"add r24, r18\");\n mPrintWriter.println(\"adc r25, r19\");\n //mPrintWriter.println(# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n }\n else if(lexpType == Type.BYTE && rexpType == Type.BYTE){\n /*mPrintWriter.println(\"ldi r24,lo8(\"+node.getLExp().value+\")\");\n mPrintWriter.println(\"ldi r25,hi8(\"+node.getLExp().value+\")\");\n //# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n //# Casting int to byte by popping\n //# 2 bytes off stack and only pushing low order bits\n //# back on. Low order bits are on top of stack.\n mPrintWriter.println(\"pop r24\");\n mPrintWriter.println(\"pop r25\");\n mPrintWriter.println(\"push r24\");\n mPrintWriter.println(\"ldi r24,lo8(\"+node.getRExp().value+\")\");\n mPrintWriter.println(\"ldi r25,hi8(\"+node.getRExp().value+\")\");\n //# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n //# Casting int to byte by popping\n //# 2 bytes off stack and only pushing low order bits\n //# back on. Low order bits are on top of stack.\n mPrintWriter.println(\"pop r24\");\n mPrintWriter.println(\"pop r25\");\n mPrintWriter.println(\"push r24\");*/\n //# load a one byte expression off stack\n mPrintWriter.println(\"pop r18\");\n //# load a one byte expression off stack\n mPrintWriter.println(\"pop r24\");\n //# promoting a byte to an int\n mPrintWriter.println(\"tst r24\");\n mPrintWriter.println(\"brlt \" + l0);\n mPrintWriter.println(\"ldi r25, 0\");\n mPrintWriter.println(\"jmp \" + l1);\n mPrintWriter.println(l0 + \":\");\n mPrintWriter.println(\"ldi r25, hi8(-1)\");\n mPrintWriter.println( l1 + \":\");\n //# promoting a byte to an int\n mPrintWriter.println(\"tst r18\");\n mPrintWriter.println(\"brlt \" + l2);\n mPrintWriter.println(\"ldi r19, 0\");\n mPrintWriter.println(\"jmp \" + l3);\n mPrintWriter.println(l2 + \":\");\n mPrintWriter.println(\"ldi r19, hi8(-1)\");\n mPrintWriter.println(l3 + \":\");\n\n //mPrintWriter.println(# Do add operation\n mPrintWriter.println(\"add r24, r18\");\n mPrintWriter.println(\"adc r25, r19\");\n //mPrintWriter.println(# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n }\n else if(lexpType == Type.INT && rexpType == Type.BYTE){\n /*mPrintWriter.println(\"ldi r24,lo8(\"+node.getLExp().value+\")\");\n mPrintWriter.println(\"ldi r25,hi8(\"+node.getLExp().value+\")\");\n //mPrintWriter.println(# push two byte expression onto stack);\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n //mPrintWriter.println(# Casting int to byte by popping);\n //mPrintWriter.println(# 2 bytes off stack and only pushing low order bits);\n //mPrintWriter.println(# back on. Low order bits are on top of stack.);\n mPrintWriter.println(\"pop r24\");\n mPrintWriter.println(\"pop r25\");\n mPrintWriter.println(\"push r24\");\n //mPrintWriter.println(# Load constant int 0);\n mPrintWriter.println(\"ldi r24,lo8(\"+node.getRExp().value+\")\");\n mPrintWriter.println(\"ldi r25,hi8(\"+node.getRExp().value+\")\");\n //# push two byte expression onto stack);\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");*/\n //# load a two byte expression off stack);\n mPrintWriter.println(\"pop r18\");\n //mPrintWriter.println(\"pop r19\");\n //# load a one byte expression off stack\n mPrintWriter.println(\"pop r24\");\n mPrintWriter.println(\"pop r25\");\n //# promoting a byte to an int\n mPrintWriter.println(\"tst r18\");\n mPrintWriter.println(\"brlt\" + l0);\n mPrintWriter.println(\"ldi r19, 0\");\n mPrintWriter.println(\"jmp \" + l1);\n mPrintWriter.println(l0 + \":\");\n mPrintWriter.println(\"ldi r19, hi8(-1)\");\n mPrintWriter.println(l1 + \":\");\n\n //mPrintWriter.println(# Do add operation\n mPrintWriter.println(\"add r24, r18\");\n mPrintWriter.println(\"adc r25, r19\");\n //mPrintWriter.println(# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n }\n else{\n mPrintWriter.println(\"pop r18\");\n mPrintWriter.println(\"pop r19\");\n //# load a one byte expression off stack\n mPrintWriter.println(\"pop r24\");\n mPrintWriter.println(\"pop r25\");\n\n mPrintWriter.println(\"add r24, r18\");\n mPrintWriter.println(\"adc r25, r19\");\n //mPrintWriter.println(# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n }\n }", "public void push(Object ob){\n \t Stack n_item=new Stack(ob);\n \tn_item.next=top;\n \ttop=n_item;\n }", "public void push(int element) {\n while (!stack1.isEmpty()){\n stack2.push(stack1.pop());\n }\n stack1.push(element);\n while(!stack2.isEmpty()){\n stack1.push(stack2.pop());\n }\n }", "@Override\r\n\tpublic void push(E e) {\n\t\t\r\n\t}", "@Override\n\tpublic void visit(Addition arg0) {\n\t\t\n\t}", "public void stackPush(int element) {\r\n\t\ttop++;\r\n\t\tarray[top] = element;\r\n\t\tcount++;\r\n\t }", "@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}", "public void push(int x) {\n s1.push(x);\n }", "public void push(int x) {\n s1.push(x);\n }", "public void push(int x) {\n s1.push(x);\n }", "@Override\n\tpublic void visit(Addition arg0) {\n\n\t}", "public abstract void push(SDGNode call);", "public Integer push(Integer val){\n return runStack.push(val);\n }", "public void push(int x) {\n pushStack.add(x);\n }", "void push1(int x, TwoStack sq)\n {\n \n if(sq.top1<sq.size/2)\n {\n sq.top1++;\n sq.arr[sq.top1]=x;\n }\n \n \n \n \n }", "public void push(T x);", "public void add();", "public void push(int x) {\r\n stack.offer(x);\r\n }", "void push(T t);", "public void push(int data){\n \tif(top == size)\n \tSystem.out.println(\"Stack is overflow\");\n \telse{\n \ttop++;\n \telements[top]=data;\n \t} \n\t}", "private void pushStackStackForward( ThroughNode aNode ) {\n List<ThroughNode> curStack = nodeStackStack.peek();\n List<ThroughNode> newStack = new ArrayList<>(curStack.size()+1);\n newStack.add(aNode);\n newStack.addAll(curStack);\n nodeStackStack.push(newStack);\n }", "public void push(int x) {\n push.push(x);\n }", "public void push(int x) {\n inSt.push(x);\n\n }", "private void push(int b) {\n\n\t\tmemory[--sp] = b;\n\t}", "public void push(int x) {\n storeStack.push(x);\n }", "public void push(int x) {\n stack1.push(x);\n }", "public void push(int value){\n //To be written by student\n localSize++;\n top++;\n if(localSize>A.getSize()){\n A.doubleSize();\n try{\n A.modifyElement(value,top);\n }catch(Exception c){c.printStackTrace();}\n }\n else{try{\n A.modifyElement(value,top);\n }catch(Exception a){a.printStackTrace();} }\n }", "public void push( int value ) throws StackOverflowException { }", "boolean push(int x) \r\n {\n if(top >= (MAX-1))\r\n {\r\n System.out.println(\"Stack Overflow Occurred!\");\r\n return false;\r\n }\r\n //Write your code here\r\n a[++top] = x;\r\n System.out.println(\"Pushed \" + x + \" into stack\");\r\n return true;\r\n }", "public void push(T item)\r\n\t{\r\n\t\t if (size == Stack.length) \r\n\t\t {\r\n\t\t\t doubleSize();\r\n\t }\r\n\t\tStack[size++] = item;\r\n\t}", "public void push() throws EvaluationException {\n\t\tsetTimeout(Integer.MAX_VALUE);\n\t\tprintln(\"(push 1)\");\n\t\tcheckSuccess();\n\t\tsymbolsByStackPos.addLast(new HashSet<>());\n\t}", "public void push(int x) {\r\n stack.offer(x);\r\n }", "abstract void add();", "@Test\n public void pushOnStackTest_InCorrect(){\n assertNotEquals(10 , stack.getStack().returnFirst());\n }", "@Override\n public void push(E z){\n if(isFull()){\n expand();\n System.out.println(\"Stack expanded by \"+ expand+ \" cells\");\n }\n stackArray[count] = z;\n count++;\n }", "@Override\n\tpublic void add() {\n\t\t\n\t}" ]
[ "0.74863386", "0.68451667", "0.6829941", "0.6778301", "0.6765702", "0.6753212", "0.6741733", "0.6731417", "0.6691714", "0.668319", "0.66613287", "0.6603042", "0.65937847", "0.6586517", "0.65840566", "0.65681154", "0.65447825", "0.653741", "0.65287334", "0.6527419", "0.65244883", "0.6496889", "0.64934826", "0.6472873", "0.6460785", "0.64367926", "0.6397071", "0.63917744", "0.6375978", "0.63757956", "0.6325272", "0.6316334", "0.63074774", "0.6303797", "0.62950754", "0.6287697", "0.6262828", "0.6260986", "0.62605613", "0.6257905", "0.6256341", "0.62531865", "0.6247622", "0.6242954", "0.6235001", "0.6232009", "0.6218412", "0.61910594", "0.61910594", "0.6189325", "0.6179351", "0.6165892", "0.6165232", "0.61644024", "0.61643535", "0.61627847", "0.6156839", "0.61553836", "0.6149136", "0.6147176", "0.61444", "0.6144066", "0.6137763", "0.61374056", "0.6136136", "0.61318487", "0.6131139", "0.6126556", "0.61209023", "0.6120899", "0.6120899", "0.6120899", "0.6119914", "0.6119914", "0.6119914", "0.61197484", "0.6115602", "0.61061096", "0.6097389", "0.60962844", "0.60938317", "0.60916", "0.6090426", "0.6089949", "0.6086991", "0.60808414", "0.6078937", "0.6076145", "0.6075551", "0.6074476", "0.6073855", "0.6066563", "0.6061274", "0.6060468", "0.6053698", "0.60526687", "0.6051546", "0.60476965", "0.6047301", "0.60471666", "0.60420245" ]
0.0
-1
pop till stack is empty
@Test void whenPopTillStackEmptyReturnNodeShouldBeFirstNode() { MyNode<Integer> myFirstNode = new MyNode<>(70); MyNode<Integer> mySecondNode = new MyNode<>(30); MyNode<Integer> myThirdNode = new MyNode<>(56); MyStack myStack = new MyStack(); myStack.push(myFirstNode); myStack.push(mySecondNode); myStack.push(myThirdNode); boolean isEmpty = myStack.popTillEmpty(); System.out.println(isEmpty); boolean result = myStack.head == null && myStack.tail == null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void pop() {\r\n pop( false );\r\n }", "public void pop() {\n if(!empty()){\n \tstack.pop();\n }\n }", "public void pop(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // check if stack is empty\n if(this.topOfStack==-1){\n System.out.println(\"Stack is empty, can't pop from stack\");\n return;\n }\n // if stack is not empty\n this.arr[this.topOfStack]=Integer.MIN_VALUE;\n this.topOfStack--;\n }", "public void pop() {\n\t\tif (top == -1) {\n\t\t\tSystem.out.println(\"Stack is empty\");\n\t\t} else {\n\t\t\tSystem.out.println(stacks[top] + \" is popped\");\n\t\t\ttop--;\n\t\t}\n\t\tsize--;\n\t}", "public void pop() {\r\n readyForPop();\r\n outStack.pop();\r\n }", "public void pop(){\n \n if(top==null) System.out.println(\"stack is empty\");\n else top=top.next;\n \t\n }", "public void pop()\r\n\t{\r\n\t\ttop--;\r\n\t\tstack[top] = null;\r\n\t}", "public void pop() {\n\t\tif(stackTmp.isEmpty()){\n\t\t\twhile(!stack.isEmpty()){\n\t\t\t\tint tmp = stack.peek();\n\t\t\t\tstackTmp.push(tmp);\n\t\t\t\tstack.pop();\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tstackTmp.pop();\n\t\t}\n\t}", "public void popAllStacks(){\n // if top is lost then all elements are lost.\n top = null;\n }", "public void pop() {\n while(!stack.isEmpty()) container.push(stack.pop());\n container.pop();\n while(!container.isEmpty()) stack.push(container.pop());\n }", "public void pop() throws StackUnderflowException;", "public void pop();", "E pop() throws EmptyStackException;", "public void pop() {\r\n \t Queue<Integer> temp=new LinkedList<Integer>();\r\n \t int counter=0;\r\n \t while(!stack.isEmpty()){\r\n \t temp.add((Integer) stack.poll());\r\n \t counter++;\r\n \t \r\n \t }\r\n \t while(counter>1)\r\n \t {\r\n \t \r\n \t stack.add(temp.poll());\r\n \t counter--;\r\n \t }\r\n }", "private synchronized BackStep pop() {\r\n\t\t\tBackStep bs;\r\n\t\t\tbs = stack[top];\r\n\t\t\tif (size == 1) {\r\n\t\t\t\ttop = -1;\r\n\t\t\t} else {\r\n\t\t\t\ttop = (top + capacity - 1) % capacity;\r\n\t\t\t}\r\n\t\t\tsize--;\r\n\t\t\treturn bs;\r\n\t\t}", "private List<ThroughNode> popStackStackForward() {\n List<ThroughNode> popped = nodeStackStack.peek();\n nodeStackStack.push(C.tail(popped));\n return popped;\n }", "@Override\n\tpublic T pop() {\n\t\tif(isEmpty()) {\n\t\t\tSystem.out.println(\"Stack is Empty\");\n\t\treturn null;}\n\t\ttop--;\t\t\t\t\t\t//top-- now before since we need index top-1\n\t\tT result = stack[top];\n\t\tstack[top] = null;\n\t\treturn result;\n\t\t\t\n\t}", "public boolean stackPop() {\r\n\t\t if(stackEmpty())\r\n\t\t {\r\n\t\t\t return false;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t if(top == 0)\r\n\t\t {\r\n\t\t \ttop = -1;\r\n\t\t \tcount--;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t \tarray[top] = array[top-1];\r\n\t\t \ttop--;\r\n\t\t \tcount--;\r\n\t\t }\r\n\t\t\t return true;\r\n\t\t } \t\r\n\t }", "public void pop()\n {\n EmptyStackException ex = new EmptyStackException();\n if (top <= 0)\n {\n throw ex;\n }\n else\n {\n stack.remove(top - 1);\n top--;\n }\n }", "public void pop() {\n s.pop();\n }", "public AnyType pop() throws StackException;", "public Object pop( )\n {\n Object item = null;\n\n try\n {\n if ( this.top == null)\n {\n throw new Exception( );\n }\n\n item = this.top.data;\n this.top = this.top.next;\n \n this.count--;\n }\n catch (Exception e)\n {\n System.out.println( \" Exception: attempt to pop an empty stack\" );\n }\n\n return item;\n }", "@Override\r\n\tpublic T pop() throws StackEmptyException {\n\t\tif(isempty()) { throw new StackEmptyException(\"Pila vacia!!\");}\r\n\t\treturn pop(sentinel);\r\n\t\t\r\n\t}", "@Override\r\n\tpublic AnyType pop() throws StackException {\n\t\tif(isEmpty()) throw new StackException(\"Stack is full\");\r\n\t\tAnyType data = top.data;\r\n\t\ttop=top.next;\r\n\t\treturn data;\r\n\t}", "public int pop() {\r\n LinkedList<Integer> queue = new LinkedList<>();\r\n int value = stack.poll();\r\n while(!stack.isEmpty()){\r\n queue.offer(value);\r\n value = stack.poll();\r\n }\r\n stack = queue;\r\n return value;\r\n }", "@Override\r\n\tpublic T pop() throws StackUnderflowException {\r\n\t\tif (!isEmpty()) {\r\n\t\t\tT e = stack.get(size()-1);\r\n\t\t\tstack.remove(size()-1);\r\n\t\t\treturn e;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new StackUnderflowException();\r\n\t\t}\r\n\t}", "public String pop(){\n //base case for empty stack\n if(N==0)return null;\n\n String str = stackArray[--N];\n stackArray[N]=null;\n\n //resize the array\n if(N==stackArray.length/4 && N>0) resizeArray(stackArray.length/2);\n\n return str;\n }", "@Override\n public E pop() throws EmptyStackException{\n \n if(!isEmpty()){\n count--;\n E eval = stackArray[count];\n stackArray[count] = null;\n return eval;\n }\n \n else \n throw new EmptyStackException();\n }", "@Override\n public T pop() {\n if (!isEmpty()) {\n T data = backing[size - 1];\n backing[size - 1] = null;\n size--;\n return data;\n } else {\n throw new NoSuchElementException(\"The stack is empty\");\n }\n }", "public void pop() {\n // if the element happen to be minimal, pop it from minStack\n if (stack.peek().equals(minStack.peek())){\n \tminStack.pop();\n }\n stack.pop();\n\n }", "public E pop () {\n\t\treturn stack.remove( stack.size()-1 );\t\t\n\t}", "public E pop(){\n return this.stack.remove(stack.size()-1);\n }", "public void pop() {\n if (top==-1) {\n System.out.println(\"Stack is empty\");\n return;\n\n\n } else {\n System.out.println(\"item popde is:-\"+ stack[top]);\n top--;\n }\n }", "public int pop(){\n \tint data=0;\n \tif(isEmpty())\n \tSystem.out.println(\"Stack is underflow\");\n \telse\n \tdata=elements[top--];\n \treturn data;\n\t}", "int pop();", "int pop();", "int pop();", "int pop();", "int pop();", "public T pop() throws EmptyStackException\r\n {\r\n if (isEmpty())\r\n throw new EmptyStackException();\r\n\r\n top--;\r\n T result = stack[top];\r\n stack[top] = null; \r\n\r\n return result;\r\n }", "void pop()\n\t\t{\n\t\t\tsp--;\n\t\t\tfor(int i = 0; i < sp; i++)\n\t\t\t\tXMLStream.print(\" \");\n\t\t\tif(sp < 0)\n\t\t\t\tDebug.e(\"RFO: XMLOut stack underflow.\");\n\t\t\tXMLStream.println(\"</\" + stack[sp] + \">\");\n\t\t}", "@Test\r\n\tpublic void testPop()\r\n\t{\n\t\tassertEquals(null,myStack.pop());\r\n\t\r\n\t\tassertEquals(true, myStack.push(new Element(2,\"Basel\")));\t\r\n\t\tassertEquals(true, myStack.push(new Element(4,\"Wil\")));\t\r\n\t\tassertEquals(true, myStack.push(new Element(27,\"Chur\")));\r\n\t\tassertEquals(27,myStack.top().getId());\r\n\t\tassertEquals(\"Chur\",myStack.pop().getName());\r\n\t\tassertEquals(4,myStack.pop().getId());\r\n\t\tassertEquals(2,myStack.pop().getId());\r\n\t\t\r\n\t\t// leerer Stack\r\n\t\tassertEquals(null,myStack.pop());\r\n\t\tassertEquals(null,myStack.top());\r\n\t}", "public int pop() {\n //出栈为空,将进栈导入\n if (outSt.isEmpty()){\n while (!inSt.isEmpty()){\n outSt.push(inSt.pop());\n }\n }\n\n //弹出\n return outSt.pop();\n }", "public void popFrame(){\n runStack.popFrame();\n }", "private final Object pop() {\r\n\t\treturn eval_stack.remove(eval_stack.size() - 1);\r\n\t}", "public E pop()\n\tthrows EmptyStackException;", "public void popScope() {\n this.stack.removeFirst();\n }", "@Override\r\n\tpublic T pop() {\r\n\t\tT top = stack[topIndex];\r\n\t\tstack[topIndex] = null;\r\n\t\ttopIndex--;\r\n\t\treturn top;\r\n\t}", "T pop() {\n if (stackSize == 0) {\n throw new EmptyStackException();\n }\n return stackArray[--stackSize];\n }", "public T pop(){ \r\n \t--this.size;\r\n \treturn stack1.pop();\r\n }", "public void pop()\n {\n this.top = this.top.getNext();\n }", "abstract void pop();", "public int pop();", "public GenericStack popStack(){\n if(isEmpty() == true)return null;\n GenericStack temp = top;\n // makes next item in list the tip\n top = top.next;\n return temp;\n }", "static void stack_pop(Stack<Integer> stack)\r\n\t{\r\n\t\t\r\n\t\tSystem.out.print(\"Pop : \");\r\n\t\tfor(int i=0;i<5;i++)\r\n\t\t{\r\n\t\t\tInteger dataElement=(Integer)stack.pop();\r\n\t\t\tSystem.out.print(\" \"+ dataElement);\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "@Override\r\n\tpublic E pop() {\r\n\t\tif (isEmpty())\r\n\t\t\treturn null;\r\n\t\tE answer = stack[t];\r\n\t\tstack[t] = null; // dereference to help garbage collection\r\n\t\tt--;\r\n\t\treturn answer;\r\n\t}", "public void pop() throws StackUnderflowException {\r\n if(!isEmpty()) items.remove(0);\r\n else throw new StackUnderflowException(\"Stack Empty\");\r\n }", "public Item pop(){\n\t\tif(isEmpty()){\r\n\t\t\tSystem.out.println(\"Stack is empty\");\r\n\t\t}\r\n\t\t\r\n\t\tItem item=first.item;\r\n\t\tfirst=first.next;\r\n\t\tN--;\r\n\t\treturn item;\r\n\t\r\n\r\n\t}", "public void deleteStack(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // if stack is present\n topOfStack=-1;\n arr=null;\n System.out.println(\"Stack deleted successfully\");\n }", "public T pop() {\n \tT retVal = stack.get(stack.size() - 1); // get the value at the top of the stack\n \tstack.remove(stack.size() - 1); // remove the value at the top of the stack\n \treturn retVal;\n }", "@SubL(source = \"cycl/stacks.lisp\", position = 3109) \n public static final SubLObject stack_pop(SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n if ((NIL == stack_empty_p(stack))) {\n {\n SubLObject elements = stack_struc_elements(stack);\n SubLObject item = elements.first();\n SubLObject rest = elements.rest();\n _csetf_stack_struc_num(stack, Numbers.subtract(stack_struc_num(stack), ONE_INTEGER));\n _csetf_stack_struc_elements(stack, rest);\n return item;\n }\n }\n return NIL;\n }", "Object pop(){\r\n\t\tlastStack = getLastStack();\r\n\t\tif(lastStack!=null){\r\n\t\t\tint num = lastStack.pop();\r\n\t\t\treturn num;\r\n\t\t} else {stacks.remove(stacks.size()-1);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override\n\tpublic E pop() {\n\t\tif(size == 0) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\tsize--;\n\t\treturn list.remove(0);\n\t}", "public int pop() throws EmptyStackException{\n //To be written by student\n if(top==-1){\n System.out.println(\"Stack is Empty!\");\n throw new EmptyStackException();\n }\n else if(localSize==A.getSize()/2){\n \tint tp=0;\n \ttry{\n \t\t tp=A.getElement(top);\n \t}catch(Exception e){e.printStackTrace();}\n top--;localSize--;\n A.halveSize();\n return tp;\n }\n else{ int tp=0;\n \ttry{\n \t\t tp=A.getElement(top);\n \t}catch(Exception e){e.printStackTrace();}\n top--;localSize--;\n \n return tp;\n }\n }", "static void pop() {\n\t\t\tif (q1.isEmpty()) \n\t\t\t\treturn; \n\t\t\tq1.remove(); \n\t\t\tcurr_size--; \n\t\t}", "public T pop() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\t//remove top element from stack\n\t\t//and \"clear to let GC do its work\"\n\t\treturn elements.remove(elements.size() - 1);\n\t}", "@Override\n\tpublic E pop() throws EmptyStackException {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException(\"Empty Stack\");\n\t\t}\n\t\tE element = arr[top];\n\t\tarr[top--] = null;\n\t\treturn element;\n\t}", "public int pop() { return 0; }", "public void popAll()\r\n {\n this.top = null;\r\n }", "public int pop(){\n return runStack.pop();\n }", "public void pop() {\n \tint size = s.size();\n \tfor(int i = 0; i < size; i++) {\n \t\ts2.push(s.pop());\n \t}\n s2.pop();\n }", "public T pop() throws Exception\r\n\t{\r\n T popped = (T) Stack[--size];\r\n Stack[size] = null;\r\n return popped ;\r\n\t}", "private static int pop(Stack<Integer> top_ref) {\n /*If stack is empty then error */\n if (top_ref.isEmpty()) {\n System.out.println(\"Stack Underflow\");\n System.exit(0);\n }\n //pop the data from the stack\n return top_ref.pop();\n }", "public void pop() {\n s2.pop();\n temp = (Stack<Integer>) s2.clone();\n s1.clear();\n while (!temp.isEmpty()) {\n s1.push(temp.pop());\n }\n }", "@Override\n public T pop(){\n\n if (arrayAsList.isEmpty()){\n throw new IllegalStateException(\"Stack is empty. Nothing to pop!\");\n }\n\n T tempElement = arrayAsList.get(stackPointer - 1);\n arrayAsList.remove(--stackPointer);\n\n return tempElement;\n }", "@Override\n\tpublic int pop() {\n\t\treturn 0;\n\t}", "public void pop() {\n\t List<Integer> temp = new ArrayList<>();\n\t Integer last = null;\n\t first = null;\n\t \n\t do{\n\t last = s.pop();\n\t if(s.isEmpty()){\n\t break;\n\t }\n\t first = last;\n\t temp.add(last);\n\t \n\t }while (true);\n\t \n\t for(int i = temp.size()-1; i >=0; i--){\n\t s.push(temp.get(i));\n\t }\n\t \n\t}", "public void pop() {\n System.out.print(stack1.pop());\n }", "public T pop() { //pop = remove the last element added to the array, in a stack last in, first out (in a queue pop and push from different ends)\n try {\n T getOut = (T) myCustomStack[numElements - 1]; //variable for element to remove (pop off) = last element (if you have 7 elements, the index # is 6)\n myCustomStack[numElements] = null; //remove element by making it null\n numElements--; //remove last element, decrease the numElements\n return getOut; //return popped number\n\n } catch (Exception exc) {\n System.out.println(\"Can't pop from empty stack!\");\n return null;\n }\n }", "public String pop() {\n String temp = stack[--N];\n stack[N] = null;\n if (N > 0 && N == stack.length / 4) resize(stack.length / 2);\n return temp;\n }", "public TYPE pop();", "@Override\r\n\tpublic void pop() {\n\t\tSystem.out.println(\"Pop logic for Fixed Stack\");\r\n\t}", "public void pop() {\n myCStack.delete();\n }", "public Object pop() {\n if (top != null) {\n Object item = top.getOperand();\n\n top = top.next;\n return item;\n }\n\n System.out.println(\"Stack is empty\");\n return null;\n\n }", "public void pop() {\n\t\tif(size == 1) {\r\n\t\t\tfirst = null;\r\n\t\t\tlast = null;\r\n\t\t\tsize--;\r\n\t\t}\r\n\t\telse if(size > 1) {\r\n\t\t\tlast = last.getPrev();\r\n\t\t\tlast.setNext(null);\r\n\t\t\tsize--;\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Nothing to pop.\");\r\n\t}", "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 T pop() {\n\t\tT value = peek();\n\t\tstack.remove(value);\n\t\treturn value;\n\t}", "public Object pop() {\n return stack.pop();\n }", "public int pop() {\n while (!push.isEmpty()){\n pull.push(push.pop());\n }\n int result= pull.pop();\n while (!pull.isEmpty()){\n push.push(pull.pop());\n }\n return result;\n }", "public Item pop(Item item){\n\nif(isEmpty()) throw new NoSuchElementException(\"Stack undervflow\"); \n Item item =top.item;\n top = top.next;\n N--;\n return item;\n}", "public E pop() {\n\t\tE answer;\n\t\tif (this.top == null) {\n\t\t\tthrow new EmptyStackException( );\n\t\t}\n\t\tanswer = this.top.data;\n\t\tthis.top = this.top.link;\n\t\treturn answer;\t\n\t}", "public boolean stackEmpty() {\r\n\t\treturn (top == -1) ? true : false;\r\n\t }", "int pop() {\r\n\t\ttop--;\r\n\t\treturn stack[top];\r\n\t}", "public int pop() {\n int result;\n while(!stack.isEmpty()){\n cache.add(stack.removeLast());\n }\n result = cache.removeLast();\n while(!cache.isEmpty()){\n stack.add(cache.removeLast());\n }\n System.out.println(result);\n return result;\n }", "@Override\n public E pop() {\n E result = peek();\n storage[ top-- ] = null;\n return result;\n\n }", "T pop();", "T pop();", "T pop();", "protected void stackEmptyButton() {\n \tif (stack.empty()) {\n \t\tenter();\n \t}\n \telse {\n \t\tstack.pop();\n \t\tif (stack.empty()) {\n \t\t\tenter();\n \t}\n \t}\n }", "public Object pop();", "public void testPop() {\n Exception exception = null;\n try {\n this.empty.pop();\n }\n catch (Exception e) {\n exception = e;\n }\n assertNotNull(exception);\n assertTrue(exception instanceof EmptyStackException);\n\n assertEquals(this.stack.size(), 10, 0.01);\n this.stack.pop();\n assertEquals(this.stack.size(), 9, 0.01);\n assertEquals(this.stack.peek(), 8, 0.01);\n }" ]
[ "0.8154127", "0.81470853", "0.7965033", "0.78948027", "0.788639", "0.7863681", "0.7829781", "0.7797419", "0.7686695", "0.7685303", "0.76369363", "0.7631224", "0.7591265", "0.7582787", "0.75691473", "0.7499096", "0.7476132", "0.74552226", "0.7437358", "0.73784864", "0.7333983", "0.7311376", "0.72905785", "0.7288048", "0.72805506", "0.727996", "0.7271091", "0.72445166", "0.7243904", "0.7241471", "0.7220993", "0.72060585", "0.7205139", "0.7186993", "0.7185814", "0.7185814", "0.7185814", "0.7185814", "0.7185814", "0.7176561", "0.71752006", "0.71536636", "0.7141392", "0.7123543", "0.7120932", "0.71114945", "0.7108014", "0.71075666", "0.70974267", "0.7097041", "0.7091975", "0.70876515", "0.7079075", "0.7072597", "0.70670426", "0.7060966", "0.7059198", "0.7055861", "0.70510024", "0.7047334", "0.70447075", "0.7038921", "0.7038204", "0.70294094", "0.7016812", "0.7014963", "0.7001433", "0.6992338", "0.6990718", "0.69889283", "0.698771", "0.6985691", "0.6981102", "0.69771904", "0.69730055", "0.697054", "0.6967788", "0.69632614", "0.6960616", "0.6960296", "0.6945976", "0.69434214", "0.69425565", "0.6937733", "0.69352883", "0.6932253", "0.6931415", "0.6931076", "0.6925461", "0.6917456", "0.6906034", "0.6901295", "0.6900401", "0.6899771", "0.6899601", "0.68956256", "0.68956256", "0.68956256", "0.68940085", "0.68788546", "0.68771935" ]
0.0
-1
private final Class clientClass;
public static FileStorageEnum getByStorage(Integer storage) { return Arrays.stream(values()).filter(o -> o.getStorage().equals(storage)).findFirst().orElse(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Client {\n\n}", "public Class getServiceClass()\n {\n return serviceClass;\n }", "@Override\r\n\tpublic Class getClase() {\n\t\treturn Cliente.class;\r\n\t}", "protected int getClientType() {\n\n return clientType;\n\n }", "public abstract Class<Response> getResponseClass();", "interface myClient {\n}", "@Override\n\tpublic String typeKey() {\n\t return \"class\";\n\t}", "public Client(Client client) {\n\n }", "public Class getServiceClass() { return serviceClass; }", "public Byte getClientType() {\r\n return clientType;\r\n }", "public abstract Client getClient();", "Object getClass_();", "Object getClass_();", "protected Class getOnlineService () throws ClassNotFoundException {\n String className = config.getString(\"CLIENT_IMPL\");\n Class serviceClass = Class.forName(className);\n return serviceClass;\n }", "public Class getInstanceClass()\n {\n return _cl;\n }", "public Class<? extends ClientService> getObjectType() {\n\t\treturn ClientService.class;\r\n\t}", "@Override\n public void modifyClientObjectDefinition(RPClass client) {\n }", "private ClassProxy() {\n }", "Class<?> getEndpointClass();", "private ClientController(){\n\n }", "public void setClientType(Byte clientType) {\r\n this.clientType = clientType;\r\n }", "public ClientType getType() {\n return type;\n }", "private ClientController() {\n }", "public Client() {\n }", "public Class<?> clazz()\n {\n return clazz;\n }", "public Class getJavaClass() {\n return _class;\n }", "private MyClientEndpoint(){\n // private to prevent anyone else from instantiating\n }", "private ClientLoader() {\r\n }", "@Override\n public void modifyRootRPClassDefinition(RPClass client) {\n }", "public Client() {\r\n\t// TODO Auto-generated constructor stub\r\n\t \r\n }", "public Client() {}", "public EO_ClientsImpl() {\n }", "public Class<?> getJavaClass() {\n return clazz;\n }", "ClassOfService getClassOfService();", "public ClientInformationTest()\n {\n }", "public Class returnedClass();", "public ClientInformation(){\n clientList = new ArrayList<>();\n\n }", "Class<?> getEntityClass();", "public ClientController() {\n }", "public void ajoutCompte(Class<? extends Compte> type, Client client);", "public abstract Class getExpectedClass ();", "protected void setJavaClass(Class type) {\n this._class = type;\n }", "Class<C> contextClass();", "protected abstract Class<T> getEntityClass();", "protected abstract Class<T> getEntityClass();", "Cliente(){}", "public abstract Class<? extends ModificationRequestBase> getRequestClass();", "public Cliente() {\n }", "public abstract Class getDataClass();", "public String getClientId(){ return this.client_id;}", "public static Class<?> getMinecraftServerClass() {\n \t\treturn getMinecraftClass(\"MinecraftServer\");\n \t}", "public Client() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Class<?> getClazz() {\n return clazz;\n }", "public abstract Class<? extends HateaosController<T, Identifier>> getClazz();", "private CorrelationClient() { }", "@Override\n\tpublic void createClient() {\n\t\t\n\t}", "public Class getRecyclerClass() \n\t{\n\treturn fClass;\n\t}", "@Test\n public void testCategoryService() {\n assertEquals(\"com.dungnv.streetfood.service.ClientServiceImpl\", this.clientService.getClass().getName());\n\n }", "Class<?> getJavaType();", "Class<?> getTargetClass();", "public static Class get_CLASS()\n {\n return WrapperMap.class;\n }", "public short getClazz() {\n return clazz;\n }", "messages.Clienthello.ClientHello getClientHello();", "public T caseClientInterface(ClientInterface object)\n {\n return null;\n }", "public Class<?> getWrappedClass() {\r\n return clazz;\r\n }", "Class<?> getImplementationClass();", "private SOSCommunicationHandler getClient() {\r\n\t\treturn client;\r\n\t}", "String getInstanceOfClass();", "protected abstract Class<C> getConfigClass();", "public int getType() {\n return TAXI_CLIENT_TYPE;\n }", "public String getClassName () { return _className; }", "private JavaType(Class<?> clazz) {\n this.clazz = clazz;\n }", "default boolean isClass() {\n return false;\n }", "public TurnoVOClient() {\r\n }", "public Class getDataClass();", "private void createClient() {\n tc = new TestClient();\n }", "Class createClass();", "Class<A> apiClass();", "public Ctacliente() {\n\t}", "public String getClazz();", "Class<?> type();", "public String getClassName() { return className; }", "RefClass getOwnerClass();", "ClientMessageSender() {\n\n\t}", "public static void setClient(DucktalesClient clientInstance) {\n \tclient = clientInstance;\n }", "public String getType() {\n\t\treturn \"class\";\n\t}", "public ClientCredentials() {\n }", "public Klass getKlass() {\r\n return klass;\r\n }", "private MatterAgentClient() {}", "public ICliente getCodCli();", "void setClassType(String classType);", "interface Client {\n\n /**\n * Returns an ID string for this client.\n * The returned string should be unique among all clients in the system.\n *\n * @return An unique ID string for this client.\n */\n @Nonnull\n String getId();\n\n /**\n * Called when resources have been reserved for this client.\n *\n * @param resources The resources reserved.\n * @return <code>true</code> if, and only if, this client accepts the resources allocated. A\n * return value of <code>false</code> indicates this client does not need the given resources\n * (any more), freeing them implicitly.\n */\n boolean allocationSuccessful(@Nonnull Set<TCSResource<?>> resources);\n\n /**\n * Called if it was impossible to allocate a requested set of resources for this client.\n *\n * @param resources The resources which could not be reserved.\n */\n void allocationFailed(@Nonnull Set<TCSResource<?>> resources);\n }", "private APIClient() {\n }", "public String getRandomClass() {\n return _randomClass;\n }", "public void setClass(String godClass)\r\n {\r\n this.mGodClass = godClass;\r\n }", "public String getClientID(){\n return clientID;\n }", "protected ClientStatus() {\n }", "public ServerInfo clientInterface()\n {\n return client_stub;\n }", "public ExampleModuleClient() {\r\n }", "public static Class get_CLASS()\n {\n return WrapperMap.KeySet.class;\n }", "public boolean setClient(Object clientApp){\r\n if (clientApp==null) return (false);\r\n varContextObject=clientApp; \r\n varContextFields=clientApp.getClass().getFields();\r\n return (true);\r\n }" ]
[ "0.66685236", "0.65840626", "0.65745443", "0.65469474", "0.64959115", "0.64473516", "0.6408281", "0.6346719", "0.63230515", "0.6314324", "0.62579733", "0.62577814", "0.62577814", "0.62266564", "0.6188739", "0.61884665", "0.61778575", "0.6176174", "0.6125582", "0.61047405", "0.60934067", "0.60905904", "0.60789555", "0.6076506", "0.60737556", "0.6050296", "0.6013199", "0.5988242", "0.5961466", "0.5932846", "0.58921826", "0.58916914", "0.58844966", "0.5883456", "0.58801025", "0.58434445", "0.5823312", "0.5814572", "0.58012134", "0.57854193", "0.5769165", "0.57663333", "0.5756912", "0.5754191", "0.5754191", "0.574641", "0.57283103", "0.5726428", "0.57247645", "0.5724046", "0.57118636", "0.56948036", "0.56834775", "0.5678153", "0.5677459", "0.5649029", "0.5647485", "0.56451803", "0.56441504", "0.5644126", "0.56418556", "0.56390977", "0.56382006", "0.56336385", "0.56137776", "0.56058294", "0.5605137", "0.55988485", "0.5596199", "0.5595413", "0.5588805", "0.5587892", "0.5585172", "0.5576583", "0.5575515", "0.5554253", "0.55514485", "0.55459607", "0.55353343", "0.5529074", "0.55168295", "0.5516205", "0.5510422", "0.5510315", "0.5507047", "0.5503347", "0.55004865", "0.54995745", "0.54904383", "0.5486392", "0.5486383", "0.5483143", "0.54824513", "0.5481205", "0.5474007", "0.5473318", "0.5469533", "0.5464186", "0.5458869", "0.5455732", "0.5455653" ]
0.0
-1
Created by pevargas90 on 4/19/14.
public interface Strategy { public Integer pick_card( List<Card> hand, Suit trump, Suit round ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void sacrifier() {\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}", "private void m50366E() {\n }", "@Override\n\tprotected void interr() {\n\t}", "protected boolean func_70814_o() { return true; }", "private void poetries() {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void init() {\n\n }", "public void method_4270() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void init() {\n }", "public void mo4359a() {\n }", "@Override\n protected void init() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "@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 init() {\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n public void init() {}", "public abstract void mo70713b();", "@Override\n void init() {\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\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}", "private Rekenhulp()\n\t{\n\t}", "public void m23075a() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private void m50367F() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\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 public int retroceder() {\n return 0;\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 nghe() {\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "private void strin() {\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public void mo12628c() {\n }", "@Override\n protected void getExras() {\n }", "public final void mo91715d() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "public void mo21877s() {\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override public int describeContents() { return 0; }", "public void mo21779D() {\n }", "public abstract void mo56925d();", "public void mo6081a() {\n }", "protected void mo6255a() {\n }" ]
[ "0.59311426", "0.5836988", "0.5818324", "0.57795143", "0.5750628", "0.5733719", "0.5703618", "0.56864035", "0.56864035", "0.567481", "0.5672331", "0.56691515", "0.56072354", "0.5562382", "0.5561589", "0.5556408", "0.55211", "0.5519586", "0.5519586", "0.5519586", "0.5519586", "0.5519586", "0.5512549", "0.5503101", "0.54994684", "0.5491826", "0.549114", "0.5489385", "0.54845774", "0.54794466", "0.54778785", "0.54738235", "0.54674864", "0.5453545", "0.54516304", "0.54445934", "0.5443073", "0.5443073", "0.5442709", "0.5437498", "0.5437178", "0.5400978", "0.54009616", "0.5388334", "0.53876764", "0.53876764", "0.53876764", "0.53876764", "0.53876764", "0.53876764", "0.5386499", "0.53796", "0.53788", "0.5375346", "0.53747714", "0.5360725", "0.535508", "0.535508", "0.535508", "0.5343422", "0.53433967", "0.53420526", "0.53381675", "0.53321993", "0.5331996", "0.5331895", "0.5329919", "0.5329919", "0.5329919", "0.5326027", "0.5323419", "0.5323419", "0.5323419", "0.5313428", "0.53111964", "0.5308191", "0.5308191", "0.53068465", "0.53068465", "0.53068465", "0.53068465", "0.53068465", "0.53068465", "0.53068465", "0.53068084", "0.53062016", "0.53056735", "0.5305022", "0.5300968", "0.528716", "0.52798605", "0.5275372", "0.5270632", "0.5267937", "0.525922", "0.5254786", "0.52545476", "0.5252765", "0.5245474", "0.5240539", "0.5235477" ]
0.0
-1
get and set the infos
public NewMember(String username, String password, String email) { this.username = username; this.password = password; this.email = email; this.has_role = "User"; this.signingDate = new Date(System.currentTimeMillis()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void updateInfos();", "@Override\r\n\tpublic void setInfo(Object datos) {\n\t\t\r\n\t}", "Information getInfo();", "boolean setInfo();", "public void setInfos(List value) {\n infos = value;\n }", "private void setUsefulURLsInfo () {\n infoList = new ArrayList<> ();\n\n\n // item number 1\n\n Info info = new Info ();// this class will help us to save data easily !\n //set the title >> it can be website name or Topic title ...\n info.setInfoTitle (\"Autism.com\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this website has will help you identify the level of Autism of a patient ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://stackoverflow.com/\");\n\n infoList.add (info); //adding item 1 to list\n\n\n // item number 2\n info = new Info ();// save the second Url\n //set the title >> it can be website name or Topic title ...\n info.setInfoTitle (\"We Can help solve Autism\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this website has will help patient of Autism to get better by communicate with experts ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://www.androidauthority.com/\");\n\n infoList.add (info);//adding item number 2 to list\n\n\n // item 3\n info = new Info ();// save the third Url\n //set the title >> it can be website name or Topic title ...\n info.setInfoTitle (\"Say no for Autism\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this an article about patient of Autism and how to help them get better ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://developer.android.com/index.html\");\n infoList.add (info);// adding item 3 to list\n\n\n displayInfo (infoList);\n\n }", "private void GetAllInfo() {\n\t\tjetztStunde = Integer.parseInt(jetztStdTxt.getText().toString());\n\t\tjetztMinute = Integer.parseInt(jetztMinTxt.getText().toString());\n\n\t\tschlafStunde = Integer.parseInt(schlafStdTxt.getText().toString());\n\t\tschlafMinute = Integer.parseInt(schlafMinTxt.getText().toString());\n\n\t}", "public void updateInfo() {\n\t}", "public void setInfo(String i)\n {\n info = i;\n }", "private void populateUserInfo() {\n User user = Session.getInstance().getUser();\n labelDisplayFirstname.setText(user.getFirstname());\n labelDisplayLastname.setText(user.getLastname());\n lblEmail.setText(user.getEmail());\n lblUsername.setText(user.getUsername());\n }", "public List getInfos() {\n return infos;\n }", "private void sensorInformation(){\n\t\tthis.name = this.paramName;\n\t\tthis.version = this.paramVersion;\n\t\tthis.author = this.paramVersion;\n\t}", "private void loadInfo() {\n fname.setText(prefs.getString(\"fname\", null));\n lname.setText(prefs.getString(\"lname\", null));\n email.setText(prefs.getString(\"email\", null));\n password.setText(prefs.getString(\"password\", null));\n spinner_curr.setSelection(prefs.getInt(\"curr\", 0));\n spinner_stock.setSelection(prefs.getInt(\"stock\", 0));\n last_mod_date.setText(\" \" + prefs.getString(\"date\", getString(R.string.na)));\n }", "public void getInfo () {\n int[] info = elevator.getInfo ();\n currFloor = info[0];\n maxCap = info[2];\n numFloors = info[3];\n currCap = info[5];\n state = info[6];\n }", "private void updateInfoValues() {\n menuPanel.updateInfoPanel( tugCount, simulation.getShipsOnSea(), simulation.getShipsDocked(), simulation.getShipsTugged());\n }", "protected void setInfoFile(String[] info){\n\n }", "@Override\n public String getInfo(){\n return info;\n }", "private void initInfo(Map<String, String> _info) {\n this.jlCPU.setText(_info.get(\"Model\"));// FIXME may be very long name\n this.jlCores.setText(_info.get(\"TotalCores\"));\n this.jlVendor.setText(_info.get(\"Vendor\"));\n this.jlFrequency.setText(_info.get(\"Mhz\") + \" MHz\");\n this.jlRAM.setText(_info.get(\"Free\").substring(0, 3) + \" / \" + _info.get(\"Ram\") + \" MB\");\n this.jlHostname.setText(_info.get(\"HostName\"));\n this.jlIP.setText(_info.get(\"IP\"));\n this.jlGateway.setText(_info.get(\"DefaultGateway\"));\n this.jlPrimDNS.setText(_info.get(\"PrimaryDns\"));\n }", "public void getInfo() {\n System.out.println(\"Content : \" + content);\n System.out.println(\"Name : \" + name);\n System.out.println(\"Location : (\" + locX + \",\" + locY + \")\");\n System.out.println(\"Weight : \" + String.format(\"%.5f\", weight) + \" kg/day\");\n System.out.println(\"Habitat : \" + habitat);\n System.out.println(\"Type : \" + type);\n System.out.println(\"Diet : \" + diet);\n System.out.println(\"Fodder : \" + String.format(\"%.5f\", getFodder()) + \" kg\");\n System.out.println(tamed ? \"Tame : Yes \" : \"Tame : No \");\n System.out.println(\"Number of Legs : \" + legs);\n }", "public void setInfo(int i)\r\n\t{\r\n\t\tinfo = i;\r\n\t}", "public void set_info() {\n System.out.println(\"The name of the donor is \" + donor_name);\n System.out.println(\"The rating of the donor is \" + donor_rating); //display\n }", "public Object getInfo() {\n return info;\n }", "public void setInfo(Object o) {\n info = o;\n }", "private void setData() {\n\t\t\n\t\tString str = readInternalStorage();\n\t\tString[] arr = str.split(\"--\");\n\t\tLog.v(\"CONSOLE\", arr.length+\" \"+arr);\n\t\t\n\t\tLog.v(\"CONSOLE\", \"path\"+arr[0]+\n\t\t\t\t\" name \"+arr[1]+\n\t\t\t\t\" date \"+arr[2]+\n\t\t\t\t\" desc \"+arr[3]); \n\t\t\n\t\tString desc =str;\n\t\t\n\t\ttxtName.setText(entity.getName());\n\t\ttxtDate.setText(entity.getDate());\n\t\ttxtDesc.setText(desc);\n\t}", "public void getInfo() {\n\t\tSystem.out.println(\"My name is \"+ name+ \" and my last name is \"+ lastName);\n\t\t\n\t\tgetInfo1();// we can access static method within non static \n\t\t\n\t}", "public Map<String, Object> getInfo();", "void setUserInfo(UserInfo info);", "public final void setInfo(Info info)\n {\n this.info = info;\n }", "public void setInfo (int n)\n\t\t{\n\t\t\tinfo = n ;\n\t\t}", "public void setInfo(String nombre, String apellidos, String telefono,\n String direccion) {\n _nombre = nombre;\n _apellidos = apellidos;\n _telefono = telefono;\n _direccion = direccion;\n }", "public String getInfo()\n {\n return info;\n }", "public void initInfoSystem(){\r\n infoSys = new FedInfoSystem();\r\n subscriberList = new ConcurrentHashMap<String, List>();\r\n //singleCptNodes = new ArrayList<String>();\r\n //infoServiceRequest(\"CPT-UPDATE\", null);\r\n //infoServiceRequest(\"REQ-UPDATE\", null);\r\n }", "void updateInformation();", "public ArrayList<String[]> getInfos()\n {\n return (this.infos);\n }", "private void getUserInfo() {\n\t}", "public Informations() {\n initComponents();\n \n Affichage();\n }", "@Override\r\n\tpublic void getInfo() {\n\t\tSystem.out.println(\"=== 선생 정보 ===\");\r\n\t\tsuper.getInfo();\r\n\t\tSystem.out.println(\"과목 : \" + text);\r\n\t}", "public void getInfo(){\n System.out.println(\"Name: \" + name + \"\\n\" + \"Address: \" + address);\n }", "public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getInfo() {\n return info;\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "private void setInfoPanel()\r\n {\r\n //set up info panel\r\n unitPanel.setPlayer(worldPanel.getCurrentPlayer());\r\n\t\t\t\tunitPanel.setYear(year);\r\n int tempUnit = worldPanel.getCurrentUnit();\r\n\r\n if(worldPanel.getCurrentPlayer() == 1)\r\n {\r\n unitPanel.setImageIcon(worldPanel.player1.units[tempUnit - 1].getImage());\r\n unitPanel.setAttack(worldPanel.player1.units[tempUnit - 1].getAttack());\r\n unitPanel.setDefence(worldPanel.player1.units[tempUnit - 1].getDefence());\r\n unitPanel.setMovement(worldPanel.player1.units[tempUnit - 1].getMovementsLeft());\r\n }\r\n else\r\n {\r\n unitPanel.setImageIcon(worldPanel.player2.units[tempUnit - 1].getImage());\r\n unitPanel.setAttack(worldPanel.player2.units[tempUnit - 1].getAttack());\r\n unitPanel.setDefence(worldPanel.player2.units[tempUnit - 1].getDefence());\r\n unitPanel.setMovement(worldPanel.player2.units[tempUnit - 1].getMovementsLeft());\r\n }\r\n }", "public abstract String getInfo();", "public abstract String getInfo();", "public int getInfo()\r\n\t{\r\n\t\treturn info;\r\n\t}", "public String getInfo() {\n return info;\n }", "public int getInfo ()\n\t\t{\n\t\t\treturn info;\n\t\t}", "public Update_info() {\n initComponents();\n display_data();\n }", "private void getGroupInformation()\n {\n gName = groupName.getText().toString();\n gId = groupId.getText().toString();\n gAddress = groupAddress.getText().toString();\n gDescription = groupDescription.getText().toString();\n time = fTime.getText().toString();\n }", "String getInfo();", "public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getInfo() {\n return info;\n }", "@Override\n public String getInfo() {\n return this.info;\n }", "public void startRetriveDataInfo() {\n\t\t\tif (isLog4jEnabled) {\n\t\t\t\n stringBuffer.append(TEXT_2);\n stringBuffer.append(label);\n stringBuffer.append(TEXT_3);\n \n\t\t\t}\n\t\t}", "public void setInfo(String info) {\n this.info = info;\n }", "public String getInfo() {\n return this.info;\n }", "public void cargaInfo(){\n InfoFragment.txtCanton.setText(sitio[4]);\n InfoFragment.txtDesc.setText(sitio[2]);\n InfoFragment.txtDirec.setText(sitiosInfo[2]);\n InfoFragment.txtFono.setText(sitiosInfo[5]);\n InfoFragment.txtWeb.setText(sitiosInfo[7]);\n InfoFragment.txtHorario.setText(sitiosInfo[6]);\n InfoFragment.ratingBarTotal.setRating(Float.parseFloat(sitio[5]));\n if(bcoment_ind){\n InfoFragment.ratingUsuario.setRating(Float.parseFloat(comentario_ind[1]));\n }\n if(!LugaresContainer.id_favorito.equals(\"0\")){\n InfoFragment.checkBoxFav.setChecked(true);\n }\n }", "private InformationManager() {\n\t\tlives = ConfigurationManager.getConfigurationManager().getConfiguration().getLives();\n\t\tshields = ConfigurationManager.getConfigurationManager().getConfiguration().getShields();\n\t}", "public void setDetails(){\n\n TextView moviename = (TextView) findViewById(R.id.moviename);\n TextView moviedate = (TextView) findViewById(R.id.moviedate);\n TextView theatre = (TextView) findViewById(R.id.theatre);\n\n TextView seats = (TextView) findViewById(R.id.seats);\n\n moviename.setText(ticket.movieName);\n moviedate.setText(ticket.getMovieDate());\n theatre.setText(ticket.theatreDetails);\n\n seats.setText(ticket.seats);\n }", "public List<Info> getInfos() {\n\treturn mInfos;\n }", "void getInfo() {\n\tSystem.out.println(\"My name is \"+name+\" and I am going to \"+school+\" and my grade is \"+grade);\n\t}", "public void setupUserInfo(Bundle upUserInfo) {\n // Getting Info\n String name = upUserInfo.getString(\"userName\");\n String email = upUserInfo.getString(\"userEmail\");\n\n\n // Setting local Variables\n this.tutorName = name;\n this.tutorEmail = email;\n\n TextView nameField = (TextView) findViewById(R.id.UserNameField);\n nameField.setText(name);\n\n\n }", "public void getInformation(){\n if (car == null) {\n throw new InvalidParameterException(\"Service is null\");\n }\n System.out.println(\"Setter injection client\");\n System.out.println(car.getInformation());\n }", "@Override\n public void setInfo(String s) {\n this.info = s;\n\n }", "public Info() {\n super();\n }", "public String[] getInfoData();", "private void _Setup_GetLocData() {\n\t\tString log_msg = \"CONS.LocData.LONGITUDE=\"\n\t\t\t\t\t+ String.valueOf(CONS.LocData.LONGITUDE);\n\n\t\tLog.d(\"[\" + \"ShowMapActv.java : \"\n\t\t\t\t+ +Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t+ \" : \"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getMethodName()\n\t\t\t\t+ \"]\", log_msg);\n\t\t\n\t\tIntent i = this.getIntent();\n\t\t\n\t\tthis.longitude\t= i.getDoubleExtra(\n\t\t\t\t\t\t\tCONS.IntentData.iName_Showmap_Longitude,\n\t\t\t\t\t\t\tCONS.IntentData.Showmap_DefaultValue);\n\t\t\n\t\tthis.latitude\t= i.getDoubleExtra(\n\t\t\t\tCONS.IntentData.iName_Showmap_Latitude,\n\t\t\t\tCONS.IntentData.Showmap_DefaultValue);\n\t\t\n\t\t// Log\n\t\tlog_msg = \"this.latitude=\" + String.valueOf(this.latitude)\n\t\t\t\t\t\t+ \"/\"\n\t\t\t\t\t\t+ \"this.longitude=\" + String.valueOf(this.longitude);\n\n\t\tLog.d(\"[\" + \"ShowMapActv.java : \"\n\t\t\t\t+ +Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t+ \" : \"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getMethodName()\n\t\t\t\t+ \"]\", log_msg);\n\t\t\n\t}", "public HashMap<Integer, ArrayList<String>> getInfo() {\n\t\treturn infoList;\n\t}", "private void getDataFromSharedPrefernce() {\r\n\r\n\t\tprofileImageString = mSharedPreferences_reg.getString(\"ProfileImageString\",\"\");\r\n\t\tpsedoName = mSharedPreferences_reg.getString(\"PseudoName\", \"\");\r\n\t\tprofiledescription = mSharedPreferences_reg.getString(\"Pseudodescription\", \"\");\r\n\r\n\t\tsetDataToRespectiveFields();\r\n\t}", "protected List<Info> getInfo() {\n\n return (List<Info>) getExtraData().get(ProcessListener.EXTRA_DATA_INFO);\n }", "private void carregaInformacoes() {\n Pessoa pessoa = (Pessoa) getIntent().getExtras().getSerializable(\"pessoa\");\n edtNome.setText(pessoa.getNome());\n edtEmail.setText(pessoa.getEmail());\n edtTelefone.setText(pessoa.getTelefone());\n edtIdade.setText(pessoa.getIdade());\n edtCPF.setText(pessoa.getCpf());\n }", "public void loadInfo(){\n list=control.getPrgList();\n refreshpsTextField(list.size());\n populatepsListView();\n }", "void getCompanyInfoFromText() {\r\n\r\n String first = texts.get(0).getText();\r\n String cID = first;\r\n String second = texts.get(1).getText();\r\n String cNAME = second;\r\n String third = texts.get(2).getText();\r\n String password = third;\r\n String forth = texts.get(3).getText();\r\n String GUR = forth;\r\n double d = Double.parseDouble(GUR);\r\n String fifth = texts.get(4).getText();\r\n String EUR = fifth;\r\n double dd = Double.parseDouble(EUR);\r\n String sixth = texts.get(5).getText();\r\n String TSB = sixth ;\r\n String TT = \"2018-04-/08:04:26\";\r\n StringBuffer sb = new StringBuffer();\r\n sb.append(TT).insert(8,TSB);\r\n String ts = sb.toString();\r\n\r\n companyInfo.add(new CompanyInfo(cID,cNAME,password,d,dd,ts));\r\n\r\n new CompanyInfo().WriteFiles_append(companyInfo);\r\n }", "public SharedMemory infos();", "public String getInfoString() {\n/* 140 */ return this.info;\n/* */ }", "public void info() {\r\n System.out.println(\" Name: \" + name + \" Facility: \" + facility + \" Floor: \" + floor + \" Covid: \"\r\n + positive + \" Age: \" + age + \" ID: \" + id);\r\n }", "@Override\r\n\tpublic void getInfo() {\n\t\tSystem.out.println(\"=== 학생 정보 ===\");\r\n\t\tsuper.getInfo();\r\n\t\tSystem.out.println(\"전공 : \" + major); \r\n\t}", "private void populateRecipeInfo() {\n\t\tString title = currentRecipe.getTitle();\n\t\tString directions = currentRecipe.getDirections();\n\t\tString description = currentRecipe.getDescription();\n\n\t\tfillTextViews(title, description, directions);\n\t\tpopulateIngredientView();\n\t}", "private Iterable<ModelInfo<Project>> infos() {\n return data.keySet();\n }", "public void setInformation(String information);", "public List<Mensaje> getInfos() {\r\n\t\treturn infos;\r\n\t}", "private void initData() {\n requestServerToGetInformation();\n }", "private void putPersonalInformation() throws SQLException, FileNotFoundException, IOException {\n AdUserPersonalData personal;\n try {\n personal = PersonalDataController.getInstance().getPersonalData(username);\n staff_name = personal.getGbStaffName();\n staff_surname = personal.getGbStaffSurname();\n id_type = \"\"+personal.getGbIdType();\n id_number = personal.getGbIdNumber();\n putProfPic(personal.getGbPhoto());\n phone_number = personal.getGbPhoneNumber();\n mobile_number = personal.getGbMobileNumber();\n email = personal.getGbEmail();\n birthdate = personal.getGbBirthdate();\n gender = \"\"+personal.getGbGender();\n } catch (GB_Exception ex) {\n LOG.error(ex);\n GBMessage.putException(ex);\n }\n }", "public void populateUserInformation()\n {\n ViewInformationUser viewInformationUser = new ViewFXInformationUser();\n\n viewInformationUser.buildViewProfileInformation(clientToRegisteredClient((Client) user), nameLabel, surnameLabel, phoneLabel, emailLabel, addressVbox);\n }", "private void getUserInfo() {\n httpClient.get(API.LOGIN_GET_USER_INFO, new JsonHttpResponseHandler(){\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n super.onSuccess(statusCode, headers, response);\n callback.onLoginSuccess(response.optJSONObject(Constant.OAUTH_RESPONSE_USER_INFO));\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n super.onFailure(statusCode, headers, responseString, throwable);\n callback.onLoginFailed(throwable.getMessage(), ErrorCode.ERROR_CODE_SERVER_EXCEPTION);\n }\n });\n }", "public void retrieveData(Info info) {\n for(int i=0 ; i<degree.getAdapter().getCount() ;i++){\n if(Objects.equals(info.getEducation().getDegree(),degree.getAdapter().getItem(i))) {\n degree.setSelection(i);\n }\n }\n\n universityName.setText(info.getEducation().getUniversity());\n specialization.setText(info.getEducation().getSpecialization());\n specializationRate.setText(info.getEducation().getSpecializationRate()+\"\");\n\n jobTitle.setText(info.getWork().getJobTitle());\n jobAddress.setText(info.getWork().getJobAddress());\n companyName.setText(info.getWork().getCompanyName());\n salary.setText(info.getWork().getSalary()+\"\");\n otherJobs.setText(info.getWork().getOtherJobs());\n\n\n }", "public PassengerInfos(){\r\n\t\tthis.serial = 0;\r\n\t\tthis.phone = VAL_DEFAULT_STRING;\r\n\t\tthis.name = VAL_DEFAULT_STRING;\r\n\t\tthis.recordDesc = this.name;\r\n\t\tthis.addressInfos = new AddressInfos();\r\n\t\tthis.selected = false;\r\n\t\tthis.bigpackages = 0;\r\n\t}", "public void getInvoiceInfo() {\r\n\r\n\t\tSystem.out.println(\"\\nEnter info for invoice number \" + (numberOfBills - counter) + \": \");\r\n\r\n\t\tinvoiceInfo[numberOfBills - counter] = new Invoice();\r\n\t\tinvoiceInfo[numberOfBills - counter].setNameFromUser();\r\n\t\tinvoiceInfo[numberOfBills - counter].setAmountFromUser();\r\n\t\tinvoiceInfo[numberOfBills - counter].setDateFromUser();\r\n\r\n\t}", "@Override\n\tprotected void initData() {\n\t\trequestUserInfo();\n\t}", "private void prepareInformation() {\r\n TextView textDate = findViewById(R.id.textDate);\r\n String date = event.getStartDateFormatted() + \" - \" + event.getEndDateFormatted();\r\n textDate.setText(date);\r\n\r\n TextView textNumber = findViewById(R.id.textNumber);\r\n textNumber.setText(event.contactNumber);\r\n\r\n TextView textWebsite = findViewById(R.id.textWebsite);\r\n textWebsite.setText(event.homePage);\r\n\r\n TextView textMail = findViewById(R.id.textMail);\r\n textMail.setText(event.mail);\r\n\r\n TextView textDescription = findViewById(R.id.textDescription);\r\n textDescription.setText(event.description);\r\n }", "private void saveInfoFields() {\n\n\t\tString name = ((EditText) getActivity().findViewById(R.id.profileTable_name))\n\t\t\t\t.getText().toString();\n\t\tint weight = Integer\n\t\t\t\t.parseInt(((EditText) getActivity().findViewById(R.id.profileTable_weight))\n\t\t\t\t\t\t.getText().toString());\n\t\tboolean isMale = ((RadioButton) getActivity().findViewById(R.id.profileTable_male))\n\t\t\t\t.isChecked();\n\t\tboolean smoker = ((CheckBox) getActivity().findViewById(R.id.profileTable_smoker))\n\t\t\t\t.isChecked();\n\t\tint drinker = (int) ((RatingBar) getActivity().findViewById(R.id.profileTable_drinker))\n\t\t\t\t.getRating();\n\n\t\tif (!name.equals(storageMan.PrefsName)) {\n\t\t\tstorageMan = new StorageMan(getActivity(), name);\n\t\t}\n\n\t\tstorageMan.saveProfile(new Profile(weight, drinker, smoker, isMale));\n\t\t\n\t\ttoast(\"pref saved\");\n\t}", "private void putDefaultInformation() throws FileNotFoundException, SQLException, IOException {\n staff_name = \"Sin informacion\";\n staff_surname = \"Sin informacion\";\n id_type = \"Sin informacion\";\n id_number = \"Sin informacion\";\n putProfPic(null);\n phone_number = \"Sin informacion\";\n mobile_number = \"Sin informacion\";\n email = \"Sin informacion\";\n birthdate = GBEnvironment.getInstance().serverDate();\n gender = \"Seleccione sexo\";\n }", "abstract public T getInfo();", "protected GeneralInfo(){\r\n \t\tsuper();\r\n \t}", "public void setInfos(List<Mensaje> mensajes) {\r\n\t\tthis.infos = mensajes;\r\n\t}", "private void initializeInfo()\n {\n Iterator<node_info> it=this.ga.getV().iterator();\n while (it.hasNext())\n {\n it.next().setInfo(null);\n }\n }", "public void reestablecerInfo(){\n panelIngresoControlador.getPanelIngreso().reestablecerInfo();\n }", "public void getUserInformation(String sInformation) {\n try {\n\n JSONObject jsonInfo = new JSONObject (sInformation);\n name = jsonInfo.getJSONObject(\"user\").getString(\"name\");\n email = jsonInfo.getJSONObject(\"user\").getString(\"email\");\n gender = jsonInfo.getJSONObject(\"user\").getString(\"gender\");\n birthday = jsonInfo.getJSONObject(\"user\").getString(\"birthday\");\n address = jsonInfo.getJSONObject(\"user\").getString(\"address_street\");\n num = jsonInfo.getJSONObject(\"user\").getString(\"address_number\");\n city = jsonInfo.getJSONObject(\"user\").getString(\"address_city\");\n zip = jsonInfo.getJSONObject(\"user\").getString(\"address_zip\");\n qrcode = jsonInfo.getJSONObject(\"user\").getString(\"qrcode\");\n puntos = jsonInfo.getJSONObject (\"user\").getString (\"points\");\n\n menuJson = jsonInfo.getJSONObject(\"menu\");\n arrayBeneficios = jsonInfo.getJSONObject(\"user\").getJSONArray(\"benefits\");\n menu = menuJson.toString();\n beneficios = arrayBeneficios.toString();\n\n\n user.setsName (name);\n user.setsEmail (email);\n user.setsSex (gender);\n user.setsBirth (birthday);\n user.setsAddress (address);\n user.setiNumE (Integer.valueOf (num));\n user.setsCity (city);\n user.setiCP (Integer.valueOf (zip));\n user.setsCodigoQR (qrcode);\n user.setPuntos (Integer.valueOf (puntos));\n\n //Se guardan los datos en memoria\n PreferenceUtils.saveEmail (email, this);\n PreferenceUtils.saveName (name, this);\n PreferenceUtils.saveCodigo (qrcode,this);\n PreferenceUtils.savePuntos (Integer.valueOf (puntos), this);\n PreferenceUtils.saveAddress (address + \" \" + num + \", \" + city + \", \" + zip, this);\n PreferenceUtils.saveMenu(menu, this);\n PreferenceUtils.saveBeneficios(beneficios, this);\n\n\n\n }catch (JSONException e) {\n e.printStackTrace();\n }\n }", "private void setValues() {\n for (int i = 0; i < name.length; i++) {\n TagViewDetailsModel listModel = new TagViewDetailsModel();\n listModel.setItemImage(image[i]);\n listModel.setItemName(name[i]);\n listModel.setDistance(distance[i]);\n listModel.setTags(tags[i]);\n listModel.setRating(rating[i]);\n savedListModels.add(listModel);\n }\n savedListAdapter = new TagViewDetailsAdapter(TagViewDetailsActivity.this, savedListModels);\n rvTagViewDetails.setAdapter(savedListAdapter);\n }", "private void loadDetails() {\n TextView tvName = (TextView) findViewById(R.id.tvPropertyName);\n TextView tvAddress = (TextView) findViewById(R.id.tvFullAddress);\n TextView tvCategory = (TextView) findViewById(R.id.tvPropCategory);\n TextView tvSize = (TextView) findViewById(R.id.tvRoomSize);\n TextView tvPrice = (TextView) findViewById(R.id.tvPropPrice);\n\n tvName.setText(name);\n tvAddress.setText(address);\n tvCategory.setText(category);\n tvSize.setText(size + \"m2\");\n tvPrice.setText(\"R\" + price + \".00 pm\");\n getImage();\n }", "protected void fillInfo() {\n buffer.setLength(0);\n for (Food food : foods) {\n if (food != null) {\n buffer.append(food.toString());\n }\n }\n }", "public void getInformation() throws IOException {\n\t\tList<Fire> listFeux = new ArrayList<Fire>();\n\t listFeux = this.collectData();\n\t \n\t if(this.previousIntensity > this.real_intensity) {\n\t \tthis.previousIntensity = this.real_intensity;\n\t }\n\t\t\n\t\tthis.alerte.resetIntensity();\t//on reset l'intensite\n\t\tthis.real_intensity = 0;\n\t\t\n\t for (Fire feu: listFeux) {\t\t//on recalcul l'intensite\n\t \tfor (CoordEntity coord: feu.getLocation()) {\n\t\t \tif ( (Math.abs(coord.getX() - this.localisation.x) < this.range) &&\n\t\t \t\t\t(Math.abs(coord.getY() - this.localisation.y) < this.range) ) {\n\t\t \t\tint intensity = this.getIntensityFromFire(feu);\n\t\t \t\tthis.addRealIntensity(intensity);\n\t\t \t\tif (this.isDetectable(feu) == true) {\n\t\t \t\t\tSystem.out.println(\"Detectable\");\n\t\t\t \t\tif (this.applyErrors() == true) {\n\t\t\t \t\t\tthis.alerte.setIntensity(intensity);\t\n\t\t\t \t\t}\n\t\t \t\t}\n\t }\t\t\n\t }\n\t }\n\t System.err.println(previousIntensity + \"/\" + this.real_intensity + \"/\" + this.alerte.getIntensity() );\n\t\t if (this.alerte.getIntensity() > previousIntensity) {\n\t\t \tthis.previousIntensity = this.real_intensity;\t//on recupere l'intensite mesuree precedement\n\t\t \tSystem.err.println(\"Alarme\");\n\t\t \tthis.triggerAlarm();\t//si il y a eu aggravation de l'etat du feu\n\t\t }\n\t}", "public void setData(){\n\t\tif(companyId != null){\t\t\t\n\t\t\tSystemProperty systemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"BUSINESS_TYPE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tbusinessType = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"MAX_INVALID_LOGIN\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tinvalidloginMax = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SKU_GENFLAG\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tautomaticItemCode = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SKU_GENFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tformatItemCode = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"DO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tdeliveryItemNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"STO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tstockOpnameNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"RN_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\treceiptItemNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PLU_GENFLAG\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tautomaticProdCode = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PLU_FORMAT_TYPE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tprodCodeFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tsalesNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SOINV_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tinvoiceNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SORCPT_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\treceiptNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"DEFAULT_TAX_TYPE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tsalesTax = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"DELIVERY_COST\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tdeliveryCost = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tpurchaceNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PINV_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tpurchaceInvoiceNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PAYMENT_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tpaymentNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"TAX_VALUE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\ttaxValue = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t} else {\n\t\t\tbusinessType = null;\n\t\t\tinvalidloginMax = null;\n\t\t\tautomaticItemCode = null;\n\t\t\tformatItemCode = null;\n\t\t\tdeliveryItemNoFormat = null;\n\t\t\tstockOpnameNoFormat = null;\n\t\t\treceiptItemNoFormat = null;\n\t\t\tautomaticProdCode = null;\n\t\t\tprodCodeFormat = null;\n\t\t\tsalesNoFormat = null;\n\t\t\tinvoiceNoFormat = null;\n\t\t\treceiptNoFormat = null;\n\t\t\tsalesTax = null;\n\t\t\tdeliveryCost = null;\n\t\t\tpurchaceNoFormat = null;\n\t\t\tpurchaceInvoiceNoFormat = null;\n\t\t\tpaymentNoFormat = null;\n\t\t\ttaxValue = null;\n\t\t}\n\t}" ]
[ "0.6754182", "0.6748682", "0.6666756", "0.6530928", "0.6453979", "0.6453113", "0.64430964", "0.64396656", "0.64209056", "0.64062357", "0.63958997", "0.6365159", "0.6364703", "0.6355632", "0.6345688", "0.6340926", "0.63175714", "0.63161635", "0.63138336", "0.6296262", "0.6278507", "0.62420994", "0.6229425", "0.6187481", "0.61701095", "0.61698884", "0.61572874", "0.6138787", "0.61351997", "0.6132729", "0.6120486", "0.60845965", "0.60823923", "0.6067486", "0.60668117", "0.6061676", "0.6061349", "0.60464287", "0.60454327", "0.60279655", "0.60269475", "0.600031", "0.600031", "0.5997095", "0.59961116", "0.5995046", "0.59867316", "0.5986301", "0.5986147", "0.5974747", "0.59713054", "0.593902", "0.59319746", "0.5927528", "0.58975875", "0.5894233", "0.58748734", "0.5867624", "0.5854634", "0.58532757", "0.58521783", "0.5828031", "0.58104885", "0.5807059", "0.5805019", "0.5796642", "0.5792844", "0.57891965", "0.5785434", "0.5772837", "0.5769927", "0.5768988", "0.5768098", "0.57620823", "0.5762079", "0.57467145", "0.57424194", "0.57357496", "0.5725284", "0.57250303", "0.5724996", "0.5722627", "0.5709068", "0.5704535", "0.5690679", "0.5672875", "0.56655973", "0.5657052", "0.56499124", "0.5646322", "0.56441456", "0.5641109", "0.56391704", "0.5637789", "0.5631157", "0.5630466", "0.5628167", "0.5622137", "0.56128234", "0.56091905", "0.56088805" ]
0.0
-1
este metodo permite leer los datos de cada uno de los empleados que sean creados los parametros son los mismos que contiene el constructor
public static Empleado leerDatos() { Scanner entrada= new Scanner(System.in); Empleado obj; String nombre; String apellido; int edad; String fechaNa; double sueldo; String telefono; String direccion; String email; String cargo; nombre = validarString("Ingrese sus nombres"); apellido = validarString("Ingrese sus apellidos"); System.out.println("ingrese su edad"); edad= entrada.nextInt(); fechaNa = validarString("Ingrese su fecha de nacimiento"); System.out.println("ingrese su sueldo"); sueldo=entrada.nextDouble(); telefono= validarString("Ingrese su telefono"); direccion= validarString("Ingrese su direccion"); email = validarString("Ingrese su email"); cargo = validarString("Ingrese su cargo"); obj= new Empleado(nombre,apellido,edad, fechaNa,sueldo, telefono, direccion, email,cargo);//se inicializa un empleado de tipo obj return obj; // se retorna el objeto }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n Alumno aaDatos []; // El identificador es nulo\n \n aaDatos = new Alumno[tam];//Creamos un arreglo de 10 \n //alumnos - AQUI HABRA PREGUNTA\n for (int i = 0; i < aaDatos.length; i++) {\n aaDatos[i]= new Alumno(\"Dany\",\"16550518\", 0);//Para cada lugar de arreglo se crea un objeto de la clase alumno\n \n }\n for (Alumno aaDatos1: aaDatos) {\n System.out.println(\"Nombre: \"+ aaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaDatos1.getiCar());\n \n }\n \n \n //CREAMOS UNA COPIA DEL ARREGLO\n Alumno aaCopiaDatos [];\n aaCopiaDatos = new Alumno [tam];\n \n for (int i = 0; i < aaCopiaDatos.length; i++) {\n aaCopiaDatos[i]= new Alumno(aaDatos[i].getsNom(), // <<<Se llenan todos los datos que pide el constructor por argumentos\n aaDatos[i].getsMatri(), \n aaDatos[i].getiCar());\n \n }\n for (Alumno aaCopiaDatos1 : aaCopiaDatos) {\n System.out.println(\"Nombre: \"+ aaCopiaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaCopiaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaCopiaDatos1.getiCar());\n }\n System.out.println(aaDatos);\n System.out.println(aaCopiaDatos);\n }", "private void limpiarDatos() {\n\t\t\n\t}", "public datosTaller() {\n this.cedulaCliente = new int[100]; //Atributo de la clase\n this.nombreCliente = new String[100]; //Atributo de la clase\n this.compraRealizada = new String[100]; //Atributo de la clase\n this.valorCompra = new float[100]; //Atributo de la clase\n this.posicionActual = 0; //Inicializacion de la posicion en la que se almacenan datos\n }", "public Controlador() {\n\t\t// m\n\t\tdatosPrueba1 = new ListaEnlazada();\n\t\t// m\n\t\tdatosPrueba2 = new ListaEnlazada();\n\t\t// add\n\t\tdatosPrueba3 = new ListaEnlazada();\n\t\tdatosPrueba4 = new ListaEnlazada();\n\t\tprueba1 = new Estadisticas(datosPrueba1);\n\t\tprueba2 = new Estadisticas(datosPrueba2);\n\t\tprueba3 = new Estadisticas(datosPrueba3);\n\t\tprueba4 = new Estadisticas(datosPrueba4);\n\t\t// finAdd\n\t}", "public 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 DatoGeneralEmpleadoLogic()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.datogeneralempleadoDataAccess = new DatoGeneralEmpleadoDataAccess();\r\n\t\t\t\r\n\t\t\tthis.datogeneralempleados= new ArrayList<DatoGeneralEmpleado>();\r\n\t\t\tthis.datogeneralempleado= new DatoGeneralEmpleado();\r\n\t\t\t\r\n\t\t\tthis.datogeneralempleadoObject=new Object();\r\n\t\t\tthis.datogeneralempleadosObject=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.datogeneralempleadoDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.datogeneralempleadoDataAccess.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 CalMetasDTO leerRegistro() {\n/* */ try {\n/* 56 */ CalMetasDTO reg = new CalMetasDTO();\n/* 57 */ reg.setCodigoCiclo(this.rs.getInt(\"codigo_ciclo\"));\n/* 58 */ reg.setCodigoPlan(this.rs.getInt(\"codigo_plan\"));\n/* 59 */ reg.setCodigoMeta(this.rs.getInt(\"codigo_meta\"));\n/* 60 */ reg.setCodigoObjetivo(this.rs.getInt(\"codigo_objetivo\"));\n/* 61 */ reg.setDescripcion(this.rs.getString(\"descripcion\"));\n/* 62 */ reg.setJustificacion(this.rs.getString(\"justificacion\"));\n/* 63 */ reg.setValorMeta(this.rs.getDouble(\"valor_meta\"));\n/* 64 */ reg.setTipoMedicion(this.rs.getString(\"tipo_medicion\"));\n/* 65 */ reg.setFuenteDato(this.rs.getString(\"fuente_dato\"));\n/* 66 */ reg.setAplicaEn(this.rs.getString(\"aplica_en\"));\n/* 67 */ reg.setUnidadMedida(this.rs.getString(\"unidad_medida\"));\n/* 68 */ reg.setValorMinimo(this.rs.getDouble(\"valor_minimo\"));\n/* 69 */ reg.setValorMaximo(this.rs.getDouble(\"valor_maximo\"));\n/* 70 */ reg.setMes01(this.rs.getString(\"mes01\"));\n/* 71 */ reg.setMes02(this.rs.getString(\"mes02\"));\n/* 72 */ reg.setMes03(this.rs.getString(\"mes03\"));\n/* 73 */ reg.setMes04(this.rs.getString(\"mes04\"));\n/* 74 */ reg.setMes05(this.rs.getString(\"mes05\"));\n/* 75 */ reg.setMes06(this.rs.getString(\"mes06\"));\n/* 76 */ reg.setMes07(this.rs.getString(\"mes07\"));\n/* 77 */ reg.setMes08(this.rs.getString(\"mes08\"));\n/* 78 */ reg.setMes09(this.rs.getString(\"mes09\"));\n/* 79 */ reg.setMes10(this.rs.getString(\"mes10\"));\n/* 80 */ reg.setMes11(this.rs.getString(\"mes11\"));\n/* 81 */ reg.setMes12(this.rs.getString(\"mes12\"));\n/* 82 */ reg.setEstado(this.rs.getString(\"estado\"));\n/* 83 */ reg.setTipoGrafica(this.rs.getString(\"tipo_grafica\"));\n/* 84 */ reg.setFechaInsercion(this.rs.getString(\"fecha_insercion\"));\n/* 85 */ reg.setUsuarioInsercion(this.rs.getString(\"usuario_insercion\"));\n/* 86 */ reg.setFechaModificacion(this.rs.getString(\"fecha_modificacion\"));\n/* 87 */ reg.setUsuarioModificacion(this.rs.getString(\"usuario_modificacion\"));\n/* 88 */ reg.setNombreTipoMedicion(this.rs.getString(\"nombreTipoMedicion\"));\n/* 89 */ reg.setNombreEstado(this.rs.getString(\"nombreEstado\"));\n/* 90 */ reg.setNombreUnidadMedida(this.rs.getString(\"nombre_unidad_medida\"));\n/* */ \n/* */ try {\n/* 93 */ reg.setNumeroAcciones(this.rs.getInt(\"acciones\"));\n/* */ }\n/* 95 */ catch (Exception e) {}\n/* */ \n/* */ \n/* */ \n/* 99 */ return reg;\n/* */ }\n/* 101 */ catch (Exception e) {\n/* 102 */ e.printStackTrace();\n/* 103 */ Utilidades.writeError(\"CalPlanMetasFactory:leerRegistro \", e);\n/* */ \n/* 105 */ return null;\n/* */ } \n/* */ }", "public void cargaDeDatos(List<List<Object>> Musuarios,List<List<Object>> Mtareas, List<List<Object>> Mrequisitos) {\r\n\tfor (List<Object> l: Musuarios) {\r\n\t\tam.addMiembro(new MiembroDeEquipo((int)l.get(0),(String)l.get(1)));\r\n\t}\r\n\t/**\r\n\t * Cargamos a la lista de administrador de tareas todas las tareas que se encuentran en la base de datos, \r\n\t * si no tiene miembro se le pone a null sino se le añade un miembro.\r\n\t */\r\n\tfor (List<Object> l: Mtareas) {\r\n\t\tat.addTarea(new Tarea((String)l.get(0),(int)l.get(1),(int)l.get(2),(int)l.get(3),(int)l.get(6)));\r\n\t\t//Si tiene un miembro asignado (cualquier id mayor que cero) le añade el miembro de equipo, sino null\r\n\t\tif(0 < (int)l.get(5)) {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setAsignadoA(am.BuscarMiembro((int) l.get(5)));\r\n\t\t}else {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setAsignadoA(null);\r\n\t\t}\r\n\t\t//Si tiene un requisito (cualquier id maor que cero) le añade el requisito, sino null\r\n\t\tif(0 < (int)l.get(4)) {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(ar.BuscarRequisito((int) l.get(4)));\r\n\t\t}else {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(null);\r\n\t\t}\r\n\t\tat.BuscarTarea((int)l.get(1)).setDescripcion((String)l.get(7));\r\n\t}\r\n\t/**\r\n\t * Cargamos la lista del administrador de requisitos con todos los requisitos que tenemos,\r\n\t * si el requisito tiene 5 atributos, será un defecto, sino será una historia de usuario\r\n\t */\r\n\tfor (List<Object> l: Mrequisitos) {\r\n\t\tHashSet<Tarea> lista = new HashSet<Tarea>();\r\n\t\t//Buscamos todas las tareas que tengan este requisito, para tener una lista de las tareas que este tiene\r\n\t\tfor(List<Object> t: Mtareas) {\r\n\t\t\t\r\n\t\t\tif((int)l.get(2)==(int)t.get(4)) {\r\n\t\t\t\tlista.add(at.BuscarTarea((int)t.get(1)));\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Creamos defecto o historiaDeUsuario, según sea el caso y lo añadimos a la lista generica de Requisitos.\r\n\t\tif(l.size()==5) {\r\n\t\t\tDefecto req = new Defecto((String)l.get(4),(String) l.get(0), (String)l.get(1),(int)l.get(2),lista);\r\n\t\t\tif((int)l.get(3)==1) {\r\n\t\t\treq.finalizar();\r\n\t\t\t}\r\n\t\t\tar.addRequisito(req);\r\n\t\t}else {\r\n\t\t\tRequisito req = new HistoriaDeUsuario((String) l.get(0), (String)l.get(1),(int)l.get(2));\r\n\t\t\tif(!lista.isEmpty()) {\r\n\t\t\t\treq.setRequisitos(lista);\r\n\t\t\t}\r\n\t\t\tif((int)l.get(3)==1) {\r\n\t\t\treq.finalizar();\r\n\t\t\t}\r\n\t\t\tar.addRequisito(req);\t\t\r\n\t\t}\r\n\t}\r\n\tfor (List<Object> l: Mtareas) {\r\n\t\t//Si tiene un requisito (cualquier id maor que cero) le añade el requisito, sino null\r\n\t\tif(0 < (int)l.get(4)) {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(ar.BuscarRequisito((int) l.get(4)));\r\n\t\t}else {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(null);\r\n\t\t}\r\n\t}\r\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 }", "BaseDatosMemoria() {\n baseDatos = new HashMap<>();\n secuencias = new HashMap<>();\n }", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Empresa\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tEmpresa entity = new Empresa();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=EmpresaDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=EmpresaDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,EmpresaDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Seguridad.Empresa.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseEmpresa(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "private void initValues() {\n this.closeConnection();\n this.agregarRol = false;\n rutRoles = null; rutRoles = new Vector(); rutRoles.clear();\n deudasContribuyente = null; deudasContribuyente = new Vector(); deudasContribuyente.clear();\n rutRolesConsultados = null; rutRolesConsultados = new HashMap(); rutRolesConsultados.clear();\n param = null; param = new HashMap(); param.clear();\n\n demandasContribuyente = null; demandasContribuyente = new Vector(); demandasContribuyente.clear();\n demandaSeleccionada=null; demandaSeleccionada= new Long(-1);\n\n\n this.conveniosMasivo = null;\n\n porcentajeCuotaContado = null; porcentajeCuotaContado = new Long(0);\n porcentajeCondonacion = null; porcentajeCondonacion = new Long(0);\n pagoContado = null; pagoContado = new Long(0);\n numeroCuotas = null; numeroCuotas = new Long(0);\n totalPagar = null; totalPagar = new Long(0);\n totalPagarConCondonacion = null; totalPagarConCondonacion = new Long(0);\n arregloDeudas=\"\";\n tipoPago=1;\n estadoCobranza=\"T\";\n codigoPropuesta = new Long(0);\n codigoFuncionario = new Long(0);\n idTesoreria = new Long(0);\n liquidada = false;\n }", "public Final_parametre() {\r\n\t}", "private void cargaInfoEmpleado(){\r\n Connection conn = null;\r\n Conexion conex = null;\r\n try{\r\n if(!Config.estaCargada){\r\n Config.cargaConfig();\r\n }\r\n conex = new Conexion();\r\n conex.creaConexion(Config.host, Config.user, Config.pass, Config.port, Config.name, Config.driv, Config.surl);\r\n conn = conex.getConexion();\r\n if(conn != null){\r\n ArrayList<Object> paramsIn = new ArrayList();\r\n paramsIn.add(txtLogin);\r\n QryRespDTO resp = new Consulta().ejecutaSelectSP(conn, IQryUsuarios.NOM_FN_OBTIENE_INFO_USUARIOWEB, paramsIn);\r\n System.out.println(\"resp: \" + resp.getRes() + \"-\" + resp.getMsg());\r\n if(resp.getRes() == 1){\r\n ArrayList<ColumnaDTO> listaColumnas = resp.getColumnas();\r\n for(HashMap<String, CampoDTO> fila : resp.getDatosTabla()){\r\n usuario = new UsuarioDTO();\r\n \r\n for(ColumnaDTO col: listaColumnas){\r\n switch(col.getIdTipo()){\r\n case java.sql.Types.INTEGER:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Integer.parseInt(fila.get(col.getEtiqueta()).getValor().toString().replaceAll(\",\", \"\").replaceAll(\"$\", \"\").replaceAll(\" \", \"\")));\r\n break;\r\n \r\n case java.sql.Types.DOUBLE:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Double.parseDouble(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.FLOAT:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.DECIMAL:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.VARCHAR:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n \r\n case java.sql.Types.NUMERIC:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n default:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n } \r\n }\r\n }\r\n sesionMap.put(\"UsuarioDTO\", usuario);\r\n }else{\r\n context.getExternalContext().getApplicationMap().clear();\r\n context.getExternalContext().redirect(\"index.xhtml\");\r\n }\r\n }\r\n }catch(Exception ex){\r\n System.out.println(\"Excepcion en la cargaInfoEmpleado: \" + ex);\r\n }finally{\r\n try{\r\n conn.close();\r\n }catch(Exception ex){\r\n \r\n }\r\n }\r\n }", "public listaAlumnos()\r\n\t{\r\n\t\tinicio = fin = null; \r\n\t}", "public void limpiarProcesoBusqueda() {\r\n parametroEstado = 1;\r\n parametroNombre = null;\r\n parametroApellido = null;\r\n parametroDocumento = null;\r\n parametroTipoDocumento = null;\r\n parametroCorreo = null;\r\n parametroUsuario = null;\r\n parametroEstado = 1;\r\n parametroGenero = 1;\r\n listaTrabajadores = null;\r\n inicializarFiltros();\r\n }", "public void cargarDatos() {\n \n if(drogasIncautadoList==null){\n return;\n }\n \n \n \n List<Droga> datos = drogasIncautadoList;\n\n Object[][] matriz = new Object[datos.size()][4];\n \n for (int i = 0; i < datos.size(); i++) {\n \n \n //System.out.println(s[0]);\n \n matriz[i][0] = datos.get(i).getTipoDroga();\n matriz[i][1] = datos.get(i).getKgDroga();\n matriz[i][2] = datos.get(i).getQuetesDroga();\n matriz[i][3] = datos.get(i).getDescripcion();\n \n }\n Object[][] data = matriz;\n String[] cabecera = {\"Tipo Droga\",\"KG\", \"Quetes\", \"Descripción\"};\n dtm = new DefaultTableModel(data, cabecera);\n tableDatos.setModel(dtm);\n }", "public void buscarDatos() throws Exception {\n\t\ttry {\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue()\n\t\t\t\t\t.toString();\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\n\n\t\t\tMap<String, Object> parameters = new HashMap<String, Object>();\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\n\n\t\t\tif (parameter.equalsIgnoreCase(\"fecha_inicial\")) {\n\t\t\t\tparameters.put(\"fecha_string\", value);\n\t\t\t} else {\n\t\t\t\tparameters.put(\"parameter\", parameter);\n\t\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\n\t\t\t}\n\t\t\tif (admision != null) {\n\t\t\t\tparameters.put(\"identificacion\",\n\t\t\t\t\t\tadmision.getNro_identificacion());\n\t\t\t}\n\n\t\t\tgetServiceLocator().getFicha_epidemiologia_nnService().setLimit(\n\t\t\t\t\t\"limit 25 offset 0\");\n\n\t\t\tList<Ficha_epidemiologia_n3> lista_datos = getServiceLocator()\n\t\t\t\t\t.getFicha_epidemiologia_nnService().listar(\n\t\t\t\t\t\t\tFicha_epidemiologia_n3.class, parameters);\n\t\t\trowsResultado.getChildren().clear();\n\n\t\t\tfor (Ficha_epidemiologia_n3 ficha_epidemiologia_n3 : lista_datos) {\n\t\t\t\trowsResultado.appendChild(crearFilas(\n\t\t\t\t\t\tficha_epidemiologia_n3, this));\n\t\t\t}\n\n\t\t\tgridResultado.setVisible(true);\n\t\t\tgridResultado.setMold(\"paging\");\n\t\t\tgridResultado.setPageSize(20);\n\n\t\t\tgridResultado.applyProperties();\n\t\t\tgridResultado.invalidate();\n\n\t\t} catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}", "@Override\n\tpublic ArrayList<Object> leer(Connection connection, String campoBusqueda, String valorBusqueda) {\n\t\tString query = \"\";\n\t\tDetalleSolicitud detalleSolicitud = null;\n\t\tArrayList<Object> listaDetalleSolicitud = new ArrayList<Object>();\n\t\tif (campoBusqueda.isEmpty() || valorBusqueda.isEmpty()) {\n\t\t\tquery = \"SELECT * FROM detallesolicitudes ORDER BY sysPK;\";\n\t\t\ttry {\n\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\tResultSet resultSet = statement.executeQuery(query); \t\t\t\t\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\tdetalleSolicitud = new DetalleSolicitud();\n\t\t\t\t\tdetalleSolicitud.setSysPk(resultSet.getInt(1));\n\t\t\t\t\tdetalleSolicitud.setCantidad(resultSet.getInt(2));\n\t\t\t\t\tdetalleSolicitud.setFechaEntrega(resultSet.getDate(3));\n\t\t\t\t\tdetalleSolicitud.setDisenoFk(resultSet.getInt(4));\n\t\t\t\t\tdetalleSolicitud.setSolicitudFk(resultSet.getInt(5));\n\t\t\t\t\tlistaDetalleSolicitud.add(detalleSolicitud);\n\t\t\t\t}//FIN WHILE\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tNotificacion.dialogoException(ex);\n\t\t\t}//FIN TRY/CATCH\n\t\t} else {\n\t\t\tquery = \"SELECT * FROM detallesolicitudes WHERE \" + campoBusqueda + \" = ? ORDER BY sysPK;\";\n\t\t\ttry {\n\t\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(query);\n\t\t\t\tpreparedStatement.setString(1, valorBusqueda);\n\t\t\t\tResultSet resultSet=preparedStatement.executeQuery();\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\tdetalleSolicitud = new DetalleSolicitud();\n\t\t\t\t\tdetalleSolicitud.setSysPk(resultSet.getInt(1));\n\t\t\t\t\tdetalleSolicitud.setCantidad(resultSet.getInt(2));\n\t\t\t\t\tdetalleSolicitud.setFechaEntrega(resultSet.getDate(3));\n\t\t\t\t\tdetalleSolicitud.setDisenoFk(resultSet.getInt(4));\n\t\t\t\t\tdetalleSolicitud.setSolicitudFk(resultSet.getInt(5));\n\t\t\t\t\tlistaDetalleSolicitud.add(detalleSolicitud);\n\t\t\t\t}//FIN WHILE\n\t\t\t}catch (SQLException ex) {\n\t\t\t\tNotificacion.dialogoException(ex);\n\t\t\t}//FIN TRY/CATCH\n\t\t}//FIN IF/ELSE\n\t\treturn listaDetalleSolicitud;\n\t}", "public void buscarEstudiante(String codEstudiante){\n estudianteModificar=new Estudiante();\n estudianteGradoModificar=new EstudianteGrado();\n StringBuilder query=new StringBuilder();\n query.append(\"select e.idestudiante,e.nombre,e.apellido,e.ci,e.cod_est,e.idgrado,e.idcurso,g.grado,c.nombre_curso \" );\n query.append(\" from estudiante e \");\n query.append(\" inner join grado g on e.idgrado=g.idgrado \");\n query.append(\" inner join cursos c on e.idcurso=c.idcurso \");\n query.append(\" where idestudiante=? \");\n try {\n PreparedStatement pst=connection.prepareStatement(query.toString());\n pst.setInt(1, Integer.parseInt(codEstudiante));\n ResultSet resultado=pst.executeQuery();\n //utilizamos una condicion porque la busqueda nos devuelve 1 registro\n if(resultado.next()){\n //cargando la informacion a nuestro objeto categoriaModificarde tipo categoria\n estudianteModificar.setCodEstudiante(resultado.getInt(1));\n estudianteModificar.setNomEstudiante(resultado.getString(2));\n estudianteModificar.setApEstudiante(resultado.getString(3));\n estudianteModificar.setCiEstudiante(resultado.getInt(4));\n estudianteModificar.setCodigoEstudiante(resultado.getString(5));\n estudianteModificar.setIdgradoEstudiante(resultado.getInt(6));\n estudianteModificar.setIdCursoEstudiante(resultado.getInt(7));\n estudianteGradoModificar.setNomGrado(resultado.getString(8));\n estudianteGradoModificar.setNomCurso(resultado.getString(9));\n }\n } catch (SQLException e) {\n System.out.println(\"Error de conexion\");\n e.printStackTrace();\n }\n }", "public Empleado(String nombre, String departamento, String posicion, int salario)\n {\n // initialise instance variables\n this.nombre=nombre;\n this.departamento=departamento;\n this.posicion=posicion;\n this.salario=salario;\n \n }", "public Muestra(String nombreMuestra,Float peso, Float profundidadInicial,Float profundidadFinal,OperadorDeLaboratorio operador,\r\n\t\t\t\t\tUsuario usuario, Ubicacion ubicacion, AASHTO aashto, SUCS sucs,Cliente cliente,java.sql.Date fecha) {\r\n\t\tthis.nombreMuestra = nombreMuestra;\r\n\t\tthis.profundidadInicial = profundidadInicial;\r\n\t\tthis.profundidadFinal = profundidadFinal;\r\n\t\tthis.peso = peso;\r\n\t\tthis.operadorLaboratorio = operador;\r\n\t\tthis.cliente = cliente;\r\n\t\tthis.usuario = usuario;\r\n\t\tthis.ubicacion = ubicacion;\r\n\t\tthis.aashto = aashto;\r\n\t\tthis.sucs = sucs;\r\n\t\tthis.fecha = fecha;\r\n\t\tD10= new Float(0);\r\n\t\tD30= new Float(0);\r\n\t\tD60= new Float(0);\r\n\t\tthis.gradoCurvatura = new Float(0);\r\n\t\tthis.coeficienteUniformidad = new Float(0);\r\n\t\tindicePlasticidad = new Float(0);\r\n\t\tlimitePlastico = new Float(0);\r\n\t\tlimiteLiquido = new Float(0);\r\n\t}", "public void buscarDatos()throws Exception{\n\t\ttry {\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue().toString();\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\n\n\t\t\tMap<String, Object> parameters = new HashMap<String, Object>();\n\t\t\tparameters.put(\"parameter\", parameter);\n\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\n\n\t\t\tif (admision != null) {\n\t\t\t\tparameters.put(\"identificacion\",\n\t\t\t\t\t\tadmision.getNro_identificacion());\n\t\t\t}\n\t\t\t\n\t\t\tgetServiceLocator().getFicha_epidemiologia_nnService().setLimit(\"limit 25 offset 0\");\n\t\t\t\n\t\t\tList<Ficha_epidemiologia_n13> lista_datos = getServiceLocator()\n\t\t\t\t\t.getFicha_epidemiologia_nnService().listar(\n\t\t\t\t\t\t\tFicha_epidemiologia_n13.class, parameters);\n\t\t\trowsResultado.getChildren().clear();\n\t\t\t\n\t\t\tfor (Ficha_epidemiologia_n13 ficha_epidemiologia_n13 : lista_datos) {\n\t\t\t\trowsResultado.appendChild(crearFilas(ficha_epidemiologia_n13, this));\n\t\t\t}\n\t\t\t\n\t\t\tgridResultado.setVisible(true);\n\t\t\tgridResultado.setMold(\"paging\");\n\t\t\tgridResultado.setPageSize(20);\n\t\t\t\n\t\t\tgridResultado.applyProperties();\n\t\t\tgridResultado.invalidate();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}", "private Coche pedirDatosCoche() {\n Scanner leer = new Scanner(System.in);\n String matricula, marca, modelo;\n int km;\n Coche auxCoche; // guardará coche antes de ponerlo en ArrayList\n System.out.print(\" Introduce matricula: \");\n matricula = leer.next();\n System.out.print(\" Introduce marca: \");\n marca = leer.next();\n System.out.print(\" Introduce modelo: \");\n modelo = leer.next();\n System.out.print(\" Introduce kilometraje: \");\n km = leer.nextInt();\n return new Coche(matricula, marca, modelo, km);\n }", "protected void initParametros ( int numParametros ) {\n if ( numParametros > 0 )\n parametros = new Parametro[ numParametros ];\n }", "public List<VentaDet> generar(Periodo mes){\n\t\tString sql=ReplicationUtils.resolveSQL(mes,\"ALMACE\",\"ALMFECHA\")+\" AND ALMTIPO=\\'FAC\\' ORDER BY ALMSUCUR,ALMNUMER,ALMSERIE\";\r\n\t\tVentasDetMapper mapper=new VentasDetMapper();\r\n\t\tmapper.setBeanClass(getBeanClass());\r\n\t\tmapper.setOrigen(\"ALMACE\");\r\n\t\tmapper.setPropertyColumnMap(getPropertyColumnMap());\r\n\t\tList<VentaDet> rows=getFactory().getJdbcTemplate(mes).query(sql,mapper);\r\n\t\tlogger.info(\"VentaDet obtenidas : \"+rows.size());\r\n\t\treturn rows;\r\n\t}", "public TabellaModel() {\r\n lista = new Lista();\r\n elenco = new Vector<Persona>();\r\n elenco =lista.getElenco();\r\n values = new String[elenco.size()][3];\r\n Iterator<Persona> iterator = elenco.iterator();\r\n while (iterator.hasNext()) {\r\n\t\t\tfor (int i = 0; i < elenco.size(); i++) {\r\n\t\t\t\tpersona = new Persona();\r\n\t\t\t\tpersona = (Persona) iterator.next();\r\n\t\t\t\tvalues[i][0] = persona.getNome();\r\n\t\t\t\tvalues[i][1] = persona.getCognome();\r\n\t\t\t\tvalues[i][2] = persona.getTelefono();\t\r\n\t\t\t}\r\n\t\t}\r\n setDataVector(values, columnNames);\t\r\n }", "public Parametros() {\r\n semilla = SEMILLA_DEFECTO;\r\n numeroPistas = NUMERO_PISTAS_DEFECTO;\r\n duracionSlot = DURACION_SLOT_DEFECTO;\r\n frecuencia = FRECUENCIA_DEFECTO;\r\n duracionMedia = DURACION_MEDIA_DEFECTO;\r\n duracionDesviacion = DURACION_DESVIACION_DEFECTO;\r\n duracionMinima = DURACION_MINIMA_DEFECTO;\r\n demoraMedia = DEMORA_MEDIA_DEFECTO;\r\n demoraDesviacion = DEMORA_DESVIACION_DEFECTO;\r\n }", "public BeanDatosAlumno() {\r\n bo = new BoPrestamoEjemplarImpl();\r\n verEjemplares(\"ABC0001\"); \r\n numerodelibrosPrestados();\r\n }", "public static ArrayList<obj_dos_campos> carga_tipo_producto() {\n ArrayList<obj_dos_campos> lista = new ArrayList<obj_dos_campos>();\n Connection c=null;\n try {\n c = conexion_odbc.Connexion_datos();\n Statement s = c.createStatement();\n ResultSet rs = s.executeQuery(\"select tip_prod_idn as data, tip_prod_nombre as label from tipo_producto order by tip_prod_nombre desc\");\n lista.add(new obj_dos_campos(\"0\",\"-- Seleccione --\"));\n while (rs.next()){\n lista.add(new obj_dos_campos(rs.getString(\"data\"),rs.getString(\"label\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n c.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n return lista;\n }", "public CambioComplementariosDTO(java.lang.String curpEmpleado,\n java.lang.String rfcEmpleado,\n java.lang.String primerApellido,\n java.lang.String segundoApellido,\n java.lang.String nombreEmpleado,\n java.lang.String clabeEmpleado,\n java.lang.String idBancoSar,\n java.util.Date ingresoGobFed, \n java.util.Date ingresoDependencia, \n java.util.Date terminoCargoSind, \n java.lang.String imssIssste, \n java.lang.String EMailOficial, \n java.lang.String EMailPersonal,\n java.lang.Integer idRusp, \n java.lang.String sistemaReparto, \n java.lang.String idTipoPago, \n java.lang.String idEdoCivil, \n java.lang.String idNacionalidad, \n java.lang.String idProfnCarrera, \n java.lang.Integer idNivelEscolar, \n java.lang.Integer idInstEducativa, \n java.lang.Integer idEspProtCivil, \n java.lang.Integer idInstProtcivil, \n java.util.Date fecNotDecPatr, \n java.util.Date fecIniDeclPatr, \n java.util.Date fecIngSpc, \n java.lang.String casoMuestra,\n java.lang.String discapacidad,\n java.lang.String estudiaSiNo,\n java.lang.String padreMadre,\n java.lang.String compatEmpleo,\n java.lang.String usuario,\n java.lang.Integer idInmuebleP,\n java.lang.String plazaTelOfc1,\n java.lang.String plazaExt1) { \n this.curpEmpleado = curpEmpleado;\n this.rfcEmpleado = rfcEmpleado;\n this.primerApellido = primerApellido;\n this.segundoApellido = segundoApellido;\n this.nombreEmpleado = nombreEmpleado;\n this.clabeEmpleado = clabeEmpleado;\n this.idBancoSar = idBancoSar;\n this.ingresoGobFed = ingresoGobFed;\n this.ingresoDependencia = ingresoDependencia;\n this.terminoCargoSind = terminoCargoSind;\n this.imssIssste = imssIssste;\n this.EMailOficial = EMailOficial;\n this.EMailPersonal = EMailPersonal;\n this.idRusp = idRusp;\n this.sistemaReparto = sistemaReparto;\n this.idTipoPago = idTipoPago;\n this.idEdoCivil = idEdoCivil;\n this.idNacionalidad = idNacionalidad;\n this.idProfnCarrera = idProfnCarrera;\n this.idNivelEscolar = idNivelEscolar;\n this.idInstEducativa = idInstEducativa;\n this.idEspProtCivil = idEspProtCivil;\n this.idInstProtcivil = idInstProtcivil;\n this.fecNotDecPatr = fecNotDecPatr;\n this.fecIniDeclPatr = fecIniDeclPatr;\n this.fecIngSpc = fecIngSpc;\n this.casoMuestra = casoMuestra;\n this.discapacidad = discapacidad;\n this.estudiaSiNo = estudiaSiNo;\n this.padreMadre = padreMadre;\n this.compatEmpleo = compatEmpleo;\n this.usuario = usuario;\n this.idInmuebleP = idInmuebleP;\n this.plazaTelOfc1 = plazaTelOfc1;\n this.plazaExt1 = plazaExt1;\n }", "public CampoModelo(String valor, String etiqueta, Integer longitud)\n/* 10: */ {\n/* 11:17 */ this.valor = valor;\n/* 12:18 */ this.etiqueta = etiqueta;\n/* 13:19 */ this.longitud = longitud;\n/* 14: */ }", "public void buscarDatos() throws Exception {\r\n\t\ttry {\r\n\t\t\tString codigo_empresa = empresa.getCodigo_empresa();\r\n\t\t\tString codigo_sucursal = sucursal.getCodigo_sucursal();\r\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue()\r\n\t\t\t\t\t.toString();\r\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\r\n\r\n\t\t\tMap<String, Object> parameters = new HashMap();\r\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\t\tparameters.put(\"parameter\", parameter);\r\n\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\r\n\r\n\t\t\tgetServiceLocator().getHis_partoService().setLimit(\r\n\t\t\t\t\t\"limit 25 offset 0\");\r\n\r\n\t\t\tList<His_parto> lista_datos = getServiceLocator()\r\n\t\t\t\t\t.getHis_partoService().listar(parameters);\r\n\t\t\trowsResultado.getChildren().clear();\r\n\r\n\t\t\tfor (His_parto his_parto : lista_datos) {\r\n\t\t\t\trowsResultado.appendChild(crearFilas(his_parto, this));\r\n\t\t\t}\r\n\r\n\t\t\tgridResultado.setVisible(true);\r\n\t\t\tgridResultado.setMold(\"paging\");\r\n\t\t\tgridResultado.setPageSize(20);\r\n\r\n\t\t\tgridResultado.applyProperties();\r\n\t\t\tgridResultado.invalidate();\r\n\t\t\tgridResultado.setVisible(true);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tlog.error(e.getMessage(), e);\r\n\t\t\tMessagebox.show(e.getMessage(), \"Mensaje de Error !!\",\r\n\t\t\t\t\tMessagebox.OK, Messagebox.ERROR);\r\n\t\t}\r\n\t}", "public void guardarDatos() throws Exception {\r\n\t\ttry {\r\n\t\t\tsetUpperCase();\r\n\t\t\tif (validarForm()) {\r\n\t\t\t\t// Cargamos los componentes //\r\n\r\n\t\t\t\tMap datos = new HashMap();\r\n\r\n\t\t\t\tHis_parto his_parto = new His_parto();\r\n\t\t\t\this_parto.setCodigo_empresa(empresa.getCodigo_empresa());\r\n\t\t\t\this_parto.setCodigo_sucursal(sucursal.getCodigo_sucursal());\r\n\t\t\t\this_parto.setCodigo_historia(tbxCodigo_historia.getValue());\r\n\t\t\t\this_parto.setIdentificacion(tbxIdentificacion.getValue());\r\n\t\t\t\this_parto.setFecha_inicial(new Timestamp(dtbxFecha_inicial\r\n\t\t\t\t\t\t.getValue().getTime()));\r\n\t\t\t\this_parto.setConyugue(tbxConyugue.getValue());\r\n\t\t\t\this_parto.setId_conyugue(tbxId_conyugue.getValue());\r\n\t\t\t\this_parto.setEdad_conyugue(tbxEdad_conyugue.getValue());\r\n\t\t\t\this_parto.setEscolaridad_conyugue(tbxEscolaridad_conyugue\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_parto.setMotivo(tbxMotivo.getValue());\r\n\t\t\t\this_parto.setEnfermedad_actual(tbxEnfermedad_actual.getValue());\r\n\t\t\t\this_parto.setAntecedentes_familiares(tbxAntecedentes_familiares\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_parto.setPreeclampsia(rdbPreeclampsia.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setHipertension(rdbHipertension.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setEclampsia(rdbEclampsia.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setH1(rdbH1.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setH2(rdbH2.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setPostimadurez(rdbPostimadurez.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setRot_pre(rdbRot_pre.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setPolihidramnios(rdbPolihidramnios.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setRcui(rdbRcui.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setPelvis(rdbPelvis.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setFeto_macrosonico(rdbFeto_macrosonico\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setIsoinmunizacion(rdbIsoinmunizacion\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setAo(rdbAo.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setCirc_cordon(rdbCirc_cordon.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setPostparto(rdbPostparto.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setDiabetes(rdbDiabetes.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setCardiopatia(rdbCardiopatia.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setAnemias(rdbAnemias.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setEnf_autoinmunes(rdbEnf_autoinmunes\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setEnf_renales(rdbEnf_renales.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setInf_urinaria(rdbInf_urinaria.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setEpilepsia(rdbEpilepsia.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto\r\n\t\t\t\t\t\t.setTbc(rdbTbc.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setMiomas(rdbMiomas.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setHb(rdbHb.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setFumadora(rdbFumadora.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setInf_puerperal(rdbInf_puerperal.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setInfertilidad(rdbInfertilidad.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setMenarquia(tbxMenarquia.getValue());\r\n\t\t\t\this_parto.setCiclos(tbxCiclos.getValue());\r\n\t\t\t\this_parto.setVida_marital(tbxVida_marital.getValue());\r\n\t\t\t\this_parto.setVida_obstetrica(tbxVida_obstetrica.getValue());\r\n\t\t\t\this_parto.setNo_gestaciones(lbxNo_gestaciones.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setParto(lbxParto.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setAborto(lbxAborto.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setCesarias(lbxCesarias.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setFecha_um(new Timestamp(dtbxFecha_um.getValue()\r\n\t\t\t\t\t\t.getTime()));\r\n\t\t\t\this_parto.setUm(tbxUm.getValue());\r\n\t\t\t\this_parto.setFep(tbxFep.getValue());\r\n\t\t\t\this_parto.setGemerales(lbxGemerales.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setMalformados(lbxMalformados.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setNacidos_vivos(lbxNacidos_vivos.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setNacidos_muertos(lbxNacidos_muertos\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setPreterminos(lbxPreterminos.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setMedico(chbMedico.isChecked());\r\n\t\t\t\this_parto.setEnfermera(chbEnfermera.isChecked());\r\n\t\t\t\this_parto.setAuxiliar(chbAuxiliar.isChecked());\r\n\t\t\t\this_parto.setPartera(chbPartera.isChecked());\r\n\t\t\t\this_parto.setOtros(chbOtros.isChecked());\r\n\t\t\t\this_parto.setControlado(rdbControlado.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setLugar_consulta(rdbLugar_consulta.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setNo_consultas(lbxNo_consultas.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setEspecialistas(chbEspecialistas.isChecked());\r\n\t\t\t\this_parto.setGeneral(chbGeneral.isChecked());\r\n\t\t\t\this_parto.setPartera_consulta(chbPartera_consulta.isChecked());\r\n\t\t\t\this_parto.setSangrado_vaginal(rdbSangrado_vaginal\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setCefalias(rdbCefalias.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setEdema(rdbEdema.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setEpigastralgia(rdbEpigastralgia.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setVomitos(rdbVomitos.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setTinutus(rdbTinutus.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setEscotomas(rdbEscotomas.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setInfeccion_urinaria(rdbInfeccion_urinaria\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setInfeccion_vaginal(rdbInfeccion_vaginal\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setOtros_embarazo(tbxOtros_embarazo.getValue());\r\n\t\t\t\this_parto.setCardiaca(tbxCardiaca.getValue());\r\n\t\t\t\this_parto.setRespiratoria(tbxRespiratoria.getValue());\r\n\t\t\t\this_parto.setPeso(tbxPeso.getValue());\r\n\t\t\t\this_parto.setTalla(tbxTalla.getValue());\r\n\t\t\t\this_parto.setTempo(tbxTempo.getValue());\r\n\t\t\t\this_parto.setPresion(tbxPresion.getValue());\r\n\t\t\t\this_parto.setPresion2(tbxPresion2.getValue());\r\n\t\t\t\this_parto.setInd_masa(tbxInd_masa.getValue());\r\n\t\t\t\this_parto.setSus_masa(tbxSus_masa.getValue());\r\n\t\t\t\this_parto.setCabeza_cuello(tbxCabeza_cuello.getValue());\r\n\t\t\t\this_parto.setCardiovascular(tbxCardiovascular.getValue());\r\n\t\t\t\this_parto.setMamas(tbxMamas.getValue());\r\n\t\t\t\this_parto.setPulmones(tbxPulmones.getValue());\r\n\t\t\t\this_parto.setAbdomen(tbxAbdomen.getValue());\r\n\t\t\t\this_parto.setUterina(tbxUterina.getValue());\r\n\t\t\t\this_parto.setSituacion(tbxSituacion.getValue());\r\n\t\t\t\this_parto.setPresentacion(tbxPresentacion.getValue());\r\n\t\t\t\this_parto.setV_presentacion(tbxV_presentacion.getValue());\r\n\t\t\t\this_parto.setPosicion(tbxPosicion.getValue());\r\n\t\t\t\this_parto.setV_posicion(tbxV_posicion.getValue());\r\n\t\t\t\this_parto.setC_uterina(tbxC_uterina.getValue());\r\n\t\t\t\this_parto.setTono(tbxTono.getValue());\r\n\t\t\t\this_parto.setFcf(tbxFcf.getValue());\r\n\t\t\t\this_parto.setGenitales(tbxGenitales.getValue());\r\n\t\t\t\this_parto.setDilatacion(tbxDilatacion.getValue());\r\n\t\t\t\this_parto.setBorramiento(tbxBorramiento.getValue());\r\n\t\t\t\this_parto.setEstacion(tbxEstacion.getValue());\r\n\t\t\t\this_parto.setMembranas(tbxMembranas.getValue());\r\n\t\t\t\this_parto.setExtremidades(tbxExtremidades.getValue());\r\n\t\t\t\this_parto.setSnc(tbxSnc.getValue());\r\n\t\t\t\this_parto.setObservacion(tbxObservacion.getValue());\r\n\t\t\t\this_parto.setCodigo_consulta_pyp(lbxCodigo_consulta_pyp\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setFinalidad_cons(lbxFinalidad_cons.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setCausas_externas(lbxCausas_externas\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setTipo_disnostico(lbxTipo_disnostico\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setTipo_principal(tbxTipo_principal.getValue());\r\n\t\t\t\this_parto.setTipo_relacionado_1(tbxTipo_relacionado_1\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_parto.setTipo_relacionado_2(tbxTipo_relacionado_2\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_parto.setTipo_relacionado_3(tbxTipo_relacionado_3\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_parto.setTratamiento(tbxTratamiento.getValue());\r\n\r\n\t\t\t\tdatos.put(\"codigo_historia\", his_parto);\r\n\t\t\t\tdatos.put(\"accion\", tbxAccion.getText());\r\n\r\n\t\t\t\this_parto = getServiceLocator().getHis_partoService().guardar(\r\n\t\t\t\t\t\tdatos);\r\n\r\n\t\t\t\tif (tbxAccion.getText().equalsIgnoreCase(\"registrar\")) {\r\n\t\t\t\t\taccionForm(true, \"modificar\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tMessagebox.show(\"Los datos se guardaron satisfactoriamente\",\r\n\t\t\t\t\t\t\"Informacion ..\", Messagebox.OK,\r\n\t\t\t\t\t\tMessagebox.INFORMATION);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tlog.error(e.getMessage(), e);\r\n\t\t\tMessagebox.show(e.getMessage(), \"Mensaje de Error !!\",\r\n\t\t\t\t\tMessagebox.OK, Messagebox.ERROR);\r\n\t\t}\r\n\r\n\t}", "public CajaLogic()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.cajaDataAccess = new CajaDataAccess();\r\n\t\t\t\r\n\t\t\tthis.cajas= new ArrayList<Caja>();\r\n\t\t\tthis.caja= new Caja();\r\n\t\t\t\r\n\t\t\tthis.cajaObject=new Object();\r\n\t\t\tthis.cajasObject=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.cajaDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.cajaDataAccess.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 Empresa()\n\t{\n\t\tclientes = new HashMap<String, Cliente>();\n\t\tplanes = new ArrayList<Plan>();\n\t\t\n\t}", "public PlantillaFacturaLogic()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.plantillafacturaDataAccess = new PlantillaFacturaDataAccess();\r\n\t\t\t\r\n\t\t\tthis.plantillafacturas= new ArrayList<PlantillaFactura>();\r\n\t\t\tthis.plantillafactura= new PlantillaFactura();\r\n\t\t\t\r\n\t\t\tthis.plantillafacturaObject=new Object();\r\n\t\t\tthis.plantillafacturasObject=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.plantillafacturaDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.plantillafacturaDataAccess.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 FlujoDetalleDTO leerRegistro() {\n/* */ try {\n/* 82 */ FlujoDetalleDTO reg = new FlujoDetalleDTO();\n/* */ \n/* 84 */ reg.setCodigoFlujo(this.rs.getInt(\"codigo_flujo\"));\n/* 85 */ reg.setSecuencia(this.rs.getInt(\"secuencia\"));\n/* 86 */ reg.setServicioInicio(this.rs.getInt(\"servicio_inicio\"));\n/* 87 */ reg.setCodigoEstado(this.rs.getInt(\"codigo_estado\"));\n/* 88 */ reg.setServicioDestino(this.rs.getInt(\"servicio_destino\"));\n/* 89 */ reg.setNombreProcedimiento(this.rs.getString(\"nombre_procedimiento\"));\n/* 90 */ reg.setCorreoDestino(this.rs.getString(\"correo_destino\"));\n/* 91 */ reg.setEnviarSolicitud(this.rs.getString(\"enviar_solicitud\"));\n/* 92 */ reg.setMismoProveedor(this.rs.getString(\"ind_mismo_proveedor\"));\n/* 93 */ reg.setMismoCliente(this.rs.getString(\"ind_mismo_cliente\"));\n/* 94 */ reg.setEstado(this.rs.getString(\"estado\"));\n/* 95 */ reg.setUsuarioInsercion(this.rs.getString(\"usuario_insercion\"));\n/* 96 */ reg.setFechaInsercion(this.rs.getString(\"fecha_insercion\"));\n/* 97 */ reg.setUsuarioModificacion(this.rs.getString(\"usuario_modificacion\"));\n/* 98 */ reg.setFechaModificacion(this.rs.getString(\"fecha_modificacion\"));\n/* 99 */ reg.setNombreServicioInicio(this.rs.getString(\"nombre_servicio_inicio\"));\n/* 100 */ reg.setNombreCodigoEstado(this.rs.getString(\"nombre_codigo_estado\"));\n/* 101 */ reg.setNombreServicioDestino(this.rs.getString(\"nombre_servicio_destino\"));\n/* 102 */ reg.setNombreEstado(this.rs.getString(\"nombre_estado\"));\n/* 103 */ reg.setCaracteristica(this.rs.getInt(\"caracteristica\"));\n/* 104 */ reg.setCaracteristicaValor(this.rs.getInt(\"valor_caracteristica\"));\n/* 105 */ reg.setCaracteristicaCorreo(this.rs.getInt(\"caracteristica_correo\"));\n/* 106 */ reg.setNombreCaracteristica(this.rs.getString(\"nombre_caracteristica\"));\n/* 107 */ reg.setDescripcionValor(this.rs.getString(\"descripcion_valor\"));\n/* 108 */ reg.setMetodoSeleccionProveedor(this.rs.getString(\"metodo_seleccion_proveedor\"));\n/* 109 */ reg.setIndCorreoCliente(this.rs.getString(\"ind_correo_clientes\"));\n/* */ \n/* */ try {\n/* 112 */ reg.setEnviar_hermana(this.rs.getString(\"enviar_hermana\"));\n/* 113 */ reg.setEnviar_si_hermana_cerrada(this.rs.getString(\"enviar_si_hermana_cerrada\"));\n/* 114 */ reg.setInd_cliente_inicial(this.rs.getString(\"ind_cliente_inicial\"));\n/* */ \n/* */ \n/* */ }\n/* 118 */ catch (Exception e) {}\n/* */ \n/* */ \n/* */ \n/* 122 */ return reg;\n/* */ }\n/* 124 */ catch (Exception e) {\n/* 125 */ e.printStackTrace();\n/* 126 */ Utilidades.writeError(\"FlujoDetalleDAO:leerRegistro \", e);\n/* */ \n/* 128 */ return null;\n/* */ } \n/* */ }", "public DTOGenerico(String nombreDTO, String[][] parametros) {\n this.nombreDTO = nombreDTO;\n this.parametros = parametros;\n }", "public static void main(String[] args) {\n \n empleado[] misEmpleados=new empleado[3];\n //String miArray[]=new String[3];\n \n misEmpleados[0]=new empleado(\"paco gomez\",123321,1998,12,12);\n misEmpleados[1]=new empleado(\"Johana\",28500,1998,12,17);\n misEmpleados[2]=new empleado(\"sebastian\",98500,1898,12,17);\n \n /*for (int i = 0; i < misEmpleados.length; i++) {\n misEmpleados[i].aumentoSueldo(10);\n \n }\n for (int i = 0; i < misEmpleados.length; i++) {\n System.out.println(\"nombre :\" + misEmpleados[i].dameNombre() + \" sueldo \" + misEmpleados[i].dameSueldo()+ \" fecha de alta \"\n + misEmpleados[i].dameContrato());\n }*/\n \n for (empleado e:misEmpleados) {\n e.aumentoSueldo(10);\n \n }\n for (empleado e:misEmpleados) {\n System.out.println(\"nombre :\" + e.dameNombre() + \" sueldo \" + e.dameSueldo()+ \" fecha de alta \"\n + e.dameContrato());\n \n }\n \n }", "private void inicializarVariablesControlRonda() {\n\t\ttieneAs = new int[4];\n\t\tfor(int i=0;i<tieneAs.length;i++) {\n\t\t\ttieneAs[i]=0;\n\t\t}\n\t\tidJugadores = new String[3];\n\t\tvalorManos = new int[4];\n\t\t\n\t\tmazo = new Baraja();\n\t\tCarta carta;\n\t\tganador = new ArrayList<String>();\n\t\tapuestasJugadores = new int[3];\n\t\tmanoJugador1 = new ArrayList<Carta>();\n\t\tmanoJugador2 = new ArrayList<Carta>();\n\t\tmanoJugador3 = new ArrayList<Carta>();\n\t\tmanoDealer = new ArrayList<Carta>();\n\t\tparejaNombreGanancia = new ArrayList<Pair<String,Integer>>(); \n\t\t\n\t\t// gestiona las tres manos en un solo objeto para facilitar el manejo del hilo\n\t\tmanosJugadores = new ArrayList<ArrayList<Carta>>(4);\n\t\tmanosJugadores.add(manoJugador1);\n\t\tmanosJugadores.add(manoJugador2);\n\t\tmanosJugadores.add(manoJugador3);\n\t\tmanosJugadores.add(manoDealer);\n\t\t// reparto inicial jugadores 1 y 2\n\t\tfor (int i = 1; i <= 2; i++) {\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador1.add(carta);\n\t\t\tcalcularValorMano(carta, 0);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador2.add(carta);\n\t\t\tcalcularValorMano(carta, 1);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador3.add(carta);\n\t\t\tcalcularValorMano(carta, 2);\n\t\t}\n\t\t// Carta inicial Dealer\n\t\tcarta = mazo.getCarta();\n\t\tmanoDealer.add(carta);\n\t\tcalcularValorMano(carta, 3);\n\n\t\t\n\t}", "public void buscarDatos() throws Exception {\n\t\ttry {\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue()\n\t\t\t\t\t.toString();\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\n\n\t\t\tMap<String, Object> parameters = new HashMap<String, Object>();\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\n\n\t\t\tif (admision != null) {\n\t\t\t\tparameters.put(\"identificacion\",\n\t\t\t\t\t\tadmision.getNro_identificacion());\n\t\t\t}\n\n\t\t\tif (parameter.equalsIgnoreCase(\"fecha_inicial\")) {\n\t\t\t\tparameters.put(\"fecha_string\", value);\n\t\t\t} else {\n\t\t\t\tparameters.put(\"parameter\", parameter);\n\t\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\n\t\t\t}\n\n\t\t\tgetServiceLocator().getHisc_urgencia_odontologicoService()\n\t\t\t\t\t.setLimit(\"limit 25 offset 0\");\n\n\t\t\tList<Hisc_urgencia_odontologico> lista_datos = getServiceLocator()\n\t\t\t\t\t.getHisc_urgencia_odontologicoService().listar(parameters);\n\t\t\trowsResultado.getChildren().clear();\n\n\t\t\tfor (Hisc_urgencia_odontologico hisc_urgencia_odontologico : lista_datos) {\n\t\t\t\trowsResultado.appendChild(crearFilas(\n\t\t\t\t\t\thisc_urgencia_odontologico, this));\n\t\t\t}\n\n\t\t\tgridResultado.setVisible(true);\n\t\t\tgridResultado.setMold(\"paging\");\n\t\t\tgridResultado.setPageSize(20);\n\n\t\t\tgridResultado.applyProperties();\n\t\t\tgridResultado.invalidate();\n\n\t\t} catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}", "public ArrayList<AnuncioDTO> ObtenerAnuncios(){\n ArrayList<AnuncioDTO> ret=new ArrayList<AnuncioDTO>();\n\n try{\n Connection conect = getConection();\n Properties sqlProp = new Properties();\n InputStream is = new FileInputStream(sqlPropertiesPath);\n sqlProp.load(is);\n PreparedStatement ps = conect.prepareStatement(sqlProp.getProperty(\"getAll.Anuncio\"));\n ResultSet rs = ps.executeQuery();\n while(rs.next()){\n int id=rs.getInt(1);\n TipoAnuncio tipoAnuncio=TipoAnuncio.valueOf(rs.getString(2));\n String titulo = rs.getString(3);\n String cuerpo = rs.getString(4);\n Date fechaPublicacion = new Date(rs.getDate(5).getTime());\n Date fechaFin=null;\n if(tipoAnuncio.equals(TipoAnuncio.Flash)){\n fechaFin= new Date(rs.getDate(6).getTime());\n }\n String emailPropietario = rs.getString(7);\n EstadoAnuncio estadoAnuncio = EstadoAnuncio.valueOf(rs.getString(8));\n \n ArrayList<String>temas=null;\n if(tipoAnuncio.equals(TipoAnuncio.Tematico)){\n temas=new ArrayList<String>();\n ArrayList<String>temasId = null;\n temasId=new ArrayList<String>(Arrays.asList(rs.getString(9).split(\",\")));\n InteresesDAO interesesDAO = new InteresesDAO(sqlPropertiesPath);\n Hashtable<Integer,String> intereses = interesesDAO.DevolverIntereses();\n for(String interes : temasId){\n temas.add(intereses.get(Integer.parseInt(interes)));\n }\n\n }\n ArrayList<String>destinatarios = ObtenerDestinatariosAnuncio(id);\n AnuncioDTO anuncioDTO=new AnuncioDTO(id, tipoAnuncio, titulo, cuerpo, fechaPublicacion, fechaFin, emailPropietario, estadoAnuncio, temas,destinatarios);\n\n ret.add(anuncioDTO);\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return ret;\n }", "public Empresa(){\r\n\t\tclientes = new ArrayList<Cliente>();\r\n\t\tmedidores = new ArrayList<Medidor>();\r\n\t\tmapaClientes = new HashMap<String,String>();\r\n\t}", "public Collection cargarDeObjetivo(int codigoCiclo, int codigoPlan, int objetivo, int periodo, String estado) {\n/* 121 */ Collection resultados = new ArrayList();\n/* */ try {\n/* 123 */ String s = \"select m.Codigo_Ciclo, m.Codigo_Plan, m.Codigo_Meta, m.Codigo_Objetivo, m.Descripcion, m.Valor_Meta, m.Tipo_Medicion, m.Frecuencia_Medicion, m.Justificacion, m.Estado, m.Fecha_Insercion, m.Usuario_Insercion, m.Fecha_Modificacion, m.Usuario_Modificacion, m.Mes01, m.Mes02, m.Mes03, m.Mes04, m.Mes05, m.Mes06, m.Mes07, m.Mes08, m.Mes09, m.Mes10, m.Mes11, m.Mes12, m.Fuente_Dato, m.Aplica_En, m.Unidad_Medida, m.Valor_Minimo, m.Valor_Maximo, m.Tipo_Grafica, Tm.Descripcion as Nombretipomedicion, Est.Descripcion as Nombreestado, Um.Descripcion as Nombre_Unidad_Medida, SUM(CASE WHEN ac.NUMERO IS NOT NULL THEN 1 ELSE 0 END) acciones from Cal_Plan_Metas m left join Am_Acciones Ac on( m.Codigo_Ciclo = Ac.Codigo_Ciclo and m.Codigo_Plan = Ac.Codigo_Plan and m.Codigo_Meta = Ac.Codigo_Meta and Ac.Asociado = 'P'), \\t\\t Sis_Multivalores Tm, \\t\\t Sis_Multivalores Est, \\t\\t Sis_Multivalores Um where m.Tipo_Medicion = Tm.Valor and Tm.Tabla = 'CAL_TIPO_MEDICION' and m.Estado = Est.Valor and Est.Tabla = 'CAL_ESTADO_META' and m.Unidad_Medida = Um.Valor and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META' and m.codigo_ciclo=\" + codigoCiclo + \" and m.codigo_plan=\" + codigoPlan + \" and m.codigo_objetivo=\" + objetivo;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 180 */ if (estado.length() > 0) {\n/* 181 */ s = s + \" and m.estado='A'\";\n/* */ }\n/* */ \n/* 184 */ if (periodo == 1) {\n/* 185 */ s = s + \" and m.mes01='S'\";\n/* */ }\n/* 187 */ else if (periodo == 2) {\n/* 188 */ s = s + \" and m.mes02='S'\";\n/* */ }\n/* 190 */ else if (periodo == 3) {\n/* 191 */ s = s + \" and m.mes03='S'\";\n/* */ }\n/* 193 */ else if (periodo == 4) {\n/* 194 */ s = s + \" and m.mes04='S'\";\n/* */ }\n/* 196 */ else if (periodo == 5) {\n/* 197 */ s = s + \" and m.mes05='S'\";\n/* */ }\n/* 199 */ else if (periodo == 6) {\n/* 200 */ s = s + \" and m.mes06='S'\";\n/* */ }\n/* 202 */ else if (periodo == 7) {\n/* 203 */ s = s + \" and m.mes07='S'\";\n/* */ }\n/* 205 */ else if (periodo == 8) {\n/* 206 */ s = s + \" and m.mes08='S'\";\n/* */ }\n/* 208 */ else if (periodo == 9) {\n/* 209 */ s = s + \" and m.mes09='S'\";\n/* */ }\n/* 211 */ else if (periodo == 10) {\n/* 212 */ s = s + \" and m.mes10='S'\";\n/* */ }\n/* 214 */ else if (periodo == 11) {\n/* 215 */ s = s + \" and m.mes11='S'\";\n/* */ }\n/* 217 */ else if (periodo == 12) {\n/* 218 */ s = s + \" and m.mes12='S'\";\n/* */ } \n/* */ \n/* 221 */ s = s + \" GROUP BY m.Codigo_Ciclo, m.Codigo_Plan, m.Codigo_Meta, m.Codigo_Objetivo, m.Descripcion, m.Valor_Meta, m.Tipo_Medicion, m.Frecuencia_Medicion, m.Justificacion, m.Estado, m.Fecha_Insercion, m.Usuario_Insercion, m.Fecha_Modificacion, m.Usuario_Modificacion, m.Mes01, m.Mes02, m.Mes03, m.Mes04, m.Mes05, m.Mes06, m.Mes07, m.Mes08, m.Mes09, m.Mes10, m.Mes11, m.Mes12, m.Fuente_Dato, m.Aplica_En, m.Unidad_Medida, m.Valor_Minimo, m.Valor_Maximo, m.Tipo_Grafica, Tm.Descripcion, Est.Descripcion, Um.Descripcion order by m.descripcion\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 259 */ boolean rtaDB = this.dat.parseSql(s);\n/* 260 */ if (!rtaDB) {\n/* 261 */ return resultados;\n/* */ }\n/* */ \n/* 264 */ this.rs = this.dat.getResultSet();\n/* 265 */ while (this.rs.next()) {\n/* 266 */ resultados.add(leerRegistro());\n/* */ }\n/* */ }\n/* 269 */ catch (Exception e) {\n/* 270 */ e.printStackTrace();\n/* 271 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarTodos \", e);\n/* */ } \n/* 273 */ return resultados;\n/* */ }", "public ClienteArchivoLogic()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.clientearchivoDataAccess = new ClienteArchivoDataAccess();\r\n\t\t\t\r\n\t\t\tthis.clientearchivos= new ArrayList<ClienteArchivo>();\r\n\t\t\tthis.clientearchivo= new ClienteArchivo();\r\n\t\t\t\r\n\t\t\tthis.clientearchivoObject=new Object();\r\n\t\t\tthis.clientearchivosObject=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.clientearchivoDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.clientearchivoDataAccess.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 }", "private ArrayList<Parametro> getParametros(int pregunta){\n ArrayList<Parametro> arrayListParametros = new ArrayList<>();\n try{\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"ServiceQualificationPU\");\n EntityManager em = emf.createEntityManager();\n\n String jpql =\"SELECT p FROM ParametroInterrogante pi \"\n + \"JOIN pi.interrogante i \"\n + \"JOIN pi.parametro p \"\n + \"WHERE p.estado='a' AND i.estado='a' \"\n + \"AND i.idinterrogante = :pregunta\";\n\n Query query = em.createQuery(jpql);\n query.setParameter(\"pregunta\", pregunta);\n List<Parametro> list = query.getResultList();\n for(Parametro p : list){\n arrayListParametros.add(p);\n }\n\n em.close();\n emf.close();\n }catch(Exception e){\n System.out.println(\"ERROR: \"+e);\n this.Error = \"ERROR: \"+e;\n }\n return arrayListParametros;\n }", "public ArrayList parametrosConectorBaseDatos()\r\n\t{\r\n\t\tArrayList parametros = new ArrayList(); \r\n\t\ttry\r\n\t\t{\r\n\t\t\tFileInputStream fr = new FileInputStream( \"./images/parametrosBD.txt\" );\r\n\t \tDataInputStream entrada = new DataInputStream(fr);\r\n\t String parametro = \"\";\r\n\t String valorparametro = \"\";\r\n\t boolean esvalor = false;\r\n\t while((parametro=entrada.readLine())!= null)\r\n\t {\r\n\t \tfor (int i = 0; i < parametro.length(); i++) \r\n\t \t{\r\n\t \t\tif(esvalor == true)\r\n\t \t\t{\r\n\t \t\t\tvalorparametro += parametro.charAt(i);\r\n\t \t\t}\r\n\t \t\tif(parametro.charAt(i) == ':')\r\n\t \t\t{\r\n\t \t\t\tesvalor = true;\r\n\t \t\t}\r\n\t\t\t\t}\r\n\t \tparametros.add(valorparametro.trim());\r\n\t \tvalorparametro = \"\";\r\n\t \tesvalor = false;\r\n\t }\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t}\r\n\t\treturn parametros;\r\n\t}", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Banco\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tBanco entity = new Banco();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,BancoDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Tesoreria.Banco.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseBanco(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "public vistaAlojamientos() {\n initComponents();\n \n try {\n miConn = new Conexion(\"jdbc:mysql://localhost/turismo\", \"root\", \"\");\n ad = new alojamientoData(miConn);\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(vistaAlojamientos.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n }", "public Empleado(String nombre, String apellido, String cedula, String fechaNacimiento, int diasTrabajados, int sueldoBase, String educacion, String[] idiomas, int sueldoTotal) {\n this.nombre = nombre;\n this.apellido = apellido;\n this.cedula = cedula;\n this.fechaNacimiento = fechaNacimiento;\n this.diasTrabajados = diasTrabajados;\n this.sueldoBase = sueldoBase;\n this.educacion = educacion;\n this.idiomas = idiomas;\n this.sueldoTotal = sueldoTotal;\n }", "@Parameters\n // Método public static que devuelve un elemento iterable de array de objetos\n public static Iterable<Object[]> getData() {\n return Arrays.asList(new Object[][] {\n // Indicamos todas las pruebas {a, b, esperado}\n { 3, 1, 4 }, { 2, 3, 5 }, { 3, 3, 6 } });\n }", "public void cargarTablas(){\n ControladorEmpleados empleados= new ControladorEmpleados();\n ControladorProyectos proyectos= new ControladorProyectos();\n ControladorCasos casos= new ControladorCasos();\n actualizarListadoObservable(empleados.consultarEmpleadosAdminProyectos(ESTADO_ASIGNADO, TIPO_3),casos.consultarCasos(devolverUser()),casos.consultarTiposCaso());\n }", "public Datos(){\n }", "public PresuTipoProyectoLogic()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.presutipoproyectoDataAccess = new PresuTipoProyectoDataAccess();\r\n\t\t\t\r\n\t\t\tthis.presutipoproyectos= new ArrayList<PresuTipoProyecto>();\r\n\t\t\tthis.presutipoproyecto= new PresuTipoProyecto();\r\n\t\t\t\r\n\t\t\tthis.presutipoproyectoObject=new Object();\r\n\t\t\tthis.presutipoproyectosObject=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.presutipoproyectoDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.presutipoproyectoDataAccess.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 Arbre(HashMap<String, String> data) throws ExcepcionArbolIncompleto {\n String[] strings = {\"codi\", \"posicioX_ETRS89\", \"posicioY_ETRS89\", \"latitud_WGS84\", \"longitud_WGS84\", \"tipusElement\", \"espaiVerd\", \"adreca\", \"alcada\", \"catEspecieId\", \"nomCientific\", \"nomEsp\", \"nomCat\", \"categoriaArbrat\", \"ampladaVorera\", \"plantacioDT\", \"tipAigua\", \"tipReg\", \"tipSuperf\", \"tipSuport\", \"cobertaEscocell\", \"midaEscocell\", \"voraEscocell\"};\n List<String> infoArbol = new ArrayList<>(Arrays.asList(strings));\n\n for (String s : infoArbol) {\n if (!data.containsKey(s)) {\n throw new ExcepcionArbolIncompleto();\n }\n }\n\n this.codi = data.get(\"codi\");\n this.posicioX_ETRS89 = data.get(\"posicioX_ETRS89\").equals(\"NO HAY DATOS REGISTRADOS\") ? 0 : Double.parseDouble(data.get(\"posicioX_ETRS89\"));\n this.posicioY_ETRS89 = data.get(\"posicioY_ETRS89\").equals(\"NO HAY DATOS REGISTRADOS\") ? 0 : Double.parseDouble(data.get(\"posicioY_ETRS89\"));\n this.latitud_WGS84 = data.get(\"latitud_WGS84\").equals(\"NO HAY DATOS REGISTRADOS\") ? 0 : Double.parseDouble(data.get(\"latitud_WGS84\"));\n this.longitud_WGS84 = data.get(\"longitud_WGS84\").equals(\"NO HAY DATOS REGISTRADOS\") ? 0 : Double.parseDouble(data.get(\"longitud_WGS84\"));\n this.tipusElement = data.get(\"tipusElement\");\n this.espaiVerd = data.get(\"espaiVerd\");\n this.adreca = data.get(\"adreca\");\n this.alcada = data.get(\"alcada\");\n this.catEspecieId = data.get(\"catEspecieId\").equals(\"NO HAY DATOS REGISTRADOS\") ? 0 : Integer.parseInt(data.get(\"catEspecieId\"));\n this.nomCientific = data.get(\"nomCientific\");\n this.nomEsp = data.get(\"nomEsp\");\n this.nomCat = data.get(\"nomCat\");\n this.categoriaArbrat = data.get(\"categoriaArbrat\");\n this.ampladaVorera = data.get(\"ampladaVorera\");\n this.plantacioDT = data.get(\"plantacioDT\");\n this.tipAigua = data.get(\"tipAigua\");\n this.tipReg = data.get(\"tipReg\");\n this.tipSuperf = data.get(\"tipSuperf\");\n this.tipSuport = data.get(\"tipSuport\");\n this.cobertaEscocell = data.get(\"cobertaEscocell\");\n this.midaEscocell = data.get(\"midaEscocell\");\n this.voraEscocell = data.get(\"voraEscocell\");\n }", "public Retangulo(double[] pLados) {\n super(pLados);\n /* invoca o construtor da classe Pai passando pLados como parametros. */\n }", "private void crearElementos() {\n\n\t\tRotonda rotonda1 = new Rotonda(new Posicion(400, 120), \"5 de octubre\");\n\t\tthis.getListaPuntos().add(rotonda1);\n\n\t\tCiudad esquel = new Ciudad(new Posicion(90, 180), \"Esquel\");\n\t\tthis.getListaPuntos().add(esquel);\n\n\t\tCiudad trelew = new Ciudad(new Posicion(450, 200), \"Trelew\");\n\t\tthis.getListaPuntos().add(trelew);\n\n\t\tCiudad comodoro = new Ciudad(new Posicion(550, 400), \"Comodoro\");\n\t\tthis.getListaPuntos().add(comodoro);\n\n\t\tCiudad rioMayo = new Ciudad(new Posicion(350, 430), \"Rio Mayo\");\n\t\tthis.getListaPuntos().add(rioMayo);\n\n\t\t// --------------------------------------------------------\n\n\t\tRutaDeRipio rutaRipio = new RutaDeRipio(230, 230, rotonda1, esquel);\n\t\tthis.getListaRuta().add(rutaRipio);\n\n\t\tRutaPavimentada rutaPavimentada1 = new RutaPavimentada(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada1);\n\n\t\tRutaPavimentada rutaPavimentada2 = new RutaPavimentada(800, 120, esquel, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada2);\n\n\t\tRutaDeRipio rutaripio3 = new RutaDeRipio(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaripio3);\n\n\t\tRutaEnConstruccion rutaConst1 = new RutaEnConstruccion(180, 70, rioMayo, comodoro);\n\t\tthis.getListaRuta().add(rutaConst1);\n\n\t\tRutaPavimentada rutaPavimentada3 = new RutaPavimentada(600, 110, rioMayo, esquel);\n\t\tthis.getListaRuta().add(rutaPavimentada3);\n\t}", "public void limpiarCampos() {\n\t\ttema = new Tema();\n\t\ttemaSeleccionado = new Tema();\n\t\tmultimedia = new Multimedia();\n\t}", "public DAOPedidoMesa() {\n\t\trecursos = new ArrayList<Object>();\n\t}", "public BaseDatosProductos iniciarProductos() {\n\t\tBaseDatosProductos baseDatosProductos = new BaseDatosProductos();\n\t\t// construcion datos iniciales \n\t\tProductos Manzanas = new Productos(1, \"Manzanas\", 8000.0, 65);\n\t\tProductos Limones = new Productos(2, \"Limones\", 2300.0, 15);\n\t\tProductos Granadilla = new Productos(3, \"Granadilla\", 2500.0, 38);\n\t\tProductos Arandanos = new Productos(4, \"Arandanos\", 9300.0, 55);\n\t\tProductos Tomates = new Productos(5, \"Tomates\", 2100.0, 42);\n\t\tProductos Fresas = new Productos(6, \"Fresas\", 4100.0, 3);\n\t\tProductos Helado = new Productos(7, \"Helado\", 4500.0, 41);\n\t\tProductos Galletas = new Productos(8, \"Galletas\", 500.0, 8);\n\t\tProductos Chocolates = new Productos(9, \"Chocolates\", 3500.0, 806);\n\t\tProductos Jamon = new Productos(10, \"Jamon\", 15000.0, 10);\n\n\t\t\n\n\t\tbaseDatosProductos.agregar(Manzanas);\n\t\tbaseDatosProductos.agregar(Limones);\n\t\tbaseDatosProductos.agregar(Granadilla);\n\t\tbaseDatosProductos.agregar(Arandanos);\n\t\tbaseDatosProductos.agregar(Tomates);\n\t\tbaseDatosProductos.agregar(Fresas);\n\t\tbaseDatosProductos.agregar(Helado);\n\t\tbaseDatosProductos.agregar(Galletas);\n\t\tbaseDatosProductos.agregar(Chocolates);\n\t\tbaseDatosProductos.agregar(Jamon);\n\t\treturn baseDatosProductos;\n\t\t\n\t}", "public static PreparedStatement crearDeclaracionPreparada(java.sql.Connection conexion, ArrayList<String> datos, String orden){\n try {\n PreparedStatement dp = null;\n dp = conexion.prepareStatement(orden); //asignamos el select que trae el String orden \n int esUnEntero;\n for(int i = 1; i <= datos.size(); i++){//asignamos los valores del arrayList datos en cada campo del select\n String aux = null; \n esUnEntero = isEntero(datos.get(i - 1));//Revisamos si la cadena de datos.get(i) es un entero\n switch(esUnEntero){\n case 1: //Cuando es 1 significa que el dato dentro de datos.get(i) es un entero, por tanto se rellena el campo como tal\n aux = datos.get(i - 1);\n dp.setInt(i, Integer.parseInt(aux)); \n break;\n case 0://Cuando es 0 significa que no es un entero y se rellena el campo como String\n aux = datos.get(i - 1);\n dp.setString(i, aux);\n break;\n } \n }\n return dp;\n } catch (SQLException ex) {\n System.out.println(\"\\n\\n\\n\"+ex); //Imprimimos el error en consola en caso de fallar \n } \n return null;\n }", "public static void main(String[] args) {\n\t\tScanner lectorInt = new Scanner(System.in);\n\t\tScanner lectorString = new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese información de pasajero\");\n\t\tSystem.out.println(\"Ingrese nombre: \");\n\t\tString nombre = lectorString.nextLine();\n\t\tSystem.out.println(\"Ingrese apellido: \");\n\t\tString apellido = lectorString.nextLine();\n\t\tSystem.out.println(\"Ingrese edad: \");\n\t\tint edad = lectorInt.nextInt();\n\t\tSystem.out.println(\"Que tipo de pasajero es: 1:Pasajero Vip 2:Pasajero Económico \");\n\t\tint opcion = lectorInt.nextInt();\n\t\tString membresia = \"\";\n\t\tString descuento = \"\";\n\t\tif (opcion == 1) {\n\t\t\tSystem.out.println(\"Ingrese Código de Membresía\");\n\t\t\tmembresia = lectorString.nextLine();\n\n\t\t} else {\n\t\t\tSystem.out.println(\"Ingrese Código de Descuento\");\n\t\t\tdescuento = lectorString.nextLine();\n\t\t}\n\n\t\tPasajeroVip pasajero1 = new PasajeroVip();\n\t\tpasajero1.setNombre(nombre);\n\t\tpasajero1.setApellido(apellido);\n\t\tpasajero1.setCodigoMembresia(membresia);\n\t\tpasajero1.setEdad(edad);\n\n\t\tPasajeroVip pasajero2 = new PasajeroVip(\"Juan\", \"Tandre\", \"as2345\", 23);\n\n\t\tPasajeroEconomico pasajeroEconomico1 = new PasajeroEconomico();\n\t\tpasajeroEconomico1.setNombre(\"Helena\");\n\t\tpasajeroEconomico1.setApellido(\"Frias\");\n\t\tpasajeroEconomico1.setCodigoDescuento(\"1234df\");\n\t\tpasajeroEconomico1.setEdad(25);\n\n\t\tPasajero[][] asientos = new Pasajero[4][5];\n\t\tasientos[0][0] = pasajero1;\n\t\tasientos[0][1] = pasajero2;\n\t\tasientos[0][2] = pasajero1;\n\t\tasientos[0][3] = pasajeroEconomico1;\n\t\tasientos[1][0] = pasajero1;\n\t\tasientos[1][1] = pasajeroEconomico1;\n\n\t\tint opcionSalir = 0;\n\t\tdo {\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Ingrese datos del asiento, 0:continuar, -1:SALIR\");\n\t\t\topcionSalir = lectorInt.nextInt();\n\t\t\tif (opcionSalir == 0) {\n\t\t\t\tSystem.out.print(\"Ingrese fila del asiento: \");\n\t\t\t\tint fila = lectorInt.nextInt();\n\t\t\t\tSystem.out.print(\"Ingrese columna del asiento: \");\n\t\t\t\tint columna = lectorInt.nextInt();\n\t\t\t\tSystem.out.println(\"Los datos del pasajero son: \");\n\t\t\t\tSystem.out.println(asientos[fila][columna]);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Va ha salir del sistema\");\n\t\t\t}\n\t\t} while (opcionSalir != -1);\n\n\t}", "public Data() {\n initComponents();\n koneksi_db();\n tampil_data();\n }", "public List<Empleado> getEmpleados(Empleado emp) {\n List<Empleado> empleados = new ArrayList<>();\n \n Connection miConexion = null;\n Statement miStatement = null;\n ResultSet miResultset = null;\n\n String carnet = emp.getCarnetEmpleado();\n\n \n try{\n\n //Establecer la conexion\n miConexion = origenDatos.getConexion();\n \n //Crear sentencia SQL y Statement\n // String miSql = \"select * from departamento d inner join catalagopuesto c on d.codigodepartamento = c.codigodepartamento inner join empleado e on c.codigopuesto = e.codigopuesto where e.carnetempleado = '\"+carnet+\"'\";\n String miSql = \"select * from empleado e WHERE e.carnetempleado = '\"+carnet+\"'\"; \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(miSql);\n \n while(miResultset.next()){\n String codCarnet = miResultset.getString(\"CARNETEMPLEADO\");\n \n Empleado temporal = new Empleado(codCarnet);\n \n empleados.add(temporal);\n }\n\n }catch(Exception e){\n e.printStackTrace();\n }\n \n return empleados;\n }", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public void carga_bd_empleados(){\n try {\n Connection conectar = Conexion.conectar();\n PreparedStatement pst = conectar.prepareStatement(\n \"select nombre, edad, cargo, direccion, telefono from empleados\");\n\n ResultSet rs = pst.executeQuery();\n\n table = new JTable(model);\n jScrollPane1.setViewportView(table);\n table.setBackground(Color.yellow);\n\n model.addColumn(\"Nombre\");\n model.addColumn(\"Edad\");\n model.addColumn(\"Cargo\");\n model.addColumn(\"Direccion\");\n model.addColumn(\"Telefono\");\n\n while (rs.next()) {\n Object[] fila = new Object[8];\n //material mimaterial = new material();\n\n for (int i = 0; i < 5; i++) {\n fila[i] = rs.getObject(i + 1);\n }\n\n// model.addRow(fila);\n Empleado mimaterial = this.ChangetoEmpleado(fila);\n this.AddToArrayTableEmpleado(mimaterial);\n\n }\n\n conectar.close();\n \n } catch (SQLException e) {\n System.err.println(\"Error al llenar tabla\" + e);\n JOptionPane.showMessageDialog(null, \"Error al mostrar informacion\");\n\n }\n }", "public GenerarInformePlanificacion(Curso[] cursos, Apoderado[] apoderados) {\n this.apoderados = new PlanificacionApoderado[apoderados.length];\n for (int i = 0; i < apoderados.length; i++) {\n this.apoderados[i] = new PlanificacionApoderado();\n }\n\n int cantidadCurso = 0;\n\n for (int apTotal = 0; apTotal < this.apoderados.length; apTotal++) {\n this.apoderados[apTotal].nombre = apoderados[apTotal].getNombre();\n this.apoderados[apTotal].apellido = apoderados[apTotal].getApellido();\n this.apoderados[apTotal].run = apoderados[apTotal].getRun();\n for (int cantPupilos = 0; cantPupilos < apoderados[apTotal].getPupilos().size(); cantPupilos++) {\n\n PlanificacionAlumno alumnoAgregar = new PlanificacionAlumno();\n alumnoAgregar.nombre = apoderados[apTotal].getPupilos().get(cantPupilos).getNombre();\n alumnoAgregar.apellido = apoderados[apTotal].getPupilos().get(cantPupilos).getApellido();\n alumnoAgregar.run = apoderados[apTotal].getPupilos().get(cantPupilos).getRun();\n for (int j = 0; j < 16; j++) {\n for (int alum = 0; alum < 30; alum++) {\n if (cursos[j].getAlumnos()[alum].getRun().equals(apoderados[apTotal].getPupilos().get(cantPupilos).getRun())) {\n cantidadCurso = j;\n break;\n }\n }\n }\n for (int i = 0; i < 50; i++) {\n alumnoAgregar.plan[i] = cursos[cantidadCurso].getAsignaturas()[(int) i / 10].getPlan()[i % 10];\n }\n this.apoderados[apTotal].pupilos.add(alumnoAgregar);\n\n }\n }\n\n }", "public void buscarDatos() throws Exception {\r\n\t\ttry {\r\n\t\t\tString codigo_empresa = empresa.getCodigo_empresa();\r\n\t\t\tString codigo_sucursal = sucursal.getCodigo_sucursal();\r\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue()\r\n\t\t\t\t\t.toString();\r\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\r\n\r\n\t\t\tMap<String, Object> parameters = new HashMap();\r\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\t\tparameters.put(\"parameter\", parameter);\r\n\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\r\n\r\n\t\t\tgetServiceLocator().getHis_atencion_embarazadaService().setLimit(\r\n\t\t\t\t\t\"limit 25 offset 0\");\r\n\r\n\t\t\tList<His_atencion_embarazada> lista_datos = getServiceLocator()\r\n\t\t\t\t\t.getHis_atencion_embarazadaService().listar(parameters);\r\n\t\t\trowsResultado.getChildren().clear();\r\n\r\n\t\t\tfor (His_atencion_embarazada his_atencion_embarazada : lista_datos) {\r\n\t\t\t\trowsResultado.appendChild(crearFilas(his_atencion_embarazada,\r\n\t\t\t\t\t\tthis));\r\n\t\t\t}\r\n\r\n\t\t\tgridResultado.setVisible(true);\r\n\t\t\tgridResultado.setMold(\"paging\");\r\n\t\t\tgridResultado.setPageSize(20);\r\n\r\n\t\t\tgridResultado.applyProperties();\r\n\t\t\tgridResultado.invalidate();\r\n\t\t\tgridResultado.setVisible(true);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tlog.error(e.getMessage(), e);\r\n\t\t\tMessagebox.show(e.getMessage(), \"Mensaje de Error !!\",\r\n\t\t\t\t\tMessagebox.OK, Messagebox.ERROR);\r\n\t\t}\r\n\t}", "public void cargaDatosInicialesSoloParaAdicionDeCuenta() throws Exception {\n GestionContableWrapper gestionContableWrapper = parParametricasService.factoryGestionContable();\n gestionContableWrapper.getNormaContable3();\n parAjustesList = parParametricasService.listaTiposDeAjuste(obtieneEnumTipoAjuste(gestionContableWrapper.getNormaContable3()));\n //Obtien Ajuste Fin\n //Activa formulario para automatico modifica \n if (selectedEntidad.getNivel() >= 3) {\n numeroEspaciadorAdicionar = 260;\n }\n\n if (selectedEntidad.getNivel() == 3) {\n swParAutomatico = false;\n numeroEspaciadorAdicionar = 230;\n }\n if (selectedEntidad.getNivel() == 2) {\n swParAutomatico = true;\n swActivaBoton = true;\n numeroEspaciadorAdicionar = 200;\n }\n if (selectedEntidad.getNivel() == 1) {\n swParAutomatico = true;\n numeroEspaciadorAdicionar = 130;\n cntParametroAutomaticoDeNivel2 = cntParametroAutomaticoService.obtieneObjetoDeParametroAutomatico(selectedEntidad);\n }\n\n mascaraNuevoOpcion = \"N\";\n cntEntidad = (CntEntidad) getCntEntidadesService().find(CntEntidad.class, selectedEntidad.getIdEntidad());\n mascaraNivel = getCntEntidadesService().generaCodigoNivelesSubAndPadre(selectedEntidad, \"N\");\n mascaraSubNivel = getCntEntidadesService().generaCodigoNivelesSubAndPadre(selectedEntidad, \"S\");\n longitudNivel = getCntEntidadesService().controlaLongitudNumero(selectedEntidad, \"N\");\n longitudSubNivel = getCntEntidadesService().controlaLongitudNumero(selectedEntidad, \"S\");\n }", "public CalMetasDTO cargarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta) {\n/* */ try {\n/* 416 */ String s = \"select m.*,\";\n/* 417 */ s = s + \"tm.descripcion as nombreTipoMedicion,\";\n/* 418 */ s = s + \"est.descripcion as nombreEstado,\";\n/* 419 */ s = s + \"Um.Descripcion as nombre_unidad_medida\";\n/* 420 */ s = s + \" from cal_plan_metas m,sis_multivalores tm,sis_multivalores est,Sis_Multivalores Um\";\n/* 421 */ s = s + \" where \";\n/* 422 */ s = s + \" m.tipo_medicion =tm.valor\";\n/* 423 */ s = s + \" and tm.tabla='CAL_TIPO_MEDICION'\";\n/* 424 */ s = s + \" and m.estado =est.valor\";\n/* 425 */ s = s + \" and est.tabla='CAL_ESTADO_META'\";\n/* 426 */ s = s + \" and m.Unidad_Medida = Um.Valor\";\n/* 427 */ s = s + \" and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META'\";\n/* 428 */ s = s + \" and m.codigo_ciclo=\" + codigoCiclo;\n/* 429 */ s = s + \" and m.codigo_plan=\" + codigoPlan;\n/* 430 */ s = s + \" and m.codigo_meta=\" + codigoMeta;\n/* 431 */ boolean rtaDB = this.dat.parseSql(s);\n/* 432 */ if (!rtaDB) {\n/* 433 */ return null;\n/* */ }\n/* */ \n/* 436 */ this.rs = this.dat.getResultSet();\n/* 437 */ if (this.rs.next()) {\n/* 438 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 441 */ catch (Exception e) {\n/* 442 */ e.printStackTrace();\n/* 443 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarCalMetas \", e);\n/* */ } \n/* 445 */ return null;\n/* */ }", "@Parameters\n\tpublic static Collection<Object[]> data() {\n\t\tObject[][] data = new Object[][] { \n\t\t\t{null, null, null, null, null},\n\t\t\t{null, \"\", null, null, null},\n\t\t\t{null, troppoLunga, null, null, null},\n\t\t};\n\t\treturn Arrays.asList(data);\n\t}", "protected List<List> cargarDatos() throws ExcArgumentoInvalido {\n\t\treturn null;\n\t}", "public Hipermercado(){\r\n this.clientes = new CatalogoClientes();\r\n this.produtos = new CatalogoProdutos();\r\n this.numFiliais = 3;\r\n this.faturacao = new Faturacao(this.numFiliais);\r\n this.filial = new ArrayList<>(this.numFiliais);\r\n for (int i = 0; i < this.numFiliais; i++){\r\n this.filial.add(new Filial());\r\n }\r\n \r\n this.invalidas = 0;\r\n }", "public List<Object[]> getRetencionesAnuladas(int mes, int anio, int idOrganizacion, Sucursal sucursalFP, Sucursal sucursalRetencion, PuntoDeVenta puntoVentaRetencion, String orden, TipoComprobanteSRI tipoComprobante)\r\n/* 125: */ {\r\n/* 126:175 */ StringBuilder sql = new StringBuilder();\r\n/* 127: */ \r\n/* 128:177 */ sql.append(\" SELECT a.fechaEmisionDocumento, f.fechaRegistro, f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero), f.identificacionProveedor, \");\r\n/* 129: */ \r\n/* 130:179 */ sql.append(\" \\t'', f.montoIva*0, f.montoIva*0, f.montoIva*0, '', '', \");\r\n/* 131: */ \r\n/* 132:181 */ sql.append(\" \\tCONCAT(a.establecimiento,'-',a.puntoEmision,'-',a.numeroDesde), f.montoIva*0, f.montoIva*0, f.montoIva*0, f.nombreProveedor, \");\r\n/* 133: */ \r\n/* 134:183 */ sql.append(\"\\tf.montoIva*0, f.montoIva*0, '', a.autorizacion, f.fechaRegistro, f.autorizacion, '', 'ANULADO', f.idFacturaProveedorSRI,'' \");\r\n/* 135:184 */ sql.append(\" FROM AnuladoSRI a, FacturaProveedorSRI f \");\r\n/* 136:185 */ sql.append(\" WHERE a.documentoRelacionado = f.idFacturaProveedorSRI \");\r\n/* 137:186 */ sql.append(\" AND a.tipoComprobanteSRI = :tipoComprobante \");\r\n/* 138:187 */ sql.append(\" AND a.anio = :anio AND a.mes = :mes \");\r\n/* 139:188 */ sql.append(\" AND a.idOrganizacion = :idOrganizacion \");\r\n/* 140:189 */ if (sucursalFP != null) {\r\n/* 141:190 */ sql.append(\" AND f.idSucursal = :idSucursal \");\r\n/* 142: */ }\r\n/* 143:192 */ if (sucursalRetencion != null) {\r\n/* 144:193 */ sql.append(\" AND a.establecimiento = :sucursalRetencion \");\r\n/* 145: */ }\r\n/* 146:195 */ if (puntoVentaRetencion != null) {\r\n/* 147:196 */ sql.append(\" AND a.puntoEmision = :puntoVentaRetencion \");\r\n/* 148: */ }\r\n/* 149:198 */ Query query = this.em.createQuery(sql.toString());\r\n/* 150:199 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 151:200 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 152:201 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 153:202 */ query.setParameter(\"tipoComprobante\", tipoComprobante);\r\n/* 154:203 */ if (sucursalFP != null) {\r\n/* 155:204 */ query.setParameter(\"idSucursal\", Integer.valueOf(sucursalFP.getId()));\r\n/* 156: */ }\r\n/* 157:206 */ if (sucursalRetencion != null) {\r\n/* 158:207 */ query.setParameter(\"sucursalRetencion\", sucursalRetencion.getCodigo());\r\n/* 159: */ }\r\n/* 160:209 */ if (puntoVentaRetencion != null) {\r\n/* 161:210 */ query.setParameter(\"puntoVentaRetencion\", puntoVentaRetencion.getCodigo());\r\n/* 162: */ }\r\n/* 163:213 */ return query.getResultList();\r\n/* 164: */ }", "public Listas_simplemente_enlazada(){\r\n inicio=null; // este constructor me va servir para apuntar el elemento\r\n fin=null;\r\n }", "@Override\n\tpublic ArrayList<Object[]> parEmplo(String puesto) {\n\t\tfor (Employe emplo : treeMap.values()) {\n\t\t\tif (emplo.getClass().getName().substring(13).equals(puesto)) {\n\t\t\t\t// System.out.println(emplo);\n\t\t\t\tObject[] aux = { emplo.getId(), emplo.getNom(),\n\t\t\t\t\t\templo.getPrenom(), emplo.getDate_N(), emplo.getSexe(),\n\t\t\t\t\t\templo.getRue(), emplo.getNumero(), emplo.getVille(),\n\t\t\t\t\t\templo.getPay(), emplo.getTelef(),\n\t\t\t\t\t\templo.getClass().getName().substring(13) };\n\t\t\t\tarray1.add(aux);\n\t\t\t}\n\t\t}\n\t\treturn array1;\n\t}", "public AllOOneDataStructure() {\n map = new HashMap<>();\n vals = new HashMap<>();\n maxKey = minKey = \"\";\n max = min = 0;\n }", "private void fillData() {\n String[] from = new String[] {\n NOMBRE_OBJETO,\n DESCRIPCION,\n TEXTURA\n };\n // Campos de la interfaz a los que mapeamos\n int[] to = new int[] {\n R.id.txtNombreObjeto,\n R.id.txtDescripcion,\n R.id.imgIconoObjeto\n };\n getLoaderManager().initLoader(OBJETOS_LOADER, null, this);\n ListView lvObjetos = (ListView) findViewById(R.id.listaObjetos);\n adapter = new SimpleCursorAdapter(this, R.layout.activity_tiendaobjetos_filaobjeto, null, from, to, 0);\n lvObjetos.setAdapter(adapter);\n }", "public Test3()\n {\n for(int i=0; i< horas.length;i++){\n String [] d = horas[i].split(\":\");\n v[i][0] = new CarroGrande(\"URC781\"+i, \"60458723\", Integer.parseInt(d[0]), Integer.parseInt(d[1]), Integer.parseInt(d[2]));\n v[i][1] = new CarroPequeno(\"URC782\"+i, \"60458723\", Integer.parseInt(d[0]), Integer.parseInt(d[1]), Integer.parseInt(d[2]));\n v[i][2] = new Moto(\"URC783\"+i, \"60458723\", Integer.parseInt(d[0]), Integer.parseInt(d[1]), Integer.parseInt(d[2]));\n v[i][3] = new Bicicleta(\"URC784\"+i, \"60458723\", Integer.parseInt(d[0]), Integer.parseInt(d[1]), Integer.parseInt(d[2]));\n }\n }", "@Override\n\tpublic List<AlmacenDTO> listarEntrada() {\n\t\tList<AlmacenDTO> data = new ArrayList<AlmacenDTO>();\n\t\tAlmacenDTO obj = null;\n\t\tConnection cn = null;\n\t\tPreparedStatement pstm = null;\n\t\tResultSet rs = null;\n\t\ttry {\n\t\t\tcn = new MySqlDbConexion().getConexion();\n\t\t\tString sql = \"select me.codigo_entrada,p.nombre_producto,me.cantidad_entrada,me.fecha_entrada\\r\\n\" + \n\t\t\t\t\t\"from material_entrada me inner join producto p on me.codigo_producto=p.codigo_producto\";\n\n\t\t\tpstm = cn.prepareStatement(sql);\n\t\t\trs = pstm.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tobj = new AlmacenDTO();\n\t\t\t\tobj.setCodigo_entrada(rs.getInt(1));\n\t\t\t\tobj.setNombre_producto(rs.getString(2));\n\t\t\t\tobj.setCantidad_entrada(rs.getInt(3));\n\t\t\t\tobj.setFecha_entrada(rs.getDate(4));\n\n\t\t\t\tdata.add(obj);\n\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn data;\n\t}", "@Override\n public Collection<resumenSemestre> resumenSemestre(int idCurso, int mesApertura, int mesCierre) throws Exception {\n Collection<resumenSemestre> retValue = new ArrayList();\n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"select ma.nombremateria, p.idcuestionario as test, \"\n + \"round(avg(p.puntaje),2) as promedio, cue.fechainicio, MONTH(cue.fechacierre) as mes \"\n + \"from puntuaciones p, cuestionario cue, curso cu, materia ma \"\n + \"where cu.idcurso = ma.idcurso and ma.idmateria = cue.idmateria \"\n + \"and cue.idcuestionario = p.idcuestionario and cu.idcurso = ? \"\n + \"and MONTH(cue.fechacierre) >= ? AND MONTH(cue.fechacierre) <= ? and YEAR(cue.fechacierre) = YEAR(NOW())\"\n + \"GROUP by ma.nombremateria, MONTH(cue.fechacierre) ORDER BY ma.nombremateria\");\n pstmt.setInt(1, idCurso );\n pstmt.setInt(2, mesApertura);\n pstmt.setInt(3, mesCierre);\n rs = pstmt.executeQuery();\n while (rs.next()) { \n retValue.add(new resumenSemestre(rs.getString(\"nombremateria\"), rs.getInt(\"test\"), rs.getInt(\"promedio\"), rs.getInt(\"mes\")));\n }\n return retValue;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return retValue;\n\n\n }", "public Usuarios(String Cedula){ //método que retorna atributos asociados con la cedula que recibamos\n conexion = base.GetConnection();\n PreparedStatement select;\n try {\n select = conexion.prepareStatement(\"select * from usuarios where Cedula = ?\");\n select.setString(1, Cedula);\n boolean consulta = select.execute();\n if(consulta){\n ResultSet resultado = select.getResultSet();\n if(resultado.next()){\n this.Cedula= resultado.getString(1);\n this.Nombres= resultado.getString(2);\n \n this.Sexo= resultado.getString(3);\n this.Edad= resultado.getInt(4);\n this.Direccion= resultado.getString(5);\n this.Ciudad=resultado.getString(6);\n this.Contrasena=resultado.getString(7);\n this.Estrato=resultado.getInt(8);\n this.Rol=resultado.getString(9);\n }\n resultado.close();\n }\n conexion.close();\n } catch (SQLException ex) {\n System.err.println(\"Ocurrió un error: \"+ex.getMessage().toString());\n }\n}", "private void llenarEntidadConLosDatosDeLosControles() {\n clienteActual.setNombre(txtNombre.getText());\n clienteActual.setApellido(txtApellido.getText());\n clienteActual.setDui(txtDui.getText());\n //clienteActual.setNumero(txtNumero.getText());\n //clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n }", "public ArrayList<Info_laboral> findAll(){\n ConexionBD con = new ConexionBD();\n Connection c = con.conOracle();\n\n ArrayList<Info_laboral> eeg = new ArrayList();\n\n try{\n ResultSet gs = con.ejecutaCon(\" Select * from Info_laboral\"); \n while(gs.next()){\n \n Estudios_Egresado ee=new Estudios_Egresado();\n Info_laboral i =new Info_laboral();\n Egresado eg = new Egresado();\n Estudios es = new Estudios();\n \n i.setId(gs.getInt(1));\n i.setJefe(gs.getString(2));\n i.setCargo(gs.getString(3));\n i.setFuncion(gs.getString(4));\n i.setFecha_ini(gs.getDate(5));\n i.setFecha_fin(gs.getDate(6));\n i.setMotivo_retiro(gs.getString(7));\n eg.setId(gs.getLong(8));\n i.setId_egresado(eg);\n i.setPerfil(gs.getString(9));\n \n eeg.add(i);\n }\n }catch(SQLException e){\n System.out.println(\"error \"+e);\n return null;\n }\n return eeg;\n }", "public Dinamica(){\n\t\tprimer=null;\n\t\tanterior=null;\n\t\tn_equips = 0;\n\t\t\n\t}", "public Lector(BD gestor, int id)\n {\n this.base_de_datos=gestor;\n this.id=id;\n }", "public void lerDados(String dadosInstituicao)\n {\n if (dadosInstituicao == null)\n {\n //AxellIO.println(\"[Instituicao]: Parametro dadosInstituicao nulo - funcao lerDados(String)\");\n }\n \n else\n {\n MyString dados = new MyString(dadosInstituicao);\n String[] splitedData = dados.split('\\t');\n int cursor = 0;\n \n try\n {\n setCodigo( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setNome( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setSigla( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setCodigoMantenedora( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setMantenedora( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setCategoria( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setOrganizacao( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setCodigoMunicipio( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setMunicipio( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setUf( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setRegiao( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setTecnico( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setPeriodico( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setLivro( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setReceita( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setTransferencia( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setOutraReceita( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaDocente( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaTecnico( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaEncargo( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaCusteio( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaInvestimento( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaPesquisa( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaOutras( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n }\n\n catch (ArrayIndexOutOfBoundsException exception)\n {\n //AxellIO.println(\"[Instituicao]: Dados da instituicao incompletos - funcao lerDados(String)\");\n }\n \n setDadosInstituicaoTabulado( dados.toString() );\n setDadosInstituicao( concatFields() );\n }\n }", "public List<Empresa> getData() {\n lista = new ArrayList<Empresa>();\n aux = new ArrayList<Empresa>();\n Empresa emp = new Empresa(1, \"restaurantes\", \"KFC\", \"Av. Canada 312\", \"tel:5050505\", \"[email protected]\", \"www.kfc.com\", \"https://upload.wikimedia.org/wikipedia/en/thumb/b/bf/KFC_logo.svg/1024px-KFC_logo.svg.png\", \"Restaurante de comida rapida.exe\");\n lista.add(emp);\n emp = new Empresa(2, \"restaurantes\", \"Pizza Hut\", \"Av. Aviación 352\", \"tel:1111111\", \"[email protected]\", \"www.pizzahut.com\", \"https://upload.wikimedia.org/wikipedia/en/thumb/d/d2/Pizza_Hut_logo.svg/1088px-Pizza_Hut_logo.svg.png\", \"Restaurante de comida rapida.exe\");\n lista.add(emp);\n emp = new Empresa(3, \"restaurantes\", \"Chifa XUNFAN\", \"Av. del Aire 122\", \"tel:1233121\", \"[email protected]\", \"www.chifaxunfan.com\", \"https://www.piscotrail.com/sf/media/2011/01/chifa.png\", \"Restaurante de comida oriental.exe\");\n lista.add(emp);\n emp = new Empresa(4, \"Restaurantes\", \"El buen sabor\", \"Av. Benavides 522\", \"tel:5366564\", \"[email protected]\", \"www.elbuensabor.com\", \"http://www.elbuensaborperu.com/images/imagen1.jpg\", \"Restaurante de comida peruana\");\n lista.add(emp);\n emp = new Empresa(5, \"Restaurantes\", \"La Romana\", \"Av. San borja norte 522\", \"tel:6462453\", \"[email protected]\", \"www.laromana.com\", \"https://3.bp.blogspot.com/-rAxbci6-cM4/WE7ZppGVe4I/AAAAAAAA3fY/TkiySUlQJTgR7xkOXViJ1IjFRjOulFWnwCLcB/s1600/pizzeria-la-romana2.jpg\", \"Restaurante de comida italiana\");\n lista.add(emp);\n emp = new Empresa(6, \"Ocio\", \"Cinemark\", \"Av. San borja norte 522\", \"tel:6462453\", \"[email protected]\", \"www.cinemark.com.pe\", \"https://s3.amazonaws.com/moviefone/images/theaters/icons/cienmark-logo.png\", \"El mejor cine XD\");\n lista.add(emp);\n emp = new Empresa(7, \"Educación\", \"TECSUP\", \"Av. cascanueces 233\", \"tel:6462453\", \"[email protected]\", \"www.tecsup.edu.pe\", \"http://www.miningpress.com/media/img/empresas/tecsup_1783.jpg\", \"Instituto tecnologico del Perú\");\n lista.add(emp);\n emp = new Empresa(8, \"Ocio\", \"CC. Arenales\", \"Av. arenales 233\", \"tel:6462453\", \"[email protected]\", \"www.arenales.com.pe\", \"http://4.bp.blogspot.com/-jzojuNRfh_s/UbYXFUsN9wI/AAAAAAAAFjU/ExT_GmT8kDc/s1600/35366235.jpg\", \"Centro comercial arenales ubicado en la avenida Arenales al costado del Metro Arenales\");\n lista.add(emp);\n emp = new Empresa(9, \"Ocio\", \"Jockey Plaza\", \"Av. Javier Prado 233\", \"tel:6462453\", \"[email protected]\", \"www.jockeyplaza.com.pe\", \"http://3.bp.blogspot.com/-a2DHRxS7R8k/T-m6gs9Zn7I/AAAAAAAAAFA/z_KeH2QTu18/s1600/logo+del+jockey.png\", \"Un Centro Comercial con los diversos mercados centrados en la moda y tendencia del mundo moderno\");\n lista.add(emp);\n emp = new Empresa(10, \"Educación\", \"UPC\", \"Av. Monterrico 233\", \"tel:6462453\", \"[email protected]\", \"www.upc.edu.pe\", \"https://upload.wikimedia.org/wikipedia/commons/f/fc/UPC_logo_transparente.png\", \"Universidad Peruana de Ciencias Aplicadas conocida como UPC se centra en la calidad de enseñanza a sus estudiantes\");\n lista.add(emp);\n int contador=0;\n String key = Busqueda.getInstance().getKey();\n for (int i = 0; i < lista.size(); i++) {\n if (lista.get(i).getRubro().equalsIgnoreCase(key)||lista.get(i).getRubro().toLowerCase().contains(key.toLowerCase())) {\n aux.add(lista.get(i));\n }else {\n if (lista.get(i).getNombre().equalsIgnoreCase(key)||lista.get(i).getNombre().toLowerCase().contains(key.toLowerCase())) {\n aux.add(lista.get(i));\n break;\n }else {\n\n }\n }\n\n }\n return aux;\n }", "private ArrayList<Alimento> initLista() {\n try {\n File file = new File(\"C:\\\\Users\\\\Gabri\\\\OneDrive\\\\Ambiente de Trabalho\\\\Calorie\\\\src\\\\Assets\\\\alimentos.txt\");\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n\n ArrayList<Alimento> lista = new ArrayList<>();\n\n int noLines = Integer.parseInt(br.readLine());\n for(int l=0; l<noLines; l++) {\n String[] alimTks = (br.readLine()).split(\",\");\n\n Alimento alimento = new Alimento(idAlimCounter++,alimTks[0],100,Integer.parseInt(alimTks[1]),Float.parseFloat(alimTks[2]),Float.parseFloat(alimTks[3]),Float.parseFloat(alimTks[4]));\n lista.add(alimento);\n }\n\n return lista;\n }catch (Exception e) {\n System.out.println(\"Sistema - getLista() : \"+e.toString());\n }\n return null;\n }", "@Override\n\tpublic List<T> getDataParams(String sql, Object... objects) throws SQLException {\n\t\tConnection conn = DBUtils.getConnection();\n\t\tList<T> list = new ArrayList<>();\n\t\tField[] fs = clazz.getDeclaredFields();\n\t\tPreparedStatement pstm = conn.prepareStatement(sql);\n\t\tfor(int i = 0;i<objects.length;i++){\n\t\t\tpstm.setObject(i+1, objects[i]);\n\t\t}\n\t\tResultSet rs = pstm.executeQuery();\n\t\twhile (rs.next()) {\n\t\t\tT o = null;\n\t\t\ttry {\n\t\t\t\to = (T) clazz.newInstance();\n\t\t\t} catch (InstantiationException | IllegalAccessException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tfor (int i = 0; i < fs.length; i++) {\n\n\t\t\t\tString methodName = \"set\" + fs[i].getName().substring(0, 1).toUpperCase()\n\t\t\t\t\t\t+ fs[i].getName().substring(1);\n\n\t\t\t\ttry {\n\t\t\t\t\tClass[] parameterTypes = new Class[1];\n\t\t\t\t\tField field = fs[i];\n\t\t\t\t\tparameterTypes[0] = field.getType();\n\t\t\t\t\tMethod m = clazz.getMethod(methodName, parameterTypes);\n\t\t\t\t\tm.invoke(o, rs.getObject(i + 1));\n\n\t\t\t\t} catch (NoSuchMethodException | SecurityException | IllegalAccessException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (InvocationTargetException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tlist.add(o);\n\t\t}\n\t\tDBUtils.closeConn(conn, pstm, null);\n\t\treturn list;\n\t}", "public Object[][]getDatos()\n {\n int registros=0;\n //obtener la cantidad de registros que hay en la tabla pacientes\n try\n {\n PreparedStatement pstm=(PreparedStatement)\n con.getConnection().prepareStatement(\"SELECT count(1) as total FROM paciente\");//cuenta el total de registros de la tabla pacientes\n ResultSet res=pstm.executeQuery();\n res.next();\n registros = res.getInt(\"total\");\n res.close();\n }\n catch(SQLException e)\n {\n System.out.println(e); \n }\n \n Object[][] data=new String [registros][9];\n \n //realizamos la consulta sql y llenamos los datos del Object\n \n try\n {\n PreparedStatement pstm=(PreparedStatement)\n con.getConnection().prepareStatement(\"SELECT * FROM paciente ORDER BY IdPaciente\");\n ResultSet res=pstm.executeQuery();\n \n int i=0;\n \n while (res.next())\n {\n String estIdPaciente = res.getString(\"IdPaciente\");\n String estDNI = res.getString(\"DNI\");\n String estNombres = res.getString(\"nombres\");\n String estApellidos = res.getString(\"apellidos\");\n String estDireccion = res.getString(\"direccion\");\n String estUbig = res.getString(\"ubigeo\");\n \n String estTelefono1 = res.getString(\"telefono1\");\n String estTelefono2 = res.getString(\"telefono2\");\n String estFechaNac = res.getString(\"edad\"); \n \n data [i][0]=estIdPaciente;\n data [i][1]=estDNI;\n data [i][2]=estNombres;\n data [i][3]=estApellidos;\n data [i][4]=estDireccion;\n data [i][5]=estUbig;\n \n data [i][6]=estTelefono1;\n data [i][7]=estTelefono2;\n data [i][8]=estFechaNac;\n \n i++;//retorna el ciclo hasta finalizar\n \n }\n \n res.close();\n }\n catch(SQLException e)\n {\n System.out.println(e);\n }\n return data;\n }", "private ArrayList<MeubleModele> initMeubleModeleCatalogue(){\n ArrayList<MeubleModele> catalogue = new ArrayList<>();\n // Création meubles\n MeubleModele Table1 = new MeubleModele(\"Table acier noir\", \"MaCuisine.com\", MeubleModele.Type.Tables,29,110,67);\n MeubleModele Table2 = new MeubleModele(\"Petite table ronde\", \"MaCuisine.com\", MeubleModele.Type.Tables,100,60,60);\n MeubleModele Table3 = new MeubleModele(\"Table 4pers. blanche\", \"MaCuisine.com\", MeubleModele.Type.Tables,499,160,95);\n MeubleModele Table4 = new MeubleModele(\"Table 8pers. noire\", \"MaCuisine.com\", MeubleModele.Type.Tables,599,240,105);\n MeubleModele Table5 = new MeubleModele(\"Table murale blanche\", \"MaCuisine.com\", MeubleModele.Type.Tables,39,74,60);\n MeubleModele Table6 = new MeubleModele(\"Table murale noire\", \"MaCuisine.com\", MeubleModele.Type.Tables,49,90,50);\n MeubleModele Meuble = new MeubleModele(\"Grandes étagères\", \"MaCuisine.com\", MeubleModele.Type.Meubles,99,147,147);\n MeubleModele Chaise = new MeubleModele(\"Chaise blanche cuir\", \"MaCuisine.com\", MeubleModele.Type.Chaises,59,30,30);\n //MeubleModele Machine_A_Laver = new MeubleModele(\"Machine à laver Bosch\", \"Bosch\", MeubleModele.Type.Petits_electromenagers,499,100,100);\n //MeubleModele Plan_de_travail = new MeubleModele(\"Plan de travail avec évier\", \"MaCuisine.com\", MeubleModele.Type.Gros_electromenagers,130,200,60);\n // Images meubles\n //Image i = new Image(getClass().getResourceAsStream(\"../Sprites/table1.png\"));\n //if (i == null) {\n // System.out.println(\"Erreur\");\n //}\n Table1.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table1.png\")));\n Table2.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table2.png\")));\n Table3.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table3.png\")));\n Table4.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table4.png\")));\n Table5.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table5.png\")));\n Table6.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table6.png\")));\n Meuble.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/meuble.png\")));\n Chaise.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/chaise.png\")));\n // add catalogue\n catalogue.add(Table1);\n catalogue.add(Table2);\n catalogue.add(Table3);\n catalogue.add(Table4);\n catalogue.add(Table5);\n catalogue.add(Table6);\n catalogue.add(Meuble);\n catalogue.add(Chaise);\n //catalogue.add(Machine_A_Laver);\n //catalogue.add(Plan_de_travail);\n return catalogue;\n }", "public String buscarTrabajadoresPorParametros() {\r\n try {\r\n inicializarFiltros();\r\n listaTrabajadores = null;\r\n //listaTrabajadores = administrarGestionarTrabajadoresBO.consultarTrabajadoresPorParametro(filtros);\r\n return null;\r\n } catch (Exception e) {\r\n System.out.println(\"Error ControllerAdministrarTrabajadores buscarTrabajadoresPorParametros : \" + e.toString());\r\n return null;\r\n }\r\n }", "public ArrayList<ProductoDTO> mostrartodos() {\r\n\r\n\r\n PreparedStatement ps;\r\n ResultSet res;\r\n ArrayList<ProductoDTO> arr = new ArrayList();\r\n try {\r\n\r\n ps = conn.getConn().prepareStatement(SQL_READALL);\r\n res = ps.executeQuery();\r\n while (res.next()) {\r\n\r\n arr.add(new ProductoDTO(res.getInt(1), res.getString(2), res.getString(3), res.getInt(4), res.getInt(5), res.getString(6), res.getString(7), res.getString(8), res.getString(9)));\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"error vuelva a intentar\");\r\n } finally {\r\n conn.cerrarconexion();\r\n\r\n }\r\n return arr;\r\n\r\n }", "public Data(SearchTree<Software> dataStructure){\n administratorMyArray = new ArrayList<>();\n IDList = new ArrayList<>();\n products = dataStructure;\n money=0.0;\n }", "public void iniciarValores(){\r\n //Numero de campos da linha, do arquivo de saida filtrado\r\n this.NUM_CAMPOS = 106;\r\n this.ID = 0; //numero da ficha\r\n this.NUM_ARQUIVOS = 2070;\r\n\r\n this.MIN_INDICE = 1; //indice do cadastro inicial\r\n this.MAX_INDICE = 90; //indice do cadastro final\r\n this.NUM_INDICES = 90; //quantidade de cadastros lidos em cada arquivo\r\n }", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //LiquidacionImpor\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tLiquidacionImpor entity = new LiquidacionImpor();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,LiquidacionImporDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Importaciones.LiquidacionImpor.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseLiquidacionImpor(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "public Data(int dia, int mes, int ano){\r\n \r\n if (dia> 31) {\r\n System.out.println(\"Dia Invalido\");\r\n System.exit(0);\r\n }\r\n if (mes> 12) {\r\n System.out.println(\"Mes Invalido\");\r\n System.exit(0);\r\n }\r\n if (((mes == 4) || (mes == 6) || (mes == 9) || (mes == 11)) && (dia > 30)) {\r\n System.out.println(\"Mes Invalido\");\r\n System.exit(0);\r\n }\r\n if (mes == 2) {\r\n \r\n if((ano % 400 == 0) || ((ano % 4 == 0) && (ano % 100 != 0))){\r\n\t\t\tif(dia > 29){\r\n System.out.println(\"Ano Invalido\");\r\n System.exit(0);\r\n }\r\n }\r\n else{\r\n if(dia > 28){\r\n System.out.println(\"Dia Invalido\");\r\n System.exit(0);\r\n }\r\n } \r\n }\r\n this.dia = dia;\r\n this.mes = mes;\r\n this.ano = ano;\r\n }", "public void buscarDatos() throws Exception {\r\n try {\r\n String parameter = lbxParameter.getSelectedItem().getValue()\r\n .toString();\r\n String value = tbxValue.getValue().toUpperCase().trim();\r\n\r\n Map<String, Object> parameters = new HashMap();\r\n parameters.put(\"parameter\", parameter);\r\n parameters.put(\"value\", \"%\" + value + \"%\");\r\n\r\n getServiceLocator().getHospitalizacionService().setLimit(\r\n \"limit 25 offset 0\");\r\n\r\n List<Hospitalizacion> lista_datos = getServiceLocator()\r\n .getHospitalizacionService().listar(parameters);\r\n rowsResultado.getChildren().clear();\r\n\r\n for (Hospitalizacion hospitalizacion : lista_datos) {\r\n rowsResultado.appendChild(crearFilas(hospitalizacion, this));\r\n }\r\n\r\n gridResultado.setVisible(true);\r\n gridResultado.setMold(\"paging\");\r\n gridResultado.setPageSize(20);\r\n\r\n gridResultado.applyProperties();\r\n gridResultado.invalidate();\r\n gridResultado.setVisible(true);\r\n\r\n } catch (Exception e) {\r\n MensajesUtil.mensajeError(e, \"\", this);\r\n }\r\n }" ]
[ "0.6832013", "0.6338525", "0.6304588", "0.63040334", "0.61591107", "0.6141676", "0.6101144", "0.6060115", "0.6051219", "0.5986343", "0.596246", "0.5949279", "0.5935093", "0.5916287", "0.5890682", "0.58691007", "0.5864812", "0.58637214", "0.58443207", "0.58320856", "0.58300793", "0.58292615", "0.5820748", "0.5811543", "0.5801054", "0.5796349", "0.57918125", "0.5782535", "0.5772648", "0.577228", "0.5764999", "0.575449", "0.5746076", "0.573732", "0.5730106", "0.5723827", "0.5704152", "0.57029074", "0.57010704", "0.57001936", "0.5694777", "0.5690467", "0.56897676", "0.56879514", "0.568308", "0.5663965", "0.56627524", "0.56591034", "0.5659089", "0.56495804", "0.564932", "0.56461585", "0.56416035", "0.5635864", "0.5633274", "0.562756", "0.5623066", "0.5618674", "0.56098527", "0.5608348", "0.5608005", "0.56020045", "0.56019384", "0.5598018", "0.55957735", "0.5588089", "0.55793417", "0.55771935", "0.5576789", "0.55746067", "0.5566208", "0.5565028", "0.5557657", "0.5555928", "0.55536884", "0.5548496", "0.554699", "0.5541653", "0.55377024", "0.5534064", "0.5531554", "0.5528362", "0.55270493", "0.55212396", "0.55193126", "0.5518884", "0.5518573", "0.5517762", "0.5516521", "0.5511165", "0.55104434", "0.5507501", "0.55069995", "0.55054545", "0.5502206", "0.5500434", "0.54983056", "0.5492266", "0.549119", "0.5490133" ]
0.59804934
10
] este metodo sirve para mostrar todos los datos de los empleados creados en estecaso los datos estan guardados en un arrayList
public static void verDatos (ArrayList<Empleado> arreglo) { Empleado obj; for (int i = 0; i < arreglo.size(); i++) { obj= arreglo.get(i); JOptionPane.showMessageDialog(null,"Nombre: " + obj.getNombre() +" "+ obj.getApellido()+"\nEdad: " + obj.getEdad() + "\nFecha de nacimiento: "+ obj.getFechaNac() + "\nSueldo: " + obj.getSueldo() + "\nTelefono: " + obj.telefono + "\nDireccion: " + obj.getDireccion()+ "\nEmail: "+ obj.getEmail()+ "\nCargo: "+ obj.getCargo(), "DATOS DEL EMPLEADO ", JOptionPane.INFORMATION_MESSAGE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Empresa> getData() {\n lista = new ArrayList<Empresa>();\n aux = new ArrayList<Empresa>();\n Empresa emp = new Empresa(1, \"restaurantes\", \"KFC\", \"Av. Canada 312\", \"tel:5050505\", \"[email protected]\", \"www.kfc.com\", \"https://upload.wikimedia.org/wikipedia/en/thumb/b/bf/KFC_logo.svg/1024px-KFC_logo.svg.png\", \"Restaurante de comida rapida.exe\");\n lista.add(emp);\n emp = new Empresa(2, \"restaurantes\", \"Pizza Hut\", \"Av. Aviación 352\", \"tel:1111111\", \"[email protected]\", \"www.pizzahut.com\", \"https://upload.wikimedia.org/wikipedia/en/thumb/d/d2/Pizza_Hut_logo.svg/1088px-Pizza_Hut_logo.svg.png\", \"Restaurante de comida rapida.exe\");\n lista.add(emp);\n emp = new Empresa(3, \"restaurantes\", \"Chifa XUNFAN\", \"Av. del Aire 122\", \"tel:1233121\", \"[email protected]\", \"www.chifaxunfan.com\", \"https://www.piscotrail.com/sf/media/2011/01/chifa.png\", \"Restaurante de comida oriental.exe\");\n lista.add(emp);\n emp = new Empresa(4, \"Restaurantes\", \"El buen sabor\", \"Av. Benavides 522\", \"tel:5366564\", \"[email protected]\", \"www.elbuensabor.com\", \"http://www.elbuensaborperu.com/images/imagen1.jpg\", \"Restaurante de comida peruana\");\n lista.add(emp);\n emp = new Empresa(5, \"Restaurantes\", \"La Romana\", \"Av. San borja norte 522\", \"tel:6462453\", \"[email protected]\", \"www.laromana.com\", \"https://3.bp.blogspot.com/-rAxbci6-cM4/WE7ZppGVe4I/AAAAAAAA3fY/TkiySUlQJTgR7xkOXViJ1IjFRjOulFWnwCLcB/s1600/pizzeria-la-romana2.jpg\", \"Restaurante de comida italiana\");\n lista.add(emp);\n emp = new Empresa(6, \"Ocio\", \"Cinemark\", \"Av. San borja norte 522\", \"tel:6462453\", \"[email protected]\", \"www.cinemark.com.pe\", \"https://s3.amazonaws.com/moviefone/images/theaters/icons/cienmark-logo.png\", \"El mejor cine XD\");\n lista.add(emp);\n emp = new Empresa(7, \"Educación\", \"TECSUP\", \"Av. cascanueces 233\", \"tel:6462453\", \"[email protected]\", \"www.tecsup.edu.pe\", \"http://www.miningpress.com/media/img/empresas/tecsup_1783.jpg\", \"Instituto tecnologico del Perú\");\n lista.add(emp);\n emp = new Empresa(8, \"Ocio\", \"CC. Arenales\", \"Av. arenales 233\", \"tel:6462453\", \"[email protected]\", \"www.arenales.com.pe\", \"http://4.bp.blogspot.com/-jzojuNRfh_s/UbYXFUsN9wI/AAAAAAAAFjU/ExT_GmT8kDc/s1600/35366235.jpg\", \"Centro comercial arenales ubicado en la avenida Arenales al costado del Metro Arenales\");\n lista.add(emp);\n emp = new Empresa(9, \"Ocio\", \"Jockey Plaza\", \"Av. Javier Prado 233\", \"tel:6462453\", \"[email protected]\", \"www.jockeyplaza.com.pe\", \"http://3.bp.blogspot.com/-a2DHRxS7R8k/T-m6gs9Zn7I/AAAAAAAAAFA/z_KeH2QTu18/s1600/logo+del+jockey.png\", \"Un Centro Comercial con los diversos mercados centrados en la moda y tendencia del mundo moderno\");\n lista.add(emp);\n emp = new Empresa(10, \"Educación\", \"UPC\", \"Av. Monterrico 233\", \"tel:6462453\", \"[email protected]\", \"www.upc.edu.pe\", \"https://upload.wikimedia.org/wikipedia/commons/f/fc/UPC_logo_transparente.png\", \"Universidad Peruana de Ciencias Aplicadas conocida como UPC se centra en la calidad de enseñanza a sus estudiantes\");\n lista.add(emp);\n int contador=0;\n String key = Busqueda.getInstance().getKey();\n for (int i = 0; i < lista.size(); i++) {\n if (lista.get(i).getRubro().equalsIgnoreCase(key)||lista.get(i).getRubro().toLowerCase().contains(key.toLowerCase())) {\n aux.add(lista.get(i));\n }else {\n if (lista.get(i).getNombre().equalsIgnoreCase(key)||lista.get(i).getNombre().toLowerCase().contains(key.toLowerCase())) {\n aux.add(lista.get(i));\n break;\n }else {\n\n }\n }\n\n }\n return aux;\n }", "public ArrayList<Info_laboral> findAll(){\n ConexionBD con = new ConexionBD();\n Connection c = con.conOracle();\n\n ArrayList<Info_laboral> eeg = new ArrayList();\n\n try{\n ResultSet gs = con.ejecutaCon(\" Select * from Info_laboral\"); \n while(gs.next()){\n \n Estudios_Egresado ee=new Estudios_Egresado();\n Info_laboral i =new Info_laboral();\n Egresado eg = new Egresado();\n Estudios es = new Estudios();\n \n i.setId(gs.getInt(1));\n i.setJefe(gs.getString(2));\n i.setCargo(gs.getString(3));\n i.setFuncion(gs.getString(4));\n i.setFecha_ini(gs.getDate(5));\n i.setFecha_fin(gs.getDate(6));\n i.setMotivo_retiro(gs.getString(7));\n eg.setId(gs.getLong(8));\n i.setId_egresado(eg);\n i.setPerfil(gs.getString(9));\n \n eeg.add(i);\n }\n }catch(SQLException e){\n System.out.println(\"error \"+e);\n return null;\n }\n return eeg;\n }", "public ArrayList<DatosNombre> listaNombre(){\n \n ArrayList<DatosNombre> respuesta = new ArrayList<>();\n Connection conexion = null;\n JDBCUtilities conex = new JDBCUtilities();\n \n try{\n conexion= conex.getConnection();\n \n String query = \"SELECT usuario, contrasenia, nombre\"\n + \" FROM empleado\"\n + \" WHERE estado=true\";\n \n PreparedStatement statement = conexion.prepareStatement(query);\n ResultSet resultado = statement.executeQuery();\n \n while(resultado.next()){\n DatosNombre consulta = new DatosNombre();\n consulta.setUsuario(resultado.getString(1));\n consulta.setContrasenia(resultado.getString(2));\n consulta.setNombreAnt(resultado.getString(3));\n \n respuesta.add(consulta);\n }\n }catch(SQLException e){\n JOptionPane.showMessageDialog(null, \"Error en la consulta \" + e);\n }\n return respuesta;\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 cargarDatos() {\n \n if(drogasIncautadoList==null){\n return;\n }\n \n \n \n List<Droga> datos = drogasIncautadoList;\n\n Object[][] matriz = new Object[datos.size()][4];\n \n for (int i = 0; i < datos.size(); i++) {\n \n \n //System.out.println(s[0]);\n \n matriz[i][0] = datos.get(i).getTipoDroga();\n matriz[i][1] = datos.get(i).getKgDroga();\n matriz[i][2] = datos.get(i).getQuetesDroga();\n matriz[i][3] = datos.get(i).getDescripcion();\n \n }\n Object[][] data = matriz;\n String[] cabecera = {\"Tipo Droga\",\"KG\", \"Quetes\", \"Descripción\"};\n dtm = new DefaultTableModel(data, cabecera);\n tableDatos.setModel(dtm);\n }", "public List listar() {\n ArrayList<Empleado> lista = new ArrayList<>();\r\n String sql = \"SELECT * FROM empleado\";\r\n \r\n try {\r\n con = cn.getConexion();\r\n ps = con.prepareStatement(sql); \r\n rs = ps.executeQuery();\r\n \r\n while (rs.next()) {\r\n Empleado emp = new Empleado(); \r\n emp.setId(rs.getInt(\"Id\")); //campos de la tabla\r\n emp.setNombre(rs.getString(\"Nombre\"));\r\n emp.setSalario(rs.getDouble(\"Salario\")); \r\n lista.add(emp); \r\n } \r\n } catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }\r\n \r\n return lista;\r\n }", "public static void main(String[] args) {\n \n empleado[] misEmpleados=new empleado[3];\n //String miArray[]=new String[3];\n \n misEmpleados[0]=new empleado(\"paco gomez\",123321,1998,12,12);\n misEmpleados[1]=new empleado(\"Johana\",28500,1998,12,17);\n misEmpleados[2]=new empleado(\"sebastian\",98500,1898,12,17);\n \n /*for (int i = 0; i < misEmpleados.length; i++) {\n misEmpleados[i].aumentoSueldo(10);\n \n }\n for (int i = 0; i < misEmpleados.length; i++) {\n System.out.println(\"nombre :\" + misEmpleados[i].dameNombre() + \" sueldo \" + misEmpleados[i].dameSueldo()+ \" fecha de alta \"\n + misEmpleados[i].dameContrato());\n }*/\n \n for (empleado e:misEmpleados) {\n e.aumentoSueldo(10);\n \n }\n for (empleado e:misEmpleados) {\n System.out.println(\"nombre :\" + e.dameNombre() + \" sueldo \" + e.dameSueldo()+ \" fecha de alta \"\n + e.dameContrato());\n \n }\n \n }", "@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 ArrayList<ProductoDTO> mostrartodos() {\r\n\r\n\r\n PreparedStatement ps;\r\n ResultSet res;\r\n ArrayList<ProductoDTO> arr = new ArrayList();\r\n try {\r\n\r\n ps = conn.getConn().prepareStatement(SQL_READALL);\r\n res = ps.executeQuery();\r\n while (res.next()) {\r\n\r\n arr.add(new ProductoDTO(res.getInt(1), res.getString(2), res.getString(3), res.getInt(4), res.getInt(5), res.getString(6), res.getString(7), res.getString(8), res.getString(9)));\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"error vuelva a intentar\");\r\n } finally {\r\n conn.cerrarconexion();\r\n\r\n }\r\n return arr;\r\n\r\n }", "@Override\n public ArrayList<Asesor> getListaAsesores() {\n ArrayList<Asesor> listaAsesores = new ArrayList();\n ConexionSQL conexionSql = new ConexionSQL();\n Connection conexion = conexionSql.getConexion();\n try{\n PreparedStatement orden = conexion.prepareStatement(\"select * from asesor\");\n ResultSet resultadoConsulta = orden.executeQuery();\n String numeroPersonal;\n String nombre;\n String idioma;\n String telefono;\n String correo;\n Asesor asesor;\n while(resultadoConsulta.next()){\n numeroPersonal = resultadoConsulta.getString(1);\n nombre = resultadoConsulta.getString(4) +\" \"+ resultadoConsulta.getString(6) +\" \"+ resultadoConsulta.getString(5);\n idioma = resultadoConsulta.getString(2);\n telefono = resultadoConsulta.getString(8);\n correo = resultadoConsulta.getString(7);\n asesor = new Asesor(numeroPersonal, nombre, idioma,telefono,correo);\n listaAsesores.add(asesor);\n }\n }catch(SQLException | NullPointerException excepcion){\n Logger logger = Logger.getLogger(\"Logger\");\n logger.log(Level.WARNING, \"La conexión podría ser nula | la sentencia SQL esta mal\");\n }\n return listaAsesores;\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 static void generarEmpleados() {\r\n\t\tEmpleado e1 = new Empleado(100,\"34600001\",\"Oscar Ugarte\",new Date(), 20000.00, 2);\r\n\t\tEmpleado e2 = new Empleado(101,\"34600002\",\"Maria Perez\",new Date(), 25000.00, 4);\r\n\t\tEmpleado e3 = new Empleado(102,\"34600003\",\"Marcos Torres\",new Date(), 30000.00, 2);\r\n\t\tEmpleado e4 = new Empleado(1000,\"34600004\",\"Maria Fernandez\",new Date(), 50000.00, 7);\r\n\t\tEmpleado e5 = new Empleado(1001,\"34600005\",\"Augusto Cruz\",new Date(), 28000.00, 3);\r\n\t\tEmpleado e6 = new Empleado(1002,\"34600006\",\"Maria Flores\",new Date(), 35000.00, 2);\r\n\t\tlistaDeEmpleados.add(e1);\r\n\t\tlistaDeEmpleados.add(e2);\r\n\t\tlistaDeEmpleados.add(e3);\r\n\t\tlistaDeEmpleados.add(e4);\r\n\t\tlistaDeEmpleados.add(e5);\r\n\t\tlistaDeEmpleados.add(e6);\r\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 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 }", "private ArrayList<String[]> getTodasOS() {\n ArrayList <OrdemServico> os = new OS_Controller(this).buscarTodasOrdemServicos();\n\n ArrayList<String[]> rows = new ArrayList<>();\n ArrayList<OrdemServico> ordemServicos=new ArrayList<>();\n\n for (OrdemServico ordemServico :os){\n String id = String.valueOf(ordemServico.getId());\n String numero = ordemServico.getNumero_ordem_servico();\n String cliente = ordemServico.getCliente().getNome();\n SimpleDateFormat formato = new SimpleDateFormat(\"dd-MM-yyyy\");\n String dataEntrada = formato.format(ordemServico.getData_entrada());\n String status = ordemServico.getStatus_celular();\n String tecnico = ordemServico.getTecnico_responsavel();\n String precoFinal = ordemServico.getValor_final();\n String marca = ordemServico.getMarca();\n String modelo = ordemServico.getModelo();\n\n rows.add(new String[]{id,numero,dataEntrada, marca, modelo,cliente,status,tecnico, precoFinal});\n ordemServicos.add(ordemServico);\n }\n //String cliente = String.valueOf(os.getCliente());\n return rows;\n\n }", "private ArrayList<Entidad> GetArrayItems(){\n // ArrayList<Entidad> listItems = new ArrayList<>();\n listItems.add(new Entidad(\"Agree\", \"Disagree\", \"Level: \", \"Bajo\", 0,0,0,0, 0,0,0, \" Spotify\",\"\", 0, false, false, false, null, \"\", 1,0,0,0,0,\"\"));\n listItems.add(new Entidad(\"Agree\", \"Disagree\", \"Level: \", \"Bajo\", 0,0,0,0, 0,0,0, \" Spotify\",\"\", 0, false, false, false, null, \"\", 1,0,0,0,0,\"\"));\n listItems.add(new Entidad(\"Agree\", \"Disagree\", \"Level: \", \"Bajo\", 0,0,0,0, 0,0,0, \" Spotify\",\"\", 0, false, false, false, null, \"\", 1,0,0,0,0,\"\"));\n listItems.add(new Entidad(\"Agree\", \"Disagree\", \"Level: \", \"Bajo\", 0,0,0,0, 0,0,0, \" Spotify\",\"\", 0, false, false, false, null, \"\", 1,0,0,0,0,\"\"));\n listItems.add(new Entidad(\"Agree\", \"Disagree\", \"Level: \", \"Bajo\", 0,0,0,0, 0,0,0, \" Spotify\",\"\", 0, false, false, false, null, \"\", 1,0,0,0,0,\"\"));\n\n return listItems;\n }", "public static void main(String[] args) {\n\t\tArrayList<Empleado>listaEmpleados = new ArrayList<Empleado>();\n\t\t//listaEmpleados.ensureCapacity(12); //USAMOS ESTE MÉTODO PARA NO CONSUMIR MÁS MEMORIA QUE 12 ELEMENTOS DEL ARRAYLIST\n\t\tlistaEmpleados.add(new Empleado(\"Bra\", 17,2800));\n\t\tlistaEmpleados.add(new Empleado(\"Pan\", 15,2500));\n\t\tlistaEmpleados.add(new Empleado(\"Giru\", 10,2000));\n\t\tlistaEmpleados.add(new Empleado(\"Bra\", 17,2800));\n\t\tlistaEmpleados.add(new Empleado(\"Pan\", 15,2500));\n\t\tlistaEmpleados.add(new Empleado(\"Giru\", 10,2000));\n\t\tlistaEmpleados.add(new Empleado(\"Bra\", 17,2800));\n\t\tlistaEmpleados.add(new Empleado(\"Pan\", 15,2500));\n\t\tlistaEmpleados.add(new Empleado(\"Giru\", 10,2000));\n\t\tlistaEmpleados.add(new Empleado(\"Bra\", 17,2800));\n\t\tlistaEmpleados.add(new Empleado(\"Pan\", 15,2500));\n\t\t//PARA ELEGIR LA POSICIÓN DONDE QUEREMOS INCLUIR ELEMENTO.\n\t\tlistaEmpleados.set(5,new Empleado(\"Androide18\", 10,2000));\n\t\t\n\t\t//CORTAMOS EL EXCESO DE MEMORIA QUE ESTÁ SIN USAR\n\t\t//listaEmpleados.trimToSize();\n\t\t\n\t\t//PARA IMPRIMIR UN ELEMENTO DE ARRAYLIST EN ESPECIAL\n\t\tSystem.out.println(listaEmpleados.get(4).dameEmpleados());\n\t\t\n\t\t//IMPRIMIMOS EL TAMAÑO DEL ARRAYLIST\n\t\tSystem.out.println(\"Elementos: \" + listaEmpleados.size());\n\t\t\n\t\t/*//BUCLE FOR-EACH\n\t\tSystem.out.println(\"Elementos: \" + listaEmpleados.size());\n\t\tfor(Empleado x : listaEmpleados) {\n\t\t\tSystem.out.println(x.dameEmpleados());\n\t\t}*/\n\t\t\n\t\t/*//BUCLE FOR\n\t\tfor(int i=0;i<listaEmpleados.size();i++) {\n\t\t\t//ALAMCENAMOS EN \"e\" LOS ELEMENTOS DEL ARRAYLIST\n\t\t\tEmpleado e =listaEmpleados.get(i); \n\t\t\tSystem.out.println(e.dameEmpleados());\n\t\t}*/\n\t\t\n\t\t//GUARDAMOS LA INFORMACIÓN DEL ARRAYLIST EN UN ARRAY CONVENSIONAL Y LO RECORREMOS\n\t\t//CREAMOS ARRAY Y LE DAMOS LA LONGITUD DEL ARRAYLIST:\n\t\tEmpleado arrayEmpleados[]= new Empleado[listaEmpleados.size()];\n\t\t//COPIAMOS LA INFORMACIÓN EN EL ARRAY CONVENSIONAL:\n\t\tlistaEmpleados.toArray(arrayEmpleados);\n\t\t//RECORREMOS\n\t\tfor(int i=0;i<arrayEmpleados.length;i++) {\n\t\t\tSystem.out.println(arrayEmpleados[i].dameEmpleados());\n\t\t}\n\t}", "@Override\n\tprotected void doListado() throws Exception {\n\t\tList<Department> deptos = new DepartmentDAO().getAllWithManager();\n//\t\tList<Department> deptos = new DepartmentDAO().getAll();\n\t\tthis.addColumn(\"Codigo\").addColumn(\"Nombre\").addColumn(\"Manager\").newLine();\n\t\t\n\t\tfor(Department d: deptos){\n\t\t\taddColumn(d.getNumber());\n\t\t\taddColumn(d.getName());\n\t\t\taddColumn(d.getManager().getFullName());\n\t\t\tnewLine();\n\t\t}\n\t}", "private void cargar(List<Personas> listaP) {\n int total= listaP.size();\n Object [][] tab = new Object [total][10];\n int i=0;\n Iterator iter = listaP.iterator();\n while (iter.hasNext()){\n Object objeto = iter.next();\n Personas pro = (Personas) objeto;\n\n tab[i][0]=pro.getLocalidadesid().getProvinciasId();\n tab[i][1]=pro.getLocalidadesid();\n tab[i][2]=pro.getCuilcuit();\n tab[i][3]=pro.getApellido();\n tab[i][4]=pro.getNombres();\n tab[i][5]=pro.getCalle();\n tab[i][6]=pro.getAltura();\n tab[i][7]=pro.getPiso();\n tab[i][8]=pro.getEmail();\n// if(pro.getEmpleados().equals(\"\")){\n tab[i][9]=\"Cliente\";\n // }else{\n // tab[i][7]=\"Empleado\";\n // }\n i++;\n }\njTable1 = new javax.swing.JTable();\n\njTable1.setModel(new javax.swing.table.DefaultTableModel(\ntab,\nnew String [] {\n \"Provincia\", \"Localidad\", \"DNI/Cuit\", \"Apellido\", \"Nombres\", \"Calle\", \"Altura\", \"Piso\", \"Email\", \"Tipo\"\n}\n));\n jScrollPane1.setViewportView(jTable1);\n }", "public List<Empleado> buscarTodos() {\n\t\tList<Empleado> listEmpleados;\n\t\tQuery query = entityManager.createQuery(\"SELECT e FROM Empleado e WHERE estado = true\");\n\t\tlistEmpleados = query.getResultList();\n\t\tIterator iterator = listEmpleados.iterator();\n\t\twhile(iterator.hasNext())\n\t\t{\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\treturn listEmpleados;\n\t}", "public ArrayList consultarTodo() {\n Cursor cursor = this.myDataBase.rawQuery(\"SELECT des_invfisico_tmp._id,des_invfisico_tmp.cod_ubicacion,des_invfisico_tmp.cod_referencia,des_invfisico_tmp.cod_plu,plu.descripcion FROM des_invfisico_tmp LEFT OUTER JOIN plu ON plu.cod_plu = des_invfisico_tmp.cod_plu \", null);\n ArrayList arrayList = new ArrayList();\n new ArrayList();\n if (cursor.moveToFirst()) {\n do {\n for (int i = 0; i <= 4; ++i) {\n if (cursor.isNull(i)) {\n arrayList.add(\"\");\n continue;\n }\n arrayList.add(cursor.getString(i));\n }\n } while (cursor.moveToNext());\n }\n\n return arrayList;\n }", "public static void main (String[] args){\n Empleado[] listaEmpleados = new Empleado[10];\n \n //Asignamos objetos a cada posición\n listaEmpleados[0] = new Empleado(\"Manuel\", \"30965835V\");\n listaEmpleados[1] = new Empleado(\"Miguel\", \"30965835V\");\n listaEmpleados[2] = new Empleado(\"Pedro\", \"30965835V\");\n listaEmpleados[3] = new Empleado(\"Samuel\", \"30965835V\");\n listaEmpleados[4] = new Empleado(\"Vanesa\", \"30965835V\");\n listaEmpleados[5] = new Empleado(\"Alberto\", \"30965835V\");\n listaEmpleados[6] = new Empleado(\"Roberto\", \"30965835V\");\n listaEmpleados[7] = new Empleado(\"Carlos\", \"30965835V\");\n listaEmpleados[8] = new Empleado(\"Ernesto\", \"30965835V\");\n listaEmpleados[9] = new Empleado(\"Javier\", \"30965835V\");\n\n /*Empleado[] empleados = {\n empleado1, empleado2, empleado3, null,null,null, null,\n null,null,null\n }*/\n \n //Imprimimos el array sin ordenar\n imprimeArrayPersona(listaEmpleados);\n \n //Creamos el objeto de la empresa\n Empresa empresa0 = new Empresa(\"Indra\", listaEmpleados);\n \n //Usamos la clase array para ordenar el array de mayor a menos\n Arrays.sort(listaEmpleados);\n\n //Imprimimos de nuevo el array\n imprimeArrayPersona(listaEmpleados);\n \n //Imprimimos la empresa\n System.out.println(empresa0);\n \n //Guardamos en un string la lista de nombres de un objeto empresa\n String listado = Empresa.listaEmpleado(empresa0.empleado).toString();\n \n System.out.println(listado);//Imprimimos el listado como un string\n \n //Imprimimos el array de los nombres de los empleados de la empresa\n System.out.println(Arrays.toString(Empresa.listaEmpleadoArray(listado)));\n \n //Método que imprime los empleados de una empresa separados por comas\n Empresa.listaEmpleado(listado);\n \n /*Empresa[] listaEmpresa = new Empresa[4];\n \n listaEmpresa[0] = new Empresa(\"Intel\", listaEmpleados);\n listaEmpresa[1] = new Empresa(\"AMD\", listaEmpleados);\n listaEmpresa[2] = new Empresa(\"Asus\", listaEmpleados);\n listaEmpresa[3] = new Empresa(\"Shaphire\", listaEmpleados);\n System.out.println(Arrays.toString(listaEmpresa));\n Arrays.sort(listaEmpresa);\n System.out.println(Arrays.toString(listaEmpresa));*/\n \n \n }", "public void asignarAnexo(){\r\n String indiceStr;\r\n int indice, i=0;\r\n System.out.println(\"-----------------------------------\");\r\n System.out.println(\" Lista de Empleados\");\r\n System.out.println(\"-----------------------------------\");\r\n //RECORRER ARRAYLIST\r\n for (i=0 ; i<empleados.size() ; i=i+1) {\r\n System.out.print( (i + 1) +\" \"+empleados.get(i).getPerNombre()+\" \"+\r\n empleados.get(i).getPerApellidoPaterno()+\" \"+\r\n empleados.get(i).getPerApellidoMaterno()+\" tiene el anexo : \");\r\n if(empleados.get(i).getEmpAnexo() != null){\r\n System.out.println(empleados.get(i).getEmpAnexo()); //QUE ANEXO TIENE\r\n }else{\r\n System.out.println(\" Sin asignar \");\r\n }\r\n }\r\n if(i>0){\r\n try {\r\n System.out.print(\"Seleccione el codigo del empleado : \\t\");\r\n indiceStr = entrada.readLine();\r\n indice = Integer.parseInt(indiceStr);\r\n indice = indice - 1;\r\n System.out.println(\"-----------------------------------\");\r\n System.out.println(\" Lista de Anexo\");\r\n System.out.println(\"-----------------------------------\");\r\n// RECORRE ENUMERADO ANEXOS\r\n for(Anexo a : Anexo.values()){ \r\n System.out.println(\"\\t\" + a.getAneCodigo()+ \" - \"+a.toString() + \" area: \"+ a.getAneUbicacion());\r\n }\r\n System.out.print(\"Seleccione Anexo: \");\r\n // ASIGNA ANEXO A EMPLEADO\r\n empleados.get(indice).setEmpAnexo(entrada.readLine());\r\n System.out.println(\"*****Empleado se asigno anexo \"+empleados.get(indice).getEmpAnexo().name()+\" *****\");\r\n } catch (IOException ex) {\r\n System.out.println(\"Ocurrio un error al ingresar datos= \"+ex.toString());\r\n } catch(NumberFormatException ex){\r\n System.out.println(\"Ocurrio un error al convertir numero= \"+ex.toString());\r\n }\r\n }else{\r\n System.out.println(\"-NO existen Empleado Registrados-\");\r\n }\r\n }", "private void mostrarLista(List<Cliente> lista) {\n DefaultTableModel tabla;\n tabla = (DefaultTableModel) tblData.getModel();\n tabla.setRowCount(0);\n for (Cliente bean : lista) {\n Object[] rowData = {\n bean.getCodigo(),\n bean.getPaterno(),\n bean.getMaterno(),\n bean.getNombre(),\n bean.getDni()\n };\n tabla.addRow(rowData);\n }\n }", "public void reloadTableEmpleado() {\n\n this.removeAllData();// borramos toda la data \n for (int i = 0; i < (listae.size()); i++) { // este for va de la primera casilla hast ael largo del arreglo \n Empleado object = listae.get(i);\n this.AddtoTableEmpleado(object);\n }\n\n }", "public void carga_bd_empleados(){\n try {\n Connection conectar = Conexion.conectar();\n PreparedStatement pst = conectar.prepareStatement(\n \"select nombre, edad, cargo, direccion, telefono from empleados\");\n\n ResultSet rs = pst.executeQuery();\n\n table = new JTable(model);\n jScrollPane1.setViewportView(table);\n table.setBackground(Color.yellow);\n\n model.addColumn(\"Nombre\");\n model.addColumn(\"Edad\");\n model.addColumn(\"Cargo\");\n model.addColumn(\"Direccion\");\n model.addColumn(\"Telefono\");\n\n while (rs.next()) {\n Object[] fila = new Object[8];\n //material mimaterial = new material();\n\n for (int i = 0; i < 5; i++) {\n fila[i] = rs.getObject(i + 1);\n }\n\n// model.addRow(fila);\n Empleado mimaterial = this.ChangetoEmpleado(fila);\n this.AddToArrayTableEmpleado(mimaterial);\n\n }\n\n conectar.close();\n \n } catch (SQLException e) {\n System.err.println(\"Error al llenar tabla\" + e);\n JOptionPane.showMessageDialog(null, \"Error al mostrar informacion\");\n\n }\n }", "public static ArrayList cargarEstudiantes() {\r\n try {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n Connection conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/registrolaboratorios\", \"root\", \"admin\");\r\n System.out.printf(\"conexion establesida\");\r\n Statement sentencia = conexion.createStatement();\r\n ResultSet necesario = sentencia.executeQuery(\"select * from estudiante\");\r\n\r\n Estudiante estudiante;\r\n\r\n listaEstudiantes = new ArrayList<>();\r\n while (necesario.next()) {\r\n\r\n String Nro_de_ID = necesario.getString(\"Nro_de_ID\");\r\n String nombres = necesario.getString(\"Nombres\");\r\n String apellidos = necesario.getString(\"Apellidos\");\r\n String laboratorio = necesario.getString(\"Laboratorio\");\r\n String carrera = necesario.getString(\"Carrera\");\r\n String modulo = necesario.getString(\"Modulo\");\r\n String materia = necesario.getString(\"Materia\");\r\n String fecha = necesario.getString(\"Fecha\");\r\n String horaIngreso = necesario.getString(\"Hora_Ingreso\");\r\n String horaSalida = necesario.getString(\"Hora_Salida\");\r\n\r\n estudiante = new Estudiante();\r\n\r\n estudiante.setNro_de_ID(Nro_de_ID);\r\n estudiante.setNombres(nombres);\r\n estudiante.setLaboratorio(laboratorio);\r\n estudiante.setCarrera(carrera);\r\n estudiante.setModulo(modulo);\r\n estudiante.setMateria(materia);\r\n estudiante.setFecha(fecha);\r\n estudiante.setHora_Ingreso(horaIngreso);\r\n estudiante.setHora_Salida(horaSalida);\r\n\r\n listaEstudiantes.add(estudiante);\r\n\r\n }\r\n sentencia.close();\r\n conexion.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"Error en la conexion\" + ex);\r\n }\r\n return listaEstudiantes;\r\n }", "public void listar_saldoData(String data_entrega,String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_Saldo.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getSaldoVendaCorte(data_entrega, tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getTotal()});\n }\n \n \n }", "public void mostrarDados() {\n txtId.setText(\"\" + lista.get(indice).getId());\n txtNome.setText(lista.get(indice).getNome());\n txtEmail.setText(lista.get(indice).getEmail());\n txtSenha.setText(lista.get(indice).getSenha());\n preencheTabela();\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 }}", "@Override\n\tpublic ArrayList<Object[]> tousEmplo() {\n\t\tfor (Employe emplo : treeMap.values()) {\n\t\t\tObject[] aux = { emplo.getId(), emplo.getNom(), emplo.getPrenom(),\n\t\t\t\t\templo.getDate_N(), emplo.getSexe(), emplo.getRue(),\n\t\t\t\t\templo.getNumero(), emplo.getVille(), emplo.getPay(),\n\t\t\t\t\templo.getTelef(), emplo.getClass().getName().substring(13) };\n\t\t\tarray.add(aux);\n\t\t}\n\t\treturn array;\n\t}", "private void listarEntidades() {\r\n\t\tsetListEntidades(new ArrayList<EntidadDTO>());\r\n\t\tgetListEntidades().addAll(entidadController.encontrarTodos());\r\n\t\tif (!getListEntidades().isEmpty()) {\r\n\t\t\tfor (EntidadDTO entidadDTO : getListEntidades()) {\r\n\t\t\t\t// Conversión de decimales.\r\n\t\t\t\tDouble porcentaje = entidadDTO.getPorcentajeValorAsegurable() * 100;\r\n\t\t\t\tdouble por = Math.round(porcentaje * Math.pow(10, 2)) / Math.pow(10, 2);\r\n\t\t\t\tentidadDTO.setPorcentajeValorAsegurable(por);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public ArrayList<Empleado> Read() throws SQLException {\r\n ResultSet rs;\r\n /*Guardamos todos los datos de la tabla en un ArrayList*/\r\n ArrayList<Empleado> listado = new ArrayList<>();\r\n /*Sentencia SQL*/\r\n String sql = \"SELECT * FROM empleados\";\r\n PreparedStatement sentencia = conexion.prepareStatement(sql);\r\n /*Ejecutar sentencia*/\r\n sentencia.execute();\r\n rs = sentencia.getResultSet();\r\n /*Guardamos los valores de cada fila en su objeto*/\r\n while(rs.next()){\r\n Empleado emp = new Empleado(rs.getInt(\"emp_no\"), rs.getString(\"apellido\"), rs.getString(\"oficio\"), rs.getInt(\"dir\"), rs.getDate(\"fecha_alt\"), rs.getFloat(\"salario\"), rs.getFloat(\"comision\"), rs.getInt(\"dept_no\")); \r\n listado.add(emp);\r\n }\r\n return listado;\r\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 }", "public List<Empleado> getEmpleados(Empleado emp) {\n List<Empleado> empleados = new ArrayList<>();\n \n Connection miConexion = null;\n Statement miStatement = null;\n ResultSet miResultset = null;\n\n String carnet = emp.getCarnetEmpleado();\n\n \n try{\n\n //Establecer la conexion\n miConexion = origenDatos.getConexion();\n \n //Crear sentencia SQL y Statement\n // String miSql = \"select * from departamento d inner join catalagopuesto c on d.codigodepartamento = c.codigodepartamento inner join empleado e on c.codigopuesto = e.codigopuesto where e.carnetempleado = '\"+carnet+\"'\";\n String miSql = \"select * from empleado e WHERE e.carnetempleado = '\"+carnet+\"'\"; \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(miSql);\n \n while(miResultset.next()){\n String codCarnet = miResultset.getString(\"CARNETEMPLEADO\");\n \n Empleado temporal = new Empleado(codCarnet);\n \n empleados.add(temporal);\n }\n\n }catch(Exception e){\n e.printStackTrace();\n }\n \n return empleados;\n }", "public List<Consulta> listagemConsultas(){\r\n\t\tList<Consulta>col1;\r\n\t\tcol1=new ArrayList<Consulta>();\r\n\t\tfor (Consulta c : col){\r\n\t\t\tif (c.toString()!=null){\r\n\t\t\t\tcol1.add(c);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn col1;\r\n\t}", "public static String buscarTodosLosLibros() throws Exception{ //BUSCARtODOS no lleva argumentos\r\n //primero: nos conectamos a oracle con la clase conxion\r\n \r\n Connection con=Conexion.conectarse(\"system\",\"system\");\r\n //segundo: generamos un statemenr de sql con la conexion anterior\r\n Statement st=con.createStatement();\r\n //3: llevamos a cabo la consulta select \r\n ResultSet res=st.executeQuery(\"select * from persona\"); //reset arreglo enmutado de java estructura de datos\r\n System.out.println(\"depues del select\");\r\n int indice=0;\r\n ArrayList<persona> personas=new ArrayList<persona>();\r\n while(res.next()){ //del primero hasta el ultimo prod que vea SI PONGO SECUENCIA NO ENTRA AL WHILE\r\n Integer id= res.getInt(1); \r\n String nombre=res.getString(2);\r\n String empresa=res.getString(3);\r\n Integer edad=res.getInt(4);\r\n String telefono=res.getString(5);\r\n \r\n ///llenamos el arrayList en cada vuelta\r\n personas.add(new persona(id,nombre,empresa,edad,telefono));\r\n \r\n System.out.println(\"estoy en el array list despues del select\");\r\n }\r\n \r\n //el paso final, transformamos a objeto json con jackson\r\n ObjectMapper maper=new ObjectMapper(); //mapeo a objeto jackson\r\n \r\n st.close();\r\n con.close();\r\n System.out.println(\"convirtiendo el json\");\r\n return maper.writeValueAsString(personas);\r\n \r\n }", "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 }", "private void getObsequios(){\n mObsequios = estudioAdapter.getListaObsequiosSinEnviar();\n //ca.close();\n }", "private void consultartiposincidentes() {\n\n db= con.getWritableDatabase();\n TipoIncidente clase_tipo_incidente= null;\n tipoincidentelist= new ArrayList<TipoIncidente>();\n //CONSULTA\n Cursor cursor=db.rawQuery(\"select codigo_incidente,tipo_incidente from \" +Utilitario.TABLE_TIPO_INCIDENTE,null);\n\n while (cursor.moveToNext()){\n clase_tipo_incidente=new TipoIncidente();\n clase_tipo_incidente.setCodigo(cursor.getInt(0));\n clase_tipo_incidente.setDescripcion(cursor.getString(1));\n\n Log.i(\"id\",clase_tipo_incidente.getCodigo().toString());\n Log.i(\"desc\",clase_tipo_incidente.getDescripcion());\n\n tipoincidentelist.add(clase_tipo_incidente);\n\n }\n llenarspinner();\n db.close();\n }", "@Override\r\n\tpublic List consultaEmpresas() {\n\t\treturn null;\r\n\t}", "public List<Empleado> getAll();", "public ArrayList<Empleado> getListaEmpleados(){\n return listaEmpleados;\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 ArrayList<DTOcantComentarioxComercio> listaOrdenadaxComentario() {\n ArrayList<DTOcantComentarioxComercio> lista = new ArrayList<>();\n try {\n Connection conn = DriverManager.getConnection(CONN, USER, PASS);\n\n Statement st = conn.createStatement();\n ResultSet rs = st.executeQuery(\"select co.nombre, count (Comentarios.id_comercio) comentarios\\n\"\n + \"from Comentarios join Comercios co on co.id_comercio = Comentarios.id_comercio\\n\"\n + \"group by co.nombre\\n\"\n + \"order by comentarios\");\n\n while (rs.next()) {\n String nombreO = rs.getString(1);\n int cant = rs.getInt(2);\n\n DTOcantComentarioxComercio oc = new DTOcantComentarioxComercio(nombreO, cant);\n\n lista.add(oc);\n }\n\n st.close();\n conn.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n\n return lista;\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 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 }", "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 }", "@Override\n\tpublic List<AlmacenDTO> listarEntrada() {\n\t\tList<AlmacenDTO> data = new ArrayList<AlmacenDTO>();\n\t\tAlmacenDTO obj = null;\n\t\tConnection cn = null;\n\t\tPreparedStatement pstm = null;\n\t\tResultSet rs = null;\n\t\ttry {\n\t\t\tcn = new MySqlDbConexion().getConexion();\n\t\t\tString sql = \"select me.codigo_entrada,p.nombre_producto,me.cantidad_entrada,me.fecha_entrada\\r\\n\" + \n\t\t\t\t\t\"from material_entrada me inner join producto p on me.codigo_producto=p.codigo_producto\";\n\n\t\t\tpstm = cn.prepareStatement(sql);\n\t\t\trs = pstm.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tobj = new AlmacenDTO();\n\t\t\t\tobj.setCodigo_entrada(rs.getInt(1));\n\t\t\t\tobj.setNombre_producto(rs.getString(2));\n\t\t\t\tobj.setCantidad_entrada(rs.getInt(3));\n\t\t\t\tobj.setFecha_entrada(rs.getDate(4));\n\n\t\t\t\tdata.add(obj);\n\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn data;\n\t}", "public void listAll(){\n /*\n for(int i=0;i<employeesList.size();i++){\n System.out.println(i);\n Employee employee=(Employee)employeesList.get(i);\n System.out.print(employeesList.get(i));\n */ \n \n \n //for used to traverse employList in order to print all employee's data\n for (int i = 0; i < employeesList.size(); i++) {\n System.out.println(\"Name: \" + employeesList.get(i).getName()); \n System.out.println(\"Salary_complement: \"+employeesList.get(i).getSalary_complement()); \n \n }\n \n \n }", "public void listar_saldoMontadoData(String data_entrega,String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_Saldo_Montado.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getSaldoVendaMontadoPorData(data_entrega, tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getTotal()});\n }\n \n \n }", "public ArrayList<oferta> listadoOfertaxComercio(int idComercio) {\n ArrayList<oferta> lista = new ArrayList<>();\n try {\n Connection conn = DriverManager.getConnection(CONN, USER, PASS);\n\n PreparedStatement st = conn.prepareStatement(\"select o.nombre, o.cantidad, o.precio , c.id_comercio, id_oferta, descripcion, fecha, o.ruta, o.estado\\n\"\n + \"from Comercios c \\n\"\n + \"join Ofertas o on c.id_comercio = o.id_comercio \\n\"\n + \"where c.id_comercio = ?\");\n st.setInt(1, idComercio);\n ResultSet rs = st.executeQuery();\n\n while (rs.next()) {\n String nombreO = rs.getString(1);\n int cantidad = rs.getInt(2);\n Float precio = rs.getFloat(3);\n int id = rs.getInt(4);\n int ido = rs.getInt(5);\n String descripcion = rs.getString(6);\n String fecha = rs.getString(7);\n String ruta = rs.getString(8);\n boolean estado = rs.getBoolean(9);\n\n rubro rf = new rubro(0, \"\", true, \"\", \"\");\n comercio c = new comercio(\"\", \"\", \"\", id, true, \"\", \"\", rf, \"\");\n oferta o = new oferta(ido, nombreO, cantidad, precio, c, estado, descripcion, fecha,ruta );\n\n lista.add(o);\n }\n\n st.close();\n conn.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n\n return lista;\n }", "List<ParqueaderoEntidad> listar();", "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 ArrayList<DTOValoracion> listaValoraciones() {\n ArrayList<DTOValoracion> lista = new ArrayList<>();\n try {\n Connection conn = DriverManager.getConnection(CONN, USER, PASS);\n\n Statement st = conn.createStatement();\n ResultSet rs = st.executeQuery(\"select valoracion, COUNT (valoracion) cantidad\\n\"\n + \"from Comentarios\\n\"\n + \"where valoracion is not null\\n\"\n + \"group by valoracion \");\n\n while (rs.next()) {\n\n int valoracion = rs.getInt(1);\n int cantidad = rs.getInt(2);\n\n DTOValoracion v = new DTOValoracion(valoracion, cantidad);\n\n lista.add(v);\n }\n\n st.close();\n conn.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n\n return lista;\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 }", "public List<conteoTab> filtro() throws Exception {\n iConteo iC = new iConteo(path, this);\n try {\n fecha = sp.getString(\"date\", \"\");\n iC.nombre = fecha;\n\n List<conteoTab> cl = iC.all();\n\n for (conteoTab c : cl) {\n boolean val = true;\n for (int i = 0; i <= clc.size(); i++) {\n if (c.getIdBloque() == sp.getInt(\"bloque\", 0) || c.getIdVariedad() == sp.getInt(\"idvariedad\", 0)) {\n val = true;\n } else {\n val = false;\n }\n }\n if (val) {\n clc.add(c);\n } else {\n }\n }\n } catch (Exception e) {\n Toast.makeText(this, \"No existen registros actuales que coincidan con la fecha\", Toast.LENGTH_LONG).show();\n clc.clear();\n }\n return clc;\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 List<CLEmpleado> obtenerListaEmpleados() throws SQLException{\r\n String sql = \"{CALL sp_mostrarEmpleados()}\";\r\n List<CLEmpleado> miLista = null;\r\n try{\r\n st = cn.createStatement();\r\n rs = st.executeQuery(sql);\r\n miLista = new ArrayList<>();\r\n while(rs.next()) {\r\n CLEmpleado cl = new CLEmpleado();\r\n cl.setIdEmpleado(rs.getInt(\"IdEmpleado\"));\r\n cl.setPrimerNombre(rs.getString(\"empleadoPrimerNombre\"));\r\n cl.setSegundoNombre(rs.getString(\"empleadoSegundoNombre\"));\r\n cl.setPrimerApellido(rs.getString(\"empleadoPrimerApellido\"));\r\n cl.setSegundoApellido(rs.getString(\"empleadoSegundoApellido\"));\r\n cl.setDireccion(rs.getString(\"empleadoDireccion\"));\r\n cl.setTelefonoCelular(rs.getString(\"empleadoTelefonoCelular\"));\r\n cl.setIdCargo(rs.getInt(\"idCargo\"));\r\n cl.setIdEstado(rs.getInt(\"idEstado\"));\r\n miLista.add(cl);\r\n }\r\n \r\n }catch(SQLException e){\r\n JOptionPane.showMessageDialog(null, \"error: \"+ e.getMessage());\r\n \r\n }\r\n return miLista; \r\n }", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \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 }", "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 static ArrayList<obj_dos_campos> carga_tipo_producto() {\n ArrayList<obj_dos_campos> lista = new ArrayList<obj_dos_campos>();\n Connection c=null;\n try {\n c = conexion_odbc.Connexion_datos();\n Statement s = c.createStatement();\n ResultSet rs = s.executeQuery(\"select tip_prod_idn as data, tip_prod_nombre as label from tipo_producto order by tip_prod_nombre desc\");\n lista.add(new obj_dos_campos(\"0\",\"-- Seleccione --\"));\n while (rs.next()){\n lista.add(new obj_dos_campos(rs.getString(\"data\"),rs.getString(\"label\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n c.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n return lista;\n }", "@Override\n public ArrayList<Endereco> buscar() {\n PreparedStatement stmt;\n ResultSet rs;\n ArrayList<Endereco> arrayEndereco = new ArrayList<>();\n try {\n \n stmt = ConexaoBD.conectar().prepareStatement(\"SELECT * FROM Endereco\");\n rs = stmt.executeQuery();\n \n \n while (rs.next()) {\n Endereco endereco = new Endereco();\n endereco.setCodigo(rs.getInt(\"CODIGOENDERECO\"));\n endereco.setRua(rs.getString(\"RUA\"));\n endereco.setNumero(rs.getString(\"NUMERO\"));\n endereco.setBairro(rs.getString(\"BAIRRO\"));\n endereco.setCidade(rs.getString(\"CIDADE\"));\n arrayEndereco.add(endereco);\n }\n \n \n } catch (SQLException ex) {\n Logger.getLogger(FuncionarioDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return arrayEndereco; \n }", "public void mostrarRegistro(ArrayList<parqueo> parking){\n try {\n for (int num = 0; num < parking.size(); num++){//Recorremos la base de datos y vamos imprimiendo los datos de cada interación\n parqueo park = parking.get(num);\n if(park.getOcupado() == false){\n System.out.println(\"---------------------------------\");\n System.out.println(\"Numero de parqueo: \" + park.getNumero());\n System.out.println(\"Contenido: \");\n System.out.println(\"Disponibilidad: Disponible\");//Vamos extrayendo los datos de la base de datos y los vamos imprimiendo conforme los vamos extrayendo\n System.out.println(\"Para modelo: \" + park.getParaModelo());\n if (park.getTechado() == true){\n System.out.println(\"Techado: Si esta techado\");\n }\n else{\n System.out.println(\"Techado: No esta techado\");\n }\n System.out.println(\"---------------------------------\");\n }\n else{\n carro car = park.getVehiculoOcupando();\n System.out.println(\"---------------------------------\");\n System.out.println(\"Numero de parqueo utilizado: \" + park.getNumero());\n System.out.println(\"Contenido: \");\n System.out.println(\"Disponibilidad: Ocupado\");//Vamos extrayendo los datos de la base de datos y los vamos imprimiendo conforme los vamos extrayendo\n System.out.println(\"Para modelo: \" + park.getParaModelo());\n if (park.getTechado() == true){\n System.out.println(\"Techado: Si esta techado\");\n }\n else{\n System.out.println(\"Techado: No esta techado\");\n }\n System.out.println(\"---------------------------------\");\n System.out.println(\"Carro que ocupo el espacio: \");\n System.out.println(\"Hora en el que ingreso: \" + car.getHoraInicio().toString());\n System.out.println(\"Hora en el que se fue: \" + car.getHoraFinal().toString());\n System.out.println(\"Horas que estuvo en el parqueo: \" + car.getHoras());\n System.out.println(\"Placa: \" + car.getPlaca());\n System.out.println(\"Marca: \" + car.getMarca());\n System.out.println(\"Modelo: \" + car.getModelo());\n System.out.println(\"---------------------------------\");\n }\n }\n } catch (Exception e) {\n System.out.println(\"Ocurrio un error inesperado\");\n }\n }", "public void ConsultaVehiculosSQlite() {\n preguntas = mydb.getCartList();\n for( int i = 0 ; i < preguntas.size() ; i++ ){\n //Toast.makeText(getApplicationContext(), preguntas.get( i ).getPregunta(), Toast.LENGTH_SHORT).show();\n persons.add(new Solicitud(\"Pregunta \" + String.valueOf(i+1) +\": \"+preguntas.get( i ).getPregunta(),\"Fecha: \"+ preguntas.get( i ).getFecha(), R.drawable.solicitudes,\"Motivo: \"+preguntas.get( i ).getMotivo(),\"Observacion: \"+preguntas.get( i ).getObservacion(),\"\"));\n }\n }", "public ArrayList<AnuncioDTO> ObtenerAnuncios(){\n ArrayList<AnuncioDTO> ret=new ArrayList<AnuncioDTO>();\n\n try{\n Connection conect = getConection();\n Properties sqlProp = new Properties();\n InputStream is = new FileInputStream(sqlPropertiesPath);\n sqlProp.load(is);\n PreparedStatement ps = conect.prepareStatement(sqlProp.getProperty(\"getAll.Anuncio\"));\n ResultSet rs = ps.executeQuery();\n while(rs.next()){\n int id=rs.getInt(1);\n TipoAnuncio tipoAnuncio=TipoAnuncio.valueOf(rs.getString(2));\n String titulo = rs.getString(3);\n String cuerpo = rs.getString(4);\n Date fechaPublicacion = new Date(rs.getDate(5).getTime());\n Date fechaFin=null;\n if(tipoAnuncio.equals(TipoAnuncio.Flash)){\n fechaFin= new Date(rs.getDate(6).getTime());\n }\n String emailPropietario = rs.getString(7);\n EstadoAnuncio estadoAnuncio = EstadoAnuncio.valueOf(rs.getString(8));\n \n ArrayList<String>temas=null;\n if(tipoAnuncio.equals(TipoAnuncio.Tematico)){\n temas=new ArrayList<String>();\n ArrayList<String>temasId = null;\n temasId=new ArrayList<String>(Arrays.asList(rs.getString(9).split(\",\")));\n InteresesDAO interesesDAO = new InteresesDAO(sqlPropertiesPath);\n Hashtable<Integer,String> intereses = interesesDAO.DevolverIntereses();\n for(String interes : temasId){\n temas.add(intereses.get(Integer.parseInt(interes)));\n }\n\n }\n ArrayList<String>destinatarios = ObtenerDestinatariosAnuncio(id);\n AnuncioDTO anuncioDTO=new AnuncioDTO(id, tipoAnuncio, titulo, cuerpo, fechaPublicacion, fechaFin, emailPropietario, estadoAnuncio, temas,destinatarios);\n\n ret.add(anuncioDTO);\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return ret;\n }", "private void listaContatos() throws SQLException {\n limpaCampos();\n DAOLivro d = new DAOLivro();\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 }", "public void buscaTodasOSs() {\n try {\n ServicoDAO sDAO = new ServicoDAO(); // instancia a classe ProdutoDB()\n ArrayList<OS> cl = sDAO.consultaTodasOs(); // coloca o método dentro da variável\n\n DefaultTableModel modeloTabela = (DefaultTableModel) jTable1.getModel();\n // coloca a tabela em uma variável do tipo DefaultTableModel, que permite a modelagem dos dados da tabela\n\n for (int i = modeloTabela.getRowCount() - 1; i >= 0; i--) {\n modeloTabela.removeRow(i);\n // loop que limpa a tabela antes de ser atualizada\n }\n\n for (int i = 0; i < cl.size(); i++) {\n // loop que pega os dados e insere na tabela\n Object[] dados = new Object[7]; // instancia os objetos. Cada objeto representa um atributo \n dados[0] = cl.get(i).getNumero_OS();\n dados[3] = cl.get(i).getStatus_OS();\n dados[4] = cl.get(i).getDefeito_OS();\n dados[5] = cl.get(i).getDataAbertura_OS();\n dados[6] = cl.get(i).getDataFechamento_OS();\n\n // pega os dados salvos do banco de dados (que estão nas variáveis) e os coloca nos objetos definidos\n modeloTabela.addRow(dados); // insere uma linha nova a cada item novo encontrado na tabela do BD\n }\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Falha na operação.\\nErro: \" + ex.getMessage());\n } catch (Exception ex) {\n Logger.getLogger(FrmPesquisar.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "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 }", "@SuppressWarnings({ \"unchecked\", \"static-access\" })\n\t@Override\n\t/**\n\t * Leo todos los empleados.\n\t */\n\tpublic List<Employees> readAll() {\n\t\tList<Employees> ls = null;\n\n\t\tls = ((SQLQuery) sm.obtenerSesionNueva().createQuery(\n\t\t\t\tInstruccionesSQL.CONSULTAR_TODOS)).addEntity(Employees.class)\n\t\t\t\t.list();// no creo que funcione, revisar\n\n\t\treturn ls;\n\t}", "public ArrayList<Cliente> listaDeClientes() {\n\t\t\t ArrayList<Cliente> misClientes = new ArrayList<Cliente>();\n\t\t\t Conexion conex= new Conexion();\n\t\t\t \n\t\t\t try {\n\t\t\t PreparedStatement consulta = conex.getConnection().prepareStatement(\"SELECT * FROM clientes\");\n\t\t\t ResultSet res = consulta.executeQuery();\n\t\t\t while(res.next()){\n\t\t\t \n\t\t\t int cedula_cliente = Integer.parseInt(res.getString(\"cedula_cliente\"));\n\t\t\t String nombre= res.getString(\"nombre_cliente\");\n\t\t\t String direccion = res.getString(\"direccion_cliente\");\n\t\t\t String email = res.getString(\"email_cliente\");\n\t\t\t String telefono = res.getString(\"telefono_cliente\");\n\t\t\t Cliente persona= new Cliente(cedula_cliente, nombre, direccion, email, telefono);\n\t\t\t misClientes.add(persona);\n\t\t\t }\n\t\t\t res.close();\n\t\t\t consulta.close();\n\t\t\t conex.desconectar();\n\t\t\t \n\t\t\t } catch (Exception e) {\n\t\t\t //JOptionPane.showMessageDialog(null, \"no se pudo consultar la Persona\\n\"+e);\n\t\t\t\t System.out.println(\"No se pudo consultar la persona\\n\"+e);\t\n\t\t\t }\n\t\t\t return misClientes; \n\t\t\t }", "public ArrayList<DataCliente> listarClientes();", "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<Clientes> read(){\n Connection con = ConectionFactory.getConnection();\n PreparedStatement pst = null;\n ResultSet rs = null;\n \n List<Clientes> cliente = new ArrayList<>();\n \n try {\n pst = con.prepareStatement(\"SELECT * from clientes ORDER BY fantasia\");\n rs = pst.executeQuery();\n \n while (rs.next()) { \n Clientes clientes = new Clientes();\n clientes.setCodigo(rs.getInt(\"codigo\"));\n clientes.setFantasia(rs.getString(\"fantasia\"));\n clientes.setCep(rs.getString(\"cep\"));\n clientes.setUf(rs.getString(\"uf\"));\n clientes.setLogradouro(rs.getString(\"logradouro\"));\n clientes.setNr(rs.getString(\"nr\"));\n clientes.setCidade(rs.getString(\"cidade\"));\n clientes.setBairro(rs.getString(\"bairro\"));\n clientes.setContato(rs.getString(\"contato\"));\n clientes.setEmail(rs.getString(\"email\"));\n clientes.setFixo(rs.getString(\"fixo\"));\n clientes.setCelular(rs.getString(\"celular\"));\n clientes.setObs(rs.getString(\"obs\"));\n cliente.add(clientes); \n }\n } catch (SQLException ex) {\n \n }finally{\n ConectionFactory.closeConnection(con, pst, rs);\n }\n return cliente;\n}", "public List<Ejemplar> getAll();", "private void cargarLista(ArrayList<CarritoDTO> arrayList)\n {\n DefaultListModel modelo = new DefaultListModel();\n //Recorrer el contenido del ArrayList\n for(int i=0; i<arrayList.size(); i++) \n {\n CarritoDTO item =(CarritoDTO) arrayList.get(i);\n //Añadir cada elemento del ArrayList en el modelo de la lista\n modelo.add(i, item.toString());\n }\n //Asociar el modelo de lista al JList\n jList1.setModel(modelo);\n }", "public List<String> IndiceOcupacion() throws Exception \n\t{\n\t\tDAOFC dao = new DAOFC( );\n\t\tList<String> ss = new ArrayList<>();\n\t\ttry\n\t\t{\n\t\t\tthis.conn = darConexion();\n\t\t\tdao.setConn(conn);\n\t\t\tss = dao.indiceOcupacion();\n\n\t\t}\n\t\tcatch (SQLException sqlException) {\n\t\t\tSystem.err.println(\"[EXCEPTION] SQLException:\" + sqlException.getMessage());\n\t\t\tsqlException.printStackTrace();\n\t\t\tthrow sqlException;\n\t\t} \n\t\tcatch (Exception exception) {\n\t\t\tSystem.err.println(\"[EXCEPTION] General Exception:\" + exception.getMessage());\n\t\t\texception.printStackTrace();\n\t\t\tthrow exception;\n\t\t} \n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tdao.cerrarRecursos();\n\t\t\t\tif(this.conn!=null){\n\t\t\t\t\tthis.conn.close();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (SQLException exception) {\n\t\t\t\tSystem.err.println(\"[EXCEPTION] SQLException While Closing Resources:\" + exception.getMessage());\n\t\t\t\texception.printStackTrace();\n\t\t\t\tthrow exception;\n\t\t\t}\n\t\t}\t\n\n\t\treturn ss;\n\t}", "public ArrayList llenar_lv(){\n ArrayList<String> lista = new ArrayList<>();\n SQLiteDatabase database = this.getWritableDatabase();\n String q = \"SELECT * FROM \" + TABLE_NAME;\n Cursor registros = database.rawQuery(q,null);\n if(registros.moveToFirst()){\n do{\n lista.add(\"\\t**********\\nNombre: \" + registros.getString(0) +\n \"\\nDirección: \"+ registros.getString(1) + \"\\n\" +\n \"Servicio(s): \"+ registros.getString(2) +\n \"\\nEdad: \"+ registros.getString(3) + \" años\\n\" +\n \"Telefono: \"+ registros.getString(4) +\n \"\\nIdioma(s): \"+ registros.getString(5) + \"\\n\");\n }while(registros.moveToNext());\n }\n return lista;\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 ArrayList<Mascota> obtenerDatos(){\n\n BaseDatos db = new BaseDatos(context);\n\n ArrayList<Mascota> aux = db.obtenerTodoslosContactos();\n\n if(aux.size()==0){\n insertarMascotas(db);\n aux = db.obtenerTodoslosContactos();\n }\n\n return aux;\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 void listarCarros() {\n System.err.println(\"Carros: \\n\");\n if (carrosCadastrados.isEmpty()) {\n System.err.println(\"Nao existem carros cadastrados\");\n } else {\n System.err.println(Arrays.toString(carrosCadastrados.toArray()));\n }\n }", "@Override\n\tpublic ArrayList<ClienteFisico> listar() throws SQLException {\n\t\t\n\t\tArrayList<ClienteFisico> listar = new ArrayList<ClienteFisico>();\n\t\t\n\t\t\n\t\tfor(ClienteFisico c : this.set){\n\t\t\t\n\t\t\tlistar.add(c);\n\t\t}\n\t\n\t\t\n\t\treturn listar;\n\t}", "public static String todosLosEmpleados(){\n String query=\"SELECT empleado.idEmpleado, persona.nombre, persona.apePaterno, persona.apeMaterno, empleado.codigo, empleado.fechaIngreso,persona.codigoPostal,persona.domicilio,\" +\n\"empleado.puesto, empleado.salario from persona inner join empleado on persona.idPersona=empleado.idPersona where activo=1;\";\n return query;\n }", "public static void mostrarEmpleados(List<Empleado> lista )\r\n\t{\r\n\t\tfor(Empleado empleado: lista)\r\n\t\t{\r\n\t\t\tSystem.out.println(empleado);\r\n\t\t}\r\n\t}", "private void consultarlistareportes() {\n db= con.getWritableDatabase();\n ReporteIncidente reporte= null;\n listarreportesinc =new ArrayList<ReporteIncidente>();\n Cursor cursor= db.rawQuery(\"select imagen1,asunto_reporte,estado_reporte,desc_reporte,cod_reporte from \"+ Utilitario.TABLE_REPORTE_INCIDENTE+\" where estado_reporte<>'Incompleto'\",null);\n\n while (cursor.moveToNext()){\n reporte= new ReporteIncidente();\n reporte.setImage1(cursor.getBlob(0));\n reporte.setAsunto(cursor.getString(1));\n reporte.setEstado(cursor.getString(2));\n reporte.setDescripcion(cursor.getString(3));\n reporte.setCodreporte(cursor.getInt(4));\n listarreportesinc.add(reporte);\n }\n //obtenerinformacion();\n db.close();\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 }", "private void mostraPesquisa(List<BeansLivro> livros) {\n // Limpa a tabela sempre que for solicitado uma nova pesquisa\n limparTabela();\n \n if (livros.isEmpty()) {\n JOptionPane.showMessageDialog(rootPane, \"Nenhum registro encontrado.\");\n } else { \n // Linha em branco usada no for, para cada registro é criada uma nova linha \n String[] linha = new String[] {null, null, null, null, null, null, null};\n // P/ cada registro é criada uma nova linha, cada linha recebe os campos do registro\n for (int i = 0; i < livros.size(); i++) {\n tmLivro.addRow(linha);\n tmLivro.setValueAt(livros.get(i).getId(), i, 0);\n tmLivro.setValueAt(livros.get(i).getExemplar(), i, 1);\n tmLivro.setValueAt(livros.get(i).getAutor(), i, 2);\n tmLivro.setValueAt(livros.get(i).getEdicao(), i, 3);\n tmLivro.setValueAt(livros.get(i).getAno(), i, 4);\n tmLivro.setValueAt(livros.get(i).getDisponibilidade(), i, 5); \n } \n }\n }", "public static void main(String[] args) {\n Alumno aaDatos []; // El identificador es nulo\n \n aaDatos = new Alumno[tam];//Creamos un arreglo de 10 \n //alumnos - AQUI HABRA PREGUNTA\n for (int i = 0; i < aaDatos.length; i++) {\n aaDatos[i]= new Alumno(\"Dany\",\"16550518\", 0);//Para cada lugar de arreglo se crea un objeto de la clase alumno\n \n }\n for (Alumno aaDatos1: aaDatos) {\n System.out.println(\"Nombre: \"+ aaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaDatos1.getiCar());\n \n }\n \n \n //CREAMOS UNA COPIA DEL ARREGLO\n Alumno aaCopiaDatos [];\n aaCopiaDatos = new Alumno [tam];\n \n for (int i = 0; i < aaCopiaDatos.length; i++) {\n aaCopiaDatos[i]= new Alumno(aaDatos[i].getsNom(), // <<<Se llenan todos los datos que pide el constructor por argumentos\n aaDatos[i].getsMatri(), \n aaDatos[i].getiCar());\n \n }\n for (Alumno aaCopiaDatos1 : aaCopiaDatos) {\n System.out.println(\"Nombre: \"+ aaCopiaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaCopiaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaCopiaDatos1.getiCar());\n }\n System.out.println(aaDatos);\n System.out.println(aaCopiaDatos);\n }", "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 }", "private ArrayList<Tarea> getTareas(Date desde, Date hasta) {\n BDConsulter consulter = new BDConsulter(DATABASE_URL, DATABASE_USER, DATABASE_PASS);//genero la clase, que se conecta a la base postgresql\n consulter.connect();//establezco la conexion\n\n //Si no hay ningun integrante seleccionado, selecciono todos\n List<String> integrantesSeleccionados = jListIntegrantes.getSelectedValuesList();\n DefaultListModel<String> model = (DefaultListModel<String>) jListIntegrantes.getModel();\n List<String> integrantes = new ArrayList<String>();\n if (integrantesSeleccionados.size() == 0) {\n for (int i = 0; i < model.getSize(); i++) {\n System.out.println((model.getElementAt(i)));\n integrantes.add(model.getElementAt(i));\n }\n integrantesSeleccionados = integrantes;\n }\n\n ArrayList<Tarea> tareas = new ArrayList<>();\n for (String s : integrantesSeleccionados) {\n tareas.addAll(consulter.getTareas(desde, hasta, (String) jComboBoxProyecto.getSelectedItem(), (String) jComboBoxGrupos.getSelectedItem(), s));//obtengo las tareas creadas entre un rango de fecha dado\n }\n consulter.disconnect();//termino la conexion con la base//termino la conexion con la base\n return tareas;\n }", "public void ListDrwaer() {\n List<Map<String, String>> employeeList = new ArrayList<Map<String, String>>();\n params = new HashMap<>();\n\n try {\n JSONObject jsonResponse = new JSONObject(jsonResult);\n JSONArray jsonMainNode = jsonResponse.optJSONArray(\"listafaltantes\");\n\n for (int i = 0; i < jsonMainNode.length(); i++) {\n JSONObject jsonChildNode = jsonMainNode.getJSONObject(i);\n String name = jsonChildNode.optString(\"nombre\");\n\n\n\n\n\n\n\n String outPut = name;\n\n employeeList.add(createEmployee(\"\", outPut));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n Toast.makeText(getApplicationContext(),\n \"Asistieron todos los alumnos\", Toast.LENGTH_LONG).show();\n }\n\n\n\n\n SimpleAdapter simpleAdapter = new SimpleAdapter(this, employeeList,\n android.R.layout.simple_list_item_1,\n new String[] { \"\" }, new int[] { android.R.id.text1 });\n listView.setAdapter(simpleAdapter);\n\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\n\n String selectedFromList =(listView.getItemAtPosition(position).toString());\n\n\n if (selectedFromList != null && !selectedFromList.isEmpty()) {\n Pattern p = Pattern.compile(\"[{=}]\");\n Matcher m = p.matcher(selectedFromList);\n if (m.find()) {\n nombrealumno = m.replaceAll(\"\");\n }\n }\n\n\n }\n });\n }", "public List<Empresa> readEmp() throws ClassNotFoundException {\r\n java.sql.Connection con = ConnectionFactory.getConnection();\r\n PreparedStatement stmt = null;\r\n ResultSet rs = null;\r\n List<Empresa> Empresa = new ArrayList<>();\r\n try {\r\n stmt = con.prepareStatement(\"SELECT * FROM tbempresas\");\r\n rs = stmt.executeQuery();\r\n while (rs.next()) {\r\n Empresa p = new Empresa();\r\n p.setCodEmp(rs.getInt(\"codEmp\"));\r\n p.setNomeEmp(rs.getString(\"nomeEmp\"));\r\n\r\n Empresa.add(p);\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(EmpresaDao.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n ConnectionFactory.closeConnection(con, stmt, rs);\r\n }\r\n return Empresa;\r\n }", "public static String todosLosEmpleados_baja(){\n String query=\"SELECT empleado.idEmpleado, persona.nombre, persona.apePaterno, persona.apeMaterno, empleado.codigo, empleado.fechaIngreso,persona.codigoPostal,persona.domicilio,\" +\n\"empleado.puesto, empleado.salario from persona inner join empleado on persona.idPersona=empleado.idPersona where activo=0;\";\n return query;\n }", "public void listarEquipo() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tfor(Alumno i : alumnos) {\n\t\t\tsb.append(i+\"\\n\");\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}", "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 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 ArrayList< UsuarioVO> listaDePersonas() {\r\n\t ArrayList< UsuarioVO> miUsuario = new ArrayList< UsuarioVO>();\r\n\t Conexion conex= new Conexion();\r\n\t \r\n\t try {\r\n\t PreparedStatement consulta = conex.getConnection().prepareStatement(\"SELECT * FROM usuarios\");\r\n\t ResultSet res = consulta.executeQuery();\r\n\t while(res.next()){\r\n\t\t UsuarioVO persona= new UsuarioVO();\r\n\t persona.setCedula_usuario(Integer.parseInt(res.getString(\"cedula_usuario\")));\r\n\t persona.setEmail_usuario(res.getString(\"email_usuario\"));\r\n\t persona.setNombre_usuario(res.getString(\"nombre_usuario\"));\r\n\t persona.setPassword(res.getString(\"password\"));\r\n\t persona.setUsuario(res.getString(\"usuario\"));\r\n\t \r\n\t \r\n\t miUsuario.add(persona);\r\n\t }\r\n\t res.close();\r\n\t consulta.close();\r\n\t conex.desconectar();\r\n\t \r\n\t } catch (Exception e) {\r\n\t JOptionPane.showMessageDialog(null, \"no se pudo consultar la Persona\\n\"+e);\r\n\t }\r\n\t return miUsuario;\r\n\t }" ]
[ "0.7349399", "0.70293814", "0.69976133", "0.6937298", "0.6933886", "0.6896748", "0.6873873", "0.6801087", "0.67985886", "0.67922026", "0.6790178", "0.6785648", "0.67611134", "0.6757037", "0.67560637", "0.6754471", "0.67214745", "0.66984135", "0.6696227", "0.6667858", "0.6653348", "0.66365355", "0.66336346", "0.66266763", "0.66235405", "0.65914243", "0.65817165", "0.6577876", "0.65720195", "0.6564149", "0.6547703", "0.65466", "0.6529027", "0.65254295", "0.6523748", "0.651458", "0.6465511", "0.6460972", "0.64567786", "0.6453048", "0.64479107", "0.6447645", "0.64411587", "0.64242375", "0.6413482", "0.64053136", "0.64018565", "0.6399165", "0.63982624", "0.63966435", "0.6388141", "0.6387421", "0.63799804", "0.6373038", "0.6372532", "0.636209", "0.63536376", "0.6346746", "0.6343434", "0.6343213", "0.6337633", "0.633664", "0.6330037", "0.6329331", "0.6327577", "0.63262355", "0.63233167", "0.6319056", "0.6310141", "0.6310035", "0.63094133", "0.63062555", "0.63058037", "0.62885517", "0.6271902", "0.6268556", "0.6264042", "0.62633425", "0.62615687", "0.6257161", "0.625187", "0.62517923", "0.6250396", "0.6250296", "0.6248867", "0.62472147", "0.624425", "0.62353873", "0.6228356", "0.62263674", "0.6221761", "0.62126213", "0.621087", "0.6210642", "0.6209633", "0.62085587", "0.6202959", "0.62006605", "0.6199193", "0.6198585" ]
0.6690417
19
Used by the blueprint container
public NetboxHttpClient(NetboxProperties properties) { this(properties.getHost(), properties.getApiKey()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void consulterCatalog() {\n\t\t\n\t}", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "@Override\n\t\t\tprotected void configure() {\n\t\t\t}", "@Override\n protected void configure() {\n }", "@Override\n public void feedingHerb() {\n\n }", "@Override\r\n\tprotected void configure() {\n\t\t\r\n\t}", "public PortletContainer() {\n }", "@Override\n\tprotected void configure() {\n\n\t}", "@Override\n protected void startUp() {\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 configure() {\n\t\t\n\t}", "@Override\n public void configure() {\n }", "private RepositorioOrdemServicoHBM() {\n\n\t}", "@Override\n\tpublic void configure() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void service() {\n\t}", "@Override\n public void startUpOperations() {\n }", "@Override\n protected void initialize() \n {\n \n }", "private WebServicesFabrica(){}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void startup() {\n }", "public static Kernel start(int port)\n {\n Kernel app = Kernel.newInstance();\n Container container = app.getContainer();\n\n // Forms\n container.add(new ServiceDefinition<>(AnnualReviewType.class));\n container.add(new ServiceDefinition<>(UserType.class));\n\n // Managers\n container.add(new ServiceDefinition<>(AccessDecisionManager.class, YuconzAccessDecisionManager.class));\n container.add(new ServiceDefinition<>(YuconzAuthenticationManager.class));\n container.add(new ServiceDefinition<>(Hibernate.class));\n container.add(new ServiceDefinition<>(LogManager.class))\n .addMethodCallDefinitions(new MethodCallDefinition(\n \"setAuthenticationManager\",\n new ServiceReference<>(YuconzAuthenticationManager.class)\n ));\n container.add(new ServiceDefinition<>(RecordManager.class));\n container.add(new ServiceDefinition<>(AnnualReviewManager.class));\n container.add(new ServiceDefinition<>(FormManager.class));\n\n container.add(new ServiceDefinition<>(AuthorisationManager.class))\n .addMethodCallDefinitions(new MethodCallDefinition(\n \"setAuthenticationManager\",\n new ServiceReference<>(YuconzAuthenticationManager.class)\n ));\n\n // Resolvers\n container.add(new ServiceDefinition<>(UserResolver.class));\n container.add(new ServiceDefinition<>(RecordResolver.class));\n\n // JTwig Functions\n container.add(new ServiceDefinition<>(CurrentUserFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(CurrentRoleFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(FormRenderFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(FormStartRenderFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(FormEndRenderFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(ActivePageFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(IsGrantedFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(RangeFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(ServiceFunction.class)).addTag(\"jtwig.function\");\n container.add(new ServiceDefinition<>(LocalDateFunction.class)).addTag(\"jtwig.function\");\n\n // Voters\n container.add(new ServiceDefinition<>(PersonalDetailsVoter.class)).addTag(\"authentication.voter\");\n container.add(new ServiceDefinition<>(RecordVoter.class)).addTag(\"authentication.voter\");\n container.add(new ServiceDefinition<>(AnnualReviewVoter.class)).addTag(\"authentication.voter\");\n container.add(new ServiceDefinition<>(AuthorisationVoter.class)).addTag(\"authentication.voter\");\n\n container.getServiceDefinition(FrameworkServer.class).setConfigurationReference(new PlainReference<>(new Configuration()\n {\n @Override\n public int getPort()\n {\n return port;\n }\n }));\n\n app.boot();\n\n Router router = container.get(Router.class);\n\n // Records\n router.registerController(AppController.class);\n router.registerController(StaticController.class);\n router.registerController(AuthenticationController.class);\n router.registerController(DashboardController.class);\n router.registerController(EmployeesController.class);\n router.registerController(RecordController.class);\n router.registerController(AnnualReviewController.class);\n\n FormManager formManager = container.get(FormManager.class);\n\n formManager.getRenderers().removeIf(r -> r.getClass().equals(ChoiceRenderer.class));\n formManager.addRenderer(CustomChoiceRenderer.class);\n formManager.addRenderer(DateRenderer.class);\n\n app.start();\n\n return app;\n }", "public void activate() {\n\n serviceTracker = new ServiceTracker<>(bundleContext, BlueprintContainer.class,\n new CustomBlueprintContainerServiceTrackerCustomizer());\n serviceTracker.open();\n\n CustomBlueprintListener blueprintListener = new CustomBlueprintListener();\n listenerSR = bundleContext.registerService(BlueprintListener.class, blueprintListener,\n new Hashtable<String, Object>());\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void configure(Context arg0) {\n\t\t\n\t}", "@Override\n\tpublic void configure(Context arg0) {\n\t\t\n\t}", "@Override\n void init() {\n }", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void config() {\n\t}", "protected Doodler() {\n\t}", "@Override\n public void autonomousInit() {\n \n }", "@Override\n protected void init() {\n }", "@Override\n public void init() {\n }", "Consumable() {\n\t}", "@Override\n\t\tpublic void configure(Binder binder) {\n\t\t\tbinder.bind(IFoodService.class).to(PizzaService.class);\n\t\t\t// bind the pizzaiolo named\n\t\t\tbinder.bind(String.class).annotatedWith(Names.named(\"pizzaiolo\"))\n\t\t\t\t\t.toInstance(\"Alberto\");\n\t\t\t// bind the print stream named to instance since we System.out is a\n\t\t\t// predefined singleton.\n\t\t\tbinder.bind(PrintStream.class)\n\t\t\t\t\t.annotatedWith(Names.named(\"printStream\"))\n\t\t\t\t\t.toInstance(System.out);\n\n\t\t}", "@Override\n\tprotected void initForInspect(AWRequestContext requestContext) {\n\n\t}", "protected void onBind()\n\t{\n\t}", "@Override\n\tprotected void initHook() {\n\t}", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n \n }", "protected void onFirstUse() {}", "DelegateContainer() {\n super();\n }", "@Override\n\tpublic void earlyStartup() {\n\t}", "@Override\n public void autonomousInit() {\n }", "@Override\n public void autonomousInit() {\n }", "@Override\n\tpublic void configure(ComponentConfiguration arg0) {\n\t\t\n\t}", "@Override\n public void init() {}", "@Override\n\tpublic void configure(Context arg0) {\n\n\t}", "private Aliyun() {\n\t\tsuper();\n\t}", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n public void initialize() { \n }", "@Override public void startUp(FloodlightModuleContext context) {\n restApi.addRestletRoutable(this);\n\n }", "@Override\r\n\tpublic void init() {}", "@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\tprotected void initialize() {\n\n\t}", "private FactoryCacheValet() {\n\t\tsuper();\n\t}", "@Override\n public void initialize() {\n }", "protected BackendModule(){ }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "@Override\n\tpublic void bind() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n public Response initResConCat() {\n return resourceMicroApi.makeConESDb();\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n\tpublic void customize(ConfigurableEmbeddedServletContainer container) {\n\t\tcontainer.setPort(8888); \n\t}", "@Override\n\tLifecycle on();", "public borFactoryImpl() {\n\t\tsuper();\n\t}", "public void onObjectRegistration(ObjectContainer container)\n {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "protected GaConnector() {\n }", "private MyResource() {\n System.out.printf(\"[%s] has been created \\n\", MyResource.class.getSimpleName());\n }", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "private ClientBootstrap() {\r\n init();\r\n }", "@Override\n public void initialize() {\n\n }" ]
[ "0.630483", "0.61779886", "0.61464524", "0.58950263", "0.5842769", "0.58413726", "0.5833862", "0.58328205", "0.58197075", "0.5793469", "0.5793469", "0.5793469", "0.5793469", "0.5793469", "0.5793469", "0.57694525", "0.57656056", "0.5700857", "0.5629193", "0.56283474", "0.55845225", "0.55737424", "0.55660987", "0.55639684", "0.556355", "0.556355", "0.556355", "0.5548564", "0.5545957", "0.55153584", "0.5514881", "0.55142623", "0.549372", "0.54928327", "0.54928327", "0.54850405", "0.5472474", "0.5458006", "0.5457192", "0.545177", "0.54505914", "0.54500216", "0.54428643", "0.5438605", "0.54364413", "0.5433379", "0.5423956", "0.54208946", "0.54187596", "0.54187596", "0.54187596", "0.54187596", "0.54187596", "0.54187596", "0.54187596", "0.54187596", "0.54187596", "0.54187596", "0.54157466", "0.54117966", "0.5409243", "0.54042214", "0.54006356", "0.54006356", "0.5397223", "0.53933674", "0.53898865", "0.53778607", "0.536353", "0.5358322", "0.5358322", "0.53514606", "0.5350006", "0.53437376", "0.53404725", "0.53404725", "0.5339626", "0.5339626", "0.53385526", "0.5330009", "0.53288424", "0.53258455", "0.53252876", "0.53252876", "0.53226924", "0.5321844", "0.531956", "0.5314654", "0.5310118", "0.53091776", "0.5305563", "0.53044313", "0.53039616", "0.52986664", "0.5286034", "0.52834725", "0.52776736", "0.5277356", "0.52671814", "0.5266617", "0.5265638" ]
0.0
-1
/ File format: ... Slot format: (0 if empty) (0 if empty)
public static void SaveGame(ChessGame Game, String FileName) throws FileNotFoundException { if (!Game.GetRunning()) { throw new FileNotFoundException("Game is not running!"); } File file = new File("./Saves/" + FileName + ".myrsav"); PrintWriter Writer; try { Writer = new PrintWriter(file); } catch(FileNotFoundException e) { throw new FileNotFoundException(e.toString()); } Writer.println(Game.GetPlayer(0).GetName()); Writer.println(Game.GetPlayer(1).GetName()); Writer.println(Game.GetPlayerTurn()); Writer.println(Game.GetRound()); for(int i = 0;i < Game.GetBoardSize();i++) { ChessSlot TempSlot = Game.GetBoardSlot(i); ChessPiece TempPiece = TempSlot.GetChessPiece(); if (TempPiece == null) { Writer.println(0); Writer.println(0); continue; } Player TempPlayer = TempPiece.GetPlayer(); Writer.println(TempPiece.GetName()); Writer.println(TempPlayer.GetName()); } Writer.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getWriteFormatCount();", "public int getReadFormatCount();", "public abstract String getFileFormatName();", "public String fileFormat() {\n DateTimeFormatter df = DateTimeFormatter.ofPattern(\"dd MMM yyyy HHmm\");\n return \"D | \" + (super.isDone ? \"1 | \" : \"0 | \") + this.description + \" | \" + df.format(this.date);\n }", "FileFormat getFormat();", "@Override\n\tpublic int getFileStatus() {\n\t\treturn 0;\n\t}", "@Override\n public String toString() {\n String str = \"Unknown file format\";\n //$$fb2002-11-01: fix for 4672864: AudioFileFormat.toString() throws unexpected NullPointerException\n if (getType() != null) {\n str = getType() + \" (.\" + getType().getExtension() + \") file\";\n }\n if (getByteLength() != AudioSystem.NOT_SPECIFIED) {\n str += \", byte length: \" + getByteLength();\n }\n str += \", data format: \" + getFormat();\n if (getFrameLength() != AudioSystem.NOT_SPECIFIED) {\n str += \", frame length: \" + getFrameLength();\n }\n return str;\n }", "@Field(0) \n\tpublic int format() {\n\t\treturn this.io.getIntField(this, 0);\n\t}", "@UML(identifier=\"fileFormat\", obligation=MANDATORY, specification=ISO_19139)\n Format getFileFormat();", "default boolean alwaysFormatEntireFile() {\n return false;\n }", "@Test\n\tpublic void testFormats() throws IOException {\n\t\tassertArrayEquals(Formats.FORMATS, ffmpeg.formats().toArray());\n\t\tassertArrayEquals(Formats.FORMATS, ffmpeg.formats().toArray());\n\n\t\tverify(runFunc, times(1)).run(argThatHasItem(\"-formats\"));\n\t}", "public boolean fileFormatSupported(String fmt);", "public int format_fs() throws YAPI_Exception\n {\n byte[] json = new byte[0];\n String res;\n json = sendCommand(\"format\");\n res = _json_get_key(json, \"res\");\n //noinspection DoubleNegation\n if (!(res.equals(\"ok\"))) { throw new YAPI_Exception( YAPI.IO_ERROR, \"format failed\");}\n return YAPI.SUCCESS;\n }", "public boolean hasFormat() {\r\n return hasFormat;\r\n }", "protected void initFile(String id) throws FormatException, IOException {\n super.initFile(id);\n in = new RandomAccessInputStream(id);\n\n String endian = in.readString(2);\n boolean little = endian.equals(\"II\");\n in.order(little);\n\n in.seek(98);\n int seriesCount = in.readInt();\n\n in.seek(192);\n while (in.read() == 0);\n String description = in.readCString();\n addGlobalMeta(\"Description\", description);\n\n while (in.readInt() == 0);\n\n long fp = in.getFilePointer();\n if ((fp % 2) == 0) fp -= 4;\n else fp--;\n\n offsets = new long[seriesCount];\n core = new CoreMetadata[seriesCount];\n for (int i=0; i<seriesCount; i++) {\n in.seek(fp + i*256);\n core[i] = new CoreMetadata();\n core[i].littleEndian = little;\n core[i].sizeX = in.readInt();\n core[i].sizeY = in.readInt();\n int numBits = in.readInt();\n core[i].sizeC = in.readInt();\n core[i].sizeZ = in.readInt();\n core[i].sizeT = in.readInt();\n\n core[i].imageCount = core[i].sizeZ * core[i].sizeC * core[i].sizeT;\n int nBytes = numBits / 8;\n core[i].pixelType =\n FormatTools.pixelTypeFromBytes(nBytes, false, nBytes == 8);\n\n core[i].dimensionOrder = \"XYCZT\";\n core[i].rgb = false;\n\n in.skipBytes(4);\n\n long pointer = in.getFilePointer();\n String name = in.readCString();\n\n if (i == 0) {\n in.skipBytes((int) (92 - in.getFilePointer() + pointer));\n while (true) {\n int check = in.readInt();\n if (check > in.getFilePointer()) {\n offsets[i] = (long) check + LUT_SIZE;\n break;\n }\n in.skipBytes(92);\n }\n }\n else {\n offsets[i] = offsets[i - 1] + core[i - 1].sizeX * core[i - 1].sizeY *\n core[i - 1].imageCount *\n FormatTools.getBytesPerPixel(core[i - 1].pixelType);\n }\n offsets[i] += 352;\n in.seek(offsets[i]);\n while (in.getFilePointer() + 116 < in.length() && in.read() == 3 &&\n in.read() == 37)\n {\n in.skipBytes(114);\n offsets[i] = in.getFilePointer();\n }\n in.seek(in.getFilePointer() - 1);\n byte[] buf = new byte[3 * 1024 * 1024];\n int n = in.read(buf, 0, 1);\n boolean found = false;\n while (!found && in.getFilePointer() < in.length()) {\n n += in.read(buf, 1, buf.length - 1);\n for (int q=0; q<buf.length - 1; q++) {\n if ((buf[q] & 0xff) == 192 && (buf[q + 1] & 0xff) == 46) {\n offsets[i] = in.getFilePointer() - n + q;\n found = true;\n break;\n }\n }\n buf[0] = buf[buf.length - 1];\n n = 1;\n }\n if (found) offsets[i] += 16063;\n if (i == offsets.length - 1 && !compressed && i > 0) {\n offsets[i] = (int) (in.length() -\n (core[i].sizeX * core[i].sizeY * core[i].imageCount * (numBits / 8)));\n }\n }\n\n MetadataStore store = makeFilterMetadata();\n MetadataTools.populatePixels(store, this);\n MetadataTools.setDefaultCreationDate(store, id, 0);\n }", "@Override\n public String toString() {\n return fileEmpty(); //when file is empty\n }", "public int getFormat()\n {\n return format;\n }", "public synchronized boolean fempty() {\n\t\treturn table.isEmpty();//if the file table is empty, return to call the starting format\n\t}", "@Override\n public String getFormatName() throws IOException {\n return input == null? myDefaultFormat.getName() : getInfo().getFormat().getName();\n }", "public String getReadFileExtension(int formatIndex);", "public void saveStage1(String format)\n {\n super.saveStage1(format);\n try{\n writer.write(\"CB336\");\n writer.write(\"\\t\");\n writer.write(checkValue(input.get(33).getText()));\n writer.write(\"\\t\");\n writer.write(checkValue(input.get(34).getText()));\n writer.write(\"\\t\");\n writer.write(checkValue(input.get(35).getText()));\n writer.write(\"\\r\\n\");\n\n writer.write(\"CB714\");\n writer.write(\"\\t\");\n writer.write(checkValue(input.get(36).getText()));\n writer.write(\"\\t\");\n writer.write(checkValue(input.get(37).getText()));\n writer.write(\"\\t\");\n writer.write(checkValue(input.get(38).getText()));\n writer.write(\"\\t\");\n writer.write(checkValue(input.get(39).getText())); \n writer.close();\n }\n catch(IOException e){\n JOptionPane.showMessageDialog(null, \"Error in exporting file\", \"Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n }", "public int getFormat ()\n {\n return this.format;\n }", "private String inFormat() {\n File f = cfg.getReadFromFile();\n if (f != null) {\n return \" in format file \" + f.getPath();\n }\n return \" in format \" + StringUtils.defaultString(cfg.getName(), \"(unnamed)\");\n }", "public String getChangeFileBeginFormat() {\r\n \t\treturn properties.getProperty(KEY_CHANGE_FILE_BEGIN_FORMAT);\r\n \t}", "int format04(String line, int lineCount) {\n\n // local variables\n String splDattim = \"\";\n String tmpStationId = \"\";\n\n // is this the first record in the file?\n checkFirstRecord(code, lineCount);\n\n // code 04 must be preceded by a code 03 or another code 04\n if ((prevCode != 3) && (prevCode != 4)) {\n outputError(lineCount + \" - Fatal - \" +\n \"Code 04 not preceded by code 03\");\n } // if (!\"03\".equals(prevCode))\n\n // get the data off the data line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n int subCode = 0;\n if (t.hasMoreTokens()) subCode = toInteger(t.nextToken());\n if (t.hasMoreTokens()) tmpStationId = toString(t.nextToken());\n // station Id must match that of previous station record\n checkStationId(lineCount, tmpStationId);\n\n switch (subCode) {\n\n //01 a2 format code always \"04\" n/a\n //02 a1 format subCode Always '1' n/a\n //03 a12 stnid station id: composed as for format 03 weather\n //04 a5 subdes substation descriptor e.g. CTD, XBT watphy\n //05 i6 spltim hhmmss UCT, e.g. 142134 watphy\n //06 f6.1 atmosph_pres in mBars weather\n //07 a5 cloud weather\n //08 f4.1 drybulb in deg C weather\n //09 f4.1 surface temp in deg C weather\n //10 a10 nav_equip_type weather\n case 1: if (t.hasMoreTokens())\n subdes = toString(t.nextToken().toUpperCase());\n switch (dataType) { // - moved to loadData\n case CURRENTS: currents.setSubdes(subdes); break;\n case SEDIMENT: sedphy.setSubdes(subdes); break;\n case WATER: watphy.setSubdes(subdes); break;\n case WATERWOD: watphy.setSubdes(subdes); break;\n } // switch (dataType)\n if (t.hasMoreTokens()) splDattim = toString(t.nextToken());\n if (t.hasMoreTokens())\n weather.setAtmosphPres(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) weather.setCloud(toString(t.nextToken()));\n if (t.hasMoreTokens()) weather.setDrybulb(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) weather.setSurfaceTmp(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) weather.setNavEquipType(toString(t.nextToken()));\n break;\n //01 a2 format code always '04' n/a\n //02 a1 format subCode Always '2' n/a\n //03 a12 stnid station id: composed as for format 03 weather\n //04 i3 swell dir in degrees TN weather\n //05 i2 swell height in m weather\n //06 i2 swell period in s weather\n //07 i2 transparency coded weather\n //08 a2 visibility code coded weather\n //09 i2 water colour coded weather\n //10 f4.1 wetbulb in deg C weather\n //11 i3 wind direction in degrees TN weather\n //12 f4.1 wind speed in m/s weather\n //13 a2 weather code weather\n case 2: if (t.hasMoreTokens()) weather.setSwellDir(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) weather.setSwellHeight(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) weather.setSwellPeriod(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) weather.setTransparency(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) weather.setVisCode(toString(t.nextToken()));\n if (t.hasMoreTokens()) weather.setWaterColor(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) weather.setWetbulb(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) weather.setWindDir(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) weather.setWindSpeed(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) weather.setWeatherCode(toString(t.nextToken()));\n break;\n } // switch (subCode)\n\n\n // time is on record with subCode = 1\n if ((subCode == 1) && !\"\".equals(splDattim)) {\n String seconds = \"00\";\n if (splDattim.length() == 6) {\n seconds = splDattim.substring(4);\n } // if (splDattim.length() == 6)\n startDateTime = startDate + \" \" + splDattim.substring(0,2) +\n \":\" + splDattim.substring(2,4) + \":\" + seconds + \".0\";\n if (dbg) System.out.println(\"<br>format04: startDateTime = \" + startDateTime);\n checkForValidDate(startDateTime);\n\n // convert to UTC?\n if (\"sast\".equals(timeZone)) {\n GregorianCalendar calDate = new GregorianCalendar();\n calDate.setTime(Timestamp.valueOf(startDateTime));\n calDate.add(Calendar.HOUR, -2);\n SimpleDateFormat formatter =\n new SimpleDateFormat (\"yyyy-MM-dd HH:mm:ss.s\");\n startDateTime = formatter.format(calDate.getTime());\n } // if ('sast'.equals(timeZone))\n if (dbg4) System.out.println(\"<br>format04: startDateTime = \" + startDateTime);\n //watphy.setSpldattim(startDateTime); //- moved to loadData\n switch (dataType) {\n case CURRENTS: currents.setSpldattim(startDateTime); break;\n case SEDIMENT: sedphy.setSpldattim(startDateTime); break;\n case WATER: watphy.setSpldattim(startDateTime); break;\n case WATERWOD: watphy.setSpldattim(startDateTime); break;\n } // switch (dataType)\n } // if ((subCode == 1) && !\"\".equals(splDattim))\n\n if (dbg) System.out.println(\"<br>format04: weather = \" + weather);\n if (dbg) {\n System.out.print(\"<br>format04: \");\n switch (dataType) {\n case CURRENTS: System.out.println(\"currents = \" + currents); break;\n case SEDIMENT: System.out.println(\"sedphy = \" + sedphy); break;\n case WATER: System.out.println(\"watphy = \" + watphy); break;\n case WATERWOD: System.out.println(\"watphy = \" + watphy); break;\n } // switch (dataType)\n } // if (dbg)\n\n return subCode;\n\n }", "public\tint\tgetTypeFormatId()\t{ return StoredFormatIds.BITIMPL_V01_ID; }", "private String fileEmpty() {\n return \" Task file is empty!\";\n }", "protected Format doGetFormat()\n {\n return null;\n }", "public FileFormatException() {\r\n super();\r\n }", "Object getFormat();", "public String getFileFormat()\r\n\t{\r\n\t\treturn this.getSerializer().getFileFormat();\r\n\t}", "public void InvalidFormat();", "public synchronized int format(int mf)\n {\n maxFiles = mf;\n // Add the string '/' to the String vector\n files.clear();\n files.add(new String(\"/\"));\n\n // Add an empty string for 1 to maxFiles\n for (int i = 1; i < maxFiles; i++)\n {\n files.add(new String(\"\"));\n }\n\n inode.flags |= FileSystem.ACCESS_READWRITE;\n\n return 0;\n }", "public String getWriteFormatDescription(int formatIndex);", "public String getFormat() {\n/* 206 */ return getValue(\"format\");\n/* */ }", "com.google.protobuf.ByteString\n getFormatBytes();", "protected void parseFlvSequenceHeader(byte[] data) throws UnsupportedOperationException, IOException {\n // Sound format: first 4 bits\n final int soundFormatInt = (data[0] >>> 4) & 0x0f;\n try {\n audioFormat = AudioFormat.valueOf(soundFormatInt);\n } catch (IllegalArgumentException ex) {\n throw new UnsupportedOperationException(\"Sound format not supported: \" + soundFormatInt);\n }\n switch (audioFormat) {\n case AAC:\n delegateWriter = new AacWriter(out);\n break;\n case MP3:\n delegateWriter = new Mp3Writer(out);\n break;\n default:\n throw new UnsupportedOperationException(\"Sound format not supported: \" + audioFormat);\n }\n }", "public String getReadFormatDescription(int formatIndex);", "@Override\r\n public OwFormat getFormat()\r\n {\n return null;\r\n }", "@Test\n public void testCorrupt0LengthHFile() throws IOException {\n Path f = new Path(TestHFile.ROOT_DIR, testName.getMethodName());\n FSDataOutputStream fsos = TestHFile.fs.create(f);\n fsos.close();\n try {\n Reader r = HFile.createReader(TestHFile.fs, f, TestHFile.cacheConf, true, TestHFile.conf);\n } catch (CorruptHFileException che) {\n // Expected failure\n return;\n }\n Assert.fail(\"Should have thrown exception\");\n }", "public String getFormattedFileContents ();", "private void checkAudioFormat(InputStream s) throws JavaLayerException\r\n {\r\n try\r\n {\r\n /*String[][] sm_aEncodings =\r\n {\r\n {\r\n \"MpegEncoding.MPEG2L1\", \"MpegEncoding.MPEG2L2\", \"MpegEncoding.MPEG2L3\"}\r\n ,\r\n {\r\n \"MpegEncoding.MPEG1L1\", \"MpegEncoding.MPEG1L2\", \"MpegEncoding.MPEG1L3\"}\r\n ,\r\n {\r\n \"MpegEncoding.MPEG2DOT5L1\", \"MpegEncoding.MPEG2DOT5L2\", \"MpegEncoding.MPEG2DOT5L3\"}\r\n ,\r\n\r\n };*/\r\n\r\n Bitstream m_bitstream = new Bitstream(s);\r\n Header m_header = m_bitstream.readFrame();\r\n // nVersion = 0 => MPEG2-LSF (Including MPEG2.5), nVersion = 1 => MPEG1\r\n int nVersion = m_header.version();\r\n int nLayer = m_header.layer();\r\n nLayer = m_header.layer();\r\n //int nSFIndex = m_header.sample_frequency();\r\n //int nMode = m_header.mode();\r\n int FrameLength = m_header.calculate_framesize();\r\n if (FrameLength < 0) throw new JavaLayerException(\"not a MPEG stream: invalid framelength\");\r\n //int nFrequency = m_header.frequency();\r\n float FrameRate = (float) ( (1.0 / (m_header.ms_per_frame())) * 1000.0);\r\n if (FrameRate < 0) throw new JavaLayerException(\"not a MPEG stream: invalid framerate\");\r\n int BitRate = Header.bitrates[nVersion][nLayer - 1][m_header.bitrate_index()];\r\n if (BitRate <= 0) throw new JavaLayerException(\"not a MPEG stream: invalid bitrate\");\r\n int nHeader = m_header.getSyncHeader();\r\n //String encoding = sm_aEncodings[nVersion][nLayer - 1];\r\n int cVersion = (nHeader >> 19) & 0x3;\r\n if (cVersion == 1) throw new JavaLayerException(\"not a MPEG stream: wrong version\");\r\n int cSFIndex = (nHeader >> 10) & 0x3;\r\n if (cSFIndex == 3) throw new JavaLayerException(\"not a MPEG stream: wrong sampling rate\");\r\n } catch (Exception e)\r\n {\r\n throw new JavaLayerException(e.getMessage());\r\n }\r\n }", "@Test\n public void testMissingOptionsTemplate() throws IOException {\n\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n DataOutputStream out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(1); // count\n out.writeInt(10); // sys_uptime\n out.writeInt(20); // unix_secs\n out.writeInt(1); // package_sequence\n out.writeInt(20); // source_id\n\n // Options data record set\n out.writeShort(260); // flowset_id == missing template\n out.writeShort(8); // length\n\n // Record\n out.writeShort(7);\n out.writeShort(765);\n\n List<TSDRLogRecord> records = parseRecords(bos.toByteArray());\n assertEquals(0, records.size());\n\n // Second packet - missing template\n\n bos = new ByteArrayOutputStream();\n out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(1); // count\n out.writeInt(30); // sys_uptime\n out.writeInt(40); // unix_secs\n out.writeInt(2); // package_sequence\n out.writeInt(20); // source_id\n\n // Options template\n out.writeShort(1); // flowset_id == 1\n out.writeShort(24); // length\n out.writeShort(260); // template_id\n out.writeShort(4); // Scope length\n out.writeShort(4); // Option length\n out.writeShort(4); // Scope field 1 type - \"Cache\"\n out.writeShort(2); // Scope field 1 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(2); // Option field 1 length\n\n assertEquals(0, parseRecords(bos.toByteArray()).size());\n\n assertEquals(1, records.size());\n Map<String, String> attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(20L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"10\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"1\", attrs.remove(\"package_sequence\"));\n assertEquals(\"20\", attrs.remove(\"source_id\"));\n assertEquals(\"765\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"Options record for Cache 7\", records.get(0).getRecordFullText());\n }", "protected int getFMT() {\n\t\treturn this.itemCount;\n\t}", "@ApiModelProperty(required = true, value = \"The file type of the file.\")\n public String getFormat() {\n return format;\n }", "public java.lang.Byte getNumVersionFormato() {\n\t\treturn numVersionFormato;\n\t}", "public\tint\tgetTypeFormatId()\t{ return StoredFormatIds.FORMATABLE_ARRAY_HOLDER_V01_ID; }", "private static void analyze(String path) throws IOException {\n\n\t\ttry(DataInputStream reader = new DataInputStream(new BufferedInputStream(new FileInputStream(path)))) {\n\t\t\tHeader header = new Header(ByteBuffer.wrap(reader.readNBytes(512)));\n\t\t\tSystem.out.println(header);\n\n\t\t\tint sensorModelCount = 0;\n\t\t\tint timeModelCount = 0;\n\t\t\tint dataBlockCount = 0;\n\n\t\t\tshort lastMark = 0;\n\t\t\tint count = 0;\n\n\t\t\twhile(reader.available() > 0) {\n\t\t\t\tshort mark = reader.readShort();\n\t\t\t\tswitch (mark) {\n\t\t\t\t\tcase 0x5555 -> {\n\t\t\t\t\t\tdataBlockCount++;\n\t\t\t\t\t\tint size = reader.readInt();\n\t\t\t\t\t\treader.skipBytes(size);\n\t\t\t\t\t\tif(lastMark != mark) {\n\t\t\t\t\t\t\tSystem.out.println(\"DataBlock (\" + size + \" bytes) x\" + count);\n\t\t\t\t\t\t\tcount = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse count++;\n\t\t\t\t\t\tlastMark = mark;\n\t\t\t\t\t}\n\t\t\t\t\tcase 0x6660 -> {\n\t\t\t\t\t\ttimeModelCount++;\n\t\t\t\t\t\tInstant instant = Instant.ofEpochMilli(reader.readLong());\n\t\t\t\t\t\tPeriod period = Period.of(reader.readShort(), reader.readShort());\n\t\t\t\t\t\tif(lastMark != mark) {\n\t\t\t\t\t\t\tSystem.out.println(\"\\nTimeModel (\" + instant + \", \" + period + \")\");\n\t\t\t\t\t\t\tcount = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse count++;\n\t\t\t\t\t\tlastMark = mark;\n\t\t\t\t\t}\n\t\t\t\t\tcase 0x6661 -> {\n\t\t\t\t\t\tsensorModelCount++;\n\t\t\t\t\t\tString measurements = new String(reader.readNBytes(reader.readInt())).replace(\"\\n\", \", \");\n\t\t\t\t\t\tif(lastMark != mark) {\n\t\t\t\t\t\t\tSystem.out.println(\"SensorModel: \" + measurements);\n\t\t\t\t\t\t\tcount = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse count++;\n\t\t\t\t\t\tlastMark = mark;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"TimeModel count = \" + timeModelCount);\n\t\t\tSystem.out.println(\"SensorModel count = \" + sensorModelCount);\n\t\t\tSystem.out.println(\"Data blocks count = \" + dataBlockCount);\n\t\t}\n\t}", "public Object readObject(File file, int format) throws IOException, FileNotFoundException;", "@Override\n\t\tpublic int describeContents() {\n\t\t\treturn 0;\n\t\t}", "public String getWriteFileExtension(int formatIndex);", "public boolean isSetFormat()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FORMAT$10) != 0;\n }\n }", "public int getSizeofUninitializedData()\n throws IOException, EndOfStreamException\n {\n return\n peFile_.readInt32(relpos(Offsets.SIZE_OF_UNINITIALIZED_DATA.position));\n }", "@Override\n\t\t\tpublic int describeContents() {\n\t\t\t\treturn 0;\n\t\t\t}", "protected void initFile(String id) throws FormatException, IOException {\n super.initFile(id);\n in = new RandomAccessFile(id, \"r\");\n \n // initialize an array containing tag offsets, so we can\n // use an O(1) search instead of O(n) later.\n // Also determine whether we will be reading color or grayscale\n // images\n \n //in.seek(0);\n byte[] toRead = new byte[4];\n in.read(toRead);\n long order = batoi(toRead); // byte ordering\n little = toRead[2] != 0xff || toRead[3] != 0xff;\n \n toRead = new byte[4];\n Vector v = new Vector(); // a temp vector containing offsets.\n \n // Get first offset.\n in.seek(16);\n in.read(toRead);\n int nextOffset = batoi(toRead);\n int nextOffsetTemp;\n \n boolean first = true;\n while(nextOffset != 0) {\n in.seek(nextOffset + 4);\n in.read(toRead);\n // get next tag, but still need this one\n nextOffsetTemp = batoi(toRead);\n in.read(toRead);\n if ((new String(toRead)).equals(\"PICT\")) {\n boolean ok = true;\n if (first) {\n // ignore first image if it is called \"Original Image\" (pure white)\n first = false;\n in.skipBytes(47);\n byte[] layerNameBytes = new byte[127];\n in.read(layerNameBytes);\n String layerName = new String(layerNameBytes);\n if (layerName.startsWith(\"Original Image\")) ok = false;\n }\n if (ok) v.add(new Integer(nextOffset)); // add THIS tag offset\n }\n if (nextOffset == nextOffsetTemp) break;\n nextOffset = nextOffsetTemp;\n }\n \n in.seek(((Integer) v.firstElement()).intValue());\n \n // create and populate the array of offsets from the vector\n numBlocks = v.size();\n offsets = new int[numBlocks];\n for (int i = 0; i < numBlocks; i++) {\n offsets[i] = ((Integer) v.get(i)).intValue();\n }\n \n // populate the imageTypes that the file uses\n toRead = new byte[2];\n imageType = new int[numBlocks];\n for (int i = 0; i < numBlocks; i++) {\n in.seek(offsets[i]);\n in.skipBytes(40);\n in.read(toRead);\n imageType[i] = batoi(toRead);\n }\n \n initMetadata();\n }", "void format05(String line, int lineCount) {\n\n float spldepDifference = 0f;\n\n // is this the first record in the file?\n checkFirstRecord(code, lineCount);\n\n String tmpStationId = \"\";\n String tmpSubdes = \"\";\n float tmpSpldep = -9999f;\n\n // get the data off the line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n\n int subCode = 0;\n if (dataType == WATERWOD) {\n if (t.hasMoreTokens()) subCode = toInteger(t.nextToken());\n switch (subCode) {\n case 1: if (t.hasMoreTokens()) t.nextToken(); //watProfQC.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) //set profile temperature quality flag\n watProfQC.setTemperature((toInteger(t.nextToken())));\n if (t.hasMoreTokens()) //set profile salinity quality flag\n watProfQC.setSalinity((toInteger(t.nextToken())));\n if (t.hasMoreTokens()) //set profile disoxygen quality flag\n watProfQC.setDisoxygen((toInteger(t.nextToken())));\n break;\n\n } // switch (subCode)\n } // if (dataType = WATERWOD)\n if (dbg) System.out.println(\"format05: subCode = \" + subCode);\n\n if (dataType == CURRENTS) {\n\n //01 a2 format code always \"05\" n/a\n //02 a12 stnid station id: composed as for format 03 currents\n //03 f7.2 sample depth in m currents\n //04 i3 current dir in deg TN currents\n //05 f5.2 current speed in m/s currents\n\n if (t.hasMoreTokens()) currents.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) currents.setSpldep(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) currents.setCurrentDir(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) currents.setCurrentSpeed(toFloat(t.nextToken(), 1f));\n\n tmpStationId = currents.getStationId(\"\");\n tmpSubdes = currents.getSubdes(\"\");\n tmpSpldep = currents.getSpldep();\n\n } else if (dataType == SEDIMENT) {\n\n // This is a new sub-station record - set flags for code 06 to 13\n // to false\n code06Count = 0;\n code07Count = 0;\n //code08Count = 0;\n code09Count = 0;\n //code10Count = 0;\n code11Count = 0;\n code12Count = 0;\n code13Count = 0;\n\n //01 a2 format code always “05\" n/a\n //02 a12 stnid station id: composed as for format 03 sedphy\n //03 f7.2 sample depth in m sedphy\n //04 f6.3 cod mg O2 / litre sedphy\n //05 f8.4 dwf sedphy\n //06 i5 meanpz µns sedphy\n //07 i5 medipz µns sedphy\n //08 f8.3 kurt sedphy\n //09 f8.3 skew sedphy\n\n if (t.hasMoreTokens()) sedphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) sedphy.setSpldep(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setCod(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setDwf(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setMeanpz(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) sedphy.setMedipz(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) sedphy.setKurt(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setSkew(toFloat(t.nextToken(), 1f));\n\n tmpStationId = sedphy.getStationId(\"\");\n tmpSubdes = sedphy.getSubdes(\"\");\n tmpSpldep = sedphy.getSpldep();\n if (dbg) System.out.println(\"<br>format05: subdes = \" + subdes +\n \", sedphy.getSubdes() = \" + sedphy.getSubdes(\"\"));\n if (dbg) System.out.println(\"<br>format05: tmpSpldep = \" + tmpSpldep);\n\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n\n // This is a new sub-station record - set flags for code 06 to 13\n // to false\n code06Count = 0;\n code07Count = 0;\n code08Count = 0;\n code09Count = 0;\n code10Count = 0;\n code11Count = 0;\n code12Count = 0;\n code13Count = 0;\n\n // subCode = 1 - ignore\n // subCode = 0 (WATER) or subCode = 2 (WATERWOD)\n if (subCode != 1) {\n //01 a2 format code always \"05\" n/a\n //02 a12 stnid station id: composed as for format 03 watphy\n //03 f7.2 sample depth in m watphy\n //04 f5.2 temperature in deg C watphy\n //05 f6.3 salinity in parts per thousand (?) watphy\n //06 f5.2 dis oxygen in ml / litre watphy\n\n if (t.hasMoreTokens()) watphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) watphy.setSpldep(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set spldep quality flag\n watQC.setSpldep((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watphy.setTemperature(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set temperature quality flag\n watQC.setTemperature((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watphy.setSalinity(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set salinity quality flag\n watQC.setSalinity((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watphy.setDisoxygen(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set disoxygen quality flag\n watQC.setDisoxygen((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watphy.setTurbidity(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watphy.setPressure(toFloat(t.nextToken(), 1f)); // ub09\n if (t.hasMoreTokens()) watphy.setFluorescence(toFloat(t.nextToken(), 1f)); // ub09\n\n if (watphy.getSpldep() == Tables.FLOATNULL) { // ub11\n if ((watphy.getPressure() != Tables.FLOATNULL) && // ub11\n (station.getLatitude() != Tables.FLOATNULL)) { // ub11\n watphy.setSpldep( // ub11\n calcDepth(watphy.getPressure(), // ub11\n station.getLatitude())); // ub11\n } // if ((watphy.getPressure() != Tables.FLOATNULL) && .// ub11\n } // if (watphy.getSpldep() == Tables.FLOATNULL) // ub11\n\n tmpStationId = watphy.getStationId(\"\");\n tmpSubdes = watphy.getSubdes(\"\");\n tmpSpldep = watphy.getSpldep();\n if (dbg) System.out.println(\"<br>format05: subdes = \" + subdes +\n \", watphy.getSubdes() = \" + watphy.getSubdes(\"\"));\n } // if (subCode != 1)\n\n } // if (dataType == CURRENTS)\n\n // subCode = 1 - ignore\n // subCode = 0 (WATER/CURRENTS/SEDIMENT) or subCode = 2 (WATERWOD)\n if (subCode != 1) {\n // station Id must match that of previous station record\n checkStationId(lineCount, tmpStationId);\n\n // samples must be at least 0.5 metre deeper than the previous.\n // If this is not the case, reject the sample.\n // Only valid for CTD-type data, not for XBT or currents\n if (\"CTD\".equals(tmpSubdes)) {\n if (\"U\".equals(upIndicator)) {\n spldepDifference = prevDepth - tmpSpldep;\n } else {\n spldepDifference = tmpSpldep - prevDepth;\n } // if (\"U\".equals(upIndicator))\n } else {\n spldepDifference = 1f;\n } // if (\"CTD\".equals(tmpSubdes))\n\n if ((spldepDifference < 0.5f) && (tmpSpldep != 0f) &&\n (prevDepth != 0f)) {\n rejectDepth = true;\n stationSampleRejectCount++;\n sampleRejectCount++;\n\n if ((dataType == WATER) || (dataType == WATERWOD)) {\n watchem1 = new MrnWatchem1();\n watchem1 = new MrnWatchem1();\n watchl = new MrnWatchl();\n watnut = new MrnWatnut();\n watpol1 = new MrnWatpol1();\n watpol2 = new MrnWatpol2();\n } // if ((dataType == WATER) || (dataType == WATERWOD))\n if (dataType == WATERWOD) {\n watQC = new MrnWatqc();\n } // if (dataType == WATERWOD)\n } else {\n rejectDepth = false;\n prevDepth = tmpSpldep;\n\n // update the minimum and maximum depth\n if (tmpSpldep < depthMin) {\n depthMin = tmpSpldep;\n } // if (tmpSpldep < depthMin)\n if (tmpSpldep > depthMax) {\n depthMax = tmpSpldep;\n } // if (tmpSpldep < depthMin)\n\n } // if ((spldepDifference < 0.5f) &&\n\n // update the counters\n sampleCount++;\n stationSampleCount++;\n\n if (dbg) System.out.println(\"<br>format05: depthMax = \" + depthMax);\n // keep the maximum depth for the station\n station.setMaxSpldep(depthMax);\n //if (dbg) System.out.println(\"format05: station = \" + station);\n if (dbg) {\n if (dataType == CURRENTS) {\n System.out.println(\"<br>format05: currents = \" + currents);\n } else if (dataType == SEDIMENT) {\n System.out.println(\"<br>format05: sedphy = \" + sedphy);\n } else if (dataType == WATER) {\n System.out.println(\"<br>format05: watphy = \" + watphy);\n } else if (dataType == WATERWOD) {\n System.out.println(\"format05: watProfQC = \" + watProfQC);\n System.out.println(\"format05: watQC = \" + watQC);\n System.out.println(\"format05: watphy = \" + watphy);\n } // if (dataType == CURRENTS)\n } // if (dbg)\n\n } // if (subCode != 1)\n\n }", "private void parseValidMediaFile(File f) throws UnsupportedAudioFileException, IOException\n\t{\n\t\tmediaFile = f;\n\t\tfileName = f.getName();\n\t\tif (isVideo)\n\t\t{\n\t\t\t// FUTURE Add code for determining duration of a video file.\n\t\t\tthrow new UnsupportedOperationException(\"Not supported yet.\");\n\t\t}\n\t\tif (isAudio)\n\t\t{\n\t\t\tAudioInputStream audioInputStream = AudioSystem.getAudioInputStream(f);\n\t\t\tAudioFormat format = audioInputStream.getFormat();\n\t\t\tlong audioFileLength = f.length();\n\t\t\tint frameSize = format.getFrameSize();\n\t\t\tfloat frameRate = format.getFrameRate();\n\t\t\tfloat durationInSeconds = (audioFileLength / (frameSize * frameRate));\n\t\t\tfileLength = (int) Math.ceil(durationInSeconds);\n\t\t\tplaybackLength = fileLength;\n\t\t\tstartTime = 0;\n\t\t}\n\t\tif (isImage)\n\t\t{\n\t\t\tfileLength = 1;\n\t\t\tplaybackLength = fileLength;\n\t\t\tstartTime = 0;\n\t\t}\n\t}", "private boolean parseZeroesSection() {\n if (parseDoubleColon()) {\n zeroesSectionStart = hextetCount;\n return true;\n }\n return false;\n }", "void format01(String line, int lineCount) {\n\n // only 1 survey is allowed per load file - max of 9 code 01 lines\n code01Count++;\n if (prevCode > 1) {\n outputError((lineCount-1) + \" - Fatal - \" +\n \"More than 1 survey in data file : \" + code01Count);\n } // if (prevCode != 1)\n\n // get the data from the line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n int subCode = 0;\n if (t.hasMoreTokens()) subCode = toInteger(t.nextToken());\n switch (subCode) {\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '1' n/a\n //03 a9 survey_id e.g. '1997/0001' survey\n //04 a10 planam Platform name inventory\n case 1: if (t.hasMoreTokens()) survey.setSurveyId(t.nextToken());\n if (t.hasMoreTokens()) {\n dummy = t.nextToken(); //ub08\n while (t.hasMoreTokens()) dummy += \" \" + t.nextToken(); //ub08\n platformName = dummy;\n if (dummy.length() > 10) dummy = dummy.substring(0, 10);//ub06\n survey.setPlanam(dummy); //ub06\n if (dbg) System.out.println(\"planam = \" + platformName + \" \" + survey.getPlanam(\"\"));\n } // if (t.hasMoreTokens())\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '2' n/a\n //03 a15 expnam Expedition name, e.g. 'AJAXL2' survey\n case 2: if (t.hasMoreTokens()) {\n dummy = t.nextToken(); //ub08\n while (t.hasMoreTokens()) dummy += \" \" + t.nextToken(); //ub08\n expeditionName = dummy;\n if (dummy.length() > 10) dummy = dummy.substring(0, 10);//ub06\n survey.setExpnam(dummy); //ub06\n if (dbg) System.out.println(\"expnam = \" + expeditionName + \" \" + survey.getExpnam(\"\"));\n } // if (t.hasMoreTokens())\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '3' n/a\n //03 a3 institute 3-letter Institute code, e.g. 'RIO' survey\n //04 a28 prjnam project name, e.g. 'HEAVYMETAL' survey\n case 3: survey.setInstitute(t.nextToken());\n if (t.hasMoreTokens()) {\n dummy = t.nextToken(); //ub08\n while (t.hasMoreTokens()) dummy += \" \" + t.nextToken(); //ub08\n projectName = dummy;\n if (dummy.length() > 10) dummy = dummy.substring(0, 10);//ub06\n survey.setPrjnam(dummy); //ub06\n if (dbg) System.out.println(\"prjnam = \" + projectName + \" \" + survey.getPrjnam(\"\"));\n } // if (t.hasMoreTokens())\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '4' n/a\n //03 a10 domain e.g. 'SURFZONE', 'DEEPSEA' survey\n // domain corrected by user in form\n //case 4: inventory.setDomain(toString(line.substring(5)));\n //case 4: if (!loadFlag) inventory.setDomain(toString(line.substring(5)));\n case 4: //if (!loadFlag) {\n if (t.hasMoreTokens()) {\n dummy = t.nextToken(); //ub08\n while (t.hasMoreTokens()) dummy += \" \" + t.nextToken(); //ub08\n if (dummy.length() > 10) dummy = dummy.substring(0, 10);//ub06\n inventory.setDomain(dummy); //ub06\n } // if (t.hasMoreTokens())\n //} // if (!loadFlag)\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '5' n/a\n //03 a10 arenam Area name, e.g. 'AGULHAS BK' survey\n // area name corrected by user in form\n //case 5: inventory.setAreaname(toString(line.substring(5)));\n //case 5: if (!loadFlag) inventory.setAreaname(toString(line.substring(5)));\n case 5: //if (!loadFlag) {\n if (t.hasMoreTokens()) {\n dummy = t.nextToken(); //ub08\n while (t.hasMoreTokens()) dummy += \" \" + t.nextToken(); //ub08\n if (dummy.length() > 20) dummy = dummy.substring(0, 20);//ub06\n inventory.setAreaname(dummy); //ub06\n } // if (t.hasMoreTokens())\n //} // if (!loadFlag)\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '6' n/a\n //04 a10 insitute e.g. 'World Ocean database' inventory\n case 6: //if (!loadFlag) { //ub03\n if (t.hasMoreTokens()) { //ub03\n instituteName = t.nextToken(); //ub03\n while (t.hasMoreTokens()) //ub03\n instituteName += \" \" + t.nextToken(); //ub03\n } // if (t.hasMoreTokens()) //ub03\n //} // if (!loadFlag) //ub03\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '7' n/a\n //04 a10 chief scientist inventory\n case 7: //if (!loadFlag) { //ub03\n if (t.hasMoreTokens()) { //ub03\n chiefScientist = t.nextToken(); //ub03\n while (t.hasMoreTokens()) //ub03\n chiefScientist += \" \" + t.nextToken(); //ub03\n } // if (t.hasMoreTokens()) //ub03\n //} // if (!loadFlag) //ub03\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '8' n/a\n //04 a10 country e.g. 'Germany' inventory\n case 8: //if (!loadFlag) { //ub03\n if (t.hasMoreTokens()) { //ub03\n countryName = t.nextToken(); //ub03\n while (t.hasMoreTokens()) //ub03\n countryName += \" \" + t.nextToken(); //ub03\n } // if (t.hasMoreTokens()) //ub03\n //} // if (!loadFlag) //ub03\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '8' n/a\n //04 a10 submitting scientist load log\n case 9: //if (!loadFlag) { //ub03\n if (t.hasMoreTokens()) { //ub03\n submitScientist = t.nextToken(); //ub03\n while (t.hasMoreTokens()) //ub03\n submitScientist += \" \" + t.nextToken(); //ub03\n } // if (t.hasMoreTokens()) //ub03\n //!} // if (!loadFlag) //ub03\n break;\n } // switch (subCode)\n\n //survey.setSurveyId(toString(line.substring(2,11)));\n //survey.setPlanam(toString(line.substring(11,21)));\n //survey.setExpnam(toString(line.substring(21,31)));\n //survey.setInstitute(toString(line.substring(31,34)));\n //survey.setPrjnam(toString(line.substring(34,44)));\n //if (!loadFlag) {\n // inventory.setAreaname(toString(line.substring(44,54))); // use as default to show on screen\n // inventory.setDomain(toString(line.substring(54,64))); // use as default to show on screen\n //} // if (!loadFlag)\n\n if (dbg) System.out.println(\"<br>format01: line = \" + line);\n if (dbg) System.out.println(\"<br>format01: subCode = \" + subCode);\n\n }", "String getFormat();", "String getFormat();", "String getFormat();", "public void superBlock() throws FileNotFoundException, IOException\n {\n \tByteBuffer buf = ByteBuffer.allocate(1024);\n \tbuf.order(ByteOrder.LITTLE_ENDIAN);\n \tbyte[] bytes = new byte[1024];\n f.seek(1024);\n \tf.read(bytes);\n \tbuf.put(bytes);\n\n \tmagicNum = buf.getShort(56);\n \ttotalInodes = buf.getInt(0);\n \ttotalBlocks = buf.getInt(4);\n \tblocksPerGroup = buf.getInt(32);\n \tinodesPerGroup = buf.getInt(40);\n \tsizeOfInode = buf.getInt(88);\n\n \tbyte[] stringLabel = new byte[16];\n \tbuf.position(120);\n buf.get(stringLabel);\n \tvolumeLabel = new String(stringLabel);\n\n System.out.println(\"Magic Number : \"+String.format(\"0x%04X\",magicNum));\n System.out.println(\"Total Inodes: \"+totalInodes);\n System.out.println(\"Total Blocks: \"+totalBlocks);\n System.out.println(\"Blocks per Group: \"+blocksPerGroup);\n System.out.println(\"Inodes per Group: \"+inodesPerGroup);\n System.out.println(\"Size Of each Inode in bytes: \"+sizeOfInode);\n System.out.println(\"Volume Label: \"+ volumeLabel+ \"\\n\");\n }", "private String descFormat() {\n File f = cfg.getReadFromFile();\n if (f != null) {\n return f.getPath();\n }\n return StringUtils.defaultString(cfg.getName(), \"(unnamed)\");\n }", "@Test\n\tpublic void testReadFileIntoStringNull() throws IOException {\n\t\tsfr = ss.createFileReader(\"non-existing-type\");\n\t\tString actualString = sfr.readFileIntoString(TEST_CLASS_LOCAL);\n\t\tassertNull(actualString);\n\t}", "private void initHeader(boolean newHeader) throws IOException {\n\n if (newHeader) writeHeader();\n /*\n if (rafShp.read() == -1) { \n //File is empty, write a new one (what else???)\n writeHeader();\n } \n */ \n readHeader();\n }", "@Override\r\n public String getMessage() {\r\n return ErrorMessage.STATUS_FORMATTING_IN_FILE_ERROR;\r\n }", "public byte getN_OF_FILE() throws CardException {\n\n if (!this.IC_ALREADY_SUBMIT) {\n this.SubmitIC();\n }\n\n //byte[] id = {(byte)0xFF, (byte)0x02};\n this.SelectFF02();\n\n byte n_of_file = this.__ReadRecord((byte)0, (byte)4)[2];\n System.out.println(\"Card contains \" + n_of_file + \" file.\");\n this.N_OF_FILE = n_of_file;\n return n_of_file;\n }", "public boolean isFormat() {\n\t\treturn isFormat;\n\t}", "@Test\n public void testIsFull() {\n System.out.println(\"isFull\");\n RecordFile instance = new RecordFile();\n \n String first = \"hello\";\n \n for(int i = 0; i < instance.compacity(); i++)\n {\n instance.write((first + i).getBytes(), i);\n }\n \n for(int i = 0; i < instance.compacity(); i++)\n {\n Assert.assertEquals(first + i, new String(instance.read(i)));\n }\n \n Assert.assertEquals(true, instance.isFull());\n \n instance.remove(0);\n \n Assert.assertEquals(false, instance.isFull());\n }", "@Test\n public void testMissingFlowsetTemplate() throws IOException {\n\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n DataOutputStream out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(2); // count\n out.writeInt(10); // sys_uptime\n out.writeInt(20); // unix_secs\n out.writeInt(1); // package_sequence\n out.writeInt(20); // source_id\n\n // Data flow set\n out.writeShort(256); // flowset_id == missing template\n out.writeShort(12); // length\n\n // Record 1\n out.writeInt(111);\n\n // Record 2\n out.writeInt(222);\n\n List<TSDRLogRecord> records1 = parseRecords(bos.toByteArray());\n assertEquals(0, records1.size());\n\n // Second packet - another data flow set with missing template plus a second template\n\n bos = new ByteArrayOutputStream();\n out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(2); // count\n out.writeInt(20); // sys_uptime\n out.writeInt(30); // unix_secs\n out.writeInt(2); // package_sequence\n out.writeInt(20); // source_id\n\n // Data flow set\n out.writeShort(256); // flowset_id == missing template\n out.writeShort(8); // length\n\n // Record\n out.writeInt(333);\n\n // Template flow set\n out.writeShort(0); // flowset_id == 0\n out.writeShort(12); // length\n\n // Template\n out.writeShort(257); // template_id\n out.writeShort(1); // field_count\n out.writeShort(1); // field 1 type - IN_BYTES\n out.writeShort(4); // field 1 length\n\n List<TSDRLogRecord> records2 = parseRecords(bos.toByteArray());\n assertEquals(0, records2.size());\n assertEquals(0, records1.size());\n\n // Third packet - third template\n\n bos = new ByteArrayOutputStream();\n out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(1); // count\n out.writeInt(35); // sys_uptime\n out.writeInt(45); // unix_secs\n out.writeInt(3); // package_sequence\n out.writeInt(20); // source_id\n\n // Template flow set\n out.writeShort(0); // flowset_id == 0\n out.writeShort(12); // length\n\n // Template\n out.writeShort(258); // template_id\n out.writeShort(1); // field_count\n out.writeShort(1); // field 1 type - PROTOCOL\n out.writeShort(1); // field 1 length\n\n assertEquals(0, parseRecords(bos.toByteArray()).size());\n assertEquals(0, records1.size());\n assertEquals(0, records2.size());\n\n // Fourth packet - data flowset for second template\n\n bos = new ByteArrayOutputStream();\n out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(1); // count\n out.writeInt(40); // sys_uptime\n out.writeInt(50); // unix_secs\n out.writeInt(4); // package_sequence\n out.writeInt(20); // source_id\n\n // Data flow set\n out.writeShort(257); // flowset_id == second template\n out.writeShort(8); // length\n\n // Record\n out.writeInt(999);\n\n List<TSDRLogRecord> records3 = parseRecords(bos.toByteArray());\n assertEquals(1, records3.size());\n\n Map<String, String> attrs = toMap(records3.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(50L * 1000), records3.get(0).getTimeStamp());\n assertEquals(\"40\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"4\", attrs.remove(\"package_sequence\"));\n assertEquals(\"20\", attrs.remove(\"source_id\"));\n assertEquals(\"999\", attrs.remove(\"IN_BYTES\"));\n\n // Fifth packet - missing template\n\n bos = new ByteArrayOutputStream();\n out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(1); // count\n out.writeInt(5); // sys_uptime\n out.writeInt(5); // unix_secs\n out.writeInt(5); // package_sequence\n out.writeInt(20); // source_id\n\n // Template flow set\n out.writeShort(0); // flowset_id == 0\n out.writeShort(12); // length\n\n // Template\n out.writeShort(256); // template_id\n out.writeShort(1); // field_count\n out.writeShort(2); // field 1 type - IN_PKTS\n out.writeShort(4); // field 1 length\n\n assertEquals(0, parseRecords(bos.toByteArray()).size());\n\n assertEquals(2, records1.size());\n attrs = toMap(records1.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(20L * 1000), records1.get(0).getTimeStamp());\n assertEquals(\"10\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"1\", attrs.remove(\"package_sequence\"));\n assertEquals(\"20\", attrs.remove(\"source_id\"));\n assertEquals(\"111\", attrs.remove(\"IN_PKTS\"));\n\n attrs = toMap(records1.get(1).getRecordAttributes());\n assertEquals(Long.valueOf(20L * 1000), records1.get(1).getTimeStamp());\n assertEquals(\"10\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"1\", attrs.remove(\"package_sequence\"));\n assertEquals(\"20\", attrs.remove(\"source_id\"));\n assertEquals(\"222\", attrs.remove(\"IN_PKTS\"));\n\n assertEquals(1, records2.size());\n attrs = toMap(records2.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(30L * 1000), records2.get(0).getTimeStamp());\n assertEquals(\"20\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"2\", attrs.remove(\"package_sequence\"));\n assertEquals(\"20\", attrs.remove(\"source_id\"));\n assertEquals(\"333\", attrs.remove(\"IN_PKTS\"));\n }", "String prepareFile();", "public boolean hasFileName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public String getFormatCode() {\n if (format == null) return \"MP4\";\n switch(format) {\n case \"Windows Media\": return \"WMV\";\n case \"Flash Video\": return \"FLV\";\n case \"MPEG-4\": return \"MP4\";\n case \"Matroska\": return \"MKV\";\n case \"AVI\": return \"AVI\";\n default: return \"MP4\";\n }\n }", "public void writeHeader() throws IOException, FileNotFoundException {\n\n EndianCorrectOutputStream ecs;\n ByteArrayOutputStream baos;\n FileOutputStream fos;\n short s, ss[];\n byte b, bb[], ext_blob[];\n int hsize;\n int i, n;\n int extlist[][];\n\n\n // header is 348 except nii and anz/hdr w/ extensions is 352\n hsize = Nifti1.ANZ_HDR_SIZE;\n if ((header.isDs_is_nii()) || (header.getExtension()[0] != 0)) {\n hsize += 4;\n }\n\n try {\n\n baos = new ByteArrayOutputStream(hsize);\n fos = new FileOutputStream(header.getDs_hdrname());\n\n ecs = new EndianCorrectOutputStream(baos, header.isBig_endian());\n\n\n ecs.writeIntCorrect(header.getSizeof_hdr());\n\n if (header.getData_type_string().length() >= 10) {\n ecs.writeBytes(header.getData_type_string().substring(0, 10));\n } else {\n ecs.writeBytes(header.getData_type_string().toString());\n for (i = 0; i < (10 - header.getData_type_string().length()); i++) {\n ecs.writeByte(0);\n }\n }\n\n if (header.getDb_name().length() >= 18) {\n ecs.writeBytes(header.getDb_name().substring(0, 18));\n } else {\n ecs.writeBytes(header.getDb_name().toString());\n for (i = 0; i < (18 - header.getDb_name().length()); i++) {\n ecs.writeByte(0);\n }\n }\n\n ecs.writeIntCorrect(header.getExtents());\n\n ecs.writeShortCorrect(header.getSession_error());\n\n ecs.writeByte((int) header.getRegular().charAt(0));\n\n b = packDimInfo(header.getFreq_dim(), header.getPhase_dim(), header.getSlice_dim());\n ecs.writeByte((int) b);\n\n for (i = 0; i < 8; i++) {\n ecs.writeShortCorrect(header.getDim()[i]);\n }\n\n for (i = 0; i < 3; i++) {\n ecs.writeFloatCorrect(header.getIntent()[i]);\n }\n\n ecs.writeShortCorrect(header.getIntent_code());\n\n ecs.writeShortCorrect(header.getDatatype());\n\n ecs.writeShortCorrect(header.getBitpix());\n\n ecs.writeShortCorrect(header.getSlice_start());\n\n for (i = 0; i < 8; i++) {\n ecs.writeFloatCorrect(header.getPixdim()[i]);\n }\n\n\n ecs.writeFloatCorrect(header.getVox_offset());\n\n ecs.writeFloatCorrect(header.getScl_slope());\n ecs.writeFloatCorrect(header.getScl_inter());\n\n ecs.writeShortCorrect(header.getSlice_end());\n\n ecs.writeByte((int) header.getSlice_code());\n\n ecs.writeByte((int) packUnits(header.getXyz_unit_code(), header.getT_unit_code()));\n\n\n ecs.writeFloatCorrect(header.getCal_max());\n ecs.writeFloatCorrect(header.getCal_min());\n\n ecs.writeFloatCorrect(header.getSlice_duration());\n\n ecs.writeFloatCorrect(header.getToffset());\n\n ecs.writeIntCorrect(header.getGlmax());\n ecs.writeIntCorrect(header.getGlmin());\n\n ecs.write(setStringSize(header.getDescrip(), 80), 0, 80);\n ecs.write(setStringSize(header.getAux_file(), 24), 0, 24);\n\n\n ecs.writeShortCorrect(header.getQform_code());\n ecs.writeShortCorrect(header.getSform_code());\n\n for (i = 0; i < 3; i++) {\n ecs.writeFloatCorrect(header.getQuatern()[i]);\n }\n for (i = 0; i < 3; i++) {\n ecs.writeFloatCorrect(header.getQoffset()[i]);\n }\n\n for (i = 0; i < 4; i++) {\n ecs.writeFloatCorrect(header.getSrow_x()[i]);\n }\n for (i = 0; i < 4; i++) {\n ecs.writeFloatCorrect(header.getSrow_y()[i]);\n }\n for (i = 0; i < 4; i++) {\n ecs.writeFloatCorrect(header.getSrow_z()[i]);\n }\n\n\n ecs.write(setStringSize(header.getIntent_name(), 16), 0, 16);\n ecs.write(setStringSize(header.getMagic(), 4), 0, 4);\n\n\n // nii or anz/hdr w/ ext. gets 4 more\n if ((header.isDs_is_nii()) || (header.getExtension()[0] != 0)) {\n for (i = 0; i < 4; i++) {\n ecs.writeByte((int) header.getExtension()[i]);\n }\n }\n\n /** write the header blob to disk */\n baos.writeTo(fos);\n\n } catch (IOException ex) {\n throw new IOException(\"Error: unable to write header file \" + header.getDs_hdrname() + \": \" + ex.getMessage());\n }\n\n\n\n /** write the extension blobs **/\n try {\n\n ////// extensions\n if (header.getExtension()[0] != 0) {\n\n baos = new ByteArrayOutputStream(Nifti1.EXT_KEY_SIZE);\n ecs = new EndianCorrectOutputStream(baos, header.isBig_endian());\n extlist = header.getExtensionsList();\n n = extlist.length;\n for (i = 0; i < n; i++) {\n // write size, code\n ecs.writeIntCorrect(extlist[i][0]);\n ecs.writeIntCorrect(extlist[i][1]);\n baos.writeTo(fos);\n baos.reset();\n\n // write data blob\n ext_blob = (byte[]) header.getExtension_blobs().get(i);\n fos.write(ext_blob, 0, extlist[i][0] - Nifti1.EXT_KEY_SIZE);\n }\n }\n\n fos.close();\n } catch (IOException ex) {\n throw new IOException(\"Error: unable to write header extensions for file \" + header.getDs_hdrname() + \": \" + ex.getMessage());\n }\n\n\n }", "public int describeContents() {\n return 0;\r\n }", "public boolean hasFileName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public void format(int files) {\n\n //Inodes now equals the max number of files\n totalInodes = files;\n \n //Loop through and intialize the inodes\n for (short i = 0; i < totalInodes; i++) {\n Inode newInode = new Inode(); \n newInode.toDisk(i); \n }\n \n //Determine freelist size\n freeList = 2 + totalInodes * 32 / Disk.blockSize;\n \n\n //For each block in the freelist create a block and empty the block\n for (int i = freeList; i < totalBlocks; i++) {\n byte[] block = new byte[Disk.blockSize];\n \n for (int j = 0; j < Disk.blockSize; j++){\n block[j] = 0;\n }\n \n SysLib.int2bytes(i + 1, block, 0);\n SysLib.rawwrite(i, block);\n }\n \n //Sync now that format is complete\n sync();\n }", "void format03(String line, int lineCount) {\n // is this the first record in the file?\n checkFirstRecord(code, lineCount);\n\n // There must be data records after each code 03 record, therefore\n // this record must not be preceded by a code 03 record.\n if (prevCode == 3) {\n outputError((lineCount-1) + \" - Fatal - \" +\n \"No data for station: \" + stationId);\n } // if (prevCode == 3)\n\n //01 a2 format code always '03' n/a\n //02 a12 stnid station id: composed of as following: station\n // 1-3: institute id\n // 4-8: 1st 5 of expedition name ??\n // 9-12: station number\n //03 a10 stnnam station number station\n //04 i8 date yyyymmdd, e.g. 19900201 station\n //06 i3 latdeg latitude degrees (negative for north) station\n //07 f6.3 latmin latitude minutes (with decimal seconds) station\n //08 i4 londeg longitude degrees (negative for west) station\n //09 f6.3 lonmin longitude minutes (with decimal seconds) station\n //10 f7.2 stndep station depth station\n //11 a1 up indicator = 'D' for down, = 'U' for up (def = 'D') n/a\n //12 a8 grid_no for sfri only - grid number sfri_grid\n\n // get the data off the line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n\n station.setSurveyId(survey.getSurveyId());\n if (t.hasMoreTokens()) station.setStationId(t.nextToken());\n if (t.hasMoreTokens()) station.setStnnam(t.nextToken());\n if (t.hasMoreTokens()) {\n String temp = t.nextToken();\n startDate = temp.substring(0,4) + \"-\" + temp.substring(4,6) +\n \"-\" + temp.substring(6);\n station.setDateStart(startDate + \" 00:00:00.0\");\n if (dbg) System.out.println(\"<br>format03: timeZone = \" +\n timeZone + \", startDate = \" + station.getDateStart());\n // convert to UTC?\n /*\n if (\"sast\".equals(timeZone)) {\n java.util.GregorianCalendar calDate = new java.util.GregorianCalendar();\n calDate.setTime(station.getDateStart());\n calDate.add(java.util.Calendar.HOUR, -2);\n //station.setDateStart(new Timestamp(calDate.getTime().getTime()));\n //Timestamp dateTimeMin2 = new Timestamp(calDate.getTime().getTime());\n java.text.SimpleDateFormat formatter =\n new java.text.SimpleDateFormat (\"yyyy-MM-dd\");\n station.setDateStart(formatter.format(calDate.getTime()) + \" 00:00:00.0\");\n } // if ('sast'.equals(timeZone))\n */\n if (dbg4) System.out.println(\"<br>format03: timeZone = \" +\n timeZone + \", startDate = \" + station.getDateStart());\n station.setDateEnd(station.getDateStart());\n\n } // if (t.hasMoreTokens())\n\n /* ub03\n float degree = 0f; float minute= 0f;\n if (t.hasMoreTokens()) degree = toFloat(t.nextToken(), 1f);\n if (t.hasMoreTokens()) minute = toFloat(t.nextToken(), 60f);\n station.setLatitude(degree + minute);\n */\n float latitude = 0f; //ub03\n if (t.hasMoreTokens()) latitude = toFloat(t.nextToken(), 1f); //ub03\n station.setLatitude(latitude); //ub03\n if ((latitude > 90f) || (latitude < -90f)) {\n outputError(lineCount + \" - Fatal - \" +\n \"Latitude invalid ( > 90 or < -90) : \" +\n latitude + \" : \" + station.getStationId(\"\"));\n } // if ((latitude > 90f) || (latitude < -90f))\n\n\n //sign = line.substring(46,47);\n //temp = toFloat(line.substring(47,50), 1f) +\n // toFloat(line.substring(50,55), 60000f);\n //station.setLongitude((\"-\".equals(sign) ? -temp : temp));\n /* ub03\n if (t.hasMoreTokens()) degree = toFloat(t.nextToken(), 1f);\n if (t.hasMoreTokens()) minute = toFloat(t.nextToken(), 60f);\n station.setLongitude(degree + minute);\n */\n float longitude = 0f; //ub03\n if (t.hasMoreTokens()) longitude = toFloat(t.nextToken(), 1f); //ub03\n station.setLongitude(longitude); //ub03\n if ((longitude > 180f) || (longitude < -180f)) {\n outputError(lineCount + \" - Fatal - \" +\n \"Longitude invalid ( > 180 or < -180) : \" +\n longitude + \" : \" + station.getStationId(\"\"));\n } // if ((longitude > 180f) || (longitude < -180f))\n\n if (t.hasMoreTokens()) station.setStndep(toFloat(t.nextToken(), 1f));\n\n if (t.hasMoreTokens()) upIndicator = t.nextToken().trim().toUpperCase();\n\n sfriGrid.setSurveyId(survey.getSurveyId());\n sfriGrid.setStationId(station.getStationId());\n if (t.hasMoreTokens()) sfriGrid.setGridNo(toString(t.nextToken()));\n\n // the first three letters of the station Id must be the institute Id\n// ub10\n// take out because of profiling floats - station id starts with D\n// if (!institute.equals(station.getStationId(\"\").substring(0,3))) {\n// if (dbg) System.out.println(\"<br>institute = \" + institute);\n// outputError(lineCount + \" - Fatal - \" +\n// \"Station Id does not start with institute Id \" + institute +\n// \": \" + station.getStationId(\"\"));\n// } // if (!institute.equals(station.getStationId().substring(0,3)))\n\n stationId = station.getStationId(\"\");\n\n // update the minimum and maximum dates\n if (station.getDateStart().before(dateMin)) {\n dateMin = station.getDateStart();\n } // if (station.getDateStart().before(dateMin))\n if (station.getDateEnd().after(dateMax)) {\n dateMax = station.getDateEnd();\n } // if (station.getDateStart().before(dateMin))\n\n // update the minimum and maximum latitudes\n if (station.getLatitude() < latitudeMin) {\n latitudeMin = station.getLatitude();\n } // if (station.getLatitude() < latitudeMin)\n if (station.getLatitude() > latitudeMax) {\n latitudeMax = station.getLatitude();\n } // if (station.getLatitude() < latitudeMin)\n\n // update the minimum and maximum longitudes\n if (station.getLongitude() < longitudeMin) {\n longitudeMin = station.getLongitude();\n } // if (station.getLongitude() < LongitudeMin)\n if (station.getLongitude() > longitudeMax) {\n longitudeMax = station.getLongitude();\n } // if (station.getLongitude() < LongitudeMin)\n\n // update the station counter\n stationCount++;\n if (dbg) System.out.println(\"\");\n if (dbg) System.out.println(\"<br>format03: station = \" + station);\n if (dbg) System.out.println(\"<br>format03: sfriGrid = \" + sfriGrid);\n if (dbg) System.out.println(\"<br>format03: stationCount = \" + stationCount);\n\n }", "private static int m2538d(Context context) {\n try {\n File file = new File(Log.m2547a(context, Log.f1857e));\n if (file.exists()) {\n return file.list().length;\n }\n return 0;\n } catch (Throwable th) {\n BasicLogHandler.m2542a(th, \"StatisticsManager\", \"getFileNum\");\n return 0;\n }\n }", "void format09(String line, int lineCount) {\n\n // is this the first record in the file?\n checkFirstRecord(code, lineCount);\n\n // there can only be one code 09 record per substation\n code09Count++;\n if (code09Count > 1) {\n outputError(lineCount + \" - Fatal - \" +\n \"More than 1 code 09 record in substation\");\n } // if (code09Count > 1)\n\n // get the data off the line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n\n if (dataType == SEDIMENT) {\n\n //01 a2 format code always \"09\" n/a\n //02 a12 stnid station id: composed as for format 03 sedphy\n //03 f10.3 calcium µgm / gram sedchem2\n //04 f8.2 magnesium µgm / gram sedchem2\n //05 f7.3 sulphide(SO3) µgm / gram sedchem2\n //06 f8.3 potassium µgm / gram sedchem2\n //07 f8.2 sodium µgm / gram sedchem2\n //08 f9.3 strontium µgm / gram sedchem2\n\n if (t.hasMoreTokens()) sedphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) sedchem2.setCalcium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedchem2.setMagnesium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedchem2.setSo3(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedchem2.setPotassium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedchem2.setSodium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedchem2.setStrontium(toFloat(t.nextToken(), 1f));\n\n // station Id must match that of previous station record\n checkStationId(lineCount, sedphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format09: sedchem2 = \" + sedchem2);\n\n } else if (dataType == WATER) {\n\n //01 a2 format code always \"09\" n/a\n //02 a12 stnid station id: composed as for format 03 watphy\n //03 f7.3 suspendedSolids mgm / litre watchem2\n //04 f10.3 calcium µgm / litre watchem2\n //05 f7.4 sulphate(SO4) gm / litre watchem2\n //06 f8.3 potassium µgm / litre watchem2\n //07 f8.2 magnesium µgm / litre watchem2\n //08 f8.2 sodium µgm / litre watchem2\n //09 f9.3 strontium µgm / litre watchem2\n\n if (t.hasMoreTokens()) watphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) watchem2.setSussol(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watchem2.setCalcium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watchem2.setSo4(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watchem2.setPotassium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watchem2.setMagnesium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watchem2.setSodium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watchem2.setStrontium(toFloat(t.nextToken(), 1f));\n\n // station Id must match that of previous station record\n checkStationId(lineCount, watphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format09: watchem2 = \" + watchem2);\n\n } // if (dataType == SEDIMENT)\n\n }", "@Override\r\n\tpublic int describeContents() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int describeContents() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int describeContents() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int describeContents() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int describeContents() {\n\t\treturn 0;\r\n\t}", "public ShapeFile(){\n numShapes = 0;\n }", "@Override\n\tpublic int describeContents() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int describeContents() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int describeContents() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int describeContents() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int describeContents() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int describeContents() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int describeContents() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int describeContents() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int describeContents() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int describeContents() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int describeContents() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int describeContents() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int describeContents() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int describeContents() {\n\t\treturn 0;\n\t}" ]
[ "0.60617906", "0.58315265", "0.567876", "0.55803186", "0.55801", "0.555739", "0.5545259", "0.5527254", "0.5514505", "0.55124456", "0.5436318", "0.54305553", "0.54274005", "0.5323175", "0.53107214", "0.5307115", "0.52861553", "0.528056", "0.5236451", "0.522849", "0.52115977", "0.5207095", "0.5206136", "0.5193986", "0.51657176", "0.5148344", "0.51234704", "0.5102741", "0.5100661", "0.50981337", "0.50955075", "0.5088596", "0.50859976", "0.5075407", "0.50488347", "0.5028011", "0.50099415", "0.5001598", "0.49887842", "0.49709186", "0.49615592", "0.49369916", "0.49292755", "0.4921409", "0.49153966", "0.4913983", "0.4884955", "0.48784336", "0.48780632", "0.48743665", "0.48696592", "0.48667166", "0.4854145", "0.48445284", "0.484068", "0.48370954", "0.48254985", "0.48174527", "0.4817042", "0.4810048", "0.4810048", "0.4810048", "0.4807615", "0.48031086", "0.48028648", "0.47986484", "0.47985703", "0.47971353", "0.47812226", "0.47804302", "0.47758853", "0.47729328", "0.47727004", "0.47724438", "0.47698775", "0.47681832", "0.47653416", "0.47619584", "0.4755189", "0.47501412", "0.47459003", "0.47402197", "0.47402197", "0.47402197", "0.47402197", "0.47402197", "0.4735948", "0.4732348", "0.4732348", "0.4732348", "0.4732348", "0.4732348", "0.4732348", "0.4732348", "0.4732348", "0.4732348", "0.4732348", "0.4732348", "0.4732348", "0.4732348", "0.4732348" ]
0.0
-1
Creates new form revisionTecMer
public ZafRecHum38(Librerias.ZafParSis.ZafParSis obj) { try{ this.objZafParSis = (Librerias.ZafParSis.ZafParSis) obj.clone(); initComponents(); objUti = new ZafUtil(); objTooBar = new mitoolbar(this); this.getContentPane().add(objTooBar,"South"); this.setTitle(objZafParSis.getNombreMenu()+" " + strVersion); lblTit.setText(objZafParSis.getNombreMenu()); }catch(CloneNotSupportedException e) {objUti.mostrarMsgErr_F1(this, e);e.printStackTrace();} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void newRevision(Object revisionEntity) {\n }", "@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }", "@Test\n public void testAddAndGetRevision() throws Exception {\n Revision revision = Revision.createRevision(m_WIP_Document, new Date(), c_TestRevisionContent + \" (DYNAMIC)\");\n List<Revision> revisions = DocumentManager.getInstance().getRevisions(m_WIP_Document, QueryParam.UNSORTED);\n Assert.assertEquals(\"Expect 4th added revision\", 4, revisions.size());\n Assert.assertEquals(\"Expect correct revision content\", c_TestRevisionContent + \" (DYNAMIC)\", DocumentManager.getInstance().getRevisionContent(revisions.get(3)));\n }", "@Transactional\r\n\tpublic String createFormNewVersion(FormDescriptor form, String loggedinUser, String xmlPathName) {\r\n\t\t\r\n\t\tString formSeqid = \"\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFormV2TransferObject formdto = DomainObjectTranslator.translateIntoFormDTO(form);\t\r\n\t\t\tif (formdto == null) \r\n\t\t\t\treturn null;\r\n\r\n\t\t\tformSeqid = formV2Dao.createNewFormVersionShellOnly(formdto.getFormIdseq(), formdto.getVersion(), \r\n\t\t\t\t\t\"New version form by Form Loader\", formdto.getCreatedBy());\t\t\r\n\t\t\t\r\n\t\t\tlogger.debug(\"Created new version for form. Seqid: \" + formSeqid);\r\n\t\t\t\r\n\t\t\tformdto.setFormIdseq(formSeqid);\r\n\t\t\tform.setFormSeqId(formSeqid);\r\n\r\n\t\t\tint res = formV2Dao.updateFormComponent(formdto);\r\n\t\t\tif (res != 1) {\r\n\t\t\t\tlogger.error(\"Error!! Failed to update form\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcreateFormInstructions(form, formdto);\r\n\t\t\tprocessFormdetails(form, xmlPathName, form.getIndex());\r\n\t\t\tcreateModulesInForm(form, formdto);\r\n\t\t\t\r\n\t\t\treturn form.getFormSeqId();\r\n\t\t\t\r\n\t\t} catch (DMLException dbe) {\r\n\t\t\tlogger.error(dbe.getMessage());\r\n\t\t\tform.addMessage(dbe.getMessage());\r\n\t\t\tformSeqid = null;\r\n\t\t\tform.setVersion(\"0.0\");\r\n\t\t\tform.setLoadStatus(FormDescriptor.STATUS_LOAD_FAILED);\r\n\t\t}\r\n\t\t\r\n\t\treturn formSeqid;\r\n\t}", "public AutomatizacionrevisionFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "@Override\n public boolean create(Revue objet) {\n return false;\n }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "public void nuevo(Restricciones cd) {\n Map<String, List<String>> params = null;\n List<String> p = null;\n if (cd != null) {\n params = new HashMap<>();\n p = new ArrayList<>();\n p.add(cd.getCodigoRestriccion().toString());\n params.put(\"idRestriccion\", p);\n if (ver) {\n p = new ArrayList<>();\n p.add(ver.toString());\n params.put(\"ver\", p);\n ver = false;\n }\n } else {\n\n }\n Utils.openDialog(\"/restricciones/restriccion\", params, \"350\", \"55\");\n }", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }", "public void guardarRevisionesOficiales(){\r\n \tConnection conn = null;\r\n \tPreparedStatement ps = null;\r\n \ttry{\r\n\t \tconn = getDBConnection();\r\n \t\tStringBuffer consultaTable = new StringBuffer(\"(select c.id_table from layers l, attributes a,columns c \");\r\n \t\tconsultaTable = consultaTable.append(\"where l.id_layer = a.id_layer and a.id_column = c.id \");\r\n \t\tconsultaTable = consultaTable.append(\"and a.position = 1 and l.name = ?)\");\r\n\t \tStringBuffer sbSQL = new StringBuffer(\"update versiones set oficial=?, mensaje =? where revision=? \");\r\n\t \tsbSQL = sbSQL.append(\"and id_table_versionada = \");\r\n\t \tsbSQL = sbSQL.append(consultaTable.toString());\r\n\t \tps = conn.prepareStatement(sbSQL.toString());\r\n\t \tint n = model.getRowCount();\r\n\t \tfor (int i=0;i<n;i++){\r\n\t \t\tps.setInt(1, (Boolean)model.getValueAt(i,3)==true?1:0);\r\n\t \t\tps.setString(2, (String)model.getValueAt(i, 4));\r\n\t \t\tps.setLong(3, (Long)model.getValueAt(i, 0));\r\n\t \t\tps.setString(4, this.layer.getSystemId());\r\n\t \t\tps.executeUpdate();\r\n\t \t}\r\n\t JOptionPane.showMessageDialog(this,I18N.get(\"Version\",\"DatosRevisionGuardados\"));\r\n \t}catch(Exception e){\r\n JOptionPane.showMessageDialog(this,e.getMessage());\r\n\t}finally{\r\n aplicacion.closeConnection(conn, ps, null, null);\r\n\t}\r\n }", "private LCSRevisableEntity createRevisableEntry(LCSProduct product, LCSSKU lcsSKu,\n\t\t\tString materialNumber, String sizedefVR, String sourceVersion,\n\t\t\tString costsheetVersion, String specVersion, String sourceName, String costName,\n\t\t\tString specName, String nrfCode, String styleNumber, String materialDescription,\n\t\t\tString IBTINSTOREMONTH,Collection bomMOAStringColl) throws WTException , WTPropertyVetoException {\n\t\t\n\t\tLCSRevisableEntityLogic revisableEntityLogic = new LCSRevisableEntityLogic();\n\t\t\n\t\tLCSRevisableEntity createRevEntity=null;\n\n\t\tLCSLog.debug(CLASSNAME+\"createRevisableEntry(), this is a fresh entry\");\n\t\t\n\t\tFlexType IBTFlexType = FlexTypeCache\n\t\t.getFlexTypeFromPath(LFIBTConstants.ibtMaterialPath);\n\t\t\n\t\tLCSRevisableEntity ibtMaterialRevObj = LCSRevisableEntity.newLCSRevisableEntity();;\n\t\tString revId = \"\";\n\t\t// Create Blank Revisable Entity Object for the productId\n\t\t\n\t\t\n\t\t//revModel.load(FormatHelper.getObjectId(this.getRevObj()));\n\t\t// create a new model in order to create a new revisable entity.\n\t\t//LCSRevisableEntityClientModel ibtRevEntityModel = new LCSRevisableEntityClientModel();\n\t\t//ibtRevEntityModel.set\n\t\t//ibtRevEntityModel.load(FormatHelper.getObjectId(rev));\n\t\t// set the flextype to ibtRevEntityModel sub type\n\t\tibtMaterialRevObj.setFlexType(IBTFlexType);\n\t\t//System.out.println(\"****************Inside setFlexType ***********************\");\n\t\t//ibtMaterialRevObj.setRevisableEntityName(FormatHelper.format(materialNumber\n\t\t\t//\t+ dateFormat.format(Calendar.getInstance().getTime())));\n\t\t// set the product att in revisable entity child type\n\t\tibtMaterialRevObj.setValue(LFIBTConstants.IBTPRODUCT, product);\n\n\t\t//PLM-170 Adding product ID change\n\t\tString prodId = String.valueOf(((Double)product.getProductARevId()).intValue());\n\t\tibtMaterialRevObj.setValue(LFIBTConstants.IBTPRODUCTID, prodId);\n\t\t//PLM-170 Adding product ID change\n\n\t\t//System.out.println(\"****************Inside product ***********************\"+product);\n\n\t\t// setting the divison att for sap material. \n\t\t// This will drive the ACL functionality.\n\t\tString division = (String) season.getValue(divisionKey);\n\t\tLCSLog.debug(\"division -- \" + division);\n\t\t// setting division att in ibtRevEntityModel\n\t\tibtMaterialRevObj.setValue(\"lfDivision\", division);\n\n\t\t// set the colorway att in revisable entity child type\n\t\tibtMaterialRevObj.setValue(LFIBTConstants.IBTCOLORWAY, lcsSKu);\n\n\t\t// set the size definition version Id\n\t\tibtMaterialRevObj.setValue(LFIBTConstants.IBTMASTERGRID, sizedefVR);\n\t\t// set the sourcing-config version\n\t\tibtMaterialRevObj.setValue(LFIBTConstants.IBTSOURCINGCONFIG, sourceVersion);\n\t\t// set the cost-sheet version\n\t\tibtMaterialRevObj.setValue(LFIBTConstants.IBTCOSTSHEET, costsheetVersion);\n\t\t\n\t\tibtMaterialRevObj.setValue(LFIBTConstants.IBTSPECIFICATION, specVersion);\n\t\tibtMaterialRevObj.setValue(LFIBTConstants.STAGINSPECNAME, specName);\n\t\t// set the source name that is used in the staging area\n\t\tibtMaterialRevObj.setValue(LFIBTConstants.IBTSTAGINGSOURCENAME, sourceName);\n\t\t// set the cost-sheet name to that is entered in staging area\n\t\tibtMaterialRevObj.setValue(LFIBTConstants.IBTSTAGINGCOSTSHEETNAME, costName);\n\t\t//Added for 7.6\n\t\tif (FormatHelper.hasContent(LFIBTConstants.IBTMATERIALSTATUS)) {\n\t\t\tibtMaterialRevObj.setValue(LFIBTConstants.IBTMATERIALSTATUS,\n\t\t\t\t\"Create\");\n\t\t}\n\t\tibtMaterialRevObj.setValue(LFIBTConstants.IBTCOSTSHEETSTATUS,\"Sent\");\n\t\t\n\t\t//Added for 7.6\n\t \t//Create BOM MOA Rows..\n\t\t//LFIBTUtil.setBOMMOARows(ibtRevEntityModel, \"lfIBTBOMDetails\", bomMOAStringColl,\"create\");\n\t\t// set the NRF code.\n\t\tibtMaterialRevObj.setValue(LFIBTConstants.IBTNRFCODE, nrfCode);\n\t\t// set style number\n\t\t// Build 6.14\n\t\tibtMaterialRevObj.setValue(LFIBTConstants.IBTSTYLENUMBER, styleNumber);\n\t\t// set material description\n\t\tibtMaterialRevObj.setValue(LFIBTConstants.IBTMATERIALDESC,\n\t\t\t\tmaterialDescription);\n\n\t\t// set In strore Month\n\t\tibtMaterialRevObj.setValue(LFIBTConstants.IBTINSTOREMONTH, IBTINSTOREMONTH);\n\t\t// set SAP material number\n\t\tibtMaterialRevObj.setValue(LFIBTConstants.IBTMATERIALNUMBER, materialNumber);\n\t\t// set the season att\n\t\tibtMaterialRevObj.setValue(LFIBTConstants.IBTMASTERSEASON, this.season);\n\n\t\t// set the boolean value to checked. This check is needed for the\n\t\t// plugin to pick up the revisable entity\n\t\t//ibtRevEntityModel.setValue(LFIBTConstants.IBTUPDATECHECK, Boolean.TRUE);\n\t\t// set the master object\n\t\tibtMaterialRevObj.setValue(\"lfIBTMaster\", this.masterRevEntity);\n\t\t\n\t//\tSystem.out.println(\"****************Inside 11111111 ***********************\");\n\n\t\t\n\t\t\n\t\tLCSRevisableEntity ibtMaterialRev = (LCSRevisableEntity)revisableEntityLogic.saveRevisableEntity(ibtMaterialRevObj);\n\t\t\n\t\t// masterModel.save();\n\t\t\n\t\t//createRevEntity=ibtRevEntityModel.getBusinessObject();\n\t\t//LCSLog.debug(\"slave created : -- \" + ibtMaterialRevObj);\n\t\t\n\t\tLCSLog.debug(CLASSNAME+\"createRevisableEntry(),Calling setBOMMOARows()\");\n\t\tLFIBTUtil.setBOMMOARows(ibtMaterialRev, \"lfIBTBOMDetails\", bomMOAStringColl, \"create\");\n\t\tLCSLog.debug(CLASSNAME+\"createRevisableEntry(),slave created : -- \" + ibtMaterialRev);\n return ibtMaterialRev;\n\t}", "public long createRevision(long repositoryId, int revision, String actions,\n\t\t\tString author, String date, String message) {\n\t\tContentValues initialValues = new ContentValues();\n\t\tinitialValues.put(KEY_FK_REPID, repositoryId);\n\t\tinitialValues.put(KEY_REVISION, revision);\n\t\tinitialValues.put(KEY_ACTION, actions);\n\t\tinitialValues.put(KEY_AUTHOR, author);\n\t\tinitialValues.put(KEY_DATE, date);\n\t\tinitialValues.put(KEY_MESSAGE, message);\n\n\t\tcheckMDbAndReopen();\n\t\treturn mDb.insert(DATABASE_TABLE, null, initialValues);\n\t}", "private void createFullRevisionSettings()\n\t{\n\n\t\tfullRevisionLabel = new JLabel(\n\t\t\t\t\"Every n-th revision will be a full revision:\");\n\t\tfullRevisionLabel.setBorder(BorderFactory.createRaisedBevelBorder());\n\t\tfullRevisionLabel.setBounds(10, 10, 270, 25);\n\t\tthis.add(fullRevisionLabel);\n\n\t\tfullRevisionField = new JTextField();\n\t\tfullRevisionField.setBounds(290, 10, 100, 25);\n\t\tthis.add(fullRevisionField);\n\t}", "public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}", "@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\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}\n\t}", "public void nuevaRestriccion(RestricionPredio cd) {\n Map<String, List<String>> params = null;\n List<String> p = null;\n if (cd != null) {\n params = new HashMap<>();\n p = new ArrayList<>();\n p.add(cd.getId() + \"\");\n params.put(\"idRestriccion\", p);\n if (ver) {\n p = new ArrayList<>();\n p.add(ver.toString());\n params.put(\"ver\", p);\n ver = false;\n }\n } else {\n\n }\n Utils.openDialog(\"/restricciones/restriccionPredio\", params, \"500\", \"80\");\n }", "Vaisseau_estOrdonneeCouverte createVaisseau_estOrdonneeCouverte();", "public boolean ajouter(JTextField m) {\n\t\tString[] champs = {\n\t\t\t\"libelle_edition\"\n\t\t};\n\t\tString[] valeur = {\n\t\t\tm.getText()\n\t\t};\n\n\t\tExploitation bdd = new Exploitation();\n\t\tbdd.chargerPilote();\n\t\tbdd.connexion();\n\t\tint numero = bdd.insertion(champs, \"edition\", valeur);\n\n\t\tEdition e = new Edition(numero, valeur);\n\t\tthis.lesEditions.add(e);\n\t\treturn (numero != 0);\n\t}", "public CreateTremaDbDialogForm(AnActionEvent event) {\n this.event = event;\n this.windowTitle = \"New Trema XML database file\";\n init();\n }", "@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}", "Compleja createCompleja();", "public String crea() {\n c.setId(0);\n clienteDAO.crea(c); \n //Post-Redirect-Get\n return \"visualiza?faces-redirect=true&id=\"+c.getId();\n }", "x0401.oecdStandardAuditFileTaxPT1.ProductDocument.Product addNewProduct();", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "@Override\r\n\tpublic void createPartControl(Composite parent) {\n cdoSession = TestCdoClient.openSession(\"demo\");\r\n CDOView view = cdoSession.openView();\r\n view.options().addChangeSubscriptionPolicy(CDOAdapterPolicy.ALL);\r\n CDOResource resource = view.getResource(\"/myResource\");\r\n try {\r\n //Load resource library\r\n resource.load(null);\r\n library = (Library) resource.getContents().get(0);\r\n } catch (IOException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n\t\tparent.setLayout(new GridLayout(1, false));\r\n\t\t\r\n\t\ttableViewer = new TableViewer(parent, SWT.BORDER | SWT.FULL_SELECTION);\r\n\t\ttableViewer.addSelectionChangedListener(new ISelectionChangedListener() {\r\n\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\r\n\t\t\t\tif (transaction!=null) {\r\n transaction.rollback();\r\n }\r\n transaction = cdoSession.openTransaction();\r\n Author authorSelected = (Author) ((StructuredSelection) event.getSelection()).getFirstElement();\r\n Author authorTransactionalObject = (Author) transaction.getObject(authorSelected);\r\n author.setValue( authorTransactionalObject );\r\n\t\t\t}\r\n\t\t});\r\n\t\ttable = tableViewer.getTable();\r\n\t\ttable.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\r\n\t\t\r\n\t\tTableViewerColumn tableViewerColumn = new TableViewerColumn(tableViewer, SWT.NONE);\r\n\t\tTableColumn tblclmnName = tableViewerColumn.getColumn();\r\n\t\ttblclmnName.setWidth(100);\r\n\t\ttblclmnName.setText(\"Name\");\r\n\t\t\r\n\t\tComposite composite = new Composite(parent, SWT.NONE);\r\n\t\tcomposite.setLayout(new GridLayout(2, false));\r\n\t\tcomposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\r\n\t\t\r\n\t\tLabel lblName = new Label(composite, SWT.NONE);\r\n\t\tlblName.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblName.setText(\"Name\");\r\n\t\t\r\n\t\ttxtName = new Text(composite, SWT.BORDER);\r\n\t\ttxtName.setText(\"Name\");\r\n\t\ttxtName.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\t\r\n\t\tButton btnSave = new Button(composite, SWT.NONE);\r\n\t\tbtnSave.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\ttry {\r\n\t transaction.commit();\r\n\t } catch (CommitException e1) {\r\n\t e1.printStackTrace();\r\n\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSave.setText(\"Save\");\r\n\t\tnew Label(composite, SWT.NONE);\r\n\t\tm_bindingContext = initDataBindings();\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "public void ejbPostCreate(String templCd, String templDesc, String crcdReimbTypeCd, String currencyType, int cntRod, int cntPrepaid, int cntPoa, int cntOther, int disabTempl, int cntGrnd, int cntCod, int cntFtc)\n throws CreateException {\n }", "public static Tarjeta insertTarjeta(int id,String numero,String banco,\n Date fencha_vencimiento,\n String tipo_tarjeta,int cod_seguridad,\n String cedula_titular,String marca){\n Tarjeta miTarjeta = null;\n try {\n miTarjeta = new Tarjeta(id,numero,banco,fencha_vencimiento,\n tipo_tarjeta,cod_seguridad,\n cedula_titular,marca);\n miTarjeta.RegistrarTarjeta();\n \n } catch (Exception e) {\n System.out.println(e.getMessage());\n } \n \n return miTarjeta;\n }", "public void crearEntidad() throws EntidadNotFoundException {\r\n\t\tif (validarCampos(getNewEntidad())) {\r\n\t\t\tif (validarNomNitRepetidoEntidad(getNewEntidad())) {\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_WARN, \"Advertencia: \", \"Nombre, Nit o Prejifo ya existe en GIA\"));\r\n\t\t\t} else {\r\n\t\t\t\tif (entidadController.crearEntidad(getNewEntidad())) {\r\n\t\t\t\t\tmensajeGrow(\"Entidad Creada Satisfactoriamente\", getNewEntidad());\r\n\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('entCrearDialog').hide()\");\r\n\t\t\t\t\tsetNewEntidad(new EntidadDTO());\r\n\t\t\t\t\tresetCodigoBUA();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmensajeGrow(\"Entidad No Fue Creada\", getNewEntidad());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlistarEntidades();\r\n\t\t\t// newEntidad = new EntidadDTO();\r\n\t\t\t// fechaActual();\r\n\t\t}\r\n\r\n\t}", "private void createView(Tab tab, VMFile file, PostProcessHandler handler) {\n editResourceService.getFileContent(file.getId(), new AsyncCallback<byte[]>() {\n\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n\n @Override\n public void onSuccess(byte[] result) {\n BinaryResourceImpl r = new BinaryResourceImpl();\n ByteArrayInputStream bi = new ByteArrayInputStream(result);\n AbstractRootElement root = null;\n try {\n if (file.getExtension() != Extension.TXT && file.getExtension() != Extension.LSC && file.getExtension() != Extension.CSC) {\n r.load(bi, EditOptions.getDefaultLoadOptions());\n root = (AbstractRootElement) r.getContents().get(0);\n }\n } catch (IOException e) {\n SC.warn(e.getMessage());\n }\n Editor editor;\n if (file.getExtension() == null) {\n editor = new TextEditor(tab, file, editResourceService);\n editor.create();\n } else\n switch (file.getExtension()) {\n\n case ARC:\n editor = new ARCEditor((ARCRoot) root, projectId, editResourceService);\n editor.create();\n clickNewStateMachine((ARCEditor) editor, file);\n clickOpenFile((ARCEditor) editor);\n break;\n case FM:\n editor = new FMEditor((FMRoot) root, projectId, file.getId(), editResourceService);\n editor.create();\n clickOpenFile((FMEditor) editor);\n clickCreateChildModel((FMEditor) editor, file);\n setFileNameToReferenceNode((FMEditor) editor);\n break;\n case FMC:\n editor = new FMCEditor((FMCRoot) root, file.getId(), projectId, editResourceService);\n editor.create();\n break;\n case FSM:\n editor = new FSMEditor((FSMDStateMachine) root, file.getId());\n editor.create();\n break;\n case SCD:\n editor = new SCDEditor((SCDRoot) root, tab, projectId, ModelingProjectView.this, editResourceService);\n editor.create();\n clickOpenFile((SCDEditor) editor);\n break;\n case SPQL:\n editor = new SPQLEditor((SPQLRoot) root, tab, projectId, editResourceService);\n editor.create();\n clickOpenFile((SPQLEditor) editor);\n break;\n case TC:\n editor = new TCEditor((TCRoot) root, projectId, file.getName(), editResourceService);\n editor.create();\n break;\n case BPS:\n editor = new BPSEditor((BPSRoot) root, ModelingProjectView.this, projectId, file.getId(), editResourceService);\n editor.create();\n break;\n case BP:\n editor = new BPEditor((BPRoot) root, projectId, file, editResourceService);\n editor.create();\n break;\n case FPS:\n editor = new TPSEditor((TPSRoot) root, ModelingProjectView.this, projectId, file.getId(), editResourceService);\n editor.create();\n break;\n case FP:\n editor = new TPViewer((TPRoot) root, projectId, file, editResourceService);\n editor.create();\n break;\n case CSC:\n editor = new CSCEditor(tab, file, editResourceService);\n editor.create();\n break;\n case SCSS:\n editor = new CBEditor((CBRoot) root, ModelingProjectView.this, projectId, file.getId(), editResourceService);\n editor.create();\n break;\n case SCS:\n editor = new SCSEditor((SCSRoot) root, ModelingProjectView.this, projectId, file, editResourceService);\n editor.create();\n break;\n case CSCS:\n editor = new CSCSEditor((CSCSRoot) root, projectId, file);\n editor.create();\n break;\n default:\n editor = new TextEditor(tab, file, editResourceService);\n editor.create();\n }\n createTabMenu(tab, editor.getSaveItem());\n clickSaveFile(editor, tab);\n\n if (editor instanceof NodeArrangeInterface) {\n NodeArrange.add((NodeArrangeInterface) editor);\n }\n tab.setPane(editor.getLayout());\n tab.setAttribute(EDITOR, editor);\n editorTabSet.addTab(tab);\n editorTabSet.selectTab(tab.getAttributeAsString(\"UniqueId\"));\n if (handler != null) {\n handler.execute();\n }\n }\n });\n }", "private void btn_cadActionPerformed(java.awt.event.ActionEvent evt) {\n \n CDs_dao c = new CDs_dao();\n TabelaCDsBean p = new TabelaCDsBean();\n \n TabelaGeneroBean ge = (TabelaGeneroBean) g_box.getSelectedItem();\n TabelaArtistaBean au = (TabelaArtistaBean) g_box2.getSelectedItem();\n\n //p.setId(Integer.parseInt(id_txt.getText()));\n p.setTitulo(nm_txt.getText());\n p.setPreco(Double.parseDouble(vr_txt.getText()));\n p.setGenero(ge);\n p.setArtista(au);\n c.create(p);\n\n nm_txt.setText(\"\");\n //isqn_txt.setText(\"\");\n vr_txt.setText(\"\");\n cd_txt.setText(\"\");\n g_box.setSelectedIndex(0);\n g_box2.setSelectedIndex(0);\n \n }", "public String formCreated()\r\n {\r\n return formError(\"201 Created\",\"Object was created\");\r\n }", "@Override\n\tpublic Oglas createNewOglas(NewOglasForm oglasForm) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\n\t\tOglas oglas = new Oglas();\n\t\tSystem.out.println(oglas.getId());\n\t\toglas.setNaziv(oglasForm.getNaziv());\n\t\toglas.setOpis(oglasForm.getOpis());\n\t\ttry {\n\t\t\toglas.setDatum(formatter.parse(oglasForm.getDatum()));\n\t\t\tSystem.out.println(oglas.getDatum());\n System.out.println(formatter.format(oglas.getDatum()));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn repository.save(oglas);\n\t}", "GitTree(RevTree aRT, String aPath) { _rev = aRT; _path = aPath; }", "public CreateNewVersionResultDTO createNewVersion(String contentTypeName, String branch, String config,\n\t MultipartFile uploadedFile) {\n\t\t// TODO impl\n\t\treturn null;\n\t}", "public ControllerNewCRV(newCRV fenetre, DAOProduit DaoProd, DAOCategorie DaoCat,DAOMedecin daoMed,DAOVisiteur daoVisi, DAOCompteRendu daoCRV) {\n\t\t\n\t\tthis.fenetre = fenetre;\n\t\tthis.daoCat = DaoCat;\n\t\tthis.daoProd = DaoProd;\n\t\tthis.daoMed = daoMed;\n\t\tthis.daoVisi = daoVisi;\n\t\tthis.daoCRV = daoCRV;\n\t\tfenetre.getBtnRetour().addActionListener(this);\n\t\tfenetre.getBtnValider().addActionListener(this);\n\t\tfenetre.getBtnAjouter().addActionListener(this);\n\t\tfenetre.getComboBox_cat().addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent event) {\n\t //\n\t // Get the source of the component, which is our combo\n\t // box.\n\t //\n\t JComboBox comboBox = (JComboBox) event.getSource();\n\t String comboBoxname = comboBox.getName();\n\t \t\t\n\t \t\tswitch (comboBoxname) {\n\t \t\tcase \"selectionner\":\n\t \t\t\tviewProduit();\n\t \t\t\tbreak;\t\n\n\t \t\tdefault:\n\t \t\t\tbreak;\n\t \t\t}\t\t\n\t \n\n\t }\n\t });\n\t}", "@RequestMapping(value = \"/currentRevisions\", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)\n\t@Timed\n\tpublic ResponseEntity<CurrentRevision> create(@RequestBody CurrentRevision currentRevision)\n\t\t\tthrows URISyntaxException {\n\t\tlog.debug(\"REST request to save CurrentRevision : {}\", currentRevision);\n\t\tif (currentRevision.getId() != null) {\n\t\t\treturn ResponseEntity.badRequest().header(\"Failure\", \"A new currentRevision cannot already have an ID\")\n\t\t\t\t\t.body(null);\n\t\t}\n\t\tCurrentRevision result = currentRevisionRepository.save(currentRevision);\n\t\treturn ResponseEntity.created(new URI(\"/api/currentRevisions/\" + result.getId()))\n\t\t\t\t.headers(HeaderUtil.createEntityCreationAlert(\"currentRevision\", result.getId().toString()))\n\t\t\t\t.body(result);\n\t}", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "private JPanel getJPanelDatosRevision()\r\n {\r\n if (jPanelRevision == null)\r\n { \r\n \tjPanelRevision = new JPanel(new GridBagLayout());\r\n \tjPanelRevision.setBorder(BorderFactory.createTitledBorder\r\n (null, I18N.get(\"LocalGISEIEL\", \"localgiseiel.panels.revision\"), TitledBorder.LEADING, TitledBorder.TOP, new Font(null, Font.BOLD, 12))); \r\n \t\r\n jLabelFecha = new JLabel(\"\", JLabel.CENTER); \r\n jLabelFecha.setText(I18N.get(\"LocalGISEIEL\", \"localgiseiel.panels.label.fecha\")); \r\n \r\n jLabelEstado = new JLabel(\"\", JLabel.CENTER); \r\n jLabelEstado.setText(I18N.get(\"LocalGISEIEL\", \"localgiseiel.panels.label.estado\")); \r\n \r\n jPanelRevision.add(jLabelFecha,\r\n new GridBagConstraints(0, 0, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n jPanelRevision.add(getJTextFieldFecha(), \r\n new GridBagConstraints(1, 0, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n jPanelRevision.add(jLabelEstado, \r\n new GridBagConstraints(2, 0, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n \r\n jPanelRevision.add(getJComboBoxEstado(), \r\n new GridBagConstraints(3, 0, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 120, 0));\r\n \r\n }\r\n return jPanelRevision;\r\n }", "public FileVersion(int owner, int version, int revision) {\n this.owner = owner;\n this.version = version;\n this.revision = revision;\n }", "public void crear(Tarea t) {\n t.saveIt();\n }", "@Nonnull\n private static JsonObject createRevisionChange(String workingRevId, JsonObject change) {\n return new JsonObject().put(workingRevId, change);\n }", "public abstract void addEditorForm();", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "private void jButtonNewStageplaatsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNewStageplaatsActionPerformed\n\n this.geselecteerdeStageplaats = new Stageplaats();\n this.geselecteerdeStageplaats.setSitueertID((Situeert)this.jComboBoxSitueert.getSelectedItem());\n this.geselecteerdeStageplaats.getSitueertID().setSpecialisatieID((Specialisatie)this.jComboBoxSpecialisatie.getSelectedItem());\n this.geselecteerdeStageplaats.setBedrijfID(null);\n this.geselecteerdeStageplaats.setAanmaakDatum(new Date());\n this.geselecteerdeStageplaats.setLaatsteWijziging(new Date());\n this.geselecteerdeStageplaats.setStudentStageplaatsList(new ArrayList<StudentStageplaats>());\n refreshDataCache();\n ClearDisplayedStageplaats();\n refreshDisplayedStageplaats();\n enableButtons();\n }", "public void createCompte(Compte compte);", "private int cloneByTrans(HttpServletRequest request, LineCodeMapper lcMapper, PrmVersionMapper pvMapper, LineCode po, PrmVersion prmVersion) throws Exception {\n TransactionStatus status = null;\r\n List<PrmVersion> prmVersions;\r\n // String versionNoMax;\r\n int n = 0;\r\n int n1 = 0;\r\n try {\r\n\r\n // txMgr = DBUtil.getDataSourceTransactionManager(request);\r\n status = txMgr.getTransaction(this.def);\r\n\r\n //删除草稿版本\r\n lcMapper.deleteLineCodeForClone(po);\r\n //未来或当前参数克隆成草稿版本\r\n n = lcMapper.cloneFromCurOrFurToDraft(po);\r\n //更新参数版本索引信息\r\n pvMapper.modifyPrmVersionForDraft(po);\r\n\r\n txMgr.commit(status);\r\n } catch (Exception e) {\r\n if (txMgr != null) {\r\n txMgr.rollback(status);\r\n }\r\n throw e;\r\n }\r\n return n;\r\n }", "@Override\n\tpublic void createRelease(Version version) {\n\n\t}", "@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tbinder.commit();\n\t\t\t\t\t\n\t\t\t\t\tconexion = new Conexion();\n\t\t\t\t\tConnection con = conexion.getConnection();\n\t\t\t\t\tStatement statement = con.createStatement();\n\t\t\t\t\ttxTerm.setValue(txTerm.getValue().replace(\"'\", \"´\"));\n\t\t\t\t\t\n\t\t\t\t\tString cadena;\n\t\t\t\t\tif ( acceso.equals(\"NEW\" )) {\n\t\t\t\t\t\tcadena= \"INSERT INTO TERMANDCONDITIONS ( CONDICIONES, IDTIPO, ACTIVO ) VALUES (\"\n\t\t\t\t\t\t\t+ \"'\" + txTerm.getValue().toString() + \"',\"\n\t\t\t\t\t\t\t+ \"'\" + cbType.getValue() + \"',\"\n\t\t\t\t\t\t\t+ cbEnabled.getValue()\n\t\t\t\t\t\t\t+ \")\" ;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tcadena= \"UPDATE TERMANDCONDITIONS \"\n\t\t\t\t\t\t\t\t+ \"SET CONDICIONES = '\" + txTerm.getValue().toString() + \"',\"\n\t\t\t\t\t\t\t\t+ \"IDTIPO = '\" + cbType.getValue() + \"',\"\n\t\t\t\t\t\t\t\t+ \"ACTIVO = \" + cbEnabled.getValue()\n\t\t\t\t\t\t\t\t+ \" WHERE IDTERM = \" + regterm.getItemProperty(\"IdTerm\").getValue();\n\t\t\t\t\t\t\t\t \t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(cadena);\n\t\t\t\t\tstatement.executeUpdate(cadena);\n\t\t\t\t\tstatement.close();\n\t\t\t\t\tcon.close();\n\t\t\t\t\t\n\t\t\t\t\tnew Notification(\"Process OK\",\n\t\t\t\t\t\t\t\"Record \" + acceso,\n\t\t\t\t\t\t\tNotification.Type.TRAY_NOTIFICATION, true)\n\t\t\t\t\t\t\t.show(Page.getCurrent());\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tVenEditarTerms.this.close();\n\t\t\t\t\tpantallaTerms.buscar.click();\n\t\t\t\t} catch (CommitException e) {\n\n\t\t\t\t\t\n\t\t\t\t\tString mensajes = \"\";\n\t\t for (Field<?> field: binder.getFields()) {\n\t\t ErrorMessage errMsg = ((AbstractField<?>)field).getErrorMessage();\n\t\t \n\t\t if (errMsg != null) {\n\t\t \t//System.out.println(\"Error:\"+errMsg.getFormattedHtmlMessage());\n\t\t \tmensajes+=errMsg.getFormattedHtmlMessage();\n\t\t }\n\t\t }\n\t\t \n\t\t\t\t\tnew Notification(\"Errors detected\",\n\t\t\t\t\t\t\tmensajes,\n\t\t\t\t\t\t\tNotification.Type.TRAY_NOTIFICATION, true)\n\t\t\t\t\t\t\t.show(Page.getCurrent());\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n \n\t\t } catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t \te.printStackTrace();\n\t\t \tnew Notification(\"Got an exception!\",\n\t\t\t\t\t\t\te.getMessage(),\n\t\t\t\t\t\t\tNotification.Type.ERROR_MESSAGE, true)\n\t\t\t\t\t\t\t.show(Page.getCurrent());\n\t\t \t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "public ViajeroEntity create (ViajeroEntity viajeroEntity){\n LOGGER.log(Level.INFO, \"Creando un review nuevo\");\n em.persist(viajeroEntity);\n return viajeroEntity;\n }", "Compuesta createCompuesta();", "public String createPublicationVersion() {\r\n\t\tPersonalItem personalItem = userPublishingFileSystemService.getPersonalItem(personalItemId, false);\r\n\t\tIrUser user = null;\r\n\t\tif( userId != null )\r\n\t\t{\r\n\t\t user = userService.getUser(userId, false);\r\n\t\t}\r\n\t\t\r\n\t\tif( user == null || (!personalItem.getOwner().equals(user) && !user.hasRole(IrRole.ADMIN_ROLE) && \r\n\t\t\t\t!institutionalCollectionPermissionHelper.isInstitutionalCollectionAdmin(user, genericItemId)))\r\n\t\t{\r\n\t\t return \"accessDenied\";\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tGenericItem oldItem = personalItem.getVersionedItem().getCurrentVersion().getItem();\r\n\t\titem = oldItem.clone();\r\n\t\t\r\n\t\tpersonalItem.getVersionedItem().addNewVersion(item);\r\n\r\n\t\tuserPublishingFileSystemService.makePersonalItemPersistent(personalItem);\t\t\r\n\r\n\t\tuserWorkspaceIndexProcessingRecordService.save(personalItem.getOwner().getId(), personalItem, \r\n \t\t\tindexProcessingTypeService.get(IndexProcessingTypeService.UPDATE));\r\n\r\n\t\treturn SUCCESS;\r\n\t}", "public void crearReaTrans(){\n\t // could have been factorized with the precedent view\n\t\tgetContentPane().setLayout(new BorderLayout());\n\t \n\t\tp1 = new JPanel();\n\t p2 = new JPanel();\n\t \n\t String[] a = {\"Regresar\",\"Continuar\"}, c = {\"Cuenta de origen\",\"Monto\",\"Cuenta de destino\"};\n\t \n\t p1.setLayout(new GridLayout(1,2));\n\t p2.setLayout(new GridLayout(1,3));\n\t \n\t for (int x=0; x<2; x++) {\n\t b = new JButton(a[x]);\n\t botones.add(b);\n\t }\n\t for (JButton x:botones) {\n\t x.setPreferredSize(new Dimension(110,110));\n\t p1.add(x);\n\t }\n // Add buttons panel \n\t add(p1, BorderLayout.SOUTH);\n\t \n\t for (int x=0; x<3; x++){\n\t tf=new JTextField(c[x]);\n\t tf.setPreferredSize(new Dimension(10,100));\n textos.add(tf);\n\t p2.add(tf);\n\t }\n // Add textfields panel\n\t add(p2, BorderLayout.NORTH);\n\t}", "public void createActionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\n\t}", "FORM createFORM();", "@Override\n\tpublic void createCpteEpargne(CompteEpargne cpt) {\n\t\t\n\t}", "private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }", "Vaisseau_ordonneeLaPlusBasse createVaisseau_ordonneeLaPlusBasse();", "private LCSRevisableEntity createEntries(String selectedId) {\n\t\t\n\t\tLCSRevisableEntity revEntity=null;\n\n\t\tLCSProduct product = null;\n\t\tLCSSKU lcsSku = null;\n\t\tString sizedefVR = \"\";\n\t\tString prodVR = \"\";\n\t\tString colorwayVR = \"\";\n\t\tString reventityVR = \"\";\n\t\t\n\t\tLCSLog.debug(\"****************Inside createEntries ***********************\");\n\t\t/*\n\t\t * is found in the request object.\n\t\t */\n\t\t// get division code from request.\n\t\tString divcode = this.requesttable.get(selectedId + \"_DIVISION_CODE\");\n\t\t// get material number from request\n\t\tString materialNumber = divcode\n\t\t\t\t+ this.requesttable.get(selectedId + \"_MATERIALNUMBER\");\n\t\t// get nrf code from request\n\t\tString nrfCode = \"\";\n\t\t// this.requesttable.get(selectedId + \"_NRF_CODE\");\n\t\t// get sourceVersion from request\n\t\tString sourceVersion = this.requesttable.get(selectedId + \"_SOURCE\");\n\t\t// get costsheetVersion from request\n\t\tString costsheetVersion = this.requesttable.get(selectedId + \"_COST\");\n\t\t\n\t\tString specVersion = this.requesttable.get(selectedId + \"_SPEC\");\n\t\t\n\t\tString bomRequestParam = this.requesttable.get(\"BOM\"+selectedId + \"_BOM\");\n\t\tLCSLog.debug(\"bomRequestParam = \"+bomRequestParam);\n\n\t\tString sourceName = \"\";\n\t\tString costName = \"\";\n\t\tString specName = \"\";\n\t\tString IBTINSTOREMONTH = \"\";\n\n\t\ttry {\n\t\t\t// get all the information from sourceVersion and costsheetVersion\n\t\t\tMap<String, String> map = LFIBTUtil.formatSourceOrCostsheetData(\n\t\t\t\t\tsourceVersion, costsheetVersion, specVersion);\n\t\t\t\n\t\t\t// source name\n\t\t\tsourceName = map.get(\"sourceNameKey\");\n\t\t\t// versionId\n\t\t\tsourceVersion = map.get(\"sourceVersionKey\"); \n\t\t\tLCSLog.debug(\"sourceName --- \" + sourceName);\n\t\t\t// costsheet name\n\t\t\tcostName = map.get(\"costNameKey\");\n\n\t\t\t// costsheetId\n\t\t\tcostsheetVersion = map.get(\"costsheetVersionKey\");\n\t\t\tLCSLog.debug(\"costName --- \" + costName);\n\t\t\t\n\t\t\tspecName = map.get(\"specNameKey\");\n\n\t\t\t// costsheetId\n\t\t\tspecVersion = map.get(\"specVersionKey\");\n\t\t\tLCSLog.debug(\"costName --- \" + costName);\t\t\t\n\n\t\t\tCollection<String> bomMOAStringColl = new ArrayList<String>();\n\t\t\tbomMOAStringColl = LFIBTUtil.formatBOMMultiChoiceValues(bomRequestParam);\n\t\t\t\n\t\t\tList<String> idList = LFIBTUtil.getObjects(selectedId);\n\n\t\t\t// parse and get all data\n\t\t\tMap<String, String> idMap = LFIBTUtil\n\t\t\t\t\t.createCustomMapFromList(idList);\n\t\t\t// get product ID\n\t\t\tprodVR = idMap.get(\"prodVR\");\n\n\t\t\tLCSLog.debug(\"prodVR : --\" + prodVR);\n\t\t\t// get the product object from productVR\n\t\t\tproduct = (LCSProduct) LCSProductQuery\n\t\t\t\t\t.findObjectById(\"VR:com.lcs.wc.product.LCSProduct:\"\n\t\t\t\t\t\t\t+ prodVR);\n\n\t\t\tLCSLog.debug(\"product : --\" + product);\n\n\t\t\t// size definition VR\n\t\t\tsizedefVR = idMap.get(\"sizedefVR\");\n\t\t\tLCSLog.debug(\"sizedefVR -- \" + sizedefVR);\n\n\t\t\t// colorway VR\n\t\t\tcolorwayVR = idMap.get(\"colorwayVR\");\n\t\t\tLCSLog.debug(\"colorwayVR : --\" + colorwayVR);\n\t\t\tlcsSku = (LCSSKU) LCSProductQuery\n\t\t\t\t\t.findObjectById(\"VR:com.lcs.wc.product.LCSSKU:\"\n\t\t\t\t\t\t\t+ colorwayVR);\n\n\t\t\t// NRF Code -- Build 5.16\n\t\t\tDouble d = 0.00;\n\t\t\td = (Double) lcsSku.getValue(\"lfNrfColorCode\");\n\t\t\tnrfCode = StringUtils.substringBeforeLast(Double.toString(d), \".\");\n\n\t\t\t/**\n\t\t\t * Build 5.16_3 -> START\n\t\t\t * Formatting NRF code to 3 digits before sending it to SAP\n\t\t\t */\n\t\t\t// getting length of code value\n\t\t\tint nrfCodeValueLength = nrfCode.length();\n\t\t\t// TRUE - if length is 1 or 2 digit\n\t\t\tif (nrfCodeValueLength == 2 || nrfCodeValueLength == 1) {\n\t\t\t\t// converting the value from double to integer\n\t\t\t\tint y = d.intValue();\n\t\t\t\t// formatting the value to be 3 digit always.\n\t\t\t\t// if not, append 0 to left\n\t\t\t\tnrfCode = (String.format(\"%03d\", y)).toString();\n\t\t\t}\n\t\t\t/**\n\t\t\t * Build 5.16_3 -> END\n\t\t\t */\n\n\t\t\t// get the revisable entity VR if applicable\n\t\t\treventityVR = idMap.get(\"reventityVR\");\n\n\t\t\t// Added for Build 6.14\n\t\t\t// ITC-START\n\t\t\tString materialDescription = this.requesttable.get(selectedId\n\t\t\t\t\t+ \"_MATERIALDESC\");\n\t\t\tIBTINSTOREMONTH = this.requesttable.get(selectedId + \"_INSTOREMONTH\");\n\t\t\tString styleNumber = this.requesttable.get(selectedId + \"_STYLE\");\n\t\t\t// ITC-END\n\t\t\t\n\t\t\t//MM : changes : Start ----\n\t\t\tif(!FormatHelper.hasContent(reventityVR))\n\t\t\t\treventityVR = LFIBTMaterialNumberValidator.getExistingMaterialRecords(materialNumber,false);\n\t\t\t//MM : changes : End ----\n\t\t\t/*\n\t\t\t * If the revisable entity VR exists then update the revisable\n\t\t\t * entity else create a new one.\n\t\t\t */\n\t\t\tif (reventityVR != null) \n\t\t\t{\n\t\t\t\tLCSLog.debug(\"sourceVersion -- \" + sourceVersion\n\t\t\t\t\t\t+ \" costsheetVersion - \" + costsheetVersion\n\t\t\t\t\t\t+ \" nrfCode -- \" + nrfCode\n\t\t\t\t\t\t+ \" materialDescription --\" + materialDescription\n\t\t\t\t\t\t+ \" IBTINSTOREMONTH--\" + IBTINSTOREMONTH\n\t\t\t\t\t\t+ \" style Number----\" + styleNumber);\n\n\t\t\t\t// API call to update the revisable entitity with new\n\t\t\t\t// source and cost details.\n\n\t\t\t\t// Updated for Build 6.14\n\t\t\t\tLCSLog.debug(CLASSNAME+\"createEntries()\"+\"calling updateRevisableEntry()\");\n\t\t\t\trevEntity=updateRevisableEntry(reventityVR, sourceVersion,\n\t\t\t\t\t\tcostsheetVersion,specVersion, nrfCode, materialDescription,\n\t\t\t\t\t\tsourceName, costName,specName, IBTINSTOREMONTH, styleNumber,bomMOAStringColl);\n\t\t\t\t\n\t\t\t\tLCSLog.debug(CLASSNAME+\"update revEntity---->\" +revEntity);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// API call to create fresh revisable entities.\n\n\t\t\t\t// Updated for Build 6.14\n\t\t\t\t\n\t\t\t\tLCSLog.debug(CLASSNAME+\"createEntries()\"+\"calling createRevisableEntry()\");\n\t\t\t\trevEntity=createRevisableEntry(product, lcsSku, materialNumber,\n\t\t\t\t\t\tsizedefVR, sourceVersion, costsheetVersion, specVersion, sourceName,\n\t\t\t\t\t\tcostName, specName, nrfCode, styleNumber, materialDescription,\n\t\t\t\t\t\tIBTINSTOREMONTH,bomMOAStringColl);\n\t\t\t\t\n\t\t\t\tLCSLog.debug(CLASSNAME+\"create revEntity---->\" +revEntity);\n\n\t\t\t}\n\t\t\t\n\n\t\t}\n\t\tcatch (WTException e) {\n\t\t\tLCSLog.error(\"WTException occurred!! \" + e.getMessage());\n\t\t}\n\t\tcatch (WTPropertyVetoException e) {\n\t\t\tLCSLog.error(\"WTPropertyVetoException occurred!! \" + e.getMessage());\n\t\t}\n\t\t\t\t\n\t\treturn revEntity;\n\n\t}", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "public void saveNew() {\r\n String name, compName;\r\n double price;\r\n int id, inv, max, min, machId;\r\n //Gets the ID of the last part in the inventory and adds 1 to it \r\n id = Inventory.getAllParts().get(Inventory.getAllParts().size() - 1).getId() + 1;\r\n name = nameField.getText();\r\n inv = Integer.parseInt(invField.getText());\r\n price = Double.parseDouble(priceField.getText());\r\n max = Integer.parseInt(maxField.getText());\r\n min = Integer.parseInt(minField.getText());\r\n\r\n if (inHouseSelected) {\r\n machId = Integer.parseInt(machineOrCompanyField.getText());\r\n Part newPart = new InHouse(id, name, price, inv, min, max, machId);\r\n Inventory.addPart(newPart);\r\n } else {\r\n compName = machineOrCompanyField.getText();\r\n Part newPart = new Outsourced(id, name, price, inv, min, max, compName);\r\n Inventory.addPart(newPart);\r\n }\r\n\r\n }", "public StavkaFaktureInsert() {\n initComponents();\n CBFakture();\n CBProizvod();\n }", "Vaisseau_seDeplacerVersLaDroite createVaisseau_seDeplacerVersLaDroite();", "public Revision(String revision) throws UnsupportedEncodingException{\n if (revision == null){\n throw new NullPointerException(\"Null revisons not allowed\");\n }\n this.revision = MessageLibrary.toBytes(revision);\n }", "@Override\n protected void commitCreates(ViewImpl view, ObjectInstance oi)\n {\n }", "@Override\r\n\tpublic void createPartControl(final Composite parent) {\r\n\t\t// Create the parent component\r\n\t\ttoolkit = new FormToolkit(Display.getDefault());\r\n\t\tform = toolkit.createForm(parent);\r\n\t\tform.setText(\"Vormerkungen\");\r\n\t\ttoolkit.decorateFormHeading(form);\r\n\r\n\t\tfinal Composite composite = form.getBody();\r\n\t\tcomposite.setLayout(new FillLayout());\r\n\r\n\t\tSashForm sash_prebooking = new SashForm(composite, SWT.HORIZONTAL);\r\n\r\n\t\t// groups-----------------------------------\r\n\t\tfinal SashForm sashForm_8 = new SashForm(sash_prebooking, SWT.VERTICAL);\r\n\r\n\t\tfinal Group richtungBruckGroup = new Group(sashForm_8, SWT.NONE);\r\n\t\trichtungBruckGroup.setLayout(new FillLayout());\r\n\t\trichtungBruckGroup.setForeground(CustomColors.COLOR_RED);\r\n\t\trichtungBruckGroup.setText(\"Richtung Bruck\");\r\n\r\n\t\tfinal SashForm sashForm_7 = new SashForm(sashForm_8, SWT.VERTICAL);\r\n\r\n\t\tfinal Group richtungKapfenbergGroup = new Group(sashForm_7, SWT.NONE);\r\n\t\trichtungKapfenbergGroup.setLayout(new FillLayout());\r\n\t\trichtungKapfenbergGroup.setText(\"Richtung Kapfenberg\");\r\n\r\n\t\tfinal Group richtungMariazellGroup = new Group(sashForm_7, SWT.NONE);\r\n\t\trichtungMariazellGroup.setLayout(new FillLayout());\r\n\t\trichtungMariazellGroup.setText(\"Richtung Mariazell\");\r\n\r\n\t\t// ----------------------------------------------\r\n\t\tfinal SashForm sashForm_9 = new SashForm(sash_prebooking, SWT.VERTICAL);\r\n\r\n\t\tfinal Group richtungGrazGroup = new Group(sashForm_9, SWT.NONE);\r\n\t\trichtungGrazGroup.setLayout(new FillLayout());\r\n\t\trichtungGrazGroup.setText(\"Richtung Graz\");\r\n\r\n\t\tfinal SashForm sashForm_1 = new SashForm(sashForm_9, SWT.VERTICAL);\r\n\r\n\t\tfinal Group richtungLeobenGroup = new Group(sashForm_1, SWT.NONE);\r\n\t\trichtungLeobenGroup.setLayout(new FillLayout());\r\n\t\trichtungLeobenGroup.setText(\"Richtung Leoben\");\r\n\r\n\t\tfinal Group richtungWienGroup = new Group(sashForm_1, SWT.NONE);\r\n\t\trichtungWienGroup.setLayout(new FillLayout());\r\n\t\trichtungWienGroup.setText(\"Richtung Wien\");\r\n\r\n\t\t// viewers\r\n\t\tviewerLeoben = createTableViewer(richtungLeobenGroup);\r\n\t\tviewerGraz = createTableViewer(richtungGrazGroup);\r\n\t\tviewerKapfenberg = createTableViewer(richtungKapfenbergGroup);\r\n\t\tviewerBruck = createTableViewer(richtungBruckGroup);\r\n\t\tviewerWien = createTableViewer(richtungWienGroup);\r\n\t\tviewerMariazell = createTableViewer(richtungMariazellGroup);\r\n\r\n\t\t// create the tooltip\r\n\t\ttooltipLeoben = new JournalViewTooltip(viewerLeoben.getControl());\r\n\t\ttooltipGraz = new JournalViewTooltip(viewerGraz.getControl());\r\n\t\ttooltipKapfenberg = new JournalViewTooltip(viewerKapfenberg.getControl());\r\n\t\ttooltipBruck = new JournalViewTooltip(viewerBruck.getControl());\r\n\t\ttooltipWien = new JournalViewTooltip(viewerWien.getControl());\r\n\t\ttooltipMariazell = new JournalViewTooltip(viewerMariazell.getControl());\r\n\r\n\t\t// show the tool tip when the selection has changed\r\n\t\tviewerLeoben.addSelectionChangedListener(createTooltipListener(viewerLeoben, tooltipLeoben));\r\n\t\tviewerGraz.addSelectionChangedListener(createTooltipListener(viewerGraz, tooltipGraz));\r\n\t\tviewerKapfenberg.addSelectionChangedListener(createTooltipListener(viewerKapfenberg, tooltipKapfenberg));\r\n\t\tviewerBruck.addSelectionChangedListener(createTooltipListener(viewerBruck, tooltipBruck));\r\n\t\tviewerWien.addSelectionChangedListener(createTooltipListener(viewerWien, tooltipWien));\r\n\t\tviewerMariazell.addSelectionChangedListener(createTooltipListener(viewerMariazell, tooltipMariazell));\r\n\r\n\t\t// sort the table by default\r\n\t\tviewerLeoben.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\t\tviewerGraz.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\t\tviewerKapfenberg.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\t\tviewerBruck.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\t\tviewerWien.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\t\tviewerMariazell.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\r\n\t\tmakeActionsBruck(viewerBruck);\r\n\t\tmakeActionsKapfenberg(viewerKapfenberg);\r\n\t\tmakeActionsLeoben(viewerLeoben);\r\n\t\tmakeActionsMariazell(viewerMariazell);\r\n\t\tmakeActionsGraz(viewerGraz);\r\n\t\tmakeActionsWien(viewerWien);\r\n\r\n\t\thookContextMenuLeoben(viewerLeoben);\r\n\t\thookContextMenuGraz(viewerGraz);\r\n\t\thookContextMenuWien(viewerWien);\r\n\t\thookContextMenuMariazell(viewerMariazell);\r\n\t\thookContextMenuBruck(viewerBruck);\r\n\t\thookContextMenuKapfenberg(viewerKapfenberg);\r\n\r\n\t\t// add the form actions\r\n\t\tcreateToolBarActions();\r\n\r\n\t\t// apply the filters\r\n\t\tapplyFilters();\r\n\r\n\t\t// register listeners to keep in track\r\n\t\tNetWrapper.registerListener(this, Transport.class);\r\n\t\tUiWrapper.getDefault().registerListener(this);\r\n\r\n\t\t// initialize the view with current data\r\n\t\tinitView();\r\n\t}", "public EntityBundleCreate() {}", "Documento createDocumento();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tGUIViewTransactionHistory h = new GUIViewTransactionHistory(true);\n\t\t\t}", "public void createAgendamento() {\n\n if (tbagendamento.getTmdataagendamento().after(TimeControl.getDateIni())) {\n if (agendamentoLogic.createTbagendamento(tbagendamento)) {\n AbstractFacesContextUtils.redirectPage(PagesUrl.URL_AGENDAMENTO_LIST);\n AbstractFacesContextUtils.addMessageInfo(\"Agendamento cadastrado com sucesso.\");\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"Falhar ao realizado cadastro do agendamento.\");\n }\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"verifique se a data de agendamento esta correta.\");\n }\n }", "public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}", "void fillEditTransactionForm(Transaction transaction);", "private void makeRequest() {\n\t\tRequest request = new Request(RequestCode.GET_REVISION_HISTORY);\n\t\trequest.setDocumentName(tabs.getTitleAt(tabs.getSelectedIndex()));\n\t\ttry {\n\t\t\toos.writeObject(request);\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "public void saveAndCreateNew() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"saveAndCreateNewButton\").click();\n\t}", "@Test(expected = IllegalArgumentException.class)\r\n public final void testCreateNewVersionForDesignDevContestFailureTCSubjectNull() throws Exception {\r\n directServiceFacadeBean.createNewVersionForDesignDevContest(null, 1);\r\n }", "private static Version createNewVersion(Version.VERSION_TYPE versionType, String username, String description,\r\n String oldVersionName) {\r\n Version version = new Version();\r\n String newVersionName = version.getNewVersionName(oldVersionName, versionType);\r\n\r\n version.setVersion(newVersionName);\r\n version.setVersionComment(description);\r\n version.setVersionDate(DateBean.toCompactString());\r\n version.setVersionUser(username);\r\n\r\n return version;\r\n }", "private void insertFullActivity(FormActivityDef activity, long revisionId) {\n JdbiActivity jdbiActivity = getJdbiActivity();\n JdbiActivityVersion jdbiVersion = getJdbiActivityVersion();\n ActivityI18nDao activityI18nDao = getActivityI18nDao();\n SectionBlockDao sectionBlockDao = getSectionBlockDao();\n TemplateDao templateDao = getTemplateDao();\n\n long activityId = activity.getActivityId();\n long versionId = jdbiVersion.insert(activity.getActivityId(), activity.getVersionTag(), revisionId);\n activity.setVersionId(versionId);\n\n Map<String, String> names = activity.getTranslatedNames().stream()\n .collect(Collectors.toMap(Translation::getLanguageCode, Translation::getText));\n Map<String, String> secondNames = activity.getTranslatedSecondNames().stream()\n .collect(Collectors.toMap(Translation::getLanguageCode, Translation::getText));\n Map<String, String> titles = activity.getTranslatedTitles().stream()\n .collect(Collectors.toMap(Translation::getLanguageCode, Translation::getText));\n Map<String, String> subtitles = activity.getTranslatedSubtitles().stream()\n .collect(Collectors.toMap(Translation::getLanguageCode, Translation::getText));\n Map<String, String> descriptions = activity.getTranslatedDescriptions().stream()\n .collect(Collectors.toMap(Translation::getLanguageCode, Translation::getText));\n\n List<ActivityI18nDetail> details = new ArrayList<>();\n for (var entry : names.entrySet()) {\n String isoLangCode = entry.getKey();\n String name = entry.getValue();\n details.add(new ActivityI18nDetail(\n activityId,\n isoLangCode,\n name,\n secondNames.getOrDefault(isoLangCode, null),\n titles.getOrDefault(isoLangCode, null),\n subtitles.getOrDefault(isoLangCode, null),\n descriptions.getOrDefault(isoLangCode, null),\n revisionId\n ));\n }\n\n activityI18nDao.insertDetails(details);\n activityI18nDao.insertSummaries(activityId, activity.getTranslatedSummaries());\n\n FormType formType = activity.getFormType();\n int numRows = jdbiActivity.insertFormActivity(activityId, jdbiActivity.getFormTypeId(formType));\n if (numRows != 1) {\n throw new DaoException(\"Inserted \" + numRows + \" form activity rows for activity \" + activityId);\n }\n\n sectionBlockDao.insertBodySections(activityId, activity.getSections(), revisionId);\n\n Long introductionSectionId = null;\n if (activity.getIntroduction() != null) {\n introductionSectionId = sectionBlockDao.insertSection(activityId, activity.getIntroduction(), revisionId);\n }\n\n Long closingSectionId = null;\n if (activity.getClosing() != null) {\n closingSectionId = sectionBlockDao.insertSection(activityId, activity.getClosing(), revisionId);\n }\n\n Long readonlyHintTemplateId = null;\n if (activity.getReadonlyHintTemplate() != null) {\n readonlyHintTemplateId = templateDao.insertTemplate(activity.getReadonlyHintTemplate(), revisionId);\n }\n\n Long lastUpdatedTextTemplateId = null;\n if (activity.getLastUpdatedTextTemplate() != null) {\n lastUpdatedTextTemplateId = templateDao.insertTemplate(activity.getLastUpdatedTextTemplate(), revisionId);\n }\n\n getJdbiFormActivitySetting().insert(\n activityId, activity.getListStyleHint(), introductionSectionId,\n closingSectionId, revisionId, readonlyHintTemplateId, activity.getLastUpdated(), lastUpdatedTextTemplateId,\n activity.shouldSnapshotSubstitutionsOnSubmit(), activity.shouldSnapshotAddressOnSubmit());\n }", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }", "@Override\n\tpublic void atualizar() {\n\t\t\n\t\t \n\t\t String idstring = id.getText();\n\t\t UUID idlong = UUID.fromString(idstring);\n\t\t \n\t\t PedidoCompra PedidoCompra = new PedidoCompra();\n\t\t\tPedidoCompra.setId(idlong);\n\t\t\tPedidoCompra.setAtivo(true);\n//\t\t\tPedidoCompra.setNome(nome.getText());\n\t\t\tPedidoCompra.setStatus(StatusPedido.valueOf(status.getSelectionModel().getSelectedItem().name()));\n//\t\t\tPedidoCompra.setSaldoinicial(saldoinicial.getText());\n\t\t\tPedidoCompra.setData(new Date());\n\t\t\tPedidoCompra.setIspago(false);\n\t\t\tPedidoCompra.setData_criacao(new Date());\n//\t\t\tPedidoCompra.setFornecedor(fornecedores.getSelectionModel().getSelectedItem());\n\t\t\tPedidoCompra.setFornecedor(cbfornecedores.getSelectionModel().getSelectedItem());\n\t\t\tPedidoCompra.setTotal(PedidoCompra.CalcularTotal(PedidoCompra.getItems()));\n\t\t\tPedidoCompra.setTotalpago(PedidoCompra.CalculaTotalPago(PedidoCompra.getFormas()));\n\t\t\t\n\t\t\t\n\t\t\tgetservice().edit(PedidoCompra);\n\t\t\tupdateAlert(PedidoCompra);\n\t\t\tclearFields();\n\t\t\tdesligarLuz();\n\t\t\tloadEntityDetails();\n\t\t\tatualizar.setDisable(true);\n\t\t\tsalvar.setDisable(false);\n\t\t\t\n\t\t \n\t\t \n\t\tsuper.atualizar();\n\t}", "public MostraVenta(String idtrasp, Object[][] clienteM1, Object[][] vendedorM1, String idmarc, String responsable,ListaTraspaso panel)\n{\n this.padre = panel;\n this.clienteM = clienteM1;\n this.vendedorM = vendedorM1;\n this.idtraspaso= idtrasp;\n this.idmarca=idmarc;\n//this.tipoenvioM = new String[]{\"INGRESO\", \"TRASPASO\"};\n String tituloTabla =\"Detalle Venta\";\n // padre=panel;\n String nombreBoton1 = \"Registrar\";\n String nombreBoton2 = \"Cancelar\";\n // String nombreBoton3 = \"Eliminar Empresa\";\n\n setId(\"win-NuevaEmpresaForm1\");\n setTitle(tituloTabla);\n setWidth(400);\n setMinWidth(ANCHO);\n setHeight(250);\n setLayout(new FitLayout());\n setPaddings(WINDOW_PADDING);\n setButtonAlign(Position.CENTER);\n setCloseAction(Window.CLOSE);\n setPlain(true);\n\n but_aceptar = new Button(nombreBoton1);\n but_cancelar = new Button(nombreBoton2);\n // addButton(but_aceptarv);\n addButton(but_aceptar);\n addButton(but_cancelar);\n\n formPanelCliente = new FormPanel();\n formPanelCliente.setBaseCls(\"x-plain\");\n //formPanelCliente.setLabelWidth(130);\n formPanelCliente.setUrl(\"save-form.php\");\n formPanelCliente.setWidth(ANCHO);\n formPanelCliente.setHeight(ALTO);\n formPanelCliente.setLabelAlign(Position.LEFT);\n\n formPanelCliente.setAutoWidth(true);\n\n\ndat_fecha1 = new DateField(\"Fecha\", \"d-m-Y\");\n fechahoy = new Date();\n dat_fecha1.setValue(fechahoy);\n dat_fecha1.setReadOnly(true);\n\ncom_vendedor = new ComboBox(\"Vendedor al que enviamos\", \"idempleado\");\ncom_cliente = new ComboBox(\"Clientes\", \"idcliente\");\n//com_tipo = new ComboBox(\"Tipo Envio\", \"idtipo\");\n initValues1();\n\n\n\n formPanelCliente.add(dat_fecha1);\n// formPanelCliente.add(com_tipo);\n// formPanelCliente.add(tex_nombreC);\n// formPanelCliente.add(tex_codigoBarra);\n // formPanelCliente.add(tex_codigoC);\nformPanelCliente.add(com_vendedor);\n formPanelCliente.add(com_cliente);\n add(formPanelCliente);\nanadirListenersTexfield();\n addListeners();\n\n }", "@Command\n public void nuevaMateria() {\n\t\t\n\t\tWindow window = (Window)Executions.createComponents(\n \"/WEB-INF/include/Mantenimiento/Materias/vtnMaterias.zul\", null, null);\n window.doModal();\n }", "TCommit createCommit();", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "public String createFormValidValueComponent(FormValidValue newValidValue, String parentId, String userName)\n //throws DMLException \n {\n\n // check if the user has the privilege to create valid value\n // This check only need to be at the form level -skakkodi\n /** boolean create = \n this.hasCreate(newValidValue.getCreatedBy(), \"QUEST_CONTENT\", \n newValidValue.getConteIdseq());\n if (!create) {\n DMLException dml = new DMLException(\"The user does not have the privilege to create valid value.\");\n dml.setErrorCode(INSUFFICIENT_PRIVILEGES);\n throw dml;\n }\n **/\n \n \n InsertFormValidValue insertValidValue = new InsertFormValidValue(this.getDataSource());\n Map out = insertValidValue.executInsertCommand(newValidValue,parentId);\t\t//JR417 formDesc, formText and formIdVersion is not supposed to be empty (fixed)\n\n String returnCode = (String) out.get(\"p_return_code\");\n String returnDesc = (String) out.get(\"p_return_desc\");\t//JR417 gave error: ORA-01400: cannot insert NULL into (\"SBREXT\".\"QUEST_CONTENTS_EXT\".\"VERSION\") etc\n String newFVVIdSeq = (String) out.get(\"p_val_idseq\");\n \n if (!StringUtils.doesValueExist(returnCode)) {\n updateValueMeaning(newFVVIdSeq, newValidValue.getFormValueMeaningText(), \n newValidValue.getFormValueMeaningDesc(), userName);\n// return newFVVIdSeq;\n }\n //JR417 begin KISS\n else{\n// DMLException dml = new DMLException(returnDesc);\n// dml.setErrorCode(this.ERROR_CREATEING_VALID_VALUE);\n// throw dml;\n \tlogger.info(\"JDBCFormValidValueDAOV2.java#createFormValidValueComponent Failed to create VV, error = [\" + returnDesc + \"]\");\n }\n return newFVVIdSeq;\n //JR417 end\n }", "GitCommit(RevCommit anRC) { _rev = anRC; }", "@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "protected void shoAddNewDataEditor () {\n\t\t\n\t\t\n\t\tinstantiateDataForAddNewTemplate(new AsyncCallback< DATA>() {\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t// ini tidak mungkin gagal\n\t\t\t\t\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void onSuccess(final DATA result) {\n\t\t\t\teditorGenerator.instantiatePanel(new ExpensivePanelGenerator<BaseDualControlDataEditor<PK,DATA>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onPanelGenerationComplete(\n\t\t\t\t\t\t\tBaseDualControlDataEditor<PK, DATA> widget) {\n\t\t\t\t\t\tconfigureAndPlaceEditorPanel(widget);\n\t\t\t\t\t\twidget.requestDoubleSubmitToken(null);\n\t\t\t\t\t\twidget.addAndEditNewData(result);\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\t\n\t\t\n\t}", "public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }", "@GetMapping(\"/cliente/new\")\n\tpublic String newCliente(Model model) {\n\t\tmodel.addAttribute(\"cliente\", new Cliente());\n\t\tControllerHelper.setEditMode(model, false);\n\t\t\n\t\t\n\t\treturn \"cadastro-cliente\";\n\t\t\n\t}", "private void clickCreateChildModel(FMEditor fmEditor, VMFile file) {\n ClickHandler clickHandler = new ClickHandler() {\n\n @Override\n public void onClick(MenuItemClickEvent event) {\n List<DrawRect> drawRects = fmEditor.nodeManager.getSelectDrawRect();\n FMDrawNode drawNode = fmEditor.getDrawRectMap().get(drawRects.get(0).hashCode());\n FMNode node = drawNode.getFmNode();\n\n editResourceService.getDirId(file.getId(), new AsyncCallback<Long>() {\n\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n\n @Override\n public void onSuccess(Long dirID) {\n VMFile childModelFile = new VMFile();\n childModelFile.setExtension(Extension.FM);\n String fileName = file.getName() + \"_child\";\n\n editResourceService.getResources(dirID, new AsyncCallback<List<VMResource>>() {\n\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n\n @Override\n public void onSuccess(List<VMResource> result) {\n // check duplicate file name under same directory and set file name\n childModelFile.setName(checkDuplicateName(result, fileName, childModelFile.getExtension(), 0));\n ZGCreateFileCommand createFileCommand = new ZGCreateFileCommand(editResourceService, viewHandler, dirID, childModelFile, null);\n createFileCommand.addCommandListener(new CommandListener() {\n\n @Override\n public void undoEvent() {\n treeGrid.deselectAllRecords();\n fileTreeNodeFactory.removeVMResource(createFileCommand.getFileId());\n fileTreeNodeFactory.refresh(editorTabSet, tree, tabRegs);\n treeGrid.sort();\n treeGrid.redraw();\n }\n\n @Override\n public void redoEvent() {\n createCallbackFile(fileTreeNodeFactory.findTreeNode(tree, createFileCommand.getParentId()), createFileCommand.getFile(),\n createFileCommand.getFileId(), true);\n }\n\n @Override\n public void executeEvent() {\n createCallbackFile(fileTreeNodeFactory.findTreeNode(tree, createFileCommand.getParentId()), createFileCommand.getFile(),\n createFileCommand.getFileId(), true);\n // set node reference\n editResourceService.getFileContent(createFileCommand.getFileId(), new AsyncCallback<byte[]>() {\n\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n\n @Override\n public void onSuccess(byte[] result) {\n BinaryResourceImpl r = new BinaryResourceImpl();\n ByteArrayInputStream bi = new ByteArrayInputStream(result);\n EPackage.Registry.INSTANCE.put(FMPackage.eNS_URI, FMPackage.eINSTANCE);\n\n FMRoot root = null;\n try {\n r.load(bi, EditOptions.getDefaultLoadOptions());\n root = (FMRoot) r.getContents().get(0);\n } catch (IOException e) {\n SC.warn(e.getMessage());\n }\n String refFileName = childModelFile.getName() + \".\" + childModelFile.getExtensionStr();\n CompoundCommand cmd = FMEditorCommandProvider.getInstance().setReferenceNode(node, createFileCommand.getFileId(),\n root.getNode().getName(), refFileName, root.getId());\n fmEditor.getEditManager().execute(cmd.unwrap());\n drawNode.getDrawRect().setTitle(node.getName() + \":\" + node.getRefName() + \"\\n(\" + refFileName + \")\");\n\n selectRootNode(editorTabSet.getSelectedTab());\n }\n });\n }\n\n @Override\n public void bindEvent() {\n viewHandler.clear();\n registerRightClickEvent();\n }\n });\n CompoundCommand c = new CompoundCommand();\n c.append(createFileCommand);\n manager.execute(c.unwrap());\n }\n });\n }\n });\n }\n };\n fmEditor.addCreateChildModelHandler(clickHandler);\n }", "@Override\r\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\r\n\t\t\t\tvenEditarPacks.init(\"NEW\",null);\r\n\t\t\t\tUI.getCurrent().addWindow(venEditarPacks);\r\n\t\t\t\t\r\n\t\t\t}", "private void insertPerform(){\n \tif(!verify()){\n \t\treturn;\n \t}\n \tString val=new String(\"\");\n \tval=val+\"'\"+jTextField1.getText()+\"', \"; // poNo\n \tval=val+\"'\"+\n \t\tinventorycontroller.util.DateUtil.getRawFormat(\n \t\t\t(java.util.Date)jXDatePicker1.getValue()\n \t\t)\n \t\t+\"', \"; // poDate\n \tval=val+\"'\"+vndList[jTextField2.getSelectedIndex()-1]+\"', \"; // vndNo\n \tval=val+\"'\"+jTextField3.getText()+\"', \"; // qtnNo\n \tval=val+\"'\"+\n \t\tinventorycontroller.util.DateUtil.getRawFormat(\n \t\t\t(java.util.Date)jXDatePicker2.getValue()\n \t\t)\n \t\t+\"', \"; // qtnDate\n \tval=val+\"'\"+poAmount+\"', \"; // poTotal\n \tval=val+\"'pending', \"; // poStatus\n \tval=val+\"'\"+jEditorPane1.getText()+\"' \"; // remark\n \t\n \ttry{\n \t\tdbInterface1.cmdInsert(\"poMaster\", val);\n \t\tinsertPoBomDesc();\n \t\tinsertPoDesc();\n\t \tupdateBOM();\n \t}\n \tcatch(java.sql.SQLException ex){\n \t\tSystem.out.println (ex);\n \t}\n \tresetPerform();\n }", "@DISPID(1)\r\n\t// = 0x1. The runtime will prefer the VTID if present\r\n\t@VTID(7)\r\n\tjava.util.Date revisionDateTime();", "public Angkot createAngkot(Angkot angkot) {\n \n // membuat sebuah ContentValues, yang berfungsi\n // untuk memasangkan data dengan nama-nama\n // kolom pada database\n ContentValues values = new ContentValues();\n values.put(HelperAngkot.COLUMN_NAME, angkot.getName());\n values.put(HelperAngkot.COLUMN_DESCRIPTION, angkot.getDescription());\n values.put(HelperAngkot.COLUMN_TIME, angkot.getTime());\n \n // mengeksekusi perintah SQL insert data\n // yang akan mengembalikan sebuah insert ID \n long insertId = database.insert(HelperAngkot.TABLE_NAME, null,\n values);\n \n // setelah data dimasukkan, memanggil perintah SQL Select \n // menggunakan Cursor untuk melihat apakah data tadi benar2 sudah masuk\n // dengan menyesuaikan ID = insertID \n Cursor cursor = database.query(HelperAngkot.TABLE_NAME,\n allColumns, HelperAngkot.COLUMN_ID + \" = \" + insertId, null,\n null, null, null);\n \n // pindah ke data paling pertama \n cursor.moveToFirst();\n \n // mengubah objek pada kursor pertama tadi\n // ke dalam objek barang\n Angkot newAngkot = cursorToAngkot(cursor);\n \n // close cursor\n cursor.close();\n \n // mengembalikan barang baru\n return newAngkot;\n }", "public ArrayList<LCSRevisableEntity> prepareToCreateEntries(String strActivity) \n\t{\n\t\tLCSLog.debug(CLASSNAME+\"prepareToCreateEntries(),:\"+\"ACTIVITY:\" +strActivity);\n ArrayList<LCSRevisableEntity> listOfRev=new ArrayList<LCSRevisableEntity>();\n LCSRevisableEntity entries=null;\n\t\t\n String selectedcolors = this.requesttable.get(\"selectedcolors\");\n\tLCSLog.debug(CLASSNAME+\"prepareToCreateEntries *************1**************\");\n\t\ttry {\n\t\t\tif (FormatHelper.hasContent(selectedcolors)) {\n\t\t\tLCSLog.debug(\"prepareToCreateEntries *************2**************\");\n\t\t\t\tCollection stagingItems = MOAHelper\n\t\t\t\t\t\t.getMOACollection(selectedcolors);\n\t\t\tLCSLog.debug(CLASSNAME+\"prepareToCreateEntries *************3**************\");\n\t\t\t\tLCSLog.debug(CLASSNAME+\"stagingItems.size() -- \" + stagingItems.size());\n\t\t\t\tIterator checkboxListIter = stagingItems.iterator();\n\t\t\t\twhile (checkboxListIter.hasNext()) \n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tString id = (String) checkboxListIter.next();\n\t\t\t\t\tLCSLog.debug(CLASSNAME+\"prepareToCreateEntries\"+\"Calling createEntries()\");\n\t\t\t\t\tentries=createEntries(id);\n\t\t\t\t\t\n\t\t\t\t\tLCSLog.debug(CLASSNAME+\"ENTRIES::--->\" +entries);\n\t\t\t\t\tlistOfRev.add(entries);\n\t\t\t\t LCSLog.debug(CLASSNAME+\"It is sucesess of the creat revesiable entity\" +listOfRev.size());\t\n\t\t\t\t}\n\t\t\t\tLCSLog.debug(\"prepareToCreateEntries *************4**************\");\n\t\t\t\tLCSRevisableEntityClientModel masterModel = new LCSRevisableEntityClientModel();\n\t\t\t\tLCSLog.debug(\"prepareToCreateEntries *************5**************\");\n\t\t\t\tmasterModel.load(FormatHelper.getObjectId(this.masterRevEntity));\n\t\t\t\t\t\tLCSLog.debug(\"prepareToCreateEntries *************6**************\");\n\t\t\t\tmasterModel.setValue(LFIBTConstants.IBTMASTERUPDATECHECK,\n\t\t\t\t\t\tBoolean.TRUE);\n\t\t\t//Added for 7.6//\n\t\t\t\tif(strActivity.equalsIgnoreCase(\"COSTSHEET\")){\n\t\t\t\t\tmasterModel.setValue(LFIBTConstants.IBTACTIVITYSTATUS,\n\t\t\t\t\t\t\"COSTSHEET\");\n\t\t\t\t}else{\n\t\t\t\t\tmasterModel.setValue(LFIBTConstants.IBTACTIVITYSTATUS,\n\t\t\t\t\t\t\"PERSIST\");\n\t\t\t\t}\t\t\t\t\n\t\t\t\t//Added for 7.6//\n\t\t\t\t\t\tLCSLog.debug(CLASSNAME+\"prepareToCreateEntries *************7**************\");\n\t\t\t\tmasterModel.save();\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (WTException exp) \n\t\t{\n\t\t\tLCSLog.error(\"WTException occurred!! \" + exp.getMessage());\n\n\t\t}\n\t\tcatch (WTPropertyVetoException exp) {\n\t\t\tLCSLog.error(\"WTPropertyVetoException occurred!!\");\n\n\t\t}\n\t\treturn listOfRev;\n\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Title = new javax.swing.JLabel();\n NAME = new javax.swing.JLabel();\n txt_name = new javax.swing.JTextField();\n PROVIDER = new javax.swing.JLabel();\n ComboBox_provider = new javax.swing.JComboBox<>();\n CATEGORY = new javax.swing.JLabel();\n ComboBox_category = new javax.swing.JComboBox<>();\n Trademark = new javax.swing.JLabel();\n ComboBox_trademark = new javax.swing.JComboBox<>();\n COLOR = new javax.swing.JLabel();\n ComboBox_color = new javax.swing.JComboBox<>();\n SIZE = new javax.swing.JLabel();\n ComboBox_size = new javax.swing.JComboBox<>();\n MATERIAL = new javax.swing.JLabel();\n ComboBox_material = new javax.swing.JComboBox<>();\n PRICE = new javax.swing.JLabel();\n txt_price = new javax.swing.JTextField();\n SAVE = new javax.swing.JButton();\n CANCEL = new javax.swing.JButton();\n Background = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n Title.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n Title.setForeground(new java.awt.Color(255, 255, 255));\n Title.setText(\"NEW PRODUCT\");\n getContentPane().add(Title, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 33, -1, -1));\n\n NAME.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n NAME.setForeground(new java.awt.Color(255, 255, 255));\n NAME.setText(\"Name\");\n getContentPane().add(NAME, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 150, 70, 30));\n\n txt_name.setBackground(new java.awt.Color(51, 51, 51));\n txt_name.setForeground(new java.awt.Color(255, 255, 255));\n getContentPane().add(txt_name, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 150, 100, 30));\n\n PROVIDER.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n PROVIDER.setForeground(new java.awt.Color(255, 255, 255));\n PROVIDER.setText(\"Provider\");\n getContentPane().add(PROVIDER, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 200, 70, 30));\n\n ComboBox_provider.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_provider.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_provider.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_provider, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 200, 100, 30));\n\n CATEGORY.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n CATEGORY.setForeground(new java.awt.Color(255, 255, 255));\n CATEGORY.setText(\"Category\");\n getContentPane().add(CATEGORY, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 250, 70, 30));\n\n ComboBox_category.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_category.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_category.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_category, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 250, 100, 30));\n\n Trademark.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n Trademark.setForeground(new java.awt.Color(255, 255, 255));\n Trademark.setText(\"Trademark\");\n getContentPane().add(Trademark, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 300, 70, 30));\n\n ComboBox_trademark.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_trademark.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_trademark.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n ComboBox_trademark.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboBox_trademarkActionPerformed(evt);\n }\n });\n getContentPane().add(ComboBox_trademark, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 300, 100, 30));\n\n COLOR.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n COLOR.setForeground(new java.awt.Color(255, 255, 255));\n COLOR.setText(\"Color\");\n getContentPane().add(COLOR, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 150, 70, 30));\n\n ComboBox_color.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_color.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_color.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_color, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 150, 100, 30));\n\n SIZE.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n SIZE.setForeground(new java.awt.Color(255, 255, 255));\n SIZE.setText(\"Size\");\n getContentPane().add(SIZE, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 200, 70, 30));\n\n ComboBox_size.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_size.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_size.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_size, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 200, 100, 30));\n\n MATERIAL.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n MATERIAL.setForeground(new java.awt.Color(255, 255, 255));\n MATERIAL.setText(\"Material\");\n getContentPane().add(MATERIAL, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 250, 70, 30));\n\n ComboBox_material.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_material.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_material.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_material, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 250, 100, 30));\n\n PRICE.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n PRICE.setForeground(new java.awt.Color(255, 255, 255));\n PRICE.setText(\"Price\");\n getContentPane().add(PRICE, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 300, 70, 30));\n\n txt_price.setBackground(new java.awt.Color(51, 51, 51));\n txt_price.setForeground(new java.awt.Color(255, 255, 255));\n txt_price.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_priceActionPerformed(evt);\n }\n });\n getContentPane().add(txt_price, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 300, 100, 30));\n\n SAVE.setBackground(new java.awt.Color(25, 25, 25));\n SAVE.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar-A.png\"))); // NOI18N\n SAVE.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n SAVE.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar-B.png\"))); // NOI18N\n SAVE.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar.png\"))); // NOI18N\n SAVE.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SAVEActionPerformed(evt);\n }\n });\n getContentPane().add(SAVE, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 480, 50, 50));\n\n CANCEL.setBackground(new java.awt.Color(25, 25, 25));\n CANCEL.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no-A.png\"))); // NOI18N\n CANCEL.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n CANCEL.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no-B.png\"))); // NOI18N\n CANCEL.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no.png\"))); // NOI18N\n CANCEL.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CANCELActionPerformed(evt);\n }\n });\n getContentPane().add(CANCEL, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 480, 50, 50));\n\n Background.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/fondo_windows2.jpg\"))); // NOI18N\n getContentPane().add(Background, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n pack();\n }", "@Override\n\tpublic void create(IWizardEntity entity, WizardRunner runner) {\n\t\t\n\t}", "@Nonnull\n private Observable<String> beginRevision() {\n JsonObject revision = new JsonObject()\n .put(Revision.DATE, Instant.now())\n .put(Revision.STATE, Revision.State.PENDING)\n .put(Revision.CHANGES, new JsonArray());\n\n return doCreate(REVISIONS_CNAME, revision);\n }", "private static void CrearVenda (BaseDades bd, int idproducte, int quantitat) {\n Producte prod = bd.consultarUnProducte(idproducte);\n java.sql.Date dataActual = getCurrentDate();//Data SQL\n if (prod != null) {\n if (bd.actualitzarStock(prod, quantitat, dataActual)>0) {//Hi ha estoc\n String taula = \"VENDES\";\n int idvenda = bd.obtenirUltimID(taula);\n Venda ven = new Venda(idvenda, prod.getIdproducte(), dataActual, quantitat);\n \n if (bd.inserirVenda(ven)>0)\n System.out.println(\"VENDA INSERIDA...\");\n } else\n System.out.println(\"NO ES POT FER LA VENDA, NO HI HA ESTOC...\");\n \n } else {\n System.out.println(\"NO HI HA EL PRODUCTE\");\n }\n }", "public void createVersion() {\r\n\t\tif (!active) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (applicationId == null) {\r\n\t\t\tcreateApplication();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tJSONObject versionJson = getJSonResponse(Unirest.post(url + VERSION_API_URL)\r\n\t\t\t\t\t.field(\"name\", SeleniumTestsContextManager.getApplicationVersion())\r\n\t\t\t\t\t.field(\"application\", applicationId));\r\n\t\t\tversionId = versionJson.getInt(\"id\");\r\n\t\t} catch (UnirestException | JSONException e) {\r\n\t\t\tthrow new SeleniumRobotServerException(\"cannot create version\", e);\r\n\t\t}\r\n\t}", "public FormInserir() {\n initComponents();\n }", "private void nuevo(HttpPresentationComms comms) throws HttpPresentationException, KeywordValueException {\n/* 190 */ this.pagHTML.getElement_operacion().setValue(\"C\");\n/* */ try {\n/* 192 */ HTMLElement sel = this.pagHTML.getElementBtnEliminar();\n/* 193 */ sel.getParentNode().removeChild(sel);\n/* */ }\n/* 195 */ catch (Exception e) {}\n/* */ \n/* 197 */ activarVista(\"nuevo\");\n/* 198 */ HTMLSelectElement combo = this.pagHTML.getElementIdTipoRecurso();\n/* 199 */ comboMultivalores(combo, \"tipo_recurso\", \"\", true);\n/* */ \n/* 201 */ combo = this.pagHTML.getElementIdProcedimiento();\n/* 202 */ llenarCombo(combo, \"prc_procedimientos\", \"id_procedimiento\", \"objetivo\", \"1=1\", \"\", true);\n/* */ \n/* 204 */ combo = this.pagHTML.getElementEstado();\n/* 205 */ comboMultivalores(combo, \"estado_activo_inactivo\", \"\", true);\n/* */ \n/* 207 */ this.pagHTML.getElementIdRecurso().setReadOnly(true);\n/* 208 */ this.pagHTML.getElementIdRecurso().setValue(\"0\");\n/* */ }" ]
[ "0.6351119", "0.6130921", "0.5753261", "0.5655765", "0.55065143", "0.5479765", "0.5447062", "0.5445829", "0.5402487", "0.53907126", "0.5363941", "0.53611064", "0.5331717", "0.5323292", "0.52396", "0.5234202", "0.5224987", "0.519005", "0.51568", "0.5152163", "0.51396215", "0.5120248", "0.5107908", "0.510321", "0.509873", "0.5097097", "0.5071951", "0.50677717", "0.50628024", "0.5044383", "0.50431484", "0.5035506", "0.5032964", "0.5031426", "0.50289345", "0.5027206", "0.50196457", "0.5017753", "0.5006964", "0.50013375", "0.4997764", "0.49949104", "0.49909034", "0.4985567", "0.49829003", "0.4980884", "0.49796593", "0.4975606", "0.4963507", "0.49466005", "0.49450922", "0.49437672", "0.49403587", "0.49353507", "0.49267697", "0.49239647", "0.4917749", "0.49170643", "0.49075142", "0.49068987", "0.48958018", "0.48919263", "0.48880985", "0.4888052", "0.48840126", "0.48806846", "0.4871379", "0.48598284", "0.48585337", "0.4856097", "0.48527747", "0.48420018", "0.48364398", "0.48339087", "0.4832575", "0.48301095", "0.4827308", "0.48245376", "0.4820165", "0.48132184", "0.4812233", "0.48008943", "0.4793149", "0.47860187", "0.4780673", "0.47784477", "0.47779593", "0.4776107", "0.477494", "0.47734308", "0.47700104", "0.4767872", "0.47667742", "0.47643578", "0.47635183", "0.47634107", "0.47599325", "0.47596988", "0.4759647", "0.4759533", "0.4759162" ]
0.0
-1
estado de conciliacion bancaria de la cuenta
public void beforeEdit(Librerias.ZafTblUti.ZafTblEvt.ZafTableEvent evt) { // strEstCncDia=tblDat.getValueAt(tblDat.getSelectedRow(), INT_TBL_DAT_EST_CON)==null?"":tblDat.getValueAt(tblDat.getSelectedRow(), INT_TBL_DAT_EST_CON).toString(); // if(strEstCncDia.equals("S")){ // mostrarMsgInf("<HTML>La cuenta ya fue conciliada.<BR>Desconcilie la cuenta en el documento a modificar y vuelva a intentarlo.</HTML>"); //// fireAsiDiaListener(new ZafAsiDiaEvent(this), INT_BEF_EDI_CEL); // objTblCelEdiTxtVcoCta.setCancelarEdicion(true); // } // else if(strEstCncDia.equals("B")){ // mostrarMsgInf("<HTML>No se puede cambiar el valor de la cuenta<BR>Este valor proviene de la transferencia ingresada.</HTML>"); // objTblCelEdiTxtVcoCta.setCancelarEdicion(true); // } // else{ // //Permitir de manera predeterminada la operaci�n. // blnCanOpe=false; // //Generar evento "beforeEditarCelda()". // fireAsiDiaListener(new ZafAsiDiaEvent(this), INT_BEF_EDI_CEL); // //Permitir/Cancelar la edici�n de acuerdo a "cancelarOperacion". // if (blnCanOpe) // { // objTblCelEdiTxtVcoCta.setCancelarEdicion(true); // } // } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean statusCerradura(){\n return cerradura.estado();\r\n }", "public boolean getEstadoConexion() { return this.dat.getEstadoConexion(); }", "public boolean getEstadoConexion() { return this.dat.getEstadoConexion(); }", "public void comecar() { setEstado(estado.comecar()); }", "public String getEstadoCivil() {\n return this.estadoCivil;\n }", "public void setEstado(String p) { this.estado = p; }", "public com.gvt.www.metaData.configuradoronline.DadosStatusBloqueio getStatusInstancia() {\r\n return statusInstancia;\r\n }", "public void bayar() {\n transaksi.setStatus(\"lunas\");\n setLunas(true);\n }", "public void setEstado(String estado){\n cabeza.setEstado(estado);\n \n }", "public Boolean estaBloqueado() {\n\t\treturn bloqueado;\n\t}", "public java.lang.Short getEstado();", "public boolean getEstado(){\n return estado;\n }", "public void setStatusInstancia(com.gvt.www.metaData.configuradoronline.DadosStatusBloqueio statusInstancia) {\r\n this.statusInstancia = statusInstancia;\r\n }", "public void Pedircarnet() {\n\t\tSystem.out.println(\"solicitar carnet para verificar si es cliente de ese consultorio\");\r\n\t}", "public cajero(cuentaCorriente cuenta, boolean ingresa) {\n this.cuenta = cuenta;\n this.ingresa = ingresa;\n }", "public FiltroBoletoBancarioLancamentoEnvio() {\n\n\t}", "public synchronized static ConectorBBDD saberEstado() throws SQLException{\n\t\tif(instancia==null){\n\t\t\tinstancia=new ConectorBBDD();\n\t\t\t\n\t\t}\n\t\treturn instancia;\n\t}", "Activite getActiviteCourante();", "public IEstadoLectura crearEstado();", "String getEstado();", "public String getEstado() {\r\n return estado;\r\n }", "public boolean getEstado() {\r\n return estado;\r\n }", "public Boolean getActivo() {\n return activo;\n }", "public void setEstadoCivil(String novoEstadoCivil) {\n this.estadoCivil = novoEstadoCivil;\n }", "@Override\n\tpublic int cambiaEstado(VisitaTecnica bean) {\n\t\treturn 0;\n\t}", "private void esconderBotao() {\n\t\tfor (int i = 0; i < dificuldade.getValor(); i++) {// OLHAM TODOS OS BOTOES\r\n\t\t\tfor (int j = 0; j < dificuldade.getValor(); j++) {\r\n\t\t\t\tif (celulaEscolhida(botoes[i][j]).isVisivel() && botoes[i][j].isVisible()) {// SE A CELULA FOR VISIVEL E\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// O BOTAO FOR VISIVEL,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ESCONDE O BOTAO\r\n\t\t\t\t\tbotoes[i][j].setVisible(false);//DEIXA BOTAO INVISIVEL\r\n\t\t\t\t\tlblNumeros[i][j].setVisible(true);//DEIXA O LABEL ATRAS DO BOTAO VISIVEL\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void comprobarEstado() {\n if (ganarJugadorUno = true) {\n Toast.makeText(this, jugadorUno + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (ganarJugadorDos = true) {\n Toast.makeText(this, jugadorDos + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (tirar == 9 && !ganarJugadorUno && !ganarJugadorDos) {\n Toast.makeText(this, \"Empate\", Toast.LENGTH_SHORT).show();\n }\n }", "public void setEstado(boolean estado) {\r\n this.estado = estado;\r\n }", "@Override\n\tpublic int getBancoCobrador() {\n\t\t// TODO Auto-generated method stub\n\t\treturn super.getBancoCobrador();\n\t}", "public ControladorCatalogoEstado() {\r\n }", "public String getEstadoCivil() {\r\n\t\treturn estadoCivil;\r\n\t}", "@Override\n\tpublic String getEstado() {\n\t\treturn \"En Pausa\";\n\t}", "public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Estado_psLocal getEstado_ps();", "public String getEstado() { return (this.estado == null) ? \"\" : this.estado; }", "public String getEstado() {\n\t\treturn this.estado;\n\t}", "public void verificaCambioEstado(int op) {\r\n try {\r\n if (Seg.getCodAvaluo() == 0) {\r\n mbTodero.setMens(\"Seleccione un numero de Radicacion\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.setCodAvaluo(Seg.getCodAvaluo());\r\n if (op == 1) {\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').show()\");\r\n } else if (op == 2) {\r\n RequestContext.getCurrentInstance().execute(\"PF('DLGAnuAvaluo').show()\");\r\n }\r\n\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".verificaCambioEstado()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "public void verificarDatosConsola(Cliente cliente, List<Cuenta> listaCuentas) {\n\n int codigoCliente = cliente.getCodigo();\n\n System.out.println(\"Codigo: \"+cliente.getCodigo());\n System.out.println(\"Nombre: \"+cliente.getNombre());\n System.out.println(\"DPI: \"+cliente.getDPI());\n System.out.println(\"Direccion: \"+cliente.getDireccion());\n System.out.println(\"Sexo: \"+cliente.getSexo());\n System.out.println(\"Password: \"+cliente.getPassword());\n System.out.println(\"Tipo de Usuario: \"+ 3);\n\n System.out.println(\"Nacimiento: \"+cliente.getNacimiento());\n System.out.println(\"ArchivoDPI: \"+cliente.getDPIEscaneado());\n System.out.println(\"Estado: \"+cliente.isEstado());\n \n \n for (Cuenta cuenta : listaCuentas) {\n System.out.println(\"CUENTAS DEL CLIENTE\");\n System.out.println(\"Numero de Cuenta: \"+cuenta.getNoCuenta());\n System.out.println(\"Fecha de Creacion: \"+cuenta.getFechaCreacion());\n System.out.println(\"Saldo: \"+cuenta.getSaldo());\n System.out.println(\"Codigo del Dueño: \"+codigoCliente);\n \n }\n \n\n\n }", "@Override\n public AsientoContable crearTotalCancelar(final Boleto b, final ComprobanteContable cc,\n final ContabilidadBoletaje conf, final Aerolinea a, final NotaDebitoTransaccion idTransaccion) {\n\n AsientoContable totalCancelar = new AsientoContable();\n\n totalCancelar.setGestion(cc.getGestion());\n //totalCancelar.setAsientoContablePK(new AsientoContablePK(0, cc.getGestion()));\n totalCancelar.setIdLibro(cc);\n totalCancelar.setGestion(cc.getGestion());\n totalCancelar.setFechaMovimiento(DateContable.getCurrentDate());\n totalCancelar.setEstado(ComprobanteContable.EMITIDO);\n //totalCancelar.setIdBoleto(b.getIdBoleto);\n totalCancelar.setIdBoleto(b);\n totalCancelar.setIdNotaTransaccion(idTransaccion);\n totalCancelar.setTipo(AsientoContable.Tipo.BOLETO);\n\n if (b.getTipoCupon().equals(Boleto.Cupon.INTERNACIONAL)) {\n totalCancelar.setMontoDebeExt(b.getTotalMontoCobrar());\n totalCancelar.setMontoDebeNac(b.getTotalMontoCobrar() != null\n ? b.getTotalMontoCobrar().multiply(b.getFactorCambiario().setScale(Contabilidad.VALOR_DECIMAL_2, BigDecimal.ROUND_DOWN))\n : null);\n totalCancelar.setIdPlanCuenta(conf.getIdTotalBoletoUs());\n totalCancelar.setMoneda(Moneda.EXTRANJERA);\n } else if (b.getTipoCupon().equals(Boleto.Cupon.NACIONAL)) {\n Double montoHaber = b.getTotalMontoCobrar() != null ? b.getTotalMontoCobrar().doubleValue() / b.getFactorCambiario().doubleValue() : 0.0f;\n totalCancelar.setMontoDebeExt(new BigDecimal(montoHaber).setScale(Contabilidad.VALOR_DECIMAL_2, BigDecimal.ROUND_DOWN));\n totalCancelar.setMontoDebeNac(b.getTotalMontoCobrar());\n totalCancelar.setIdPlanCuenta(conf.getIdTotalBoletoBs());\n totalCancelar.setMoneda(Moneda.NACIONAL);\n }\n\n return totalCancelar;\n }", "public void setActivo(Boolean activo) {\n this.activo = activo;\n }", "public biz.belcorp.www.canonico.ffvv.vender.TEstadoPedido getEstado(){\n return localEstado;\n }", "public es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.EstadoCuadreType getEstadoCuadre() {\r\n return estadoCuadre;\r\n }", "public void setEstadoCasilla(int estado) {\n\t\testadoCasella = estado;\n\t}", "private void dibujarEstado() {\n\n\t\tcantidadFichasNegras.setText(String.valueOf(juego.contarFichasNegras()));\n\t\tcantidadFichasBlancas.setText(String.valueOf(juego.contarFichasBlancas()));\n\t\tjugadorActual.setText(juego.obtenerJugadorActual());\n\t}", "public String recuperaCultivoByEstadoAsigCA(){\n\t\tlstCultivo = iDAO.recuperaCultivoByInicilizacionEsquema(idInicializacionEsquema,idEstado);\n\t\t\n\t\treturn SUCCESS;\t\t\n\t}", "public boolean getCVCTG_ESTADO(){\n\t\treturn this.myCvctg_estado;\n\t}", "public ContaBancaria() {\n }", "public int getBloco() {\r\n\t\treturn bloco;\r\n\t}", "public boolean isActivo()\r\n/* 173: */ {\r\n/* 174:318 */ return this.activo;\r\n/* 175: */ }", "public String getEstado() {\n return this.estado.get();\n }", "@Override\r\n\tpublic boolean buenEstadoDeFrenos() {\n\t\treturn true;\r\n\t}", "private void ruotaNuovoStatoPaziente() {\r\n\t\tif(nuovoStatoPaziente==StatoPaziente.WAITING_WHITE)\r\n\t\t\tnuovoStatoPaziente = StatoPaziente.WAITING_YELLOW;\r\n\t\telse if(nuovoStatoPaziente==StatoPaziente.WAITING_YELLOW)\r\n\t\t\tnuovoStatoPaziente = StatoPaziente.WAITING_RED;\r\n\t\telse if(nuovoStatoPaziente==StatoPaziente.WAITING_RED)\r\n\t\t\tnuovoStatoPaziente = StatoPaziente.WAITING_WHITE;\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void solicitarMonto(int monto) {\n\t\tSystem.out.println(\"Comprobar dinero dentro de la cuenta\");\r\n\t\tSystem.out.println(\"Leer monto\");\r\n\t}", "public StatusChamado buscarStatusChamado(int id){\n return statusChamadoDAO.buscarPorChave(id);\n }", "public void recibir_estado_partida(){\n\n }", "public int getVelocidadBala() {\n return velocidadBala;\n }", "public Short getIdEstado() {\r\n return idEstado;\r\n }", "public void setEstado(int estado) {\r\n this.estadoID = estado;\r\n }", "public String getNombreEstado() {\r\n return nombreEstado;\r\n }", "public String cambiarEstado() {\n\t\ttry {\n\t\t\tMensaje.crearMensajeINFO(managergest.cambioEstadoItem(getOfertadelsita().getOferId()));\n\t\t\tgetListaOferta().clear();\n\t\t\tgetListaOferta().addAll(managergest.findAllofertasOrdenadas());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn \"\";\n\t}", "int getActivacion();", "public void cadenaEsAceptada() {\n\t\tfor (int i = 0; i < conjuntoF.size(); i++) {\n\t\t\tif (estadoActual.equals(conjuntoF.get(i))) {\n\t\t\t\tSystem.out.println(\"Cadena aceptada!\");\n\t\t\t\tbreak;\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"Cadena no aceptada\");\n\t\t}\n\t}", "public boolean isActivo()\r\n/* 144: */ {\r\n/* 145:245 */ return this.activo;\r\n/* 146: */ }", "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 public boolean ubahStatus(int masukan) {\r\n if (masukan == 1) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public int getEstado() {\r\n return estadoID;\r\n }", "public CuentaBancaria (Double saldo, Integer cbu, Cliente cliente) {\n\t\tthis.saldo=saldo;\n\t\tthis.cbu=cbu;\n\t\tthis.cliente=cliente;\n\t}", "List<Oficios> buscarActivas();", "public void pedirValoresCabecera(){\n \r\n \r\n \r\n \r\n }", "public String borra() { \n clienteDAO.borra(c.getId());\n return \"listado\";\n }", "@Override\n\tpublic void morir() {\n\t\tthis.estadoVida = false;\n\t}", "public void bloquear(boolean op) {\n cxCPF.setEditable(op);\n cxNome.setEditable(op);\n cxRua.setEditable(op);\n cxNumero.setEditable(op);\n cxBairro.setEditable(op);\n cxComplemento.setEditable(op);\n cxTelefone1.setEditable(op);\n cxTelefone2.setEditable(op);\n cxEmail.setEditable(op);\n }", "public boolean isActivo()\r\n/* 110: */ {\r\n/* 111:138 */ return this.activo;\r\n/* 112: */ }", "private boolean solicitarAutorizacionCxC(int intCodEmp, int intCodLoc, int intCodCot){\n boolean blnRes=false;\n try{\n java.sql.Connection conLoc;\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(),objParSis.getUsuarioBaseDatos(),objParSis.getClaveBaseDatos());\n if(conLoc!=null){\n int EstAut = 1;\n EstAut = objAutPrg.checkCtlsCot(\"tbm_cabautcotven\", \"tbm_detautcotven\",intCodEmp,intCodLoc, intCodCot, conLoc,true);\n switch (EstAut) {\n case 1: // Todo Correcto\n //System.out.println(\"No necesita autorizaciones....\");\n blnRes=true;\n break;\n case 2:\n //System.out.println(\"Autorizacion....\");\n conLoc.setAutoCommit(false);\n \n if (objAutPrg.insertarCabDetAut(conLoc, intCodEmp, intCodLoc, intCodCot, 3)) {\n if(colocarCotizacionComoNecesitaAutorizacion(conLoc, intCodEmp, intCodLoc, intCodCot)){\n conLoc.commit();\n blnRes=true;\n }else{conLoc.rollback();}\n } else { conLoc.rollback();}\n \n break; \n };\n }\n \n }\n catch(Exception Evt){ \n objUti.mostrarMsgErr_F1(this, Evt);\n } \n return blnRes;\n }", "public void setEstadoCuadre(es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.EstadoCuadreType estadoCuadre) {\r\n this.estadoCuadre = estadoCuadre;\r\n }", "@Override\n public int anularAsientosContables(Boleto boleto) throws CRUDException {\n //Anulamos las transacciones contables para el id_boleto y su respectivo Libro\n //Eso para tener en cuenta los tipos de Asientos Contables\n //AD Asiento Diario\n //CI Comprobante Ingreso\n //CE Comprobante Egreso\n //CT Comprobante de Traspso\n //AJ Asiento de Ajuste\n Query q = em.createNamedQuery(\"AsientoContable.updateEstadoFromBoleto\");\n q.setParameter(\"idBoleto\", boleto.getIdBoleto());\n q.setParameter(\"estado\", ComprobanteContable.ANULADO);\n q.executeUpdate();\n\n // Actualiza los totales del comprobante Contable. y si ya no tiene \n //transacciones, anula el Comprobante Contable\n StoredProcedureQuery spq = em.createNamedStoredProcedureQuery(\"ComprobanteContable.updateComprobanteContable\");\n spq.setParameter(\"in_id_boleto\", boleto.getIdBoleto());\n spq.executeUpdate();\n\n return Operacion.REALIZADA;\n }", "public void consulterBoiteVocale() {\n for (int i = 0; i < this.boiteVocale.getListeMessagesVocaux().size(); i++) {\n //on passe l'attribut consulte à true pour savoir qu'il a été vu pour la facturation\n this.boiteVocale.getListeMessagesVocaux().get(i).setConsulte(true);\n }\n }", "public Estado(Short idEstado) {\r\n this.idEstado = idEstado;\r\n \r\n }", "public void setBloqueado(Boolean bloqueado) {\n\t\tthis.bloqueado = bloqueado;\n\t}", "public String getContrasena() {return contrasena;}", "public int getCBRStatus();", "@Override\n @TransactionAttribute(TransactionAttributeType.REQUIRED)\n public synchronized Boleto procesarBoleto(Boleto b) throws CRUDException {\n Optional op;\n Aerolinea a = em.find(Aerolinea.class, b.getIdAerolinea().getIdAerolinea());\n Cliente c = em.find(Cliente.class, b.getIdCliente().getIdCliente());\n NotaDebito notaDebito = null;\n NotaDebitoTransaccion transaccion = null;\n ComprobanteContable comprobanteAsiento = null, comprobanteIngreso = null;\n AsientoContable totalCancelar = null, montoPagarLinea = null,\n montoDescuento = null, montoComision = null, montoFee = null;\n\n AsientoContable ingTotalCancelarCaja = null, ingTotalCancelarHaber = null;\n IngresoCaja ingreso = null;\n IngresoTransaccion ingTran = null;\n\n try {\n // Revisamos que el boleto no este registrado\n if (isBoletoRegistrado(b)) {\n throw new CRUDException(\"El Numero de Boleto ya ha sido registrado\");\n }\n\n //4. Obtenemos la configuracion del Boleto para guardar en el comprobanteAsiento\n HashMap<String, Integer> parameters = new HashMap<>();\n parameters.put(\"idEmpresa\", b.getIdEmpresa());\n List lconf = ejbComprobante.get(\"ContabilidadBoletaje.find\", ContabilidadBoletaje.class, parameters);\n if (lconf.isEmpty()) {\n throw new CRUDException(\"Los parametros de Contabilidad para la empresa no estan Configurados\");\n }\n\n AerolineaCuenta av = getAerolineCuenta(b, \"V\");\n\n if (av == null) {\n throw new CRUDException(\"No existe Cuenta asociada a la Aerolinea para Ventas\");\n }\n\n AerolineaCuenta ac = getAerolineCuenta(b, \"C\");\n\n if (ac == null) {\n throw new CRUDException(\"No existe Cuenta asociada a la Aerolinea para Comisiones\");\n }\n\n //Obtenemos la configuracion de las cuentas para el boletaje\n ContabilidadBoletaje cbconf = (ContabilidadBoletaje) lconf.get(0);\n\n // SI no existiera alguna configuraion, no hace nada\n if (validarConfiguracion(cbconf)) {\n //1. Registra el nombre del pasajero en la tabla cnt_cliente_pasajero\n saveClientePasajero(b);\n\n //2. CRear nota de debito para el boleto en la tabla cnt_nota_debito\n notaDebito = ejbNotaDebito.createNotaDebito(b);\n notaDebito.setIdNotaDebito(insert(notaDebito));\n\n b.setIdNotaDebito(notaDebito.getIdNotaDebito());\n b.setEstado(Boleto.Estado.EMITIDO);\n insert(b);\n //notaDebito.getNotaDebitoPK().setIdNotaDebito(insert(notaDebito));\n //crea la transaccion de la nota de Debito\n transaccion = ejbNotaDebito.createNotaDebitoTransaccion(b, notaDebito);\n //transaccion.getNotaDebitoTransaccionPK().setIdNotaDebitoTransaccion(insert(transaccion));\n transaccion.setIdNotaDebitoTransaccion(insert(transaccion));\n //3. Registramos el Boleto\n\n //insert(b);\n // creamos el Comprobante Contable\n comprobanteAsiento = ejbComprobante.createAsientoDiarioBoleto(b);\n comprobanteAsiento.setIdNotaDebito(notaDebito.getIdNotaDebito());\n comprobanteAsiento.setIdLibro(insert(comprobanteAsiento));\n // se crean los asientos de acuerdo a la configuracion.\n b.setIdLibro(comprobanteAsiento.getIdLibro());\n\n //TotalCancelar\n //totalCancelar = ejbComprobante.crearTotalCancelar(b, comprobanteAsiento, cbconf, a, transaccion.getIdNotaDebitoTransaccion());\n totalCancelar = ejbComprobante.crearTotalCancelar(b, comprobanteAsiento, cbconf, a, transaccion);\n insert(totalCancelar);\n //ejbComprobante.insert(totalCancelar);\n //DiferenciaTotalBoleto\n montoPagarLinea = ejbComprobante.crearMontoPagarLineaAerea(b, comprobanteAsiento, cbconf, av, notaDebito, transaccion);\n //ejbComprobante.insert(montoPagarLinea);\n insert(montoPagarLinea);\n //Comision\n montoComision = ejbComprobante.crearMontoComision(b, comprobanteAsiento, a, ac, notaDebito, transaccion);\n //ejbComprobante.insert(montoComision);\n insert(montoComision);\n //Fee\n montoFee = ejbComprobante.crearMontoFee(b, comprobanteAsiento, cbconf, a, notaDebito, transaccion);\n //ejbComprobante.insert(montoFee);\n insert(montoFee);\n //Descuento\n montoDescuento = ejbComprobante.crearMontoDescuentos(b, comprobanteAsiento, cbconf, a, notaDebito, transaccion);\n //ejbComprobante.insert(montoDescuento);\n insert(montoDescuento);\n\n //actualizamos los montos Totales del Comprobante.\n double totalDebeNac = 0;\n double totalDebeExt = 0;\n double totalHaberNac = 0;\n double totalHaberExt = 0;\n //Se realizan las sumas para el comprobanteAsiento.\n if (b.getTipoCupon().equals(Boleto.Cupon.INTERNACIONAL)) {\n op = Optional.ofNullable(totalCancelar.getMontoDebeExt());\n if (op.isPresent()) {\n totalDebeExt += totalCancelar.getMontoDebeExt().doubleValue();\n }\n\n op = Optional.ofNullable(montoDescuento);\n if (op.isPresent()) {\n totalDebeExt += montoDescuento.getMontoDebeExt().doubleValue();\n }\n\n op = Optional.ofNullable(totalDebeExt);\n if (op.isPresent()) {\n totalDebeNac = totalDebeExt * b.getFactorCambiario().doubleValue();\n }\n // Haber\n\n op = Optional.ofNullable(montoPagarLinea.getMontoHaberExt());\n if (op.isPresent()) {\n totalHaberExt += montoPagarLinea.getMontoHaberExt().doubleValue();\n }\n\n op = Optional.ofNullable(montoComision);\n if (op.isPresent()) {\n totalHaberExt += montoComision.getMontoHaberExt().doubleValue();\n }\n\n op = Optional.ofNullable(montoFee);\n if (op.isPresent()) {\n totalHaberExt += montoFee.getMontoHaberExt().doubleValue();\n }\n\n op = Optional.ofNullable(totalHaberExt);\n if (op.isPresent()) {\n totalHaberNac = totalHaberExt * b.getFactorCambiario().doubleValue();\n }\n\n } else if (b.getTipoCupon().equals(Boleto.Cupon.NACIONAL)) {\n op = Optional.ofNullable(totalCancelar.getMontoDebeNac());\n if (op.isPresent()) {\n totalDebeNac += totalCancelar.getMontoDebeNac().doubleValue();\n }\n\n op = Optional.ofNullable(montoDescuento.getMontoDebeNac());\n if (op.isPresent()) {\n totalDebeNac += montoDescuento.getMontoDebeNac().doubleValue();\n }\n op = Optional.ofNullable(totalDebeNac);\n if (op.isPresent()) {\n totalDebeExt = totalDebeNac / b.getFactorCambiario().doubleValue();\n }\n //\n\n op = Optional.ofNullable(montoPagarLinea.getMontoHaberNac());\n if (op.isPresent()) {\n totalHaberNac += montoPagarLinea.getMontoHaberNac().doubleValue();\n }\n op = Optional.ofNullable(montoComision.getMontoHaberNac());\n if (op.isPresent()) {\n totalHaberNac += montoComision.getMontoHaberNac().doubleValue();\n }\n op = Optional.ofNullable(montoFee.getMontoHaberNac());\n if (op.isPresent()) {\n totalHaberNac += montoFee.getMontoHaberNac().doubleValue();\n }\n op = Optional.ofNullable(totalHaberNac);\n if (op.isPresent()) {\n totalHaberExt = totalHaberNac / b.getFactorCambiario().doubleValue();\n }\n }\n\n comprobanteAsiento.setTotalDebeExt(new BigDecimal(totalDebeExt));\n comprobanteAsiento.setTotalHaberExt(new BigDecimal(totalHaberExt));\n comprobanteAsiento.setTotalDebeNac(new BigDecimal(totalDebeNac));\n comprobanteAsiento.setTotalHaberNac(new BigDecimal(totalHaberNac));\n\n em.merge(comprobanteAsiento);\n\n // creamos para las formas de pago\n //Si son Contado o Tarjeta, se crea el Ingreso a Caja y el Comprobante de Ingreso\n if (b.getFormaPago().equals(FormasPago.CONTADO) || b.getFormaPago().equals(FormasPago.TARJETA)) {\n //Crear Ingreso a Caja\n ingreso = ejbIngresoCaja.createIngresoCaja(b, notaDebito);\n ingreso.setIdIngresoCaja(insert(ingreso));\n b.setIdIngresoCaja(ingreso.getIdIngresoCaja());\n\n ingTran = ejbIngresoCaja.createIngresoCajaTransaccion(b, notaDebito, transaccion, ingreso);\n ingTran.setIdTransaccion(insert(ingTran));\n b.setIdIngresoCajaTransaccion(ingTran.getIdTransaccion());\n\n //Crear Comprobante de Ingreso\n comprobanteIngreso = ejbComprobante.createComprobante(a, b, c, ComprobanteContable.Tipo.COMPROBANTE_INGRESO);\n comprobanteIngreso.setIdNotaDebito(notaDebito.getIdNotaDebito());\n /* if (ingreso.getMoneda().equals(Moneda.EXTRANJERA)) {\n comprobanteIngreso.setTotalDebeExt(ingreso.getMontoAbonadoUsd());\n comprobanteIngreso.setTotalHaberExt(ingreso.getMontoAbonadoUsd());\n comprobanteIngreso.setTotalDebeNac(ingreso.getMontoAbonadoUsd().multiply(ingreso.getFactorCambiario()));\n comprobanteIngreso.setTotalHaberNac(ingreso.getMontoAbonadoUsd().multiply(ingreso.getFactorCambiario()));\n\n notaDebito.setMontoAdeudadoUsd(notaDebito.getMontoTotalUsd().subtract(ingreso.getMontoAbonadoUsd()));\n } else {\n comprobanteIngreso.setTotalDebeExt(ingreso.getMontoAbonadoBs());\n comprobanteIngreso.setTotalHaberExt(ingreso.getMontoAbonadoBs());\n comprobanteIngreso.setTotalDebeNac(ingreso.getMontoAbonadoBs().divide(ingreso.getFactorCambiario()));\n comprobanteIngreso.setTotalHaberNac(ingreso.getMontoAbonadoBs().divide(ingreso.getFactorCambiario()));\n\n notaDebito.setMontoAdeudadoBs(notaDebito.getMontoTotalBs().subtract(ingreso.getMontoAbonadoBs()));\n }*/\n insert(comprobanteIngreso);\n\n /**\n *\n */\n // ESTAS TRANSACCIONES PASARLAS. al nuevo metodo de cada uno\n /*ingTotalCancelarCaja = ejbComprobante.createTotalCancelarIngresoCajaDebe(comprobanteIngreso, cbconf, a, b);\n ingTotalCancelarCaja.setIdIngresoCajaTransaccion(ingTran.getIdTransaccion());\n insert(ingTotalCancelarCaja);\n\n ingTotalCancelarHaber = ejbComprobante.createTotalCancelarIngresoClienteHaber(comprobanteIngreso, cbconf, a, b);\n ingTotalCancelarHaber.setIdIngresoCajaTransaccion(ingTran.getIdTransaccion());\n insert(ingTotalCancelarHaber);*/\n /**\n *\n */\n //actualizar nota debito\n em.merge(notaDebito);\n }\n\n //b.setIdLibro(notaDebito.getIdNotaDebito());\n if (ingTran != null) {\n b.setIdIngresoCajaTransaccion(ingTran.getIdTransaccion());\n }\n\n em.merge(b);\n }\n } catch (Exception e) {\n\n em.clear();\n\n Optional opex = Optional.ofNullable(notaDebito);\n if (opex.isPresent()) {\n remove(notaDebito);\n }\n\n opex = Optional.ofNullable(transaccion);\n if (opex.isPresent()) {\n remove(transaccion);\n }\n\n opex = Optional.ofNullable(comprobanteAsiento);\n if (opex.isPresent()) {\n remove(comprobanteAsiento);\n }\n\n opex = Optional.ofNullable(totalCancelar);\n if (opex.isPresent()) {\n remove(totalCancelar);\n }\n\n opex = Optional.ofNullable(montoPagarLinea);\n if (opex.isPresent()) {\n remove(montoPagarLinea);\n }\n opex = Optional.ofNullable(montoDescuento);\n if (opex.isPresent()) {\n remove(montoDescuento);\n }\n opex = Optional.ofNullable(montoComision);\n if (opex.isPresent()) {\n remove(montoComision);\n }\n opex = Optional.ofNullable(montoFee);\n if (opex.isPresent()) {\n remove(montoFee);\n }\n\n opex = Optional.ofNullable(b);\n if (opex.isPresent() && b.getIdBoleto() > 0) {\n remove(b);\n }\n\n opex = Optional.ofNullable(ingreso);\n if (opex.isPresent()) {\n remove(ingreso);\n }\n\n opex = Optional.ofNullable(ingTran);\n if (opex.isPresent()) {\n remove(ingTran);\n }\n\n opex = Optional.ofNullable(ingTotalCancelarCaja);\n if (opex.isPresent()) {\n remove(ingTotalCancelarCaja);\n }\n\n opex = Optional.ofNullable(ingTotalCancelarHaber);\n if (opex.isPresent()) {\n remove(ingTotalCancelarHaber);\n }\n\n throw new CRUDException(e.getMessage());\n\n }\n\n em.flush();\n return b;\n }", "public Estado getEstado ()\n\t{\n\t\treturn estado;\n\t}", "@Override\r\n public BoletoLocal onGerarBoleto(Contrato contrato, ConfiguracoesBoleto config) {\r\n int diaVencimento = contrato.getDiaVencimento();\r\n Calendar dataHj = Calendar.getInstance();\r\n\r\n //SE O DIA DO VENCIMENTO DO BOLETO FOR MENOR OU IGUAL\r\n // A DATA DE HJ GERA NORMAL, SE NÃO ELE GERA PRO PROXIMO MES\r\n if (dataHj.get(Calendar.DAY_OF_MONTH) <= diaVencimento) {\r\n\r\n } else {\r\n dataHj.add(Calendar.MONTH, 1);\r\n }\r\n\r\n dataHj.set(Calendar.DAY_OF_MONTH, diaVencimento);\r\n Calendar dataMaxima = Calendar.getInstance();\r\n dataMaxima.add(Calendar.DAY_OF_MONTH, 20);\r\n\r\n //SE A DATA FOR MAIOS QUE O MÁXIMO CONFIGURADO NÃO GERA NADA.\r\n if (dataHj.after(dataMaxima)) {\r\n System.out.println(\"data depois de 20 dias\");\r\n return null;\r\n }\r\n\r\n\r\n /*\r\n\t\t * INFORMANDO DADOS SOBRE O CEDENTE.\r\n */\r\n Cedente cedente = new Cedente(config.getBanco().getNomeBeneficiado(), config.getDocBeneficiado());\r\n\r\n /*\r\n\t\t * INFORMANDO DADOS SOBRE O SACADO.\r\n */\r\n Sacado sacado = new Sacado(contrato.getLocatario().getNome(), contrato.getLocatario().getDocumento());\r\n\r\n // Informando o endereço do sacado.\r\n org.jrimum.domkee.comum.pessoa.endereco.Endereco enderecoSac = new org.jrimum.domkee.comum.pessoa.endereco.Endereco();\r\n enderecoSac.setUF(UnidadeFederativa.valueOfSigla(contrato.getLocatario().getEndereco().getCodUf()));\r\n enderecoSac.setLocalidade(contrato.getLocatario().getEndereco().getCidade());\r\n enderecoSac.setCep(new CEP(contrato.getLocatario().getEndereco().getDesCep()));\r\n enderecoSac.setBairro(contrato.getLocatario().getEndereco().getDesBairro());\r\n enderecoSac.setLogradouro(contrato.getLocatario().getEndereco().getDesLogradouro());\r\n enderecoSac.setNumero(contrato.getLocatario().getEndereco().getDesNumero());\r\n sacado.addEndereco(enderecoSac);\r\n\r\n /*\r\n\t\t * INFORMANDO OS DADOS SOBRE O TÍTULO.\r\n */\r\n // Informando dados sobre a conta bancária do título.\r\n ContaBancaria contaBancaria = null;\r\n if (config.getBanco().getBanco() == BancosEnum.ITAU) {\r\n contaBancaria = new ContaBancaria(BancosSuportados.BANCO_ITAU.create());\r\n }\r\n\r\n if (contaBancaria == null) {\r\n System.out.println(\"Conta bancária não cadastrada\");\r\n return null;\r\n }\r\n\r\n contaBancaria.setNumeroDaConta(new NumeroDaConta(Integer.parseInt(config.getBanco().getContaNumero()), config.getBanco().getContaDigito()));\r\n contaBancaria.setCarteira(new Carteira(Integer.parseInt(config.getCarteira())));\r\n contaBancaria.setAgencia(new Agencia(Integer.parseInt(config.getBanco().getAgenciaNumero()), config.getBanco().getAgenciaDigito()));\r\n\r\n Titulo titulo = new Titulo(contaBancaria, sacado, cedente);\r\n titulo.setNumeroDoDocumento(config.getNumeroDocumento());\r\n titulo.setNossoNumero(config.getNossoNumero());\r\n titulo.setDigitoDoNossoNumero(config.getNossoNumeroDigito());\r\n titulo.setValor(contrato.getValor());\r\n titulo.setDataDoDocumento(new Date());\r\n\r\n titulo.setDataDoVencimento(dataHj.getTime());\r\n titulo.setTipoDeDocumento(TipoDeTitulo.DM_DUPLICATA_MERCANTIL);\r\n titulo.setAceite(Aceite.A);\r\n//\t\ttitulo.setDesconto(BigDecimal.ZERO);\r\n//\t\ttitulo.setDeducao(BigDecimal.ZERO);\r\n//\t\ttitulo.setMora(BigDecimal.ZERO);\r\n//\t\ttitulo.setAcrecimo(BigDecimal.ZERO);\r\n//\t\ttitulo.setValorCobrado(BigDecimal.ZERO);\r\n\r\n /*\r\n\t\t * INFORMANDO OS DADOS SOBRE O BOLETO.\r\n */\r\n Boleto boletoBank = new Boleto(titulo);\r\n\r\n boletoBank.setLocalPagamento(config.getLocalPagamento());\r\n boletoBank.setInstrucaoAoSacado(config.getInstrucaoSacado());\r\n boletoBank.setInstrucao1(config.getInstrucao1());\r\n boletoBank.setInstrucao2(config.getInstrucao2());\r\n boletoBank.setInstrucao3(config.getInstrucao3());\r\n boletoBank.setInstrucao4(config.getInstrucao4());\r\n boletoBank.setInstrucao5(config.getInstrucao5());\r\n boletoBank.setInstrucao6(config.getInstrucao6());\r\n boletoBank.setInstrucao7(config.getInstrucao7());\r\n boletoBank.setInstrucao8(config.getInstrucao8());\r\n\r\n /*\r\n\t\t * GERANDO O BOLETO BANCÁRIO.\r\n */\r\n // Instanciando um objeto \"BoletoViewer\", classe responsável pela\r\n // geração do boleto bancário.\r\n BoletoViewer boletoViewer = new BoletoViewer(boletoBank);\r\n\r\n // Alterado para pegar o path do sistema automático , gerando dentro\r\n // do projeto.\r\n // Gerando o arquivo. No caso o arquivo mencionado será salvo na mesma\r\n // pasta do projeto. Outros exemplos:\r\n // WINDOWS: boletoViewer.getAsPDF(\"C:/Temp/MeuBoleto.pdf\");\r\n // LINUX: boletoViewer.getAsPDF(\"/home/temp/MeuBoleto.pdf\");\r\n String pasta = \"/boletos\";\r\n\r\n String caminhoCompletoPasta = FacesUtil.getExternalContext().getRealPath(pasta) + \"/\";\r\n BoletoLocal boletoLocal = new BoletoLocal();\r\n contrato.getBoletos().add(boletoLocal);\r\n boletoLocal.setContrato(contrato);\r\n\r\n String nomeArquivoPDF = contrato.getLocatario().getNome().replace(\" \", \"_\") + boletoLocal.getMes() + boletoLocal.getAno() + \".pdf\";\r\n\r\n System.out.println(caminhoCompletoPasta + nomeArquivoPDF);\r\n File arquivoPdf = boletoViewer.getPdfAsFile(caminhoCompletoPasta + nomeArquivoPDF);\r\n\r\n boletoLocal.setPath(pasta + nomeArquivoPDF);\r\n\r\n super.save(boletoLocal);\r\n\r\n return boletoLocal;\r\n }", "public void setEstadoPersona(String p) { this.estadoPersona = p; }", "public String ottieniListaCodiceBilancio(){\n\t\tInteger uid = sessionHandler.getParametro(BilSessionParameter.UID_CLASSE);\n\t\tcaricaListaCodiceBilancio(uid);\n\t\treturn SUCCESS;\n\t}", "public void acheter(){\n\t\t\n\t\t// Achete un billet si il reste des place\n\t\ttry {\n\t\t\tthis.maBilleterie.vendre();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tthis.status.put('B', System.currentTimeMillis());\n\t\tSystem.out.println(\"STATE B - Le festivalier \" + this.numFestivalier + \" a acheté sa place\");\n\t}", "public boolean getStatus(){\n return activestatus;\n }", "public void setNombreEstado(String nombreEstado) {\r\n this.nombreEstado = nombreEstado;\r\n }", "public void seleccionarTipoComprobante() {\r\n if (com_tipo_comprobante.getValue() != null) {\r\n tab_tabla1.setCondicion(\"fecha_trans_cnccc between '\" + cal_fecha_inicio.getFecha() + \"' and '\" + cal_fecha_fin.getFecha() + \"' and ide_cntcm=\" + com_tipo_comprobante.getValue());\r\n tab_tabla1.ejecutarSql();\r\n tab_tabla2.ejecutarValorForanea(tab_tabla1.getValorSeleccionado());\r\n } else {\r\n tab_tabla1.limpiar();\r\n tab_tabla2.limpiar();\r\n }\r\n tex_num_transaccion.setValue(null);\r\n calcularTotal();\r\n utilitario.addUpdate(\"gri_totales,tex_num_transaccion\");\r\n }", "public solicitudControlador() {\n }", "public BigDecimal getIdEstado() {\r\n return idEstado;\r\n }", "public boolean conectado(){\n\t\t\tboolean conect = false;\n\t\t\t\n\t\t\t\tif(conexion!=null){\n\t\t\t\t\tconect = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\treturn(conect);\n\t\t}", "public void setEstado(biz.belcorp.www.canonico.ffvv.vender.TEstadoPedido param){\n \n this.localEstado=param;\n \n\n }", "@Override\n public Boolean colisionoCon(BDestino gr) {\n return true;\n }", "protected void filtrarEstCid() {\r\n\t\tif (cmbx_cidade.getSelectedItem() != \"\" && cmbx_estado.getSelectedItem() != \"\") {\r\n\t\t\tStringBuilder filtracomando = new StringBuilder();\r\n\r\n\t\t\tfiltracomando\r\n\t\t\t\t\t.append(comando + \" WHERE ESTADO = '\" + Estado.validar(cmbx_estado.getSelectedItem().toString())\r\n\t\t\t\t\t\t\t+ \"' AND CIDADE = '\" + cmbx_cidade.getSelectedItem().toString() + \"'\");\r\n\t\t\tlistacliente = tabelaCliente.mostraRelatorio(filtracomando.toString());\r\n\r\n\t\t\ttablecliente.setModel(tabelaCliente);\r\n\r\n\t\t} else {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Escolha a Cidade e o Estado que deseja Filtrar\");\r\n\t\t}\r\n\t}", "public void setActivo(boolean activo)\r\n/* 149: */ {\r\n/* 150:255 */ this.activo = activo;\r\n/* 151: */ }", "@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 alterarEstado(String n, boolean b) throws IOException {\r\n\t\tfor (VCI_cl_Utilizador u : listaUtilizadores) {\r\n\t\t\tif (u instanceof VCI_cl_Vendedor) {\r\n\t\t\t\tif (((VCI_cl_Vendedor) u).getNome().equals(n)) {\r\n\t\t\t\t\t((VCI_cl_Vendedor) u).setEstado(b);\r\n\t\t\t\t\tgravarUtilizadores();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public fechBalance() {\n initComponents(); \n \n bd=new coneccionBD();\n acum1=0;\n acum2=0;\n acum3=0;\n acum4=0;\n acum5=0;\n padreNivel=\"\";\n }", "public void setCVCTG_ESTADO(boolean inCvctg_estado){\n\t\tthis.myCvctg_estado = inCvctg_estado;\n\t}", "public void reversarComprobanteContabilidad() {\r\n String ide_cnccc = ser_comprobante.reversarComprobante(tab_tabla1.getValorSeleccionado(), null);\r\n if (guardarPantalla().isEmpty()) {\r\n utilitario.agregarMensaje(\"Se genero el Comprobante Num: \", ide_cnccc);\r\n }\r\n }" ]
[ "0.6819329", "0.65052485", "0.65052485", "0.644899", "0.63988113", "0.62802875", "0.6266228", "0.62385166", "0.623389", "0.61996233", "0.6187417", "0.61769354", "0.6119791", "0.6101959", "0.61013055", "0.6090047", "0.6082399", "0.60787684", "0.60760343", "0.6057959", "0.60509664", "0.60493183", "0.603033", "0.6026511", "0.60229176", "0.59830916", "0.5981507", "0.59659135", "0.59614813", "0.5950853", "0.59467906", "0.59232706", "0.5918528", "0.5892939", "0.5864281", "0.585447", "0.5854397", "0.58536184", "0.58217674", "0.5800167", "0.57997257", "0.5795388", "0.57832795", "0.5779779", "0.5774413", "0.5757054", "0.5756796", "0.5749645", "0.57458127", "0.57431006", "0.5741197", "0.5738874", "0.57357997", "0.5729293", "0.5718515", "0.5710496", "0.57078576", "0.5700023", "0.5694193", "0.56862134", "0.5685985", "0.56859344", "0.56852436", "0.5678124", "0.5677628", "0.5670217", "0.5661543", "0.5659403", "0.5656037", "0.5650841", "0.5636649", "0.56303483", "0.5627814", "0.5626219", "0.5616772", "0.56107116", "0.5606649", "0.5606144", "0.56040174", "0.559884", "0.5592764", "0.5592172", "0.55918854", "0.55861497", "0.5562737", "0.5560917", "0.5548236", "0.5546862", "0.55429304", "0.55361336", "0.5535084", "0.5532077", "0.5526471", "0.55113256", "0.5510682", "0.55081475", "0.5502813", "0.5500223", "0.5498013", "0.5491644", "0.54907465" ]
0.0
-1
End of variables declaration//GENEND:variables
private void MensajeInf(String strMensaje){ javax.swing.JOptionPane obj =new javax.swing.JOptionPane(); String strTit; strTit="Mensaje del sistema Zafiro"; obj.showMessageDialog(this,strMensaje,strTit,javax.swing.JOptionPane.INFORMATION_MESSAGE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo21779D() {\n }", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "private void m50366E() {\n }", "public void mo12930a() {\n }", "public void mo115190b() {\n }", "public void method_4270() {}", "public void mo1403c() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo21793R() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo21787L() {\n }", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void mo21791P() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void mo21878t() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "public void mo23813b() {\n }", "public void mo3370l() {\n }", "public void mo21879u() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21785J() {\n }", "public void mo21795T() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void m23075a() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21794S() {\n }", "public final void mo12688e_() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public void mo6944a() {\n }", "private Rekenhulp()\n\t{\n\t}", "public static void listing5_14() {\n }", "public void mo1405e() {\n }", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo9137b() {\n }", "void mo57277b();", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void func_70295_k_() {}", "public void mo21877s() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "void berechneFlaeche() {\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "public void mo115188a() {\n }", "public void mo21880v() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo56167c() {\n }", "public void mo44053a() {\n }", "public void mo21781F() {\n }", "public void mo2740a() {\n }", "public void mo21783H() {\n }", "public void mo1531a() {\n }", "double defendre();", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "public void stg() {\n\n\t}", "void m1864a() {\r\n }", "private void poetries() {\n\n\t}", "public void skystonePos4() {\n }", "public void mo2471e() {\n }", "private void yy() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "static void feladat4() {\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void furyo ()\t{\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected void mo6255a() {\n }" ]
[ "0.63602626", "0.62828803", "0.6186947", "0.6094495", "0.60943186", "0.6073909", "0.60544854", "0.6054047", "0.6004724", "0.59895945", "0.5972915", "0.597031", "0.59686697", "0.59677297", "0.59639865", "0.59434086", "0.59111506", "0.58980423", "0.58935064", "0.5884933", "0.58816516", "0.58556527", "0.5853311", "0.58530486", "0.58435637", "0.5841404", "0.5836304", "0.58247155", "0.5811467", "0.5804453", "0.5796213", "0.57883126", "0.5786127", "0.5784405", "0.57840616", "0.57766414", "0.5764635", "0.576086", "0.5747324", "0.57448274", "0.573475", "0.573475", "0.573475", "0.573475", "0.573475", "0.573475", "0.573475", "0.5734497", "0.57322246", "0.5728332", "0.5724919", "0.5718608", "0.5707533", "0.5700042", "0.56989604", "0.569221", "0.5690934", "0.56885403", "0.56759113", "0.56633484", "0.5654197", "0.5647463", "0.5644896", "0.5644795", "0.5643737", "0.5642191", "0.5632893", "0.563061", "0.5630516", "0.5624195", "0.56193286", "0.5615287", "0.5613272", "0.56121856", "0.5608422", "0.56050456", "0.56043816", "0.5602435", "0.5593142", "0.5587763", "0.5578407", "0.5572431", "0.5569698", "0.55570936", "0.5555773", "0.5552703", "0.5551455", "0.55498874", "0.5549053", "0.5547974", "0.5547621", "0.5545154", "0.5543889", "0.55430466", "0.5541972", "0.5539135", "0.55282193", "0.5525164", "0.55178875", "0.55045736", "0.55032116" ]
0.0
-1
/ Esto Hace en caso de que el modo de operacion sea Consulta return _consultar(FilSql());
public boolean consultar() { consultarReg(); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CalMetasDTO cargarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta) {\n/* */ try {\n/* 416 */ String s = \"select m.*,\";\n/* 417 */ s = s + \"tm.descripcion as nombreTipoMedicion,\";\n/* 418 */ s = s + \"est.descripcion as nombreEstado,\";\n/* 419 */ s = s + \"Um.Descripcion as nombre_unidad_medida\";\n/* 420 */ s = s + \" from cal_plan_metas m,sis_multivalores tm,sis_multivalores est,Sis_Multivalores Um\";\n/* 421 */ s = s + \" where \";\n/* 422 */ s = s + \" m.tipo_medicion =tm.valor\";\n/* 423 */ s = s + \" and tm.tabla='CAL_TIPO_MEDICION'\";\n/* 424 */ s = s + \" and m.estado =est.valor\";\n/* 425 */ s = s + \" and est.tabla='CAL_ESTADO_META'\";\n/* 426 */ s = s + \" and m.Unidad_Medida = Um.Valor\";\n/* 427 */ s = s + \" and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META'\";\n/* 428 */ s = s + \" and m.codigo_ciclo=\" + codigoCiclo;\n/* 429 */ s = s + \" and m.codigo_plan=\" + codigoPlan;\n/* 430 */ s = s + \" and m.codigo_meta=\" + codigoMeta;\n/* 431 */ boolean rtaDB = this.dat.parseSql(s);\n/* 432 */ if (!rtaDB) {\n/* 433 */ return null;\n/* */ }\n/* */ \n/* 436 */ this.rs = this.dat.getResultSet();\n/* 437 */ if (this.rs.next()) {\n/* 438 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 441 */ catch (Exception e) {\n/* 442 */ e.printStackTrace();\n/* 443 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarCalMetas \", e);\n/* */ } \n/* 445 */ return null;\n/* */ }", "Tablero consultarTablero();", "private void armarQuery(String filtro) throws DatabaseErrorException {\n String query = null;\n if (filtro != null && filtro.length() > 0) {\n query = \"SELECT * FROM \" + CLASS_NAME + \" o WHERE o.nombre ILIKE '\" + filtro + \"%' ORDER BY o.nombre\";\n }\n cargarContenedorTabla(query);\n }", "public void EjecutarConsulta() {\n try {\n Consultar(\"select * from \"+table);\n this.resultSet = preparedStatement.executeQuery();\n } catch (Exception e) {\n// MessageEmergent(\"Fail EjecutarConsulta(): \"+e.getMessage());\n }\n }", "@Override\n public boolean SearchSQL() {\n\n /*\n appunto su query.next()\n inizialmente query.next è posto prima della prima riga\n alla prima chiaata si posiziona sulla prima row\n alla seconda chiamata si posiziona sulla seconda row e cosi via\n */\n\n boolean controllo = false;\n\n openConnection();\n\n String sql =\"select user,pass,vol_o_cand from pass where user='\"+userInserito+\"'\";\n ResultSet query = selectQuery(sql);\n\n try {\n\n if(query.next()){\n\n String pass = query.getString(\"pass\");\n\n if(pass.equals(passInserita)) {\n controllo = true;\n volocand = query.getString(\"vol_o_cand\");\n }\n\n }\n\n\n }catch(SQLException se){\n se.printStackTrace();\n }finally{\n closeConnection();\n }\n\n\n return controllo;\n\n }", "@Override\r\n public Resultado consultar(EntidadeDominio entidade) {\n String nmClass = entidade.getClass().getName();\r\n // instanciando DAO de acordo com a classe\r\n IDAO dao = daos.get(nmClass);\r\n //executando validações de regras de negocio \r\n String msg = executarRegras(entidade, \"PESQUISAR\");\r\n if (msg.isEmpty()) {\r\n if (dao.consultar(entidade).isEmpty()) {\r\n //caso dados não foram encontrados\r\n resultado.setMsg(\"dados nao encontrados\");\r\n } else {\r\n //caso dados foram encontrados \r\n resultado.setMsg(\"pesquisa feita com sucesso\");\r\n }\r\n resultado.setEntidades(dao.consultar(entidade));\r\n } else {\r\n resultado.setMsg(msg.toString());\r\n }\r\n return resultado;\r\n }", "public void actualizarFiltrarEstadoRequisicion(Requisicion req) throws Exception{\n String carnet = req.getCarnetEmpleado();\n\n java.util.Date utilDate = req.getFechaNueva();\n java.sql.Date fechaConvertida = new java.sql.Date(utilDate.getTime()); \n\n List<Requisicion> requisicion = new ArrayList<>();\n \n Connection miConexion = null;\n Statement miStatement = null;\n ResultSet miResultset = null; \n\n \n //Establecer la conexion\n miConexion = origenDatos.getConexion();\n \n \n //Verificar si existe empleado\n String sqlEmpleado = \"Select CARNETEMPLEADO FROM EMPLEADO WHERE CARNETEMPLEADO = '\"+carnet+\"'\";\n miStatement = miConexion.createStatement();\n miResultset = miStatement.executeQuery(sqlEmpleado);\n \n if(miResultset.next()){\n \n String empleado = carnet;\n \n \n String sqlDepto = \"select d.NOMBREDEPARTAMENTO from departamento d \" + \n \"inner join catalagopuesto c on d.codigodepartamento = c.codigodepartamento \" + \n \"inner join empleado e on c.codigopuesto = e.codigopuesto where e.carnetempleado ='\"+carnet+\"'\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(sqlDepto);\n //Crear sentencia SQL y Statement\n miResultset.next();\n String nomdepto = miResultset.getString(\"NOMBREDEPARTAMENTO\");\n \n String miSQl = \"select r.NUMREQ, r.FECPEDIDOREQ, r.FECENTREGAREQ, r.AUTORIZADO, e.CARNETEMPLEADO, e.NOMBREEMPLEADO, e.APELLIDOEMPLEADO, d.NOMBREDEPARTAMENTO \" + \n \"from requisicion r inner join empleado e on r.carnetempleado =e.carnetempleado \" + \n \"inner join catalagopuesto c on e.codigopuesto =c.codigopuesto \" + \n \"inner join departamento d on c.codigodepartamento = d.codigodepartamento \" + \n \"where r.AUTORIZADO = 1 and d.NOMBREDEPARTAMENTO='\"+nomdepto+\"' and r.FECPEDIDOREQ >=TO_DATE('\"+fechaConvertida+\"', 'YYYY/MM/DD HH:MI:SS') order by r.FECPEDIDOREQ\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(miSQl);\n \n while(miResultset.next()){\n int numReq = miResultset.getInt(\"NUMREQ\");\n Date fechaPedido = miResultset.getDate(\"FECPEDIDOREQ\");\n Date fechaEntrega = miResultset.getDate(\"FECENTREGAREQ\"); \n String carnetEmpleado = miResultset.getString(\"CARNETEMPLEADO\");\n String nombreEmpleado = miResultset.getString(\"NOMBREEMPLEADO\"); \n String apellidoEmpleado = miResultset.getString(\"APELLIDOEMPLEADO\");\n String nombreDepartamento = miResultset.getString(\"NOMBREDEPARTAMENTO\"); \n\n //*************************ACTUALIZAR**************************\n Connection miConexion1 = null;\n PreparedStatement miStatement1 = null;\n \n //Obtener la conexion\n \n miConexion1 = origenDatos.getConexion();\n \n //Crear sentencia sql que inserte la requisicion a la base\n String misql = \"UPDATE requisicion SET autorizado = ? WHERE numreq = ?\";\n \n miStatement1 = miConexion1.prepareStatement(misql);\n \n //Establecer los parametros para insertar la requisicion \n if(\"aceptado\".equals(req.getEstadoAut())) {\n miStatement1.setInt(1, 0);\n }else{\n miStatement1.setInt(1, 1);\n } \n\n miStatement1.setInt(2, numReq);//se obtendra dentro del while\n \n //Ejecutar la instruccion sql\n miStatement1.execute(); \n //Requisicion temporal = new Requisicion(numReq, fechaPedido, fechaEntrega, carnetEmpleado, nombreEmpleado, apellidoEmpleado, nombreDepartamento);\n //requisicion.add(temporal);\n }\n \n }\n //return requisicion; \n }", "public ArrayList<Factura> recuperaFacturaCompletaPorFiltro(String filtro) {\r\n\t\tString sql = \"\";\r\n\t\tsql += \"SELECT * FROM facturas WHERE \";\r\n\t\tsql += filtro;\r\n\t\tsql += \" ORDER BY facturas.numero\";\r\n\t\tSystem.out.println(sql);\r\n\t\tArrayList<Factura> lista = new ArrayList<>();\r\n\t\tConnection c = new Conexion().getConection();\r\n\t\tif (c != null) {\r\n\t\t\ttry {\r\n\t\t\t\t// Crea un ESTAMENTO (comando de ejecucion de un sql)\r\n\t\t\t\tStatement comando = c.createStatement();\r\n\t\t\t\tResultSet rs = comando.executeQuery(sql);\r\n\t\t\t\twhile (rs.next() == true) {\r\n\t\t\t\t\tint id = rs.getInt(\"id\");\r\n\t\t\t\t\tint clienteId = rs.getInt(\"clienteId\");\r\n\t\t\t\t\tString nombreCliente = rs.getString(\"nombreCliente\");\r\n\t\t\t\t\tint numero = rs.getInt(\"numero\");\r\n\t\t\t\t\tDate fecha = rs.getDate(\"fecha\");\r\n\t\t\t\t\tdouble porcDescuento = rs.getDouble(\"porcDescuento\");\r\n\t\t\t\t\tdouble porcRecargoEquivalencia = rs.getDouble(\"porcRecargoEquivalencia\");\r\n\t\t\t\t\tdouble impTotal = rs.getDouble(\"impTotal\");\r\n\t\t\t\t\tdouble impRecargo = rs.getDouble(\"impRecargo\");\r\n\t\t\t\t\tdouble impIva = rs.getDouble(\"impIva\");\r\n\t\t\t\t\tString dirCorreo = rs.getString(\"dirCorreo\");\r\n\t\t\t\t\tString dirFactura = rs.getString(\"dirFactura\");\r\n\t\t\t\t\tString dirEnvio = rs.getString(\"dirEnvio\");\r\n\t\t\t\t\tboolean cobrada = rs.getBoolean(\"cobrada\");\r\n\t\t\t\t\tArrayList<FacturaDetalle> detalles = new FacturasDetallesBDD().recuperaPorFacturaId(id);\r\n\t\t\t\t\tlista.add(new Factura(id, clienteId, nombreCliente, numero, fecha, porcDescuento, porcRecargoEquivalencia, impTotal, impRecargo, impIva, dirCorreo, dirFactura, dirEnvio, cobrada, detalles));\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tc.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "private void llenarListado1() {\r\n\t\tString sql1 = Sentencia1()\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tdet.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor det.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\t\tString sql2 = Sentencia2()\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarLista(sql1, sql2);\r\n\t}", "public java.sql.ResultSet consultapormedicofecha2(String CodigoMedico,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas,7,3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo=\"+CodigoMedico+\" AND phm.fechas='\"+fecha+\"' AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND sdp.numeroDocumento=pmd.numeroDocumento AND su.dat_codigo_fk=sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY jornada,phm.horas \");\r\n \tSystem.out.println(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas,7,3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo=\"+CodigoMedico+\" AND phm.fechas='\"+fecha+\"' AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND sdp.numeroDocumento=pmd.numeroDocumento AND su.dat_codigo_fk=sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY jornada,phm.horas \");\r\n \t\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public ResultSet hacerConsulta(String query) throws SQLException{\n Statement st = conexion.createStatement();//para poder hacer la consulta a la base necesitamos un objeto de la clase Statement \n ResultSet rs = st.executeQuery(query); //el objeto st realiza la consulta y retorna el resultado en un objeto de la clase ResultSet\n return rs; // devolvemos la consulta al main\n }", "public String validarResponsableYaAsignado (DTOResponsable dtoe) throws MareException { \n UtilidadesLog.info(\"DAOZON.validarResponsableYaAsignado(DTOResponsable dtoe): Entrada\");\n StringBuffer consulta = new StringBuffer();\n Vector parametros = new Vector();\n RecordSet rs = new RecordSet();\n \n String asignado = null;\n String unidadAdministrativa = null;\n Long marca = null;\n Long canal = null;\n Long pais = null;\n\n //Recuperamos el pais, marca y canal de la Unidad Administrativa \n BelcorpService bs = UtilidadesEJB.getBelcorpService();\n\n /*if (dtoe.getIndUA().intValue() == 1) { \n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_sub_geren_venta \");\n consulta.append(\" WHERE oid_subg_vent = ? \");\n unidadAdministrativa = \"Subgerencia\";\n }*/\n if (dtoe.getIndUA().intValue() == 2){\n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_regio \");\n consulta.append(\" WHERE oid_regi = ? \");\n unidadAdministrativa = \"Region\";\n }\n if (dtoe.getIndUA().intValue() == 3){\n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_zona \");\n consulta.append(\" WHERE oid_zona = ? \");\n unidadAdministrativa = \"Zona\";\n }\n /*if (dtoe.getIndUA().intValue() == 4){\n consulta.append(\" SELECT zon.pais_oid_pais PAIS, zon.marc_oid_marc MARCA, zon.cana_oid_cana canal \");\n consulta.append(\" FROM zon_zona zon, zon_secci sec \");\n consulta.append(\" WHERE sec.zzon_oid_zona = zon.oid_zona \"); \n consulta.append(\" AND sec.oid_secc = ? \");\n unidadAdministrativa = \"Seccion\"; \n }*/\n parametros.add(dtoe.getOidUA());\n \n try {\n rs = bs.dbService.executePreparedQuery(consulta.toString(), parametros);\n UtilidadesLog.debug(\"rs: \" + rs);\n } catch (Exception e) {\n codigoError = CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(codigoError));\n }\n\n if (rs.esVacio()) {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: No existe Unidad Administrativa \");\t\t\t\t\n String sCodigoError = CodigosError.ERROR_DE_PETICION_DE_DATOS_NO_EXISTENTE;\n throw new MareException(new Exception(), UtilidadesError.armarCodigoError(sCodigoError));\n } else {\n pais = new Long(((BigDecimal)rs.getValueAt(0,\"PAIS\")).longValue());\n marca = new Long(((BigDecimal)rs.getValueAt(0,\"MARCA\")).longValue());\n canal = new Long(((BigDecimal)rs.getValueAt(0,\"CANAL\")).longValue());\n }\n\n //Buscamos si el cliente es responsable en otra unidad administrativa\n //para el pais, marca y canal de la unidad administrativa a asignar\n parametros = new Vector(); \n consulta = new StringBuffer();\n /*consulta.append(\" SELECT 'SubGerencia: ' || zon_sub_geren_venta.des_subg_vent DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, mae_clien \");\n consulta.append(\" WHERE mae_clien.oid_clie = zon_sub_geren_venta.clie_oid_clie \"); \n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n\n consulta.append(\" UNION \");*/\n \n consulta.append(\" SELECT 'Region: ' || zon_regio.des_regi DESCUNIDADADMIN \");\n consulta.append(\" FROM mae_clien, zon_sub_geren_venta, zon_regio \");\n consulta.append(\" WHERE mae_clien.oid_clie = zon_regio.clie_oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");\n \n consulta.append(\" UNION \");\n \n consulta.append(\" SELECT 'Zona: ' || zon_zona.des_zona DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, zon_regio, zon_zona, mae_clien \");\n consulta.append(\" WHERE zon_zona.clie_oid_clie = mae_clien.oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_zona.zorg_oid_regi = zon_regio.oid_regi \");\n consulta.append(\" AND zon_zona.ind_borr = 0 \");\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");\n \n /*consulta.append(\" UNION \");\n \n consulta.append(\" SELECT 'Seccion: ' || zon_secci.des_secci DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, zon_regio, \");\n consulta.append(\" zon_zona, zon_secci, mae_clien \");\n consulta.append(\" WHERE zon_secci.clie_oid_clie = mae_clien.oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_zona.zorg_oid_regi = zon_regio.oid_regi \");\n consulta.append(\" AND zon_secci.zzon_oid_zona = zon_zona.oid_zona \"); \n consulta.append(\" AND zon_secci.ind_borr = 0 \");\n consulta.append(\" AND zon_zona.ind_borr = 0 \");\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");*/\n\n try {\n rs = bs.dbService.executePreparedQuery(consulta.toString(), parametros);\n UtilidadesLog.debug(\"rs: \" + rs);\n } catch (Exception e) {\n codigoError = CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(codigoError));\n }\n\n if (rs.esVacio()) {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: No hay datos \");\t\t\t\t\n }\n else {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: se encontro al menos un cliente \");\t\t\t\t\n asignado = rs.getValueAt(0,\"DESCUNIDADADMIN\").toString();\n }\n \n UtilidadesLog.info(\"DAOZON.validarResponsableYaAsignado(DTOResponsable dtoe): Salida\"); \n \n return asignado;\n }", "public List<Tema> findBySql(String sql) {\n //SQLiteDatabase db = getReadableDatabase();\n Log.d(\"[IFMG]\", \"SQL: \" + sql);\n try {\n Log.d(\"[IFMG]\", \"Vai consultar\");\n Cursor c = dbr.rawQuery(sql, null);\n Log.d(\"[IFMG]\", \"Consultou...\");\n return toList(c);\n } finally {\n\n //dbr.close();\n }\n }", "Object executeSelectQuery(String sql) { return null;}", "private String getConsulta(int indice) {\r\n\t\tString sql = \"\";\r\n\t\tStringBuffer variables = new StringBuffer();\r\n\t\tinParams = ((TxParams)todo.get(indice)).getParams().entrada;\r\n\t\toutParams = ((TxParams)todo.get(indice)).getParams().salida;\r\n\t\tif ((inParams == null || inParams.size() == 0) && (outParams == null || outParams.size() == 0))\r\n\t\t\tsql = \"{call \" + consultas[indice] + \"}\";\r\n\t\telse {\r\n\t\t\t//Por cada parametro de entrada corresponde un ?\r\n\t\t\t//Ojo que tambien hay que considerar los de salida si es necesario\r\n\t\t\t//pero no esta cubierto en esta primera etapa\r\n\t\t\tif (inParams != null) {\r\n\t\t\t\tfor (int i = 0; i < inParams.size(); i++)\r\n\t\t\t\t\tvariables.append(\"?,\");\r\n\t\t\t}\r\n\t\t\tif (outParams != null) {\r\n\t\t\t\tfor (int i = 0; i < outParams.size(); i++)\r\n\t\t\t\t\tvariables.append(\"?,\");\r\n\t\t\t}\r\n\t\t\tString listaVars = variables.toString();\r\n\t\t\tlistaVars = listaVars.substring(0, listaVars.length() - 1);\r\n\t\t\tsql = \"{call \" + consultas[indice] + \"(\" + listaVars + \")}\";\r\n\t\t}\r\n\t\treturn sql;\r\n\t}", "public T consultaGenerica(String comandoSql) throws SQLException {\n T entidade = null;\n try (Connection conect = MySqlConexao.geraConexao()) {\n try (PreparedStatement params = conect.prepareStatement(comandoSql)) {\n try (ResultSet dados = params.executeQuery()) {\n if (dados.first()) {\n entidade = montaEntidade(dados);\n }\n }\n }\n if (!conect.isClosed()) {\n conect.close();\n }\n } catch (IOException ex) {\n Logger.getLogger(MySqlDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return entidade;\n }", "public Object[][] Consulta(String Comsql) {\n Object Datos[][] = null;\n try {\n PreparedStatement pstm = con.prepareStatement(Comsql);\n /* declarando ResulSet que va a contener el resultado de la ejecucion del Query */\n ResultSet rs = pstm.executeQuery();\n /*se ubica en el ultimo registro, para saber cuantos ahi */\n rs.last();\n /*para saber el numero de filas y columnas del ResulSet */\n ResultSetMetaData rsmd = rs.getMetaData();\n /*aqui muestra la cantidad de filas y colmnas ahi */\n int numCols = rsmd.getColumnCount();\n int numFils = rs.getRow();\n /*cojemos nuestro objeto datos y le damos formato, eso es igual a numero de filas y numero de columnas */\n Datos = new Object[numFils][numCols];\n /* nos ubicamos antes de la primera fila */\n rs.beforeFirst();\n\n /*j= filas\n i= columnas\n */\n int j = 0;\n /*recorremos los datos del RS\n */\n while (rs.next()) {\n /*i siempre se inicializa en cero; la condicion va hasta que i sea menor que e numcol; y aumenta de 1 en 1 */\n for (int i = 0; i < numCols; i++) {\n /*aqui le asignamos valor a nuestro arreglo */\n Datos[j][i] = rs.getObject(i + 1);\n }\n j++;\n }\n pstm.close();\n rs.close();\n } catch (Exception e) {\n System.out.println(\"Error : \" + e.getMessage());\n }\n return Datos;\n }", "public String Execomando(String Comsql) {\n String Mensaje = \"\";\n /* sino retorna nada es porque todo esta bien */\n try {\n PreparedStatement pstm = con.prepareStatement(Comsql);\n pstm.execute();\n pstm.close();\n } catch (SQLException e) {\n Mensaje = e.toString();\n }\n return Mensaje;\n }", "public void consultarDatos() throws SQLException {\n String instruccion = \"SELECT * FROM juegos.juegos\";\n try {\n comando = conexion.createStatement();\n resultados = comando.executeQuery(instruccion);\n } catch (SQLException e) {\n e.printStackTrace();\n throw e;\n }\n }", "public void refresh() {\n String sql = \"\";\n sql += \"select m.id\"\n + \", m.data\"\n + \", CAST(CONCAT(dep.nome, ' [', dep.id, ']') AS CHAR(50)) as deposito\"\n + \", cau.descrizione as causale\"\n + \", m.articolo\"\n + \", if (cau.segno = -1 , -m.quantita, m.quantita) as quantita\"\n + \", m.note\"\n + \", cast(concat(IF(m.da_tipo_fattura = 7, 'Scontr.', \"\n + \" IF(m.da_tabella = 'test_fatt', 'Fatt. Vend.', \"\n + \" IF(m.da_tabella = 'test_ddt', 'DDT Vend.',\"\n + \" IF(m.da_tabella = 'test_fatt_acquisto', 'Fatt. Acq.',\"\n + \" IF(m.da_tabella = 'test_ddt_acquisto', 'DDT Acq.', m.da_tabella)))))\"\n + \" , da_serie, ' ', da_numero, '/', da_anno, ' - [ID ', da_id, ']') as CHAR)as origine\"\n // + \", m.da_tabella\"\n // + \", m.da_anno\"\n // + \", m.da_serie\"\n // + \", m.da_numero\"\n // + \", m.da_id\"\n + \", m.matricola\"\n + \", m.lotto\"\n + \", a.codice_fornitore, a.codice_a_barre from movimenti_magazzino m left join articoli a on m.articolo = a.codice\"\n + \" left join tipi_causali_magazzino cau on m.causale = cau.codice\"\n + \" left join depositi dep ON m.deposito = dep.id\";\n sql += \" where 1 = 1\";\n System.out.println(\"articolo_selezionato_filtro_ref = \" + articolo_selezionato_filtro_ref);\n System.out.println(\"articolo_selezionato_filtro_ref get = \" + articolo_selezionato_filtro_ref.get());\n if (articolo_selezionato_filtro_ref.get() != null && StringUtils.isNotBlank(articolo_selezionato_filtro_ref.get().codice)) {\n sql += \" and m.articolo like '\" + Db.aa(articolo_selezionato_filtro_ref.get().codice) + \"'\";\n }\n if (filtro_barre.getText().length() > 0) {\n sql += \" and a.codice_a_barre like '%\" + Db.aa(filtro_barre.getText()) + \"%'\";\n }\n if (filtro_lotto.getText().length() > 0) {\n sql += \" and m.lotto like '%\" + Db.aa(filtro_lotto.getText()) + \"%'\";\n }\n if (filtro_matricola.getText().length() > 0) {\n sql += \" and m.matricola like '%\" + Db.aa(filtro_matricola.getText()) + \"%'\";\n }\n if (filtro_fornitore.getText().length() > 0) {\n sql += \" and a.codice_fornitore like '%\" + Db.aa(filtro_fornitore.getText()) + \"%'\";\n }\n if (filtro_deposito.getSelectedIndex() >= 0) {\n sql += \" and m.deposito = \" + cu.s(filtro_deposito.getSelectedKey());\n }\n sql += \" order by m.data desc, id desc\";\n System.out.println(\"sql movimenti: \" + sql);\n griglia.dbOpen(Db.getConn(), sql, Db.INSTANCE, true);\n griglia.dbSelezionaRiga();\n }", "public java.sql.ResultSet consultapormedicofecha(String CodigoMedico,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pmd.codigo=\"+CodigoMedico+\" and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "protected T selectImpl(String sql, String... paramentros) {\n\t\tCursor cursor = null;\n\t\ttry {\n\t\t\tcursor = BancoHelper.db.rawQuery(sql, paramentros);\n\t\t\t\n\t\t\tif (cursor.getCount() > 0 && cursor.moveToFirst()) {\n\t\t\t\treturn fromCursor(cursor);\n\t\t\t}\n\n\t\t\tthrow new RuntimeException(\"Não entrou no select\");\n\n\t\t} finally {\n\n\t\t\tif (cursor != null && !cursor.isClosed()) {\n\t\t\t\tcursor.close();\n\t\t\t}\n\t\t}\n\n\t}", "public boolean existeorden(String ordenservicio){\n boolean existe=false;\n \n conex con=new conex(); \n ResultSet rsR = null; \n String myQuery = \"select tipocorte from to_estetica where (estatus='ABIERTA' or estatus='CERRADA') and tipocorte='\"+ordenservicio+\"'\";\n System.out.println(\"\"+myQuery);\n try {\n Statement st = con.getConnection().createStatement();\n rsR = st.executeQuery(myQuery);\n while(rsR.next()) { \n existe=true; \n } \n rsR.close(); \n st.close();\n con.desconectar();\n } catch (SQLException ex) { \n existe=true; \n JOptionPane.showMessageDialog(null, \"Error al obtener los datos: \"+ex, \"Error\", JOptionPane.ERROR_MESSAGE);\n } \n \n return existe;\n }", "private boolean consultarCotizacionesParaFacturar(java.sql.Connection conn, int intCodSeg){\r\n boolean blnRes=false;\r\n java.sql.Statement stmLoc,stmLoc01;\r\n stbDocRelEmpRem = new StringBuffer();\r\n arlDocGenDat = new ArrayList();\r\n objZafGenOD = new GenOD.ZafGenOdPryTra() ;\r\n objModDatGenFac = new Librerias.ZafGenFacAut.ZafModDatGenFac(objParSis, jifCnt);\r\n objStkInv = new Librerias.ZafStkInv.ZafStkInv(objParSis);\r\n objCnfDoc = new Librerias.ZafCnfDoc.ZafCnfDoc(objParSis,null);\r\n objCfgSer.cargaDatosIpHostServicios(0, intCodSer);\r\n java.sql.ResultSet rstLoc,rstLoc01;\r\n String strMerIngEgr=\"\",strTipIngEgr=\"\";\r\n blnIsComSol = false;\r\n try{\r\n stmLoc=conn.createStatement();\r\n strSql=\"\";\r\n strSql+=\" SELECT a2.co_seg, a3.tx_corEle, \\n\";\r\n strSql+=\" a1.co_emp, a1.co_loc, a1.co_cot, a1.fe_cot, a1.co_cli, a1.co_ven, a1.tx_ate, a1.co_forpag, \\n\";\r\n strSql+=\" a1.nd_sub, a1.nd_poriva, a1.nd_valdes, a1.tx_obs1, a1.tx_obs2, a1.st_reg, a1.fe_ing, \\n\";\r\n strSql+=\" a1.fe_ultmod, a1.co_usring, a1.co_usrmod, a1.nd_tot, a1.ne_val, a1.nd_valiva, a1.tx_numped, \\n\";\r\n strSql+=\" a1.st_regrep, a1.tx_obssolaut, a1.tx_obsautsol, a1.st_aut, a1.tx_nomcli, a1.fe_procon, \\n\";\r\n strSql+=\" a1.co_locrelsoldevven, a1.co_tipdocrelsoldevven, a1.co_docrelsoldevven, \\n\";\r\n strSql+=\" a1.st_docconmersaldemdebfac, a1.fe_val, a1.co_tipcre, a1.tx_dirclifac, a1.tx_dircliguirem, \\n\";\r\n strSql+=\" a1.co_forret, a1.tx_vehret, a1.tx_choret, \\n\";\r\n strSql+=\" CASE WHEN a1.tx_momgenfac IS NULL THEN 'M' ELSE a1.tx_momgenfac END as tx_momgenfac, \\n\";\r\n strSql+=\" a1.nd_valComSol,a1.nd_subIvaCer,a1.nd_subIvaGra,a1.nd_porComSol,a1.st_solFacPar, a1.tx_tipCot \\n\";\r\n strSql+=\" FROM tbm_cabCotVen as a1 \\n\";\r\n strSql+=\" INNER JOIN tbm_cabSegMovInv as a2 ON (a1.co_emp=a2.co_empRelCabCotVen AND a1.co_loc=a2.co_locRelCabCotVen AND \\n\";\r\n strSql+=\" a1.co_cot=a2.co_cotRelCabCotVen) \\n\";\r\n strSql+=\" INNER JOIN tbm_usr as a3 ON (a1.co_usrIng=a3.co_usr) \\n\";\r\n strSql+=\" WHERE a2.co_seg=\"+intCodSeg+\" AND a2.co_empRelCabCotVen IS NOT NULL AND a1.st_reg!='F' \\n\"; /* LISTO PARA FACTURAR */\r\n strSql+=\" AND a1.st_autSolResInv IS NULL \";\r\n strSql+=\" ORDER BY a1.co_emp, a1.co_loc \\n\";\r\n System.out.println(\"consultarCotizacionesParaFacturar... \\n\" + strSql);\r\n rstLoc=stmLoc.executeQuery(strSql);\r\n while(rstLoc.next()){\r\n CodEmpGenFac = rstLoc.getInt(\"co_emp\");\r\n if(rstLoc.getInt(\"co_emp\")==2 && rstLoc.getInt(\"co_loc\")==4){\r\n blnIsComSol=true;\r\n }\r\n// dblPorComSol=objUti.redondear(rstLoc.getDouble(\"nd_porComSol\"), objParSis.getDecimalesMostrar());\r\n// dblBaseIva=objUti.redondear(rstLoc.getDouble(\"nd_subIvaGra\"), objParSis.getDecimalesMostrar());\r\n\r\n obtenerDatosFactura(conn, rstLoc.getInt(\"co_emp\"),rstLoc.getInt(\"co_loc\"),rstLoc.getInt(\"co_cot\"));\r\n objZafCtaCtb_dat = new ZafCtaCtb_dat(objParSis,rstLoc.getInt(\"co_emp\"),rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle);\r\n cargarTipEmp(conn, rstLoc);\r\n Configurartabla();\r\n configurarTablaPago();\r\n refrescaDatos2(conn,rstLoc, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"));\r\n CalculoPago(conn, rstLoc); // TOTALES CARGADO????? \r\n CalculoPago2(conn, rstLoc);\r\n// refrescaDatos2(conn,rstLoc, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"));\r\n FormaRetencion(conn, rstLoc.getInt(\"co_emp\"));\r\n stmLoc01=conn.createStatement();\r\n strSql = \"SELECT st_meringegrfisbod, tx_natdoc FROM tbm_cabtipdoc WHERE co_emp=\" + rstLoc.getInt(\"co_emp\") + \" \"\r\n + \" and co_loc=\"+rstLoc.getInt(\"co_loc\")+\" and co_tipDoc=\" + intCodTipDocFacEle;\r\n rstLoc01 = stmLoc01.executeQuery(strSql);\r\n if (rstLoc01.next()) {\r\n strMerIngEgr = rstLoc01.getString(\"st_meringegrfisbod\");\r\n strTipIngEgr = rstLoc01.getString(\"tx_natdoc\");\r\n }\r\n rstLoc01.close();\r\n rstLoc01=null;\r\n stmLoc01.close();\r\n stmLoc01=null;\r\n //dblPorComSol=0.00,dblBaseIva=0.00;\r\n\r\n System.out.println(\"st_reg= \" + rstLoc.getString(\"st_reg\").toString());\r\n\r\n if(rstLoc.getString(\"st_reg\").equals(\"L\") && (rstLoc.getString(\"tx_momGenFac\").equals(\"F\") || rstLoc.getString(\"tx_momGenFac\").equals(\"M\") )){ // INMACONSA SE FACTURA POR AKI\r\n if(insertarCabFac(conn,rstLoc)){\r\n if (insertarDetFac(conn,rstLoc,intCodSeg)) {\r\n calculaPag(conn, rstLoc);\r\n if (insertarPagFac(conn,rstLoc, intCodTipDocFacEle, intCodDoc)) {\r\n if(insertarDiario(conn,rstLoc, intCodTipDocFacEle, intCodDoc)) {\r\n if (objInvItm._getExiItmSer(conn, rstLoc.getInt(\"co_emp\"),rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc)) {\r\n if(asignaNumeroFac(conn, rstLoc.getInt(\"co_emp\"),rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc, rstLoc.getInt(\"co_cot\") )){\r\n if(insertarTablaSeguimiento(conn,rstLoc,intCodTipDocFacEle,intCodDoc)){\r\n if(prepararEgreso(conn,rstLoc,rstLoc.getInt(\"co_emp\"),rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc) ){\r\n// if(objModDatGenFac.cuadraStockSegunMovimientos(conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc)){\r\n System.err.println(\"<----- antes costear ----->\");\r\n if(objUti.costearDocumento(jifCnt, objParSis, conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc)){\r\n System.err.println(\"<----- despues costear ----->\");\r\n if(revisarInvBodNegativos(conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc)){\r\n System.out.println(\"ANTES OD \");\r\n if(objZafGenOD.generarODLocal(conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc,true)){\r\n if(objDatItm.preLiberarItems(conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), rstLoc.getInt(\"co_cot\"))){\r\n blnRes=true;\r\n guardaDocumentosGenerado(rstLoc,intCodTipDocFacEle,intNumFacElec,intCodDoc,rstLoc.getString(\"tx_corEle\")); // PARA EL CORREO ELECTRONICO\r\n System.out.println(\"GENERO: \"+rstLoc.getInt(\"co_emp\")+\" - \"+rstLoc.getInt(\"co_loc\")+\" - \"+rstLoc.getInt(\"co_cot\")+\"FACTURA: \"+intCodTipDocFacEle+\"-\"+intCodDoc);\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{System.out.println(\"costeo Error\"); blnRes=false; }\r\n// }else{ System.out.println(\"cuadraStockSegunMovimientos Error\"); blnRes = false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n\r\n if(blnRes==false){\r\n objCorEle.enviarCorreoMasivo(strCorEleTo,\"ERROR.... \",\"Revisar Seguimiento: \"+rstLoc.getInt(\"co_seg\")+\"cotizacion Emp:\"+rstLoc.getInt(\"co_emp\")+\" Loc:\"+rstLoc.getInt(\"co_loc\")+\" Cot:\" + rstLoc.getInt(\"co_cot\"));\r\n }\r\n }\r\n else if(rstLoc.getString(\"tx_momGenFac\").equals(\"P\")){\r\n// if(obtenerFacturaSeguimiento(conn,intCodSeg)){\r\n// if(actualizarDetFac(conn,rstLoc)){\r\n// if(prepararEgreso(conn,rstLoc,rstLoc.getInt(\"co_emp\"),rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc) ){\r\n// if(!objZafGenOD.validarODExs(conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc)){\r\n// if(objZafGenOD.generarNumODFacIni(conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc)){\r\n// if(revisarInvBodNegativos(conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc)){\r\n// blnRes=true;\r\n// }else{blnRes=false;}\r\n// }else{blnRes=false;}\r\n// }else{ blnRes=true; }\r\n// }\r\n// }\r\n// }\r\n blnRes=false;\r\n }\r\n else{\r\n objCorEle.enviarCorreoMasivo(strCorEleTo, \"FACTURA AUTOMATICA ESTADO INCORRECTO.... \",\"Revisar Seguimiento: \"+rstLoc.getInt(\"co_seg\"));\r\n }\r\n\r\n\r\n\r\n\r\n if(blnRes==false){\r\n System.out.println(\"FALLO!!! \"+rstLoc.getInt(\"co_emp\")+\" - \"+rstLoc.getInt(\"co_loc\")+\" - \"+rstLoc.getInt(\"co_cot\"));\r\n }\r\n objZafCtaCtb_dat = null;\r\n }\r\n if(blnRes){\r\n enviaCorreosElectronicos();\r\n// enviaImprimirOdLocal(conn);\r\n enviarPulsoFacturacionElectronica();\r\n System.err.println(\"GUARDA!!!! \");\r\n }\r\n else{\r\n System.err.println(\"ERROR!!!! \");\r\n }\r\n \r\n stmLoc.close();\r\n stmLoc=null;\r\n rstLoc.close();\r\n rstLoc=null;\r\n }\r\n catch (SQLException Evt) {\r\n blnRes = false;\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n } \r\n catch (Exception Evt) {\r\n blnRes = false;\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n }\r\n return blnRes;\r\n }", "public List<Object[]> getRetencionesAnuladas(int mes, int anio, int idOrganizacion, Sucursal sucursalFP, Sucursal sucursalRetencion, PuntoDeVenta puntoVentaRetencion, String orden, TipoComprobanteSRI tipoComprobante)\r\n/* 125: */ {\r\n/* 126:175 */ StringBuilder sql = new StringBuilder();\r\n/* 127: */ \r\n/* 128:177 */ sql.append(\" SELECT a.fechaEmisionDocumento, f.fechaRegistro, f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero), f.identificacionProveedor, \");\r\n/* 129: */ \r\n/* 130:179 */ sql.append(\" \\t'', f.montoIva*0, f.montoIva*0, f.montoIva*0, '', '', \");\r\n/* 131: */ \r\n/* 132:181 */ sql.append(\" \\tCONCAT(a.establecimiento,'-',a.puntoEmision,'-',a.numeroDesde), f.montoIva*0, f.montoIva*0, f.montoIva*0, f.nombreProveedor, \");\r\n/* 133: */ \r\n/* 134:183 */ sql.append(\"\\tf.montoIva*0, f.montoIva*0, '', a.autorizacion, f.fechaRegistro, f.autorizacion, '', 'ANULADO', f.idFacturaProveedorSRI,'' \");\r\n/* 135:184 */ sql.append(\" FROM AnuladoSRI a, FacturaProveedorSRI f \");\r\n/* 136:185 */ sql.append(\" WHERE a.documentoRelacionado = f.idFacturaProveedorSRI \");\r\n/* 137:186 */ sql.append(\" AND a.tipoComprobanteSRI = :tipoComprobante \");\r\n/* 138:187 */ sql.append(\" AND a.anio = :anio AND a.mes = :mes \");\r\n/* 139:188 */ sql.append(\" AND a.idOrganizacion = :idOrganizacion \");\r\n/* 140:189 */ if (sucursalFP != null) {\r\n/* 141:190 */ sql.append(\" AND f.idSucursal = :idSucursal \");\r\n/* 142: */ }\r\n/* 143:192 */ if (sucursalRetencion != null) {\r\n/* 144:193 */ sql.append(\" AND a.establecimiento = :sucursalRetencion \");\r\n/* 145: */ }\r\n/* 146:195 */ if (puntoVentaRetencion != null) {\r\n/* 147:196 */ sql.append(\" AND a.puntoEmision = :puntoVentaRetencion \");\r\n/* 148: */ }\r\n/* 149:198 */ Query query = this.em.createQuery(sql.toString());\r\n/* 150:199 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 151:200 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 152:201 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 153:202 */ query.setParameter(\"tipoComprobante\", tipoComprobante);\r\n/* 154:203 */ if (sucursalFP != null) {\r\n/* 155:204 */ query.setParameter(\"idSucursal\", Integer.valueOf(sucursalFP.getId()));\r\n/* 156: */ }\r\n/* 157:206 */ if (sucursalRetencion != null) {\r\n/* 158:207 */ query.setParameter(\"sucursalRetencion\", sucursalRetencion.getCodigo());\r\n/* 159: */ }\r\n/* 160:209 */ if (puntoVentaRetencion != null) {\r\n/* 161:210 */ query.setParameter(\"puntoVentaRetencion\", puntoVentaRetencion.getCodigo());\r\n/* 162: */ }\r\n/* 163:213 */ return query.getResultList();\r\n/* 164: */ }", "@Override\n public void onClick(View v) {\n queryMain = svBusqueda.getQuery();\n Toast.makeText(getApplicationContext(),\"ejecutando consulta \"+queryMain,Toast.LENGTH_LONG).show();\n consultarDb();\n }", "public java.sql.ResultSet CitasActivasSoloMedico(String CodigoMedico){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas, 7, 3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo = \"+CodigoMedico+\" AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND phm.estado='0' AND sdp.numeroDocumento = pmd.numeroDocumento AND su.dat_codigo_fk = sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY phm.fechas,jornada,phm.horas LIMIT 100 \");\r\n \t//System.out.println(\"SELECT ahm.codigo,ahm.horas,ahm.fechas,ahm.NombrePaciente,aes.nombre_especialidad,amd.nombre,amd.apellidos,ahm.estado,aes.codigo,amd.codigo,su.usu_codigo,SUBSTRING(ahm.horas, 7, 3) AS jornada FROM agm_horariomedico ahm,agm_medico amd,agm_especialidad aes,seg_datos_personales sdp,seg_usuario su WHERE amd.codigo = \"+CodigoMedico+\" AND ahm.codMedico_fk = amd.codigo AND amd.codEspe_fk = aes.codigo AND ahm.estado='0' AND sdp.numeroDocumento = amd.numeroDocumento AND su.dat_codigo_fk = sdp.dat_codigo AND ahm.fechas >= CURDATE() ORDER BY ahm.fechas,jornada,ahm.horas LIMIT 100 \");\r\n \t\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public synchronized ConsultaSQL getConsultaSQL(String TipoConsulta) throws Exception, IndexOutOfBoundsException, NullPointerException {\r\n\t\trecorreArbol(findConsultaSQL(TipoConsulta));\r\n\t\tcreateParameters();\r\n\t\tconssql.setParams(listaParams);\r\n\t\treturn conssql;\r\n\t}", "private StringBuilder getSqlSelectContadorDocProrroga() {\n StringBuilder query = new StringBuilder();\n\n query.append(\" \");\n query.append(\" SELECT \\n\");\n query.append(\" PRO.ID_PRORROGA_ORDEN, \\n\");\n query.append(\" PRO.ID_ORDEN, \\n\");\n query.append(\" PRO.FECHA_CARGA, \\n\");\n query.append(\" PRO.RUTA_ACUSE,\\n\");\n query.append(\" PRO.CADENA_CONTRIBUYENTE, \\n\");\n query.append(\" PRO.FIRMA_CONTRIBUYENTE, \\n\");\n query.append(\" PRO.APROBADA, \\n\");\n query.append(\" PRO.ID_ASOCIADO_CARGA, \\n\");\n query.append(\" PRO.ID_AUDITOR, \\n\");\n query.append(\" PRO.ID_FIRMANTE, \\n\");\n query.append(\" PRO.RUTA_RESOLUCION, \\n\");\n query.append(\" PRO.CADENA_FIRMANTE, \\n\");\n query.append(\" PRO.FIRMA_FIRMANTE,\\n\");\n query.append(\" PRO.FECHA_FIRMA, \\n\");\n query.append(\" PRO.ID_ESTATUS, \\n\");\n query.append(\" PRO.FOLIO_NYV, \\n\");\n query.append(\" PRO.FECHA_NOTIF_NYV, \\n\");\n query.append(\" PRO.FECHA_NOTIF_CONT, \\n\");\n query.append(\" PRO.FECHA_SURTE_EFECTOS, \\n\");\n query.append(\" PRO.ID_NYV, \\n\");\n query.append(\" (SELECT COUNT(0) FROM \");\n query.append(FecetDocProrrogaOrdenDaoImpl.getTableName());\n query.append(\" DOCPRO WHERE PRO.ID_PRORROGA_ORDEN = DOCPRO.ID_PRORROGA_ORDEN) TOTAL_DOC_PRORROGA, \\n\");\n query.append(\" ASOCIADO.ID_ASOCIADO, \\n\");\n query.append(\" ASOCIADO.RFC_CONTRIBUYENTE, \\n\");\n query.append(\" ASOCIADO.RFC, \\n\");\n query.append(\" ASOCIADO.ID_ORDEN, \\n\");\n query.append(\" ASOCIADO.ID_TIPO_ASOCIADO, \\n\");\n query.append(\" ASOCIADO.NOMBRE, \\n\");\n query.append(\" ASOCIADO.CORREO, \\n\");\n query.append(\" ASOCIADO.TIPO_ASOCIADO, \\n\");\n query.append(\" ASOCIADO.FECHA_BAJA, \\n\");\n query.append(\" ASOCIADO.FECHA_ULTIMA_MOD, \\n\");\n query.append(\" ASOCIADO.FECHA_ULTIMA_MOD_IDC, \\n\");\n query.append(\" ASOCIADO.MEDIO_CONTACTO, \\n\");\n query.append(\" ASOCIADO.ESTATUS, \\n\");\n query.append(\" ESTATUS.ID_ESTATUS, \\n\");\n query.append(\" ESTATUS.DESCRIPCION, \\n\");\n query.append(\" ESTATUS.MODULO, \\n\");\n query.append(\" ESTATUS.ID_MODULO \\n\");\n\n query.append(\"FROM \");\n query.append(getTableName());\n query.append(\" PRO \\n\");\n query.append(\" INNER JOIN FECEC_ESTATUS ESTATUS \\n\");\n query.append(\" ON PRO.ID_ESTATUS = ESTATUS.ID_ESTATUS \\n\");\n query.append(\" LEFT JOIN FECET_ASOCIADO ASOCIADO \\n\");\n query.append(\" ON PRO.ID_ASOCIADO_CARGA = ASOCIADO.ID_ASOCIADO \\n\");\n return query;\n }", "public Collection cargarDeObjetivo(int codigoCiclo, int codigoPlan, int objetivo, int periodo, String estado) {\n/* 121 */ Collection resultados = new ArrayList();\n/* */ try {\n/* 123 */ String s = \"select m.Codigo_Ciclo, m.Codigo_Plan, m.Codigo_Meta, m.Codigo_Objetivo, m.Descripcion, m.Valor_Meta, m.Tipo_Medicion, m.Frecuencia_Medicion, m.Justificacion, m.Estado, m.Fecha_Insercion, m.Usuario_Insercion, m.Fecha_Modificacion, m.Usuario_Modificacion, m.Mes01, m.Mes02, m.Mes03, m.Mes04, m.Mes05, m.Mes06, m.Mes07, m.Mes08, m.Mes09, m.Mes10, m.Mes11, m.Mes12, m.Fuente_Dato, m.Aplica_En, m.Unidad_Medida, m.Valor_Minimo, m.Valor_Maximo, m.Tipo_Grafica, Tm.Descripcion as Nombretipomedicion, Est.Descripcion as Nombreestado, Um.Descripcion as Nombre_Unidad_Medida, SUM(CASE WHEN ac.NUMERO IS NOT NULL THEN 1 ELSE 0 END) acciones from Cal_Plan_Metas m left join Am_Acciones Ac on( m.Codigo_Ciclo = Ac.Codigo_Ciclo and m.Codigo_Plan = Ac.Codigo_Plan and m.Codigo_Meta = Ac.Codigo_Meta and Ac.Asociado = 'P'), \\t\\t Sis_Multivalores Tm, \\t\\t Sis_Multivalores Est, \\t\\t Sis_Multivalores Um where m.Tipo_Medicion = Tm.Valor and Tm.Tabla = 'CAL_TIPO_MEDICION' and m.Estado = Est.Valor and Est.Tabla = 'CAL_ESTADO_META' and m.Unidad_Medida = Um.Valor and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META' and m.codigo_ciclo=\" + codigoCiclo + \" and m.codigo_plan=\" + codigoPlan + \" and m.codigo_objetivo=\" + objetivo;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 180 */ if (estado.length() > 0) {\n/* 181 */ s = s + \" and m.estado='A'\";\n/* */ }\n/* */ \n/* 184 */ if (periodo == 1) {\n/* 185 */ s = s + \" and m.mes01='S'\";\n/* */ }\n/* 187 */ else if (periodo == 2) {\n/* 188 */ s = s + \" and m.mes02='S'\";\n/* */ }\n/* 190 */ else if (periodo == 3) {\n/* 191 */ s = s + \" and m.mes03='S'\";\n/* */ }\n/* 193 */ else if (periodo == 4) {\n/* 194 */ s = s + \" and m.mes04='S'\";\n/* */ }\n/* 196 */ else if (periodo == 5) {\n/* 197 */ s = s + \" and m.mes05='S'\";\n/* */ }\n/* 199 */ else if (periodo == 6) {\n/* 200 */ s = s + \" and m.mes06='S'\";\n/* */ }\n/* 202 */ else if (periodo == 7) {\n/* 203 */ s = s + \" and m.mes07='S'\";\n/* */ }\n/* 205 */ else if (periodo == 8) {\n/* 206 */ s = s + \" and m.mes08='S'\";\n/* */ }\n/* 208 */ else if (periodo == 9) {\n/* 209 */ s = s + \" and m.mes09='S'\";\n/* */ }\n/* 211 */ else if (periodo == 10) {\n/* 212 */ s = s + \" and m.mes10='S'\";\n/* */ }\n/* 214 */ else if (periodo == 11) {\n/* 215 */ s = s + \" and m.mes11='S'\";\n/* */ }\n/* 217 */ else if (periodo == 12) {\n/* 218 */ s = s + \" and m.mes12='S'\";\n/* */ } \n/* */ \n/* 221 */ s = s + \" GROUP BY m.Codigo_Ciclo, m.Codigo_Plan, m.Codigo_Meta, m.Codigo_Objetivo, m.Descripcion, m.Valor_Meta, m.Tipo_Medicion, m.Frecuencia_Medicion, m.Justificacion, m.Estado, m.Fecha_Insercion, m.Usuario_Insercion, m.Fecha_Modificacion, m.Usuario_Modificacion, m.Mes01, m.Mes02, m.Mes03, m.Mes04, m.Mes05, m.Mes06, m.Mes07, m.Mes08, m.Mes09, m.Mes10, m.Mes11, m.Mes12, m.Fuente_Dato, m.Aplica_En, m.Unidad_Medida, m.Valor_Minimo, m.Valor_Maximo, m.Tipo_Grafica, Tm.Descripcion, Est.Descripcion, Um.Descripcion order by m.descripcion\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 259 */ boolean rtaDB = this.dat.parseSql(s);\n/* 260 */ if (!rtaDB) {\n/* 261 */ return resultados;\n/* */ }\n/* */ \n/* 264 */ this.rs = this.dat.getResultSet();\n/* 265 */ while (this.rs.next()) {\n/* 266 */ resultados.add(leerRegistro());\n/* */ }\n/* */ }\n/* 269 */ catch (Exception e) {\n/* 270 */ e.printStackTrace();\n/* 271 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarTodos \", e);\n/* */ } \n/* 273 */ return resultados;\n/* */ }", "public Collection cargarMasivo(int codigoCiclo, String proceso, String subproceso, int periodo) {\n/* 287 */ Collection resultados = new ArrayList();\n/* */ try {\n/* 289 */ String s = \"select m.Codigo_Ciclo, m.Codigo_Plan, m.Codigo_Meta, m.Codigo_Objetivo, u.Descripcion Nombre_Area, Um.Descripcion as Nombre_Unidad_Medida, to_char(m.Codigo_Objetivo,'9999999999') ||' - ' || o.Descripcion Nombre_Objetivo, to_char(m.Codigo_Meta,'9999999999') ||' - ' || m.Descripcion Nombre_Meta, m.Unidad_Medida, m.Valor_Minimo, m.Valor_Maximo, l.Valor_Logro, case when l.Valor_Logro is not null then 'A' else 'N' end Existe from Cal_Planes p, Cal_Plan_Objetivos o, Cal_Plan_Metas m left join Cal_Logros l on( m.Codigo_Ciclo = l.Codigo_Ciclo and m.Codigo_Plan = l.Codigo_Plan and m.Codigo_Meta = l.Codigo_Meta and m.Codigo_Objetivo = l.Codigo_Objetivo and \" + periodo + \" = l.Periodo),\" + \" Unidades_Dependencia u,\" + \" Sis_Multivalores Um\" + \" where p.Ciclo = o.Codigo_Ciclo\" + \" and p.Codigo_Plan = o.Codigo_Plan\" + \" and o.Codigo_Ciclo = m.Codigo_Ciclo\" + \" and o.Codigo_Plan = m.Codigo_Plan\" + \" and o.Codigo_Objetivo = m.Codigo_Objetivo\" + \" and p.Codigo_Area = u.Codigo\" + \" and m.Unidad_Medida = Um.Valor\" + \" and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META'\" + \" and o.Proceso = '\" + proceso + \"'\" + \" and o.Subproceso = '\" + subproceso + \"'\" + \" and p.Ciclo = \" + codigoCiclo + \" and m.Estado = 'A'\" + \" and o.Estado = 'A'\" + \" and o.Tipo_Objetivo in ('G', 'M')\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 333 */ if (periodo == 1) {\n/* 334 */ s = s + \" and m.mes01='S'\";\n/* */ }\n/* 336 */ else if (periodo == 2) {\n/* 337 */ s = s + \" and m.mes02='S'\";\n/* */ }\n/* 339 */ else if (periodo == 3) {\n/* 340 */ s = s + \" and m.mes03='S'\";\n/* */ }\n/* 342 */ else if (periodo == 4) {\n/* 343 */ s = s + \" and m.mes04='S'\";\n/* */ }\n/* 345 */ else if (periodo == 5) {\n/* 346 */ s = s + \" and m.mes05='S'\";\n/* */ }\n/* 348 */ else if (periodo == 6) {\n/* 349 */ s = s + \" and m.mes06='S'\";\n/* */ }\n/* 351 */ else if (periodo == 7) {\n/* 352 */ s = s + \" and m.mes07='S'\";\n/* */ }\n/* 354 */ else if (periodo == 8) {\n/* 355 */ s = s + \" and m.mes08='S'\";\n/* */ }\n/* 357 */ else if (periodo == 9) {\n/* 358 */ s = s + \" and m.mes09='S'\";\n/* */ }\n/* 360 */ else if (periodo == 10) {\n/* 361 */ s = s + \" and m.mes10='S'\";\n/* */ }\n/* 363 */ else if (periodo == 11) {\n/* 364 */ s = s + \" and m.mes11='S'\";\n/* */ }\n/* 366 */ else if (periodo == 12) {\n/* 367 */ s = s + \" and m.mes12='S'\";\n/* */ } \n/* */ \n/* 370 */ s = s + \" order by m.Codigo_Ciclo, m.Codigo_Objetivo, m.Codigo_Meta, u.Descripcion\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 377 */ boolean rtaDB = this.dat.parseSql(s);\n/* 378 */ if (!rtaDB) {\n/* 379 */ return resultados;\n/* */ }\n/* */ \n/* 382 */ this.rs = this.dat.getResultSet();\n/* 383 */ while (this.rs.next()) {\n/* 384 */ CalMetasDTO reg = new CalMetasDTO();\n/* 385 */ reg.setCodigoCiclo(codigoCiclo);\n/* 386 */ reg.setCodigoPlan(this.rs.getInt(\"codigo_plan\"));\n/* 387 */ reg.setCodigoMeta(this.rs.getInt(\"codigo_meta\"));\n/* 388 */ reg.setCodigoObjetivo(this.rs.getInt(\"codigo_objetivo\"));\n/* 389 */ reg.setNombreArea(this.rs.getString(\"Nombre_Area\"));\n/* 390 */ reg.setNombreMeta(this.rs.getString(\"Nombre_meta\"));\n/* 391 */ reg.setNombreObjetivo(this.rs.getString(\"Nombre_Objetivo\"));\n/* 392 */ reg.setUnidadMedida(this.rs.getString(\"unidad_medida\"));\n/* 393 */ reg.setValorMinimo(this.rs.getDouble(\"valor_minimo\"));\n/* 394 */ reg.setValorMaximo(this.rs.getDouble(\"valor_maximo\"));\n/* 395 */ reg.setValorLogro(this.rs.getDouble(\"Valor_Logro\"));\n/* 396 */ reg.setNombreUnidadMedida(this.rs.getString(\"nombre_unidad_medida\"));\n/* 397 */ reg.setEstado(this.rs.getString(\"existe\"));\n/* 398 */ resultados.add(reg);\n/* */ }\n/* */ \n/* 401 */ } catch (Exception e) {\n/* 402 */ e.printStackTrace();\n/* 403 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarTodos \", e);\n/* */ } \n/* 405 */ return resultados;\n/* */ }", "static ResultSet dataOphalen(String querry) {\n //declaratie anders kan er niks worden gereturnt\n ResultSet rs = null;\n try {\n Statement stmt = connectieMaken().createStatement(); //\n rs = stmt.executeQuery(querry);\n } catch (SQLException se) {\n se.printStackTrace();\n }\n return rs;\n }", "public ArrayList<ServicioDTO> consultarServicios(String columna, String informacion) throws Exception {\r\n ArrayList<ServicioDTO> dtos = new ArrayList<>();\r\n conn = Conexion.generarConexion();\r\n String sql = \"\";\r\n if (columna.equals(\"nom\")) \r\n sql = \" WHERE SerNombre LIKE ? OR \"\r\n + \"SerNombre LIKE ? OR \"\r\n + \"SerNombre LIKE ? OR \"\r\n + \"SerNombre LIKE ?\";\r\n else if (columna.equals(\"cod\"))\r\n sql = \" WHERE SerCodigo = ? \";\r\n if (conn != null) {\r\n PreparedStatement stmt = conn.prepareStatement(\"SELECT SerCodigo, \"\r\n + \"SerNombre, SerCaracter, SerNotas, SerHabilitado \"\r\n + \"FROM tblservicio\" + sql);\r\n if (columna.equals(\"cod\")) {\r\n stmt.setString(1, informacion);\r\n } else if (columna.equals(\"nom\")) {\r\n stmt.setString(1, informacion);\r\n stmt.setString(2, \"%\" + informacion);\r\n stmt.setString(3, informacion + \"%\");\r\n stmt.setString(4, \"%\" + informacion + \"%\");\r\n }\r\n ResultSet rs = stmt.executeQuery();\r\n while (rs.next()) {\r\n ServicioDTO dto = new ServicioDTO();\r\n dto.setCodigo(rs.getInt(1));\r\n dto.setNombre(rs.getString(2));\r\n dto.setCaracter(rs.getString(3));\r\n dto.setNotas(rs.getString(4));\r\n String habilitado = rs.getString(5);\r\n if(habilitado.equals(\"si\"))\r\n dto.setHabilitado(true);\r\n else\r\n dto.setHabilitado(false);\r\n dtos.add(dto);\r\n }\r\n stmt.close();\r\n rs.close();\r\n conn.close();\r\n }\r\n return dtos;\r\n }", "protected ResultSet ejecutarSQL(String consultaSQL, Object[] param) throws Exception {\n \n ResultSet rs = null;\n if (this.conectar()) {\n PreparedStatement sql = this.conexion.prepareStatement(consultaSQL);\n if(param != null){ cargarParametros(sql, param); }\n rs = sql.executeQuery();\n } \n return rs;\n }", "public RecordSet obtenerResumen(DTOResumen dtoe) throws MareException{\n UtilidadesLog.info(\"DAOParametrizacionCOB.obtenerResumen(DTOResumen dtoe): Entrada\");\n \n RecordSet rs = new RecordSet();\n StringBuffer query = new StringBuffer();\n BelcorpService bs;\n try\n { bs = BelcorpService.getInstance();\n }\n catch(MareMiiServiceNotFoundException ex)\n { throw new MareException(ex, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n } \n /*query.append(\" SELECT distinct p.IDPRINCIPAL AS OID,CONCAT(p.name,CONCAT(' ',CONCAT(pv.STRINGVALUE,CONCAT(' ',CONCAT(pv2.STRINGVALUE,CONCAT(' ',CONCAT(pv3.STRINGVALUE,CONCAT(' ',pv4.STRINGVALUE)))))))) NOMBRE, \");\n query.append(\" gen.VAL_I18N AS CANAL, \");\n query.append(\" sma.DES_MARC AS MARCA, \"); \n query.append(\" subvta.DES_SUBG_VENT AS SUBGERVENTA, \");\n query.append(\" gen2.VAL_I18N AS REGION, \");\n query.append(\" gen3.VAL_I18N AS ZONA, \");\n query.append(\" secc.DES_SECCI AS SECCION, \");\n query.append(\" gen5.VAL_I18N AS TERRITORIO \");\n query.append(\" FROM v_gen_i18n_sicc gen, \");\n query.append(\" v_gen_i18n_sicc gen2, \");\n query.append(\" v_gen_i18n_sicc gen3, \");\n query.append(\" v_gen_i18n_sicc gen5, \");\n query.append(\" seg_marca sma, \");\n query.append(\" zon_secci secc, \");\n query.append(\" cob_usuar_etapa_cobra_detal cdetal, \");\n query.append(\" zon_sub_geren_venta subvta, \");\n query.append(\" cob_usuar_etapa_cobra_cabec ccabe, \");\n query.append(\" cob_usuar_cobra usucob, \");\n query.append(\" own_mare.principals p, \");\n query.append(\" propertyvalues pv, \");\n query.append(\" propertyvalues pv2, \");\n query.append(\" propertyvalues pv3, \");\n query.append(\" propertyvalues pv4, \");\n query.append(\" own_mare.users u \");\n query.append(\" WHERE cdetal.zsgv_oid_subg_vent = subvta.oid_subg_vent \");\n query.append(\" AND ccabe.oid_usua_etap_cobr = cdetal.oid_usua_etap_cobr_deta \");\n query.append(\" AND secc.oid_secc(+) = cdetal.zscc_oid_secc \");\n query.append(\" AND sma.oid_marc = subvta.marc_oid_marc \");\n query.append(\" AND ccabe.usco_oid_usua_cobr = usucob.oid_usua_cobr \");\n query.append(\" AND gen.val_oid = subvta.cana_oid_cana \");\n query.append(\" AND gen.attr_enti = 'SEG_CANAL' \");\n query.append(\" AND gen.attr_num_atri = 1 \");\n query.append(\" AND gen.idio_oid_idio = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND pv.idproperty(+) = 2 \");\n query.append(\" AND pv.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv2.idproperty(+) = 3 \");\n query.append(\" AND pv2.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv3.idproperty = 5 \");\n query.append(\" AND pv3.idprincipal = p.idprincipal \");\n query.append(\" AND pv4.idproperty = 6 \");\n query.append(\" AND pv4.idprincipal = p.idprincipal \");\n query.append(\" AND gen2.val_oid(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen2.attr_enti(+) = 'ZON_REGIO' \");\n query.append(\" AND gen2.attr_num_atri(+) = 1 \");\n query.append(\" AND gen2.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen3.val_oid(+) = cdetal.zzon_oid_zona \");\n query.append(\" AND gen3.attr_enti(+) = 'ZON_ZONA' \");\n query.append(\" AND gen3.attr_num_atri(+) = 1 \");\n query.append(\" AND gen3.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen5.val_oid(+) = cdetal.terr_oid_terr \");\n query.append(\" AND gen5.attr_enti(+) = 'ZON_TERRI' \");\n query.append(\" AND gen5.attr_num_atri(+) = 1 \");\n query.append(\" AND gen5.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND u.iduser = p.idprincipal \");\n query.append(\" AND p.idprincipal = ccabe.usco_oid_usua_cobr \");\n */\n \n /*query.append(\" SELECT distinct p.IDPRINCIPAL AS OID, \");\n query.append(\" p.name AS USUARIO, \");\n */\n //Se le agega \"p.IDPRINCIPAL,\" segun BELC300017927 \n //query.append(\" SELECT distinct p.name AS USUARIO, \"); \n query.append(\" SELECT distinct p.IDPRINCIPAL, p.name AS USUARIO, \");\n query.append(\" CONCAT(p.name,CONCAT(' ',CONCAT(pv.STRINGVALUE,CONCAT(' ',CONCAT(pv2.STRINGVALUE,CONCAT(' ',CONCAT(pv3.STRINGVALUE,CONCAT(' ',pv4.STRINGVALUE)))))))) NOMBRE, \");\n query.append(\" sma.DES_MARC AS MARCA, \");\n query.append(\" gen.VAL_I18N AS CANAL, \"); \n query.append(\" subvta.DES_SUBG_VENT AS SUBGERVENTA, \");\n query.append(\" regio.DES_REGI AS REGION, \");\n query.append(\" zona.DES_ZONA AS ZONA, \"); \n \t query.append(\" secc.DES_SECCI AS SECCION, \"); \n query.append(\" terri.COD_TERR AS TERRITORIO \");\n query.append(\" FROM v_gen_i18n_sicc gen, \");\n query.append(\" SEG_CANAL canal, \");\n query.append(\" ZON_TERRI terri, \");\n query.append(\" ZON_ZONA zona, \");\n query.append(\" ZON_REGIO regio, \");\n query.append(\" seg_marca sma, \");\n query.append(\" zon_secci secc, \");\n query.append(\" cob_usuar_etapa_cobra_detal cdetal, \");\n query.append(\" zon_sub_geren_venta subvta, \");\n query.append(\" cob_usuar_etapa_cobra_cabec ccabe, \");\n query.append(\" cob_usuar_cobra usucob, \");\n query.append(\" principals p, \");\n query.append(\" propertyvalues pv, \");\n query.append(\" propertyvalues pv2, \");\n query.append(\" propertyvalues pv3, \");\n query.append(\" propertyvalues pv4, \");\n query.append(\" users u \");\n query.append(\" WHERE cdetal.zsgv_oid_subg_vent = subvta.oid_subg_vent \");\n query.append(\" AND ccabe.oid_usua_etap_cobr = cdetal.UECC_OID_USUA_ETAP_COBR \");\n query.append(\" AND secc.oid_secc(+) = cdetal.zscc_oid_secc \");\n query.append(\" AND sma.oid_marc = subvta.marc_oid_marc \");\n query.append(\" AND ccabe.usco_oid_usua_cobr = usucob.oid_usua_cobr \");\n query.append(\" AND gen.val_oid = subvta.cana_oid_cana \");\n query.append(\" AND gen.attr_enti = 'SEG_CANAL' \");\n query.append(\" AND gen.attr_num_atri = 1 \");\n query.append(\" AND gen.idio_oid_idio = '1' \");\n query.append(\" AND pv.idproperty(+) = 2 \");\n query.append(\" AND pv.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv2.idproperty(+) = 3 \");\n query.append(\" AND pv2.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv3.idproperty = 5 \");\n query.append(\" AND pv3.idprincipal = p.idprincipal \");\n query.append(\" AND pv4.idproperty = 6 \");\n query.append(\" AND pv4.idprincipal = p.idprincipal \t\t \");\n query.append(\" AND terri.OID_TERR = cdetal.terr_oid_terr\t\t \");\n query.append(\" AND zona.OID_ZONA = cdetal.zzon_oid_zona\t\t \");\n query.append(\" AND regio.OID_REGI = cdetal.ZORG_OID_REGI\t\t \");\n query.append(\" AND u.iduser = p.idprincipal \");\n query.append(\" AND p.idprincipal = usucob.USER_OID_USUA_COBR \");\n \n /* Validaciones */\n if( dtoe.getOidMarca()!= null ){\n query.append(\" AND subvta.MARC_OID_MARC = \" + dtoe.getOidMarca() );\n }\n if( dtoe.getOidCanal() != null){\n query.append(\" AND subvta.CANA_OID_CANA = \" + dtoe.getOidCanal() );\n }\n if( dtoe.getOidSGV() != null ){\n query.append(\" AND subvta.OID_SUBG_VENT = \" + dtoe.getOidSGV() );\n }\n if( dtoe.getOidRegion() != null ){\n query.append(\" AND cdetal.ZORG_OID_REGI = \" + dtoe.getOidRegion() ); \n }\n if( dtoe.getOidZona() != null ){\n query.append(\" AND cdetal.ZZON_OID_ZONA = \" + dtoe.getOidZona() ); \n }\n if( dtoe.getOidSeccion() != null ){\n query.append(\" AND cdetal.ZSCC_OID_SECC = \" + dtoe.getOidSeccion() );\n }\n if( dtoe.getOidTerritorio() != null ){\n query.append(\" AND cdetal.TERR_OID_TERR = \" + dtoe.getOidTerritorio() );\n }\n UtilidadesLog.debug(\"query \" + query.toString() );\n try \n { rs = bs.dbService.executeStaticQuery(query.toString());\n }\n catch (Exception ex) \n { throw new MareException(ex, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS));\n }\t\n \n UtilidadesLog.info(\"DAOParametrizacionCOB.obtenerResumen(DTOResumen dtoe): Salida\");\n \n return rs; \n }", "public void buscar(){\n \n String atributo=txtBuscar.getText();\n String consulta=extraerCombo();\n DefaultTableModel modelo=da.consultar(consulta, atributo);\n tblConsultar.setModel(modelo);\n lblTotal.setText(\"Se encontraron: \"+Integer.toString(da.getTotalRegistros())+\" resultados\");\n \n }", "public java.sql.ResultSet CitasDisponibleMedico(String CodMedico,String Fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT * FROM pyp_horariomedico WHERE estado='0' AND codMedico_fk='\"+CodMedico+\"' AND fechas='\"+Fecha+\"' AND fechas>=CURDATE() \");\r\n \tSystem.out.println(\"SELECT * FROM pyp_horariomedico WHERE estado='0' AND codMedico_fk='\"+CodMedico+\"' AND fechas='\"+Fecha+\"' AND fechas>=CURDATE() \");\r\n \t\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>CitasDisponibleMedico \"+ex);\r\n }\t\r\n return rs;\r\n }", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }", "public Resultado executarConsulta(Requisicao requisicao) throws Exception {\r\n return null;\r\n }", "@Override\n\tpublic Collection<LineaComercialClasificacionDTO> consultarLineaComercialClasificacionAsignacionMasivaNoIngresar(String codigoClasificacion,String nivelClasificacion,String valorTipoLineaComercial,String codigoLinCom)throws SICException{\n\t\tLogeable.LOG_SICV2.info(\"Entr� a consultar Linea Comercial Clasificacion Asignacion Masiva No Ingresar: {}\",codigoClasificacion);\n\t\tStringBuilder query = null;\n\t\tQuery sqlQuery = null;\n\t\tSession session=null;\n\t\tBoolean clearCache = Boolean.TRUE;\n\t\tCollection<LineaComercialClasificacionDTO> lineaComercialClasificacionDTOs = new ArrayList<LineaComercialClasificacionDTO>();\n\t\ttry {\n\t\t\tsession = hibernateHLineaComercialClasificacion.getHibernateSession();\n\t\t\tsession.clear();\n\t\t\n\t\t\t\n\t\t\tquery = new StringBuilder();\n\t\t\tquery.append(\" SELECT LC, L, C, CV \");\n\t\t\tquery.append(\" FROM LineaComercialClasificacionDTO LC, LineaComercialDTO L, ClasificacionDTO C, CatalogoValorDTO CV \");\n\t\t\tquery.append(\" WHERE L.id.codigoLineaComercial = LC.codigoLineaComercial \");\n//\t\t\tquery.append(\" AND L.nivel = 0 \");\n\t\t\tquery.append(\" AND L.estado = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\tquery.append(\" AND LC.estado = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\tquery.append(\" AND L.valorTipoLineaComercial = '\"+valorTipoLineaComercial+\"' \");\n\t\t\tquery.append(\" AND LC.id.codigoClasificacion = C.id.codigoClasificacion \");\n\t\tif(!codigoLinCom.equals(\"null\")){\t\n\t\t\tquery.append(\" AND L.id.codigoLineaComercial != \"+codigoLinCom);\n\t\t}\t\n\t\t\tquery.append(\" AND L.valorTipoLineaComercial = CV.id.codigoCatalogoValor \");\n\t\t\tquery.append(\" AND L.codigoTipoLineaComercial = CV.id.codigoCatalogoTipo \");\n\t\t\tquery.append(\" AND LC.id.codigoClasificacion IN ( \");\n\t\t\tif(!nivelClasificacion.equals(SICConstantes.TIPCLA_CLASIFICACION)){\n\t\t\tif(nivelClasificacion.equals(SICConstantes.TIPCLA_DIVISION)){\n\t\t\t\tquery.append(\" SELECT id.codigoClasificacion FROM ClasificacionDTO \");\n\t\t\t\tquery.append(\" WHERE estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\t\tquery.append(\" AND codigoClasificacionPadre IN( \");\n\t\t\t}\n\t\t\tquery.append(\" SELECT id.codigoClasificacion FROM ClasificacionDTO \");\n\t\t\tquery.append(\" WHERE estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\tquery.append(\" AND codigoClasificacionPadre IN (\"+codigoClasificacion+\") \"+\" )) \");\n\t\t\t}else{\n\t\t\t\tquery.append(\" \"+codigoClasificacion+\") \");\n\t\t\t}\n\n\t\t\tsqlQuery = hibernateHLineaComercialClasificacion.createQuery(query.toString(), clearCache);\n\t\t\t\n\t\t\t/**\n\t\t\t * aqui se asigna al objeto LineaComercialClasificacionDTO los objetos (ClasificacionDTO,LineaComercialDTO)\n\t\t\t * que nos entrego la consulta por separado\n\t\t\t */\n\t\t\tCollection<Object[]> var = sqlQuery.list();\n\t\t\tfor(Object[] object:var){\n\t\t\t\tLineaComercialClasificacionDTO l=(LineaComercialClasificacionDTO)object[0];\n\t\t\t\tl.setLineaComercial((LineaComercialDTO)object[1]);\n\t\t\t\tl.setClasificacion((ClasificacionDTO)object[2]);\n\t\t\t\tl.getLineaComercial().setTipoLineaComercial((CatalogoValorDTO)object[3]);\n\t\t\t\tlineaComercialClasificacionDTOs.add(l);\t\t\t\t\n\t\t\t}\n\t\t\t\n\n\t\t} catch (Exception e) {\n\t\t\tLogeable.LOG_SICV2.info(\"Error al consultar clasificaciones asignacion masiva {}\", e);\n\t\t\tthrow new SICException(\"Error al consultar clasificaciones asignacion masiva {}\", e);\n\t\t}\n\t\t\n\t\t\n\t\treturn lineaComercialClasificacionDTOs;\n\t}", "public List<Produto> consultarProdutos(int consulta, String valor) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n Statement stmt = null;\r\n ResultSet rs = null;\r\n List<Produto> produtos = new ArrayList<>();\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.createStatement();\r\n //Se a consulta for igual a zero(0) uma lista de todos os produtos \"cervejas\" e recuperada\r\n if (consulta == 0) {\r\n rs = stmt.executeQuery(consultas[consulta]);\r\n //Se a consulta for igual a tres(3) uma lista de todos os produtos \"cervejas\" e recuperada a parti do preco\r\n } else {\r\n rs = stmt.executeQuery(consultas[consulta] + \"'\" + valor + \"'\");\r\n }\r\n Produto produto;\r\n while (rs.next()) {\r\n produto = new Produto();\r\n produto.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n produto.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n produto.setPais(rs.getString(\"PAIS\"));\r\n produto.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n produto.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n produto.setRotulo(rs.getString(\"ROTULO\"));\r\n produto.setPreco(rs.getString(\"PRECO\"));\r\n produto.setVolume(rs.getString(\"VOLUME\"));\r\n produto.setTeor(rs.getString(\"TEOR\"));\r\n produto.setCor(rs.getString(\"COR\"));\r\n produto.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n produto.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n produto.setDescricao(rs.getString(\"DESCRICAO\"));\r\n produto.setSabor(rs.getString(\"SABOR\"));\r\n produto.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n produto.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n produto.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n produtos.add(produto);\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return produtos;\r\n }", "public static ResultSet selectAll(){\n String sql = \"SELECT Codigo, Nombre, PrecioC, PrecioV, Stock FROM articulo\";\n ResultSet rs = null;\n try{\n Connection conn = connect();\n Statement stmt = conn.createStatement();\n rs = stmt.executeQuery(sql);\n }\n catch(SQLException e) {\n System.out.println(\"Error. No se han podido sacar los productos de la base de datos.\");\n //Descomentar la siguiente linea para mostrar el mensaje de error.\n //System.out.println(e.getMessage());\n }\n return rs;\n }", "public List<SpasaCRN> obtenerSpasaFiltros() {\n\n if (conectado) {\n try {\n String bool = \"false\";\n List<SpasaCRN> filtrosCRNs = new ArrayList();\n\n String Query = \"SELECT * FROM `spasa_filtros` WHERE anio = YEAR(NOW()) AND ciclo = CURRENT_CICLO() ;\";\n Logy.mi(\"Query: \" + Query);\n Statement st = Conexion.createStatement();\n ResultSet resultSet;\n resultSet = st.executeQuery(Query);\n while (resultSet.next()) {\n\n SpasaCRN crn = new SpasaCRN();\n SpasaMateria mat = new SpasaMateria();\n crn.setCodigoProf(resultSet.getString(\"usuario\")); //modificado ahora que se cambio in a String\n crn.setCrnCpr(resultSet.getString(\"crn\"));\n String mc = resultSet.getString(\"materia_cod\");\n if (mc != null && !mc.isEmpty() && !mc.equals(\"null\")) {\n crn.setMateriaRuta(mc);\n mat.setMateriaRuta(mc);\n }\n String m = resultSet.getString(\"materia_nom\");\n if (m != null && !m.isEmpty() && !m.equals(\"null\")) {\n mat.setNombreMat(m);\n }\n String d = resultSet.getString(\"departamento_nom\");\n if (d != null && !d.isEmpty() && !d.equals(\"null\")) {\n mat.setNombreDepto(d);\n }\n String dia = resultSet.getString(\"dia\");\n if (dia != null && !dia.isEmpty() && !dia.equals(\"null\")) {\n crn.setDiaHr(dia);\n }\n String h = resultSet.getString(\"hora\");\n if (h != null && !h.isEmpty() && !h.equals(\"null\")) {\n crn.setHiniHr(h);\n }\n crn.setMateria(mat);\n filtrosCRNs.add(crn);\n }\n\n return filtrosCRNs;\n\n } catch (SQLException ex) {\n Logy.me(\"No se pudo consultar tabla spasa_filtros : \" + ex.getMessage());\n return null;\n }\n } else {\n Logy.me(\"No se ha establecido previamente una conexion a la DB\");\n return null;\n }\n }", "protected ResultSet ejecutarSQL(String consultaSQL) throws Exception {\n return this.ejecutarSQL(consultaSQL, null);\n }", "public List<ReporteComprasVentasRetenciones> getReporteCompras(int mes, int anio, int idOrganizacion)\r\n/* 167: */ {\r\n/* 168:227 */ StringBuffer sql = new StringBuffer();\r\n/* 169: */ \r\n/* 170:229 */ sql.append(\" SELECT new ReporteComprasVentasRetenciones(tc.codigo, tc.nombre, COUNT(tc.codigo), \");\r\n/* 171:230 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleTarifaCero) ELSE SUM(fps.baseImponibleTarifaCero) END), \");\r\n/* 172:231 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleDiferenteCero) ELSE SUM(fps.baseImponibleDiferenteCero) END), \");\r\n/* 173:232 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.baseImponibleNoObjetoIva) ELSE SUM(fps.baseImponibleNoObjetoIva) END), \");\r\n/* 174:233 */ sql.append(\" (CASE WHEN tc.codigo = '04' THEN -SUM(fps.montoIva) ELSE SUM(fps.montoIva) END), 'Compras',ct.codigo,ct.nombre) \");\r\n/* 175:234 */ sql.append(\" FROM FacturaProveedorSRI fps \");\r\n/* 176:235 */ sql.append(\" LEFT OUTER JOIN fps.tipoComprobanteSRI tc \");\r\n/* 177:236 */ sql.append(\" LEFT OUTER JOIN fps.creditoTributarioSRI ct\");\r\n/* 178:237 */ sql.append(\" WHERE MONTH(fps.fechaRegistro) =:mes \");\r\n/* 179:238 */ sql.append(\" AND YEAR(fps.fechaRegistro) =:anio \");\r\n/* 180:239 */ sql.append(\" AND fps.estado!=:estadoAnulado \");\r\n/* 181:240 */ sql.append(\" AND fps.indicadorSaldoInicial!=true \");\r\n/* 182:241 */ sql.append(\" AND fps.idOrganizacion = :idOrganizacion \");\r\n/* 183:242 */ sql.append(\" GROUP BY tc.codigo, tc.nombre,ct.codigo,ct.nombre\");\r\n/* 184:243 */ sql.append(\" ORDER BY tc.codigo, tc.nombre \");\r\n/* 185: */ \r\n/* 186:245 */ Query query = this.em.createQuery(sql.toString());\r\n/* 187:246 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 188:247 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 189:248 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 190:249 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 191: */ \r\n/* 192:251 */ return query.getResultList();\r\n/* 193: */ }", "private String armarWhere(DTOBusquedaRapidaCliente dto) {\n UtilidadesLog.info(\" DAOMAEMaestroClientes.armarWhere(DTOBusquedaRapidaCliente): Entrada\");\n StringBuffer query = new StringBuffer();\n String[] camposWhere = new String[] {\n \"c.PAIS_OID_PAIS\", \"c.COD_CLIE\", \"c.VAL_CRIT_BUS1\",\n \"c.VAL_CRIT_BUS2\", \"i.NUM_DOCU_IDEN\"\n };\n\n Object[] valoresWhere = new Object[] {\n dto.getOidPais(), dto.getCodigoCliente(), dto.getCriterioBusqueda1(),\n dto.getCriterioBusqueda2(), dto.getDocumentoIdentidad()\n };\n\n boolean[] operadores = new boolean[] { false, false, false, false, false };\n UtilidadesLog.info(\" DAOMAEMaestroClientes.armarWhere(DTOBusquedaRapidaCliente): Salida\"); \n return UtilidadesBD.armarSQLWhere(camposWhere, valoresWhere, operadores);\n }", "private void llenarListadoPromocionSalarial() {\n\t\tString sql1 = \"select det.* from seleccion.promocion_salarial det \"\r\n\t\t\t\t+ \"join planificacion.estado_cab cab on cab.id_estado_cab = det.id_estado_cab \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo_cab \"\r\n\t\t\t\t+ \"on uo_cab.id_configuracion_uo = det.id_configuracion_uo_cab\"\r\n\t\t\t\t+ \" left join seleccion.promocion_concurso_agr agr \"\r\n\t\t\t\t+ \"on agr.id_promocion_salarial = det.id_promocion_salarial\"\r\n\t\t\t\t\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tagr.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor agr.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n//\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n//\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n//\t\t\tsql1 += \" and det.permanente is true \";\r\n//\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n//\t\t\tsql1 += \" and det.permanente is true \";\r\n//\t\t}\r\n\t\t\r\n\t\tString sql2 = \"select puesto_det.* \"\r\n\t\t\t\t+ \"from seleccion.promocion_concurso_agr puesto_det \"\r\n\t\t\t\t+ \"join planificacion.estado_det estado_det \"\r\n\t\t\t\t+ \"on estado_det.id_estado_det = puesto_det.id_estado_det \"\r\n\t\t\t\t+ \"join seleccion.promocion_salarial det \"\r\n\t\t\t\t+ \"on det.id_promocion_salarial = puesto_det.id_promocion_salarial \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo_cab \"\r\n\t\t\t\t+ \"on uo_cab.id_configuracion_uo = det.id_configuracion_uo_cab \"\r\n\t\t\t//\t+ \"join seleccion.concurso concurso \"\r\n\t\t\t//\t+ \"on concurso.id_concurso = puesto_det.id_concurso \"\r\n\t\t\t\t\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t//\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarListaPromocionSalarial(sql1, sql2);\r\n\t}", "public java.sql.ResultSet DatosdelaCita(String CodHorMed){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT * FROM pyp_citaspacientes WHERE CodHorMedico_fk=\"+CodHorMed+\"\");\r\n \tSystem.out.println(\"SELECT * FROM pyp_citaspacientes WHERE CodHorMedico_fk=\"+CodHorMed+\"\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>DatosdelaCita \"+ex);\r\n }\t\r\n return rs;\r\n }", "public abstract Statement queryToRetrieveData();", "public static ArrayList <FichajeOperarios> obtenerFichajeOperarios(Date fecha) throws SQLException{\n Connection conexion=null;\n Connection conexion2=null;\n ResultSet resultSet;\n PreparedStatement statement;\n ArrayList <FichajeOperarios> FichajeOperarios=new ArrayList();\n Conexion con=new Conexion();\n\n //java.util.Date fecha = new Date();\n \n //para saber la fecha actual\n Date fechaActual = new Date();\n DateFormat formatoFecha = new SimpleDateFormat(\"dd/MM/yyyy\");\n \n //System.out.println(formatoFecha.format(fechaActual));\n \n try {\n\n conexion = con.connecta();\n\n\n statement=conexion.prepareStatement(\"select codigo,nombre,HORA_ENTRADA,centro from \"\n + \" (SELECT op.codigo,op.nombre,F2.FECHA AS FECHA_ENTRADA,F2.HORA AS HORA_ENTRADA,F2.FECHA+f2.HORA AS FICHA_ENTRADA,centro.DESCRIP as CENTRO,\"\n + \" (select top(1) f22.fecha \"\n + \" from e001_fichajes2 as f22 where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno order by f22.recno) AS FECHA_SALIDA,\"\n + \" (select top(1) f22.hora \"\n + \" from e001_fichajes2 as f22 \"\n + \" where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno \"\n + \" order by f22.recno) AS HORA_SALIDA,\"\n + \" (select top(1) f22.fecha \"\n + \" from e001_fichajes2 as f22 \"\n + \" where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno \"\n + \" order by f22.recno)+\"\n + \" (select top(1) f22.hora \"\n + \" from e001_fichajes2 as f22 \"\n + \" where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno \"\n + \" order by f22.recno) as FICHA_SALIDA \"\n + \" FROM E001_OPERARIO as op left join e001_fichajes2 as f2 on op.codigo=f2.OPERARIO and f2.tipo='E' JOIN E001_centrost as centro on f2.CENTROTRAB=centro.CODIGO \"\n + \" WHERE F2.FECHA='\"+formatoFecha.format(fecha)+\"' and f2.HORA=(select max(hora) from e001_fichajes2 as f22 where f2.operario=f22.operario and f22.tipo='e' and f22.FECHA=f2.FECHA)) as a\"\n + \" where FICHA_SALIDA is null \"\n + \" ORDER BY codigo\");\n \n resultSet = statement.executeQuery();\n while (resultSet.next()) {\n FichajeOperarios fiop=new FichajeOperarios(); \n fiop.setCodigo(resultSet.getString(\"CODIGO\"));\n fiop.setNombre(resultSet.getString(\"NOMBRE\"));\n fiop.setHora_Entrada(resultSet.getString(\"HORA_ENTRADA\"));\n //fiop.setHora_Salida(resultSet.getString(\"HORA_SALIDA\"));\n fiop.setCentro(resultSet.getString(\"CENTRO\"));\n FichajeOperarios.add(fiop);\n }\n \n } catch (SQLException ex) {\n System.out.println(ex);\n \n }\n return FichajeOperarios;\n \n \n }", "public void Consultar(String query) {\n try {\n conectionSql();\n preparedStatement = conection.prepareStatement(query);\n } catch (Exception e) {\n// MessageEmergent(\"Fail Consultar(): \"+e.getMessage());\n }\n }", "public ResultSet obtenerDatosConsulta(String idConsultaMedica) throws SQLException\r\n {\r\n OperacionesConsultaMedica operacionesConsultaMedica = new OperacionesConsultaMedica();\r\n return operacionesConsultaMedica.obtenerDatosConsulta(idConsultaMedica);\r\n }", "private DAOOfferta() {\r\n\t\ttry {\r\n\t\t\tClass.forName(driverName);\r\n\r\n\t\t\tconn = getConnection(usr, pass);\r\n\r\n\t\t\tps = conn.prepareStatement(createQuery);\r\n\r\n\t\t\tps.executeUpdate();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ConnectionException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\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} finally {\r\n\t\t\t/*closeResource()*/;\r\n\t\t}\r\n\t}", "public List<ReporteComprasVentasRetenciones> getReporteRetencionClientes(int mes, int anio, int idOrganizacion)\r\n/* 231: */ {\r\n/* 232:307 */ StringBuffer sql = new StringBuffer();\r\n/* 233:308 */ sql.append(\"SELECT new ReporteComprasVentasRetenciones(fp.codigo, fp.nombre, COUNT(fp.codigo),\");\r\n/* 234:309 */ sql.append(\" (CASE WHEN fp.indicadorRetencionIva = true OR fp.indicadorRetencionFuente = true THEN SUM(dcfc.valor) END),\");\r\n/* 235:310 */ sql.append(\" 'Ventas', '' )\");\r\n/* 236:311 */ sql.append(\" FROM DetalleCobroFormaCobro dcfc\");\r\n/* 237:312 */ sql.append(\" JOIN dcfc.detalleFormaCobro dfc\");\r\n/* 238:313 */ sql.append(\" LEFT JOIN dfc.cobro c\");\r\n/* 239:314 */ sql.append(\" LEFT OUTER JOIN dfc.formaPago fp\");\r\n/* 240:315 */ sql.append(\" LEFT OUTER JOIN dcfc.detalleCobro dc\");\r\n/* 241:316 */ sql.append(\" LEFT OUTER JOIN dc.cuentaPorCobrar cpc\");\r\n/* 242:317 */ sql.append(\" LEFT OUTER JOIN cpc.facturaCliente fc\");\r\n/* 243:318 */ sql.append(\" WHERE MONTH(c.fecha) =:mes\");\r\n/* 244:319 */ sql.append(\" AND YEAR(c.fecha) =:anio\");\r\n/* 245:320 */ sql.append(\" AND fc.estado!=:estadoAnulado\");\r\n/* 246:321 */ sql.append(\" AND c.estado!=:estadoAnulado\");\r\n/* 247:322 */ sql.append(\" AND (fp.indicadorRetencionIva=true OR fp.indicadorRetencionFuente=true)\");\r\n/* 248:323 */ sql.append(\" AND fc.idOrganizacion = :idOrganizacion\");\r\n/* 249:324 */ sql.append(\" GROUP BY fp.codigo, fp.nombre, fp.indicadorRetencionIva, fp.indicadorRetencionFuente\");\r\n/* 250:325 */ sql.append(\" ORDER BY fp.codigo, fp.nombre\");\r\n/* 251:326 */ Query query = this.em.createQuery(sql.toString());\r\n/* 252:327 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 253:328 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 254:329 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 255:330 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 256:331 */ return query.getResultList();\r\n/* 257: */ }", "public java.sql.ResultSet consultapormedicoespecialidadfecha(String CodigoMedico,String CodigoEspecialidad,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pmd.codigo=\"+CodigoMedico+\" and pes.codigo=\"+CodigoEspecialidad+\" and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicoespecialidadfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "protected String getSQLWhere()\n \t{\n \t\tStringBuffer sql = new StringBuffer();\n \t\tif (fDocumentNo.getText().length() > 0)\n \t\t\tsql.append(\" AND UPPER(p.DocumentNo) LIKE ?\");\n if (fRoutingNo.getText().length() > 0)\n sql.append(\" AND UPPER(p.RoutingNo) LIKE ?\"); // Marcos Zúñiga\n if (fCheckNo.getText().length() > 0)\n sql.append(\" AND UPPER(p.CheckNo) LIKE ?\"); // Marcos Zúñiga\n if (fA_Name.getText().length() > 0)\n sql.append(\" AND UPPER(p.A_Name) LIKE ?\"); // Marcos Zúñiga\n \t\tif (fDateFrom.getValue() != null || fDateTo.getValue() != null)\n \t\t{\n \t\t\tTimestamp from = (Timestamp)fDateFrom.getValue();\n \t\t\tTimestamp to = (Timestamp)fDateTo.getValue();\n \t\t\tif (from == null && to != null)\n \t\t\t\tsql.append(\" AND TRUNC(p.DateTrx) <= ?\");\n \t\t\telse if (from != null && to == null)\n \t\t\t\tsql.append(\" AND TRUNC(p.DateTrx) >= ?\");\n \t\t\telse if (from != null && to != null)\n \t\t\t\tsql.append(\" AND TRUNC(p.DateTrx) BETWEEN ? AND ?\");\n \t\t}\n \t\t//\n \t\tif (fAmtFrom.getValue() != null || fAmtTo.getValue() != null)\n \t\t{\n \t\t\tBigDecimal from = (BigDecimal)fAmtFrom.getValue();\n \t\t\tBigDecimal to = (BigDecimal)fAmtTo.getValue();\n \t\t\tif (from == null && to != null)\n \t\t\t\tsql.append(\" AND p.PayAmt <= ?\");\n \t\t\telse if (from != null && to == null)\n \t\t\t\tsql.append(\" AND p.PayAmt >= ?\");\n \t\t\telse if (from != null && to != null)\n \t\t\t\tsql.append(\" AND p.PayAmt BETWEEN ? AND ?\");\n \t\t}\n \t\tsql.append(\" AND p.IsReceipt=?\");\n \n \t\t// sql.append(\" AND p.IsReconciled='N'\");\n \n \t\tlog.fine(sql.toString());\n \t\treturn sql.toString();\n \t}", "public DTOSalida obtenerAccesosPlantilla(DTOOID dto) throws MareException\n { \n UtilidadesLog.info(\"DAOGestionComisiones.obtenerAccesosPlantilla(DTOOID dto): Entrada\"); \n StringBuffer query = new StringBuffer();\n RecordSet rs = new RecordSet(); \n DTOSalida dtos = new DTOSalida();\n BelcorpService bs = UtilidadesEJB.getBelcorpService(); \n query.append(\" SELECT DISTINCT A.ACCE_OID_ACCE OID, B.VAL_I18N DESCRIPCION \");\n query.append(\" FROM COM_PLANT_COMIS_ACCES A, V_GEN_I18N_SICC B, COM_PLANT_COMIS C \"); \n query.append(\" WHERE \");\n if(dto.getOid() != null) {\n query.append(\" A.PLCO_OID_PLAN_COMI = \" + dto.getOid() + \" AND \");\n }\n query.append(\" A.PLCO_OID_PLAN_COMI = C.OID_PLAN_COMI AND \"); \n query.append(\" C.CEST_OID_ESTA = \" + ConstantesCOM.ESTADO_ACTIVO + \" AND \"); \n \n query.append(\" B.ATTR_ENTI = 'SEG_ACCES' AND \"); \n query.append(\" B.ATTR_NUM_ATRI = 1 AND \");\n query.append(\" B.IDIO_OID_IDIO = \" + dto.getOidIdioma() + \" AND \");\n query.append(\" B.VAL_OID = A.ACCE_OID_ACCE \");\n query.append(\" ORDER BY DESCRIPCION \"); \n UtilidadesLog.debug(query.toString()); \n try {\n rs = bs.dbService.executeStaticQuery(query.toString());\n if(rs != null)\n dtos.setResultado(rs);\n }catch (Exception e) {\n UtilidadesLog.error(e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS));\n } \n UtilidadesLog.info(\"DAOGestionComisiones.obtenerAccesosPlantilla(DTOOID dto): Salida\"); \n return dtos;\n }", "public Collection<FlujoDetalleDTO> cargarTodos(int codigoFlujo) {\n/* 138 */ Collection<FlujoDetalleDTO> resultados = new ArrayList<FlujoDetalleDTO>();\n/* */ try {\n/* 140 */ String s = \"select t.codigo_flujo,t.secuencia,t.servicio_inicio,r1.descripcion as nombre_servicio_inicio,t.accion,t.codigo_estado,r3.descripcion as nombre_codigo_estado,t.servicio_destino,r4.descripcion as nombre_servicio_destino,t.nombre_procedimiento,t.correo_destino,t.enviar_solicitud,t.ind_mismo_proveedor,t.ind_mismo_cliente,t.estado,t.caracteristica,t.valor_caracteristica,t.caracteristica_correo,m5.descripcion as nombre_estado,c.DESCRIPCION nombre_caracteristica,cv.DESCRIPCION descripcion_valor,t.metodo_seleccion_proveedor,t.ind_correo_clientes,t.usuario_insercion,t.fecha_insercion,t.usuario_modificacion,t.fecha_modificacion from wkf_detalle t left join SERVICIOS r1 on (r1.CODIGO=t.servicio_inicio) left join ESTADOS r3 on (r3.codigo=t.codigo_estado) left join SERVICIOS r4 on (r4.CODIGO=t.servicio_destino) left join sis_multivalores m5 on (m5.tabla='ESTADO_REGISTRO' and m5.valor=t.estado) LEFT JOIN CARACTERISTICAS c ON (t.Caracteristica = c.CODIGO) LEFT JOIN CARACTERISTICAS_VALOR cv ON (t.CARACTERISTICA=cv.CARACTERISTICA AND t.VALOR_CARACTERISTICA = cv.VALOR) where t.codigo_flujo=\" + codigoFlujo + \" order by t.secuencia\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 178 */ boolean rtaDB = this.dat.parseSql(s);\n/* 179 */ if (!rtaDB) {\n/* 180 */ return resultados;\n/* */ }\n/* 182 */ this.rs = this.dat.getResultSet();\n/* 183 */ while (this.rs.next()) {\n/* 184 */ resultados.add(leerRegistro());\n/* */ }\n/* */ }\n/* 187 */ catch (Exception e) {\n/* 188 */ e.printStackTrace();\n/* 189 */ Utilidades.writeError(\"FlujoDetalleDAO:cargarTodos \", e);\n/* */ } \n/* 191 */ return resultados;\n/* */ }", "private boolean generarEgresoMercaderiaReservada(java.sql.Connection conExt, int CodEmp,int CodLoc,int CodCot){\n boolean blnRes=false;\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n ArrayList arlResDat, arlResReg;\n try{\n if(conExt!=null){\n stmLoc=conExt.createStatement();\n arlResDat = new ArrayList();\n strSql=\"\";\n strSql+=\" SELECT a1.co_emp, a1.co_loc, a1.co_cot, a2.co_reg, a2.co_itm, a2.co_bod, a2.nd_can, \\n\";\n strSql+=\" CASE WHEN a3.nd_cosUni IS NULL THEN 0 ELSE a3.nd_cosUni END as nd_cosUni,a4.co_seg \";\n strSql+=\" ,a2.tx_nomItm \\n\";\n strSql+=\" FROM tbm_cabCotVen as a1 \\n\";\n strSql+=\" INNER JOIN tbm_detCotVen as a2 ON (a1.co_emp=a2.co_emp AND a1.co_loc=a2.co_loc AND a1.co_cot=a2.co_cot) \\n\";\n strSql+=\" INNER JOIN tbm_inv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_itm=a3.co_itm) \\n\";\n strSql+=\" INNER JOIN tbm_cabSegMovInv as a4 ON (a1.co_emp=a4.co_empRelCabCotVen AND a1.co_loc=a4.co_locRelCabCotVen AND \\n\";\n strSql+=\" a1.co_cot=a4.co_cotRelCabCotVen) \\n\";\n strSql+=\" WHERE a1.co_emp=\"+CodEmp+\" and a1.co_loc=\"+CodLoc+\" and a1.co_cot=\"+CodCot+\" and a3.st_ser='N' \\n\";\n strSql+=\" ORDER BY a1.co_emp, a1.co_loc, a1.co_cot, a2.co_reg \\n\";\n System.out.println(\"generarEgresoMercaderiaReservada \" + strSql);\n rstLoc = stmLoc.executeQuery(strSql);\n while(rstLoc.next()){\n arlResReg = new ArrayList();\n arlResReg.add(INT_ARL_DAT_COD_EMP, rstLoc.getInt(\"co_emp\"));\n arlResReg.add(INT_ARL_DAT_COD_LOC, rstLoc.getInt(\"co_loc\"));\n arlResReg.add(INT_ARL_DAT_COD_BOD_EMP, rstLoc.getInt(\"co_bod\"));\n arlResReg.add(INT_ARL_DAT_COD_ITM_EMP, rstLoc.getInt(\"co_itm\"));\n arlResReg.add(INT_ARL_DAT_CAN, rstLoc.getDouble(\"nd_can\"));\n arlResReg.add(INT_ARL_DAT_COS_UNI, rstLoc.getDouble(\"nd_cosUni\"));\n arlResReg.add(INT_ARL_DAT_COD_SEG, rstLoc.getInt(\"co_seg\"));\n arlResReg.add(INT_ARL_DAT_COD_REG, rstLoc.getInt(\"co_reg\"));\n arlResReg.add(INT_ARL_DAT_NOM_ITM, rstLoc.getString(\"tx_nomItm\"));\n arlResDat.add(arlResReg);\n }\n rstLoc.close();\n rstLoc=null;\n stmLoc.close();\n stmLoc=null;\n if(!arlResDat.isEmpty()){\n ZafGenDocIngEgrInvRes objGenDocIngEgrInvRes = new ZafGenDocIngEgrInvRes(objParSis,this);\n if(objGenDocIngEgrInvRes.GenerarDocumentoIngresoEgresoReservas(conExt, datFecAux, arlResDat, 1)){\n blnRes=true;\n }\n }\n }\n }\n catch (java.sql.SQLException e) { \n blnRes = false;\n objUti.mostrarMsgErr_F1(this, e); \n }\n catch (Exception Evt) {\n blnRes = false;\n objUti.mostrarMsgErr_F1(this, Evt);\n }\n return blnRes;\n }", "private void listaContatos() throws SQLException {\n limpaCampos();\n DAOLivro d = new DAOLivro();\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 }", "public void Query() {\n }", "public void rellenarDevoluciones(DTOSolicitudValidacion dtoSolicitud)\n throws MareException{\n UtilidadesLog.info(\"DAOSolicitudes.rellenarDevoluciones(DTOSolicitudValidacion dtoSolicitud):Entrada\");\n Long oidConsolidado = null, oidPeriodo = null;\n RecordSet rs;\n StringBuffer query = new StringBuffer();\n\n query.append(\" SELECT MAX(SOL_ORIG.OID_SOLI_CABE) OID_SOLI_CABE, MAX(SOL_ORIG.PERD_OID_PERI) PERD_OID_PERI \");\n\n query.append(\" FROM PED_SOLIC_CABEC SOL_DEVO, \");\n query.append(\" PED_SOLIC_CABEC SOL_ORIG, \");\n query.append(\" PED_SOLIC_CABEC SOL_DEVUELTA, \");\n query.append(\" INC_SOLIC_CONCU_PUNTA SCP, \");\n query.append(\" PED_TIPO_SOLIC_PAIS PTSP, \");\n query.append(\" PED_TIPO_SOLIC PTS \");\n \n query.append(\" WHERE SOL_DEVO.OID_SOLI_CABE = \" + dtoSolicitud.getOidSolicitud().toString() );\n query.append(\" AND SOL_DEVO.SOCA_OID_DOCU_REFE = SOL_ORIG.OID_SOLI_CABE \");\n query.append(\" AND SOL_ORIG.OID_SOLI_CABE = SOL_DEVUELTA.SOCA_OID_SOLI_CABE \");\n query.append(\" AND SOL_DEVUELTA.OID_SOLI_CABE = SCP.SOCA_OID_SOLI_CABE \");\n query.append(\" AND SOL_DEVO.TSPA_OID_TIPO_SOLI_PAIS = PTSP.OID_TIPO_SOLI_PAIS \");\n query.append(\" AND PTSP.TSOL_OID_TIPO_SOLI = PTS.OID_TIPO_SOLI \");\n query.append(\" AND PTS.IND_DEVO = 1 \");\n \n try {\n rs = BelcorpService.getInstance().dbService.executeStaticQuery(query.toString());\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n \n if(! rs.esVacio() ){\n oidConsolidado = rs.getValueAt(0,\"OID_SOLI_CABE\" )!=null?\n new Long( ((BigDecimal)rs.getValueAt(0,\"OID_SOLI_CABE\" ) ).longValue() ):null;\n }\n \n if( oidConsolidado != null ){\n oidPeriodo = rs.getValueAt(0,\"PERD_OID_PERI\" )!=null?\n new Long( ((BigDecimal)rs.getValueAt(0,\"PERD_OID_PERI\" ) ).longValue() ):null; \n \n dtoSolicitud.setOidSolicitud( oidConsolidado );\n dtoSolicitud.setOidPeriodo( oidPeriodo );\n }\n\n UtilidadesLog.info(\"DAOSolicitudes.rellenarDevoluciones(DTOSolicitudValidacion dtoSolicitud):Salida\");\n }", "private void mbushetabelen() {\n try {\n Statement stmt = LidhjaMeDb.hapelidhjen();\n //CallableStatement stmt = conn.prepareCall(\"{call procedura1(?)}\");\n //stmt.setInt(1, 1);\n //ResultSet rs=stmt.executeQuery();\n String sql = \"SELECT kerkesat.kompania AS 'Kompania', llojet_lejes.lloji_lejes AS 'Lloji i Lejes'\"\n + \" ,kerkesat.adresa AS 'Adresa', kerkesat.tel AS 'Tel',kerkesat.data_pranimit AS 'Data e Pranimit'\"\n + \" ,kerkesat.nr_protokollit AS 'Numri i Protokollit', aktivitetet.aktiviteti AS 'Aktiviteti'\"\n + \" ,komunat.komuna AS 'Komuna', kerkesat.taksa AS 'Taksa', kerkesat.statusi_lendes AS 'Statusi i Lendes'\"\n + \" ,kerkesat.data_leshimit AS 'Data e Leshimit'\"\n + \" ,pergjigjjet_komisionit.pergjigjja AS 'Pergjigjja e Komisionit' FROM kerkesat \"\n + \" JOIN llojet_lejes ON kerkesat.idlloji = llojet_lejes.idlloji \"\n + \" JOIN aktivitetet ON kerkesat.idaktiviteti = aktivitetet.idaktiviteti \"\n + \" JOIN pergjigjjet_komisionit ON kerkesat.idpergjigjja = pergjigjjet_komisionit.idpergjigjja \"\n + \" JOIN komunat ON kerkesat.idkomuna=komunat.idkomuna \"\n + \"WHERE kompania LIKE '%\" + txtkompania.getText() + \"%' \"\n + \"AND aktiviteti like '%\" + (String) kmbaktiviteti.getSelectedItem() + \"%' \"\n + \"AND komuna like '%\" + (String) kmbkomunat.getSelectedItem() + \"%' \"\n + \"AND pergjigjja like '%\" + (String) kmbpergjigjja.getSelectedItem() + \"%' \"\n + \"AND data_pranimit >= '\" + new java.sql.Date(jdataprej.getDate().getTime()) + \"' AND data_pranimit <= '\" + new java.sql.Date(jdataderi.getDate().getTime()) + \"' \";\n System.out.println(sql);\n ResultSet rs = stmt.executeQuery(sql);\n tblkerkesat.setModel(DBUtils.resultSetToTableModel(rs));\n//boolean Zgjedhur=false;jTable1.addColumn(Zgjedhur);\n LidhjaMeDb.mbyllelidhjen();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public FlujoDetalleDTO cargarRegistro(int codigoFlujo, int secuencia) {\n/* */ try {\n/* 201 */ String s = \"select t.codigo_flujo,t.secuencia,t.servicio_inicio,r1.descripcion as nombre_servicio_inicio,t.accion,t.codigo_estado,r3.descripcion as nombre_codigo_estado,t.servicio_destino,r4.descripcion as nombre_servicio_destino,t.nombre_procedimiento,t.correo_destino,t.enviar_solicitud,t.ind_mismo_proveedor,t.ind_mismo_cliente,t.estado,t.caracteristica,t.valor_caracteristica,t.caracteristica_correo,m5.descripcion as nombre_estado,c.DESCRIPCION nombre_caracteristica,cv.DESCRIPCION descripcion_valor,t.metodo_seleccion_proveedor,t.ind_correo_clientes,t.enviar_hermana,t.enviar_si_hermana_cerrada,t.ind_cliente_inicial,t.usuario_insercion,t.fecha_insercion,t.usuario_modificacion,t.fecha_modificacion from wkf_detalle t left join SERVICIOS r1 on (r1.CODIGO=t.servicio_inicio) left join ESTADOS r3 on (r3.codigo=t.codigo_estado) left join SERVICIOS r4 on (r4.CODIGO=t.servicio_destino) left join sis_multivalores m5 on (m5.tabla='ESTADO_REGISTRO' and m5.valor=t.estado) LEFT JOIN CARACTERISTICAS c ON (t.Caracteristica = c.CODIGO) LEFT JOIN CARACTERISTICAS_VALOR cv ON (t.CARACTERISTICA=cv.CARACTERISTICA AND t.VALOR_CARACTERISTICA = cv.VALOR) where t.codigo_flujo=\" + codigoFlujo + \" and t.secuencia=\" + secuencia + \"\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 243 */ boolean rtaDB = this.dat.parseSql(s);\n/* 244 */ if (!rtaDB) {\n/* 245 */ return null;\n/* */ }\n/* 247 */ this.rs = this.dat.getResultSet();\n/* 248 */ if (this.rs.next()) {\n/* 249 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 252 */ catch (Exception e) {\n/* 253 */ e.printStackTrace();\n/* 254 */ Utilidades.writeError(\"FlujoDetalleDAO:cargarFlujoDetalle\", e);\n/* */ } \n/* 256 */ return null;\n/* */ }", "Query query();", "public DanielPatricio() throws SQLException {\n initComponents();\n //limpiar();\n recargarDropDownCarros();\n recargarTextArea();\n recargarDataTable();\n \n \n }", "private static DTOSalida getDTOSalida(String query) throws MareException { \n UtilidadesLog.info(\"DAOGestionComisiones.getDTOSalida(String query): Entrada\");\n RecordSet rs = new RecordSet();\n DTOSalida dtos = new DTOSalida();\n BelcorpService bs = UtilidadesEJB.getBelcorpService(); \n UtilidadesLog.debug(query); \n try {\n rs = bs.dbService.executeStaticQuery(query);\n if(rs != null)\n dtos.setResultado(rs);\n }catch (Exception e) {\n UtilidadesLog.error(e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS));\n } \n UtilidadesLog.info(\"DAOGestionComisiones.getDTOSalida(String query): Salida\");\n return dtos; \n }", "public List listaCarneMensalidadesAgrupado(String id_pessoa, String datas) {\n String and = \"\";\n\n if (id_pessoa != null) {\n and = \" AND func_titular_da_pessoa(M.id_beneficiario) IN (\" + id_pessoa + \") \\n \";\n }\n\n// String text\n// = \" -- CarneMensalidadesDao->listaCarneMensalidadesAgrupado(new Pessoa(), new Date()) \\n\\n\"\n// + \" SELECT P.ds_nome AS titular, \\n \"\n// + \" S.matricula, \\n \"\n// + \" S.categoria, \\n \"\n// + \" M.id_pessoa AS id_responsavel, \\n \"\n// + \" sum(nr_valor - nr_desconto_ate_vencimento) AS valor, \\n\"\n// + \" M.dt_vencimento AS vencimento \\n\"\n// + \" FROM fin_movimento AS M \\n\"\n// + \" INNER JOIN pes_pessoa AS P ON P.id = M.id_pessoa \\n\"\n// + \" INNER JOIN pes_pessoa AS B ON B.id = M.id_beneficiario \\n\"\n// + \" LEFT JOIN soc_socios_vw AS S ON S.codsocio = M.id_pessoa \\n\"\n// + \" WHERE is_ativo = true \\n\"\n// + \" AND id_baixa IS NULL \\n\"\n// + \" AND to_char(M.dt_vencimento, 'MM/YYYY') IN (\" + datas + \")\\n\"\n// + \" AND M.id_servicos NOT IN (SELECT id_servicos \\n\"\n// + \" FROM fin_servico_rotina \\n\"\n// + \" WHERE id_rotina = 4 \\n\"\n// + \") \\n\"\n// + and\n// + \" GROUP BY P.ds_nome, \\n\"\n// + \" S.matricula, \\n\"\n// + \" S.categoria, \\n\"\n// + \" M.id_pessoa, \\n\"\n// + \" M.dt_vencimento \\n\"\n// + \" ORDER BY P.ds_nome, \\n\"\n// + \" M.id_pessoa\";\n String queryString = \"\"\n + \"( \\n\"\n + \" -- CarneMensalidadesDao->listaCarneMensalidadesAgrupado(new Pessoa(), new Date()) \\n\"\n + \" \\n\"\n + \" SELECT P.ds_nome AS titular, \\n\"\n + \" S.matricula AS matricula, \\n\"\n + \" S.categoria AS categoria, \\n\"\n + \" M.id_pessoa AS id_responsavel, \\n\"\n + \" sum(nr_valor - nr_desconto_ate_vencimento) AS valor, \\n\"\n + \" M.dt_vencimento AS vencimento, \\n\"\n + \" '' AS servico , \\n\"\n + \" 0 AS quantidade \\n\"\n + \" FROM fin_movimento AS M \\n\"\n + \" INNER JOIN pes_pessoa AS P ON P.id = M.id_pessoa \\n\"\n + \" INNER JOIN pes_pessoa AS B ON B.id = M.id_beneficiario \\n\"\n + \" LEFT JOIN soc_socios_vw AS S ON S.codsocio = M.id_pessoa \\n\"\n + \" WHERE is_ativo = true \\n\"\n + \" AND id_baixa IS NULL \\n\"\n + \" AND to_char(M.dt_vencimento, 'MM/YYYY') IN (\" + datas + \") \\n\"\n + \" AND M.id_servicos NOT IN (SELECT id_servicos \\n\"\n + \" FROM fin_servico_rotina \\n\"\n + \" WHERE id_rotina = 4 \\n\"\n + \") \\n\"\n + and\n + \" GROUP BY P.ds_nome, \\n\"\n + \" S.matricula, \\n\"\n + \" S.categoria, \\n\"\n + \" M.id_pessoa, \\n\"\n + \" M.dt_vencimento \\n\"\n + \") \\n\"\n + \" \\n\"\n + \" \\n\"\n + \"UNION \\n\"\n + \" \\n\"\n + \" \\n\"\n + \" \\n\"\n + \"( \\n\"\n + \" SELECT P.ds_nome AS titular, \\n\"\n + \" S.matricula AS matricula, \\n\"\n + \" S.categoria AS categoria, \\n\"\n + \" M.id_pessoa AS id_responsavel, \\n\"\n + \" sum(nr_valor - nr_desconto_ate_vencimento) AS valor,\\n\"\n + \" '01/01/1900' AS vencimento, \\n\"\n + \" SE.ds_descricao AS servico, \\n\"\n + \" count(*) AS quantidade \\n\"\n + \" FROM fin_movimento AS M \\n\"\n + \" INNER JOIN fin_servicos AS SE ON SE.id = M.id_servicos \\n\"\n + \" INNER JOIN pes_pessoa AS P ON P.id = M.id_pessoa \\n\"\n + \" INNER JOIN pes_pessoa AS B ON B.id = M.id_beneficiario \\n\"\n + \" LEFT JOIN soc_socios_vw AS S ON S.codsocio = M.id_pessoa \\n\"\n + \" WHERE is_ativo = true \\n\"\n + \" AND id_baixa IS NULL \\n\"\n + \" AND to_char(M.dt_vencimento, 'MM/YYYY') IN (\" + datas + \")\\n\"\n + \" AND M.id_servicos NOT IN (SELECT id_servicos \\n\"\n + \" FROM fin_servico_rotina \\n\"\n + \" WHERE id_rotina = 4 \\n\"\n + \") \\n\"\n + and\n + \" GROUP BY P.ds_nome, \\n\"\n + \" S.matricula, \\n\"\n + \" S.categoria, \\n\"\n + \" M.id_pessoa, \\n\"\n + \" SE.ds_descricao\\n\"\n + \") \\n\"\n + \" ORDER BY 1,4,6\";\n try {\n Query query = getEntityManager().createNativeQuery(queryString);\n return query.getResultList();\n } catch (Exception e) {\n e.getMessage();\n }\n return new ArrayList();\n }", "public java.sql.ResultSet consultapormedicohorafecha(String CodigoMedico,String hora,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pmd.codigo=\"+CodigoMedico+\" and phm.horas='\"+hora+\"' and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicohorafecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public static String todosLosEmpleados(){\n String query=\"SELECT empleado.idEmpleado, persona.nombre, persona.apePaterno, persona.apeMaterno, empleado.codigo, empleado.fechaIngreso,persona.codigoPostal,persona.domicilio,\" +\n\"empleado.puesto, empleado.salario from persona inner join empleado on persona.idPersona=empleado.idPersona where activo=1;\";\n return query;\n }", "public boolean querySql(String sql){\r\n boolean result = true;\r\n try{\r\n stm = con.createStatement();\r\n rss = stm.executeQuery(sql);\r\n }catch(SQLException e){\r\n report = e.toString();\r\n result = false;\r\n }\r\n return result;\r\n }", "private boolean validaItemsServicio(int CodEmp, int CodLoc, int CodCot){\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n java.sql.Connection conLoc;\n boolean blnRes=true;\n try{\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(), objParSis.getUsuarioBaseDatos(), objParSis.getClaveBaseDatos());\n if (conLoc != null) {\n stmLoc=conLoc.createStatement();\n strSql=\"\";\n strSql+=\" SELECT a1.co_emp, a1.co_loc, a1.co_cot \\n\";\n strSql+=\" FROM tbm_cabCotVen as a1 \\n\";\n strSql+=\" INNER JOIN tbm_detCotVen as a2 ON (a1.co_emp=a2.co_emp AND a1.co_loc=a2.co_loc AND a1.co_cot=a2.co_cot) \\n\";\n strSql+=\" INNER JOIN tbm_inv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_itm=a3.co_itm) \\n\";\n strSql+=\" WHERE a1.co_emp=\"+CodEmp+\" AND a1.co_loc=\"+CodLoc+\" AND a1.co_cot=\"+CodCot+\" AND (a3.st_ser='S' OR a3.st_ser='T' OR a3.st_ser='O') \\n\";\n rstLoc=stmLoc.executeQuery(strSql);\n if(rstLoc.next()){\n blnRes=false;\n }\n rstLoc.close();\n rstLoc=null;\n stmLoc.close();\n stmLoc=null;\n }\n conLoc.close();\n conLoc=null;\n }\n catch (java.sql.SQLException e){\n objUti.mostrarMsgErr_F1(this, e);\n blnRes=false; \n }\n catch(Exception e){\n objUti.mostrarMsgErr_F1(this, e);\n blnRes=false;\n }\n return blnRes;\n }", "public Float consultarScript(Indicador indicador){\n Connection con = ConexaoCliente.getConexao();\n Float resultadoConsulta=null;\n try {\n Statement statement = con.createStatement();\n //Executa o Script do Indicador\n ResultSet result = statement.executeQuery(indicador.getScript());\n\n while(result.next()){\n // CONFIGURAR PARÂMETRO CONFORME O SCRIPT ******\n resultadoConsulta=result.getFloat(1);\n }\n\n statement.close();\n\n } catch (SQLException ex) {\n Logger.getLogger(IndicadorDao.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"IndicadorDao.consultarScript. \\n\"+ex.toString());\n ex.printStackTrace();\n }finally{\n try{\n con.close();\n }catch(SQLException ex){\n ex.printStackTrace();\n Logger.getLogger(IndicadorDao.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"IndicadorDao.consultarScript. fechar conexão\\n\"+ex.toString());\n }\n\n }\n\n Calendar calendar = new GregorianCalendar();\n Date data = new Date();\n calendar.setTime(data);\n \n try{\n Movimentacao mov = new Movimentacao();\n //Atribui valores para gravar na tabela [ tb_movimentacao ]\n mov.setDataMovimentacao(calendar.getTime());\n mov.setIdIndicador(mov.getIdIndicador());\n mov.setStatus(\"T\");\n mov.setValorRetorno(mov.getValorRetorno());\n\n MovimentacaoDao movDao = new MovimentacaoDao();\n movDao.gravarMovimentacao(mov);\n\n }catch(Exception e){\n e.printStackTrace();\n }\n \n return resultadoConsulta;\n }", "public void consutaBD(String Campo, String txtSQL) {\n String consultaBD = \"SELECT * FROM `cronograma_actividades` WHERE \" + Campo + \" LIKE '\" + txtSQL + \"_%'\";\n //JOptionPane.showMessageDialog(null, consultaBD);\n javax.swing.JTable Tabla = this.Tabla_addActividad;\n // Enviamos los parametros para la consulta de la tabla\n // conexion consulta de la base de datos y el nombre de la tabla\n String cabesera[] = {\"Código\", \"Asunto\", \"Actividad\",\"hora\",\"Fecha\",\"Estado\"};\n cone1.GetTabla_Sincabeseras_sql_bd(cn, consultaBD, Tabla, cabesera);\n\n }", "private void pesquisar_cliente() {\n String sql = \"select id, empresa, cnpj, endereco, telefone, email from empresa where empresa like ?\";\n try {\n pst = conexao.prepareStatement(sql);\n //passando o conteudo para a caixa de pesquisa para o ?\n // atenção ao ? q é a continuacao da string SQL\n pst.setString(1, txtEmpPesquisar.getText() + \"%\");\n rs = pst.executeQuery();\n // a linha abaixo usa a biblioteca rs2xml.jar p preencher a TABELA\n tblEmpresas.setModel(DbUtils.resultSetToTableModel(rs));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }", "public Resultado executarConsulta(Requisicao requisicao) throws Exception {\r\n throw new UnsupportedOperationException();\r\n }", "public void executar() {\n\t\tSystem.out.println(dao.getListaPorNome(\"abacatão\"));\n\t}", "public ArrayList<String> obtenerCantidadRemota(java.sql.Connection con, int CodEmp, int CodLoc,int CodTipDoc, int CodDoc){\r\n java.sql.Statement stmLoc; \r\n java.sql.ResultSet rstLoc;\r\n try{\r\n if(con!=null){\r\n arlDatIng = new ArrayList();\r\n stmLoc=con.createStatement();\r\n strSql=\"\";/* LOS INGRESOS AGRUPADOS POR ITEM */\r\n strSql+=\" SELECT a2.co_emp , a2.co_loc, a2.co_tipDoc, a2.co_doc,a8.co_bodGrp as co_bodIng, a7.co_bodEgr, \\n\";\r\n strSql+=\" a3.co_reg,a6.co_reg as coRegRel,a3.co_itm, a3.nd_can \\n\";\r\n strSql+=\" FROM tbm_cabMovInv as a2 /*EL INGRESO */ \\n\";\r\n strSql+=\" INNER JOIN tbm_detMovInv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_loc=a3.co_loc AND \\n\";\r\n strSql+=\" a2.co_tipDoc=a3.co_tipDoc AND a2.co_doc=a3.co_doc) \\n\";\r\n strSql+=\" INNER JOIN tbr_detMovInv as a5 ON (a3.co_emp=a5.co_empRel AND a3.co_loc=a5.co_locRel AND a3.co_tipDoc=a5.co_tipDocRel \\n\";\r\n strSql+=\" AND a3.co_doc=a5.co_docRel AND a3.co_reg=a5.co_regRel) \\n\";\r\n strSql+=\" INNER JOIN tbm_detMovInv as a6 ON (a5.co_emp=a6.co_emp AND a5.co_loc=a6.co_loc AND a5.co_tipDoc=a6.co_tipDoc AND \\n\";\r\n strSql+=\" a5.co_doc=a6.co_doc AND a5.co_reg=a6.co_reg)/*LA FACTURA*/ \\n\";\r\n strSql+=\" LEFT OUTER JOIN ( \\n\";\r\n strSql+=\" SELECT a1.co_emp, a1.co_loc, a1.co_tipDoc, a1.co_doc,a4.co_bodGrp as co_bodEgr, a1.co_reg, \\n\";\r\n strSql+=\" a3.co_emp as co_empIng, a3.co_loc as co_locIng, a3.co_tipDoc as co_tipDocIng, \\n\";\r\n strSql+=\" a3.co_doc as co_docIng,a3.co_reg as co_regIng\\n\";\r\n strSql+=\" FROM tbm_detMovInv AS a1 \\n\";\r\n strSql+=\" INNER JOIN tbr_detMovInv AS a2 ON (a1.co_emp=a2.co_Emp AND a1.co_loc=a2.co_loc AND a1.co_tipDoc=a2.co_tipDoc AND \\n\";\r\n strSql+=\" a1.co_doc=a2.co_doc AND a1.co_reg=a2.co_reg) \\n\";\r\n strSql+=\" INNER JOIN (\t \\n\";\r\n strSql+=\" SELECT a3.co_emp , a3.co_loc, a3.co_tipDoc, a3.co_doc ,a3.co_reg \\n\";\r\n strSql+=\" FROM tbm_detMovInv as a3 \\n\";\r\n strSql+=\" INNER JOIN tbr_detMovInv as a5 ON (a3.co_emp=a5.co_empRel AND a3.co_loc=a5.co_locRel AND \\n\";\r\n strSql+=\" a3.co_tipDoc=a5.co_tipDocRel AND a3.co_doc=a5.co_docRel \\n\";\r\n strSql+=\" AND a3.co_reg=a5.co_regRel) \\n\";\r\n strSql+=\" WHERE a5.co_emp=\"+CodEmp+\" AND a5.co_loc=\"+CodLoc+\" AND a5.co_tipDoc=\"+CodTipDoc+\" AND a5.co_doc=\"+CodDoc+\" \\n\";\r\n strSql+=\" ) as a3 ON (a2.co_empRel=a3.co_emp AND a2.co_locRel=a3.co_loc AND a2.co_tipDocRel=a3.co_tipDoc AND \\n\";\r\n strSql+=\" a2.co_docRel=a3.co_doc AND a2.co_regRel=a3.co_reg) \\n\";\r\n strSql+=\" INNER JOIN tbr_bodEmpBodGrp AS a4 ON (a1.co_emp=a4.co_emp AND a1.co_bod=a4.co_bod AND a4.co_empGrp=\"+objParSis.getCodigoEmpresaGrupo()+\") \\n\";\r\n strSql+=\" WHERE NOT (a1.co_emp=\"+CodEmp+\" AND a1.co_loc=\"+CodLoc+\" AND a1.co_tipDoc=\"+CodTipDoc+\" AND a1.co_doc=\"+CodDoc+\" ) \\n\";\r\n strSql+=\" ) as a7 ON (a3.co_emp=a7.co_empIng AND a3.co_loc=a7.co_locIng AND a3.co_tipDoc=a7.co_tipDocIng AND \\n\";\r\n strSql+=\" a3.co_doc=a7.co_docIng AND a3.co_reg=a7.co_regIng) \\n\";\r\n strSql+=\" INNER JOIN tbr_bodEmpBodGrp AS a8 ON (a3.co_emp=a8.co_emp AND a3.co_bod=a8.co_bod AND a8.co_empGrp=\"+objParSis.getCodigoEmpresaGrupo()+\" )\\n\";\r\n strSql+=\" WHERE a6.co_emp=\"+CodEmp+\" AND a6.co_loc=\"+CodLoc+\" AND a6.co_tipDoc=\"+CodTipDoc+\" AND a6.co_doc=\"+CodDoc+\" \\n\";\r\n strSql+=\" AND a3.nd_can > 0 AND (a2.tx_tipMov='V' OR a2.tx_tipMov='I' OR a2.tx_tipMov='R') \\n\";\r\n strSql+=\" GROUP BY a6.co_reg, a2.co_emp , a2.co_loc, a2.co_tipDoc, a2.co_doc,a8.co_bodGrp,a7.co_bodEgr,a3.co_reg,a3.co_reg, a3.co_itm, a3.nd_can \\n\";\r\n strSql+=\" ORDER BY a6.co_reg \\n\"; // IMPORTANTE ORDENADO POR LOS REGISTROS DE LA FACTURA \r\n System.out.println(\"obtenerCantidadRemota:... \\n\" + strSql);\r\n rstLoc=stmLoc.executeQuery(strSql);\r\n while(rstLoc.next()){\r\n arlRegIng=new ArrayList();\r\n arlRegIng.add(INT_ARL_COD_EMP,rstLoc.getInt(\"co_emp\")); // (DATOS DEL INGRESO)\r\n arlRegIng.add(INT_ARL_COD_LOC,rstLoc.getInt(\"co_loc\"));\r\n arlRegIng.add(INT_ARL_COD_TIP_DOC,rstLoc.getInt(\"co_tipDoc\"));\r\n arlRegIng.add(INT_ARL_COD_DOC,rstLoc.getInt(\"co_doc\"));\r\n arlRegIng.add(INT_ARL_COD_REG,rstLoc.getInt(\"co_reg\"));\r\n arlRegIng.add(INT_ARL_COD_REG_REL,rstLoc.getInt(\"coRegRel\")); // RELACIONAL (LA FACTURA)\r\n arlRegIng.add(INT_ARL_COD_ITM,rstLoc.getInt(\"co_itm\"));\r\n arlRegIng.add(INT_ARL_CAN_ITM,rstLoc.getDouble(\"nd_can\"));\r\n arlRegIng.add(INT_ARL_BOD_ING,rstLoc.getInt(\"co_bodIng\")); /* JoséMario 12/Sep/2016 */\r\n arlRegIng.add(INT_ARL_BOD_EGR,rstLoc.getInt(\"co_bodEgr\")); /* JoséMario 12/Sep/2016 */\r\n arlRegIng.add(INT_ARL_CAN_UTI,0.00);\r\n arlDatIng.add(arlRegIng);\r\n }\r\n rstLoc.close();\r\n rstLoc=null;\r\n stmLoc.close();\r\n stmLoc=null;\r\n }\r\n }\r\n catch (java.sql.SQLException e){ \r\n objUti.mostrarMsgErr_F1(jifCnt, e);\r\n }\r\n catch (Exception e){ \r\n objUti.mostrarMsgErr_F1(jifCnt, e);\r\n }\r\n return arlDatIng;\r\n }", "@Override\r\n public List<Funcionario> consultarTodosFuncionarios() throws Exception {\n return rnFuncionario.consultarTodos();\r\n }", "protected void exibirMedicos(){\n System.out.println(\"--- MEDICOS CADASTRADOS ----\");\r\n String comando = \"select * from medico order by id\";\r\n ResultSet rs = cb.buscaDados(comando);\r\n try{\r\n while(rs.next()){\r\n int id = rs.getInt(\"id\");\r\n String nome = rs.getString(\"nome\");\r\n System.out.println(\"[\"+id+\"] \"+nome);\r\n }\r\n }\r\n catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n }", "public java.sql.ResultSet consultaporespecialidad(String CodigoEspecialidad){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidad \"+ex);\r\n }\t\r\n return rs;\r\n }", "public int grabarFacturaCompleta(Factura fac) {\n\t\tArrayList<String> listaSQLs = new ArrayList<>();\r\n\t\tint respuesta = -1;\r\n\t\tString sql = \"\";\r\n\t\tif (fac.getId()==0) {\r\n\t\t\tsql += \"INSERT INTO facturas SET \" +\r\n\t\t\t\t\t\"facturas.clienteId = \" + fac.getClienteId() + \", \" +\r\n\t\t\t\t\t\"facturas.nombreCliente = \" + fac.getNombreCliente() + \", \" +\r\n\t\t\t\t\t\"facturas.numero = \" + fac.getNumero() + \", \" +\r\n\t\t\t\t\t\"facturas.fecha = '\" + Utilidades.fechaToSQL(fac.getFecha()) + \"', \" +\r\n\t\t\t\t\t\"facturas.porcDescuento = \" + fac.getPorcDescuento() + \", \" +\r\n\t\t\t\t\t\"facturas.porcRecargoEquivalencia = \" + fac.getPorcRecargoEquivalencia() + \", \" +\r\n\t\t\t\t\t\"facturas.impTotal = \" + fac.getImpTotal() + \", \" +\r\n\t\t\t\t\t\"facturas.impRecargo = \" + fac.getImpRecargo() + \", \" +\r\n\t\t\t\t\t\"facturas.impIva = \" + fac.getImpIva() + \", \" +\r\n\t\t\t\t\t\"facturas.dirCorreo = '\" + fac.getDirCorreo() + \"', \" +\r\n\t\t\t\t\t\"facturas.dirFactura = '\" + fac.getDirFactura() + \"', \" +\r\n\t\t\t\t\t\"facturas.dirEnvio = '\" + fac.getDirEnvio() + \"', \" +\r\n\t\t\t\t\t\"facturas.cobrada = \" + fac.isCobrada()\r\n\t\t\t\t\t;\r\n\t\t} else {\r\n\t\t\tsql = \"UPDATE facturas SET \" +\r\n\t\t\t\t\t\"facturas.clienteId = \" + fac.getClienteId() + \", \" +\r\n\t\t\t\t\t\"facturas.nombreCliente = \" + fac.getNombreCliente() + \", \" +\r\n\t\t\t\t\t\"facturas.numero = \" + fac.getNumero() + \", \" +\r\n\t\t\t\t\t\"facturas.fecha = '\" + Utilidades.fechaToSQL(fac.getFecha()) + \"', \" +\r\n\t\t\t\t\t\"facturas.porcDescuento = \" + fac.getPorcDescuento() + \", \" +\r\n\t\t\t\t\t\"facturas.porcRecargoEquivalencia = \" + fac.getPorcRecargoEquivalencia() + \", \" +\r\n\t\t\t\t\t\"facturas.impTotal = \" + fac.getImpTotal() + \", \" +\r\n\t\t\t\t\t\"facturas.impRecargo = \" + fac.getImpRecargo() + \", \" +\r\n\t\t\t\t\t\"facturas.impIva = \" + fac.getImpIva() + \", \" +\r\n\t\t\t\t\t\"facturas.dirCorreo = '\" + fac.getDirCorreo() + \"', \" +\r\n\t\t\t\t\t\"facturas.dirFactura = '\" + fac.getDirFactura() + \"', \" +\r\n\t\t\t\t\t\"facturas.dirEnvio = '\" + fac.getDirEnvio() + \"', \" +\r\n\t\t\t\t\t\"facturas.cobrada = \" + fac.isCobrada() + \" \" +\r\n\t\t\t\t\t\"WHERE facturas.id = \" + fac.getId()\r\n\t\t\t\t\t;\r\n\t\t}\r\n\t\t//Preparo la lista de SLQ de los detalles\r\n\t\tfor (FacturaDetalle fd : fac.getDetalles()) {\r\n\t\t\tlistaSQLs.add(new FacturasDetallesBDD().generaSQL(fd));\r\n\t\t}\r\n\t\tSystem.out.println(listaSQLs);\r\n\t\t// CREO UNA CONEXION\r\n\t\tConnection c = new Conexion().getConection();\r\n\t\t// SI LA CONEXION ES VALIDA\r\n\t\tif (c!=null) {\r\n\t\t\t// INTENTA REALIZAR EL SQL\r\n\t\t\ttry {\r\n\t\t\t\t// Crea un ESTAMENTO (comando de ejecucion de un sql)\r\n\t\t\t\tStatement comando = c.createStatement();\r\n\t\t\t\t\r\n\t\t\t\tcomando.execute(sql);\r\n//\t\t\t\tcomando.execute(sql,Statement.RETURN_GENERATED_KEYS);\r\n//\t\t\t\t// COMPRUEBA si estamos en un Insert o en un Update\r\n//\t\t\t\tif (fac.getId() != 0){\r\n//\t\t\t\t\t// ES UN UPDATE\r\n//\t\t\t\t\trespuesta = comando.getUpdateCount()>0?0:-1;\r\n//\t\t\t\t} else {\r\n//\t\t\t\t\t// VAMOS A DEVOLVER EL ID GENERADO, pero el EXECUTE devuelve un RESULTSET\r\n//\t\t\t\t\tResultSet resultados = comando.getGeneratedKeys();\r\n//\t\t\t\t\t// Si el conjunto de resultados no es nulo, y coge el proximo elemento (el primero)\r\n//\t\t\t\t\tif (resultados!=null && resultados.next()) {\r\n//\t\t\t\t\t\trespuesta = resultados.getInt(1);\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n\t\t\t\t//Vamos a generar un execute para cada Detalle de la lista;\r\n\t\t\t\tfor (String sqlDetalle : listaSQLs) {\r\n\t\t\t\t\tcomando.execute(sqlDetalle);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t//CERRAMOS LA CONEXION\r\n\t\ttry {\r\n\t\t\tc.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn respuesta;\r\n\t}", "public void MostrarFacturas() {// METODO MOSTRAR FACTURAS\n conexionBD.getConnection();\n\n try {\n String SQL = \"SELECT * FROM facturacabecera fc, facturadetalle fd WHERE \"\n + \"fc.idFacturaCabecera = fd.FacturaCabecera_idFacturaCabecera\";\n Statement stmt = conexionBD.con.createStatement();\n ResultSet rs = stmt.executeQuery(SQL);\n\n while (rs.next()) {\n System.out.println(rs.getInt(\"idFacturaCabecera\") + \"|\" + rs.getDate(\"fecha\") + \"|\"\n + rs.getFloat(\"subtotal\") + \"|\" + rs.getFloat(\"iva\") + \"|\" + rs.getFloat(\"total\") + \"|\"\n + rs.getString(\"estado\") + \"|\" + rs.getString(\"descripcion\"));\n }\n rs.close();\n stmt.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void ConsultarReq(String codCurso) {\n try {\n DefaultTableModel model = (DefaultTableModel) Vistas.ConsultaCursoReq.tblConsultaCurso.getModel();\n model.setRowCount(0);\n String consulta = \"Select distinct curreq.codigoCursoReq AS 'Requerimiento', Curso.nombreCurso AS 'Nombre curso'\\n\"\n + \"from Curso cur\\n\"\n + \"inner join Curso_Requisito curreq\\n\"\n + \"ON (Cur.codigoCurso= curreq.codigoCurso)\\n\"\n + \"join Curso \\n\"\n + \"ON (Curso.codigoCurso = curreq.codigoCursoReq)\"\n + \"WHERE cur.codigoCurso ='\" + codCurso + \"' \";\n ResultSet res = Modelo.ConexionSQL.consulta(consulta);\n while (res.next()) {\n Vector v = new Vector();\n v.add(res.getString(1));\n v.add(res.getString(2));\n model.addRow(v);\n Vistas.ConsultaCursoReq.tblConsultaCurso.setModel(model);\n }\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage(), \"Error conexion\", JOptionPane.ERROR_MESSAGE);\n }\n\n }", "public java.sql.ResultSet consultaporfecha(String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public static ArrayList<Faccion> Select() throws Exception {\r\n\t\t\r\n\t\tConnection con = null;\r\n\t\tResultSet rs = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tcon = Data.Connection();\r\n\t\t\tArrayList<Faccion> faccion = new ArrayList<Faccion>();\r\n\t\t\t\r\n\t\t\trs = con.createStatement().executeQuery(\r\n\t\t\t\t\t\"SELECT Id FROM Faccion ORDER BY Nombre\");\r\n\t\t\t\r\n\t\t\twhile(rs.next())\r\n\t\t\t\tfaccion.add(new Faccion(rs.getInt(\"Id\")));\r\n\t\t\t\t\t\t\r\n\t\t\treturn faccion;\r\n\t\t}\r\n\t\tcatch(Exception e) { throw e; }\r\n\t\tfinally {\r\n\t\t\t\r\n\t\t\tif(rs != null) rs.close();\r\n\t\t\tif(con != null) con.close();\r\n\t\t}\r\n\t}", "public void buscarEstudiante(String codEstudiante){\n estudianteModificar=new Estudiante();\n estudianteGradoModificar=new EstudianteGrado();\n StringBuilder query=new StringBuilder();\n query.append(\"select e.idestudiante,e.nombre,e.apellido,e.ci,e.cod_est,e.idgrado,e.idcurso,g.grado,c.nombre_curso \" );\n query.append(\" from estudiante e \");\n query.append(\" inner join grado g on e.idgrado=g.idgrado \");\n query.append(\" inner join cursos c on e.idcurso=c.idcurso \");\n query.append(\" where idestudiante=? \");\n try {\n PreparedStatement pst=connection.prepareStatement(query.toString());\n pst.setInt(1, Integer.parseInt(codEstudiante));\n ResultSet resultado=pst.executeQuery();\n //utilizamos una condicion porque la busqueda nos devuelve 1 registro\n if(resultado.next()){\n //cargando la informacion a nuestro objeto categoriaModificarde tipo categoria\n estudianteModificar.setCodEstudiante(resultado.getInt(1));\n estudianteModificar.setNomEstudiante(resultado.getString(2));\n estudianteModificar.setApEstudiante(resultado.getString(3));\n estudianteModificar.setCiEstudiante(resultado.getInt(4));\n estudianteModificar.setCodigoEstudiante(resultado.getString(5));\n estudianteModificar.setIdgradoEstudiante(resultado.getInt(6));\n estudianteModificar.setIdCursoEstudiante(resultado.getInt(7));\n estudianteGradoModificar.setNomGrado(resultado.getString(8));\n estudianteGradoModificar.setNomCurso(resultado.getString(9));\n }\n } catch (SQLException e) {\n System.out.println(\"Error de conexion\");\n e.printStackTrace();\n }\n }", "public ArrayList findByFIngFFinNull(String dbpool, String fechaIni,\n\t\t\tString fechaFin, String criterio, String valor) throws SQLException {\n\n\t\tStringBuffer strSQL = new StringBuffer(\"\");\n\t\tPreparedStatement pre = null;\n\t\tConnection con = null;\n\t\tResultSet rs = null;\n\t\tArrayList detalle = null;\n\n\t\ttry {\n\n\t\t\tstrSQL.append(\"select cod_pers, u_organ, fing \"\n\t\t\t\t\t).append( \" from t1271asistencia \"\n\t\t\t\t\t).append( \" where (fsal IS NULL and hsal IS NULL) and\"\n\t\t\t\t\t).append( \" fing >= DATE('\").append( Utiles.toYYYYMMDD(fechaIni)).append( \"') and\"\n\t\t\t\t\t).append( \" fing <= DATE('\").append( Utiles.toYYYYMMDD(fechaFin)).append( \"') \");\n\n\t\t\tif (criterio.equals(\"0\")) {\n\t\t\t\tstrSQL.append(\" and cod_pers = '\" ).append( valor.trim().toUpperCase()).append( \"' \");\n\t\t\t}\n\t\t\tif (criterio.equals(\"1\")) {\n\t\t\t\tstrSQL.append(\" and u_organ = '\" ).append( valor.trim().toUpperCase()).append( \"' \");\n\t\t\t}\n\n\t\t\t//JRR\t\n\t\t\tif (criterio.equals(\"2\")) {\n\t\t\t\tString intendencia = valor.substring(0,2);\n\t\t\t\tstrSQL.append(\" and u_organ like '\" ).append( intendencia.trim().toUpperCase()).append( \"%' \");\n\t\t\t}\n\t\t\t//\n\t\t\t\n\t\t\tcon = getConnection(dbpool);\n\t\t\tpre = con.prepareStatement(strSQL.toString());\n\t\t\trs = pre.executeQuery();\n\t\t\tdetalle = new ArrayList();\n\t\t\tBeanAsistencia asis = null;\n\n\t\t\twhile (rs.next()) {\n\n\t\t\t\tasis = new BeanAsistencia();\n\t\t\t\tasis.setCodPers(rs.getString(\"cod_pers\"));\n\t\t\t\tasis.setFIng(new BeanFechaHora(rs.getDate(\"fing\")).getFormatDate(\"dd/MM/yyyy\"));\n\n\t\t\t\tdetalle.add(asis);\n\t\t\t}\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\trs.close();\n\t\t\t} catch (Exception e) {\n\n\t\t\t}\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\treturn detalle;\n\t}", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "public List<ReporteRetencionesResumido> getRetencionSRIResumido(int mes, int anio, int idOrganizacion)\r\n/* 27: */ {\r\n/* 28: 58 */ String sql = \"SELECT new ReporteRetencionesResumido(f.fechaEmisionRetencion,f.fechaRegistro,f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero),\\tf.identificacionProveedor,c.descripcion,CASE WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE then (SUM(COALESCE(dfp.baseImponibleRetencion, 0)+COALESCE(dfp.baseImponibleTarifaCero, 0) +COALESCE(dfp.baseImponibleDiferenteCero, 0)+COALESCE(dfp.baseImponibleNoObjetoIva, 0))) else COALESCE(dfp.baseImponibleRetencion, 0) end,dfp.porcentajeRetencion,dfp.valorRetencion,\\tc.codigo,CASE WHEN c.tipoConceptoRetencion = :tipoConceptoIVA then 'IVA' WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE then 'FUENTE' WHEN c.tipoConceptoRetencion = :tipoConceptoISD then 'ISD' else '' end,f.numeroRetencion) FROM DetalleFacturaProveedorSRI dfp INNER JOIN dfp.facturaProveedorSRI f INNER JOIN dfp.conceptoRetencionSRI c WHERE MONTH(f.fechaRegistro) =:mes\\tAND YEAR(f.fechaRegistro) =:anio AND f.estado!=:estadoAnulado AND f.indicadorSaldoInicial!=true AND f.idOrganizacion = :idOrganizacion\\tGROUP BY c.codigo,f.numero,f.puntoEmision,\\tf.establecimiento, f.identificacionProveedor,\\tc.descripcion,dfp.baseImponibleRetencion,dfp.porcentajeRetencion,dfp.valorRetencion,f.fechaEmisionRetencion,f.fechaRegistro,f.fechaEmision,f.numeroRetencion, c.tipoConceptoRetencion ORDER BY c.tipoConceptoRetencion, c.codigo \";\r\n/* 29: */ \r\n/* 30: */ \r\n/* 31: */ \r\n/* 32: */ \r\n/* 33: */ \r\n/* 34: */ \r\n/* 35: */ \r\n/* 36: */ \r\n/* 37: */ \r\n/* 38: */ \r\n/* 39: */ \r\n/* 40: */ \r\n/* 41: */ \r\n/* 42: */ \r\n/* 43: */ \r\n/* 44: */ \r\n/* 45: 75 */ Query query = this.em.createQuery(sql);\r\n/* 46: 76 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 47: 77 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 48: 78 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 49: 79 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 50: 80 */ query.setParameter(\"tipoConceptoIVA\", TipoConceptoRetencion.IVA);\r\n/* 51: 81 */ query.setParameter(\"tipoConceptoFUENTE\", TipoConceptoRetencion.FUENTE);\r\n/* 52: 82 */ query.setParameter(\"tipoConceptoISD\", TipoConceptoRetencion.ISD);\r\n/* 53: 83 */ List<ReporteRetencionesResumido> lista = query.getResultList();\r\n/* 54: */ \r\n/* 55: 85 */ return lista;\r\n/* 56: */ }", "public ResultSet MuestraMedicos() throws SQLException {\n\t\t\n\t\tString sql = \" SELECT * FROM medico \"; // sentencia busqueda cliente\n\t\ttry {\n\t\t\tconn = conexion.getConexion(); // nueva conexion a la bbdd CREARLO EN TODOS LOS METODOS\n\t\t\tst=(Statement) conn.createStatement();\n\t\t\tresultado = st.executeQuery(sql);\n\t\t\t/*\t\n\t\t\tst.close();\n\t\t\t\tconn.close();\n\t\t\t\t*/\n\t\t}\n\t\tcatch(SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}", "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 }", "public void action_consultar(ActionEvent actionEvent) throws GWorkException {\r\n\t\ttry {\r\n\r\n\t\t\tConsultsService consultsService = new ConsultsServiceImpl();\r\n\r\n\t\t\tboolean esValido = true;\r\n\r\n\t\t\tif (criterio != null && criterio.trim().length() != 0)\r\n\t\t\t\tesValido = Util.validarPlaca(criterio);\r\n\r\n\t\t\tif (!esValido)\r\n\t\t\t\tthrow new GWorkException(Util\r\n\t\t\t\t\t\t.loadErrorMessageValue(\"CRITERIO.CARACTER\"));\r\n\r\n\t\t\t// List<Users> users = new UsersDAO().find\r\n\t\t\tlistUsers = consultsService.usuariosCiat(criterio.toUpperCase(),\r\n\t\t\t\t\tcriterio.toUpperCase(), criterio.toUpperCase());\r\n\t\t\tif (listUsers != null && listUsers.size() > 0) {\r\n\t\t\t\tsetListUsers(listUsers);\r\n\t\t\t\tsetMostrarTabla(true);\r\n\t\t\t} else\r\n\t\t\t\tthrow new GWorkException(Util\r\n\t\t\t\t\t\t.loadErrorMessageValue(\"search.not.found\"));\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tsetListUsers(null);\r\n\t\t\tmostrarMensaje(e.getMessage(), false);\r\n\t\t}\r\n\t}", "@Override\n\tpublic Collection<String> consultarLineaComercialClasificacionAsignacionMasivaIngresar(String codigoClasificacion,String nivelClasificacion,String valorTipoLineaComercial,Long codigoLinPad,Long codigoLinCom)throws SICException{\n\t\tLogeable.LOG_SICV2.info(\"Entr� a consultar Linea Comercial Clasificacion Asignacion Masiva Ingresar : {}\",codigoClasificacion);\n\t\tStringBuilder query = null;\n\t\tSQLQuery sqlQuery = null;\n\t\tSession session=null;\n\t\tString divDep=\" ) \";\n\t\ttry {\n\t\t\tsession = hibernateH.getHibernateSession();\n\t\t\tsession.clear();\n\t\t\tquery = new StringBuilder(\" SELECT t1.CODIGOCLASIFICACION \");\n\t\t\t\n\t\t\tquery.append(\" FROM ( \");\n\t\t\tif(nivelClasificacion.equals(SICConstantes.TIPCLA_DIVISION)){\n\t\t\t\tquery.append(\" select clasificac2_.CODIGOCLASIFICACION \");\n\t\t\t\tquery.append(\" from SCSPETCLASIFICACION clasificac2_ \");\n\t\t\t\tquery.append(\" where clasificac2_.estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\t\t\n\t\t\t\tquery.append(\" and ( clasificac2_.codigoClasificacionPadre in ( \");\n\t\t\t\tdivDep+=\" ) ) \";\n\t\t\t}\n\t\t\t\n\t\t\tquery.append(\" select clasificac3_.CODIGOCLASIFICACION \");\n\t\t\tquery.append(\" from SCSPETCLASIFICACION clasificac3_ \");\n\t\t\tquery.append(\" where clasificac3_.estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\t\n\t\t\tif(nivelClasificacion.equals(SICConstantes.TIPCLA_CLASIFICACION)){\n\t\t\t\tquery.append(\" and clasificac3_.codigoClasificacion IN (\"+codigoClasificacion+\") \"+divDep+\" t1 \");\n\t\t\t}else{\n\t\t\t\tquery.append(\" and clasificac3_.codigoClasificacionPadre IN (\"+codigoClasificacion+\") \"+divDep+\" t1 \");\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tquery.append(\" where t1.CODIGOCLASIFICACION NOT IN(\t \");\n\t\t\tquery.append(\" select distinct lineacomer0_.CODIGOCLASIFICACION \");\n\t\t\tquery.append(\" from SCADMTLINCOMCLA lineacomer0_, SCADMTLINCOM lineacomer1_ \");\n\t\t\tquery.append(\" where lineacomer1_.CODIGOLINEACOMERCIAL=lineacomer0_.CODIGOLINEACOMERCIAL \");\n\t\t\tquery.append(\" and lineacomer1_.NIVEL=0 and lineacomer1_.ESTADO='\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\tif(codigoLinPad != null){\n\t\t\t\tquery.append(\" and lineacomer1_.CODIGOLINEACOMERCIAL NOT IN( \"+codigoLinPad+\" ) \");\n\t\t\t}\n\t\t\tquery.append(\" and lineacomer0_.ESTADO='\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' and lineacomer1_.VALORTIPOLINEACOMERCIAL='\"+valorTipoLineaComercial+\"' \");\n\t\t\tquery.append(\" and ( lineacomer0_.CODIGOCLASIFICACION in ( \");\n\t\t\tif(nivelClasificacion.equals(SICConstantes.TIPCLA_DIVISION)){\n\t\t\t\tquery.append(\" select clasificac2_.CODIGOCLASIFICACION \");\n\t\t\t\tquery.append(\" from SCSPETCLASIFICACION clasificac2_ \");\n\t\t\t\tquery.append(\" where clasificac2_.estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\t\tquery.append(\" and ( clasificac2_.codigoClasificacionPadre in ( \");\n\t\t\t}\n\t\t\t\n\t\t\tquery.append(\" select clasificac3_.CODIGOCLASIFICACION \");\n\t\t\tquery.append(\" from SCSPETCLASIFICACION clasificac3_ \");\n\t\t\tquery.append(\" where clasificac3_.estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\tif(nivelClasificacion.equals(SICConstantes.TIPCLA_CLASIFICACION)){\n\t\t\t\tquery.append(\" and clasificac3_.codigoClasificacion IN (\"+codigoClasificacion+\") \"+divDep+\" ) )\");\n\t\t\t}else{\n\t\t\t\tquery.append(\" and clasificac3_.codigoClasificacionPadre IN (\"+codigoClasificacion+\") \"+divDep+\" ) ) \");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t///CODIGO EXTRA\n\t\t\tif(codigoLinPad != null){\n\t\t\t\tquery.append(\" and t1.CODIGOCLASIFICACION NOT IN(\t \");\n\t\t\t\tquery.append(\" SELECT CODIGOCLASIFICACION FROM SCADMTLINCOMCLA LCC, SCADMTLINCOM LC\t \");\n\t\t\t\tquery.append(\" where LCC.CODIGOCLASIFICACION IN(\t \");\n\t\t\t\tif(nivelClasificacion.equals(SICConstantes.TIPCLA_DIVISION)){\n\t\t\t\t\tquery.append(\" select clasificac2_.CODIGOCLASIFICACION \");\n\t\t\t\t\tquery.append(\" from SCSPETCLASIFICACION clasificac2_ \");\n\t\t\t\t\tquery.append(\" where clasificac2_.estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\t\t\tquery.append(\" and ( clasificac2_.codigoClasificacionPadre in ( \");\n\t\t\t\t}\n\t\t\t\tquery.append(\" select clasificac3_.CODIGOCLASIFICACION \");\n\t\t\t\tquery.append(\" from SCSPETCLASIFICACION clasificac3_ \");\n\t\t\t\tquery.append(\" where clasificac3_.estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\t\t\n\t\t\t\tif(nivelClasificacion.equals(SICConstantes.TIPCLA_CLASIFICACION)){\n\t\t\t\t\tquery.append(\" and clasificac3_.codigoClasificacion IN (\"+codigoClasificacion+\"\"+divDep+\" \");\n\t\t\t\t}else{\n\t\t\t\t\tquery.append(\" and clasificac3_.codigoClasificacionPadre IN (\"+codigoClasificacion+\") \"+divDep+\" \");\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tquery.append(\" AND LCC.ESTADO='1' \");\n\t\t\t\tquery.append(\" AND LCC.CODIGOLINEACOMERCIAL=LC.CODIGOLINEACOMERCIAL \");\n\t\t\t\tquery.append(\" AND LC.CODIGOLINEACOMERCIALPADRE = \"+codigoLinPad);\n\t\t\t\tquery.append(\" AND LCC.CODIGOLINEACOMERCIAL NOT IN (\"+codigoLinCom+\") )\");\n\t\t\t\tif(nivelClasificacion.equals(SICConstantes.TIPCLA_CLASIFICACION)){\n\t\t\t\t\tquery.append(\" ) \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t\n//\t\t\tsqlQuery.setParameter(\"estadoClasificacion\", SICConstantes.ESTADO_ACTIVO_NUMERICO);\n//\t\t\tsqlQuery.setParameter(\"codigoClasificacion\", codigoClasificacion);\n//\t\t\tsqlQuery.setParameter(\"valorTipoLineaComercial\", valorTipoLineaComercial);\n\t\t\t\n\t\t\tsqlQuery = hibernateH.getHibernateSession().createSQLQuery(query.toString());\n//\t\t\tsqlQuery.addEntity(\"vista\", ClasificacionDTO.class);\n\t\t\t\n//\t\t\tclasificacionDTOs =sqlQuery.list();\n\t\t\treturn sqlQuery.list();\n\n\t\t} catch (Exception e) {\n\t\t\tLogeable.LOG_SICV2.info(\"Error al consultar clasificaciones asignacion masiva {}\", e);\n\t\t\tthrow new SICException(\"Error al consultar clasificaciones asignacion masiva {}\", e);\n\t\t}\n//\t\treturn clasificacionDTOs;\n\t\t\n\t}", "private void cargaInfoEmpleado(){\r\n Connection conn = null;\r\n Conexion conex = null;\r\n try{\r\n if(!Config.estaCargada){\r\n Config.cargaConfig();\r\n }\r\n conex = new Conexion();\r\n conex.creaConexion(Config.host, Config.user, Config.pass, Config.port, Config.name, Config.driv, Config.surl);\r\n conn = conex.getConexion();\r\n if(conn != null){\r\n ArrayList<Object> paramsIn = new ArrayList();\r\n paramsIn.add(txtLogin);\r\n QryRespDTO resp = new Consulta().ejecutaSelectSP(conn, IQryUsuarios.NOM_FN_OBTIENE_INFO_USUARIOWEB, paramsIn);\r\n System.out.println(\"resp: \" + resp.getRes() + \"-\" + resp.getMsg());\r\n if(resp.getRes() == 1){\r\n ArrayList<ColumnaDTO> listaColumnas = resp.getColumnas();\r\n for(HashMap<String, CampoDTO> fila : resp.getDatosTabla()){\r\n usuario = new UsuarioDTO();\r\n \r\n for(ColumnaDTO col: listaColumnas){\r\n switch(col.getIdTipo()){\r\n case java.sql.Types.INTEGER:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Integer.parseInt(fila.get(col.getEtiqueta()).getValor().toString().replaceAll(\",\", \"\").replaceAll(\"$\", \"\").replaceAll(\" \", \"\")));\r\n break;\r\n \r\n case java.sql.Types.DOUBLE:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Double.parseDouble(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.FLOAT:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.DECIMAL:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.VARCHAR:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n \r\n case java.sql.Types.NUMERIC:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n default:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n } \r\n }\r\n }\r\n sesionMap.put(\"UsuarioDTO\", usuario);\r\n }else{\r\n context.getExternalContext().getApplicationMap().clear();\r\n context.getExternalContext().redirect(\"index.xhtml\");\r\n }\r\n }\r\n }catch(Exception ex){\r\n System.out.println(\"Excepcion en la cargaInfoEmpleado: \" + ex);\r\n }finally{\r\n try{\r\n conn.close();\r\n }catch(Exception ex){\r\n \r\n }\r\n }\r\n }", "public ResultSet exicutionSelect(Connection con, String Query) throws SQLException {\n\tStatement stmt = con.createStatement();\n\t\n\t// step4 execute query\n\t\tResultSet rs = stmt.executeQuery(Query);\n\t\treturn rs;\n\t\n\t}", "public java.sql.ResultSet consultaporespecialidadfecha(String CodigoEspecialidad,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidadfecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public void establecerDatosRegistro(String sqlConsulta) throws SQLException {\n try {\n this.sqlConsulta = sqlConsulta;\n ejecutarResultSet();\n\n if (!resultSet.first()) {\n return;\n }\n\n int cantidadColumnas = resultSet.getMetaData().getColumnCount();\n\n String nombreColumna;\n String valorColumna;\n\n for (int i = 0; i < cantidadColumnas; i++) {\n nombreColumna = resultSet.getMetaData().getColumnName(i + 1);\n valorColumna = resultSet.getString(i + 1);\n columnas.put(nombreColumna, valorColumna);\n }\n } finally {\n cerrarResultSet();\n }\n }", "public boolean existeContacto(String usuario,String contacto){\n query=\"select count(*) as cantidad from contactos where nombre='%s' and contacto='%s';\";\n query= String.format(query,usuario,contacto);\n try{\n if(miBaseDatos.executeQuery(query,\"respuesta\")){\n miBaseDatos.next(\"respuesta\");\n String aparece = miBaseDatos.getString(\"cantidad\",\"respuesta\");\n if(aparece.equals(\"1\")){\n return true;\n }else{\n return false;\n }\n }else{\n System.out.println(\"No se pudo hacer la consulta\");\n return false;\n }\n }catch(Exception e){\n System.out.println(e.getClass());\n System.out.println(e.getMessage());\n e.printStackTrace();\n return false;\n }\n }", "private boolean validaTerminalesLReservaLocal(int CodEmp,int CodLoc, int CodCot){\n boolean blnRes=true;\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n java.sql.Connection conLoc;\n try{\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(), objParSis.getUsuarioBaseDatos(), objParSis.getClaveBaseDatos());\n if (conLoc!=null){\n stmLoc=conLoc.createStatement();\n strSql=\"\"; \n strSql+=\" SELECT a1.co_emp, a1.co_loc, a1.co_cot, a2.tx_codALt, trim(SUBSTR (UPPER(a2.tx_codalt), length(a2.tx_codalt) ,1)) as terminal \\n\";\n strSql+=\" FROM tbm_cabCotVen as a1 \\n\";\n strSql+=\" INNER JOIN tbm_detCotVen as a2 ON (a1.co_emp=a2.co_emp AND a1.co_loc=a2.co_loc AND a1.co_cot=a2.co_cot) \\n\";\n strSql+=\" INNER JOIN tbm_inv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_itm=a3.co_itm) \\n\";\n strSql+=\" WHERE a1.co_emp=\"+CodEmp+\" and a1.co_loc=\"+CodLoc+\" and a1.co_cot=\"+CodCot+\" \\n\";\n System.out.println(\"validaTerminalesLReservaLocal... \"+ strSql);\n rstLoc = stmLoc.executeQuery(strSql);\n while(rstLoc.next()){\n if(rstLoc.getString(\"terminal\").equals(\"L\")){\n blnRes=false;\n }\n }\n rstLoc.close();\n rstLoc=null;\n stmLoc.close();\n stmLoc=null;\n conLoc.close();\n conLoc=null;\n }\n }\n catch (java.sql.SQLException e){\n objUti.mostrarMsgErr_F1(this, e);\n blnRes=false; \n }\n catch(Exception e){\n objUti.mostrarMsgErr_F1(null, e);\n blnRes=false;\n }\n return blnRes;\n }", "@Override\n public Collection<FasciaOrariaBean> doRetrieveAll() throws SQLException {\n Connection con = null;\n PreparedStatement statement = null;\n String sql = \"SELECT * FROM fasciaoraria\";\n ArrayList<FasciaOrariaBean> collection = new ArrayList<>();\n try {\n con = DriverManagerConnectionPool.getConnection();\n statement = con.prepareStatement(sql);\n System.out.println(\"DoRetriveAll\" + statement);\n ResultSet rs = statement.executeQuery();\n while (rs.next()) {\n FasciaOrariaBean bean = new FasciaOrariaBean();\n bean.setId(rs.getInt(\"id\"));\n bean.setFascia(rs.getString(\"fascia\"));\n collection.add(bean);\n }\n return collection;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n\n try {\n\n statement.close();\n DriverManagerConnectionPool.releaseConnection(con);\n\n } catch (SQLException e) {\n\n e.printStackTrace();\n }\n }\n return collection;\n }" ]
[ "0.65232825", "0.6481565", "0.64497924", "0.6423019", "0.635524", "0.6350972", "0.6239666", "0.6239274", "0.61728376", "0.61541325", "0.61374164", "0.6136583", "0.6125874", "0.61082673", "0.60444266", "0.6036414", "0.6019127", "0.60111636", "0.59987915", "0.5987805", "0.59866047", "0.5966484", "0.5962274", "0.59609556", "0.5955027", "0.5947541", "0.59390223", "0.5928901", "0.5915669", "0.5915281", "0.5898445", "0.58846056", "0.5882804", "0.58760726", "0.58752024", "0.58681166", "0.5854509", "0.5852943", "0.58515024", "0.58482224", "0.5845004", "0.5838125", "0.5835303", "0.5830955", "0.5828872", "0.58285576", "0.58251053", "0.5820089", "0.5819339", "0.58180857", "0.5808411", "0.5799739", "0.5797144", "0.5796349", "0.5795952", "0.5786151", "0.57838315", "0.5781875", "0.5777842", "0.5774628", "0.57742476", "0.5773113", "0.57726043", "0.5772328", "0.5769986", "0.5767824", "0.576504", "0.57649916", "0.5752332", "0.57456833", "0.57424843", "0.57407737", "0.573931", "0.57291204", "0.57203203", "0.5718748", "0.5716621", "0.571166", "0.57098883", "0.5709384", "0.570738", "0.57059556", "0.5701507", "0.5696128", "0.56891906", "0.5686665", "0.56855416", "0.56844944", "0.5674717", "0.56658834", "0.5658006", "0.56541616", "0.5648916", "0.5646093", "0.56445867", "0.56399596", "0.5631187", "0.5627489", "0.5621364", "0.56167096", "0.56149447" ]
0.0
-1
Called when a view has been clicked.
@Override public void onClick(View v) { switch (v.getId()){ case R.id.tv_clear: tv_sum.setText(""); break; case R.id.tv_subtract: break; case R.id.tv_proceeds: Bundle bundle=new Bundle(); bundle.putString("money",tv_sum.getText().toString()); Skip.mNextFroData(mActivity, CashierActivity.class,bundle); break; case R.id.tv_point: tv_sum.setText("."); break; case R.id.tv_zero: tv_sum.setText("zero"); break; case R.id.iv_remark: Skip.mNext(mActivity, CashierRemarkActivity.class); break; case R.id.tv_title_left: Skip.mBack(mActivity); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onClick(View pView)\n\t{\n\t}", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n switch (view.getId()) {\n case R.id.rc_view:\n break;\n\n }\n }", "@Override\n public void onClick(View view) {\n\n }", "void viewButton_actionPerformed(ActionEvent e) {\n doView();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "@Override\n public void onClick(View view) {\n listener.menuButtonClicked(view.getId());\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t}", "@Override\n public void onClick(View view) {\n\n switch (view.getId()) {\n case R.id.tvSomeText:\n listener.sendDataToActivity(\"MainActivity: TextView clicked\");\n break;\n\n case -1:\n listener.sendDataToActivity(\"MainActivity: ItemView clicked\");\n break;\n }\n }", "@Override\n\tpublic void onClick(View view) {\n\t}", "@Override\r\n public void onClick(View view) {\n }", "@Override\r\n public void onClick(View view) {\n }", "@Override\r\n public void onClick(View view) {\n }", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t}", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\n\t\t\t}", "public void onClick(View arg0) {\r\n\t\t\t\t}", "@Override\r\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n clickAnimation(view);\n }", "@Override\n public void onClick(View view) {\n clickAnimation(view);\n }", "@Override\n public void onClick(View view) {\n clickAnimation(view);\n }", "private void ViewActionPerformed(ActionEvent e) {\n\t}", "@Override\n\t\tpublic void onClick(View view) {\n\t\t\tif (iOnItemClickListener != null) {\n\t\t\t\tiOnItemClickListener.onItemClick(view, null, getAdapterPosition());\n\t\t\t}\n\t\t}", "void onViewTap(View view, float x, float y);", "@Override\r\n\tpublic void onClick(View arg0) {\n\t\t\r\n\t}", "void onSingleClick( View view);", "private void OnClick(){\n onWidgetClickListener.onClick(getViewId());\n }", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tracks, getAdapterPosition());\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View view) {\n\n }", "@Override\n public void onClick(View view) {\n\n }", "@Override\n public void onClick(View view) {\n\n }", "@Override\n public void onClick(View view) {\n\n }", "public void onClick(View view){\n }", "@Override\n public void onClick(View view) {\n\n }", "@Override\n public void onClick(View view) {\n listener.onMenuButtonSelected(view.getId());\n }", "@Override\n public void onClick(View view) {\n }", "public void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View view) {\n }", "@Override\n public void onClick(View view) {\n }", "private void clickOnView(int viewId){\n\t\tonView(withId(viewId)).perform(click());\n\t}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\t\n\t\t}", "@Override\n \t\tpublic void onClick(View v) {\n \t\t\t\n \t\t}", "@Override\n \t\tpublic void onClick(View v) {\n \t\t\t\n \t\t}", "@Override public void onClick(View arg0) {\n\n }", "@Override\r\n\t\t\tpublic void onViewClick(MyImageView view)\r\n\t\t\t{\n\t\t\t\tIntent it = new Intent(MainActivity.this,\r\n\t\t\t\t\t\tIndexActivityNew.class);\r\n\t\t\t\tstartActivity(it);\r\n\t\t\t}", "@Override\n public void onClick(View arg0) {\n }", "@Override\n public void onClick(View arg0) {\n }", "@Override\n public void onClick(View arg0) {\n }", "@Override\n public void onClick(View arg0) {\n }", "@Override\n public void onClick(View arg0) {\n }", "@Override\n\tpublic void onClick(View arg0) {\n\n\t}", "@Override\n\tpublic void onClick(View arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onClick(View arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onClick(View arg0) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t}" ]
[ "0.7561606", "0.74694735", "0.74694735", "0.74694735", "0.74694735", "0.74694735", "0.74694735", "0.74694735", "0.74244165", "0.739669", "0.7391502", "0.7374028", "0.7374028", "0.7374028", "0.7374028", "0.735448", "0.73523974", "0.73280215", "0.7281267", "0.7275264", "0.72677636", "0.72677636", "0.72677636", "0.72667885", "0.7262413", "0.7262413", "0.7262413", "0.7262413", "0.7262413", "0.7262413", "0.7262413", "0.7262413", "0.7262413", "0.7262413", "0.7262413", "0.7262413", "0.7262413", "0.7262413", "0.7262413", "0.7262413", "0.7262413", "0.7262413", "0.7262413", "0.7262413", "0.7262413", "0.7262413", "0.7262413", "0.72612584", "0.72078836", "0.7201385", "0.71998316", "0.71998316", "0.71998316", "0.71998316", "0.7190338", "0.7190338", "0.7190338", "0.71804166", "0.71674687", "0.7162811", "0.7159236", "0.71500725", "0.7147973", "0.71458167", "0.7129283", "0.71190244", "0.71190244", "0.71190244", "0.7099927", "0.7099927", "0.7099927", "0.7099927", "0.7097322", "0.70949364", "0.70834535", "0.7057695", "0.70522505", "0.704001", "0.704001", "0.70347404", "0.702139", "0.7016598", "0.7016598", "0.7015662", "0.70006615", "0.69876194", "0.69876194", "0.69876194", "0.69876194", "0.69876194", "0.6984493", "0.69680786", "0.69680786", "0.69680786", "0.696033", "0.696033", "0.696033", "0.696033", "0.696033", "0.696033", "0.696033" ]
0.0
-1
TODO omitDefaultActionUrl is a parameter very useful when we are in a Portlet environnment it's used in buildEventOptions function but the current Ajax4jsf library we used doesn't have the same function declaration. See RichFaces branch AjaxRendererUtils class to see what I mean
public static StringBuffer buildDefaultOptions(UIComponent uiComponent, FacesContext facesContext) { boolean omitDefaultActionUrl = false; List<Object> parameters = new ArrayList<Object>(); parameters.add(org.ajax4jsf.framework.renderer.AjaxRendererUtils.buildEventOptions(facesContext, uiComponent)); boolean first = true; StringBuffer onEvent = new StringBuffer(); if (null != parameters) { for (Iterator<?> param = parameters.iterator(); param.hasNext();) { Object element = param.next(); if (!first) { onEvent.append(','); } if (null != element) { onEvent.append(ScriptUtils.toScript(element)); } else { onEvent.append("null"); } first = false; } } if (uiComponent instanceof UIWidgetBase && ((UIWidgetBase) uiComponent).isDebug()) LOGGER.log(Level.INFO, Messages.getMessage(Messages.BUILD_ONCLICK_INFO, uiComponent.getId(), onEvent.toString())); return onEvent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Map<String, Action> getAjaxActons() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic ActionResult defaultMethod(PortalForm form, HttpServletRequest request, HttpServletResponse response) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic String getActionURL(String oid, String view, String action) {\n\t\treturn null;\r\n\t}", "@Override\r\n\t\t\tprotected void respond(AjaxRequestTarget target) {\n\t\t\t\tchangePage.setDefaultModelObject(\"changed\");\r\n\t\t\t\ttarget.add(changePage);\r\n\t\t\t\t\r\n\t\t\t\t// voeg een stukje javascript toe aan het begin van de bestaande javascript\r\n\t\t\t\ttarget.prependJavaScript(\"window.location.href='\"+ urlFor(HomePage.class, null) +\"';\");\r\n\t\t\t\t\r\n\r\n\t\t\t}", "@Override\n\tpublic ActionForward doDefault(ActionMapping mapping, ActionForm form,\n\t\t\tHttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows Exception {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\n\t}", "@Override\n\tpublic void preProcessAction(GwtEvent e) {\n\t\t\n\t}", "@Override\n public String getAction() {\n return null;\n }", "public void setDefaultAction(final IAction defaultAction)\n\t{\n\t\tthis.defaultAction = defaultAction;\n\t}", "protected String buildBookmarkAction( IAction action, IReportContext context )\n \t{\n \t\tif ( action == null || context == null )\n \t\t\treturn null;\n \n \t\t// Get Base URL\n \t\tString baseURL = null;\n \t\tObject renderContext = getRenderContext( context );\n \t\tif ( renderContext instanceof HTMLRenderContext )\n \t\t{\n \t\t\tbaseURL = ( (HTMLRenderContext) renderContext ).getBaseURL( );\n \t\t}\n \t\tif ( renderContext instanceof PDFRenderContext )\n \t\t{\n \t\t\tbaseURL = ( (PDFRenderContext) renderContext ).getBaseURL( );\n \t\t}\n \n \t\tif ( baseURL == null )\n \t\t\treturn null;\n \n \t\t// Get bookmark\n \t\tString bookmark = action.getBookmark( );\n \n\t\tif ( baseURL.lastIndexOf( IBirtConstants.SERVLET_PATH_FRAMESET ) > 0 )\n \t\t{\n \t\t\t// In frameset mode, use javascript function to fire Ajax request to\n \t\t\t// link to internal bookmark\n\t\t\tString func = \"catchBookmark('\" + ParameterAccessor.htmlEncode( bookmark ) + \"');\"; //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\treturn \"javascript:try{\" + func + \"}catch(e){parent.\" + func + \"};\"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t\t}\n\t\telse if ( baseURL.lastIndexOf( IBirtConstants.SERVLET_PATH_RUN ) > 0 )\n\t\t{\n \t\t\t// In run mode, append bookmark at the end of URL\n\t\t\tString func = \"catchBookmark('\" + bookmark + \"');\"; //$NON-NLS-1$ //$NON-NLS-2$\n \t\t\treturn \"javascript:try{\" + func + \"}catch(e){parent.\" + func + \"};\"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n \t\t}\n \n \t\t// Save the URL String\n \t\tStringBuffer link = new StringBuffer( );\n \n \t\tboolean realBookmark = false;\n \n \t\tif ( this.document != null )\n \t\t{\n \t\t\tlong pageNumber = this.document\n \t\t\t\t\t.getPageNumber( action.getBookmark( ) );\n \t\t\trealBookmark = ( pageNumber == this.page && !isEmbeddable );\n \t\t}\n \n \t\ttry\n \t\t{\n \t\t\tbookmark = URLEncoder.encode( bookmark,\n \t\t\t\t\tParameterAccessor.UTF_8_ENCODE );\n \t\t}\n \t\tcatch ( UnsupportedEncodingException e )\n \t\t{\n \t\t\t// Does nothing\n \t\t}\n \n \t\tlink.append( baseURL );\n \t\tlink.append( ParameterAccessor.QUERY_CHAR );\n \n \t\t// if the document is not null, then use it\n \n \t\tif ( document != null )\n \t\t{\n \t\t\tlink.append( ParameterAccessor.PARAM_REPORT_DOCUMENT );\n \t\t\tlink.append( ParameterAccessor.EQUALS_OPERATOR );\n \t\t\tString documentName = document.getName( );\n \n \t\t\ttry\n \t\t\t{\n \t\t\t\tdocumentName = URLEncoder.encode( documentName,\n \t\t\t\t\t\tParameterAccessor.UTF_8_ENCODE );\n \t\t\t}\n \t\t\tcatch ( UnsupportedEncodingException e )\n \t\t\t{\n \t\t\t\t// Does nothing\n \t\t\t}\n \t\t\tlink.append( documentName );\n \t\t}\n \t\telse if ( action.getReportName( ) != null\n \t\t\t\t&& action.getReportName( ).length( ) > 0 )\n \t\t{\n \t\t\tlink.append( ParameterAccessor.PARAM_REPORT );\n \t\t\tlink.append( ParameterAccessor.EQUALS_OPERATOR );\n \t\t\tString reportName = getReportName( context, action );\n \t\t\ttry\n \t\t\t{\n \t\t\t\treportName = URLEncoder.encode( reportName,\n \t\t\t\t\t\tParameterAccessor.UTF_8_ENCODE );\n \t\t\t}\n \t\t\tcatch ( UnsupportedEncodingException e )\n \t\t\t{\n \t\t\t\t// do nothing\n \t\t\t}\n \t\t\tlink.append( reportName );\n \t\t}\n \t\telse\n \t\t{\n \t\t\t// its an iternal bookmark\n \t\t\treturn \"#\" + action.getActionString( ); //$NON-NLS-1$\n \t\t}\n \n \t\tif ( locale != null )\n \t\t{\n \t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\tParameterAccessor.PARAM_LOCALE, locale.toString( ) ) );\n \t\t}\n \n \t\tif ( isRtl )\n \t\t{\n \t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\tParameterAccessor.PARAM_RTL, String.valueOf( isRtl ) ) );\n \t\t}\n \n \t\tif ( svg != null )\n \t\t{\n \t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\tParameterAccessor.PARAM_SVG, String.valueOf( svg\n \t\t\t\t\t\t\t.booleanValue( ) ) ) );\n \t\t}\n \n \t\tif ( isDesigner != null )\n \t\t{\n \t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\tParameterAccessor.PARAM_DESIGNER, String\n \t\t\t\t\t\t\t.valueOf( isDesigner ) ) );\n \t\t}\n \n \t\t// add isMasterPageContent\n \t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\tParameterAccessor.PARAM_MASTERPAGE, String\n \t\t\t\t\t\t.valueOf( this.isMasterPageContent ) ) );\n \n \t\t// append resource folder setting\n \t\ttry\n \t\t{\n \t\t\tif ( resourceFolder != null )\n \t\t\t{\n \t\t\t\tString res = URLEncoder.encode( resourceFolder,\n \t\t\t\t\t\tParameterAccessor.UTF_8_ENCODE );\n \t\t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\t\tParameterAccessor.PARAM_RESOURCE_FOLDER, res ) );\n \t\t\t}\n \t\t}\n \t\tcatch ( UnsupportedEncodingException e )\n \t\t{\n \t\t}\n \n \t\tif ( realBookmark )\n \t\t{\n \t\t\tlink.append( \"#\" ); //$NON-NLS-1$\n \t\t\tlink.append( bookmark );\n \t\t}\n \t\telse\n \t\t{\n \t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\tParameterAccessor.PARAM_BOOKMARK, bookmark ) );\n \n \t\t\t// Bookmark is TOC name.\n \t\t\tif ( !action.isBookmark( ) )\n \t\t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\t\tParameterAccessor.PARAM_ISTOC, \"true\" ) ); //$NON-NLS-1$\n \t\t}\n \n \t\treturn link.toString( );\n \t}", "public void setDefaultAction(final ActionChanger<?> defaultAction) {\n if ((defaultAction != null) && (actions.indexOf(defaultAction) != -1)) {\n removeActionListener(this.defaultAction);\n this.defaultAction = defaultAction;\n addActionListener(this.defaultAction);\n final Object objIcon = defaultAction.getValue(Action.LARGE_ICON_KEY);\n if (objIcon instanceof ResizableIcon) {\n setIcon((ResizableIcon) objIcon);\n }\n setText((String) defaultAction.getValue(Action.NAME));\n setToolTipText((String) defaultAction.getValue(Action.SHORT_DESCRIPTION));\n }\n }", "@Override\n\t\tpublic StringBuffer getRequestURL() {\n\t\t\treturn null;\n\t\t}", "@Override\n\tpublic void beforeAction(String method, HttpServletRequest request, HttpServletResponse response) {\n\t\t// Default behavior : nothing to do \n\t}", "@Override\r\n public ActionURL getEditReportURL(ViewContext context)\r\n {\n return null;\r\n }", "@Override\r\n public String getUrl()\r\n {\n return null;\r\n }", "@Override\n\t\tpublic String getRequestURI() {\n\t\t\treturn null;\n\t\t}", "public CustomAuthenticationSuccessHandler(String defaultTargetUrl) {\r\n setDefaultTargetUrl(defaultTargetUrl);\r\n }", "@Override\n public void doInit() {\n action = (String) getRequestAttributes().get(\"action\");\n }", "@Override\r\n protected void doActionDelegate(int actionId)\r\n {\n \r\n }", "protected void onSubmitAction(IModel<StringWrapper> model, AjaxRequestTarget target, Form<?> form) {\n }", "public DefaultHref(String baseUrl)\r\n {\r\n this.parameters = new HashMap();\r\n setFullUrl(baseUrl);\r\n }", "protected String buildDrillAction( IAction action, IReportContext context )\n \t{\n \t\tif ( action == null || context == null )\n \t\t\treturn null;\n \n \t\tString baseURL = null;\n \t\tObject renderContext = getRenderContext( context );\n \t\tif ( renderContext instanceof HTMLRenderContext )\n \t\t{\n \t\t\tbaseURL = ( (HTMLRenderContext) renderContext ).getBaseURL( );\n \t\t}\n \t\tif ( renderContext instanceof PDFRenderContext )\n \t\t{\n \t\t\tbaseURL = ( (PDFRenderContext) renderContext ).getBaseURL( );\n \t\t}\n \n \t\tif ( baseURL == null )\n \t\t\tbaseURL = IBirtConstants.VIEWER_PREVIEW;\n \n \t\tStringBuffer link = new StringBuffer( );\n \t\tString reportName = getReportName( context, action );\n \n \t\tif ( reportName != null && !reportName.equals( \"\" ) ) //$NON-NLS-1$\n \t\t{\n \t\t\tlink.append( baseURL );\n \n \t\t\tlink\n \t\t\t\t\t.append( reportName.toLowerCase( )\n \t\t\t\t\t\t\t.endsWith( \".rptdocument\" ) ? \"?__document=\" : \"?__report=\" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n \n \t\t\ttry\n \t\t\t{\n \t\t\t\tlink.append( URLEncoder.encode( reportName,\n \t\t\t\t\t\tParameterAccessor.UTF_8_ENCODE ) );\n \t\t\t}\n \t\t\tcatch ( UnsupportedEncodingException e1 )\n \t\t\t{\n \t\t\t\t// It should not happen. Does nothing\n \t\t\t}\n \n \t\t\t// add format support\n \t\t\tString format = action.getFormat( );\n \t\t\tif ( format == null || format.length( ) == 0 )\n \t\t\t\tformat = hostFormat;\n \t\t\tif ( format != null && format.length( ) > 0 )\n \t\t\t{\n \t\t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\t\tParameterAccessor.PARAM_FORMAT, format ) );\n \t\t\t}\n \n \t\t\t// Adds the parameters\n \t\t\tif ( action.getParameterBindings( ) != null )\n \t\t\t{\n \t\t\t\tIterator paramsIte = action.getParameterBindings( ).entrySet( )\n \t\t\t\t\t\t.iterator( );\n \t\t\t\twhile ( paramsIte.hasNext( ) )\n \t\t\t\t{\n \t\t\t\t\tMap.Entry entry = (Map.Entry) paramsIte.next( );\n \t\t\t\t\ttry\n \t\t\t\t\t{\n \t\t\t\t\t\tString key = (String) entry.getKey( );\n \t\t\t\t\t\tObject valueObj = entry.getValue( );\n \t\t\t\t\t\tif ( valueObj != null )\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tObject[] values;\n \t\t\t\t\t\t\tif ( valueObj instanceof Object[] )\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\tvalues = (Object[]) valueObj;\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\tvalues = new Object[1];\n \t\t\t\t\t\t\t\tvalues[0] = valueObj;\n \t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\tfor ( int i = 0; i < values.length; i++ )\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\t// TODO: here need the get the format from the\n \t\t\t\t\t\t\t\t// parameter.\n \t\t\t\t\t\t\t\tString value = DataUtil\n \t\t\t\t\t\t\t\t\t\t.getDisplayValue( values[i] );\n \n \t\t\t\t\t\t\t\tif ( value != null )\n \t\t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\t\tlink\n \t\t\t\t\t\t\t\t\t\t\t.append( ParameterAccessor\n \t\t\t\t\t\t\t\t\t\t\t\t\t.getQueryParameterString(\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\tURLEncoder\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.encode(\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tkey,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tParameterAccessor.UTF_8_ENCODE ),\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\tURLEncoder\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.encode(\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tParameterAccessor.UTF_8_ENCODE ) ) );\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\telse\n \t\t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\t\t// pass NULL value\n \t\t\t\t\t\t\t\t\tlink\n \t\t\t\t\t\t\t\t\t\t\t.append( ParameterAccessor\n \t\t\t\t\t\t\t\t\t\t\t\t\t.getQueryParameterString(\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\tParameterAccessor.PARAM_ISNULL,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\tURLEncoder\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.encode(\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tkey,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tParameterAccessor.UTF_8_ENCODE ) ) );\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tcatch ( UnsupportedEncodingException e )\n \t\t\t\t\t{\n \t\t\t\t\t\t// Does nothing\n \t\t\t\t\t}\n \t\t\t\t}\n \n \t\t\t\t// Adding overwrite.\n \t\t\t\tif ( !reportName.toLowerCase( ).endsWith(\n \t\t\t\t\t\tParameterAccessor.SUFFIX_REPORT_DOCUMENT )\n \t\t\t\t\t\t&& baseURL\n \t\t\t\t\t\t\t\t.lastIndexOf( IBirtConstants.SERVLET_PATH_FRAMESET ) > 0 )\n \t\t\t\t{\n \t\t\t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\t\t\tParameterAccessor.PARAM_OVERWRITE, String\n \t\t\t\t\t\t\t\t\t.valueOf( true ) ) );\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tif ( locale != null )\n \t\t\t{\n \t\t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\t\tParameterAccessor.PARAM_LOCALE, locale.toString( ) ) );\n \t\t\t}\n \t\t\tif ( isRtl )\n \t\t\t{\n \t\t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\t\tParameterAccessor.PARAM_RTL, String.valueOf( isRtl ) ) );\n \t\t\t}\n \n \t\t\tif ( svg != null )\n \t\t\t{\n \t\t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\t\tParameterAccessor.PARAM_SVG, String.valueOf( svg\n \t\t\t\t\t\t\t\t.booleanValue( ) ) ) );\n \t\t\t}\n \n \t\t\tif ( isDesigner != null )\n \t\t\t{\n \t\t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\t\tParameterAccessor.PARAM_DESIGNER, String\n \t\t\t\t\t\t\t\t.valueOf( isDesigner ) ) );\n \t\t\t}\n \n \t\t\t// add isMasterPageContent\n \t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\tParameterAccessor.PARAM_MASTERPAGE, String\n \t\t\t\t\t\t\t.valueOf( this.isMasterPageContent ) ) );\n \n \t\t\t// append resource folder setting\n \t\t\ttry\n \t\t\t{\n \t\t\t\tif ( resourceFolder != null )\n \t\t\t\t{\n \t\t\t\t\tString res = URLEncoder.encode( resourceFolder,\n \t\t\t\t\t\t\tParameterAccessor.UTF_8_ENCODE );\n \t\t\t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\t\t\tParameterAccessor.PARAM_RESOURCE_FOLDER, res ) );\n \t\t\t\t}\n \t\t\t}\n \t\t\tcatch ( UnsupportedEncodingException e )\n \t\t\t{\n \t\t\t}\n \n \t\t\t// add bookmark\n \t\t\tString bookmark = action.getBookmark( );\n \t\t\tif ( bookmark != null )\n \t\t\t{\n \n \t\t\t\ttry\n \t\t\t\t{\n \t\t\t\t\t// In PREVIEW mode or pdf format, don't support bookmark as\n \t\t\t\t\t// parameter\n \t\t\t\t\tif ( baseURL\n \t\t\t\t\t\t\t.lastIndexOf( IBirtConstants.SERVLET_PATH_PREVIEW ) > 0\n \t\t\t\t\t\t\t|| IBirtConstants.PDF_RENDER_FORMAT\n \t\t\t\t\t\t\t\t\t.equalsIgnoreCase( format ) )\n \t\t\t\t\t{\n \t\t\t\t\t\tlink.append( \"#\" ); //$NON-NLS-1$\n \n \t\t\t\t\t\t// use TOC to find bookmark, only link to document file\n \t\t\t\t\t\tif ( !action.isBookmark( )\n \t\t\t\t\t\t\t\t&& reportName.toLowerCase( ).endsWith(\n \t\t\t\t\t\t\t\t\t\t\".rptdocument\" ) ) //$NON-NLS-1$\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tInputOptions options = new InputOptions( );\n \t\t\t\t\t\t\toptions.setOption( InputOptions.OPT_LOCALE, locale );\n \t\t\t\t\t\t\tbookmark = BirtReportServiceFactory\n \t\t\t\t\t\t\t\t\t.getReportService( ).findTocByName(\n \t\t\t\t\t\t\t\t\t\t\treportName, bookmark, options );\n \t\t\t\t\t\t}\n \n \t\t\t\t\t\tlink.append( URLEncoder.encode( bookmark,\n \t\t\t\t\t\t\t\tParameterAccessor.UTF_8_ENCODE ) );\n \t\t\t\t\t}\n \t\t\t\t\telse\n \t\t\t\t\t{\n \t\t\t\t\t\tbookmark = URLEncoder.encode( bookmark,\n \t\t\t\t\t\t\t\tParameterAccessor.UTF_8_ENCODE );\n \t\t\t\t\t\tlink.append( ParameterAccessor.getQueryParameterString(\n \t\t\t\t\t\t\t\tParameterAccessor.PARAM_BOOKMARK, bookmark ) );\n \n \t\t\t\t\t\t// Bookmark is TOC name.\n \t\t\t\t\t\tif ( !action.isBookmark( ) )\n \t\t\t\t\t\t\tlink.append( ParameterAccessor\n \t\t\t\t\t\t\t\t\t.getQueryParameterString(\n \t\t\t\t\t\t\t\t\t\t\tParameterAccessor.PARAM_ISTOC,\n \t\t\t\t\t\t\t\t\t\t\t\"true\" ) ); //$NON-NLS-1$\n \t\t\t\t\t}\n \n \t\t\t\t}\n \t\t\t\tcatch ( UnsupportedEncodingException e )\n \t\t\t\t{\n \t\t\t\t\t// Does nothing\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\treturn link.toString( );\n \t}", "@Override\r\n\tpublic String getUrl() {\n\t\treturn null;\r\n\t}", "@Override\n\t\t\t\tpublic void onClick(SimpleAjaxRequestTarget target) {\n\t\t\t\t}", "String getRequestedUrl();", "public void testBuildActionConfigForUnknownAction() throws MalformedURLException {\n URL url = new URL(\"file:/foo.jsp\");\n mockServletContext.expectAndReturn(\"getResource\", C.args(C.eq(\"/foo.jsp\")), url);\n ActionConfig actionConfig = handler.handleUnknownAction(\"/\", \"foo\");\n // we need a package\n assertEquals(\"codebehind-default\", actionConfig.getPackageName());\n // a non-empty interceptor stack\n assertTrue(actionConfig.getInterceptors().size() > 0);\n // ActionSupport as the implementation\n assertEquals(ActionSupport.class.getName(), actionConfig.getClassName());\n // with one result\n assertEquals(1, actionConfig.getResults().size());\n // named success\n assertNotNull(actionConfig.getResults().get(\"success\"));\n // of ServletDispatcherResult type\n assertEquals(ServletDispatcherResult.class.getName(), actionConfig.getResults().get(\"success\").getClassName());\n // and finally pointing to foo.jsp!\n assertEquals(\"/foo.jsp\", actionConfig.getResults().get(\"success\").getParams().get(\"location\"));\n }", "public String handleDefault() \n throws HttpPresentationException \n {\n\t return showEditPage(null);\n }", "protected abstract void onEvent(final AjaxRequestTarget target);", "public interface ActionRequest {\r\n\r\n public String getDestinationResource();\r\n\r\n public boolean isRedirect();\r\n\r\n public String getErrorMessage();\r\n\r\n public String getSuccessMessage();\r\n}", "public void doActionBefore(DefaultInstanceActionCmd actionModel) {\n }", "@RequestMapping\n\tprotected String defaultView(RenderRequest renderRequest) {\n\t\tString tipoReplicador;\n\t\ttipoReplicador = renderRequest.getPreferences().getValue(\"tipoReplicador\", \"\");\n\n\t\trenderRequest.setAttribute(\"tipoReplicador\", tipoReplicador);\n\t\t// JSonUtil.LogAuditoria(renderRequest, indicadorPortlet, indicadorController);\n\n\t\treturn \"edit\";\n\t}", "protected String overwriteSwaggerDefaultUrl(String html) {\n\t\treturn html.replace(Constants.SWAGGER_UI_DEFAULT_URL, StringUtils.EMPTY);\n\t}", "protected Action getInitialDrawActions(String everythingGroup, Visualization visualization, Dictionary parameters) {\n\t\treturn null;\r\n\t}", "@Override\n public String getUrlContextPath() {\n return \"\";\n }", "protected void onClientEvent(AjaxRequestTarget aTarget, UserAnnotationSegment aSegment)\n throws UIMAException, IOException, AnnotationException\n {\n if (isDocumentFinished(documentService, aSegment.getAnnotatorState())) {\n error(\"This document is already closed. Please ask the project manager to re-open it.\");\n aTarget.addChildren(getPage(), IFeedback.class);\n return;\n }\n\n IRequestParameters request = getRequest().getPostParameters();\n StringValue action = request.getParameterValue(PARAM_ACTION);\n\n if (!action.isEmpty()) {\n String type = removePrefix(request.getParameterValue(PARAM_TYPE).toString());\n AnnotationLayer layer = schemaService.getLayer(TypeUtil.getLayerId(type));\n VID sourceVid = VID.parse(request.getParameterValue(PARAM_ID).toString());\n\n CAS targetCas = readEditorCas(aSegment.getAnnotatorState());\n CAS sourceCas = readAnnotatorCas(aSegment);\n AnnotatorState sourceState = aSegment.getAnnotatorState();\n\n if (CHAIN_TYPE.equals(layer.getType())) {\n error(\"Coreference annotations are not supported in curation\");\n aTarget.addChildren(getPage(), IFeedback.class);\n return;\n }\n\n if (ACTION_CONTEXT_MENU.equals(action.toString())) {\n // No bulk actions supports for slots at the moment.\n if (sourceVid.isSlotSet()) {\n return;\n }\n\n List<IMenuItem> items = contextMenu.getItemList();\n items.clear();\n items.add(new LambdaMenuItem(String.format(\"Merge all %s\", layer.getUiName()),\n _target -> actionAcceptAll(_target, aSegment, layer)));\n\n contextMenu.onOpen(aTarget);\n return;\n }\n\n // check if clicked on a span\n CasMerge casMerge = new CasMerge(schemaService);\n if (ACTION_SELECT_SPAN_FOR_MERGE.equals(action.toString())) {\n mergeSpan(casMerge, targetCas, sourceCas, sourceVid, sourceState.getDocument(),\n sourceState.getUser().getUsername(), layer);\n }\n // check if clicked on an arc (relation or slot)\n else if (ACTION_SELECT_ARC_FOR_MERGE.equals(action.toString())) {\n // this is a slot arc\n if (sourceVid.isSlotSet()) {\n mergeSlot(casMerge, targetCas, sourceCas, sourceVid, sourceState.getDocument(),\n sourceState.getUser().getUsername(), layer);\n }\n // normal relation annotation arc is clicked\n else {\n mergeRelation(casMerge, targetCas, sourceCas, sourceVid,\n sourceState.getDocument(), sourceState.getUser().getUsername(), layer);\n }\n }\n\n writeEditorCas(sourceState, targetCas);\n\n // Update timestamp\n AnnotationFS sourceAnnotation = selectAnnotationByAddr(sourceCas, sourceVid.getId());\n int sentenceNumber = getSentenceNumber(sourceAnnotation.getCAS(),\n sourceAnnotation.getBegin());\n sourceState.getDocument().setSentenceAccessed(sentenceNumber);\n\n if (sourceState.getPreferences().isScrollPage()) {\n sourceState.getPagingStrategy().moveToOffset(sourceState, targetCas,\n sourceAnnotation.getBegin(), CENTERED);\n }\n\n onChange(aTarget);\n }\n }", "public SetStartPageAction() {\n this(TYPE_NONE, null); // Fake action -> The context aware is real one, drawback of the NB design?\n }", "@Override\r\n public URI getRequestUri() {\n return null;\r\n }", "@Override\n protected void onUpdate(AjaxRequestTarget target) {\n }", "@Override\n\tpublic String getAction() {\n\t\treturn action;\n\t}", "ActionMap createActionMap() {\n ActionMap am = super.createActionMap();\n if (am != null) {\n am.put(\"selectMenu\", new PostAction((JMenu)menuItem, true)); }\n return am; }", "public abstract Action getAction();", "private boolean isPageToolDefault(HttpServletRequest request)\n\t{\n\t\tif ( request.getPathInfo() != null && request.getPathInfo().startsWith(\"/helper/\") ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tString action = request.getParameter(RequestHelper.ACTION);\n\t\tif (action != null && action.length() > 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\tString pageName = request.getParameter(ViewBean.PAGE_NAME_PARAM);\n\t\tif (pageName == null || pageName.trim().length() == 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n\tpublic void postProcessAction(GwtEvent e) {\n\t\t\n\t}", "protected abstract void onSubmit(AjaxRequestTarget target, Form form);", "String getOnAction();", "@Override\r\n public SystemAction getDefaultAction() {\n return SystemAction.get(OpenAction.class);\r\n }", "private String getActionAddress() \n\t{\n\t\treturn pageContext.getRequest().getParameter(ACTION_ADDRESS_PARAMETER);\n\t}", "protected abstract PopupMenuHelper createActionMenuHelper();", "@Override\r\n\tprotected ActionListener refreshBtnAction() {\n\t\treturn null;\r\n\t}", "public DefaultActionConfigurer(ResourceLocator resourceLocator) {\t\t\r\n\t\tthis();\r\n\t\tthis.resourceLocator = resourceLocator;\r\n\t}", "public ContentCard defaultAction(ContentCardAction defaultAction) {\n this.defaultAction = defaultAction;\n return this;\n }", "protected void onCancelAction(IModel<StringWrapper> model, AjaxRequestTarget target, Form<?> form) {\n }", "@Override\r\n public void doAction(ActionEvent e)\r\n {\n NetworkUtil.openURL(NetworkUtil.WEBSITE_URL + \"support\");\r\n }", "public String calcelAction() {\n\t\tthis.setViewOrNewAction(false);\n\t\treturn null;\n\t}", "protected ActionListener createHelpActionListener() {\r\n return null;\r\n }", "public void setDefaultUrl(String url) {\n\t\tthis.defaultUrl = url;\n\t}", "@Override\n protected void hookUpActionListeners() {\n }", "@Override\r\n\tpublic void initActions() {\n\t\t\r\n\t}", "public void setAction(String action) { this.action = action; }", "public String getServletUrl() throws UnsupportedOperationException;", "@Override\n public void disableReloadAction() {\n // TODO implement\n Timber.d(\"Implement disabling reload action\");\n }", "@Override\n\tprotected String onInit(HttpServletRequest req, HttpServletResponse resp, FunctionItem fi,\n\t\t\tHashtable<String, String> params, String action, L l, S s) throws Exception {\n\t\treturn null;\n\t}", "@Override\n protected void onSubmit(final AjaxRequestTarget _target)\n {\n final DropDownOption option = (DropDownOption) getDefaultModelObject();\n try {\n if (option != null) {\n Context.getThreadContext().getParameters().put(\n getFieldConfig().getName() + \"_eFapsPrevious\",\n new String[] { option.getValue() });\n }\n } catch (final EFapsException e) {\n DropDownField.LOG.error(\"EFapsException\", e);\n }\n super.onSubmit(_target);\n DropDownField.this.converted = false;\n updateModel();\n DropDownField.this.converted = false;\n }", "public String handleDefault() \n throws HttpPresentationException \n {\n\t return showPage(null);\n }", "@Override\n\tpublic void setAction() {\n\t}", "public String handleDefault()\n throws HttpPresentationException\n {\n\t return showPage(null);\n }", "void onClick(AjaxRequestTarget target);", "@Override\r\n public void initAction() {\n \r\n }", "@Override\r\n\tpublic void novo(ActionEvent actionEvent) {\n\t\t\r\n\t}", "java.lang.String getClickURL();", "@Override\n\tpublic void onActionStart(int action) {\n\t\t\n\t}", "@Override \n public String getRequestURI() {\n if (requestURI != null) {\n return requestURI;\n }\n\n StringBuilder buffer = new StringBuilder();\n buffer.append(getRequestURIWithoutQuery());\n if (super.getQueryString() != null) {\n buffer.append(\"?\").append(super.getQueryString());\n }\n return requestURI = buffer.toString();\n }", "@Override\r\n\tprotected ActionListener updateBtnAction() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic URL getServiceUrl()\n\t{\n\t\treturn null;\n\t}", "public DeferredExecutionActionProxy(FormAction actionToProxy) {\n\t\tif (actionToProxy == null) {\n\t\t\tthrow new IllegalArgumentException(\"Undefined form action!\");\n\t\t}\n\t\tthis.action = actionToProxy;\n\t}", "public FunctionRequestAjax() {\r\n\t\tsuper();\r\n\t}", "@Override\r\n \tpublic ActionForward executeSecureAction(ActionMapping mapping, ActionForm form,\r\n \t\t\tHttpServletRequest request, HttpServletResponse response) throws IOException,\r\n \t\t\tServletException\r\n \t{\r\n \t\tsaveActionErrors(form, request);\r\n \t\t// //Gets the value of the operation parameter.\r\n \t\t// String operation = request.getParameter(Constants.OPERATION);\r\n \t\t//\r\n \t\t// //Sets the operation attribute to be used in the Add/Edit Institute\r\n \t\t// Page.\r\n \t\t// request.setAttribute(Constants.OPERATION, operation);\r\n \t\ttry\r\n \t\t{\r\n \t\t\tfinal IFactory factory = AbstractFactoryConfig.getInstance().getBizLogicFactory();\r\n \t\t\tfinal IBizLogic bizLogic = factory.getBizLogic(Constants.DEFAULT_BIZ_LOGIC);\r\n \r\n \t\t\t// ************* ForwardTo implementation *************\r\n \t\t\t// forwarded from Specimen page\r\n \t\t\tfinal HashMap forwardToHashMap = (HashMap) request.getAttribute(\"forwardToHashMap\");\r\n \t\t\tString specimenId = null;\r\n \t\t\tString specimenLabel = null;\r\n \t\t\tString specimenClass = null;\r\n \t\t\t// -------------Mandar 04-July-06 QuickEvents start\r\n \t\t\tString fromQuickEvent = (String) request.getAttribute(\"isQuickEvent\");\r\n \t\t\tif (fromQuickEvent == null)\r\n \t\t\t{\r\n \t\t\t\tfromQuickEvent = request.getParameter(\"isQuickEvent\");\r\n \t\t\t}\r\n \t\t\tString eventSelected = \"\";\r\n \t\t\tif (fromQuickEvent != null)\r\n \t\t\t{\r\n \t\t\t\tspecimenId = (String) request.getAttribute(Constants.SPECIMEN_ID);\r\n \t\t\t\teventSelected = (String) request.getAttribute(Constants.EVENT_SELECTED);\r\n \t\t\t\tif (eventSelected == null && forwardToHashMap != null)\r\n \t\t\t\t{\r\n \t\t\t\t\tspecimenClass = (String) forwardToHashMap.get(\"specimenClass\");\r\n \t\t\t\t\tspecimenId = (String) forwardToHashMap.get(\"specimenId\");\r\n \t\t\t\t\tif (specimenClass.equalsIgnoreCase(\"Tissue\"))\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\teventSelected = Constants.EVENT_PARAMETERS[14];\r\n \t\t\t\t\t}\r\n \t\t\t\t\telse if (specimenClass.equalsIgnoreCase(\"Molecular\"))\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\teventSelected = Constants.EVENT_PARAMETERS[9];\r\n \t\t\t\t\t}\r\n \t\t\t\t\telse if (specimenClass.equalsIgnoreCase(\"Cell\"))\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\teventSelected = Constants.EVENT_PARAMETERS[1];\r\n \t\t\t\t\t}\r\n \t\t\t\t\telse if (specimenClass.equalsIgnoreCase(\"Fluid\"))\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\teventSelected = Constants.EVENT_PARAMETERS[7];\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t}\r\n \t\t\t\trequest.setAttribute(Constants.EVENT_SELECTED, eventSelected);\r\n \t\t\t\t// System.out.println(\"::::::::::::::\\n\\n\\n\\n\"+form.getClass().\r\n \t\t\t\t// getName() );\r\n \t\t\t\tListSpecimenEventParametersForm eventForm = (ListSpecimenEventParametersForm) form;\r\n \t\t\t\tif (eventForm == null)\r\n \t\t\t\t{\r\n \t\t\t\t\teventForm = new ListSpecimenEventParametersForm();\r\n \t\t\t\t}\r\n \t\t\t\teventForm.setSpecimenEventParameter(eventSelected);\r\n \t\t\t\teventForm.setSpecimenId(specimenId.trim());\r\n \r\n \t\t\t}\r\n \t\t\t// -------------Mandar 04-July-06 QuickEvents end\r\n \t\t\tif (forwardToHashMap != null)\r\n \t\t\t{\r\n \t\t\t\t// Fetching SpecimenId from HashMap generated by\r\n \t\t\t\t// ForwardToProcessor\r\n \t\t\t\tspecimenId = (String) forwardToHashMap.get(\"specimenId\");\r\n \t\t\t\tspecimenLabel = (String) forwardToHashMap.get(Constants.SPECIMEN_LABEL);\r\n \t\t\t\tLogger.out.debug(\"SpecimenID found in \" + \"forwardToHashMap========>>>>>>\"\r\n \t\t\t\t\t\t+ specimenId);\r\n \t\t\t}\r\n \t\t\t// ************* ForwardTo implementation *************\r\n \r\n \t\t\t// If new SpecimenEvent is added, specimenId in forwardToHashMap\r\n \t\t\t// will be null, following code handles that case\r\n \t\t\tif (specimenId == null)\r\n \t\t\t{\r\n \t\t\t\tfinal String eventId = request.getParameter(\"eventId\");\r\n \r\n \t\t\t\t// Added by Vijay Pande. While cliking on events tab both\r\n \t\t\t\t// specimenId and eventId are getting null. Since there was no\r\n \t\t\t\t// check on eventId it was throwing error for following retrieve\r\n \t\t\t\t// call.\r\n \t\t\t\t// Null check is added for eventId. Fix for bug Id: 4731\r\n \t\t\t\tif (eventId != null)\r\n \t\t\t\t{\r\n \t\t\t\t\tLogger.out.debug(\"Event ID added===>\" + eventId);\r\n \t\t\t\t\t// Retrieving list of SpecimenEvents for added\r\n \t\t\t\t\t// SpecimenEventId\r\n \t\t\t\t\tfinal Object object = bizLogic.retrieve(\r\n \t\t\t\t\t\t\tSpecimenEventParameters.class.getName(), new Long(eventId));\r\n \r\n \t\t\t\t\tif (object != null)\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\t// Getting object of specimenEventParameters from the\r\n \t\t\t\t\t\t// list of SepcimenEvents\r\n \t\t\t\t\t\tfinal SpecimenEventParameters specimenEventParameters = (SpecimenEventParameters) object;\r\n \r\n \t\t\t\t\t\t// getting SpecimenId of SpecimenEventParameters\r\n \t\t\t\t\t\tfinal AbstractSpecimen specimen = specimenEventParameters.getSpecimen();\r\n \t\t\t\t\t\tspecimenId = specimen.getId().toString();\r\n \t\t\t\t\t\t// specimenLabel = specimen.getLabel();\r\n \t\t\t\t\t\tLogger.out.debug(\"Specimen of Event Added====>\"\r\n \t\t\t\t\t\t\t\t+ (specimenEventParameters.getSpecimen()).getId());\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \r\n \t\t\tif (specimenId == null)\r\n \t\t\t{\r\n \t\t\t\tspecimenId = request.getParameter(Constants.SPECIMEN_ID);\r\n \t\t\t\tspecimenLabel = request.getParameter(Constants.SPECIMEN_LABEL);\r\n \t\t\t}\r\n \t\t\tif (specimenId == null)\r\n \t\t\t{\r\n \t\t\t\tspecimenId = (String) request.getAttribute(Constants.SPECIMEN_ID);\r\n \t\t\t}\r\n \r\n \t\t\trequest.setAttribute(Constants.SPECIMEN_ID, specimenId);\r\n \r\n \t\t\tfinal Object object = bizLogic.retrieve(Specimen.class.getName(), new Long(specimenId));\r\n \r\n \t\t\tif (object != null)\r\n \t\t\t{\r\n \t\t\t\tfinal Specimen specimen = (Specimen) object;\r\n \t\t\t\tif (specimenLabel == null)\r\n \t\t\t\t{\r\n \t\t\t\t\tspecimenLabel = specimen.getLabel();\r\n \t\t\t\t}\r\n \t\t\t\t// Setting Specimen Event Parameters' Grid\r\n \r\n \t\t\t\t// Ashish - 4/6/07 --- Since lazy=true, retriving the events\r\n \t\t\t\t// collection.\r\n \t\t\t\tfinal Collection<SpecimenEventParameters> specimenEventCollection = this\r\n \t\t\t\t\t\t.getSpecimenEventParametersColl(specimenId, bizLogic);\r\n \t\t\t\tfinal Collection<ActionApplication> dynamicEventCollection = this\r\n \t\t\t\t\t\t.getDynamicEventColl(specimenId, bizLogic);\r\n \t\t\t\t/**\r\n \t\t\t\t * Name: Chetan Patil Reviewer: Sachin Lale Bug ID: Bug#4180\r\n \t\t\t\t * Patch ID: Bug#4180_1 Description: The values of event\r\n \t\t\t\t * parameter is stored in a Map and in turn the Map is stored in\r\n \t\t\t\t * a List. This is then sorted chronologically, using a date\r\n \t\t\t\t * value form the Map. After sorting the List of Map is\r\n \t\t\t\t * converted into the List of List, which is used on the UI for\r\n \t\t\t\t * displaying values form List on the grid.\r\n \t\t\t\t */\r\n \t\t\t\tif (dynamicEventCollection != null)\r\n \t\t\t\t{\r\n \t\t\t\t\tfinal List<Map<String, Object>> gridData = new ArrayList<Map<String, Object>>();\r\n \r\n \t\t\t\t\tfor (final ActionApplication actionApp : dynamicEventCollection)\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tfinal Map<String, Object> rowDataMap = new HashMap<String, Object>();\r\n \t\t\t\t\t\tif (actionApp != null)\r\n \t\t\t\t\t\t{\r\n \t\t\t\t\t\t\t//final String[] events = EventsUtil\r\n \t\t\t\t\t\t\t//\t\t.getEvent(eventParameters);\r\n \t\t\t\t\t\t\tlong contId = actionApp.getApplicationRecordEntry().getFormContext()\r\n \t\t\t\t\t\t\t\t\t.getContainerId();\r\n \t\t\t\t\t\t\tList contList = AppUtility\r\n \t\t\t\t\t\t\t\t\t.executeSQLQuery(\"select caption from dyextn_container where identifier=\"\r\n \t\t\t\t\t\t\t\t\t\t\t+ contId);\r\n \t\t\t\t\t\t\tString container = (String) ((List) contList.get(0)).get(0);\r\n \t\t\t\t\t\t\t//final Object container =bizLogic.retrieve(Container.class.getName(),new Long(contId));\r\n \t\t\t\t\t\t\trowDataMap.put(Constants.ID, String.valueOf(actionApp.getId()));\r\n \t\t\t\t\t\t\trowDataMap.put(Constants.EVENT_NAME,\r\n \t\t\t\t\t\t\t\t\tedu.wustl.cab2b.common.util.Utility\r\n \t\t\t\t\t\t\t\t\t\t\t.getFormattedString(container));\r\n \r\n \t\t\t\t\t\t\t// Ashish - 4/6/07 - retrieving User\r\n \t\t\t\t\t\t\t// User user = eventParameters.getUser();\r\n \t\t\t\t\t\t\tfinal User user = this.getUser(actionApp.getId(), bizLogic);\r\n \r\n \t\t\t\t\t\t\trowDataMap.put(Constants.USER_NAME, user.getLastName() + \"&#44; \"\r\n \t\t\t\t\t\t\t\t\t+ user.getFirstName());\r\n \r\n \t\t\t\t\t\t\t// rowDataMap.put(Constants.EVENT_DATE,\r\n \t\t\t\t\t\t\t// Utility.parseDateToString\r\n \t\t\t\t\t\t\t// (eventParameters.getTimestamp(),\r\n \t\t\t\t\t\t\t// Constants.TIMESTAMP_PATTERN)); // Sri: Changed\r\n \t\t\t\t\t\t\t// format for bug #463\r\n \t\t\t\t\t\t\trowDataMap.put(Constants.EVENT_DATE, actionApp.getTimestamp());\r\n \t\t\t\t\t\t\trowDataMap.put(Constants.PAGE_OF, \"pageOfDynamicEvent\");// pageOf\r\n \t\t\t\t\t\t\trowDataMap.put(Constants.SPECIMEN_ID, request\r\n \t\t\t\t\t\t\t\t\t.getAttribute(Constants.SPECIMEN_ID));// pageOf\r\n \t\t\t\t\t\t\tgridData.add(rowDataMap);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t\tfinal List<List<String>> gridDataList = this.getSortedGridDataList(gridData);\r\n \t\t\t\t\tfinal String[] columnList1 = Constants.EVENT_PARAMETERS_COLUMNS;\r\n \t\t\t\t\tfinal List<String> columnList = new ArrayList<String>();\r\n \t\t\t\t\tfor (final String element : columnList1)\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tcolumnList.add(element);\r\n \t\t\t\t\t}\r\n \t\t\t\t\tAppUtility.setGridData(gridDataList, columnList, request);\r\n \t\t\t\t\trequest.setAttribute(\r\n \t\t\t\t\t\t\tedu.wustl.simplequery.global.Constants.SPREADSHEET_DATA_LIST,\r\n \t\t\t\t\t\t\tgridDataList);\r\n \t\t\t\t\tfinal Integer identifierFieldIndex = new Integer(0);\r\n \t\t\t\t\trequest.setAttribute(\"identifierFieldIndex\", identifierFieldIndex.intValue());\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tif (request.getAttribute(Constants.SPECIMEN_LABEL) == null)\r\n \t\t\t{\r\n \t\t\t\trequest.setAttribute(Constants.SPECIMEN_LABEL, specimenLabel);\r\n \t\t\t}\r\n \t\t\trequest.setAttribute(Constants.EVENT_PARAMETERS_LIST, new SOPBizLogic()\r\n \t\t\t\t\t.getAllSOPEventFormNames(dynamicEventMap));\r\n \t\t\trequest.getSession().setAttribute(\"dynamicEventMap\", dynamicEventMap);\r\n \r\n \t\t}\r\n \t\tcatch (final Exception e)\r\n \t\t{\r\n \t\t\tthis.logger.error(e.getMessage(), e);\r\n \t\t}\r\n \t\trequest.setAttribute(Constants.MENU_SELECTED, new String(\"15\"));\r\n \t\tString pageOf = (String) request.getParameter(Constants.PAGE_OF);\r\n \t\tif (pageOf == null)\r\n \t\t\tpageOf = (String) request.getAttribute(Constants.PAGE_OF);\r\n \t\trequest.setAttribute(Constants.PAGE_OF, pageOf);\r\n \r\n \t\tif (pageOf.equals(Constants.PAGE_OF_LIST_SPECIMEN_EVENT_PARAMETERS_CP_QUERY))\r\n \t\t{\r\n \t\t\trequest.getSession().setAttribute(\"CPQuery\", \"CPQuery\");\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tif (request.getSession().getAttribute(\"CPQuery\") != null)\r\n \t\t\t{\r\n \t\t\t\trequest.getSession().removeAttribute(\"CPQuery\");\r\n \t\t\t}\r\n \t\t}\r\n \t\tLong specimenRecEntryEntityId = null;\r\n \t\ttry\r\n \t\t{\r\n \t\t\tif (CatissueCoreCacheManager.getInstance().getObjectFromCache(\r\n \t\t\t\t\tAnnotationConstants.SPECIMEN_REC_ENTRY_ENTITY_ID) != null)\r\n \t\t\t{\r\n \t\t\t\tspecimenRecEntryEntityId = (Long) CatissueCoreCacheManager.getInstance()\r\n \t\t\t\t\t\t.getObjectFromCache(AnnotationConstants.SPECIMEN_REC_ENTRY_ENTITY_ID);\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\tspecimenRecEntryEntityId = AnnotationUtil\r\n \t\t\t\t\t\t.getEntityId(AnnotationConstants.ENTITY_NAME_SPECIMEN_REC_ENTRY);\r\n \t\t\t\tCatissueCoreCacheManager.getInstance().addObjectToCache(\r\n \t\t\t\t\t\tAnnotationConstants.SPECIMEN_REC_ENTRY_ENTITY_ID, specimenRecEntryEntityId);\r\n \t\t\t}\r\n \r\n \t\t}\r\n \t\tcatch (final Exception e)\r\n \t\t{\r\n \t\t\tthis.logger.error(e.getMessage(), e);\r\n \t\t}\r\n \t\t// request.setAttribute(\"specimenEntityId\", specimenEntityId);\r\n \t\trequest.setAttribute(AnnotationConstants.SPECIMEN_REC_ENTRY_ENTITY_ID,\r\n \t\t\t\tspecimenRecEntryEntityId);\r\n \t\treturn mapping.findForward(request.getParameter(Constants.PAGE_OF));\r\n \t}", "@DISPID(203)\r\n public boolean defaultVerbInvoked() {\r\n throw new UnsupportedOperationException();\r\n }", "@Override\n\tpublic void afterAction(String method, HttpServletRequest request, HttpServletResponse response) {\n\t}", "@Override\n public String getActions() {\n\treturn \"\";\n }", "public void executeDefaultTarget() {\n if ( _default_btn != null ) {\n executeTarget( _default_btn.getActionCommand() );\n }\n }", "@Override\r\n\tprotected ActionListener insertBtnAction() {\n\t\treturn null;\r\n\t}", "public String getRequestURIWithoutQuery() {\n if (requestURIWithoutQuery != null) {\n return requestURIWithoutQuery;\n }\n requestURIWithoutQuery = super.getRequestURI();\n if (requestURIWithoutQuery == null) {\n requestURIWithoutQuery = \"\";\n }\n return requestURIWithoutQuery;\n }", "@Override\n\tpublic RequestDispatcher getRequestDispatcher(String arg0) {\n\t\treturn null;\n\t}", "@Override\n protected Action preSelectAction(State state, Set<Action> actions){\n // adding available actions into the HTML report:\n htmlReport.addActions(actions);\n return(super.preSelectAction(state, actions));\n }", "public void _default(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\n\t}", "interface ActionDelegate {\n\n void onRouteUrlsChanged();\n\n void onResetRouteUrls();\n\n void onSaveRouteUrls();\n }", "public abstract boolean isRenderRedirectAfterDispatch();", "@RequestMapping(value = \"/newlogin\")\r\n\tpublic String dispatchTodefaultEntryPoint() {\r\n\t\tlogger.entry();\r\n\r\n\t\tsaveUserLoginInformation();\r\n\r\n\t\t// String defaultHome = \"redirect:/home\";\r\n\r\n\t\t// if (Utils.isUserInRole(getInternalUserRoles())) {\r\n\t\t//\r\n\t\t// } else {\r\n\t\t// throw new AccessDeniedException(\"User Role not found\");\r\n\t\t// }\r\n\r\n\t\tString homePage = \"forward:/\" + getHomePageByRole();\r\n\r\n\t\tlogger.exit();\r\n\r\n\t\treturn homePage;\r\n\t}", "ActionMap getActionMap() {\n String mapName = getPropertyPrefix() + \".actionMap\";\n ActionMap map = (ActionMap)UIManager.get(mapName);\n\n if (map == null) {\n map = createActionMap();\n if (map != null) {\n UIManager.getLookAndFeelDefaults().put(mapName, map);\n }\n }\n ActionMap componentMap = new ActionMapUIResource();\n componentMap.put(\"requestFocus\", new FocusAction());\n /*\n * fix for bug 4515750\n * JTextField & non-editable JTextArea bind return key - default btn not accessible\n *\n * Wrap the return action so that it is only enabled when the\n * component is editable. This allows the default button to be\n * processed when the text component has focus and isn't editable.\n *\n */\n if (getEditorKit(editor) instanceof DefaultEditorKit) {\n if (map != null) {\n Object obj = map.get(DefaultEditorKit.insertBreakAction);\n if (obj instanceof DefaultEditorKit.InsertBreakAction breakAction) {\n Action action = new TextActionWrapper(breakAction);\n componentMap.put(action.getValue(Action.NAME),action);\n }\n }\n }\n if (map != null) {\n componentMap.setParent(map);\n }\n return componentMap;\n }", "public abstract String getDefaultFilter ();", "public void setAction(String action);", "@Override\n\tpublic String getURL() {\n\t\treturn null;\n\t}", "@Override\n\tprotected String doIntercept(ActionInvocation arg0) throws Exception {\n\t\treturn null;\n\t}", "@Override\r\n public UriBuilder getRequestUriBuilder() {\n return null;\r\n }", "@Override\r\n public void doAction(ActionEvent e)\r\n {\n NetworkUtil.openURL(NetworkUtil.WEBSITE_URL);\r\n }", "void setMainAction(LinkActionGUI linkActionGUI);", "@Override\n public String encodeRedirectUrl(String arg0) {\n return null;\n }", "private String doGoBack( HttpServletRequest request )\r\n {\r\n String strJspBack = request.getParameter( StockConstants.MARK_JSP_BACK );\r\n\r\n return StringUtils.isNotBlank( strJspBack ) ? ( AppPathService.getBaseUrl( request ) + strJspBack )\r\n : ( AppPathService.getBaseUrl( request ) + JSP_MANAGE_CATEGORYS );\r\n }", "private void init()\n\t{\n\t\tuser = (DccdUser) ((DccdSession) getSession()).getUser();\n\t\t\n\t\t//add(new ResourceLink(\"downloadSearchResults\", getWebResource()));\n\t\t// TEST add link to a test page\n\t\tadd(new Link(\"downloadSearchResults\")\n\t\t{\n\t\t\tprivate static final long\tserialVersionUID\t= 1L;\n\n\t\t\tpublic void onClick()\n\t\t\t{\n\t\t\t\t//setResponsePage(new SearchResultDownloadPage());\n\t\t\t\t// support back navigation\n\t\t\t\t((DccdSession)Session.get()).setRedirectPage(SearchResultDownloadPage.class, getPage());\n\t\t\t\tsetResponsePage(new SearchResultDownloadPage((SearchModel) SearchResultsDownloadPanel.this.getDefaultModel(), \n\t\t\t\t\t\t(DccdSearchResultPanel) callingPanel));\n\t\t\t}\n\t\t});\n\t\t\n//\t\tadd(new AjaxIndicatingResourceLink(\"downloadSearchResults\", getWebResource()));\n\t\t\n//\t\t// TEST\n//\t\tfinal AjaxDownload download = new AjaxDownload()\n//\t\t{\n//\t\t\t@Override\n//\t\t\tprotected IResourceStream getResourceStream()\n//\t\t\t{\n//\t\t\t\t// return getWebResource().getResourceStream();\n//\t\t\t\treturn resourceStream;\n//\t\t\t}\n//\n//\t\t\t\t@Override\n//\t\t\t\tprotected String getFileName()\n//\t\t\t\t{\n//\t\t\t\t\treturn \"results.xml\";\n//\t\t\t\t}\n//\t\t};\n//\t\tadd(download);\n//\t\tIndicatingAjaxLink exportLink = new IndicatingAjaxLink(\"downloadSearchResults\")\n//\t\t{\n//\t\t\tprivate static final long\tserialVersionUID\t= 1L;\n//\n//\t\t\t@Override\n//\t\t\tpublic void onClick(AjaxRequestTarget target)\n//\t\t\t{\n//\t\t\t\t// DO the work here!\n//\t\t\t\tresourceStream = getResourceStreamForXML();// getWebResource();\n//\n//\t\t\t\tdownload.initiate(target);\n//\t\t\t}\n//\t\t};\n//\t\tadd(exportLink);\n\t}", "R perform(C context, Config config, HttpActionAdapter<R, C> httpActionAdapter, String defaultUrl,\n String logoutUrlPattern, Boolean localLogout, Boolean destroySession, Boolean centralLogout);" ]
[ "0.6022535", "0.5676094", "0.536332", "0.53562057", "0.5343334", "0.531749", "0.52655494", "0.5222715", "0.5204901", "0.5195421", "0.51894915", "0.51859665", "0.5183291", "0.51805794", "0.5166474", "0.5115205", "0.5014547", "0.50059325", "0.4998377", "0.49800995", "0.4965801", "0.49607688", "0.49533638", "0.49143973", "0.49117354", "0.4883905", "0.48673904", "0.486133", "0.48503968", "0.48327434", "0.477343", "0.47681707", "0.47615287", "0.4758161", "0.47444", "0.47385612", "0.47314152", "0.47253823", "0.47238195", "0.4712491", "0.4709107", "0.47077113", "0.4695629", "0.4691384", "0.46901518", "0.4677655", "0.46759698", "0.46733359", "0.46533003", "0.46498677", "0.4647361", "0.46448746", "0.46441534", "0.46390325", "0.4637599", "0.46305537", "0.46284416", "0.4627429", "0.46176502", "0.4617576", "0.46159467", "0.46154192", "0.46110767", "0.46070316", "0.45957652", "0.45943856", "0.45740783", "0.45600674", "0.45490015", "0.45421004", "0.45356792", "0.45346993", "0.45190242", "0.45148003", "0.45107436", "0.45077953", "0.450295", "0.4501101", "0.44997287", "0.4498445", "0.44948977", "0.4494689", "0.4479904", "0.4478753", "0.44730538", "0.44667128", "0.44610852", "0.44603857", "0.4446623", "0.44355625", "0.44293487", "0.4425682", "0.44249296", "0.4421621", "0.44179413", "0.44175535", "0.44051948", "0.44035155", "0.44013143", "0.44009048" ]
0.6537369
0
Created by root on 14.11.15.
public interface Cheese { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "private void init() {\n\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private void kk12() {\n\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 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 init() {\n\n\n\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "private void poetries() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void tires() {\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\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\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\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@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 init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "static void feladat9() {\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo6081a() {\n }", "public void mo38117a() {\n }", "static void feladat4() {\n\t}", "@Override\n void init() {\n }", "static void feladat7() {\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {}", "private void init() {\n }", "public void init() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initialize() {\n\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 }", "public void mo4359a() {\n }", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void anular() {\n\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 }", "public static void main(String[]args) {\n\t\n\t\t\n\n}", "protected boolean func_70814_o() { return true; }", "static void feladat6() {\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "static void init() {}", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "static void feladat5() {\n\t}", "private void m50366E() {\n }", "public void init() {\r\n\r\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "protected void mo6255a() {\n }", "public void baocun() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}" ]
[ "0.5813549", "0.5771357", "0.56741685", "0.56193954", "0.5592839", "0.5569172", "0.55214274", "0.5487586", "0.5487586", "0.5487586", "0.5487586", "0.5487586", "0.54694164", "0.546394", "0.5430175", "0.5426063", "0.54243046", "0.5407549", "0.53954136", "0.5392152", "0.5392152", "0.53862816", "0.53862816", "0.53858244", "0.5380394", "0.53670573", "0.5362739", "0.53418183", "0.53418183", "0.53418183", "0.5330149", "0.53244764", "0.53227514", "0.5318425", "0.5318425", "0.5317663", "0.5317663", "0.5317663", "0.5315727", "0.5315727", "0.5315727", "0.53143203", "0.53036106", "0.5301046", "0.52962595", "0.5295591", "0.5294993", "0.52920836", "0.5288092", "0.52878386", "0.5286456", "0.52760446", "0.5273587", "0.5273546", "0.52722824", "0.52691907", "0.52691907", "0.52665997", "0.5264469", "0.52611876", "0.52605164", "0.5255075", "0.52487266", "0.5247424", "0.5247424", "0.5247424", "0.5247424", "0.5247424", "0.5247424", "0.5240478", "0.5237839", "0.5229668", "0.522012", "0.52184165", "0.5213984", "0.52132887", "0.52132887", "0.52132887", "0.52132887", "0.52132887", "0.52132887", "0.52132887", "0.52103806", "0.52062315", "0.52026385", "0.5199193", "0.51979107", "0.5191934", "0.51912266", "0.51811135", "0.5166981", "0.51625013", "0.51608247", "0.51608247", "0.5160631", "0.5158675", "0.51516473", "0.5148938", "0.5148938", "0.5142493", "0.5142493" ]
0.0
-1
store a mock file to the content store, before fetching it
@Test public void verifyFetchCustom() throws Exception { fileResourceContentStore.saveFileResourceContent( FileResourceUtils.build( StaticContentController.LOGO_BANNER, mockMultipartFile, FileResourceDomain.DOCUMENT ), "image".getBytes() ); systemSettingManager.saveSystemSetting( SettingKey.USE_CUSTOM_LOGO_BANNER, Boolean.TRUE ); mvc.perform( get( URL + StaticContentController.LOGO_BANNER ).session( session ) ) .andExpect( content().contentType( MIME_PNG ) ).andExpect( content().bytes( mockMultipartFile.getBytes() ) ) .andExpect( status().is( HttpStatus.SC_OK ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testFetch_GiveCacheFileContent() throws FileNotFoundException {\n\n\t\tFIFOFileCache fifoFileCache = FIFOFileCache.getInstance();\n\t\tfifoFileCache.fetch(\"a.txt\");\n\t\tfifoFileCache.fetch(\"b.txt\");\n\t\tfifoFileCache.fetch(\"c.txt\");\n\t\tfifoFileCache.fetch(\"d.txt\");\n\t\tString expected = \"This is File b.txt content.\";\n\t\tString actual = fifoFileCache.fetch(\"b.txt\");\n\t\tassertThat(actual, is(expected));\n\t}", "@Test\n public void testTemporaryFileIgnored() throws Exception {\n addPeers(Collections.singletonList(\"peer3\"));\n\n // Get artifact from the peer, it will be cached\n File artifactPath = cache.getArtifact(artifactId.toEntityId(), \"peer3\", remoteClient);\n\n // Create a temporary file in the same directory\n try {\n Files.createFile(artifactPath.getParentFile().toPath().resolve(\"16734042670004650467150673059434.tmp\"));\n } catch (FileAlreadyExistsException e) {\n // no-op\n }\n\n // Get the artifact again. It should be fetched from the cache and the temporary file should be ignored.\n File newPath = cache.getArtifact(artifactId.toEntityId(), \"peer3\", remoteClient);\n Assert.assertEquals(artifactPath, newPath);\n }", "public static File mock() {\n\n\t\treturn mock(true);\n\t}", "abstract public void store( String content, String path )\r\n throws Exception;", "public void storeTestContent(String url) throws Exception {\n log.debug3(\"storeTestContent() url: \" + url);\n InputStream input = null;\n CIProperties props = null;\n // issue table of content\n if (url.endsWith(\"8601\") && url.contains(\"download\")) { \n // pdf\n input = new StringInputStream(\"\");\n props = getPdfProperties();\n } else if (url.endsWith(\"8110\")) {\n // abs - for metadata/\n input = new StringInputStream(abstractMetadata);\n props = getHtmlProperties();\n } else {\n \t// default blank html\n input = new StringInputStream(\"<html></html>\");\n props = getHtmlProperties();\n }\n UrlData ud = new UrlData(input, props, url);\n UrlCacher uc = au.makeUrlCacher(ud);\n uc.storeContent();\n }", "public void testContent() {\n TestWARCBatchJob job = new TestWARCBatchJob();\n job.processFile(WARC_FILE, new ByteArrayOutputStream());\n assertEquals(\"Should get the expected record last\",\n LAST_URL, lastSeenURL);\n }", "@Test\n public void testSaveStoredData() throws Exception {\n System.out.println(\"saveStoredData\");\n instance.saveStoredData();\n File f = new File(Store.class.getClassLoader().getResource(\"store.data\").getPath());\n assertTrue(f.isFile());\n }", "public void testGetCachedFileObject() throws IOException {\n FileObject fobj = getFileObject(testFile);\n FileObject parent = fobj.getParent();\n parent = parent.createFolder(\"parent\");\n FileObject child = parent.createData(\"child\");\n monitor.reset();\n FileObject ch = parent.getFileObject(\"child\");\n monitor.getResults().assertResult(0, StatFiles.ALL);\n //second time\n monitor.reset();\n ch = parent.getFileObject(\"child\");\n monitor.getResults().assertResult(0, StatFiles.ALL);\n }", "@Test\n public void testCanGrabMarkdownFromFileSystem() throws Exception {\n String id = this.getClass().getClassLoader().getResource(\"carTaxService\").getFile();\n when(cache.get(id)).thenReturn(null);\n when(FSRepositoryInformationExtractor.get(any(RepositoryUri.class))).thenReturn(StandardTestObjects.getStandardService());\n String html = underTest.generateContent(id);\n assertThat(html).isNotNull();\n assertThat(html).isNotEmpty();\n }", "private static void writeFileOnClient(FileStore.Client client) throws SystemException, TException, IOException {\n String fileName = \"sample.txt\";\n\n String content = \"Content\";\n\n try {\n\n RFile rFile = new RFile();\n RFileMetadata rFileMetaData = new RFileMetadata();\n\n rFileMetaData.setFilename(fileName);\n rFileMetaData.setFilenameIsSet(true);\n\n rFile.setMeta(rFileMetaData);\n rFile.setMetaIsSet(true);\n\n rFile.setContent(content);\n rFile.setContentIsSet(true);\n\n client.writeFile(rFile);\n\n } catch (TException x) {\n throw x;\n }\n }", "@Test\n public void attachment() throws Exception {\n SynapseHelper synapseHelper = spy(new SynapseHelper());\n doReturn(\"dummy-filehandle-id\").when(synapseHelper).uploadFromS3ToSynapseFileHandle(MOCK_TEMP_DIR,\n TEST_PROJECT_ID, TEST_FIELD_NAME, UploadFieldTypes.ATTACHMENT_BLOB, \"dummy-attachment-id\");\n\n String retVal = synapseHelper.serializeToSynapseType(MOCK_TEMP_DIR, TEST_PROJECT_ID, TEST_RECORD_ID,\n TEST_FIELD_NAME, UploadFieldTypes.ATTACHMENT_BLOB, new TextNode(\"dummy-attachment-id\"));\n assertEquals(retVal, \"dummy-filehandle-id\");\n }", "@Test\n\tpublic void testFetch_FIFOandcaheFileContent() throws FileNotFoundException {\n\n\t\tFIFOFileCache fifoFileCache = FIFOFileCache.getInstance();\n\t\tfifoFileCache.fetch(\"a.txt\");\n\t\tfifoFileCache.fetch(\"b.txt\");\n\t\tfifoFileCache.fetch(\"c.txt\");\n\t\tfifoFileCache.fetch(\"d.txt\");\n\t\tString expected = \"This is File e.txt content.\";\n\t\tString actual = fifoFileCache.fetch(\"e.txt\");\n\t\tassertThat(actual, is(expected));\n\t}", "FileStore getFile(String fileRefId);", "@Test\n\tpublic void testFetch_AddNewCacheFiles() throws FileNotFoundException {\n\n\t\tFIFOFileCache fifoFileCache = FIFOFileCache.getInstance();\n\t\tSystem.out.println(\"Inside the code I set HashMap size 4 So from the 5th element it is going to start FIFO implementation if new element will come\");\n\t\tString expected = \"This is File a.txt content.\";\n\t\tString actual = fifoFileCache.fetch(\"a.txt\");\n\t\tassertThat(actual, is(expected));\n\t}", "@Test\n\tpublic void testSetFileInfo() {\n\n\t}", "@Test\n public void testStoreFile() {\n\n File file1 = new File(\"file1\");\n File file2 = new File(\"file2\");\n parent.storeFile(file1);\n parent.storeFile(file2);\n ArrayList<File> output = parent.getStoredFiles();\n ArrayList<File> expected = new ArrayList<File>();\n expected.add(file1);\n expected.add(file2);\n assertEquals(output, expected);\n }", "void setTemporaryInMemory(boolean mode);", "@Test\n public void testAddFileAddsFile(){\n \n FileStorageService fss = DatabaseServiceTestTool.createFileStorageService();\n \n String user1 = DatabaseServiceTestTool.usernames[0];\n String user2 = DatabaseServiceTestTool.usernames[1];\n \n assertTrue(fss.getFilesFor(user1).size() == 0);\n assertTrue(fss.getFilesFor(user2).size() == 0);\n \n try {\n InputStream is = prepareRandomInputStream();\n fss.addFile(user1, \"mypgn.pgn\", is);\n is.close();\n \n } catch (IOException e) {\n e.printStackTrace();\n fail();\n }\n \n assertTrue(fss.getFilesFor(user1).size() == 1);\n assertEquals(fss.getFilesFor(user1).get(0), \"mypgn.pgn\");\n \n //testing for a side effect now\n assertTrue(fss.getFilesFor(user2).size() == 0);\n \n DatabaseServiceTestTool.destroyFileStorageService(fss);\n }", "@Test\n public void whenReadFileAndAddNewLineToFileThenSecondReadFromHashWithoutLine() {\n Cache cache = new Cache(\"c:/temp\");\n String before = cache.readFile(\"names2.txt\");\n String result = cache.select(\"names2.txt\");\n String path = \"c:/temp/names2.txt\";\n try (FileWriter writer = new FileWriter(path, true);\n BufferedWriter bufferWriter = new BufferedWriter(writer)) {\n bufferWriter.write(\"test\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n result = cache.select(\"names2.txt\");\n assertThat(result, is(before));\n }", "@Test\n void readImage() throws Exception {\n ResultActions resultActions = mockMvc.perform(get(\"/v1/file/image-byte\")\n .param(\"name\", \"icon.jpg\")\n .contentType(MediaType.TEXT_PLAIN_VALUE))\n .andDo(resultHandler -> {\n String path = writeFile(resultHandler.getResponse().getContentAsByteArray(), \".jpg\");\n logger.debug(\"Image File recorded locally at: \" + path);\n }\n );\n\n resultActions\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.IMAGE_JPEG_VALUE))\n ;\n }", "private static File getCachedFile(String baseUrl, String params) {\n int hashCode = (baseUrl + params).hashCode();\n return new File(System.getProperty(\"java.io.tmpdir\"), BL_CACHE_FILE + hashCode);\n }", "FileContent createFileContent();", "@Test\n public void saveFile() {\n\n // create a new file system object\n FileSystem sampleFileSystem = new FileSystem();\n\n // add our previously created Person Objects to the created Address Book\n ericAddressBook.add(Eric);\n ericAddressBook.add(Daniel);\n\n File sampleFile = new File(\"Address Book\");\n\n\n\n }", "private File getCache(String fileName)\n {\n File file = new File(getCacheDir(), fileName);\n\n if (file.exists() && file.length() > 0)\n {\n return file;\n } else\n {\n try\n {\n file = File.createTempFile(fileName, null, this.getCacheDir());\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return file;\n }", "public File fetch(Artifact artifact, LocalCacheStore localCache)\n throws SavantException {\n File artifactFile = executeCheckout(artifact.getArtifactFile());\n if (artifactFile.exists()) {\n artifactFile = localCache.store(artifact, artifactFile);\n } else {\n artifactFile = null;\n }\n\n return artifactFile;\n }", "private void setFile() {\n\t}", "public interface OssFileService {\n Result putFile(String fileName, InputStream inputStream, String key, String token);\n}", "@Test\r\n public void testReadWhenShared() {\n System.out.println(\"Test : Alice shares her file with Bob and Bob can read it\");\r\n System.out.println();\r\n String userId = \"Alice\";\r\n String filePath = \"/home/Alice/shared/Af1.txt\";\r\n String targetUserId = \"Bob\";\r\n String fileName = \"Af1.txt\";\r\n File file = new File (filePath, userId, fileName);\r\n List<File> fileList = FileList.getFileList();\r\n fileList.add(file);\r\n service.shareFile(userId, targetUserId, filePath);\r\n try {\r\n assertNotNull(service.readFile(targetUserId, filePath));\r\n } catch (Exception e) {\r\n assertFalse(\"Should not throw any exception\", true);\r\n }\r\n System.out.println();\r\n\r\n }", "@Test\r\n public void testReadWhenThirdPersonShare() {\n System.out.println(\"Test : Meg shares her file with Dan and Dan can read it. Dan shares Meg's file with Ken, Ken can also read it\");\r\n System.out.println();\r\n String userId = \"Meg\";\r\n String filePath = \"/home/Meg/shared/Mf1.txt\";\r\n String targetUserId = \"Dan\";\r\n String fileName = \"Mf1.txt\";\r\n File file = new File (filePath, userId, fileName);\r\n List<File> fileList = FileList.getFileList();\r\n fileList.add(file);\r\n service.shareFile(userId, targetUserId, filePath);\r\n try {\r\n assertNotNull(service.readFile(targetUserId, filePath));\r\n } catch (Exception e) {\r\n assertFalse(\"Should not throw any exception\", true);\r\n }\r\n\r\n service.shareFile(targetUserId, \"Ken\", filePath);\r\n try {\r\n assertNotNull(service.readFile(\"Ken\", filePath));\r\n } catch (Exception e) {\r\n assertFalse(\"Should not throw any exception\", true);\r\n }\r\n System.out.println();\r\n\r\n }", "String saveFile(FileStoreDto dto);", "@Override\n public void setFile(File f) {\n \n }", "File retrieveFile(String absolutePath);", "@Test\n public void createFile(){\n try\n {\n URI uri = new URI(\"http://www.yu.edu/documents/doc390\");//given the complete uri\n String path = uri.getAuthority() + this.disectURI(uri);//get the Path which is www.yu.edu\\documents\n File file = new File(baseDir.getAbsolutePath() + File.separator + path);//make a File with the full class path and with the \"URI Path\"\n Files.createDirectories(file.toPath());//create the directories we didn't have before, ie not apart of the baseDir\n\n File theFile = new File(file.getAbsolutePath() + File.separator + \"doc390.txt\");//create a new File with the document as the last piece\n //wrap in a try because if the file is already there than we don't need to create a file\n if(!theFile.exists())Files.createFile(theFile.toPath());//create this file in the computer\n\n //write to the file -- in the real application this is the writing of the json\n FileWriter fileWriter = new FileWriter(theFile);\n fileWriter.write(\"HaYom sishi BShabbos\");\n fileWriter.flush();\n fileWriter.close();\n\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }", "abstract public InputStream retrieveContent( String path )\r\n throws Exception;", "@Override\n\tpublic String store(InputStream inputStream, String fileName) {\n\t\treturn null;\n\t}", "private boolean saveFile(ClientInterface client, MyTubeFile file){\n try{\n byte[] content = client.readFile(file.getFilename());\n String savepath = uploadsPath+\"/\"+Integer.toString(file.getId());\n new File(savepath).mkdir();\n savepath += \"/\"+ file.getFilename();\n\n try (FileOutputStream fos = new FileOutputStream(savepath)) {\n fos.write(content);\n return true;\n }\n }catch(IOException e){\n return false;\n }\n }", "public void setFile(DefaultStreamedContent file) {\n this.file = file;\n }", "public void testImportFile() throws Exception {\n File file = new File(\"./bin/repository.xml\");\n jt.setAllowCreate(true);\n \n sessionControl.replay();\n sfControl.replay();\n \n try {\n jt.importFile(null, null);\n fail(\"expected exception\");\n } catch (IllegalArgumentException e) {\n // it's okay\n }\n sfControl.verify();\n sessionControl.verify();\n \n sfControl.reset();\n sessionControl.reset();\n \n sfControl.expectAndReturn(sf.getSession(), session);\n // create a node mock\n MockControl nodeCtrl = MockControl.createControl(Node.class);\n Node node = (Node) nodeCtrl.getMock();\n \n MockControl fileNodeCtrl = MockControl.createControl(Node.class);\n Node fileNode = (Node) fileNodeCtrl.getMock();\n \n // we need a nice control to get pass the FileStream comparison\n MockControl resNodeCtrl = MockControl.createNiceControl(Node.class);\n Node resNode = (Node) resNodeCtrl.getMock();\n \n nodeCtrl.expectAndReturn(node.addNode(file.getName(), \"nt:file\"), fileNode);\n nodeCtrl.replay();\n \n fileNodeCtrl.expectAndReturn(fileNode.addNode(\"jcr:content\", \"nt:resource\"), resNode);\n fileNodeCtrl.replay();\n \n String mimeType = MimeTable.getDefaultTable().getContentTypeFor(file.getName());\n if (mimeType == null)\n mimeType = \"application/octet-stream\";\n \n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:mimeType\", mimeType), null);\n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:encoding\", \"\"), null);\n Calendar lastModified = Calendar.getInstance();\n lastModified.setTimeInMillis(file.lastModified());\n resNodeCtrl.expectAndReturn(resNode.setProperty(\"jcr:lastModified\", lastModified), null);\n resNodeCtrl.replay();\n \n sessionControl.expectAndReturn(session.getRootNode(), node);\n session.save();\n session.logout();\n \n sfControl.replay();\n sessionControl.replay();\n \n jt.importFile(null, file);\n \n nodeCtrl.verify();\n fileNodeCtrl.verify();\n resNodeCtrl.verify();\n }", "@Test\r\n public void testReadForAuthorizedUser() {\n System.out.println(\"Test : Alice can read her own file\");\r\n System.out.println();\r\n String userId = \"Alice\";\r\n String filePath = \"/home/Alice/shared/Af1.txt\";\r\n File file = new File (\"/home/Alice/shared/Af1.txt\", \"Alice\", \"Af1.txt\");\r\n List<File> fileList = FileList.getFileList();\r\n fileList.add(file);\r\n\r\n try {\r\n assertNotNull(service.readFile(userId, filePath));\r\n } catch (Exception e) {\r\n assertFalse(\"Should not throw any exception\", true);\r\n }\r\n System.out.println();\r\n }", "@Override\n public StorageOutputStream create(File file) throws IOException {\n\treturn null;\n }", "public void saveResponse(String fileName) throws IOException {\r\n File responsefile = new File(base_dir + \"//src//test//java//response\");\r\n if (!responsefile.exists()) {\r\n responsefile.mkdir();\r\n }\r\n\r\n BufferedWriter writer = new BufferedWriter(new FileWriter(base_dir + \"//src//test//java//response//\" + fileName));\r\n writer.write(Operations.getContent());\r\n writer.close();\r\n }", "private static File createTempStore(String storePath) {\n File f = null;\n Closer closer = Closer.create();\n try {\n InputStream trustStoreIs = CCMBridge.class.getResourceAsStream(storePath);\n closer.register(trustStoreIs);\n f = File.createTempFile(\"server\", \".store\");\n logger.debug(\"Created store file {} for {}.\", f, storePath);\n OutputStream trustStoreOs = new FileOutputStream(f);\n closer.register(trustStoreOs);\n ByteStreams.copy(trustStoreIs, trustStoreOs);\n } catch (IOException e) {\n logger.warn(\"Failure to write keystore, SSL-enabled servers may fail to start.\", e);\n } finally {\n try {\n closer.close();\n } catch (IOException e) {\n logger.warn(\"Failure closing streams.\", e);\n }\n }\n return f;\n }", "public void save() {\n Path root = Paths.get(storagePath);\n try {\n Files.copy(file.getInputStream(), root.resolve(file.getOriginalFilename()),\n StandardCopyOption.REPLACE_EXISTING);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public synchronized void putContent(Consumer<OutputStream> outputStreamSupplier) throws IOException {\n // Delete a possibly prior written newContentFile\n Files.deleteIfExists(newContentFile);\n try (OutputStream out = newOutputStreamToNewTmpContent(true)) {\n outputStreamSupplier.accept(out);\n }\n FileUtils.moveAtomic(newContentTmpFile, newContentFile);\n }", "@Override\n protected File getDataFile(String relFilePath) {\n return new File(getDataDir(), relFilePath);\n }", "public void testWriteDataInMemory() throws IOException {\n\t\tfinal CachedParserDocument pdoc = new CachedParserDocument(this.tempFilemanager,(int)this.fileSize);\n\t\tassertTrue(pdoc.inMemory());\n\t\tassertEquals(0, pdoc.length());\n\t\tassertFalse(this.outputFile.exists());\n\t\t\n\t\t// copying data\n\t\tthis.writeData(TESTFILE, pdoc);\n\t\t\n\t\t// data must have been kept in memory\n\t\tassertTrue(pdoc.inMemory());\n\t\tassertEquals(this.fileSize, pdoc.length());\n\t\tassertFalse(this.outputFile.exists());\n\t\t\n\t\t// getting a reader without dumping data to disk\n\t\tassertEquals(TESTFILE, pdoc.getTextAsReader());\n\t\tassertFalse(this.outputFile.exists());\n\t\tassertTrue(pdoc.inMemory());\n\t\t\n\t\t// getting a file\n\t\tassertEquals(TESTFILE, pdoc.getTextFile());\n\t\tassertTrue(this.outputFile.exists());\n\t\tassertFalse(pdoc.inMemory());\n\t}", "@Test\r\n public void test_performLogic_Accuracy1() throws Exception {\r\n try {\r\n UploadedDocument doc = new UploadedDocument();\r\n doc.setDocumentId(1);\r\n doc.setContestId(1);\r\n doc.setFileName(\"test.txt\");\r\n doc.setPath(\"test_files\");\r\n doc.setMimeTypeId(new MimeTypeRetriever().getMimeTypeIdFromFileName(\"test_files/test.txt\"));\r\n List<UploadedDocument> docUploads = new ArrayList<UploadedDocument>();\r\n docUploads.add(doc);\r\n\r\n instance.performLogic(docUploads);\r\n\r\n String expectedContents = TestHelper.getFileContents(\"test_files/test.txt\");\r\n\r\n // make sure file was added\r\n assertEquals(\"content type is wrong\", \"text/plain\", instance.getContentType());\r\n assertEquals(\"content length is wrong\", expectedContents.length(), instance.getContentLength());\r\n assertEquals(\"content disposition is wrong\", \"attachment;filename=test.txt\", instance\r\n .getContentDisposition());\r\n\r\n // make sure input stream was set correctly and file contents are correct\r\n StringWriter writer = new StringWriter();\r\n IOUtils.copy(instance.getInputStream(), writer);\r\n String actualContents = writer.toString();\r\n assertEquals(\"input stream is wrong\", expectedContents, actualContents);\r\n } finally {\r\n IOUtils.closeQuietly(instance.getInputStream());\r\n }\r\n }", "public void testAppendDataInMemory() throws IOException {\n\t\tfinal CachedParserDocument pdoc = new CachedParserDocument(this.tempFilemanager,(int)this.fileSize);\n\t\tassertTrue(pdoc.inMemory());\n\t\tassertEquals(0, pdoc.length());\n\t\tassertFalse(this.outputFile.exists());\n\t\t\n\t\t// copying data\n\t\tthis.appendData(TESTFILE, pdoc);\n\t\t\n\t\t// data must have been kept in memory\n\t\tassertTrue(pdoc.inMemory());\n\t\tassertEquals(this.fileSize, pdoc.length());\n\t\tassertFalse(this.outputFile.exists());\n\t\t\n\t\t// getting a reader without dumping data to disk\n\t\tassertEquals(TESTFILE, pdoc.getTextAsReader());\n\t\tassertFalse(this.outputFile.exists());\n\t\tassertTrue(pdoc.inMemory());\n\t\t\n\t\t// getting a file\n\t\tassertEquals(TESTFILE, pdoc.getTextFile());\n\t\tassertTrue(this.outputFile.exists());\n\t\tassertFalse(pdoc.inMemory());\n\t}", "File getFile() { return user_file; }", "private static void readFileOnClient(FileStore.Client client) throws SystemException, TException {\n String fileName = \"sample.txt\";\n NodeID nodeId = client.findSucc(getSHA(fileName));\n TTransport transport = new TSocket(nodeId.getIp(), nodeId.getPort());\n transport.open();\n\n TProtocol protocol = new TBinaryProtocol(transport);\n FileStore.Client readFileClient = new FileStore.Client(protocol);\n\n RFile rFile = readFileClient.readFile(fileName);\n System.out.println(\"Filename - \" + rFile.getMeta().getFilename());\n System.out.println(\"Version Number - \" + rFile.getMeta().getVersion());\n System.out.println(\"Content - \" + rFile.getContent());\n transport.close();\n }", "public File getFile()\n {\n return file;\n }", "@Test\n public void file() throws UnsupportedEncodingException {\n String fileName = createFile(FILE_BODY, \"/file/create/in\");\n\n // Read the file\n RestAssured\n .get(\"/file/get/in/\" + Paths.get(fileName).getFileName())\n .then()\n .statusCode(200)\n .body(equalTo(FILE_BODY));\n }", "public void put( File file, String url ) throws MojoExecutionException\n {\n if ( m_wagon == null )\n {\n m_log.error( \"must be connected first!\" );\n return;\n }\n\n try\n {\n m_wagon.put( file, url );\n }\n catch ( TransferFailedException e )\n {\n throw new MojoExecutionException( \"Transfer failed\", e );\n }\n catch ( AuthorizationException e )\n {\n throw new MojoExecutionException( \"Authorization failed\", e );\n }\n catch ( ResourceDoesNotExistException e )\n {\n throw new MojoExecutionException( \"Resource does not exist:\" + file, e );\n }\n }", "public Storage(String filePath) {\n File file = new File(filePath);\n this.file = file;\n }", "public void testCreateFile() throws Exception {\n File input = new File(\"src/test/resources/reader/filesample.xml\");\n final URL testdata = input.toURI().toURL();\n reader.parse(testdata, creator);\n assertEquals(\"Did not create expected number of files\", 2, creator.filesCreated.size());\n MockContentCreator.FileDescription file = creator.filesCreated.get(0);\n try {\n file.data.available();\n TestCase.fail(\"Did not close inputstream\");\n } catch (IOException ignore) {\n // Expected\n }\n assertEquals(\"mimeType mismatch\", \"application/test\", file.mimeType);\n assertEquals(\"lastModified mismatch\", XmlReader.FileDescription.DATE_FORMAT.parse(\"1977-06-01T07:00:00+0100\"), new Date(file.lastModified));\n assertEquals(\"Could not read file\", \"This is a test file.\", file.content);\n\n }", "public void setFile(File f) { file = f; }", "synchronized static void saveFile(String url){\n\t\tint count=1,size=0;\n\t\tbyte buffer[] = new byte[0x100];\n\t\ttry {\n\t\t\tFileOutputStream fos = new FileOutputStream(new File(context.getCacheDir(), hashURL(url)));\n\t\t\tInputStream input = new BufferedInputStream(new URL(url).openStream());\n\t\t\tLog.i(\"FILEBANK\",\"Saveing \"+hashURL(url));\n\t\t\twhile(true){\n\t\t\t\tcount=input.read(buffer);\n\t\t\t\tif(count<0)break;\n\t\t\t\tfos.write(buffer,0,count);\n\t\t\t\tsize+=count;\n\t\t\t}\n\t\t\tinput.close();\n\t\t\tfos.close();\n\t\t\tLog.i(\"FILEBANK\",\"Saved \"+hashURL(url)+\" \"+size+\" bytes.\");\n\t\t} catch (FileNotFoundException ex) {\n\t\t\tLog.e(\"FILEBANK\", \"Error saving file to cache\", ex);\n\t\t} catch (MalformedURLException ex) {\n\t\t\tLog.e(\"FILEBANK\",\"Invalid url: \"+url, ex);\n\t\t} catch (IOException ex) {\n\t\t\tLog.e(\"FILEBANK\",\"Error reading image\", ex);\n\t\t} catch (IndexOutOfBoundsException ex) {\n\t\t\tLog.e(\"FILEBANK\", \"(count, size) = \"+count+\",\"+size, ex);\n\t\t}\n\t}", "@Test\n public void testFileDownload() throws FileNotFoundException {\n ExcelFile testFile = new ExcelFile(\"0\", \"/Users/zhongyuanlu/IdeaProjects/reporting_system/temp.xlsx\");\n Mockito.when(excelService.getExcelBodyById(anyString())).thenReturn(new FileInputStream(\"temp.xlsx\"));\n Mockito.when(excelService.getExcelFileById(anyString())).thenReturn(testFile);\n given().accept(\"application/json\").get(\"/excel/0/content\").peek().\n then().assertThat()\n .statusCode(200);\n }", "@Test\n public void testCreateDocumentWithContentStreamAndFileName() throws Exception {\n String filename = \"C:\\\\My Documents\\\\foo.txt\";\n ContentStream cs = new ContentStreamImpl(filename, \"text/plain\", Helper.FILE1_CONTENT);\n String id = objService.createDocument(repositoryId, createBaseDocumentProperties(\"bar.txt\", \"File\"),\n rootFolderId, cs, VersioningState.NONE, null, null, null, null);\n ObjectData data = getObject(id);\n assertEquals(id, data.getId());\n assertEquals(\"bar.txt\", getString(data, PropertyIds.NAME));\n assertEquals(\"bde9eb59c76cb432a0f8d02057a19923\", getString(data, NuxeoTypeHelper.NX_DIGEST));\n cs = objService.getContentStream(repositoryId, id, null, null, null, null);\n // check filename has been normalized\n assertEquals(\"foo.txt\", cs.getFileName());\n assertEquals(Helper.FILE1_CONTENT, Helper.read(cs.getStream(), \"UTF-8\"));\n }", "@Before\n public void setUp() {\n this.file = null;\n }", "public void testOldCacheGetsReusedLocally() throws Exception\n {\n final String asyncContents = \"Async commit contents\";\n\n TestSetup t = new TestSetup().prepare();\n String asyncRev = t.commitTestFileContents(asyncContents, \"Async commit\");\n\n File targetDir = t.createDir(\"target\");\n\n GitOperationHelper goh = createGitOperationHelper();\n goh.fetch(targetDir, t.accessData, false);\n goh.checkout(t.cacheDir, targetDir, asyncRev, null, false);\n\n String contents = FileUtils.readFileToString(new File(targetDir, \"file.txt\"));\n Assert.assertEquals(contents, asyncContents);\n }", "@Test \n public void findByFileNameTest() {\n FileMetaData fileMetaData = new FileMetaData();\n fileMetaData.setAuthorName(\"Puneet\");\n fileMetaData.setFileName(\"resume1\");\n fileMetaData.setDescription(\"Attached resume to test upload\");\n fileMetaData.setUploadTimeStamp(DateUtil.getCurrentDate());\n fileMetaDataRepository.saveAndFlush(fileMetaData);\n FileMetaData fetchedRecord = fileMetaDataRepository.findByFileName(\"resume1\"); \n Assert.assertNotNull(fetchedRecord);\n Assert.assertEquals(\"Puneet\", fetchedRecord.getAuthorName());\n Assert.assertEquals(\"resume1\", fetchedRecord.getFileName());\n Assert.assertEquals(\"Attached resume to test upload\", fetchedRecord.getDescription()); \n }", "public abstract T create(T file, boolean doPersist) throws IOException;", "public FSLockWithShared(File baseFile) {\n file = baseFile;\n }", "@Test\n public void testGetDataAccessResultsDir() throws IOException {\n System.out.println(\"getDataAccessResultsDir\");\n\n final String key = \"saveDataDir\";\n File tempFile = null;\n try {\n tempFile = File.createTempFile(\"testfile\", \".txt\");\n\n final String path = tempFile == null ? \"\" : tempFile.getAbsolutePath();\n\n preferences.put(key, path);\n \n final File result = DataAccessPreferenceUtilities.getDir(key);\n\n // Verify mock is working correctly\n assertEquals(result, tempFile);\n\n // Verify no file is returned because it needs to be a directory\n final File expResult = null;\n assertEquals(DataAccessPreferenceUtilities.getDataAccessResultsDir(), expResult);\n } finally {\n // Cleanup\n if (tempFile != null && tempFile.exists()) {\n tempFile.delete();\n }\n }\n }", "public File getFile(String url){\n String filename=String.valueOf(url.hashCode());\n //Another possible solution (thanks to grantland)\n //String filename = URLEncoder.encode(url);\n File f = new File(cacheDir, filename);\n return f;\n \n }", "boolean getTemporaryInMemory();", "public void testGetImportContentHandler() throws RepositoryException {\n String path = \"path\";\n MockControl resultMock = MockControl.createControl(ContentHandler.class);\n ContentHandler result = (ContentHandler) resultMock.getMock();\n \n sessionControl.expectAndReturn(session.getImportContentHandler(path, 0), result);\n sessionControl.replay();\n sfControl.replay();\n \n assertSame(jt.getImportContentHandler(path, 0), result);\n \n }", "public void setInMemory(boolean load);", "@Test\r\n public void testUpdateFile() {\r\n System.out.println(\"updateFile\");\r\n InparseManager instance = ((InparseManager) new ParserGenerator().getNewApplicationInparser());\r\n try {\r\n File file = File.createTempFile(\"TempInpFile\", null);\r\n instance.setlocalPath(file.getAbsolutePath());\r\n } catch (IOException ex) {\r\n Logger.getLogger(ApplicationInparserTest.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n instance.updateFile();\r\n // no assertEquals needed because the method itself would throw an error\r\n // if an error occurs check your connection to the internet\r\n }", "@Override\n public void createContent(OutputStream out) throws Exception {\n\n // make sure we have the path to load from\n IParameterProvider request = parameterProviders.get( \"request\" ); //$NON-NLS-1$\n String fullPath = request.getStringParameter(\"filepath\", null); //$NON-NLS-1$\n if( fullPath == null ) {\n errorMessage( Messages.getErrorString(\"SolutionRepo.ERROR_0001_NO_FILEPATH\"), out ); //$NON-NLS-1$\n return;\n }\n\n ActionInfo info = ActionInfo.parseActionString( fullPath );\n if( info == null ) {\n errorMessage( Messages.getErrorString(\"SolutionRepo.ERROR_0003_BAD_PATH\", fullPath), out ); //$NON-NLS-1$\n return;\n }\n \n ISolutionRepository repo = PentahoSystem.get(ISolutionRepository.class, userSession);\n\n // try to get the file from the repository\n// Document doc = repo.getResourceAsDocument(fullPath, ISolutionRepository.ACTION_EXECUTE);\n Document doc = repo.getNavigationUIDocument(null, fullPath, ISolutionRepository.ACTION_EXECUTE);\n\n if( doc != null ) {\n Element stateNode = (Element) doc.selectSingleNode( \"state-file/state\" ); //$NON-NLS-1$\n if( stateNode != null ) {\n // write the loaded state to the output stream\n out.write( stateNode.getText().getBytes( ) );\n return;\n }\n }\n \n out.write( Messages.getErrorString(\"SolutionRepo.ERROR_0001_LOAD_FAILED\", fullPath).getBytes() ); //$NON-NLS-1$\n \n }", "public static void randomAccessWrite() {\n try {\n RandomAccessFile f = new RandomAccessFile(FILES_TEST_PATH, \"rw\");\n f.writeInt(10);\n f.writeChars(\"test line\");\n f.close();\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "public FileService(@Value(\"${armory.filelocation}\") String saveLocation) {\n mapLines = Collections.synchronizedSortedMap(new TreeMap<>());\n this.saveLocation = saveLocation;\n checkIfLocationExists();\n }", "File getFile();", "File getFile();", "@Test\n public void testFileInDirectoryFileExists() {\n\n File file1 = new File(\"file1\");\n parent.storeFile(file1);\n assertTrue(parent.fileInDirectory(\"file1\"));\n }", "@Test\n public void testGetDataAccessResultsDirEx2() throws IOException {\n System.out.println(\"getDataAccessResultsDirEx2\");\n\n final String key = \"saveDataDir\";\n File tempFile = null;\n try {\n tempFile = File.createTempFile(\"testfile\", \".txt\");\n\n final String path = tempFile == null ? \"\" : tempFile.getAbsolutePath();\n\n preferences.put(key, path);\n\n final File result = DataAccessPreferenceUtilities.getDir(key);\n\n // Verify mock is working correctly\n assertEquals(result, tempFile);\n\n // Verify no file is returned because it needs to be a directory\n final File expResult = null;\n assertEquals(DataAccessPreferenceUtilities.getDataAccessResultsDir(), expResult);\n\n // Verify that a file is returned because it does not care about directory.\n assertEquals(DataAccessPreferenceUtilities.getDataAccessResultsDirEx(), tempFile);\n } finally {\n // Cleanup\n if (tempFile != null && tempFile.exists()) {\n tempFile.delete();\n }\n }\n }", "static CacheResult createCacheFile(String url, int statusCode,\n Headers headers, String mimeType, boolean forceCache) {\n // This method is public but hidden. We break functionality.\n return null;\n }", "void getFile(String path, OutputStream stream) throws NotFoundException, IOException;", "@Override\n\tpublic byte[] fetchFile(String fileName) throws RemoteException {\n return null;\n\n\t}", "@Test\n public void getPostFile() throws Exception {\n String url = String.format(\"/download/%s/result.json\", AppTests.token);\n MvcResult result = mockMvcGetResult(url, MediaType.APPLICATION_JSON_VALUE + \";charset=UTF-8\", null);\n String response = result.getResponse().getContentAsString();\n\n MockMultipartFile importFile = new MockMultipartFile(\"file\", \"result.json\", \"multipart/form-data\", response.getBytes());\n\n MockHttpServletRequestBuilder builder =\n MockMvcRequestBuilders.multipart(\"/import/form\")\n .file(importFile);\n\n this.getMockMvc().perform(builder)\n .andExpect(status().isOk())\n .andReturn();\n }", "@Test\n\tpublic void testGetFileAsStream_3()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tlong repositoryId = 1L;\n\t\tString fileName = \"\";\n\n\t\tInputStream result = fixture.getFileAsStream(companyId, repositoryId, fileName);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t\tassertNotNull(result);\n\t}", "public File getFile();", "public File getFile();", "public void setFile(File file);", "public File get( String url, String suffix ) throws MojoExecutionException\n {\n if ( m_wagon == null )\n {\n m_log.error( \"must be connected first!\" );\n return null;\n }\n\n File file = null;\n try\n {\n file = File.createTempFile( String.valueOf( System.currentTimeMillis() ), suffix );\n }\n catch ( IOException e )\n {\n throw new MojoExecutionException( \"I/O problem\", e );\n }\n\n try\n {\n m_wagon.get( url, file );\n }\n catch ( TransferFailedException e )\n {\n file.delete(); // cleanup on failure\n throw new MojoExecutionException( \"Transfer failed\", e );\n }\n catch ( AuthorizationException e )\n {\n file.delete(); // cleanup on failure\n throw new MojoExecutionException( \"Authorization failed\", e );\n }\n catch ( ResourceDoesNotExistException e )\n {\n file.delete(); // return non-existent file\n }\n\n return file;\n }", "private File createTempFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n File albumF = getAlbumDir();\n File mediaF = null;\n\n profile = IMG_FILE_PREFIX + timeStamp+\"_\";\n mediaF = File.createTempFile(profile, IMG_FILE_SUFFIX, albumF);\n\n return mediaF;\n }", "public String getFile() {\n \n // return it\n return theFile;\n }", "private File createContent (String fileName, InputStream in) throws IOException {\n // keep original extension so MIME can be guessed by the extension\n File tmp = new File(Utils.getTempFolder(), fileName); // NOI18N\n tmp = FileUtil.normalizeFile(tmp);\n tmp.deleteOnExit(); // hard to track actual lifetime\n FileUtils.copyStreamToFile(new BufferedInputStream(in), tmp);\n return tmp;\n }", "@Override\n public void prepare() {\n //Caching as file resource.\n File file = this.getResource().file;\n logger.info(\"Preparing {} streams for file: {}\", this.getTransferType(), file.getName());\n\n if (this.getTransferType() == ResourceTransferType.OUTBOUND) {\n //Sending\n try {\n buffer = new byte[BUFFER_SIZE];\n sent = 0;\n inputChannel = new FileInputStream(file).getChannel();\n inputBuffer = inputChannel.map(FileChannel.MapMode.READ_ONLY, 0, inputChannel.size());\n } catch (FileNotFoundException e) { //File doesn't exist.\n //Calling a transfer error.\n callError(e);\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else {\n //Receiving\n //Checking if file already exists.\n written = 0;\n saved = 0;\n if (getResource().isLocal()) {\n getResource().calcNetworkId();\n if (getResource().getNetworkID().equals(getTunnel().getDestination())) {\n //The file is already stored locally.\n getTunnel().sendMessage(new ResourceTransferControlMessage(this.getTransferId(), -2));\n this.close();\n return;\n }\n }\n\n //Creating or replacing the file.\n buffer = new byte[BUFFER_SIZE * 16];\n if (file.exists()) {\n file.delete();\n }\n try { //Creating new file.\n file.createNewFile();\n outputStream = new FileOutputStream(file);\n } catch (IOException e) {\n //Calling a transfer error.\n callError(e);\n return;\n }\n\n //Requesting the first chunk.\n getTunnel().sendMessage(new ResourceTransferControlMessage(this.getTransferId(), 0));\n }\n }", "public interface ContentRepository {\n /**\n * Stores content of a stream with the given name. Does not override the content with the same name.\n * Implementations can either rename the content and return the name; or throw an AlreadyExistentException\n *\n * @param is the content to store; the caller has to close the stream\n * @param name name to attach to the stored content on server\n * @param meta optional properties to be added next to the content\n * @return The name used to identify the stored content on server\n * @throws AlreadyExistentException if the implementation cannot support dynamic renaming of the content in case the name is already present\n * @throws java.io.IOException\n */\n String store(InputStream is, String name, Properties meta) throws AlreadyExistentException, IOException;\n}", "@Test\n public void testSetAndGetMeta() {\n System.out.println(\"testSetAndGetMeta\");\n RecordFile instance = new RecordFile();\n \n String meta = \"happy happy joy joy!\";\n String first = \"first\";\n \n instance.setMeta(meta.getBytes());\n instance.write(first.getBytes(), 0);\n \n Assert.assertEquals(meta, new String(instance.getMeta()));\n Assert.assertEquals(first, new String(instance.read(0)));\n }", "@Test\n\tpublic void testGetPrincipalUrl() throws Exception {\n\t\tString testFileName = \"testGetPrincipalUrl.pdf\";\n\t\tString absPath = scratchFileUtils.createAndReturnAbsoluteScratchPath(IRODS_TEST_SUBDIR_PATH);\n\t\tString localFileName = FileGenerator.generateFileOfFixedLengthGivenName(absPath, testFileName, 2);\n\n\t\tString targetIrodsFile = testingPropertiesHelper.buildIRODSCollectionAbsolutePathFromTestProperties(\n\t\t\t\ttestingProperties, IRODS_TEST_SUBDIR_PATH + '/' + testFileName);\n\t\tFile localFile = new File(localFileName);\n\n\t\t// now put the file\n\n\t\tIRODSAccount irodsAccount = testingPropertiesHelper.buildIRODSAccountFromTestProperties(testingProperties);\n\t\tDataTransferOperations dto = irodsFileSystem.getIRODSAccessObjectFactory()\n\t\t\t\t.getDataTransferOperations(irodsAccount);\n\t\tIRODSFile destFile = irodsFileSystem.getIRODSFileFactory(irodsAccount).instanceIRODSFile(targetIrodsFile);\n\n\t\tdto.putOperation(localFile, destFile, null, null);\n\n\t\tIrodsSecurityManager manager = new IrodsSecurityManager();\n\t\tmanager.setIrodsAccessObjectFactory(irodsFileSystem.getIRODSAccessObjectFactory());\n\t\tWebDavConfig config = new WebDavConfig();\n\t\tconfig.setAuthScheme(\"STANDARD\");\n\t\tconfig.setHost(irodsAccount.getHost());\n\t\tconfig.setPort(irodsAccount.getPort());\n\t\tconfig.setZone(irodsAccount.getZone());\n\t\tconfig.setDefaultStartingLocationEnum(DefaultStartingLocationEnum.USER_HOME);\n\t\tmanager.setWebDavConfig(config);\n\n\t\tIrodsAuthService authService = new IrodsAuthService();\n\t\tauthService.setIrodsAccessObjectFactory(irodsFileSystem.getIRODSAccessObjectFactory());\n\t\tauthService.setWebDavConfig(config);\n\t\tmanager.setIrodsAuthService(authService);\n\n\t\tIrodsFileSystemResourceFactory factory = new IrodsFileSystemResourceFactory(manager);\n\t\tfactory.setWebDavConfig(config);\n\n\t\tLockManager lockManager = Mockito.mock(LockManager.class);\n\t\tfactory.setLockManager(lockManager);\n\t\tIrodsFileContentService service = new IrodsFileContentService();\n\t\tservice.setIrodsAccessObjectFactory(irodsFileSystem.getIRODSAccessObjectFactory());\n\n\t\tauthService.authenticate(irodsAccount.getUserName(), irodsAccount.getPassword());\n\n\t\tIrodsFileResource resource = new IrodsFileResource(\"host\", factory, destFile, service);\n\n\t\tString url = resource.getPrincipalURL();\n\t\tAssert.assertNotNull(\"no url returned\", url);\n\t\tAssert.assertFalse(\"no url\", url.isEmpty());\n\n\t}", "private void configStorage(){\n try {\n final StorageReference storageReference = FirebaseStorage.getInstance()\n .getReference(\"motolost/\"+ String.valueOf(Math.random()) + getFileExtension(filePath));\n storageReference.putFile(filePath)\n .continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>() {\n @Override\n public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception {\n if (!task.isSuccessful()) {\n throw task.getException();\n }\n return storageReference.getDownloadUrl();\n }\n }).addOnCompleteListener(new OnCompleteListener<Uri>() {\n @Override\n public void onComplete(@NonNull Task<Uri> task) {\n if (task.isSuccessful()) {\n Uri downloadUri = task.getResult();\n saveRegistry(downloadUri.toString());\n }\n }\n });\n } catch (Exception ex) {\n Constant.showMessage(\"Exception\", ex.getMessage(), this);\n }\n }", "public File getFile() { return file; }", "@Test\n public void case2() {\n HttpServletRequest mockedRequest = Mockito.mock(HttpServletRequest.class); \n HttpSession mockedSession = Mockito.mock(HttpSession.class);\n UserSession userSession = new UserSession();\n User user = new User();\n user.setId(1);\n userSession.setUser(user);\n when(mockedSession.getAttribute(Const.User.USER_KEY)).thenReturn(userSession);\n when(mockedRequest.getSession(false)).thenReturn(mockedSession);\n MockMultipartFile mockMultipartFile1 = new MockMultipartFile(\"file\",\"sample1.gpx\",\n \"text/plain\", file(\"karros/user/latesttrack/case2_1.gpx\"));\n MockMultipartFile mockMultipartFile2 = new MockMultipartFile(\"file\",\"sample2.gpx\",\n \"text/plain\", file(\"karros/user/latesttrack/case2_2.gpx\"));\n userService.uploadFile(mockMultipartFile1, mockedRequest);\n userService.uploadFile(mockMultipartFile2, mockedRequest);\n LatestTrack actualLastetTrack = userService.getLatestTrack(mockedRequest);\n assertNotNull(\"Latest track is null\", actualLastetTrack);\n LatestTrack expected = new LatestTrack();\n expected.setGpxMetadataId(2);\n expected.setName(\"case 2_2\");\n assertEquals(expected.getGpxMetadataId(), actualLastetTrack.getGpxMetadataId(), \"Latest track metadata id is wrong\");\n assertEquals(expected.getName(), actualLastetTrack.getName(), \"Latest track name is wrong\");\n }", "public static File mock(boolean exist) {\n\n\t\tFile file = PowerMockito.mock(File.class);\n\n\t\tPowerMockito.when(file.getPath()).thenReturn(\"/a-file\");\n\n\t\tPowerMockito.when(file.getAbsolutePath()).thenReturn(\n\t\t\t\tSystem.getProperty(\"java.io.tmpdir\") + \"/a-file\");\n\n\t\tPowerMockito.when(file.exists()).thenReturn(exist);\n\n\t\treturn file;\n\t}", "@Test\n public void persist() {\n final Path baseDir = Paths.get(\"src\", \"test\", \"resources\", \"PersistentMapTest\");\n final String fileName = Paths.get(baseDir.toString(), \"get.json\").toString();\n\n try {\n final PersistentMap<String, Integer> expected = new PersistentMap<>(fileName, Stream.of(\"a\", \"test\", \"set\").collect(Collectors.toMap(\n str -> str,\n String::hashCode\n )));\n assertFalse(\"Map shall not be empty!\", expected.get().isEmpty());\n expected.save();\n final PersistentMap<String, Integer> actual = new PersistentMap<>(fileName, Collections.emptyMap());\n assertEquals(\"Set did not persist!\", expected.get(), actual.get());\n new File(fileName).delete();\n Files.delete(baseDir);\n } catch (IOException e) {\n throw new IllegalStateException();\n }\n\n }", "public WebFile getFile() { return _file; }", "private Path createMobStoreFile(String family) throws IOException {\n return createMobStoreFile(HBaseConfiguration.create(), family);\n }" ]
[ "0.6052862", "0.60037565", "0.5970092", "0.58954465", "0.58712995", "0.5844121", "0.5801706", "0.57911175", "0.5781969", "0.5781134", "0.56489027", "0.56257594", "0.55884624", "0.558731", "0.5534504", "0.5519328", "0.551198", "0.55027133", "0.5472682", "0.54469657", "0.54420704", "0.54259896", "0.54248154", "0.53912157", "0.53718096", "0.53552574", "0.53493685", "0.5344801", "0.5333089", "0.530988", "0.53070134", "0.52988786", "0.5298009", "0.5292216", "0.52849996", "0.52782667", "0.52536297", "0.5250665", "0.5243387", "0.5241227", "0.5240765", "0.5235237", "0.52350837", "0.5234046", "0.5230733", "0.5230515", "0.5230462", "0.5220262", "0.52178377", "0.52070487", "0.51976717", "0.51973724", "0.51889914", "0.5188447", "0.51863724", "0.5178057", "0.51776254", "0.5173338", "0.51732355", "0.5163972", "0.5155035", "0.51543665", "0.51482046", "0.5144542", "0.5142745", "0.51420724", "0.51394516", "0.5130604", "0.51298565", "0.51286215", "0.5121985", "0.5118575", "0.511841", "0.51162654", "0.51162654", "0.51151", "0.5114909", "0.5114631", "0.51134485", "0.51070136", "0.5103756", "0.510373", "0.5093553", "0.5093553", "0.50902903", "0.50875807", "0.5086933", "0.50849235", "0.508151", "0.50770473", "0.5074864", "0.5071899", "0.50631666", "0.50609374", "0.5058594", "0.5049677", "0.5048469", "0.5048013", "0.5044945", "0.5042693" ]
0.5339275
28
Subtrai a data no formato AAAAMM Exemplo 200508 retorna 200507
public static int subtrairData(int data) { String dataFormatacao = "" + data; int ano = new Integer(dataFormatacao.substring(0, 4)).intValue(); int mes = new Integer(dataFormatacao.substring(4, 6)).intValue(); int mesTemp = (mes - 1); if (mesTemp == 0) { mesTemp = 12; ano = ano - 1; } String anoMes = null; String tamanhoMes = "" + mesTemp; if (tamanhoMes.length() == 1) { anoMes = ano + "0" + mesTemp; } else { anoMes = ano + "" + mesTemp; } return new Integer(anoMes).intValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getCADENA_TRAMA();", "public static String formatarDataComTracoAAAAMMDD(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\t\t\tdataBD.append(\"-\");\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\t\t\tdataBD.append(\"-\");\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public static Map<String, Object> getMap(String a0000) throws Exception{\n\t ExportDataBuilder edb = new ExportDataBuilder();\n\t Map<String, Object> dataMap = edb.getGbrmspbMap(a0000);\n\t String a0101 = (String)dataMap.get(\"a0101\");\n\t\t\t\n\t //格式化时间参数\n\t\t\tString a0107 = (String)dataMap.get(\"a0107\");\n\t\t\tString a0134 = (String)dataMap.get(\"a0134\");\n\t\t\tString a1701 = (String)dataMap.get(\"a1701\");\n\t\t\t//格式化学历学位\n\t\t\tString qrzxl = (String)dataMap.get(\"qrzxl\");\n\t\t\tString qrzxw = (String)dataMap.get(\"qrzxw\");\n\t\t\tString zzxl = (String)dataMap.get(\"zzxl\");\n\t\t\tString zzxw = (String)dataMap.get(\"zzxw\");\n\t\t\tif(!StringUtil.isEmpty(qrzxl)&&!StringUtil.isEmpty(qrzxw)){\n\t\t\t\tString qrzxlxw = qrzxl+\"\\r\\n\"+qrzxw;\n\t\t\t\tdataMap.put(\"qrzxlxw\", qrzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(qrzxl)){\n\t\t\t\tString qrzxlxw = qrzxl;\n\t\t\t\tdataMap.put(\"qrzxlxw\", qrzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(qrzxw)){\n\t\t\t\tString qrzxlxw = qrzxw;\n\t\t\t\tdataMap.put(\"qrzxlxw\", qrzxlxw);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"qrzxlxw\", \"\");\n\t\t\t}\n\t\t\tif(!StringUtil.isEmpty(zzxl)&&!StringUtil.isEmpty(zzxw)){\n\t\t\t\tString zzxlxw = zzxl+\"\\r\\n\"+zzxw;\n\t\t\t\tdataMap.put(\"zzxlxw\", zzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(zzxl)){\n\t\t\t\tString zzxlxw = zzxl;\n\t\t\t\tdataMap.put(\"zzxlxw\", zzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(zzxw)){\n\t\t\t\tString zzxlxw = zzxw;\n\t\t\t\tdataMap.put(\"zzxlxw\", zzxlxw);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"zzxlxw\", \"\");\n\t\t\t}\n\t\t\t//格式化学校及院系\n\t\t\tString QRZXLXX = (String) dataMap.get(\"qrzxlxx\");\n\t\t\tString QRZXWXX = (String) dataMap.get(\"qrzxwxx\");\n\t\t\tString ZZXLXX = (String) dataMap.get(\"zzxlxx\");\n\t\t\tString ZZXWXX = (String) dataMap.get(\"zzxwxx\");\n\t\t\tif(!StringUtil.isEmpty(QRZXLXX)&&!StringUtil.isEmpty(QRZXWXX)&&!QRZXLXX.equals(QRZXWXX)){\n\t\t\t\tString qrzxlxx = QRZXLXX+\"\\r\\n\"+QRZXWXX;\n\t\t\t\tdataMap.put(\"qrzxlxx\", qrzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(QRZXLXX)){\n\t\t\t\tString qrzxlxx = QRZXLXX;\n\t\t\t\tdataMap.put(\"qrzxlxx\", qrzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(QRZXWXX)){\n\t\t\t\tString qrzxlxx = QRZXWXX;\n\t\t\t\tdataMap.put(\"qrzxlxx\", qrzxlxx);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"qrzxlxx\", \"\");\n\t\t\t}\n\t\t\tif(!StringUtil.isEmpty(ZZXLXX)&&!StringUtil.isEmpty(ZZXWXX)&&!ZZXLXX.equals(ZZXWXX)){\n\t\t\t\tString zzxlxx = ZZXLXX+\"\\r\\n\"+ZZXWXX;\n\t\t\t\tdataMap.put(\"zzxlxx\", zzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(ZZXLXX)){\n\t\t\t\tString zzxlxx = ZZXLXX;\n\t\t\t\tdataMap.put(\"zzxlxx\", zzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(ZZXWXX)){\n\t\t\t\tString zzxlxx = ZZXWXX;\n\t\t\t\tdataMap.put(\"zzxlxx\", zzxlxx);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"zzxlxx\", \"\");\n\t\t\t}\n\t\t\tif(a1701 != null){\n\t\t\t\t//简历格式化\n\t\t\t\tStringBuffer originaljl = new StringBuffer(\"\");\n\t\t\t\tString jianli = AddPersonPageModel.formatJL(a1701,originaljl);\n\t\t\t\ta1701 = jianli;\n\t\t\t\tdataMap.put(\"a1701\", a1701);\n\t\t\t}\n\t\t\tif(a0107 != null && !\"\".equals(a0107)){\n\t\t\t\ta0107 = a0107.substring(0,4)+\".\"+a0107.substring(4,6);\n\t\t\t\tdataMap.put(\"a0107\", a0107);\n\t\t\t}\n\t\t\tif(a0134 != null && !\"\".equals(a0134)){\n\t\t\t\ta0134 = a0134.substring(0,4)+\".\"+a0134.substring(4,6);\n\t\t\t\tdataMap.put(\"a0134\", a0134);\n\t\t\t}\n\t\t\t//姓名2个字加空格\n\t\t\tif(a0101 != null){\n\t\t\t\tif(a0101.length() == 2){\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t int length = a0101.length();\n\t\t\t\t for (int i1 = 0; i1 < length; i1++) {\n\t\t\t\t if (length - i1 <= 2) { //防止ArrayIndexOutOfBoundsException\n\t\t\t\t sb.append(a0101.substring(i1, i1 + 1)).append(\" \");\n\t\t\t\t sb.append(a0101.substring(i1 + 1));\n\t\t\t\t break;\n\t\t\t\t }\n\t\t\t\t sb.append(a0101.substring(i1, i1 + 1)).append(\" \");\n\t\t\t\t }\n\t\t\t\t dataMap.put(\"a0101\", sb.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t\t//dataList.add(dataMap);\n\t return dataMap;\n\t\t}", "static void cetak_data(String nama, int usia) {\n int tahun_sekarang = 2020, tahun_lahir = tahun_sekarang - usia;\r\n System.out.println(\"---------\\nNama Saya : \" + nama + \"\\nUsia Saya : \" + usia + \"\\nTahun Lahir : \" + tahun_lahir);\r\n }", "public static String formatarDataSemBarraDDMMAAAA(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public static String formatarDataAAAAMMDD(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "String getDataNascimento();", "private String cadenaABinario(String cadena){\n String cb = \"\";\n int longitud;\n for(int i = 0; i < cadena.length(); i++){\n cb += String.format(\"%8s\",Integer.toBinaryString(cadena.charAt(i)));\n }\n cb = formato(cb);\n return cb;\n }", "public void anazitisiSintagisVaseiAstheni() {\n\t\tint amkaCode = 0;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tamkaCode = sir.readPositiveInt(\"EISAGETAI TO AMKA TOU ASTHENH: \"); // Zitaw apo ton xrhsth na mou dwsei ton amka tou asthenh pou thelei\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t\tif(amkaCode == prescription[i].getPatientAmka()) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou proorizetai gia ton sygkekrimeno asthenh\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t\tprescription[i].print(); // Emfanizw thn/tis sintagh/sintages oi opoies proorizontai gia ton sigkekrimeno asthenh\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\ttmp_2++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON ASTHENH ME AMKA: \" + amkaCode);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "public static String convertOrarioToFascia(String data) {\n String[] data_splitted = data.split(\" \");\n String orario = data_splitted[1];\n String[] ora_string = orario.split(\":\");\n Integer ora = Integer.parseInt(ora_string[0]);\n if(ora<12){\n return \"prima\";\n }else{\n return \"seconda\";\n }\n }", "private StringBuilder getA1RateBuilder() throws UnsupportedEncodingException, ParseException {\n\n\t\tint colNum = 15;\n\t\tStringBuilder commonTr = new StringBuilder();\n\t\tStringBuilder commonTd = new StringBuilder();\n\t\t\n\t\tList<String> thList = new ArrayList<>(colNum);\n\t\t//TODO thList add 1 2~15 期\n\t\tthList.add(new String((\"1_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"2_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"3_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"4_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"5_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"6_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"7_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"8_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"9_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"10_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"11_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"12_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"13_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"14_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"15_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\t\n\t\tnew String((\"上月差额补足金额\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\t\n\t\t//List<Map<String, Object>> tdList = new ArrayList<>();\n\t\t\n\t\t\n\t\t\n\t\t//tdList = trustContributionServer.getA1List(partnerCode);\n\t\t\t\n\t\tcommonTr = this.getCommonTr(thList,colNum);\n\t\t\n\t\tcommonTd = this.getCommonTd();\n\t\t\t\n\t\t//TODO add\n\t\tcommonTr.append(commonTd).append(\"</table>\").append(\"</div>\");\n\t\t//commonTr.append(\"</table>\").append(\"</div>\");\n\t\t\n\t\treturn commonTr;\n\t}", "public String apavada_prakruti_bhava(String X_anta, String X_adi)\n {\n\n Log.info(\"*******ENTERED AAPAVADA NIYAMA 3**********\");\n String anta = EncodingUtil.convertSLPToUniformItrans(X_anta); // anta\n // is\n // ITRANS\n // equivalent\n String adi = EncodingUtil.convertSLPToUniformItrans(X_adi); // adi is\n // ITRANS\n // equivalent\n\n String return_me = \"UNAPPLICABLE\";\n // 249\n if (VowelUtil.isPlutanta(X_anta) && X_adi.equals(\"iti\"))\n {// checked:29-6\n\n return_me = prakruti_bhava(X_anta, X_adi) + \", \" + utsarga_sandhi(X_anta, X_adi) + \"**\";\n ;\n /*\n * sandhi_notes = usg1 + sandhi_notes + \"\\nRegular Sandhis which\n * were being blocked by \" + \"pluta-pragRRihyA-aci-nityam(6.1.121)\n * are allowed by \" + \" 'apluta-vadupasthite' (6.2.125)\" + \"\\n\" +\n * usg2 ;\n * \n * sandhi_notes+= Prkr + apavada + depend + sutra +\n * \"pluta-pragRRihyA aci nityam' (6.1.121)\" + \"\\nCondition: Only if\n * String 1 is a Vedic Usage(Arsha-prayoga)\";\n * \n * //This note below goes after the Notes returned fropm\n * utsarga_sandhi above String cond1 = \"\\nRegular Sandhis which were\n * being blocked by \" + \"'pluta-pragRRihyA-aci-nityam'(6.1.121) are\n * allowed by \" + \" 'apluta-vadupasthite' (6.2.125)\";\n * vowel_notes.append_condition(cond1); ;\n */\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n comments.decrementPointer();\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.121\");\n comments.setSutraPath(\"pluta-pragRRihyA aci nityam\");\n comments.setSutraProc(\"Prakruti Bhava\");\n comments.setSource(Comments.sutra);\n String cond1 = \"pluta-ending word or a pragRRihya followed by any Vowel result in Prakruti bhava sandhi.\\n\" + \"<pluta-ending> || pragRRihya + vowel = prakruti bhava.\";\n comments.setConditions(cond1);\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.2.125\");\n comments.setSutraPath(\"apluta-vadupasthite\");\n comments.setSutraProc(\"utsargic Sandhis Unblocked\");\n comments.setSource(Comments.sutra);\n String cond2 = depend + \"According to 6.1.121 plutantas followed by Vowels result in prakruti-bhaava\\n\" + \"However if the word 'iti' used is non-Vedic, then regular sandhis block 6.1.121.\";\n\n comments.setConditions(cond2);\n\n }\n\n // 250\n else if ((X_anta.endsWith(\"I3\") || X_anta.endsWith(\"i3\")) && VowelUtil.isAjadi(X_adi))\n // was making mistake of using vowel.is_Vowel(X_adi) */ )\n {// checked:29-6\n Log.info(\"came in 250\");\n return_me = utsarga_sandhi(X_anta, X_adi); // fixed error above:\n // was sending ITRANS\n // values rather than\n // SLP\n /*\n * sandhi_notes += apavada + sutra + \"'I3 cAkravarmaNasya'\n * (6.1.126)\" + \"Blocks 'pluta-pragRRihyA aci nityam' (6.1.121)\";\n */\n // vowel_notes.start_adding_notes();\n // vowel_notes.set_sutra_num(\"6.1.126\") ;\n // vowel_notes.setSutraPath(\"I3 cAkravarmaNasya\") ;\n // vowel_notes.set_sutra_proc(\"para-rupa ekadesh\");\n // vowel_notes.set_source(tippani.sutra) ;\n String cond1 = \"According to chaakravarman pluta 'i' should be trated as non-plutanta.\\n\" + \"Given in Panini Sutra 'I3 cAkravarmaNasya' (6.1.126). This sutra allows General Sandhis to operate by blocking\" + \"'pluta-pragRRihyA aci nityam' (6.1.121)\";\n comments.append_condition(cond1);\n\n }\n // prakrutibhava starts\n // 233-239 Vedic Usages\n // 243 : error (now fixed) shivA# isAgacha printing as sh-kaar ha-kaar\n // ikaar etc should be shakaar ikaar\n // **********ELSE IF****************//\n else if ((VowelUtil.isPlutanta(X_anta) || this.pragrhya == true) && VowelUtil.isAjadi(X_adi))\n // was making mistake of using Vowel.is_Vowel(X_adi) */ )\n {// checked:29-6\n Log.info(\"came in 243\");\n return_me = prakruti_bhava(X_anta, X_adi); // fixed error above:\n // was sending ITRANS\n // values rather than\n // SLP\n // sandhi_notes = Prkr + sutra + \"pluta-pragRRihyA aci nityam'\n // (6.1.121)\";\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.121\");\n comments.setSutraPath(\"pluta-pragRRihyA aci nityam\");\n comments.setSutraProc(\"prakruti bhava\");\n comments.setSource(Comments.sutra);\n String cond1 = \"pragRRihyas or plutantas followed by any vowel result in NO SANDHI which is prakruti bhava\"; // Fill\n // Later\n comments.setConditions(cond1);\n\n }\n // **********END OF ELSE IF****************//\n\n // **********ELSE IF****************//\n else if (anta.equals(\"go\") && adi.equals(\"indra\")) // Avan~Na Adesh\n {// checked:29-6\n String avang_adesh = EncodingUtil.convertSLPToUniformItrans(\"gava\"); // transform\n // ITRANS\n // gava\n // to\n // SLP\n return_me = guna_sandhi(avang_adesh, X_adi);\n // We have to remove guna_sandhi default notes\n // this is done by\n comments.decrementPointer();\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.120\");\n comments.setSutraPath(\"indre ca\");\n comments.setSutraProc(\"ava~nga Adesha followed by Guna Sandhi\");\n comments.setSource(Comments.sutra);\n String cond1 = \"Blocks Prakruti Bhava, and Ayadi Sandhi.\\n go + indra = go + ava~N + indra = gava + indra = gavendra.\"; // Fill\n // Later\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n // 241 242 Vik.\n // **********ELSE IF****************//\n else if (anta.equals(\"go\") && VowelUtil.isAjadi(X_adi))\n {// checked:29-6\n\n return_me = utsarga_sandhi(X_anta, X_adi); //\n String avang_adesh = EncodingUtil.convertSLPToUniformItrans(\"gava\"); // transform\n // ITRANS\n // gava\n // to\n // SLP\n return_me += \", \" + utsarga_sandhi(avang_adesh, X_adi);\n\n // We have to remove utsarga_sandhi default notes\n // this is done by\n comments.decrementPointer();\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.119\");\n comments.setSutraPath(\"ava~N sphoTayanasya\");\n comments.setSutraProc(\"ava~nga Adesha followed by Regular Vowel Sandhis\");\n comments.setSource(Comments.sutra);\n String cond1 = padanta + \"View Only Supported by Sphotaayana Acharya.\\n\" + \"padanta 'go' + Vowel gets an avana~N-adesh resulting in gava + Vowel.\"; // Fill\n // Later...filled\n comments.setConditions(cond1);\n\n if (X_adi.startsWith(\"a\"))\n {\n return_me += \", \" + prakruti_bhava(X_anta, X_adi);\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.118\");\n comments.setSutraPath(\"sarvatra vibhaaSaa goH\");\n comments.setSutraProc(\"Optional Prakruti Bhava for 'go'(cow)implying words ending in 'e' or 'o'.\");\n comments.setSource(Comments.sutra);\n String cond2 = \"Padanta Dependency. Prakruti bhava if 'go' is followed by any other Phoneme.\"; // Fill\n // Later\n comments.setConditions(cond2);\n\n return_me += \", \" + purva_rupa(X_anta, X_adi);\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.105\");\n comments.setSutraPath(\"e~NaH padAntAdati\");\n comments.setSutraProc(\"purva-rupa ekadesh\");\n comments.setSource(Comments.sutra);\n String cond3 = padanta + \"If a padanta word ending in either 'e' or 'o' is followed by an 'a' purva-rupa ekadesh takes place\" + \"\\npadanta <e~N> 'e/o' + 'a' = purva-rupa ekadesha. Blocks Ayadi Sandhi\";\n comments.setConditions(cond3);\n\n }\n }\n // **********END OF ELSE IF****************//\n\n // 243\n\n // 244\n\n // 246 -250 , 253-260\n\n Log.info(\"return_me == \" + return_me);\n Log.info(\"*******EXITED AAPAVADA NIYAMA3s**********\");\n\n return return_me; // apavada rules formulated by Panini\n }", "gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak.Aa getAa();", "public abstract java.lang.String getAcma_valor();", "public static void main(String[] args) throws Exception {\n String s;\n// s = \"0000000000000\";\n s = \"000000-123456\";\n// s = \"000000123456\";\n if (s.matches(\"^0+$\")) {\n s = \"0\";\n }else{\n s = s.replaceFirst(\"^0+\",\"\");\n }\n System.out.println(s);\n\n\n// System.out.println(StringUtils.addRight(s,'A',mod));\n// String s = \"ECPay thong bao: Tien dien T11/2015 cua Ma KH PD13000122876, la 389.523VND. Truy cap www.ecpay.vn hoac lien he 1900561230 de biet them chi tiet.\";\n// Pattern pattern = Pattern.compile(\"^(.+)[ ](\\\\d+([.]\\\\d+)*)+VND[.](.+)$\");\n// Matcher matcher = pattern.matcher(s);\n// if(matcher.find()){\n// System.out.println(matcher.group(2));\n// }\n }", "private static String m85766a(Aweme aweme) {\n if (aweme == null) {\n return \"\";\n }\n String m = C33230ac.m107238m(aweme);\n C7573i.m23582a((Object) m, \"MobUtils.getAid(data ?: return \\\"\\\")\");\n return m;\n }", "public void setAsapcata(java.lang.String asapcata) {\n this.asapcata = asapcata;\n }", "public String apavada_vriddhi(String X_anta, String X_adi)\n {\n\n Log.info(\"*******ENTERED AAPAVADA NIYAMA UNO**********\");\n Log.info(\"X_adi == \" + X_adi);\n String anta = EncodingUtil.convertSLPToUniformItrans(X_anta);\n // x.transform(X_anta); // anta is ITRANS equivalent\n String adi = EncodingUtil.convertSLPToUniformItrans(X_adi);\n // x.transform(X_adi); // adi is ITRANS equivalent\n\n Log.info(\"adi == \" + adi);\n\n String return_me = \"UNAPPLICABLE\";\n\n boolean bool1 = VowelUtil.isAkaranta(X_anta) && (adi.equals(\"eti\") || adi.equals(\"edhati\"));\n boolean bool2 = VowelUtil.isAkaranta(X_anta) && adi.equals(\"UTh\");\n\n // 203\n // **********IF****************//\n if (X_anta.endsWith(\"f\") && X_adi.startsWith(\"f\")) // watch out!!! must\n // be SLP not ITRANS\n {// checked:29-6\n String strip1 = VarnaUtil.stripAntyaVarna(X_anta);\n String strip2 = VarnaUtil.stripAdiVarna(X_adi);\n\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + strip1 + \"f\" + strip2;\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"RRiti RRi vA vacanam\");\n comments.setSutraProc(\"hrasva RRikara ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"small RRi followed by small RRi merge to become small RRi.\\n\" + \"RRi + RRi = RRi\";\n comments.setConditions(cond1);\n\n } // end of main if\n // **********END OF IF****************//\n\n // 204\n // **********IF****************//\n else if (X_anta.endsWith(\"f\") && X_adi.startsWith(\"x\")) // watch out!!!\n // must be SLP\n // not ITRANS\n { // checked:29-6 // SLP x = ITRANS LLi\n String strip1 = VarnaUtil.stripAntyaVarna(X_anta);\n String strip2 = VarnaUtil.stripAdiVarna(X_adi);\n\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + strip1 + \"x\" + strip2; // SLP\n // x =\n // ITRANS\n // LLi\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"LLiti LLi vA vacanam\");\n comments.setSutraProc(\"hrasva LLikara ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \" RRi/RRI followed by small LLi merge to become small LLi.\\n RRi/RRI + LLi = LLi\";\n comments.setConditions(cond1);\n\n } // end of main if\n // **********END OF IF****************//\n\n // 207a-b\n // **********ELSE IF****************//\n else if (bool1 || bool2)\n {\n // checked:29-6\n return_me = vriddhi_sandhi(X_anta, X_adi);\n\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n comments.decrementPointer();\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.86\");\n comments.setSutraPath(\"eti-edhati-UThsu\");\n comments.setSutraProc(\"vRRiddhi-ekadesh\");\n comments.setSource(Comments.sutra);\n\n String cond1 = \"akaara followed by declensions of 'iN', 'edha' and 'UTh\" + \"<eti/edhati/UTh> are replaced by their vRRiddhi counterpart.\\n\" + \"a/A/a3 + eti/edhati/UTha = VRRiddhi Counterpart.\\n\" + \"Pls. Note.My Program cannot handle all the declensions of given roots.\" + \"Hence will only work for one instance of Third Person Singular Form\";\n comments.setConditions(cond1);\n\n String cond2 = \"Blocks para-rupa Sandhi given by 'e~ni pararUpam' which had blocked Normal Vriddhi Sandhi\";\n\n if (bool1)\n comments.append_condition(cond2);\n else if (bool2) comments.append_condition(\"Blocks 'Ad guNaH'\");\n\n }\n\n // **********END OF ELSE IF****************//\n\n // 208\n // **********ELSE IF****************//\n else if (anta.equals(\"akSa\") && adi.equals(\"UhinI\"))\n {// checked:29-6\n return_me = \"akzOhiRI\"; // u to have give in SLP..had\n // ITRANS....fixed\n // not sending to vrridhit_sandhi becose of Na-inclusion\n // vriddhi_sandhi(X_anta,X_adi);\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n // ***/vowel_notes.decrement_pointer();/***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"akSAdUhinyAm\");\n comments.setSutraProc(\"vRRiddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"akSa + UhinI = akshauhiNI.Vartika blocks guna-sandhi ato allow vRRiddhi-ekadesh\";\n comments.setConditions(cond1);\n\n }\n // **********END OF ELSE IF****************//\n\n // 209\n // **********ELSE IF****************//\n else if (anta.equals(\"pra\") && (adi.equals(\"Uha\") || adi.equals(\"UDha\") || adi.equals(\"UDhi\") || adi.equals(\"eSa\") || adi.equals(\"eSya\")))\n // checked:29-6\n {\n return_me = vriddhi_sandhi(X_anta, X_adi);\n\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n /***/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"prAd-Uha-UDha-UDhi-eSa-eSyeSu\");\n comments.setSutraProc(\"vRRiddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"upasarga 'pra' + <prAd/Uha/UDha/UDhi/eSa/eSya> = vRRiddhi-ekadesha.\" + \"\\nVartika blocks para-rupa Sandhi and/or guna Sandhi to allow vRRidhi-ekadesh.\";\n\n comments.setConditions(cond1);\n\n }\n\n // **********END OF ELSE IF****************//\n\n // 210\n // **********ELSE IF****************//\n else if (anta.equals(\"sva\") && (adi.equals(\"ira\") || adi.equals(\"irin\")))\n {\n // checked:29-6\n return_me = vriddhi_sandhi(X_anta, X_adi);\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n /***/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"svaadireriNoH\");\n comments.setSutraProc(\"vRRiddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"sva + <ira/irin> = vRRIddhi.\\n Blocks Guna Sandhi.\" + \"\\nPls. note. My program does not cover sandhi with declensions.\";\n comments.setConditions(cond1);\n }\n\n // **********END OF ELSE IF****************//\n\n // 211 Vik. Semantic Dependency\n // **********ELSE IF****************//\n else if (VowelUtil.isAkaranta(X_anta) && X_adi.equals(\"fta\"))// adi.equals(\"RRita\"))\n {\n // checked:29-6\n // not working for 'a' but working for 'A'. Find out why...fixed\n\n return_me = utsarga_prakruti_bhava(X_anta, X_adi) + \", \" + vriddhi_sandhi(X_anta, X_adi) + \"**\";\n\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n /***/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"RRite ca tRRitIyAsamAse\");\n comments.setSutraProc(\"Vriddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"If an akaranta ('a/aa/a3'-terminating phoneme) is going to form a Tritiya Samas compound with a RRi-initial word\" + \" vRRiddhi-ekadesha takes place blocking other rules.\\n\" + \"a/A/a3 + RRi -> Tritiya Samaasa Compound -> vRRiddhi-ekadesh\" + depend;\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n // 212-213\n // **********ELSE IF****************//\n else if ((anta.equals(\"pra\") || anta.equals(\"vatsatara\") || anta.equals(\"kambala\") || anta.equals(\"vasana\") || anta.equals(\"RRiNa\") || anta.equals(\"dasha\")) && adi.equals(\"RRiNa\"))\n\n // checked:29-6\n { // pra condition not working...fixed now . 5 MAR 05\n // return_me = guna_sandhi(X_anta,X_adi) + \", \" +\n // prakruti_bhava(X_anta,X_adi)\n\n return_me = vriddhi_sandhi(X_anta, X_adi);\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n /***/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n // vowel_notes.set_sutra_num(\"\") ;\n comments.setVartikaPath(\"pra-vatsatara-kambala-vasanArNa dashaanAm RRiNe\");\n comments.setSutraProc(\"Vriddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"If 'pra' etc are followed by the word 'RRiNa',\" + \" vRRiddhi-ekadesh takes place blocking Guna and Prakruti Bhava Sandhis.\" + \"\\n<pra/vatsatara/kambala/vasana/RRiNa/dash> + RRiNa = vRRiddhi\";\n comments.setConditions(cond1);\n }\n // ???? also implement prakruti bhava\n\n /**\n * **YEs ACCORDING TO SWAMI DS but not according to Bhaimi Bhashya else\n * if ( adi.equals(\"RRiNa\") && (anta.equals(\"RRiNa\") ||\n * anta.equals(\"dasha\")) ) { return_me = vriddhi_sandhi(X_anta,X_adi);\n * //*sandhi_notes = VE + apavada + vartika + \"'RRiNa dashAbhyAm ca'.\" +\n * \"\\nBlocks Guna and Prakruti Bhava Sandhi\";\n * \n * vowel_notes.start_adding_notes(); vowel_notes.set_sutra_num(\"\") ;\n * vowel_notes.set_vartika_path(\"RRiNa dashAbhyAm ca\") ;\n * vowel_notes.set_sutra_proc(\"Vriddhi-ekadesh\");\n * vowel_notes.set_source(tippani.vartika) ; String cond1 =depend +\n * \"Blocks Guna and Prakruti Bhava Sandhi\";\n * vowel_notes.set_conditions(cond1);\n * /* return_me = utsarga_prakruti_bhava(X_anta,X_adi) + \", \" +\n * vriddhi_sandhi(X_anta,X_adi) + \"**\"; sandhi_notes = usg1 +\n * sandhi_notes; sandhi_notes+= \"\\n\" + usg2 + VE +apavada + vartika +\n * \"'RRiNa dashAbhyAm ca'.\" + depend; // .... this was when I assumed\n * this niyama is optional with other // ???? also implement prakruti\n * bhava }\n */\n // **********END OF ELSE IF****************//\n // 214 Vik. Semantic Dependency\n // **********ELSE IF****************//\n else if (anta.equals(\"A\") && VowelUtil.isAjadi(X_adi))\n {\n // checked:29-6\n // rules is A + Vowel = VRddhi\n\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + vriddhi_sandhi(X_anta, X_adi) + \"**\";\n /*******************************************************************\n * sandhi_notes = usg1 + sandhi_notes + \"\\n\" + usg2 ; // We have to\n * remove vriddhi_sandhi default notes // this is done by /\n ******************************************************************/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.87\");\n comments.setSutraPath(\"ATashca\");\n comments.setSutraProc(\"Vriddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = depend + \"if String 1 equals 'aa' and implies 'AT'-Agama and \" + \"String 2 is a verbal form. E.g. A + IkSata = aikSata not ekSata.\\n\" + \" 'aa' + Verbal Form = vRRiddhi-ekadesh\";\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n // **********ELSE IF****************//\n // akaranta uparga mein error....fixed 4 MAR\n // 215 Vik Semantic Dependency\n else if (is_akaranta_upsarga(X_anta) && X_adi.startsWith(\"f\")) // RRi\n // ==\n // SLP\n // 'f'USing\n // X_adi,\n // switched\n // to\n // Sharfe\n // Encoding\n { // according to Vedanga Prakash Sandhi Vishaya RRIkara is being\n // translated\n // but checked with SC Basu Trans. it is RRIta not RRikara\n // checked:29-6\n\n Log.info(\" Rules 215 applies\");\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + vriddhi_sandhi(X_anta, X_adi) + \"**\";\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n // vowel_notes.decrement_pointer();\n\n // July 14 2005.. I have removed the above line\n // vowel_notes.decrement_pointer();\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.88\");\n comments.setSutraPath(\"upasargAdRRiti dhAtau\");\n comments.setSutraProc(\"Vriddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = depend + \"akaranta upsarga(preverb) followed by verbal form begining with short RRi.\\n \" + \"preverb ending in <a> + verbal form begining with RRi = vRRiddhi-ekadesha\\n\";\n\n /*\n * \"By 6.1.88 it should block all \" + \"optional forms but by 'vA\n * supyApishaleH' (6.1.89) subantas are \" + \"permitted the Guna\n * option.\";\n */\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n Log.info(\"return_me == \" + return_me);\n Log.info(\"*******EXITED AAPAVADA NIYAMA UNO**********\");\n\n if (return_me.equals(\"UNAPPLICABLE\"))\n {\n return_me = apavada_para_rupa(X_anta, X_adi); // search for more\n // apavada rules\n }\n return return_me; // apavada rules formulated by Panini apply\n }", "public static void readAcu() throws IOException, ClassNotFoundException, SQLException\n\t{\n\tString line;\n\tFile worksheet = new File(\"/Users/sturtevantauto/Pictures/Car_Pictures/XPS/6715329.acu\");\n\t\tBufferedReader reader = new BufferedReader(new FileReader(worksheet));\n\t\tint i = 1;\n\t\tString namebegin = null;\n\t\tboolean sw = false;\n\t\tint linebegin = 0;\n\t\twhile ((line = reader.readLine()) != null)\n\t\t{\n\t\t\tif(line.contains(\"-\"))\n\t\t\t{\n\t\t\t\tString[] lines = line.split(\"-\");\n\t\t\t\tif(Character.isDigit(lines[0].charAt((lines[0].length() - 1))))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString[] endlines = lines[1].split(\" \");\n\t\t\t\t\t\t\tendlines[0] = endlines[0].trim();\n\t\t\t\t\t\t\tint partnum = Integer.parseInt(lines[0].substring((lines[0].length() - 3), lines[0].length()));\n\t\t\t\t\t\t\tString partend = endlines[0];\n\t\t\t\t\t\t\t//System.out.println(findLine(DATReader.findPartName(partnum)));\n\t\t\t\t\t\t\tString name = DATReader.findPartName(partnum);\n\t\t\t\t\t\t\tif(!name.equals(namebegin))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnamebegin = name;\n\t\t\t\t\t\t\tsw = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(sw)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsw = false;\n\t\t\t\t\t\t\tlinebegin = findLine(name);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] linetext = findText(linebegin, i, name);\n\t\t\t\t\t\t\tint q = 1;\n\t\t\t\t\t\t\tfor(String print : linetext)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(print != null)\n\t\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\tprint = print.replace(\".\", \"\");\n\t\t\t\t\t\t\t\tSystem.out.println(q + \": \" + print);\n\t\t\t\t\t\t\t\tq++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlinebegin = i;\n\t\t\t\t\t\t\t//System.out.println(partnum + \"-\" + partend);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t }\n\t\treader.close();\n\n\t}", "public String getTranslation()\n {\n StringBuilder aminoAcid = new StringBuilder();\n Map<String, String> codToAa = Map.ofEntries(\n entry(\"ATA\", \"I\"), entry(\"ATC\", \"I\"), entry(\"ATT\", \"I\"), entry(\"ATG\", \"M\"),\n entry(\"ACA\", \"T\"), entry(\"ACC\", \"T\"), entry(\"ACG\", \"T\"), entry(\"ACT\", \"T\"),\n entry(\"AAC\", \"N\"), entry(\"AAT\", \"N\"), entry(\"AAA\", \"K\"), entry(\"AAG\", \"K\"),\n entry(\"AGC\", \"S\"), entry(\"AGT\", \"S\"), entry(\"AGA\", \"R\"), entry(\"AGG\", \"R\"),\n entry(\"CTA\", \"L\"), entry(\"CTC\", \"L\"), entry(\"CTG\", \"L\"), entry(\"CTT\", \"L\"),\n entry(\"CCA\", \"P\"), entry(\"CCC\", \"P\"), entry(\"CCG\", \"P\"), entry(\"CCT\", \"P\"),\n entry(\"CAC\", \"H\"), entry(\"CAT\", \"H\"), entry(\"CAA\", \"Q\"), entry(\"CAG\", \"Q\"),\n entry(\"CGA\", \"R\"), entry(\"CGC\", \"R\"), entry(\"CGG\", \"R\"), entry(\"CGT\", \"R\"),\n entry(\"GTA\", \"V\"), entry(\"GTC\", \"V\"), entry(\"GTG\", \"V\"), entry(\"GTT\", \"V\"),\n entry(\"GCA\", \"A\"), entry(\"GCC\", \"A\"), entry(\"GCG\", \"A\"), entry(\"GCT\", \"A\"),\n entry(\"GAC\", \"D\"), entry(\"GAT\", \"D\"), entry(\"GAA\", \"E\"), entry(\"GAG\", \"E\"),\n entry(\"GGA\", \"G\"), entry(\"GGC\", \"G\"), entry(\"GGG\", \"G\"), entry(\"GGT\", \"G\"),\n entry(\"TCA\", \"S\"), entry(\"TCC\", \"S\"), entry(\"TCG\", \"S\"), entry(\"TCT\", \"S\"),\n entry(\"TTC\", \"F\"), entry(\"TTT\", \"F\"), entry(\"TTA\", \"L\"), entry(\"TTG\", \"L\"),\n entry(\"TAC\", \"Y\"), entry(\"TAT\", \"Y\"), entry(\"TAA\", \"_\"), entry(\"TAG\", \"_\"),\n entry(\"TGC\", \"C\"), entry(\"TGT\", \"C\"), entry(\"TGA\", \"_\"), entry(\"TGG\", \"W\")\n );\n try\n {\n for (int i = 0; i < this.sequence.length(); i += 3)\n {\n aminoAcid.append(codToAa.get(this.sequence.substring(i, i + 3)));\n }\n }\n catch (StringIndexOutOfBoundsException ignored)\n {\n }\n return aminoAcid.toString();\n }", "public DocumentData parseData(byte[] data) throws Exception {\n if (data.length < 30) {\n throw new Exception(\"Unsupported barcode encoding\");\n }\n byte complianceIndicator = data[0];\n if (complianceIndicator == 0x40) {\n // May be AAMVA\n byte elementSeparator = data[1];\n byte recordSeparator = data[2];\n byte segmentTerminator = data[3];\n byte[] fileType = Arrays.copyOfRange(data, 4, 9);\n byte[] iin = Arrays.copyOfRange(data, 9, 15);\n int aamvaVersionNumber = dataToInt(Arrays.copyOfRange(data, 15, 17));\n AAMVASubfileParser subfileParser = new AAMVASubfileParser(aamvaVersionNumber, elementSeparator);\n byte[] jurisdictionVersionNumber = Arrays.copyOfRange(data, 17, 19);\n int numberOfEntries = dataToInt(Arrays.copyOfRange(data, 19, 21));\n int index = 21;\n AAMVADocumentData documentData = null;\n for (int i=0; i<numberOfEntries; i++) {\n String subfileType = new String(Arrays.copyOfRange(data, index, index+2), UTF8);\n int offset = dataToInt(Arrays.copyOfRange(data, index+2, index+6));\n int length = dataToInt(Arrays.copyOfRange(data, index+6, index+10));\n int start = Math.min(offset, data.length);\n int end = Math.min(offset+length, data.length);\n if (numberOfEntries == 1 && offset == 0) {\n start = data.length - length;\n end = data.length;\n }\n AAMVADocumentData subData = subfileParser.parseFields(Arrays.copyOfRange(data, start, end));\n if (documentData == null) {\n documentData = subData;\n } else {\n documentData.appendFieldsFrom(subData);\n }\n index += 10;\n }\n if (documentData == null || documentData.isEmpty()) {\n throw new Exception(\"Empty document\");\n }\n return documentData;\n } else if (data[0] == 0x25) {\n MagStripeDocumentData documentData = new MagStripeDocumentData();\n String track = new String(data, StandardCharsets.US_ASCII);\n String jurisdiction = track.substring(1, 3);\n documentData.setValue(new DataField(\"State/Province\", jurisdiction, jurisdiction), \"State/Province\");\n track = track.substring(3);\n String city = getStringToDelimiter(track, \"^\", 13);\n documentData.setValue(new DataField(\"City\", city, city), \"City\");\n track = track.substring(city.length());\n track = leftTrimString(track, \"^\");\n String name = getStringToDelimiter(track, \"^\", 35);\n String[] names = name.split(\"\\\\$\");\n if (names.length > 2) {\n documentData.setValue(new DataField(\"Title\", names[2], names[2].trim()), \"Title\");\n }\n if (names.length > 1) {\n documentData.setValue(new DataField(\"First name\", names[1], StringUtils.strip(names[1], \"/, \")), \"First name\");\n }\n if (names.length > 0) {\n documentData.setValue(new DataField(\"Last name\", names[0], StringUtils.strip(names[0], \"/, \")), \"Last name\");\n }\n track = track.substring(name.length());\n track = leftTrimString(track, \"^\");\n String address = getStringToDelimiter(track, \"^\", 77 - city.length() - name.length());\n address = getStringToDelimiter(address, \"?\", address.length());\n String[] addressFields = address.split(\"\\\\$\");\n address = TextUtils.join(\"\\n\", addressFields);\n documentData.setValue(new DataField(\"Address\", address, address), \"Address\");\n if (track.substring(0, 1).equals(\"?\")) {\n track = track.substring(1);\n }\n int delimiterIndex = track.indexOf(\";\");\n if (delimiterIndex > -1) {\n track = track.substring(delimiterIndex+1);\n String iin = track.substring(0, 6);\n documentData.setValue(new DataField(\"IIN\", iin, iin), \"IIN\");\n track = track.substring(6);\n String dlNo = getStringToDelimiter(track, \"=\", 13);\n track = track.substring(dlNo.length());\n track = leftTrimString(track, \"=\");\n String expiryYear = \"20\"+track.substring(0, 2);\n String expiryMonth = track.substring(2, 4);\n track = track.substring(4);\n String birthYear = track.substring(0, 4);\n String birthMonth = track.substring(4, 6);\n String birthDate = track.substring(6, 8);\n track = track.substring(8);\n String expiryDate = null;\n if (expiryMonth.equals(\"77\")) {\n expiryDate = \"non-expiring\";\n } else if (expiryMonth.equals(\"88\")) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(Integer.parseInt(\"20\" + expiryYear) + 1, Integer.parseInt(birthMonth), 1);\n expiryDate = Integer.toString(calendar.getActualMaximum(Calendar.DAY_OF_MONTH));\n expiryDate = expiryDate + \"/\" + birthMonth + \"/\" + expiryYear;\n } else if (expiryMonth.equals(\"99\")) {\n expiryDate = birthDate + \"/\" + birthMonth + \"/\" + expiryYear;\n } else {\n Calendar calendar = Calendar.getInstance();\n calendar.set(Integer.parseInt(\"20\" + expiryYear), Integer.parseInt(expiryMonth), 1);\n expiryDate = Integer.toString(calendar.getActualMaximum(Calendar.DAY_OF_MONTH));\n expiryDate = expiryDate + \"/\" + expiryMonth + \"/\" + expiryYear;\n }\n documentData.setValue(new DataField(\"Date of expiry\", expiryDate, expiryDate), \"Date of expiry\");\n documentData.setValue(new DataField(\"Date of birth\", birthDate+birthMonth+birthYear, birthDate+\"/\"+birthMonth+\"/\"+birthYear), \"Date of birth\");\n if (track.length() > 0) {\n String dlNoOverflow = getStringToDelimiter(track, \"=\", 5);\n if (!dlNoOverflow.isEmpty()) {\n dlNo += dlNoOverflow;\n }\n }\n documentData.setValue(new DataField(\"DL/ID#\", dlNo, dlNo), \"DL/ID#\");\n delimiterIndex = track.indexOf(\"%\");\n }\n if (delimiterIndex > -1) {\n track = track.substring(delimiterIndex+1);\n String versionNumber = track.substring(0, 1);\n documentData.setValue(new DataField(\"Version #\", versionNumber, versionNumber), \"Version #\");\n track = track.substring(1);\n String securityVersionNumber = track.substring(0, 1);\n documentData.setValue(new DataField(\"Security v. #\", securityVersionNumber, securityVersionNumber), \"Security v. #\");\n track = track.substring(1);\n String postalCode = StringUtils.strip(track.substring(0, 11), \"/, \");\n documentData.setValue(new DataField(\"Postal code\", postalCode, postalCode), \"Postal code\");\n track = track.substring(11);\n String dlClass = track.substring(0, 2).trim();\n if (!dlClass.isEmpty()) {\n documentData.setValue(new DataField(\"Class\", dlClass, dlClass), \"Class\");\n }\n track = track.substring(2);\n String restrictions = track.substring(0, 10).trim();\n if (!restrictions.isEmpty()) {\n documentData.setValue(new DataField(\"Restrictions\", restrictions, restrictions), \"Restrictions\");\n }\n track = track.substring(10);\n String endorsements = track.substring(0, 4).trim();\n if (!endorsements.isEmpty()) {\n documentData.setValue(new DataField(\"Endorsements\", endorsements, endorsements), \"Endorsements\");\n }\n track = track.substring(4);\n String sex = track.substring(0, 1);\n documentData.setValue(new DataField(\"Sex\", sex, sex), \"Sex\");\n track = track.substring(1);\n String height = track.substring(0, 3).trim();\n if (!height.isEmpty()) {\n documentData.setValue(new DataField(\"Height\", height, height), \"Height\");\n }\n track = track.substring(3);\n String weight = track.substring(0, 3).trim();\n if (!weight.isEmpty()) {\n documentData.setValue(new DataField(\"Weight\", weight, weight), \"Weight\");\n }\n track = track.substring(3);\n String hairColour = track.substring(0, 3).trim();\n if (!hairColour.isEmpty()) {\n documentData.setValue(new DataField(\"Hair color\", hairColour, getHairColour(hairColour)), \"Hair color\");\n }\n track = track.substring(3);\n String eyeColour = track.substring(0, 3).trim();\n if (!eyeColour.isEmpty()) {\n documentData.setValue(new DataField(\"Eye color\", eyeColour, getEyeColour(eyeColour)), \"Eye color\");\n }\n }\n return documentData;\n }\n throw new Exception(\"Nothing decoded\");\n }", "public void mo1606a(Format format) {\n }", "public String processMessage() throws ICANException {\n String aSegment;\n HL7Group aGroup;\n HL7Message aInMess = new HL7Message(mHL7Message);\n HL7Segment aInMSHSegment = new HL7Segment(aInMess.getSegment(\"MSH\"));\n HL7Segment aOutMSHSegment = processMSHToUFD();\n if (mEnvironment.indexOf(\"TEST\") >= 0) {\n String aSendingApp = aOutMSHSegment.get(HL7_23.MSH_3_sending_application);\n if (aSendingApp.indexOf(\".TEST\") >= 0) {\n aOutMSHSegment.set(HL7_23.MSH_3_sending_application, aSendingApp.substring(0, aSendingApp.length() - 5));\n }\n }\n HL7Message aOutMess = new HL7Message(aOutMSHSegment.getSegment());\n\n if(aInMess.isEvent(\"A01, A02, A03, A08, A11, A12, A13, A21, A22, A28, A31\")) {\n aOutMess.append(processEVNToUFD());\n aOutMess.append(processPIDToUFD());\n aOutMess.append(processNK1s_ToUFD());\n aOutMess.append(processPV1ToUFD());\n aOutMess.append(processPV2ToUFD());\n aOutMess.append(processOBXs_ToUFD());\n aOutMess.append(processAL1s_ToUFD());\n aOutMess.append(processDG1s_ToUFD());\n aOutMess.append(processDRGToUFD());\n aOutMess.append(processPR1s_ToUFD());\n aOutMess.append(processGT1s_ToUFD());\n aOutMess.append(processInsuranceToUFD());\n aOutMess.append(processCSC_ZsegmentsToUFD());\n\n } else if (aInMess.isEvent(\"A17\")) {\n aOutMess.append(processEVNToUFD().getSegment());\n aOutMess.append(processA17GroupToUFD(1));\n aOutMess.append(processA17GroupToUFD(2));\n\n } else if (aInMess.isEvent(\"A34\")) {\n aOutMess.append(processEVNToUFD().getSegment());\n aOutMess.append(processPIDToUFD().getSegment());\n aOutMess.append(processMRGToUFD().getSegment());\n }\n if (aOutMess.getMessage().length() > 0) {\n aOutMess.append(setupZBX(\"MESSAGE\", \"SOURCE_ID\", aInMSHSegment.get(HL7_23.MSH_10_message_control_ID)));\n }\n return aOutMess.getMessage();\n }", "@Test\n public void RegistroC380Test() throws ParseException {\n RegistroC380 reg = new RegistroC380();\n LineModel line = reg.createModel();\n SimpleDateFormat sdf = new SimpleDateFormat(\"ddMMyyyy\");\n Date data = sdf.parse(\"17121986\");\n \n //02\n line.setFieldValue(RegistroC380.COD_MOD, \"02\");\n //03\n line.setFieldValue(RegistroC380.DT_DOC_INI, data);\n //04\n line.setFieldValue(RegistroC380.DT_DOC_FIN, data);\n //05\n line.setFieldValue(RegistroC380.NUM_DOC_INI, 123456L);\n //06\n line.setFieldValue(RegistroC380.NUM_DOC_FIN, 123456L);\n //07\n line.setFieldValue(RegistroC380.VL_DOC, 78911.11);\n //08\n line.setFieldValue(RegistroC380.VL_DOC_CANC, 78911.11);\n\n StringBuffer sb = line.getRepresentation();\n System.out.print(sb);\n// String expected = \"|C380|02|17121986|17121986|123456|123456|78911,11|78911,11|\";\n// assertEquals (expected, sb.toString());\n }", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "private AtualizarContaPreFaturadaHelper parserRegistroTipo1(String linha) {\r\n\t\tAtualizarContaPreFaturadaHelper retorno = new AtualizarContaPreFaturadaHelper();\r\n\r\n\t\tInteger index = 0;\r\n\r\n\t\t// Tipo de registro\r\n\t\tretorno.tipoRegistro = linha.substring(index, index + REGISTRO_TIPO);\r\n\t\tindex += REGISTRO_TIPO;\r\n\r\n\t\t// Matricula do imovel\r\n\t\tretorno.matriculaImovel = linha.substring(index, index\r\n\t\t\t\t+ MATRICULA_IMOVEL);\r\n\t\tindex += MATRICULA_IMOVEL;\r\n\r\n\t\t// Tipo de medição\r\n\t\tretorno.tipoMedicao = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_TIPO_MEDICAO);\r\n\t\tindex += REGISTRO_TIPO_1_TIPO_MEDICAO;\r\n\r\n\t\t// Ano e mes do faturamento\r\n\t\tretorno.anoMesFaturamento = Util.formatarMesAnoParaAnoMes(linha\r\n\t\t\t\t.substring(index, index + REGISTRO_TIPO_1_ANO_MES_FATURAMENTO));\r\n\t\tindex += REGISTRO_TIPO_1_ANO_MES_FATURAMENTO;\r\n\r\n\t\t// Numero da conta\r\n\t\tretorno.numeroConta = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_NUMERO_CONTA);\r\n\t\tindex += REGISTRO_TIPO_1_NUMERO_CONTA;\r\n\r\n\t\t// Codigo do Grupo de faturamento\r\n\t\tretorno.codigoGrupoFaturamento = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CODIGO_GRUPO_FATURAMENTO);\r\n\t\tindex += REGISTRO_TIPO_1_CODIGO_GRUPO_FATURAMENTO;\r\n\r\n\t\t// Codigo da rota\r\n\t\tretorno.codigoRota = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CODIGO_ROTA);\r\n\t\tindex += REGISTRO_TIPO_1_CODIGO_ROTA;\r\n\r\n\t\t// Codigo da leitura do hidrometro\r\n\t\tretorno.leituraHidrometro = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_LEITURA_HIDROMETRO);\r\n\t\tindex += REGISTRO_TIPO_1_LEITURA_HIDROMETRO;\r\n\r\n\t\t// Anormalidade de Leitura\r\n\t\tretorno.anormalidadeLeitura = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_ANORMALIDADE_LEITURA);\r\n\t\tindex += REGISTRO_TIPO_1_ANORMALIDADE_LEITURA;\r\n\r\n\t\t// Data e Hora Leitura\r\n\t\tretorno.dataHoraLeituraHidrometro = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_DATA_HORA_LEITURA);\r\n\t\tindex += REGISTRO_TIPO_1_DATA_HORA_LEITURA;\r\n\r\n\t\t// Indicador de Confirmacao\r\n\t\tretorno.indicadorConfirmacaoLeitura = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_INDICADOR_CONFIRMACAO_LEITURA);\r\n\t\tindex += REGISTRO_TIPO_1_INDICADOR_CONFIRMACAO_LEITURA;\r\n\r\n\t\t// Leitura do Faturamento\r\n\t\tretorno.leituraFaturamento = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_LEITURA_FATURAMENTO);\r\n\t\tindex += REGISTRO_TIPO_1_LEITURA_FATURAMENTO;\r\n\r\n\t\t// Consumo Medido no mes\r\n\t\tretorno.consumoMedido = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_MEDIDO);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_MEDIDO;\r\n\r\n\t\t// Consumo a ser cobrado\r\n\t\tretorno.consumoASerCobradoMes = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_A_SER_COBRADO_MES);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_A_SER_COBRADO_MES;\r\n\r\n\t\t// Consumo rateio agua\r\n\t\tretorno.consumoRateioAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_RATEIO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_RATEIO_AGUA;\r\n\r\n\t\t// Valor rateio agua\r\n\t\tretorno.valorRateioAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_VALOR_RATEIO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_1_VALOR_RATEIO_AGUA;\r\n\r\n\t\t// Consumo rateio esgoto\r\n\t\tretorno.consumoRateioEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_RATEIO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_RATEIO_ESGOTO;\r\n\r\n\t\t// Valor rateio esgoto\r\n\t\tretorno.valorRateioEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_VALOR_RATEIO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_1_VALOR_RATEIO_ESGOTO;\r\n\r\n\t\t// Tipo de consumo\r\n\t\tretorno.tipoConsumo = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_TIPO_CONSUMO);\r\n\t\tindex += REGISTRO_TIPO_1_TIPO_CONSUMO;\r\n\r\n\t\t// Anormalidade de consumo\r\n\t\tretorno.anormalidadeConsumo = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_ANORMALIDADE_CONSUMO);\r\n\t\tindex += REGISTRO_TIPO_1_ANORMALIDADE_CONSUMO;\r\n\r\n\t\t// Indicador de emissao de conta\r\n\t\tretorno.indicacaoEmissaoConta = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_INDICACAO_EMISSAO_CONTA);\r\n\t\tindex += REGISTRO_TIPO_1_INDICACAO_EMISSAO_CONTA;\r\n\r\n\t\t// Inscricao\r\n\t\tString inscricao = \"\";\r\n\t\tinscricao = linha.substring(index, index + REGISTRO_TIPO_1_INSCRICAO);\r\n\t\tformatarInscricao(retorno, inscricao);\r\n\t\tindex += REGISTRO_TIPO_1_INSCRICAO;\r\n\r\n\t\t// Indicador Geração da conta\r\n\t\tretorno.indicadorGeracaoConta = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_INDICADOR_GERACAO_CONTA);\r\n\t\tindex += REGISTRO_TIPO_1_INDICADOR_GERACAO_CONTA;\r\n\r\n\t\t// consumo imóveis vinculados\r\n\t\tretorno.consumoImoveisVinculados = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_IMOVEIS_VINCULADOS);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_IMOVEIS_VINCULADOS;\r\n\r\n\t\t// anormalidade de faturamento\r\n\t\tretorno.anormalidadeFaturamento = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_ANORMALIDADE_FATURAMENTO);\r\n\t\tindex += REGISTRO_TIPO_1_ANORMALIDADE_FATURAMENTO;\r\n\r\n\t\t// Id Cobrança Documento\r\n\t\tretorno.idCobrancaDocumento = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_COBRANCA_DOCUMENTO);\r\n\t\tindex += REGISTRO_TIPO_1_NUMERO_CONTA;\r\n\r\n\t\t// Codigo da leitura do hidrometro anterior\r\n\t\tretorno.leituraHidrometroAnterior = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_LEITURA_HIDROMETRO_ANTERIOR);\r\n\t\tindex += REGISTRO_TIPO_1_LEITURA_HIDROMETRO_ANTERIOR;\r\n\r\n\t\t\r\n\t\tif (linha.length() > 200) {\r\n\t\t\t// Latitude\r\n\t\t\tretorno.latitude = linha.substring( index, index + REGISTRO_TIPO_1_LATITUDE );\r\n\t\t\tindex += REGISTRO_TIPO_1_LATITUDE;\r\n\r\n\t\t\t// Longitude\r\n\t\t\tretorno.longitude = linha.substring( index, index + REGISTRO_TIPO_1_LONGITUDE );\r\n\t\t\t index += REGISTRO_TIPO_1_LONGITUDE;\r\n\r\n\t\t\t// Versão do IS\r\n\t\t\tretorno.numeroVersao = linha.substring(index, index\t+ REGISTRO_TIPO_1_NUMERO_VERSAO);\r\n\t\t\tindex += REGISTRO_TIPO_1_NUMERO_VERSAO;\r\n\r\n\t\t} else {\r\n\t\t\t// Latitude\r\n\t\t\tretorno.latitude = \"0\";\r\n\r\n\t\t\t// Longitude\r\n\t\t\t retorno.longitude = \"0\";\r\n\r\n\t\t\t// Versão do IS\r\n\t\t\tretorno.numeroVersao = linha.substring(index, index\t+ REGISTRO_TIPO_1_NUMERO_VERSAO);\r\n\t\t\tindex += REGISTRO_TIPO_1_NUMERO_VERSAO;\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "void format01(String line, int lineCount) {\n\n // only 1 survey is allowed per load file - max of 9 code 01 lines\n code01Count++;\n if (prevCode > 1) {\n outputError((lineCount-1) + \" - Fatal - \" +\n \"More than 1 survey in data file : \" + code01Count);\n } // if (prevCode != 1)\n\n // get the data from the line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n int subCode = 0;\n if (t.hasMoreTokens()) subCode = toInteger(t.nextToken());\n switch (subCode) {\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '1' n/a\n //03 a9 survey_id e.g. '1997/0001' survey\n //04 a10 planam Platform name inventory\n case 1: if (t.hasMoreTokens()) survey.setSurveyId(t.nextToken());\n if (t.hasMoreTokens()) {\n dummy = t.nextToken(); //ub08\n while (t.hasMoreTokens()) dummy += \" \" + t.nextToken(); //ub08\n platformName = dummy;\n if (dummy.length() > 10) dummy = dummy.substring(0, 10);//ub06\n survey.setPlanam(dummy); //ub06\n if (dbg) System.out.println(\"planam = \" + platformName + \" \" + survey.getPlanam(\"\"));\n } // if (t.hasMoreTokens())\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '2' n/a\n //03 a15 expnam Expedition name, e.g. 'AJAXL2' survey\n case 2: if (t.hasMoreTokens()) {\n dummy = t.nextToken(); //ub08\n while (t.hasMoreTokens()) dummy += \" \" + t.nextToken(); //ub08\n expeditionName = dummy;\n if (dummy.length() > 10) dummy = dummy.substring(0, 10);//ub06\n survey.setExpnam(dummy); //ub06\n if (dbg) System.out.println(\"expnam = \" + expeditionName + \" \" + survey.getExpnam(\"\"));\n } // if (t.hasMoreTokens())\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '3' n/a\n //03 a3 institute 3-letter Institute code, e.g. 'RIO' survey\n //04 a28 prjnam project name, e.g. 'HEAVYMETAL' survey\n case 3: survey.setInstitute(t.nextToken());\n if (t.hasMoreTokens()) {\n dummy = t.nextToken(); //ub08\n while (t.hasMoreTokens()) dummy += \" \" + t.nextToken(); //ub08\n projectName = dummy;\n if (dummy.length() > 10) dummy = dummy.substring(0, 10);//ub06\n survey.setPrjnam(dummy); //ub06\n if (dbg) System.out.println(\"prjnam = \" + projectName + \" \" + survey.getPrjnam(\"\"));\n } // if (t.hasMoreTokens())\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '4' n/a\n //03 a10 domain e.g. 'SURFZONE', 'DEEPSEA' survey\n // domain corrected by user in form\n //case 4: inventory.setDomain(toString(line.substring(5)));\n //case 4: if (!loadFlag) inventory.setDomain(toString(line.substring(5)));\n case 4: //if (!loadFlag) {\n if (t.hasMoreTokens()) {\n dummy = t.nextToken(); //ub08\n while (t.hasMoreTokens()) dummy += \" \" + t.nextToken(); //ub08\n if (dummy.length() > 10) dummy = dummy.substring(0, 10);//ub06\n inventory.setDomain(dummy); //ub06\n } // if (t.hasMoreTokens())\n //} // if (!loadFlag)\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '5' n/a\n //03 a10 arenam Area name, e.g. 'AGULHAS BK' survey\n // area name corrected by user in form\n //case 5: inventory.setAreaname(toString(line.substring(5)));\n //case 5: if (!loadFlag) inventory.setAreaname(toString(line.substring(5)));\n case 5: //if (!loadFlag) {\n if (t.hasMoreTokens()) {\n dummy = t.nextToken(); //ub08\n while (t.hasMoreTokens()) dummy += \" \" + t.nextToken(); //ub08\n if (dummy.length() > 20) dummy = dummy.substring(0, 20);//ub06\n inventory.setAreaname(dummy); //ub06\n } // if (t.hasMoreTokens())\n //} // if (!loadFlag)\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '6' n/a\n //04 a10 insitute e.g. 'World Ocean database' inventory\n case 6: //if (!loadFlag) { //ub03\n if (t.hasMoreTokens()) { //ub03\n instituteName = t.nextToken(); //ub03\n while (t.hasMoreTokens()) //ub03\n instituteName += \" \" + t.nextToken(); //ub03\n } // if (t.hasMoreTokens()) //ub03\n //} // if (!loadFlag) //ub03\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '7' n/a\n //04 a10 chief scientist inventory\n case 7: //if (!loadFlag) { //ub03\n if (t.hasMoreTokens()) { //ub03\n chiefScientist = t.nextToken(); //ub03\n while (t.hasMoreTokens()) //ub03\n chiefScientist += \" \" + t.nextToken(); //ub03\n } // if (t.hasMoreTokens()) //ub03\n //} // if (!loadFlag) //ub03\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '8' n/a\n //04 a10 country e.g. 'Germany' inventory\n case 8: //if (!loadFlag) { //ub03\n if (t.hasMoreTokens()) { //ub03\n countryName = t.nextToken(); //ub03\n while (t.hasMoreTokens()) //ub03\n countryName += \" \" + t.nextToken(); //ub03\n } // if (t.hasMoreTokens()) //ub03\n //} // if (!loadFlag) //ub03\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '8' n/a\n //04 a10 submitting scientist load log\n case 9: //if (!loadFlag) { //ub03\n if (t.hasMoreTokens()) { //ub03\n submitScientist = t.nextToken(); //ub03\n while (t.hasMoreTokens()) //ub03\n submitScientist += \" \" + t.nextToken(); //ub03\n } // if (t.hasMoreTokens()) //ub03\n //!} // if (!loadFlag) //ub03\n break;\n } // switch (subCode)\n\n //survey.setSurveyId(toString(line.substring(2,11)));\n //survey.setPlanam(toString(line.substring(11,21)));\n //survey.setExpnam(toString(line.substring(21,31)));\n //survey.setInstitute(toString(line.substring(31,34)));\n //survey.setPrjnam(toString(line.substring(34,44)));\n //if (!loadFlag) {\n // inventory.setAreaname(toString(line.substring(44,54))); // use as default to show on screen\n // inventory.setDomain(toString(line.substring(54,64))); // use as default to show on screen\n //} // if (!loadFlag)\n\n if (dbg) System.out.println(\"<br>format01: line = \" + line);\n if (dbg) System.out.println(\"<br>format01: subCode = \" + subCode);\n\n }", "public java.lang.String getDataFromLMS();", "public Long obtenerUAporcodigo(Long oidMarca, Long oidCanal, Long oidPais,\n String codsgv, String codRegion, String codZona, String codSeccion,\n String codTer) throws MareException {\n \n UtilidadesLog.info(\"DAOZON.obtenerUAporcodigo(Long oidMarca, Long oidCanal, Long oidPais, String codsgv, String codRegion, String codZona, String codSeccion, String codTer): Entrada\");\n \n BigDecimal result;\n BelcorpService belcorpService;\n RecordSet respuestaRecordSet = null;\n Vector parametros = new Vector();\n\n StringBuffer stringBuffer = null;\n\n try {\n belcorpService = BelcorpService.getInstance();\n\n if (checkStr(codSeccion) && checkStr(codZona) &&\n checkStr(codRegion) && checkStr(codsgv) &&\n checkStr(codTer)) {\n //Chequeo sobre CodSGV,Region,Zona,Seccion. Para Territorio\n stringBuffer = new StringBuffer(\"SELECT T.OID_TERR as UA\");\n stringBuffer.append(\n \" FROM ZON_SUB_GEREN_VENTA SGV, ZON_REGIO R, ZON_ZONA Z, ZON_SECCI S, ZON_TERRI T, ZON_TERRI_ADMIN TA \");\n stringBuffer.append(\" WHERE \");\n stringBuffer.append(\" SGV.CANA_OID_CANA = \" +\n oidCanal.toString());\n stringBuffer.append(\" AND SGV.MARC_OID_MARC = \" +\n oidMarca.toString());\n stringBuffer.append(\" AND SGV.PAIS_OID_PAIS = \" +\n oidPais.toString());\n stringBuffer.append(\" AND SGV.COD_SUBG_VENT = '\" + codsgv +\n \"' \");\n stringBuffer.append(\" AND R.COD_REGI = '\" + codRegion + \"' \");\n stringBuffer.append(\" AND Z.COD_ZONA = '\" + codZona + \"' \");\n stringBuffer.append(\" AND S.COD_SECC = '\" + codSeccion + \"' \");\n stringBuffer.append(\" AND T.COD_TERR = '\" + codTer + \"' \");\n stringBuffer.append(\n \" AND R.ZSGV_OID_SUBG_VENT = SGV.OID_SUBG_VENT \");\n stringBuffer.append(\" AND Z.ZORG_OID_REGI = R.OID_REGI \");\n stringBuffer.append(\" AND S.ZZON_OID_ZONA = Z.OID_ZONA \");\n stringBuffer.append(\" AND TA.ZSCC_OID_SECC = S.OID_SECC \");\n stringBuffer.append(\" AND TA.TERR_OID_TERR = T.OID_TERR \"); \n stringBuffer.append(\" AND SGV.IND_BORR = 0 \");\n stringBuffer.append(\" AND R.IND_BORR = 0 \");\n stringBuffer.append(\" AND Z.IND_BORR = 0 \");\n stringBuffer.append(\" AND S.IND_BORR = 0 \");\n stringBuffer.append(\" AND T.IND_BORR = 0 \");\n stringBuffer.append(\" AND TA.IND_BORR = 0 \");\n \n respuestaRecordSet = belcorpService.dbService.executeStaticQuery(stringBuffer.toString());\n } else if (checkStr(codSeccion) && checkStr(codZona) &&\n checkStr(codRegion) && checkStr(codsgv)) {\n //Chequeo sobre CodSGV,Region,Zona,Seccion. Para Territorio\n stringBuffer = new StringBuffer(\"SELECT S.OID_SECC as UA\");\n stringBuffer.append(\n \" FROM ZON_SUB_GEREN_VENTA SGV, ZON_REGIO R, ZON_ZONA Z, ZON_SECCI S\");\n stringBuffer.append(\" WHERE \");\n stringBuffer.append(\" SGV.CANA_OID_CANA = \" +\n oidCanal.toString());\n stringBuffer.append(\" AND SGV.MARC_OID_MARC = \" +\n oidMarca.toString());\n stringBuffer.append(\" AND SGV.PAIS_OID_PAIS = \" +\n oidPais.toString());\n stringBuffer.append(\" AND SGV.COD_SUBG_VENT = '\" + codsgv +\n \"' \");\n stringBuffer.append(\" AND R.COD_REGI = '\" + codRegion + \"' \");\n stringBuffer.append(\" AND Z.COD_ZONA = '\" + codZona + \"' \");\n stringBuffer.append(\" AND S.COD_SECC = '\" + codSeccion + \"' \");\n stringBuffer.append(\n \" AND R.ZSGV_OID_SUBG_VENT = SGV.OID_SUBG_VENT \");\n stringBuffer.append(\" AND Z.ZORG_OID_REGI = R.OID_REGI \");\n stringBuffer.append(\" AND S.ZZON_OID_ZONA = Z.OID_ZONA \");\n stringBuffer.append(\" AND SGV.IND_BORR = 0 \");\n stringBuffer.append(\" AND R.IND_BORR = 0 \");\n stringBuffer.append(\" AND Z.IND_BORR = 0 \");\n stringBuffer.append(\" AND S.IND_BORR = 0 \");\n \n respuestaRecordSet = belcorpService.dbService.executeStaticQuery(stringBuffer.toString());\n } else if (checkStr(codsgv) && checkStr(codRegion) &&\n checkStr(codZona)) {\n //Chequeo sobre codSgv,Region,Zona. Para Seccion\n stringBuffer = new StringBuffer(\"SELECT Z.OID_ZONA as UA\");\n stringBuffer.append(\n \" FROM ZON_SUB_GEREN_VENTA SGV, ZON_REGIO R, ZON_ZONA Z\");\n stringBuffer.append(\" WHERE \");\n stringBuffer.append(\" SGV.CANA_OID_CANA = \" +\n oidCanal.toString());\n stringBuffer.append(\" AND SGV.MARC_OID_MARC = \" +\n oidMarca.toString());\n stringBuffer.append(\" AND SGV.PAIS_OID_PAIS = \" +\n oidPais.toString());\n stringBuffer.append(\" AND SGV.COD_SUBG_VENT = '\" + codsgv +\n \"' \");\n stringBuffer.append(\" AND R.COD_REGI = '\" + codRegion + \"' \");\n stringBuffer.append(\" AND Z.COD_ZONA = '\" + codZona + \"' \");\n stringBuffer.append(\n \" AND R.ZSGV_OID_SUBG_VENT = SGV.OID_SUBG_VENT \");\n stringBuffer.append(\" AND Z.ZORG_OID_REGI = R.OID_REGI \");\n stringBuffer.append(\" AND SGV.IND_BORR = 0 \");\n stringBuffer.append(\" AND R.IND_BORR = 0 \");\n stringBuffer.append(\" AND Z.IND_BORR = 0 \");\n \n respuestaRecordSet = belcorpService.dbService.executeStaticQuery(stringBuffer.toString());\n } else if (checkStr(codsgv) && checkStr(codRegion)) {\n //Chequeo sobre codSgv,Region. Para Zona.\n stringBuffer = new StringBuffer(\"SELECT R.OID_REGI as UA\");\n stringBuffer.append(\n \" FROM ZON_SUB_GEREN_VENTA SGV, ZON_REGIO R\");\n stringBuffer.append(\" WHERE \");\n stringBuffer.append(\" SGV.CANA_OID_CANA = \" +\n oidCanal.toString());\n stringBuffer.append(\" AND SGV.MARC_OID_MARC = \" +\n oidMarca.toString());\n stringBuffer.append(\" AND SGV.PAIS_OID_PAIS = \" +\n oidPais.toString());\n stringBuffer.append(\" AND SGV.COD_SUBG_VENT = '\" + codsgv +\n \"' \");\n stringBuffer.append(\" AND R.COD_REGI = '\" + codRegion + \"' \");\n stringBuffer.append(\n \" AND R.ZSGV_OID_SUBG_VENT = SGV.OID_SUBG_VENT \");\n stringBuffer.append(\" AND SGV.IND_BORR = 0 \");\n stringBuffer.append(\" AND R.IND_BORR = 0 \");\n \n respuestaRecordSet = belcorpService.dbService.executeStaticQuery(stringBuffer.toString());\n } else if (checkStr(codsgv)) {\n //Chequeo sobre codSgv. Para Region\n stringBuffer = new StringBuffer(\n \"SELECT SGV.OID_SUBG_VENT as UA\");\n stringBuffer.append(\" FROM ZON_SUB_GEREN_VENTA SGV\");\n stringBuffer.append(\" WHERE \");\n stringBuffer.append(\" SGV.CANA_OID_CANA = \" +\n oidCanal.toString());\n stringBuffer.append(\" AND SGV.MARC_OID_MARC = \" +\n oidMarca.toString());\n stringBuffer.append(\" AND SGV.PAIS_OID_PAIS = \" +\n oidPais.toString());\n stringBuffer.append(\" AND SGV.COD_SUBG_VENT = '\" + codsgv + \"' \");\n stringBuffer.append(\" AND SGV.IND_BORR = 0 \");\n \n respuestaRecordSet = belcorpService.dbService.executeStaticQuery(stringBuffer.toString());\n }\n } catch (MareMiiServiceNotFoundException serviceNotFoundException) {\n codigoError = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(serviceNotFoundException,\n UtilidadesError.armarCodigoError(codigoError));\n } catch (Exception exception) {\n codigoError = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(exception,\n UtilidadesError.armarCodigoError(codigoError));\n }\n\n if (respuestaRecordSet.esVacio()) {\n UtilidadesLog.info(\"DAOZON.obtenerUAporcodigo(Long oidMarca, Long oidCanal, Long oidPais, String codsgv, String codRegion, String codZona, String codSeccion, String codTer): Salida\");\n return null;\n } else {\n result = (BigDecimal) respuestaRecordSet.getValueAt(0, \"UA\");\n }\n UtilidadesLog.info(\"DAOZON.obtenerUAporcodigo(Long oidMarca, Long oidCanal, Long oidPais, String codsgv, String codRegion, String codZona, String codSeccion, String codTer): Salida\");\n return new Long(result.longValue());\n }", "public String HaToMa(double ha) {\n // ma = 100000*ha\n double ma = ha*100000;\n return check_after_decimal_point(ma);\n }", "Object obtenerPolizasPorFolioSolicitudNoCancelada(int folioSolicitud,String formatoSolicitud);", "@Override\n public void invoke(SimpleAssetsOperational simpleAssetsOperational, AnalysisContext context) {\n String des = simpleAssetsOperational.getDes();\n if (StringUtils.isBlank(des)) {\n ++index;\n return;\n }\n\n String replace2 = des.replace(\"\\n\", \"\");\n String replace = replace2.replace(\" \", \"\");\n switch (index) {\n case 0:\n break;\n case 1:\n break;\n case 2:\n // 单位名称:定远县分公司 填表人员姓名:吴松 联系方式:18955083799\n break;\n case 3:\n //手工网点总数量\n String var111 = replace.replace(\"个\",\"\");\n if (StringUtils.isNotBlank(var111)){\n int i = Integer.parseInt(var111);\n Result.手工网点总数量 += i;\n }\n break;\n case 4:\n //手工网点人员 人员数量1人的手工网点数量: 11 ;人员数量2人的手工网点数量 0 人员数量1人的手工网点数量:11;人员数量2人的手工网点数量0\n String[] strings = replace.split(\";\");\n for (String info : strings) {\n if (info.contains(\"人员数量1人的手工网点数量\")) {\n String replace1 = info.replace(\":\", \"\");\n String 人员数量1人的手工网点数量 = replace1.replace(\"人员数量1人的手工网点数量\", \"\");\n if (StringUtils.isNotBlank(人员数量1人的手工网点数量)) {\n int i1 = Integer.parseInt(人员数量1人的手工网点数量.replace(\"个\",\"\"));\n Result.人员数量1人的手工网点数量 += i1;\n }\n } else if (info.contains(\"人员数量2人的手工网点数量\")) {\n String replace1 = info.replace(\":\", \"\");\n String 人员数量2人的手工网点数量 = replace1.replace(\"人员数量2人的手工网点数量\", \"\");\n if (StringUtils.isNotBlank(人员数量2人的手工网点数量)) {\n int i1 = Integer.parseInt(人员数量2人的手工网点数量.replace(\"个\",\"\"));\n Result.人员数量2人的手工网点数量 += i1;\n }\n }\n }\n break;\n case 5:\n //设备配备 (PC/手机/PDA) 配置PC的手工网点数量: 2 ;配置手机以及PDA的手工网点数量: 9\n String[] stringss = replace.split(\";\");\n for (String info : stringss) {\n if (info.contains(\"配置PC的手工网点数量\")) {\n String replace1 = info.replace(\":\", \"\");\n String 配置PC的手工网点数量 = replace1.replace(\"配置PC的手工网点数量\", \"\");\n if (StringUtils.isNotBlank(配置PC的手工网点数量)) {\n int i1 = Integer.parseInt(配置PC的手工网点数量.replace(\"个\",\"\"));\n Result.配置PC的手工网点数量 += i1;\n }\n } else if (info.contains(\"配置手机以及PDA的手工网点数量\")) {\n String replace1 = info.replace(\":\", \"\");\n String 配置手机以及PDA的手工网点数量 = replace1.replace(\"配置手机以及PDA的手工网点数量\", \"\");\n if (StringUtils.isNotBlank(配置手机以及PDA的手工网点数量)) {\n int i1 = Integer.parseInt(配置手机以及PDA的手工网点数量.replace(\"个\",\"\"));\n Result.配置手机以及PDA的手工网点数量 += i1;\n }\n }\n }\n break;\n case 6:\n //满足作业需求程度:五星■ 四星□ 三星□ 二星□ 一星□\n //(备注:在所选星数后面涂黑■,星数越多,说明程度越大或评价越高,以下均是如此)\n //满足管理需求程度:五星■ 四星□ 三星□ 二星□ 一星□;\n //从不使用的功能包括: ;\n //建议完善的功能包括: ;\n //建议补充的功能包括: ;\n String[] split = replace.split(\";\");\n if (split.length >= 4) {\n int length = split[0].length();\n int index = split[0].indexOf(\"如此\");\n String 选项1 = split[0].substring(0, index);\n String 选项2 = split[0].substring(index, length);\n String 星 = xuanxing(选项1);\n HashMap<String, Integer> pc满足作业需求程度 = Result.pc满足作业需求程度;\n if (pc满足作业需求程度.containsKey(星)) {\n Integer integer = pc满足作业需求程度.get(星);\n pc满足作业需求程度.put(星, ++integer);\n } else {\n pc满足作业需求程度.put(星, 1);\n }\n\n Result.pc满足作业需求程度 = pc满足作业需求程度;\n 星 = xuanxing(选项2);\n HashMap<String, Integer> pc满足管理需求程度 = Result.pc满足管理需求程度;\n if (pc满足管理需求程度.containsKey(星)) {\n Integer integer = pc满足管理需求程度.get(星);\n pc满足管理需求程度.put(星, ++integer);\n } else {\n pc满足管理需求程度.put(星, 1);\n }\n Result.pc满足管理需求程度 = pc满足管理需求程度;\n // -------2\n String s2 = split[1];\n String var2 = s2.replace(\"从不使用的功能包括:\", \"\");\n if (StringUtils.isNotBlank(var2)) {\n Result.PC端从不使用的功能包括.add(var2);\n }\n\n // -------3\n String s3 = split[2];\n String var3 = s3.replace(\"建议完善的功能包括:\", \"\");\n if (StringUtils.isNotBlank(var3)) {\n Result.PC端建议完善的功能包括.add(var3);\n }\n\n // -------2\n String s4 = split[3];\n String var4 = s4.replace(\"建议补充的功能包括:\", \"\");\n if (StringUtils.isNotBlank(var4)) {\n Result.PC端建议补充的功能包括.add(var4);\n }\n } else {\n throw new NullPointerException();\n }\n\n\n break;\n case 7:\n //满足作业需求程度:五星■ 四星□ 三星□ 二星□ 一星□;\n //满足管理需求程度:五星■ 四星□ 三星□ 二星□ 一星□;\n //从不使用的功能包括: ;\n //建议完善的功能包括: ;\n //建议补充的功能包括: ;\n\n String[] split8 = replace.split(\";\");\n if (split8.length >= 5) {\n String 星 = xuanxing(split8[0]);\n HashMap<String, Integer> 手机满足作业需求程度 = Result.手机满足作业需求程度;\n if (手机满足作业需求程度.containsKey(星)) {\n Integer integer = 手机满足作业需求程度.get(星);\n 手机满足作业需求程度.put(星, ++integer);\n } else {\n 手机满足作业需求程度.put(星, 1);\n }\n Result.手机满足作业需求程度 = 手机满足作业需求程度;\n // 2\n 星 = xuanxing(split8[1]);\n HashMap<String, Integer> 手机满足管理需求程度 = Result.手机满足管理需求程度;\n if (手机满足管理需求程度.containsKey(星)) {\n Integer integer = 手机满足管理需求程度.get(星);\n 手机满足管理需求程度.put(星, ++integer);\n } else {\n 手机满足管理需求程度.put(星, 1);\n }\n Result.手机满足管理需求程度 = 手机满足管理需求程度;\n // -------3\n String s2 = split8[2];\n String var2 = s2.replace(\"从不使用的功能包括:\", \"\");\n if (StringUtils.isNotBlank(var2)) {\n Result.手机端从不使用的功能包括.add(var2);\n }\n\n // -------3\n String s3 = split8[3];\n String var3 = s3.replace(\"建议完善的功能包括:\", \"\");\n if (StringUtils.isNotBlank(var3)) {\n Result.手机建议完善的功能包括.add(var3);\n }\n\n // -------2\n String s4 = split8[4];\n String var4 = s4.replace(\"建议补充的功能包括:\", \"\");\n if (StringUtils.isNotBlank(var4)) {\n Result.手机端建议补充的功能包括.add(var4);\n }\n } else {\n throw new NullPointerException();\n }\n break;\n case 8:\n // 操作过程中系统提示的消息易于理解程度:\n //五星■ 四星□ 三星□ 二星□ 一星□;\n String 星 = xuanxing(replace);\n HashMap<String, Integer> 操作过程中系统提示的消息易于理解程度 = Result.操作过程中系统提示的消息易于理解程度;\n if (操作过程中系统提示的消息易于理解程度.containsKey(星)) {\n int var = 操作过程中系统提示的消息易于理解程度.get(星);\n 操作过程中系统提示的消息易于理解程度.put(星, ++var);\n } else {\n 操作过程中系统提示的消息易于理解程度.put(星, 1);\n }\n Result.操作过程中系统提示的消息易于理解程度 = 操作过程中系统提示的消息易于理解程度;\n break;\n case 9:\n //系统出现问题后,系统给出相应问题诊断的符合程度:\n //五星■ 四星□ 三星□ 二星□ 一星□;\n String 星10 = xuanxing(replace);\n HashMap<String, Integer> 系统出现问题后系统给出相应问题诊断的符合程度 = Result.系统出现问题后系统给出相应问题诊断的符合程度;\n if (系统出现问题后系统给出相应问题诊断的符合程度.containsKey(星10)) {\n int var = 系统出现问题后系统给出相应问题诊断的符合程度.get(星10);\n 系统出现问题后系统给出相应问题诊断的符合程度.put(星10, ++var);\n } else {\n 系统出现问题后系统给出相应问题诊断的符合程度.put(星10, 1);\n }\n Result.系统出现问题后系统给出相应问题诊断的符合程度 = 系统出现问题后系统给出相应问题诊断的符合程度;\n break;\n case 10:\n //系统帮助对解决问题的帮助程度:\n //五星■ 四星□ 三星□ 二星□ 一星□;\n String 星11 = xuanxing(replace);\n HashMap<String, Integer> 系统帮助对解决问题的帮助程度 = Result.系统帮助对解决问题的帮助程度;\n if (系统帮助对解决问题的帮助程度.containsKey(星11)) {\n int var = 系统帮助对解决问题的帮助程度.get(星11);\n 系统帮助对解决问题的帮助程度.put(星11, ++var);\n } else {\n 系统帮助对解决问题的帮助程度.put(星11, 1);\n }\n Result.系统帮助对解决问题的帮助程度 = 系统帮助对解决问题的帮助程度;\n\n break;\n case 11:\n //用户手册等文档对解决问题的帮助程度:\n //五星■ 四星□ 三星□ 二星□ 一星□;\n String 星12 = xuanxing(replace);\n HashMap<String, Integer> 用户手册等文档对解决问题的帮助程度 = Result.用户手册等文档对解决问题的帮助程度;\n if (用户手册等文档对解决问题的帮助程度.containsKey(星12)) {\n int var = 用户手册等文档对解决问题的帮助程度.get(星12);\n 用户手册等文档对解决问题的帮助程度.put(星12, ++var);\n } else {\n 用户手册等文档对解决问题的帮助程度.put(星12, 1);\n }\n Result.用户手册等文档对解决问题的帮助程度 = 用户手册等文档对解决问题的帮助程度;\n break;\n case 12:\n //PC端操作界面友好程度:五星■ 四星□ 三星□ 二星□ 一星□;\n //APP操作界面友好程度: 五星■ 四星□ 三星□ 二星□ 一星□;\n String[] s_13 = replace.split(\";\");\n int lenght = s_13.length;\n if (lenght >= 2) {\n String PC端操作界面友好程度 = s_13[0];\n HashMap<String, Integer> pc端操作界面友好程度 = Result.PC端操作界面友好程度;\n String var = xuanxing(PC端操作界面友好程度);\n if (pc端操作界面友好程度.containsKey(var)) {\n int _v = pc端操作界面友好程度.get(var);\n pc端操作界面友好程度.put(var, ++_v);\n } else {\n pc端操作界面友好程度.put(var, 1);\n }\n Result.PC端操作界面友好程度 = pc端操作界面友好程度;\n\n String APP操作界面友好程度 = s_13[1];\n HashMap<String, Integer> 手机端操作界面友好程度 = Result.手机端操作界面友好程度;\n String var1 = xuanxing(APP操作界面友好程度);\n if (手机端操作界面友好程度.containsKey(var1)) {\n int _v = 手机端操作界面友好程度.get(var1);\n 手机端操作界面友好程度.put(var1, ++_v);\n } else {\n 手机端操作界面友好程度.put(var1, 1);\n }\n Result.手机端操作界面友好程度 = 手机端操作界面友好程度;\n\n } else {\n throw new NullPointerException();\n }\n break;\n case 13:\n //系统容易使用的程度:五星■ 四星□ 三星□ 二星□ 一星□;\n //若感觉到复杂,优化建议: ;\n String[] s_14 = replace.split(\";\");\n int lenght14 = s_14.length;\n if (lenght14 >= 2) {\n String ss = s_14[0];\n HashMap<String, Integer> 系统容易使用的程度 = Result.系统容易使用的程度;\n String var = xuanxing(ss);\n if (系统容易使用的程度.containsKey(var)) {\n int _v = 系统容易使用的程度.get(var);\n 系统容易使用的程度.put(var, ++_v);\n } else {\n 系统容易使用的程度.put(var, 1);\n }\n Result.系统容易使用的程度 = 系统容易使用的程度;\n\n String 优化建议 = s_14[1];\n Result.操作的复杂性建议.add(优化建议.replace(\"若感觉到复杂,优化建议:\", \"\"));\n\n } else {\n throw new NullPointerException();\n }\n break;\n case 14:\n //完成具体任务时的操作简洁程度(操作步骤少):\n //五星■ 四星□ 三星□ 二星□ 一星□;\n //若感觉到操作步骤过多,优化建议: ;\n String[] s_15 = replace.split(\";\");\n int lenght15 = s_15.length;\n if (lenght15 >= 2) {\n String ss = s_15[0];\n HashMap<String, Integer> 操作简洁程度 = Result.操作简洁程度;\n String var = xuanxing(ss);\n if (操作简洁程度.containsKey(var)) {\n int _v = 操作简洁程度.get(var);\n 操作简洁程度.put(var, ++_v);\n } else {\n 操作简洁程度.put(var, 1);\n }\n Result.系统容易使用的程度 = 操作简洁程度;\n\n String 优化建议 = s_15[1];\n Result.操作的复杂性步骤过多建议.add(优化建议.replace(\"若感觉到操作步骤过多,优化建议:\", \"\"));\n\n } else {\n System.out.println(\"解析异常15\");\n }\n break;\n case 15:\n //常见故障名称(或类型): ;\n //系统平均每个月出现的故障次数: 1 次;\n //系统故障时平均持续时间:\n //30分钟内■ 1小时内□ 2小时内□ 2小时以上□;\n //对业务的影响程度:五星□ 四星□ 三星□ 二星□ 一星□;\n //(备注:星数越多,说明影响程度越大)\n //若有影响,请简要说明:\n String[] s_16 = replace.split(\";\");\n if (s_16.length >= 5) {\n String s1 = s_16[0];\n Result.常见故障.add(s1.replace(\"常见故障名称(或类型):\", \"\"));\n\n String s2 = s_16[1];\n String replace1 = s2.replace(\"系统平均每个月出现的故障次数:\", \"\");\n String 次 = replace1.replace(\"次\", \"\");\n if (StringUtils.isNotBlank(次)){\n int i1 = 0;\n if (次.contains(\"-\")){\n i1 = Integer.parseInt(次.split(\"-\")[0]);\n }else {\n i1 = Integer.parseInt(次);\n }\n Result.平均系统出现故障次数 += i1;\n }\n\n\n String s3 = s_16[2];\n String xuanxiaoshi = xuanxiaoshi(s3);\n if (Result.系统故障时平均持续时间.containsKey(xuanxiaoshi)) {\n int count = Result.系统故障时平均持续时间.get(xuanxiaoshi);\n Result.系统故障时平均持续时间.put(xuanxiaoshi,++count);\n }else {\n Result.系统故障时平均持续时间.put(xuanxiaoshi,1);\n }\n\n String s4 = s_16[3];\n String xing = xuanxing(s4);\n if (Result.对业务的影响程度.containsKey(xing)) {\n int count = Result.对业务的影响程度.get(xing);\n Result.对业务的影响程度.put(xing,++count);\n }else {\n Result.对业务的影响程度.put(xing,1);\n }\n\n String s5 = s_16[4];\n Result.影响说明.add(s5.replace(\"(备注:星数越多,说明影响程度越大)若有影响,请简要说明:\", \"\"));\n\n }\n break;\n case 16:\n //系统运行前手工作业效率: 10 分钟/每件(普通包裹)\n //系统运行前手工作业效率: 5 分钟/每件(信函)\n //系统运行前手工作业效率: 3 分钟/每件(报刊);\n //系统运行后作业效率: 8 分钟/每件(普通包裹)\n //系统运行后作业效率: 4 分钟/每件(信函)\n //系统运行后作业效率: 3 分钟/每件(报刊)。\n String[] s_17 = replace.split(\";\");\n if (s_17.length >= 2){\n String[] s_var = s_17[0].split(\")\");\n if (s_var.length >= 3){\n // 1\n String replace1 = s_var[0].replace(\"系统运行前手工作业效率:\", \"\");\n String replace3 = replace1.replace(\"分钟/每件(普通包裹\", \"\");\n double result = 0;\n if (StringUtils.isNotBlank(replace3)){\n result = Double.parseDouble(replace3);\n }\n if (Result.人员效率.containsKey(\"普通包裹\")) {\n Double var = Result.人员效率.get(\"普通包裹\");\n Result.人员效率.put(\"普通包裹\",result+var);\n }else {\n Result.人员效率.put(\"普通包裹\",result);\n }\n //2\n replace1 = s_var[1].replace(\"系统运行前手工作业效率:\", \"\");\n replace3 = replace1.replace(\"分钟/每件(信函\", \"\");\n double result1 = 0;\n if (StringUtils.isNotBlank(replace3)){\n result1 = Double.parseDouble(replace3);\n }\n if (Result.人员效率.containsKey(\"信函\")) {\n Double var = Result.人员效率.get(\"信函\");\n Result.人员效率.put(\"信函\",result1+var);\n }else {\n Result.人员效率.put(\"信函\",result1);\n }\n //3\n replace1 = s_var[2].replace(\"系统运行前手工作业效率:\", \"\");\n replace3 = replace1.replace(\"分钟/每件(报刊\", \"\");\n double result3 = 0;\n if (StringUtils.isNotBlank(replace3)){\n result3 = Double.parseDouble(replace3);\n }\n if (Result.人员效率.containsKey(\"报刊\")) {\n Double var = Result.人员效率.get(\"报刊\");\n Result.人员效率.put(\"报刊\",result3+var);\n }else {\n Result.人员效率.put(\"报刊\",result3);\n }\n }\n\n\n s_var = s_17[1].split(\")\");\n if (s_var.length >= 3){\n // 1\n String replace1 = s_var[0].replace(\"系统运行后作业效率:\", \"\");\n String replace3 = replace1.replace(\"分钟/每件(普通包裹\", \"\");\n double result4 = 0;\n if (StringUtils.isNotBlank(replace3)){\n result4 = Double.parseDouble(replace3);\n }\n if (Result.人员效率.containsKey(\"系统运行后普通包裹\")) {\n Double var = Result.人员效率.get(\"系统运行后普通包裹\");\n Result.人员效率.put(\"系统运行后普通包裹\",result4+var);\n }else {\n Result.人员效率.put(\"系统运行后普通包裹\",result4);\n }\n //2\n\n replace1 = s_var[1].replace(\"系统运行后作业效率:\", \"\");\n replace3 = replace1.replace(\"分钟/每件(信函\", \"\");\n double result5 = 0;\n if (StringUtils.isNotBlank(replace3)){\n result5 = Double.parseDouble(replace3);\n }\n if (Result.人员效率.containsKey(\"系统运行后信函\")) {\n Double var = Result.人员效率.get(\"系统运行后信函\");\n Result.人员效率.put(\"系统运行后信函\",result5+var);\n }else {\n Result.人员效率.put(\"系统运行后信函\",result5);\n }\n //3\n replace1 = s_var[2].replace(\"系统运行后作业效率:\", \"\");\n replace3 = replace1.replace(\"分钟/每件(报刊\", \"\");\n double result6 = 0;\n if (StringUtils.isNotBlank(replace3)){\n result6 = Double.parseDouble(replace3);\n }\n if (Result.人员效率.containsKey(\"系统运行后报刊\")) {\n Double var = Result.人员效率.get(\"系统运行后报刊\");\n Result.人员效率.put(\"系统运行后报刊\",result6+var);\n }else {\n Result.人员效率.put(\"系统运行后报刊\",result6);\n }\n }\n\n\n }\n break;\n case 17:\n //您对系统的总体评价:五星■ 四星□ 三星□ 二星□ 一星□;\n //简要评价说明:\n String[] s_18 = replace.split(\";\");\n int lenght18 = s_18.length;\n if (lenght18 >= 2) {\n String ss = s_18[0];\n HashMap<String, Integer> 总体评价 = Result.总体评价;\n String var = xuanxing(ss);\n if (总体评价.containsKey(var)) {\n int _v = 总体评价.get(var);\n 总体评价.put(var, ++_v);\n } else {\n 总体评价.put(var, 1);\n }\n Result.总体评价 = 总体评价;\n\n String 优化建议 = s_18[1];\n\n Result.总体评价说明.add(优化建议.replace(\"简要评价说明:\", \"\"));\n\n } else {\n throw new NullPointerException();\n }\n break;\n case 18:\n //意见建议\n Result.意见建议.add(replace);\n break;\n default:\n }\n ++index;\n }", "public static String getAcountAsterixData(String ccNum) \r\n\t{\r\n\t\tif(ccNum.length() < 4)\r\n\t\t\treturn ccNum;\r\n\t\tint len = ccNum.length();\r\n\t\tString temp = \"\";\r\n\t\tfor (int i = 0; i < (len - 4); i++) {\r\n\t\t\ttemp = temp + \"*\";\r\n\t\t}\r\n\t\treturn (temp + ccNum.substring((len - 4), (len)));\r\n\t}", "private String[] Asignacion(String texto) {\n String[] retorno = new String[2];\n try {\n retorno = texto.split(\"=\");\n if (retorno.length == 2) {\n if (retorno[0].toLowerCase().contains(\"int\")) {\n if (retorno[0].contains(\"int\")) {\n if (retorno[0].startsWith(\"int\")) {\n String aux[] = retorno[0].split(\"int\");\n if (aux.length == 2) {\n retorno[0] = \"1\";//aceptacion\n retorno[1] = aux[1];//nombre variable\n } else {\n retorno[0] = \"0\";//error\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n } else {\n retorno[0] = \"0\";//error\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"se encuentra mal escrito el int.\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"no se encontro la palabra reservada int.\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n } catch (Exception e) {\n System.out.println(\"Error en Asignacion \" + e.getClass());\n } finally {\n return retorno;\n }\n }", "bdm mo1784a(akh akh);", "public static String converterDataSemBarraParaDataComBarra(String data) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tif (data != null && !data.equals(\"\") && data.trim().length() == 8) {\r\n\r\n\t\t\tretorno = data.substring(0, 2) + \"/\" + data.substring(2, 4) + \"/\" + data.substring(4, 8);\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "public static void main(String [] args ) {\n String a = \"ASDFASD=ab = dsf ='ab\";\n String [] arr = a.split(\"=\");\n int b = 111;\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");//设置日期格式\n String timeStr = \"2016-12-06 00:00:00\";\n\n try {\n long endStamp = df.parse(timeStr).getTime();\n long startStamp = endStamp - 24*3600*1000;\n System.out.println(df.format(startStamp));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n System.out.println(df.format(new Date()));\n\n\n System.out.println(b/100);\n test tt = new test();\n System.out.println(tt.a);\n String iI = AnalyseFactory.createAnalyse(JDealDataPS).itemInstr;\n System.out.println(iI);\n }", "private AtualizarContaPreFaturadaHelper parserRegistroTipo3(String linha) {\r\n\t\tAtualizarContaPreFaturadaHelper retorno = new AtualizarContaPreFaturadaHelper();\r\n\r\n\t\tInteger index = 0;\r\n\r\n\t\t// Tipo de registro\r\n\t\tretorno.tipoRegistro = linha.substring(index, index + REGISTRO_TIPO);\r\n\t\tindex += REGISTRO_TIPO;\r\n\r\n\t\t// Matricula do imovel\r\n\t\tretorno.matriculaImovel = linha.substring(index, index\r\n\t\t\t\t+ MATRICULA_IMOVEL);\r\n\t\tindex += MATRICULA_IMOVEL;\r\n\r\n\t\t// Codigo da Categoria\r\n\t\tretorno.codigoCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CODIGO_CATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_3_CODIGO_CATEGORIA;\r\n\r\n\t\t// Codigo da Subcategoria\r\n\t\tretorno.codigoSubCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CODIGO_SUBCATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_3_CODIGO_SUBCATEGORIA;\r\n\r\n\t\t// Consumo faturado de agua\r\n\t\tretorno.consumoFaturadoAguaFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CONSUMO_FATURADO_AGUA_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_CONSUMO_FATURADO_AGUA_FAIXA;\r\n\r\n\t\t// Valor tarifa minima de agua\r\n\t\tretorno.valorFaturadoAguaFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_FATURADO_AGUA_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_FATURADO_AGUA_FAIXA;\r\n\r\n\t\t// Limite Inicial do Consumo na Faixa\r\n\t\tretorno.limiteInicialConsumoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_LIMITE_INICIAL_CONSUMO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_LIMITE_INICIAL_CONSUMO_FAIXA;\r\n\r\n\t\t// Limite Final do consumo na Faixa\r\n\t\tretorno.limiteFinalConsumoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_LIMITE_FINAL_CONSUMO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_LIMITE_FINAL_CONSUMO_FAIXA;\r\n\r\n\t\t// Valor da Tarifa Agua na Faixa\r\n\t\tretorno.valorTarifaAguaFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_TARIFA_AGUA_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_TARIFA_AGUA_FAIXA;\r\n\r\n\t\t// Valor da Tarifa Esgoto na Faixa\r\n\t\tretorno.valorTarifaEsgotoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_TARIFA_ESGOTO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_TARIFA_ESGOTO_FAIXA;\r\n\r\n\t\t// Consumo faturado de esgoto\r\n\t\tretorno.consumoFaturadoEsgotoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CONSUMO_FATURADO_ESGOTO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_CONSUMO_FATURADO_ESGOTO_FAIXA;\r\n\r\n\t\t// Valor tarifa minima de agua\r\n\t\tretorno.valorFaturadoEsgotoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_FATURADO_ESGOTO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_FATURADO_ESGOTO_FAIXA;\r\n\r\n\t\treturn retorno;\r\n\t}", "public String getAgcData ()\n\t{\n\t\tString agcData = getContent().substring(OFF_ID27_AGC_DATA, OFF_ID27_AGC_DATA + LEN_ID27_AGC_DATA) ;\n\t\treturn (agcData);\n\t}", "public String HaToA(double ha) {\n // a = 100*ha\n double a = ha*100;\n return check_after_decimal_point(a);\n }", "public Format mo25010a(long subsampleOffsetUs) {\n Format format = new Format(this.f16501a, this.f16502b, this.f16506f, this.f16507g, this.f16504d, this.f16503c, this.f16508h, this.f16512l, this.f16513m, this.f16514n, this.f16515o, this.f16516p, this.f16518r, this.f16517q, this.f16519s, this.f16520t, this.f16521u, this.f16522v, this.f16523w, this.f16524x, this.f16525y, this.f16526z, this.f16499A, subsampleOffsetUs, this.f16509i, this.f16510j, this.f16505e);\n return format;\n }", "private String Interpretar(String num) {\r\n\t\tif(num.length() > 3)\r\n\t\t\treturn \"\";\r\n\t\tString salida=\"\";\r\n\t\t\r\n\t\tif(Dataposi(num,2) != 0)\r\n\t\t\tsalida = Centenas[Dataposi(num,2)-1];\r\n\t\t\r\n\t\tint k = Integer.parseInt(String.valueOf(Dataposi(num,1))+String.valueOf(Dataposi(num,0)));\r\n\r\n\t\tif(k <= 20)\r\n\t\t\tsalida += Numero[k];\r\n\t\telse {\r\n\t\t\tif(k > 30 && Dataposi(num,0) != 0)\r\n\t\t\t\tsalida += Decenas[Dataposi(num,1)-2] + \"Y \" + Numero[Dataposi(num,0)];\r\n\t\t\telse\r\n\t\t\t\tsalida += Decenas[Dataposi(num,1)-2] + Numero[Dataposi(num,0)];\r\n\t\t}\r\n\t\t//Caso especial con el 100\r\n\t\tif(Dataposi(num,2) == 1 && k == 0)\r\n\t\t\tsalida=\"CIEN\";\r\n\t\t\r\n\t\treturn salida;\r\n\t}", "public aa m14042a(C2917c c2917c) {\n String a = this.f12193i.m14548a(\"Content-Type\");\n String a2 = this.f12193i.m14548a(\"Content-Length\");\n return new C2896a().m14003a(new C2989a().m14608a(this.f12187c).m14610a(this.f12189e, null).m14613a(this.f12188d).m14620c()).m13998a(this.f12190f).m13994a(this.f12191g).m13996a(this.f12192h).m14002a(this.f12193i).m14000a(new C4340b(c2917c, a, a2)).m14001a(this.f12194j).m13995a(this.f12195k).m14005b(this.f12196l).m14004a();\n }", "public Integer getAaa021() {\r\n return aaa021;\r\n }", "public String getAaa023() {\r\n return aaa023;\r\n }", "private void getTDPPrepaid(){\n TDPPrepaid = KalkulatorUtility.getTDP_ADDM(DP,biayaAdminADDM,polis,installment2Prepaid,premiAmountSumUp,\n \"ONLOAN\",tenor,bungaADDM.size());\n LogUtility.logging(TAG,LogUtility.infoLog,\"TDPPrepaid\",\"TDPPrepaid\",JSONProcessor.toJSON(TDPPrepaid));\n }", "public Asiakas(){\n\t\tid++;\n\t\tbussiNumero = new Random().nextInt(OmaMoottori.bussienMaara);\n\t\tsaapumisaika = Kello.getInstance().getAika();\n\t}", "public abstract java.lang.String getAcma_cierre();", "public abstract java.lang.String getAcma_descripcion();", "void format09(String line, int lineCount) {\n\n // is this the first record in the file?\n checkFirstRecord(code, lineCount);\n\n // there can only be one code 09 record per substation\n code09Count++;\n if (code09Count > 1) {\n outputError(lineCount + \" - Fatal - \" +\n \"More than 1 code 09 record in substation\");\n } // if (code09Count > 1)\n\n // get the data off the line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n\n if (dataType == SEDIMENT) {\n\n //01 a2 format code always \"09\" n/a\n //02 a12 stnid station id: composed as for format 03 sedphy\n //03 f10.3 calcium µgm / gram sedchem2\n //04 f8.2 magnesium µgm / gram sedchem2\n //05 f7.3 sulphide(SO3) µgm / gram sedchem2\n //06 f8.3 potassium µgm / gram sedchem2\n //07 f8.2 sodium µgm / gram sedchem2\n //08 f9.3 strontium µgm / gram sedchem2\n\n if (t.hasMoreTokens()) sedphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) sedchem2.setCalcium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedchem2.setMagnesium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedchem2.setSo3(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedchem2.setPotassium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedchem2.setSodium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedchem2.setStrontium(toFloat(t.nextToken(), 1f));\n\n // station Id must match that of previous station record\n checkStationId(lineCount, sedphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format09: sedchem2 = \" + sedchem2);\n\n } else if (dataType == WATER) {\n\n //01 a2 format code always \"09\" n/a\n //02 a12 stnid station id: composed as for format 03 watphy\n //03 f7.3 suspendedSolids mgm / litre watchem2\n //04 f10.3 calcium µgm / litre watchem2\n //05 f7.4 sulphate(SO4) gm / litre watchem2\n //06 f8.3 potassium µgm / litre watchem2\n //07 f8.2 magnesium µgm / litre watchem2\n //08 f8.2 sodium µgm / litre watchem2\n //09 f9.3 strontium µgm / litre watchem2\n\n if (t.hasMoreTokens()) watphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) watchem2.setSussol(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watchem2.setCalcium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watchem2.setSo4(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watchem2.setPotassium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watchem2.setMagnesium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watchem2.setSodium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watchem2.setStrontium(toFloat(t.nextToken(), 1f));\n\n // station Id must match that of previous station record\n checkStationId(lineCount, watphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format09: watchem2 = \" + watchem2);\n\n } // if (dataType == SEDIMENT)\n\n }", "void format12(String line, int lineCount) {\n\n // is this the first record in the file?\n checkFirstRecord(code, lineCount);\n\n // there can only be one code 12 record per substation\n code12Count++;\n if (code12Count > 1) {\n outputError(lineCount + \" - Fatal - \" +\n \"More than 1 code 12 record in substation\");\n } // if (code12Count > 1)\n\n // get the data off the line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n\n if (dataType == SEDIMENT) {\n\n //01 a2 format code always \"12\" n/a\n //02 a12 stnid station id: composed as for format 03 sedphy\n //03 f10.3 iron µgm / gram sedpol1\n //04 f9.3 chromium µgm / gram sedpol1\n //05 f8.3 manganese µgm / gram sedpol1\n //06 f8.3 cobalt µgm / gram sedpol1\n //07 f8.3 selenium µgm / gram sedpol1\n //08 f8.3 arsenic µgm / gram sedpol1\n\n if (t.hasMoreTokens()) sedphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) sedpol1.setIron(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol1.setChromium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol1.setManganese(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol1.setCobalt(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol1.setSelenium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol1.setArsenic(toFloat(t.nextToken(), 1f));\n\n // station Id must match that of previous station record\n checkStationId(lineCount, sedphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format12: sedpol1 = \" + sedpol1);\n\n } else if (dataType == WATER) {\n\n //01 a2 format code always \"12\" n/a\n //02 a12 stnid station id: composed as for format 03 watphy\n //03 f10.3 iron µgm / litre watpol1\n //04 f9.3 chromium µgm / litre watpol1\n //05 f8.3 manganese µgm / litre watpol1\n //06 f8.3 cobalt µgm / litre watpol1\n //07 f8.3 selenium µgm / litre watpol1\n //08 f8.3 arsenic µgm / litre watpol1\n\n if (t.hasMoreTokens()) watphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) watpol1.setIron(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol1.setChromium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol1.setManganese(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol1.setCobalt(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol1.setSelenium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol1.setArsenic(toFloat(t.nextToken(), 1f));\n\n // station Id must match that of previous station record\n checkStationId(lineCount, watphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format12: watpol1 = \" + watpol1);\n\n } // if (dataType == SEDIMENT)\n\n }", "private String formato(String cadena){\n cadena = cadena.replaceAll(\" \",\"0\");\n return cadena;\n }", "private AtualizarContaPreFaturadaHelper parserRegistroTipo2(String linha) {\r\n\t\tAtualizarContaPreFaturadaHelper retorno = new AtualizarContaPreFaturadaHelper();\r\n\r\n\t\tInteger index = 0;\r\n\r\n\t\t// Tipo de registro\r\n\t\tretorno.tipoRegistro = linha.substring(index, index + REGISTRO_TIPO);\r\n\t\tindex += REGISTRO_TIPO;\r\n\t\tSystem.out.println(\"Tipo de Retorno: \" + retorno.tipoRegistro);\r\n\r\n\t\t// Matricula do imovel\r\n\t\tretorno.matriculaImovel = linha.substring(index, index\r\n\t\t\t\t+ MATRICULA_IMOVEL);\r\n\t\tindex += MATRICULA_IMOVEL;\r\n\t\tSystem.out.println(\"Matricula do Imovel: \" + retorno.matriculaImovel);\r\n\r\n\t\t// Codigo da Categoria\r\n\t\tretorno.codigoCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CODIGO_CATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_2_CODIGO_CATEGORIA;\r\n\r\n\t\t// Codigo da Subcategoria\r\n\t\tretorno.codigoSubCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CODIGO_SUBCATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_2_CODIGO_SUBCATEGORIA;\r\n\r\n\t\t// Valor faturado agua\r\n\t\tretorno.valorFaturadoAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_FATURADO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_FATURADO_AGUA;\r\n\r\n\t\t// Consumo faturado de agua\r\n\t\tretorno.consumoFaturadoAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_FATURADO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_FATURADO_AGUA;\r\n\r\n\t\t// Valor tarifa minima de agua\r\n\t\tretorno.valorTarifaMinimaAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_AGUA;\r\n\r\n\t\t// Consumo Minimo de Agua\r\n\t\tretorno.consumoMinimoAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_MINIMO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_MINIMO_AGUA;\r\n\r\n\t\t// Valor faturado esgoto\r\n\t\tretorno.valorFaturadoEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_FATURADO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_FATURADO_ESGOTO;\r\n\r\n\t\t// Consumo faturado de esgoto\r\n\t\tretorno.consumoFaturadoEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_FATURADO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_FATURADO_ESGOTO;\r\n\r\n\t\t// Valor tarifa minima de esgoto\r\n\t\tretorno.valorTarifaMinimaEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_ESGOTO;\r\n\r\n\t\t// Consumo Minimo de esgoto\r\n\t\tretorno.consumoMinimoEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_MINIMO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_MINIMO_ESGOTO;\r\n\t\t\r\n\t\t// Consumo Minimo de esgoto \r\n\t\t/*\r\n\t\tretorno.subsidio = linha.substring(index + 2, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_SUBSIDIO_AGUA_PARA);\r\n\t\tindex += REGISTRO_TIPO_2_SUBSIDIO_AGUA_PARA;\r\n\t\t*/\r\n\t\treturn retorno;\r\n\t}", "public String HaToCa(double ha) {\n // ca = 10000*ha\n double ca = ha*10000;\n return check_after_decimal_point(ca);\n }", "int format04(String line, int lineCount) {\n\n // local variables\n String splDattim = \"\";\n String tmpStationId = \"\";\n\n // is this the first record in the file?\n checkFirstRecord(code, lineCount);\n\n // code 04 must be preceded by a code 03 or another code 04\n if ((prevCode != 3) && (prevCode != 4)) {\n outputError(lineCount + \" - Fatal - \" +\n \"Code 04 not preceded by code 03\");\n } // if (!\"03\".equals(prevCode))\n\n // get the data off the data line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n int subCode = 0;\n if (t.hasMoreTokens()) subCode = toInteger(t.nextToken());\n if (t.hasMoreTokens()) tmpStationId = toString(t.nextToken());\n // station Id must match that of previous station record\n checkStationId(lineCount, tmpStationId);\n\n switch (subCode) {\n\n //01 a2 format code always \"04\" n/a\n //02 a1 format subCode Always '1' n/a\n //03 a12 stnid station id: composed as for format 03 weather\n //04 a5 subdes substation descriptor e.g. CTD, XBT watphy\n //05 i6 spltim hhmmss UCT, e.g. 142134 watphy\n //06 f6.1 atmosph_pres in mBars weather\n //07 a5 cloud weather\n //08 f4.1 drybulb in deg C weather\n //09 f4.1 surface temp in deg C weather\n //10 a10 nav_equip_type weather\n case 1: if (t.hasMoreTokens())\n subdes = toString(t.nextToken().toUpperCase());\n switch (dataType) { // - moved to loadData\n case CURRENTS: currents.setSubdes(subdes); break;\n case SEDIMENT: sedphy.setSubdes(subdes); break;\n case WATER: watphy.setSubdes(subdes); break;\n case WATERWOD: watphy.setSubdes(subdes); break;\n } // switch (dataType)\n if (t.hasMoreTokens()) splDattim = toString(t.nextToken());\n if (t.hasMoreTokens())\n weather.setAtmosphPres(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) weather.setCloud(toString(t.nextToken()));\n if (t.hasMoreTokens()) weather.setDrybulb(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) weather.setSurfaceTmp(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) weather.setNavEquipType(toString(t.nextToken()));\n break;\n //01 a2 format code always '04' n/a\n //02 a1 format subCode Always '2' n/a\n //03 a12 stnid station id: composed as for format 03 weather\n //04 i3 swell dir in degrees TN weather\n //05 i2 swell height in m weather\n //06 i2 swell period in s weather\n //07 i2 transparency coded weather\n //08 a2 visibility code coded weather\n //09 i2 water colour coded weather\n //10 f4.1 wetbulb in deg C weather\n //11 i3 wind direction in degrees TN weather\n //12 f4.1 wind speed in m/s weather\n //13 a2 weather code weather\n case 2: if (t.hasMoreTokens()) weather.setSwellDir(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) weather.setSwellHeight(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) weather.setSwellPeriod(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) weather.setTransparency(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) weather.setVisCode(toString(t.nextToken()));\n if (t.hasMoreTokens()) weather.setWaterColor(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) weather.setWetbulb(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) weather.setWindDir(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) weather.setWindSpeed(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) weather.setWeatherCode(toString(t.nextToken()));\n break;\n } // switch (subCode)\n\n\n // time is on record with subCode = 1\n if ((subCode == 1) && !\"\".equals(splDattim)) {\n String seconds = \"00\";\n if (splDattim.length() == 6) {\n seconds = splDattim.substring(4);\n } // if (splDattim.length() == 6)\n startDateTime = startDate + \" \" + splDattim.substring(0,2) +\n \":\" + splDattim.substring(2,4) + \":\" + seconds + \".0\";\n if (dbg) System.out.println(\"<br>format04: startDateTime = \" + startDateTime);\n checkForValidDate(startDateTime);\n\n // convert to UTC?\n if (\"sast\".equals(timeZone)) {\n GregorianCalendar calDate = new GregorianCalendar();\n calDate.setTime(Timestamp.valueOf(startDateTime));\n calDate.add(Calendar.HOUR, -2);\n SimpleDateFormat formatter =\n new SimpleDateFormat (\"yyyy-MM-dd HH:mm:ss.s\");\n startDateTime = formatter.format(calDate.getTime());\n } // if ('sast'.equals(timeZone))\n if (dbg4) System.out.println(\"<br>format04: startDateTime = \" + startDateTime);\n //watphy.setSpldattim(startDateTime); //- moved to loadData\n switch (dataType) {\n case CURRENTS: currents.setSpldattim(startDateTime); break;\n case SEDIMENT: sedphy.setSpldattim(startDateTime); break;\n case WATER: watphy.setSpldattim(startDateTime); break;\n case WATERWOD: watphy.setSpldattim(startDateTime); break;\n } // switch (dataType)\n } // if ((subCode == 1) && !\"\".equals(splDattim))\n\n if (dbg) System.out.println(\"<br>format04: weather = \" + weather);\n if (dbg) {\n System.out.print(\"<br>format04: \");\n switch (dataType) {\n case CURRENTS: System.out.println(\"currents = \" + currents); break;\n case SEDIMENT: System.out.println(\"sedphy = \" + sedphy); break;\n case WATER: System.out.println(\"watphy = \" + watphy); break;\n case WATERWOD: System.out.println(\"watphy = \" + watphy); break;\n } // switch (dataType)\n } // if (dbg)\n\n return subCode;\n\n }", "java.lang.String getUa();", "public static void main(String[] args) {\n\n String text= \"merhaba arkadaslar \";\n System.out.println( \"1. bolum =\" + text .substring(1,5));// 1 nolu indexten 5 e kadar. 5 dahil degil\n System.out.println(\"2. bolum =\"+ text.substring(0,3));\n System.out.println(\"3. bolum =\"+ text.substring(4));// verilen indexten sonun akadar al\n\n String strAlinan= text.substring(0,3);\n\n\n\n\n\n }", "public BigInteger atas(){\n if(atas!=null)\n \n return atas.data;\n \n else {\n return null; \n }\n }", "public static Map<String, Object> getMap(String a0000,String tpid) throws Exception{\n\t ExportDataBuilder edb = new ExportDataBuilder();\n\t Map<String, Object> dataMap = new HashMap<String, Object>();\n\t if(tpid.equals(\"eebdefc2-4d67-4452-a973-5f7939530a11\")){\n\t \tdataMap = edb.getGbrmspbMap(a0000);\n\t }else if(tpid.equals(\"B73E508A87A44EF889430ABA451AC85C\")){\n\t \tdataMap = edb.getGbrmspbMap(a0000);\n\t }else if(tpid.equals(\"5d3cef0f0d8b430cb35b2ac2cb3bf927\")||tpid.equals(\"0f6e25ab-ee0a-4b23-b52d-7c6774dfc462\")){\n\t \tdataMap = edb.getGwydjbMap(a0000);\n\t }else if(tpid.equals(\"a43d8c50-400d-42fe-9e0d-5665ed0b0508\")){\n\t \tdataMap = edb.getNdkhdjb(a0000);\n\t }else if(tpid.equals(\"04f59673-9c3a-4d9c-b016-a5b789d636e2\")){\n\t \tdataMap = edb.getGwyjlspb(a0000);\n\t }else if(tpid.equals(\"3de527c0-ea23-42c4-a66f\")){\n\t \t//dataMap = edb.getGwylyspb(a0000);\n\t \tdataMap = edb.getGwylyb(a0000);\n\t }else if(tpid.equals(\"9e7e1226-6fa1-46a1-8270\")){\n\t \tdataMap = edb.getGwydrspb(a0000);\n\t }else if(tpid.equals(\"28bc4d39-dccd-4f07-8aa9\")){\n\t \tdataMap = edb.getGwyzjtgb(a0000);\n\t }\n\t\t\t/** 姓名 */\n\t\t\tString a0101 = (String) dataMap.get(\"a0101\");\n\t\t\t/** 民族 */\n\t\t\tString a0117 = (String) dataMap.get(\"a0117\");\n\t\t\t/** 籍贯 */\n\t\t\tString a0111a = (String) dataMap.get(\"a0111a\");\n\t\t\t/** 健康 */\n\t\t\tString a0128 = (String) dataMap.get(\"a0128\");\n\t\t\t/** 专业技术职务 */\n\t\t\tString a0196 = (String) dataMap.get(\"a0196\");\n\t\t\t/** 特长 */\n\t\t\tString a0187a = (String) dataMap.get(\"a0187a\");\n\t\t\t/** 身份证号码 */\n\t\t\tString a0184 = (String) dataMap.get(\"a0184\");\n\t\t\t//格式化时间参数\n\t\t\tString a0107 = (String)dataMap.get(\"a0107\");\n\t\t\tString a0134 = (String)dataMap.get(\"a0134\");\n\t\t\tString a1701 = (String)dataMap.get(\"a1701\");\n\t\t\tString a2949 = (String)dataMap.get(\"a2949\");\n\t\t\tString a0288 = (String) dataMap.get(\"a0288\");\n\t\t\tString a0192t = (String) dataMap.get(\"a0192t\");\n\t\t\t//格式化学历学位\n\t\t\tString qrzxl = (String)dataMap.get(\"qrzxl\");\n\t\t\tString qrzxw = (String)dataMap.get(\"qrzxw\");\n\t\t\tString zzxl = (String)dataMap.get(\"zzxl\");\n\t\t\tString zzxw = (String)dataMap.get(\"zzxw\");\n\t\t\tif(!StringUtil.isEmpty(qrzxl)&&!StringUtil.isEmpty(qrzxw)){\n\t\t\t\tString qrzxlxw = qrzxl+\"\\r\\n\"+qrzxw;\n\t\t\t\tdataMap.put(\"qrzxlxw\", qrzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(qrzxl)){\n\t\t\t\tString qrzxlxw = qrzxl;\n\t\t\t\tdataMap.put(\"qrzxlxw\", qrzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(qrzxw)){\n\t\t\t\tString qrzxlxw = qrzxw;\n\t\t\t\tdataMap.put(\"qrzxlxw\", qrzxlxw);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"qrzxlxw\", \"\");\n\t\t\t}\n\t\t\tif(!StringUtil.isEmpty(zzxl)&&!StringUtil.isEmpty(zzxw)){\n\t\t\t\tString zzxlxw = zzxl+\"\\r\\n\"+zzxw;\n\t\t\t\tdataMap.put(\"zzxlxw\", zzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(zzxl)){\n\t\t\t\tString zzxlxw = zzxl;\n\t\t\t\tdataMap.put(\"zzxlxw\", zzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(zzxw)){\n\t\t\t\tString zzxlxw = zzxw;\n\t\t\t\tdataMap.put(\"zzxlxw\", zzxlxw);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"zzxlxw\", \"\");\n\t\t\t}\n\t\t\t//格式化学校及院系\n\t\t\tString QRZXLXX = (String) dataMap.get(\"qrzxlxx\");\n\t\t\tString QRZXWXX = (String) dataMap.get(\"qrzxwxx\");\n\t\t\tString ZZXLXX = (String) dataMap.get(\"zzxlxx\");\n\t\t\tString ZZXWXX = (String) dataMap.get(\"zzxwxx\");\n\t\t\tif(!StringUtil.isEmpty(QRZXLXX)&&!StringUtil.isEmpty(QRZXWXX)&&!QRZXLXX.equals(QRZXWXX)){\n\t\t\t\tString qrzxlxx = QRZXLXX+\"\\r\\n\"+QRZXWXX;\n\t\t\t\tdataMap.put(\"qrzxlxx\", qrzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(QRZXLXX)){\n\t\t\t\tString qrzxlxx = QRZXLXX;\n\t\t\t\tdataMap.put(\"qrzxlxx\", qrzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(QRZXWXX)){\n\t\t\t\tString qrzxlxx = QRZXWXX;\n\t\t\t\tdataMap.put(\"qrzxlxx\", qrzxlxx);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"qrzxlxx\", \"\");\n\t\t\t}\n\t\t\tif(!StringUtil.isEmpty(ZZXLXX)&&!StringUtil.isEmpty(ZZXWXX)&&!ZZXLXX.equals(ZZXWXX)){\n\t\t\t\tString zzxlxx = ZZXLXX+\"\\r\\n\"+ZZXWXX;\n\t\t\t\tdataMap.put(\"zzxlxx\", zzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(ZZXLXX)){\n\t\t\t\tString zzxlxx = ZZXLXX;\n\t\t\t\tdataMap.put(\"zzxlxx\", zzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(ZZXWXX)){\n\t\t\t\tString zzxlxx = ZZXWXX;\n\t\t\t\tdataMap.put(\"zzxlxx\", zzxlxx);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"zzxlxx\", \"\");\n\t\t\t}\n\t\t\tif(a1701 != null){\n\t\t\t\t//简历格式化\n\t\t\t\tStringBuffer originaljl = new StringBuffer(\"\");\n\t\t\t\tString jianli = AddPersonPageModel.formatJL(a1701,originaljl);\n\t\t\t\ta1701 = jianli;\n\t\t\t\tdataMap.put(\"a1701\", a1701);\n\t\t\t}\n\t\t\tif(a0107 != null && !\"\".equals(a0107)){\n\t\t\t\ta0107 = a0107.substring(0,4)+\".\"+a0107.substring(4,6);\n\t\t\t\tdataMap.put(\"a0107\", a0107);\n\t\t\t}\n\t\t\tif(a0134 != null && !\"\".equals(a0134)){\n\t\t\t\ta0134 = a0134.substring(0,4)+\".\"+a0134.substring(4,6);\n\t\t\t\tdataMap.put(\"a0134\", a0134);\n\t\t\t}\n\t\t\tif(a2949 != null && !\"\".equals(a2949)){\n\t\t\t\ta2949 = a2949.substring(0,4)+\".\"+a2949.substring(4,6);\n\t\t\t\tdataMap.put(\"a2949\", a2949);\n\t\t\t}\n\t\t\tif(a0288 != null && !\"\".equals(a0288)){\n\t\t\t\ta0288 = a0288.substring(0,4)+\".\"+a0288.substring(4,6);\n\t\t\t\tdataMap.put(\"a0288\", a0288);\n\t\t\t}\n\t\t\tif(a0192t != null && !\"\".equals(a0192t)){\n\t\t\t\ta0192t = a0192t.substring(0,4)+\".\"+a0192t.substring(4,6);\n\t\t\t\tdataMap.put(\"a0192t\", a0192t);\n\t\t\t}\n\t\t\t//姓名2个字加空格\n/*\t\t\tif(a0101 != null){\n\t\t\t\tif(a0101.length() == 2){\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t int length = a0101.length();\n\t\t\t\t for (int i1 = 0; i1 < length; i1++) {\n\t\t\t\t if (length - i1 <= 2) { //防止ArrayIndexOutOfBoundsException\n\t\t\t\t sb.append(a0101.substring(i1, i1 + 1)).append(\" \");\n\t\t\t\t sb.append(a0101.substring(i1 + 1));\n\t\t\t\t break;\n\t\t\t\t }\n\t\t\t\t sb.append(a0101.substring(i1, i1 + 1)).append(\" \");\n\t\t\t\t }\n\t\t\t\t dataMap.put(\"a0101\", sb.toString());\n\t\t\t\t}\n\t\t\t}*/\n\t\t\t\n\t\t\tdataMap.put(\"a0101\" , Space(a0101) );\n\t\t\tdataMap.put(\"a0117\" , a0117);\n\t\t\tdataMap.put(\"a0111a\", Space(a0111a));\n\t\t\tdataMap.put(\"a0128\" , a0128);\n\t\t\tdataMap.put(\"a0196\" , a0196);\n\t\t\tdataMap.put(\"a0187a\", Space(a0187a));\n\t\t\t//System.out.println(dataMap);\n\t\t\t//现职务层次格式化\n\t\t\t\n\t\t\tString a0221 = (String)dataMap.get(\"a0221\");\n\t\t\tif(a0221 !=null){\n\t\t\t\tif(a0221.length()==5){\n\t\t\t\t\ta0221 = a0221.substring(0,3)+\"\\r\\n\"+a0221.substring(3);\n\t\t\t\t\tdataMap.put(\"a0221\", a0221);\n\t\t\t\t\tdataMap.put(\"a0148\", a0221);\n\t\t\t\t}\n\t\t\t}\n\t\t\tString a0192d = (String) dataMap.get(\"a0192d\");\n\t\t\tif(a0192d !=null){\n\t\t\t\tif(a0192d.length()>5){\n\t\t\t\t\ta0192d = a0192d.substring(0, 3)+\"\\r\\n\"+a0192d.substring(3);\n\t\t\t\t\tdataMap.put(\"a0192d\", a0192d);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//dataList.add(dataMap);\n\t return dataMap;\n\t\t}", "public int Masaid_Bul(String masa_adi) throws SQLException {\n baglanti vb = new baglanti();\r\n try {\r\n \r\n vb.baglan();\r\n int masaid = 0;\r\n String sorgu = \"select idmasalar from masalar where masa_adi='\" + masa_adi + \"';\";\r\n\r\n ps = vb.con.prepareStatement(sorgu);\r\n\r\n rs = ps.executeQuery(sorgu);\r\n while (rs.next()) {\r\n masaid = rs.getInt(1);\r\n }\r\n\r\n return masaid;\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, e);\r\n return 0;\r\n }\r\n finally{\r\n vb.con.close();\r\n }\r\n }", "public void hitunganRule1(){\n penebaranBibitSedikit = 1200;\r\n hariPanenSedang = 50;\r\n \r\n //menentukan niu\r\n nBibit = (1500 - penebaranBibitSedikit) / (1500 - 500);\r\n \r\n //menentukan niu hari panen sedang\r\n if ((hariPanenSedang >=40) && (hariPanenSedang <=80)) {\r\n nPanen = (hariPanenSedang - 40) / (80 - 40);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a1 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a1 = nPanen;\r\n }\r\n \r\n //tentukan Z1\r\n z1 = (penebaranBibitSedikit + hariPanenSedang) * 700;\r\n System.out.println(\"a1 = \" + String.valueOf(a1));\r\n System.out.println(\"z1 = \" + String.valueOf(z1));\r\n }", "public String formatForAmericanModel(Date data){\n //definido modelo americano\n DateFormat formatBR = new SimpleDateFormat(\"yyyy-MM-dd\");\n return formatBR.format(data);\n \n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static void obtenerNombreAsignatura(int codAsignatura) {\n\t\tfinal AppMediador appMediador = AppMediador.getInstance();\n\t\t// busca en la tabla matriculados todos los que tienen un identificador\n\t\t// de asignatura dado\n\t\t@SuppressWarnings(\"rawtypes\")\n\t\tParseQuery query = new ParseQuery(nombreTabla);\n\t\tquery.whereEqualTo(CAMPO_CODIGO, codAsignatura);\n\t\tquery.findInBackground(new FindCallback<ParseObject>() {\n\n\t\t\t@Override\n\t\t\tpublic void done(List<ParseObject> registros, ParseException e) {\n\n\t\t\t\tif (e == null) {\n\t\t\t\t\t// Solo devolverá un unico registro ya que solo puede\n\t\t\t\t\t// existir una asignatura con un mismo codigo\n\n\t\t\t\t\tint i = 0;\n\t\t\t\t\tDatosAsignatura datos = new DatosAsignatura(registros\n\t\t\t\t\t\t\t.get(0).getNumber(CAMPO_CODIGO).intValue(),\n\t\t\t\t\t\t\tregistros.get(i).getString(CAMPO_NOMBRE), registros\n\t\t\t\t\t\t\t\t\t.get(0).getNumber(CAMPO_CURSO).intValue(),\n\t\t\t\t\t\t\tregistros.get(0).getNumber(CAMPO_CUATRIMESTRE)\n\t\t\t\t\t\t\t\t\t.intValue(), registros.get(i).getString(\n\t\t\t\t\t\t\t\t\tCAMPO_CARRERA));\n\t\t\t\t\tBundle extras = new Bundle();\n\t\t\t\t\textras.putSerializable(AppMediador.DATOS_ASIGNATURA, datos);\n\t\t\t\t\tappMediador.sendBroadcast(AppMediador.AVISO_ASIGNATURAS,\n\t\t\t\t\t\t\textras);\n\t\t\t\t} else {\n\t\t\t\t\tappMediador.sendBroadcast(AppMediador.AVISO_ASIGNATURAS,\n\t\t\t\t\t\t\tnull);\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t}", "public int aa() {\n return this.am * 121064660;\n }", "private void createAA() {\r\n\r\n\t\tfor( int x = 0 ; x < dnasequence.size(); x++) {\r\n\t\t\tString str = dnasequence.get(x);\r\n\t\t\t//put catch for missing 3rd letter\r\n\t\t\tif(str.substring(0, 1).equals(\"G\")) {\r\n\t\t\t\taasequence.add(getG(str));\r\n\t\t\r\n\t\t\t}else if(str.substring(0, 1).equals(\"C\")) {\r\n\t\t\t\taasequence.add(getC(str));\r\n\t\t\t\t\r\n\t\t\t}else if(str.substring(0, 1).equals(\"A\")) {\r\n\t\t\t\taasequence.add(getA(str));\r\n\t\t\t\t\r\n\t\t\t}else if(str.substring(0, 1).equals(\"T\")) {\r\n\t\t\t\taasequence.add(getT(str));\r\n\t\t\t\t\r\n\t\t\t}else if(str.substring(0,1).equals(\"N\")) {\r\n\t\t\t\taasequence.add(\"ERROR\");\r\n\t\t\t}else\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t}\r\n\t}", "public static String converterddmmaaaaParaaaammdd(String data) {\n String[] aux = data.trim().split(\"/\");\n String dia = aux[0].length() < 2 ? \"0\" + aux[0] : aux[0];\n String mes = aux[1].length() < 2 ? \"0\" + aux[1] : aux[1];\n return aux[2] + mes + dia;\n }", "public static String converterddmmaaaaParaaaammdd(String data) {\n String[] aux = data.trim().split(\"/\");\n String dia = aux[0].length() < 2 ? \"0\" + aux[0] : aux[0];\n String mes = aux[1].length() < 2 ? \"0\" + aux[1] : aux[1];\n return aux[2] + mes + dia;\n }", "public void hitunganRule4(){\n penebaranBibitBanyak = 1900;\r\n hariPanenLama = 110;\r\n \r\n //menentukan niu bibit\r\n nBibit = (penebaranBibitBanyak - 1500) / (3000 - 1500);\r\n \r\n //menentukan niu hari panen sedang\r\n if ((hariPanenLama >=80) && (hariPanenLama <=120)) {\r\n nPanen = (hariPanenLama - 100) / (180 - 100);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a4 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a4 = nPanen;\r\n }\r\n \r\n //tentukan Z3\r\n z4 = (penebaranBibitBanyak + hariPanenLama) * 500;\r\n System.out.println(\"a4 = \" + String.valueOf(a4));\r\n System.out.println(\"z4 = \" + String.valueOf(z4));\r\n }", "public java.lang.String getAsapcata() {\n return asapcata;\n }", "String getAnnoPubblicazione();", "public String mo75191a(Bundle bundle) {\n AppMethodBeat.m2504i(65564);\n r1 = new Object[12];\n r1[7] = \"QUE:\" + bundle.getInt(TXLiveConstants.NET_STATUS_CODEC_CACHE) + \" | \" + bundle.getInt(TXLiveConstants.NET_STATUS_CACHE_SIZE) + \",\" + bundle.getInt(TXLiveConstants.NET_STATUS_VIDEO_CACHE_SIZE) + \",\" + bundle.getInt(TXLiveConstants.NET_STATUS_V_DEC_CACHE_SIZE) + \" | \" + bundle.getInt(TXLiveConstants.NET_STATUS_AV_RECV_INTERVAL) + \",\" + bundle.getInt(TXLiveConstants.NET_STATUS_AV_PLAY_INTERVAL) + \",\" + String.format(\"%.1f\", new Object[]{Float.valueOf(bundle.getFloat(TXLiveConstants.NET_STATUS_AUDIO_PLAY_SPEED))}).toString();\n r1[8] = \"VRA:\" + bundle.getInt(TXLiveConstants.NET_STATUS_VIDEO_BITRATE) + \"Kbps\";\n r1[9] = \"DRP:\" + bundle.getInt(TXLiveConstants.NET_STATUS_CODEC_DROP_CNT) + \"|\" + bundle.getInt(TXLiveConstants.NET_STATUS_DROP_SIZE);\n r1[10] = \"SVR:\" + bundle.getString(TXLiveConstants.NET_STATUS_SERVER_IP);\n r1[11] = \"AUDIO:\" + bundle.getString(TXLiveConstants.NET_STATUS_AUDIO_INFO);\n String format = String.format(\"%-16s %-16s %-16s\\n%-12s %-12s %-12s %-12s\\n%-14s %-14s %-14s\\n%-16s %-16s\", r1);\n AppMethodBeat.m2505o(65564);\n return format;\n }", "void format08(String line, int lineCount) {\n\n // is this the first record in the file?\n checkFirstRecord(code, lineCount);\n\n // get the data off the line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n\n int subCode = 0;\n if (dataType == WATERWOD) {\n if (t.hasMoreTokens()) subCode = toInteger(t.nextToken());\n switch (subCode) {\n case 1: if (t.hasMoreTokens()) watProfQC.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) t.nextToken(); // is no profile kjn quality flag\n if (t.hasMoreTokens()) t.nextToken(); // is no profile nh3 quality flag\n if (t.hasMoreTokens()) t.nextToken(); // is no profile oxa quality flag\n if (t.hasMoreTokens()) //set profile ph quality flag\n watProfQC.setPh((toInteger(t.nextToken())));\n break;\n } // switch (subCode)\n } // if (dataType = WATERWOD)\n\n // there can only be one code 08 record per substation\n if (subCode != 1) code08Count++;\n if (code08Count > 1) {\n outputError(lineCount + \" - Fatal - \" +\n \"More than 1 code 08 record in substation\");\n } // if (code08Count > 1)\n\n //01 a2 format code always \"08\" n/a\n //02 a12 stnid station id: composed as for format 03 watphy\n //03 f7.2 kjn µgm atom / litre = µM watchem1\n //04 f6.2 nh3 µgm atom / litre = µM watchem1\n //05 f7.3 oxa mgm / litre watchem1\n //07 f5.2 ph watchem1\n\n // subCode = 1 - ignore\n // subCode = 0 (WATER) or subCode = 2 (WATERWOD)\n if (subCode != 1) {\n if (t.hasMoreTokens()) watphy.setStationId(toString(t.nextToken()));\n\n if (t.hasMoreTokens()) watchem1.setKjn(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) t.nextToken(); // is no profile kjn quality flag\n\n if (t.hasMoreTokens()) watchem1.setNh3(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) t.nextToken(); // is no profile nh3 quality flag\n\n if (t.hasMoreTokens()) watchem1.setOxa(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) t.nextToken(); // is no profile oxa quality flag\n\n if (t.hasMoreTokens()) watchem1.setPh(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set ph quality flag\n watQC.setPh((toInteger(t.nextToken())));\n } // if (subCode != 1)\n\n // station Id must match that of previous station record\n checkStationId(lineCount, watphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format08: watchem1 = \" + watchem1);\n\n }", "public final void mo75263ad() {\n String str;\n super.mo75263ad();\n if (C25352e.m83313X(this.f77546j)) {\n if (C6399b.m19944t()) {\n if (!C6776h.m20948b(mo75261ab(), C25352e.m83305P(this.f77546j)) && C25371n.m83443a(mo75261ab())) {\n C25371n.m83471b(mo75261ab(), C25352e.m83305P(this.f77546j));\n }\n } else if (!DownloaderManagerHolder.m75524a().mo51673b(C25352e.m83241x(this.f77546j))) {\n C19535g a = DownloaderManagerHolder.m75524a();\n String x = C25352e.m83241x(this.f77546j);\n Aweme aweme = this.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n AwemeRawAd awemeRawAd = aweme.getAwemeRawAd();\n if (awemeRawAd == null) {\n C7573i.m23580a();\n }\n C7573i.m23582a((Object) awemeRawAd, \"mAweme.awemeRawAd!!\");\n Long adId = awemeRawAd.getAdId();\n C7573i.m23582a((Object) adId, \"mAweme.awemeRawAd!!.adId\");\n long longValue = adId.longValue();\n Aweme aweme2 = this.f77546j;\n C7573i.m23582a((Object) aweme2, \"mAweme\");\n C19386b a2 = C22943b.m75512a(\"result_ad\", aweme2.getAwemeRawAd(), false);\n Aweme aweme3 = this.f77546j;\n C7573i.m23582a((Object) aweme3, \"mAweme\");\n AwemeRawAd awemeRawAd2 = aweme3.getAwemeRawAd();\n if (awemeRawAd2 == null) {\n C7573i.m23580a();\n }\n a.mo51670a(x, longValue, 2, a2, C22942a.m75508a(awemeRawAd2));\n }\n }\n m110463ax();\n if (!C25352e.m83313X(this.f77546j) || C6776h.m20948b(mo75261ab(), C25352e.m83305P(this.f77546j)) || DownloaderManagerHolder.m75524a().mo51673b(C25352e.m83241x(this.f77546j))) {\n C24961b b = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"click\");\n if (C25352e.m83313X(this.f77546j)) {\n str = \"download_button\";\n } else {\n str = \"more_button\";\n }\n b.mo65283e(str).mo65270a(mo75261ab());\n }\n }", "Aluno(String dataNascimento) {\n this.dataNascimento = dataNascimento;\n }", "void mo24178a(ResultData resultdata);", "public Integer[] abilitaAzioneSpecifica(TipoAzione tipoAzione){\n\n Integer[] celleDisattivate=null;\n if(tipoAzione == TipoAzione.TORRE_EDIFICIO) celleDisattivate = mantieniAbilitati(5, 8);\n else if(tipoAzione == TipoAzione.TORRE_TERRITORIO) celleDisattivate =mantieniAbilitati(1, 4);\n else if(tipoAzione == TipoAzione.TORRE_IMPRESA) celleDisattivate =mantieniAbilitati(13, 16);\n else if(tipoAzione == TipoAzione.TORRE_PERSONAGGIO) celleDisattivate =mantieniAbilitati(9, 12);\n else if(tipoAzione == TipoAzione.TORRE) celleDisattivate =mantieniAbilitati(1, 16);\n else if(tipoAzione == TipoAzione.PRODUZIONE) celleDisattivate =mantieniAbilitati(17, 18);\n else if(tipoAzione == TipoAzione.RACCOLTO) celleDisattivate =mantieniAbilitati(19, 20);\n return celleDisattivate;\n\n }", "public static Map<String, Object> getMap(String a0000,String tpid, String js0122) throws Exception{\n\t ExportDataBuilder edb = new ExportDataBuilder();\n\t Map<String, Object> dataMap = new HashMap<String, Object>();\n\t if(tpid.equals(\"eebdefc2-4d67-4452-a973-5f7939530a11\")){\n\t \tdataMap = edb.getGbrmspbMap(a0000, js0122);\n\t }else if(tpid.equals(\"5d3cef0f0d8b430cb35b2ac2cb3bf927\")||tpid.equals(\"0f6e25ab-ee0a-4b23-b52d-7c6774dfc462\")){\n\t \tdataMap = edb.getGwydjbMap(a0000);\n\t }else if(tpid.equals(\"a43d8c50-400d-42fe-9e0d-5665ed0b0508\")){\n\t \tdataMap = edb.getNdkhdjb(a0000);\n\t }else if(tpid.equals(\"04f59673-9c3a-4d9c-b016-a5b789d636e2\")){\n\t \tdataMap = edb.getGwyjlspb(a0000);\n\t }else if(tpid.equals(\"3de527c0-ea23-42c4-a66f\")){\n\t \t//dataMap = edb.getGwylyspb(a0000);\n\t \tdataMap = edb.getGwylyb(a0000);\n\t }else if(tpid.equals(\"9e7e1226-6fa1-46a1-8270\")){\n\t \tdataMap = edb.getGwydrspb(a0000);\n\t }else if(tpid.equals(\"28bc4d39-dccd-4f07-8aa9\")){\n\t \tdataMap = edb.getGwyzjtgb(a0000);\n\t }\n\t\t\t/** 姓名 */\n\t\t\tString a0101 = (String) dataMap.get(\"a0101\");\n\t\t\t/** 民族 */\n\t\t\tString a0117 = (String) dataMap.get(\"a0117\");\n\t\t\t/** 籍贯 */\n\t\t\tString a0111a = (String) dataMap.get(\"a0111a\");\n\t\t\t/** 健康 */\n\t\t\tString a0128 = (String) dataMap.get(\"a0128\");\n\t\t\t/** 专业技术职务 */\n\t\t\tString a0196 = (String) dataMap.get(\"a0196\");\n\t\t\t/** 特长 */\n\t\t\tString a0187a = (String) dataMap.get(\"a0187a\");\n\t\t\t/** 身份证号码 */\n\t\t\tString a0184 = (String) dataMap.get(\"a0184\");\n\t\t\t//格式化时间参数\n\t\t\tString a0107 = (String)dataMap.get(\"a0107\");\n\t\t\tString a0134 = (String)dataMap.get(\"a0134\");\n\t\t\tString a1701 = (String)dataMap.get(\"a1701\");\n\t\t\tString a2949 = (String)dataMap.get(\"a2949\");\n\t\t\tString a0288 = (String) dataMap.get(\"a0288\");\n\t\t\tString a0192t = (String) dataMap.get(\"a0192t\");\n\t\t\t//格式化学历学位\n\t\t\tString qrzxl = (String)dataMap.get(\"qrzxl\");\n\t\t\tString qrzxw = (String)dataMap.get(\"qrzxw\");\n\t\t\tString zzxl = (String)dataMap.get(\"zzxl\");\n\t\t\tString zzxw = (String)dataMap.get(\"zzxw\");\n\t\t\tif(!StringUtil.isEmpty(qrzxl)&&!StringUtil.isEmpty(qrzxw)){\n\t\t\t\tString qrzxlxw = qrzxl+\"\\r\\n\"+qrzxw;\n\t\t\t\tdataMap.put(\"qrzxlxw\", qrzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(qrzxl)){\n\t\t\t\tString qrzxlxw = qrzxl;\n\t\t\t\tdataMap.put(\"qrzxlxw\", qrzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(qrzxw)){\n\t\t\t\tString qrzxlxw = qrzxw;\n\t\t\t\tdataMap.put(\"qrzxlxw\", qrzxlxw);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"qrzxlxw\", \"\");\n\t\t\t}\n\t\t\tif(!StringUtil.isEmpty(zzxl)&&!StringUtil.isEmpty(zzxw)){\n\t\t\t\tString zzxlxw = zzxl+\"\\r\\n\"+zzxw;\n\t\t\t\tdataMap.put(\"zzxlxw\", zzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(zzxl)){\n\t\t\t\tString zzxlxw = zzxl;\n\t\t\t\tdataMap.put(\"zzxlxw\", zzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(zzxw)){\n\t\t\t\tString zzxlxw = zzxw;\n\t\t\t\tdataMap.put(\"zzxlxw\", zzxlxw);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"zzxlxw\", \"\");\n\t\t\t}\n\t\t\t//格式化学校及院系\n\t\t\tString QRZXLXX = (String) dataMap.get(\"qrzxlxx\");\n\t\t\tString QRZXWXX = (String) dataMap.get(\"qrzxwxx\");\n\t\t\tString ZZXLXX = (String) dataMap.get(\"zzxlxx\");\n\t\t\tString ZZXWXX = (String) dataMap.get(\"zzxwxx\");\n\t\t\tif(!StringUtil.isEmpty(QRZXLXX)&&!StringUtil.isEmpty(QRZXWXX)&&!QRZXLXX.equals(QRZXWXX)){\n\t\t\t\tString qrzxlxx = QRZXLXX+\"\\r\\n\"+QRZXWXX;\n\t\t\t\tdataMap.put(\"qrzxlxx\", qrzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(QRZXLXX)){\n\t\t\t\tString qrzxlxx = QRZXLXX;\n\t\t\t\tdataMap.put(\"qrzxlxx\", qrzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(QRZXWXX)){\n\t\t\t\tString qrzxlxx = QRZXWXX;\n\t\t\t\tdataMap.put(\"qrzxlxx\", qrzxlxx);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"qrzxlxx\", \"\");\n\t\t\t}\n\t\t\tif(!StringUtil.isEmpty(ZZXLXX)&&!StringUtil.isEmpty(ZZXWXX)&&!ZZXLXX.equals(ZZXWXX)){\n\t\t\t\tString zzxlxx = ZZXLXX+\"\\r\\n\"+ZZXWXX;\n\t\t\t\tdataMap.put(\"zzxlxx\", zzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(ZZXLXX)){\n\t\t\t\tString zzxlxx = ZZXLXX;\n\t\t\t\tdataMap.put(\"zzxlxx\", zzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(ZZXWXX)){\n\t\t\t\tString zzxlxx = ZZXWXX;\n\t\t\t\tdataMap.put(\"zzxlxx\", zzxlxx);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"zzxlxx\", \"\");\n\t\t\t}\n\t\t\tif(a1701 != null){\n\t\t\t\t//简历格式化\n\t\t\t\tStringBuffer originaljl = new StringBuffer(\"\");\n\t\t\t\tString jianli = AddPersonPageModel.formatJL(a1701,originaljl);\n\t\t\t\ta1701 = jianli;\n\t\t\t\tdataMap.put(\"a1701\", a1701);\n\t\t\t}\n\t\t\tif(a0107 != null && !\"\".equals(a0107)){\n\t\t\t\ta0107 = a0107.substring(0,4)+\".\"+a0107.substring(4,6);\n\t\t\t\tdataMap.put(\"a0107\", a0107);\n\t\t\t}\n\t\t\tif(a0134 != null && !\"\".equals(a0134)){\n\t\t\t\ta0134 = a0134.substring(0,4)+\".\"+a0134.substring(4,6);\n\t\t\t\tdataMap.put(\"a0134\", a0134);\n\t\t\t}\n\t\t\tif(a2949 != null && !\"\".equals(a2949)){\n\t\t\t\ta2949 = a2949.substring(0,4)+\".\"+a2949.substring(4,6);\n\t\t\t\tdataMap.put(\"a2949\", a2949);\n\t\t\t}\n\t\t\tif(a0288 != null && !\"\".equals(a0288)){\n\t\t\t\ta0288 = a0288.substring(0,4)+\".\"+a0288.substring(4,6);\n\t\t\t\tdataMap.put(\"a0288\", a0288);\n\t\t\t}\n\t\t\tif(a0192t != null && !\"\".equals(a0192t)){\n\t\t\t\ta0192t = a0192t.substring(0,4)+\".\"+a0192t.substring(4,6);\n\t\t\t\tdataMap.put(\"a0192t\", a0192t);\n\t\t\t}\n\t\t\t//姓名2个字加空格\n/*\t\t\tif(a0101 != null){\n\t\t\t\tif(a0101.length() == 2){\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t int length = a0101.length();\n\t\t\t\t for (int i1 = 0; i1 < length; i1++) {\n\t\t\t\t if (length - i1 <= 2) { //防止ArrayIndexOutOfBoundsException\n\t\t\t\t sb.append(a0101.substring(i1, i1 + 1)).append(\" \");\n\t\t\t\t sb.append(a0101.substring(i1 + 1));\n\t\t\t\t break;\n\t\t\t\t }\n\t\t\t\t sb.append(a0101.substring(i1, i1 + 1)).append(\" \");\n\t\t\t\t }\n\t\t\t\t dataMap.put(\"a0101\", sb.toString());\n\t\t\t\t}\n\t\t\t}*/\n\t\t\t\n\t\t\tdataMap.put(\"a0101\" , Space(a0101) );\n\t\t\tdataMap.put(\"a0117\" , Space(a0117) );\n\t\t\tdataMap.put(\"a0111a\", Space(a0111a));\n\t\t\tdataMap.put(\"a0128\" , Space(a0128) );\n\t\t\tdataMap.put(\"a0196\" , Space(a0196) );\n\t\t\tdataMap.put(\"a0187a\", Space(a0187a));\n\t\t\t//System.out.println(dataMap);\n\t\t\t//现职务层次格式化\n\t\t\t\n\t\t\tString a0221 = (String)dataMap.get(\"a0221\");\n\t\t\tif(a0221 !=null){\n\t\t\t\tif(a0221.length()==5){\n\t\t\t\t\ta0221 = a0221.substring(0,3)+\"\\r\\n\"+a0221.substring(3);\n\t\t\t\t\tdataMap.put(\"a0221\", a0221);\n\t\t\t\t\tdataMap.put(\"a0148\", a0221);\n\t\t\t\t}\n\t\t\t}\n\t\t\tString a0192d = (String) dataMap.get(\"a0192d\");\n\t\t\tif(a0192d !=null){\n\t\t\t\tif(a0192d.length()>5){\n\t\t\t\t\ta0192d = a0192d.substring(0, 3)+\"\\r\\n\"+a0192d.substring(3);\n\t\t\t\t\tdataMap.put(\"a0192d\", a0192d);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//dataList.add(dataMap);\n\t return dataMap;\n\t\t}", "public static String formatarDataSemBarra(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public final /* synthetic */ aza mo39939d(aza aza) throws GeneralSecurityException {\n return (aug) ((axu) aug.m47299a().mo40048a(0).mo40049a(zzcce.zzy(avp.m47382a(32))).mo40293e());\n }", "void format13(String line, int lineCount) {\n\n // is this the first record in the file?\n checkFirstRecord(code, lineCount);\n\n // there can only be one code 13 record per substation\n code13Count++;\n if (code13Count > 1) {\n outputError(lineCount + \" - Fatal - \" +\n \"More than 1 code 13 record in substation\");\n } // if (code13Count > 1)\n\n // get the data off the line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n\n if (dataType == SEDIMENT) {\n\n //01 a2 format code always \"13\" n/a\n //02 a12 stnid station id: composed as for format 03 sedphy\n //03 i5 aluminium µgm / gram sedpol2\n //04 f8.3 antimony µgm / gram sedpol2\n //05 f4.1 bismuth µgm / gram sedpol2\n //06 f4.1 molybdenum µgm / gram sedpol2\n //07 f8.3 silver µgm / gram sedpol2\n //08 i4 titanium µgm / gram sedpol2\n //09 f5.2 vanadium µgm / gram sedpol2\n\n if (t.hasMoreTokens()) sedphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) sedpol2.setAluminium(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) sedpol2.setAntimony(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol2.setBismuth(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol2.setMolybdenum(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol2.setSilver(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol2.setTitanium(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) sedpol2.setVanadium(toFloat(t.nextToken(), 1f));\n\n // station Id must match that of previous station record\n checkStationId(lineCount, sedphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format13: sedpol2 = \" + sedpol2);\n\n } else if (dataType == WATER) {\n\n //01 a2 format code always \"13\" n/a\n //02 a12 stnid station id: composed as for format 03 watphy\n //03 i5 aluminium µgm / litre watpol2\n //04 f8.3 antimony µgm / litre watpol2\n //05 f4.1 bismuth µgm / litre watpol2\n //06 f4.1 molybdenum µgm / litre watpol2\n //07 f8.3 silver µgm / litre watpol2\n //08 i4 titanium µgm / litre watpol2\n //08 f5.2 vanadium µgm / litre watpol2\n\n if (t.hasMoreTokens()) watphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) watpol2.setAluminium(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) watpol2.setAntimony(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol2.setBismuth(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol2.setMolybdenum(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol2.setSilver(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol2.setTitanium(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) watpol2.setVanadium(toFloat(t.nextToken(), 1f));\n\n // station Id must match that of previous station record\n checkStationId(lineCount, watphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format13: watpol2 = \" + watpol2);\n\n } // if (dataType == SEDIMENT)\n\n }", "String getATCUD();", "public String generarEstadisticasPorFacultad(String cualFacultad) {\n \n int contadorAlta = 0;\n String pAltaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadAlta.size(); i++) {\n if(EmpleadosPrioridadAlta.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorAlta += 1;\n pAltaEmpl += \"nombre: \" + EmpleadosPrioridadAlta.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadAlta.get(i).getIdentificacion() + \"\\n\";\n \n }\n }\n String pAlta = \"Se encuentran \" + contadorAlta + \" Empleados en condicion Alta\\n\";\n if(EmpleadosPrioridadAlta.isEmpty() == false){\n pAlta += \"los cuales son:\\n\" + pAltaEmpl;\n }\n \n int contadorMAlta = 0;\n String pMAltaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadMediaAlta.size(); i++) {\n if(EmpleadosPrioridadMediaAlta.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorMAlta += 1;\n pMAltaEmpl += \"nombre: \" + EmpleadosPrioridadMediaAlta.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadMediaAlta.get(i).getIdentificacion() + \"\\n\";\n \n }\n }\n String pMAlta = \"Se encuentran \" + contadorMAlta + \" Empleados en condicion Media Alta\\n\";\n if(EmpleadosPrioridadMediaAlta.isEmpty() == false){\n pMAlta += \"los cuales son:\\n\" + pMAltaEmpl;\n }\n \n int contadorMedia = 0;\n String pMediaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadMedia.size(); i++) {\n if(EmpleadosPrioridadMedia.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorMedia += 1;\n pMediaEmpl += \"nombre: \" + EmpleadosPrioridadMedia.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadMedia.get(i).getIdentificacion() + \"\\n\";\n \n }\n }\n String pMedia = \"Se encuentran \" + contadorMedia + \" Empleados en condicion Media\\n\";\n if(EmpleadosPrioridadMedia.isEmpty() == false){\n pMedia += \"los cuales son:\\n\" + pMediaEmpl;\n }\n \n int contadorBaja = 0;\n String pBajaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadBaja.size(); i++) {\n if(EmpleadosPrioridadBaja.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorBaja += 1;\n pBajaEmpl += \"nombre: \" + EmpleadosPrioridadBaja.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadBaja.get(i).getIdentificacion() + \"\\n\";\n }\n }\n String pBaja = \"Se encuentran \" + contadorBaja + \" Empleados en condicion Baja\\n\" ;\n if(EmpleadosPrioridadBaja.isEmpty() == false){\n pBaja += \"los cuales son:\\n\" + pBajaEmpl;\n }\n \n return \"En la facultad \" + cualFacultad + \" de la universidad del valle: \\n\"\n + pAlta + pMAlta + pMedia + pBaja;\n }", "public static CheckResult extractStats4ALI(String line) {\n String[] splits = SEMI.split(line);\n if(splits!=null && splits.length>41) {\n Double sales = splits[22].equals(\"\")?Double.valueOf(\"0.00\"):Double.valueOf(splits[22]);\n\n return new CheckResult(1,sales,\"ALI\");\n }\n return new CheckResult(1,0.00,null);\n }", "private static CartelleAvvisiResponseType getBPSCartelleResponse( Fascicolo fascicolo) throws Exception {\n\t\t\r\n\t\tCartellaAvvisiRequestType bpCartelleRequest = new CartellaAvvisiRequestType(); \r\n\t\tbpCartelleRequest.setTipologiaRichiesta(MessagesClass.getMessage(\"TIPOLOGIA_DOCUMENTI_TUTTI\").trim()) ;\t \r\n\t\tbpCartelleRequest.setCodiceFiscale(fascicolo.getAnagrafica().getCodiceFiscale().trim());\r\n\t\t//il tipo documento (cartella od avviso), viene lasciato vuoto in modo da caricare entrambe le tipologie\r\n\t\t//bpCartelleRequest.setTipoDocumento(null); \r\n\t\t\r\n\t\t//inizio modifiche Agosto\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\"); \r\n\t\tDate dataAttuale = new Date(); \r\n\t\tlogger.debug(dateFormat.format(dataAttuale)); \r\n\t\tbpCartelleRequest.setDataRichiesta(dataAttuale );\r\n\t\t//fine modifiche Agosto\r\n\t\t\r\n\t\treturn getBPSCartelleResponse(bpCartelleRequest);\r\n\t}", "void mo5872a(String str, Data data);", "private final void m110453aA() {\n if (this.f77530as && !m110454aB()) {\n if (!m110456aD()) {\n this.f89226e = false;\n } else if (!this.f89226e) {\n this.f89226e = true;\n C24958f.m81905a().mo65266a(\"result_ad\").mo65276b(\"show\").mo65273b(this.f77546j).mo65283e(\"video\").mo65270a(mo75261ab());\n Aweme aweme = this.f77546j;\n if (aweme != null) {\n AwemeRawAd awemeRawAd = aweme.getAwemeRawAd();\n if (awemeRawAd != null) {\n C7573i.m23582a((Object) awemeRawAd, \"it\");\n m110468c(awemeRawAd, null);\n }\n }\n }\n }\n }", "public String getAKA100() {\n return AKA100;\n }", "public void eisagwgiAstheni() {\n\t\t// Elegxw o arithmos twn asthenwn na mhn ypervei ton megisto dynato\n\t\tif(numOfPatient < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tpatient[numOfPatient] = new Asthenis();\n\t\t\tpatient[numOfPatient].setFname(sir.readString(\"DWSTE TO ONOMA TOU ASTHENH: \")); // Pairnei to onoma tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU ASTHENH: \")); // Pairnei to epitheto tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setAMKA(rnd.nextInt(1000000)); // To sistima dinei automata ton amka tou asthenous\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t//Elegxos monadikotitas tou amka tou astheni\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tif(patient[i].getAMKA() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfPatient++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS ASTHENEIS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "void format11(String line, int lineCount) {\n\n // is this the first record in the file?\n checkFirstRecord(code, lineCount);\n\n // there can only be one code 11 record per substation\n code11Count++;\n if (code11Count > 1) {\n outputError(lineCount + \" - Fatal - \" +\n \"More than 1 code 11 record in substation\");\n } // if (code11Count > 1)\n\n // get the data off the line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n\n if (dataType == SEDIMENT) {\n\n //01 a2 format code always \"11\" n/a\n //02 a12 stnid station id: composed as for format 03 sedphy\n //03 f7.3 cadmium µgm / gram sedpol1\n //04 f8.3 lead µgm / gram sedpol1\n //05 f8.3 copper µgm / gram sedpol1\n //06 f8.3 zinc µgm / gram sedpol1\n //07 f8.4 mercury µgm / gram sedpol1\n //08 f8.3 nickel µgm / gram sedpol1\n\n if (t.hasMoreTokens()) sedphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) sedpol1.setCadmium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol1.setLead(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol1.setCopper(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol1.setZinc(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol1.setMercury(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol1.setNickel(toFloat(t.nextToken(), 1f));\n\n // station Id must match that of previous station record\n checkStationId(lineCount, sedphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format11: sedpol1 = \" + sedpol1);\n\n } else if (dataType == WATER) {\n\n //01 a2 format code always \"11\" n/a\n //02 a12 stnid station id: composed as for format 03 watphy\n //03 f7.3 cadmium µgm / litre watpol1\n //04 f8.3 lead µgm / litre watpol1\n //05 f8.3 copper µgm / litre watpol1\n //06 f8.3 zinc µgm / litre watpol1\n //07 f8.4 mercury µgm / litre watpol1\n //08 f8.3 nickel µgm / litre watpol1\n\n if (t.hasMoreTokens()) watphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) watpol1.setCadmium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol1.setLead(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol1.setCopper(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol1.setZinc(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol1.setMercury(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol1.setNickel(toFloat(t.nextToken(), 1f));\n\n // station Id must match that of previous station record\n checkStationId(lineCount, watphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format11: watpol1 = \" + watpol1);\n\n } // if (dataType == SEDIMENT)\n\n }", "public java.lang.String getHora_hasta();", "private void parseData() {\n\t\t\r\n\t}", "public static void main(String[] args) {\n Pasien Dam = new Pasien(\"Puspaningsyas\");\r\n Dam.setTanggalLahir(1974, 1, 12);\r\n// String str = Dam.getNama();\r\n \r\n \r\n\r\n System.out.println(\"Umur = \" + Dam.getUsia());\r\n Dam.NomorRekamMedis();\r\n // System.out.println(str.substring(0, 3));\r\n\r\n// Pasien Dam2 = new Pasien(\"Dam\");\r\n// Dam2.setTanggalLahir(1999,3,13);\r\n// System.out.println(\"Umur = \" +Dam2.getUsia());\r\n }", "void format05(String line, int lineCount) {\n\n float spldepDifference = 0f;\n\n // is this the first record in the file?\n checkFirstRecord(code, lineCount);\n\n String tmpStationId = \"\";\n String tmpSubdes = \"\";\n float tmpSpldep = -9999f;\n\n // get the data off the line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n\n int subCode = 0;\n if (dataType == WATERWOD) {\n if (t.hasMoreTokens()) subCode = toInteger(t.nextToken());\n switch (subCode) {\n case 1: if (t.hasMoreTokens()) t.nextToken(); //watProfQC.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) //set profile temperature quality flag\n watProfQC.setTemperature((toInteger(t.nextToken())));\n if (t.hasMoreTokens()) //set profile salinity quality flag\n watProfQC.setSalinity((toInteger(t.nextToken())));\n if (t.hasMoreTokens()) //set profile disoxygen quality flag\n watProfQC.setDisoxygen((toInteger(t.nextToken())));\n break;\n\n } // switch (subCode)\n } // if (dataType = WATERWOD)\n if (dbg) System.out.println(\"format05: subCode = \" + subCode);\n\n if (dataType == CURRENTS) {\n\n //01 a2 format code always \"05\" n/a\n //02 a12 stnid station id: composed as for format 03 currents\n //03 f7.2 sample depth in m currents\n //04 i3 current dir in deg TN currents\n //05 f5.2 current speed in m/s currents\n\n if (t.hasMoreTokens()) currents.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) currents.setSpldep(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) currents.setCurrentDir(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) currents.setCurrentSpeed(toFloat(t.nextToken(), 1f));\n\n tmpStationId = currents.getStationId(\"\");\n tmpSubdes = currents.getSubdes(\"\");\n tmpSpldep = currents.getSpldep();\n\n } else if (dataType == SEDIMENT) {\n\n // This is a new sub-station record - set flags for code 06 to 13\n // to false\n code06Count = 0;\n code07Count = 0;\n //code08Count = 0;\n code09Count = 0;\n //code10Count = 0;\n code11Count = 0;\n code12Count = 0;\n code13Count = 0;\n\n //01 a2 format code always “05\" n/a\n //02 a12 stnid station id: composed as for format 03 sedphy\n //03 f7.2 sample depth in m sedphy\n //04 f6.3 cod mg O2 / litre sedphy\n //05 f8.4 dwf sedphy\n //06 i5 meanpz µns sedphy\n //07 i5 medipz µns sedphy\n //08 f8.3 kurt sedphy\n //09 f8.3 skew sedphy\n\n if (t.hasMoreTokens()) sedphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) sedphy.setSpldep(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setCod(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setDwf(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setMeanpz(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) sedphy.setMedipz(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) sedphy.setKurt(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setSkew(toFloat(t.nextToken(), 1f));\n\n tmpStationId = sedphy.getStationId(\"\");\n tmpSubdes = sedphy.getSubdes(\"\");\n tmpSpldep = sedphy.getSpldep();\n if (dbg) System.out.println(\"<br>format05: subdes = \" + subdes +\n \", sedphy.getSubdes() = \" + sedphy.getSubdes(\"\"));\n if (dbg) System.out.println(\"<br>format05: tmpSpldep = \" + tmpSpldep);\n\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n\n // This is a new sub-station record - set flags for code 06 to 13\n // to false\n code06Count = 0;\n code07Count = 0;\n code08Count = 0;\n code09Count = 0;\n code10Count = 0;\n code11Count = 0;\n code12Count = 0;\n code13Count = 0;\n\n // subCode = 1 - ignore\n // subCode = 0 (WATER) or subCode = 2 (WATERWOD)\n if (subCode != 1) {\n //01 a2 format code always \"05\" n/a\n //02 a12 stnid station id: composed as for format 03 watphy\n //03 f7.2 sample depth in m watphy\n //04 f5.2 temperature in deg C watphy\n //05 f6.3 salinity in parts per thousand (?) watphy\n //06 f5.2 dis oxygen in ml / litre watphy\n\n if (t.hasMoreTokens()) watphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) watphy.setSpldep(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set spldep quality flag\n watQC.setSpldep((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watphy.setTemperature(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set temperature quality flag\n watQC.setTemperature((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watphy.setSalinity(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set salinity quality flag\n watQC.setSalinity((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watphy.setDisoxygen(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set disoxygen quality flag\n watQC.setDisoxygen((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watphy.setTurbidity(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watphy.setPressure(toFloat(t.nextToken(), 1f)); // ub09\n if (t.hasMoreTokens()) watphy.setFluorescence(toFloat(t.nextToken(), 1f)); // ub09\n\n if (watphy.getSpldep() == Tables.FLOATNULL) { // ub11\n if ((watphy.getPressure() != Tables.FLOATNULL) && // ub11\n (station.getLatitude() != Tables.FLOATNULL)) { // ub11\n watphy.setSpldep( // ub11\n calcDepth(watphy.getPressure(), // ub11\n station.getLatitude())); // ub11\n } // if ((watphy.getPressure() != Tables.FLOATNULL) && .// ub11\n } // if (watphy.getSpldep() == Tables.FLOATNULL) // ub11\n\n tmpStationId = watphy.getStationId(\"\");\n tmpSubdes = watphy.getSubdes(\"\");\n tmpSpldep = watphy.getSpldep();\n if (dbg) System.out.println(\"<br>format05: subdes = \" + subdes +\n \", watphy.getSubdes() = \" + watphy.getSubdes(\"\"));\n } // if (subCode != 1)\n\n } // if (dataType == CURRENTS)\n\n // subCode = 1 - ignore\n // subCode = 0 (WATER/CURRENTS/SEDIMENT) or subCode = 2 (WATERWOD)\n if (subCode != 1) {\n // station Id must match that of previous station record\n checkStationId(lineCount, tmpStationId);\n\n // samples must be at least 0.5 metre deeper than the previous.\n // If this is not the case, reject the sample.\n // Only valid for CTD-type data, not for XBT or currents\n if (\"CTD\".equals(tmpSubdes)) {\n if (\"U\".equals(upIndicator)) {\n spldepDifference = prevDepth - tmpSpldep;\n } else {\n spldepDifference = tmpSpldep - prevDepth;\n } // if (\"U\".equals(upIndicator))\n } else {\n spldepDifference = 1f;\n } // if (\"CTD\".equals(tmpSubdes))\n\n if ((spldepDifference < 0.5f) && (tmpSpldep != 0f) &&\n (prevDepth != 0f)) {\n rejectDepth = true;\n stationSampleRejectCount++;\n sampleRejectCount++;\n\n if ((dataType == WATER) || (dataType == WATERWOD)) {\n watchem1 = new MrnWatchem1();\n watchem1 = new MrnWatchem1();\n watchl = new MrnWatchl();\n watnut = new MrnWatnut();\n watpol1 = new MrnWatpol1();\n watpol2 = new MrnWatpol2();\n } // if ((dataType == WATER) || (dataType == WATERWOD))\n if (dataType == WATERWOD) {\n watQC = new MrnWatqc();\n } // if (dataType == WATERWOD)\n } else {\n rejectDepth = false;\n prevDepth = tmpSpldep;\n\n // update the minimum and maximum depth\n if (tmpSpldep < depthMin) {\n depthMin = tmpSpldep;\n } // if (tmpSpldep < depthMin)\n if (tmpSpldep > depthMax) {\n depthMax = tmpSpldep;\n } // if (tmpSpldep < depthMin)\n\n } // if ((spldepDifference < 0.5f) &&\n\n // update the counters\n sampleCount++;\n stationSampleCount++;\n\n if (dbg) System.out.println(\"<br>format05: depthMax = \" + depthMax);\n // keep the maximum depth for the station\n station.setMaxSpldep(depthMax);\n //if (dbg) System.out.println(\"format05: station = \" + station);\n if (dbg) {\n if (dataType == CURRENTS) {\n System.out.println(\"<br>format05: currents = \" + currents);\n } else if (dataType == SEDIMENT) {\n System.out.println(\"<br>format05: sedphy = \" + sedphy);\n } else if (dataType == WATER) {\n System.out.println(\"<br>format05: watphy = \" + watphy);\n } else if (dataType == WATERWOD) {\n System.out.println(\"format05: watProfQC = \" + watProfQC);\n System.out.println(\"format05: watQC = \" + watQC);\n System.out.println(\"format05: watphy = \" + watphy);\n } // if (dataType == CURRENTS)\n } // if (dbg)\n\n } // if (subCode != 1)\n\n }", "public C4720i0 mo11074a(C4878a aVar) {\n boolean z;\n C4878a aVar2 = aVar;\n if (aVar2 != null) {\n C4706e0 g = aVar.mo11176g();\n if (g != null) {\n C4707a aVar3 = new C4707a(g);\n C4716h0 h0Var = g.f11032e;\n String str = \"Content-Type\";\n String str2 = \"Content-Length\";\n if (h0Var != null) {\n C4879z b = h0Var.mo10973b();\n if (b != null) {\n aVar3.mo11017a(str, b.f11638a);\n }\n long a = h0Var.mo10970a();\n String str3 = \"Transfer-Encoding\";\n if (a != -1) {\n aVar3.mo11017a(str2, String.valueOf(a));\n aVar3.mo11016a(str3);\n } else {\n aVar3.mo11017a(str3, \"chunked\");\n aVar3.mo11016a(str2);\n }\n }\n String str4 = \"Host\";\n int i = 0;\n if (g.mo11012a(str4) == null) {\n aVar3.mo11017a(str4, C4737b.m10456a(g.f11029b, false));\n }\n String str5 = \"Connection\";\n if (g.mo11012a(str5) == null) {\n aVar3.mo11017a(str5, \"Keep-Alive\");\n }\n String str6 = \"Accept-Encoding\";\n String str7 = \"gzip\";\n if (g.mo11012a(str6) == null && g.mo11012a(\"Range\") == null) {\n aVar3.mo11017a(str6, str7);\n z = true;\n } else {\n z = false;\n }\n List a2 = this.f11294a.mo11344a(g.f11029b);\n if (!a2.isEmpty()) {\n StringBuilder sb = new StringBuilder();\n for (Object next : a2) {\n int i2 = i + 1;\n if (i >= 0) {\n C4854n nVar = (C4854n) next;\n if (i > 0) {\n sb.append(\"; \");\n }\n sb.append(nVar.f11571a);\n sb.append('=');\n sb.append(nVar.f11572b);\n i = i2;\n } else {\n C2286e.m5338f();\n throw null;\n }\n }\n String sb2 = sb.toString();\n C4638h.m10270a((Object) sb2, \"StringBuilder().apply(builderAction).toString()\");\n aVar3.mo11017a(\"Cookie\", sb2);\n }\n String str8 = \"User-Agent\";\n if (g.mo11012a(str8) == null) {\n aVar3.mo11017a(str8, \"okhttp/4.2.1\");\n }\n C4720i0 a3 = aVar2.mo11170a(aVar3.mo11021a());\n C4776e.m10582a(this.f11294a, g.f11029b, a3.f11065k);\n C4721a aVar4 = new C4721a(a3);\n aVar4.f11073a = g;\n if (z) {\n String str9 = \"Content-Encoding\";\n if (C4681g.m10322a(str7, C4720i0.m10406a(a3, str9, null, 2), true) && C4776e.m10583a(a3)) {\n C4725j0 j0Var = a3.f11066l;\n if (j0Var != null) {\n C4902n nVar2 = new C4902n(j0Var.mo10991h());\n C4871a c = a3.f11065k.mo11368c();\n c.mo11381c(str9);\n c.mo11381c(str2);\n aVar4.mo11041a(c.mo11378a());\n aVar4.f11079g = new C4779h(C4720i0.m10406a(a3, str, null, 2), -1, C0967p0.m2183a((C4882a0) nVar2));\n }\n }\n }\n return aVar4.mo11042a();\n }\n throw null;\n }\n C4638h.m10271a(\"chain\");\n throw null;\n }", "public final /* synthetic */ Object mo39938c(aza aza) throws GeneralSecurityException {\n aug aug = (aug) aza;\n avs.m47386a(aug.zzfih, 0);\n if (aug.zzfip.size() == 32) {\n return new avu(aug.zzfip.toByteArray());\n }\n throw new GeneralSecurityException(\"invalid XChaCha20Poly1305Key: incorrect key length\");\n }", "public Calificacion(String asignatura, int nota) {\n\t\tthis.asignatura = asignatura;\n\t\tthis.nota = nota;\n\t}", "void format06(String line, int lineCount) {\n\n // is this the first record in the file?\n checkFirstRecord(code, lineCount);\n\n // get the data off the line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n\n int subCode = 0;\n if (dataType == WATERWOD) {\n if (t.hasMoreTokens()) subCode = toInteger(t.nextToken());\n switch (subCode) {\n case 1: if (t.hasMoreTokens()) watProfQC.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) t.nextToken(); // is no profile no2 quality flag\n if (t.hasMoreTokens()) //set profile no3 quality flag\n watProfQC.setNo3((toInteger(t.nextToken())));\n if (t.hasMoreTokens()) //set profile po4 quality flag\n watProfQC.setPo4((toInteger(t.nextToken())));\n if (t.hasMoreTokens()) t.nextToken(); // is no profile ptot quality flag\n if (t.hasMoreTokens()) t.nextToken(); // is no profile sio3 quality flag\n if (t.hasMoreTokens()) //set profile sio4 quality flag\n watProfQC.setSio3((toInteger(t.nextToken())));\n if (t.hasMoreTokens()) //set profile chla quality flag\n watProfQC.setChla((toInteger(t.nextToken())));\n if (t.hasMoreTokens()) t.nextToken(); // is no profile chlb quality flag\n if (t.hasMoreTokens()) t.nextToken(); // is no profile chlc quality flag\n break;\n } // switch (subCode)\n } // if (dataType = WATERWOD)\n\n\n // there can only be one code 06 record per substation\n if (subCode != 1) code06Count++; // ignore WATERWOD code 1\n if (code06Count > 1) {\n outputError(lineCount + \" - Fatal - \" +\n \"More than 1 code 06 record in substation\");\n } // if (code06Count > 1)\n\n if (dataType == SEDIMENT) {\n\n //01 a2 format code always “06\" n/a/a\n //02 a12 stnid station id: composed as for format 03 sedphyhy\n //03 f4.1 pctsat percent sedphywatnut\n //04 f4.1 pctsil percent sedphywatnut\n //05 i5 permty seconds sedphyM watnut\n //06 f4.1 porsty percent sedphyM watnut\n //07 f5.1 splvol litre sedphy = µM watnut\n //08 i3 spldis sedphytre watchl\n //09 f8.1 sievsz sedphywatchl\n\n if (t.hasMoreTokens()) sedphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) sedphy.setPctsat(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setPctsil(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setPermty(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) sedphy.setPorsty(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setSplvol(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setSpldis(toInteger(t.nextToken())); // ub07\n if (t.hasMoreTokens()) sedphy.setSievsz(toFloat(t.nextToken(), 1f));\n\n // station Id must match that of previous station record\n checkStationId(lineCount, sedphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format06: sedphy = \" + sedphy);\n\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n\n //01 a2 format code always \"06\" n/a\n //02 a12 stnid station id: composed as for format 03 watphy\n //03 f6.2 NO2 µgm atom / litre = uM watnut\n //04 f6.2 NO3 µgm atom / litre = uM watnut\n //05 f6.2 PO4 µgm atom / litre = uM watnut\n //06 f7.3 Ptot µgm atom / litre = µM watnut\n //07 f7.2 SIO3 µgm atom / litre = µM watnut\n //08 f7.2 SIO4 µgm atom / litre = µM watnut\n //09 f7.3 chla µgm / litre watchl\n //10 f7.3 chlb µgm / litre watchl\n //11 f7.3 chlc µgm / litre watchl\n\n\n // subCode = 1 - ignore\n // subCode = 0 (WATER) or subCode = 2 (WATERWOD)\n if (subCode != 1) {\n if (t.hasMoreTokens()) watphy.setStationId(toString(t.nextToken()));\n\n if (t.hasMoreTokens()) watnut.setNo2(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) t.nextToken(); // is no profile no2 quality flag\n\n if (t.hasMoreTokens()) watnut.setNo3(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set No3 quality flag\n watQC.setNo3((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watnut.setPo4(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set Po4 quality flag\n watQC.setPo4((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watnut.setP(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) t.nextToken(); // is no profile ptot quality flag\n\n if (t.hasMoreTokens()) watnut.setSio3(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) t.nextToken(); // is no profile Sio3 quality flag\n\n if (t.hasMoreTokens()) watnut.setSio3(toFloat(t.nextToken(), 1f)); // ub07\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set Sio4 quality flag\n watQC.setSio3((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watchl.setChla(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set chla quality flag\n watQC.setChla((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watchl.setChlb(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) t.nextToken(); // is no profile chlb quality flag\n\n if (t.hasMoreTokens()) watchl.setChlc(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) t.nextToken(); // is no profile chlc quality flag\n\n // station Id must match that of previous station record\n checkStationId(lineCount, watphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format06: watnut = \" + watnut);\n if (dbg) System.out.println(\"format06: watchl = \" + watchl);\n\n } // if (subCode != 1)\n\n } // if (dataType == SEDIMENT)\n\n }", "public Automato equalAF2AFN(Automato a){\n\t\t//a construcao da equivalencia de A será feita, utilizando a \n\t\t//tecnica de busca em largura.\n\t\t\n\t\tAutomato r = new Automato();\n\t\t//fechamento transitivo vazio (Epsilon)\n\t\tArrayList<Estado> fecho = new ArrayList<>();\n\t\t//conjunto de estados resultante do movimento com simbolo '0'\n\t\tArrayList<Estado> zero = new ArrayList<>();\n\t\t//conjunto de estados resultante do movimento com simbolo '1'\n\t\tArrayList<Estado> um = new ArrayList<>();\n\t\t//fila com os filhos(zero e um) do fechamento transtivo\n\t\tArrayList<ArrayList<Estado>> fila = new ArrayList<>();\n\t\t//calcula o fechamento do estado inicial\n\t\tfecho = a.fechamento(a.getQ().get(0));\n\t\tfila.add(fecho);\n\t\twhile(!fila.isEmpty()){\n\t\t\tfecho = fila.get(0);\n\t\t\tEstado inicial = new Estado(montar(fecho));\n\t\t\t//se os estado nao existir cria-se esse novo estado.\n\t\t\tif (!r.existe(inicial))\n\t\t\t\tr.addEstado(inicial);\n\t\t\telse\n\t\t\t\tinicial = r.getEstado(inicial);\n\t\t\t//calcula os movimentos com 0 e 1\n\t\t\tzero = a.movimento(fecho, '0');\n\t\t\tum = a.movimento(fecho, '1');\n\t\t\tif (!zero.isEmpty()){\n\t\t\t\t//se possui movimento com 0 calcula o fechamento\n\t\t\t\tfecho = a.fechamento(zero);\n\t\t\t\tEstado e = new Estado(montar(fecho));\n\t\t\t\tif (!r.existe(e))\n\t\t\t\t\t//se o estado nao existe cria o estado\n\t\t\t\t\tr.addEstado(e);\n\t\t\t\telse\n\t\t\t\t\te = r.getEstado(e);\n\t\t\t\tif (!r.existe(inicial, e, '0')){\n\t\t\t\t\t//se a trasicao nao existe cria a transicao\n\t\t\t\t\t//e adiciona o fechamento na fila\n\t\t\t\t\tfila.add(fecho);\n\t\t\t\t\tr.addTransicao(inicial, e, '0');\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!um.isEmpty()){\n\t\t\t\tfecho = a.fechamento(um);\n\t\t\t\t\n\t\t\t\tEstado e = new Estado(montar(fecho));\n\t\t\t\tif (!r.existe(e))\n\t\t\t\t\t//se o estado nao existe cria o estado\n\t\t\t\t\tr.addEstado(e);\n\t\t\t\telse\n\t\t\t\t\te = r.getEstado(e);\n\t\t\t\tif (!r.existe(inicial, e, '1')){\n\t\t\t\t\t//se a trasicao nao existe cria a transicao\n\t\t\t\t\t//e adiciona o fechamento na fila\n\t\t\t\t\tfila.add(fecho);\n\t\t\t\t\tr.addTransicao(inicial, e, '1');\n\t\t\t\t}\n\t\t\t}\n\t\t\tfila.remove(0);\n\t\t}\n\t\tatribuirFinais(r, a.getF());\n\t\tOperacao.updateIndex(r);\n\t\treturn r;\n\t}", "public static String formatarData(String data) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tif (data != null && !data.equals(\"\") && data.trim().length() == 8) {\r\n\r\n\t\t\tretorno = data.substring(6, 8) + \"/\" + data.substring(4, 6) + \"/\" + data.substring(0, 4);\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}" ]
[ "0.56642383", "0.5617368", "0.5603649", "0.5471282", "0.5450101", "0.54375255", "0.5433016", "0.54063123", "0.539082", "0.52511686", "0.52409524", "0.5185076", "0.5172982", "0.5163956", "0.51380694", "0.5126034", "0.50951195", "0.5076705", "0.50754184", "0.506061", "0.5054121", "0.50531584", "0.5007482", "0.50062656", "0.5003839", "0.500311", "0.49928975", "0.49850675", "0.49801436", "0.49794978", "0.49724674", "0.4971748", "0.49703863", "0.4950233", "0.49481764", "0.49454936", "0.4937646", "0.49352497", "0.49350354", "0.49343982", "0.49260604", "0.49235824", "0.49111286", "0.49107033", "0.49099264", "0.4899099", "0.489856", "0.48974755", "0.48962763", "0.48947343", "0.48864597", "0.4885367", "0.48851365", "0.4876883", "0.48752606", "0.48701382", "0.48700777", "0.48685968", "0.4868158", "0.48636383", "0.48600417", "0.48502833", "0.48501948", "0.48474094", "0.4845331", "0.4838541", "0.4834366", "0.4834366", "0.48312736", "0.48280823", "0.4828073", "0.48272127", "0.48225623", "0.48220995", "0.48214322", "0.4820336", "0.481575", "0.48106846", "0.48098522", "0.48072445", "0.48042938", "0.48030695", "0.4792527", "0.4791304", "0.47853068", "0.47844595", "0.47797865", "0.4779575", "0.4777895", "0.47754186", "0.4769263", "0.47682664", "0.47661775", "0.4765212", "0.47624254", "0.47623187", "0.4761783", "0.4761004", "0.47571084", "0.47567827" ]
0.5157949
14
Subtrai a data no formato AAAAMM Exemplo 200508 retorna 200507
public static int subtrairMesDoAnoMes(int anoMes, int qtdMeses) { String dataFormatacao = "" + anoMes; int ano = new Integer(dataFormatacao.substring(0, 4)).intValue(); int mes = new Integer(dataFormatacao.substring(4, 6)).intValue(); int qtdAnosDiminuir = qtdMeses / 12; int qtdMesesDiminuir = qtdMeses % 12; ano -= qtdAnosDiminuir; mes -= qtdMesesDiminuir; if (mes < 1) { --ano; mes += 12; } if (mes < 10) { return Integer.parseInt(ano + "0" + mes); } else { return Integer.parseInt(ano + "" + mes); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getCADENA_TRAMA();", "public static String formatarDataComTracoAAAAMMDD(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\t\t\tdataBD.append(\"-\");\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\t\t\tdataBD.append(\"-\");\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public static Map<String, Object> getMap(String a0000) throws Exception{\n\t ExportDataBuilder edb = new ExportDataBuilder();\n\t Map<String, Object> dataMap = edb.getGbrmspbMap(a0000);\n\t String a0101 = (String)dataMap.get(\"a0101\");\n\t\t\t\n\t //格式化时间参数\n\t\t\tString a0107 = (String)dataMap.get(\"a0107\");\n\t\t\tString a0134 = (String)dataMap.get(\"a0134\");\n\t\t\tString a1701 = (String)dataMap.get(\"a1701\");\n\t\t\t//格式化学历学位\n\t\t\tString qrzxl = (String)dataMap.get(\"qrzxl\");\n\t\t\tString qrzxw = (String)dataMap.get(\"qrzxw\");\n\t\t\tString zzxl = (String)dataMap.get(\"zzxl\");\n\t\t\tString zzxw = (String)dataMap.get(\"zzxw\");\n\t\t\tif(!StringUtil.isEmpty(qrzxl)&&!StringUtil.isEmpty(qrzxw)){\n\t\t\t\tString qrzxlxw = qrzxl+\"\\r\\n\"+qrzxw;\n\t\t\t\tdataMap.put(\"qrzxlxw\", qrzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(qrzxl)){\n\t\t\t\tString qrzxlxw = qrzxl;\n\t\t\t\tdataMap.put(\"qrzxlxw\", qrzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(qrzxw)){\n\t\t\t\tString qrzxlxw = qrzxw;\n\t\t\t\tdataMap.put(\"qrzxlxw\", qrzxlxw);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"qrzxlxw\", \"\");\n\t\t\t}\n\t\t\tif(!StringUtil.isEmpty(zzxl)&&!StringUtil.isEmpty(zzxw)){\n\t\t\t\tString zzxlxw = zzxl+\"\\r\\n\"+zzxw;\n\t\t\t\tdataMap.put(\"zzxlxw\", zzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(zzxl)){\n\t\t\t\tString zzxlxw = zzxl;\n\t\t\t\tdataMap.put(\"zzxlxw\", zzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(zzxw)){\n\t\t\t\tString zzxlxw = zzxw;\n\t\t\t\tdataMap.put(\"zzxlxw\", zzxlxw);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"zzxlxw\", \"\");\n\t\t\t}\n\t\t\t//格式化学校及院系\n\t\t\tString QRZXLXX = (String) dataMap.get(\"qrzxlxx\");\n\t\t\tString QRZXWXX = (String) dataMap.get(\"qrzxwxx\");\n\t\t\tString ZZXLXX = (String) dataMap.get(\"zzxlxx\");\n\t\t\tString ZZXWXX = (String) dataMap.get(\"zzxwxx\");\n\t\t\tif(!StringUtil.isEmpty(QRZXLXX)&&!StringUtil.isEmpty(QRZXWXX)&&!QRZXLXX.equals(QRZXWXX)){\n\t\t\t\tString qrzxlxx = QRZXLXX+\"\\r\\n\"+QRZXWXX;\n\t\t\t\tdataMap.put(\"qrzxlxx\", qrzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(QRZXLXX)){\n\t\t\t\tString qrzxlxx = QRZXLXX;\n\t\t\t\tdataMap.put(\"qrzxlxx\", qrzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(QRZXWXX)){\n\t\t\t\tString qrzxlxx = QRZXWXX;\n\t\t\t\tdataMap.put(\"qrzxlxx\", qrzxlxx);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"qrzxlxx\", \"\");\n\t\t\t}\n\t\t\tif(!StringUtil.isEmpty(ZZXLXX)&&!StringUtil.isEmpty(ZZXWXX)&&!ZZXLXX.equals(ZZXWXX)){\n\t\t\t\tString zzxlxx = ZZXLXX+\"\\r\\n\"+ZZXWXX;\n\t\t\t\tdataMap.put(\"zzxlxx\", zzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(ZZXLXX)){\n\t\t\t\tString zzxlxx = ZZXLXX;\n\t\t\t\tdataMap.put(\"zzxlxx\", zzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(ZZXWXX)){\n\t\t\t\tString zzxlxx = ZZXWXX;\n\t\t\t\tdataMap.put(\"zzxlxx\", zzxlxx);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"zzxlxx\", \"\");\n\t\t\t}\n\t\t\tif(a1701 != null){\n\t\t\t\t//简历格式化\n\t\t\t\tStringBuffer originaljl = new StringBuffer(\"\");\n\t\t\t\tString jianli = AddPersonPageModel.formatJL(a1701,originaljl);\n\t\t\t\ta1701 = jianli;\n\t\t\t\tdataMap.put(\"a1701\", a1701);\n\t\t\t}\n\t\t\tif(a0107 != null && !\"\".equals(a0107)){\n\t\t\t\ta0107 = a0107.substring(0,4)+\".\"+a0107.substring(4,6);\n\t\t\t\tdataMap.put(\"a0107\", a0107);\n\t\t\t}\n\t\t\tif(a0134 != null && !\"\".equals(a0134)){\n\t\t\t\ta0134 = a0134.substring(0,4)+\".\"+a0134.substring(4,6);\n\t\t\t\tdataMap.put(\"a0134\", a0134);\n\t\t\t}\n\t\t\t//姓名2个字加空格\n\t\t\tif(a0101 != null){\n\t\t\t\tif(a0101.length() == 2){\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t int length = a0101.length();\n\t\t\t\t for (int i1 = 0; i1 < length; i1++) {\n\t\t\t\t if (length - i1 <= 2) { //防止ArrayIndexOutOfBoundsException\n\t\t\t\t sb.append(a0101.substring(i1, i1 + 1)).append(\" \");\n\t\t\t\t sb.append(a0101.substring(i1 + 1));\n\t\t\t\t break;\n\t\t\t\t }\n\t\t\t\t sb.append(a0101.substring(i1, i1 + 1)).append(\" \");\n\t\t\t\t }\n\t\t\t\t dataMap.put(\"a0101\", sb.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t\t//dataList.add(dataMap);\n\t return dataMap;\n\t\t}", "static void cetak_data(String nama, int usia) {\n int tahun_sekarang = 2020, tahun_lahir = tahun_sekarang - usia;\r\n System.out.println(\"---------\\nNama Saya : \" + nama + \"\\nUsia Saya : \" + usia + \"\\nTahun Lahir : \" + tahun_lahir);\r\n }", "public static String formatarDataSemBarraDDMMAAAA(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public static String formatarDataAAAAMMDD(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "String getDataNascimento();", "private String cadenaABinario(String cadena){\n String cb = \"\";\n int longitud;\n for(int i = 0; i < cadena.length(); i++){\n cb += String.format(\"%8s\",Integer.toBinaryString(cadena.charAt(i)));\n }\n cb = formato(cb);\n return cb;\n }", "public void anazitisiSintagisVaseiAstheni() {\n\t\tint amkaCode = 0;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tamkaCode = sir.readPositiveInt(\"EISAGETAI TO AMKA TOU ASTHENH: \"); // Zitaw apo ton xrhsth na mou dwsei ton amka tou asthenh pou thelei\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t\tif(amkaCode == prescription[i].getPatientAmka()) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou proorizetai gia ton sygkekrimeno asthenh\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t\tprescription[i].print(); // Emfanizw thn/tis sintagh/sintages oi opoies proorizontai gia ton sigkekrimeno asthenh\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\ttmp_2++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON ASTHENH ME AMKA: \" + amkaCode);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "public static String convertOrarioToFascia(String data) {\n String[] data_splitted = data.split(\" \");\n String orario = data_splitted[1];\n String[] ora_string = orario.split(\":\");\n Integer ora = Integer.parseInt(ora_string[0]);\n if(ora<12){\n return \"prima\";\n }else{\n return \"seconda\";\n }\n }", "private StringBuilder getA1RateBuilder() throws UnsupportedEncodingException, ParseException {\n\n\t\tint colNum = 15;\n\t\tStringBuilder commonTr = new StringBuilder();\n\t\tStringBuilder commonTd = new StringBuilder();\n\t\t\n\t\tList<String> thList = new ArrayList<>(colNum);\n\t\t//TODO thList add 1 2~15 期\n\t\tthList.add(new String((\"1_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"2_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"3_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"4_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"5_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"6_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"7_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"8_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"9_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"10_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"11_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"12_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"13_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"14_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"15_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\t\n\t\tnew String((\"上月差额补足金额\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\t\n\t\t//List<Map<String, Object>> tdList = new ArrayList<>();\n\t\t\n\t\t\n\t\t\n\t\t//tdList = trustContributionServer.getA1List(partnerCode);\n\t\t\t\n\t\tcommonTr = this.getCommonTr(thList,colNum);\n\t\t\n\t\tcommonTd = this.getCommonTd();\n\t\t\t\n\t\t//TODO add\n\t\tcommonTr.append(commonTd).append(\"</table>\").append(\"</div>\");\n\t\t//commonTr.append(\"</table>\").append(\"</div>\");\n\t\t\n\t\treturn commonTr;\n\t}", "public String apavada_prakruti_bhava(String X_anta, String X_adi)\n {\n\n Log.info(\"*******ENTERED AAPAVADA NIYAMA 3**********\");\n String anta = EncodingUtil.convertSLPToUniformItrans(X_anta); // anta\n // is\n // ITRANS\n // equivalent\n String adi = EncodingUtil.convertSLPToUniformItrans(X_adi); // adi is\n // ITRANS\n // equivalent\n\n String return_me = \"UNAPPLICABLE\";\n // 249\n if (VowelUtil.isPlutanta(X_anta) && X_adi.equals(\"iti\"))\n {// checked:29-6\n\n return_me = prakruti_bhava(X_anta, X_adi) + \", \" + utsarga_sandhi(X_anta, X_adi) + \"**\";\n ;\n /*\n * sandhi_notes = usg1 + sandhi_notes + \"\\nRegular Sandhis which\n * were being blocked by \" + \"pluta-pragRRihyA-aci-nityam(6.1.121)\n * are allowed by \" + \" 'apluta-vadupasthite' (6.2.125)\" + \"\\n\" +\n * usg2 ;\n * \n * sandhi_notes+= Prkr + apavada + depend + sutra +\n * \"pluta-pragRRihyA aci nityam' (6.1.121)\" + \"\\nCondition: Only if\n * String 1 is a Vedic Usage(Arsha-prayoga)\";\n * \n * //This note below goes after the Notes returned fropm\n * utsarga_sandhi above String cond1 = \"\\nRegular Sandhis which were\n * being blocked by \" + \"'pluta-pragRRihyA-aci-nityam'(6.1.121) are\n * allowed by \" + \" 'apluta-vadupasthite' (6.2.125)\";\n * vowel_notes.append_condition(cond1); ;\n */\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n comments.decrementPointer();\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.121\");\n comments.setSutraPath(\"pluta-pragRRihyA aci nityam\");\n comments.setSutraProc(\"Prakruti Bhava\");\n comments.setSource(Comments.sutra);\n String cond1 = \"pluta-ending word or a pragRRihya followed by any Vowel result in Prakruti bhava sandhi.\\n\" + \"<pluta-ending> || pragRRihya + vowel = prakruti bhava.\";\n comments.setConditions(cond1);\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.2.125\");\n comments.setSutraPath(\"apluta-vadupasthite\");\n comments.setSutraProc(\"utsargic Sandhis Unblocked\");\n comments.setSource(Comments.sutra);\n String cond2 = depend + \"According to 6.1.121 plutantas followed by Vowels result in prakruti-bhaava\\n\" + \"However if the word 'iti' used is non-Vedic, then regular sandhis block 6.1.121.\";\n\n comments.setConditions(cond2);\n\n }\n\n // 250\n else if ((X_anta.endsWith(\"I3\") || X_anta.endsWith(\"i3\")) && VowelUtil.isAjadi(X_adi))\n // was making mistake of using vowel.is_Vowel(X_adi) */ )\n {// checked:29-6\n Log.info(\"came in 250\");\n return_me = utsarga_sandhi(X_anta, X_adi); // fixed error above:\n // was sending ITRANS\n // values rather than\n // SLP\n /*\n * sandhi_notes += apavada + sutra + \"'I3 cAkravarmaNasya'\n * (6.1.126)\" + \"Blocks 'pluta-pragRRihyA aci nityam' (6.1.121)\";\n */\n // vowel_notes.start_adding_notes();\n // vowel_notes.set_sutra_num(\"6.1.126\") ;\n // vowel_notes.setSutraPath(\"I3 cAkravarmaNasya\") ;\n // vowel_notes.set_sutra_proc(\"para-rupa ekadesh\");\n // vowel_notes.set_source(tippani.sutra) ;\n String cond1 = \"According to chaakravarman pluta 'i' should be trated as non-plutanta.\\n\" + \"Given in Panini Sutra 'I3 cAkravarmaNasya' (6.1.126). This sutra allows General Sandhis to operate by blocking\" + \"'pluta-pragRRihyA aci nityam' (6.1.121)\";\n comments.append_condition(cond1);\n\n }\n // prakrutibhava starts\n // 233-239 Vedic Usages\n // 243 : error (now fixed) shivA# isAgacha printing as sh-kaar ha-kaar\n // ikaar etc should be shakaar ikaar\n // **********ELSE IF****************//\n else if ((VowelUtil.isPlutanta(X_anta) || this.pragrhya == true) && VowelUtil.isAjadi(X_adi))\n // was making mistake of using Vowel.is_Vowel(X_adi) */ )\n {// checked:29-6\n Log.info(\"came in 243\");\n return_me = prakruti_bhava(X_anta, X_adi); // fixed error above:\n // was sending ITRANS\n // values rather than\n // SLP\n // sandhi_notes = Prkr + sutra + \"pluta-pragRRihyA aci nityam'\n // (6.1.121)\";\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.121\");\n comments.setSutraPath(\"pluta-pragRRihyA aci nityam\");\n comments.setSutraProc(\"prakruti bhava\");\n comments.setSource(Comments.sutra);\n String cond1 = \"pragRRihyas or plutantas followed by any vowel result in NO SANDHI which is prakruti bhava\"; // Fill\n // Later\n comments.setConditions(cond1);\n\n }\n // **********END OF ELSE IF****************//\n\n // **********ELSE IF****************//\n else if (anta.equals(\"go\") && adi.equals(\"indra\")) // Avan~Na Adesh\n {// checked:29-6\n String avang_adesh = EncodingUtil.convertSLPToUniformItrans(\"gava\"); // transform\n // ITRANS\n // gava\n // to\n // SLP\n return_me = guna_sandhi(avang_adesh, X_adi);\n // We have to remove guna_sandhi default notes\n // this is done by\n comments.decrementPointer();\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.120\");\n comments.setSutraPath(\"indre ca\");\n comments.setSutraProc(\"ava~nga Adesha followed by Guna Sandhi\");\n comments.setSource(Comments.sutra);\n String cond1 = \"Blocks Prakruti Bhava, and Ayadi Sandhi.\\n go + indra = go + ava~N + indra = gava + indra = gavendra.\"; // Fill\n // Later\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n // 241 242 Vik.\n // **********ELSE IF****************//\n else if (anta.equals(\"go\") && VowelUtil.isAjadi(X_adi))\n {// checked:29-6\n\n return_me = utsarga_sandhi(X_anta, X_adi); //\n String avang_adesh = EncodingUtil.convertSLPToUniformItrans(\"gava\"); // transform\n // ITRANS\n // gava\n // to\n // SLP\n return_me += \", \" + utsarga_sandhi(avang_adesh, X_adi);\n\n // We have to remove utsarga_sandhi default notes\n // this is done by\n comments.decrementPointer();\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.119\");\n comments.setSutraPath(\"ava~N sphoTayanasya\");\n comments.setSutraProc(\"ava~nga Adesha followed by Regular Vowel Sandhis\");\n comments.setSource(Comments.sutra);\n String cond1 = padanta + \"View Only Supported by Sphotaayana Acharya.\\n\" + \"padanta 'go' + Vowel gets an avana~N-adesh resulting in gava + Vowel.\"; // Fill\n // Later...filled\n comments.setConditions(cond1);\n\n if (X_adi.startsWith(\"a\"))\n {\n return_me += \", \" + prakruti_bhava(X_anta, X_adi);\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.118\");\n comments.setSutraPath(\"sarvatra vibhaaSaa goH\");\n comments.setSutraProc(\"Optional Prakruti Bhava for 'go'(cow)implying words ending in 'e' or 'o'.\");\n comments.setSource(Comments.sutra);\n String cond2 = \"Padanta Dependency. Prakruti bhava if 'go' is followed by any other Phoneme.\"; // Fill\n // Later\n comments.setConditions(cond2);\n\n return_me += \", \" + purva_rupa(X_anta, X_adi);\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.105\");\n comments.setSutraPath(\"e~NaH padAntAdati\");\n comments.setSutraProc(\"purva-rupa ekadesh\");\n comments.setSource(Comments.sutra);\n String cond3 = padanta + \"If a padanta word ending in either 'e' or 'o' is followed by an 'a' purva-rupa ekadesh takes place\" + \"\\npadanta <e~N> 'e/o' + 'a' = purva-rupa ekadesha. Blocks Ayadi Sandhi\";\n comments.setConditions(cond3);\n\n }\n }\n // **********END OF ELSE IF****************//\n\n // 243\n\n // 244\n\n // 246 -250 , 253-260\n\n Log.info(\"return_me == \" + return_me);\n Log.info(\"*******EXITED AAPAVADA NIYAMA3s**********\");\n\n return return_me; // apavada rules formulated by Panini\n }", "gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak.Aa getAa();", "public static int subtrairData(int data) {\r\n\r\n\t\tString dataFormatacao = \"\" + data;\r\n\r\n\t\tint ano = new Integer(dataFormatacao.substring(0, 4)).intValue();\r\n\t\tint mes = new Integer(dataFormatacao.substring(4, 6)).intValue();\r\n\r\n\t\tint mesTemp = (mes - 1);\r\n\r\n\t\tif (mesTemp == 0) {\r\n\t\t\tmesTemp = 12;\r\n\t\t\tano = ano - 1;\r\n\t\t}\r\n\r\n\t\tString anoMes = null;\r\n\t\tString tamanhoMes = \"\" + mesTemp;\r\n\r\n\t\tif (tamanhoMes.length() == 1) {\r\n\t\t\tanoMes = ano + \"0\" + mesTemp;\r\n\t\t} else {\r\n\t\t\tanoMes = ano + \"\" + mesTemp;\r\n\t\t}\r\n\t\treturn new Integer(anoMes).intValue();\r\n\t}", "public abstract java.lang.String getAcma_valor();", "public static void main(String[] args) throws Exception {\n String s;\n// s = \"0000000000000\";\n s = \"000000-123456\";\n// s = \"000000123456\";\n if (s.matches(\"^0+$\")) {\n s = \"0\";\n }else{\n s = s.replaceFirst(\"^0+\",\"\");\n }\n System.out.println(s);\n\n\n// System.out.println(StringUtils.addRight(s,'A',mod));\n// String s = \"ECPay thong bao: Tien dien T11/2015 cua Ma KH PD13000122876, la 389.523VND. Truy cap www.ecpay.vn hoac lien he 1900561230 de biet them chi tiet.\";\n// Pattern pattern = Pattern.compile(\"^(.+)[ ](\\\\d+([.]\\\\d+)*)+VND[.](.+)$\");\n// Matcher matcher = pattern.matcher(s);\n// if(matcher.find()){\n// System.out.println(matcher.group(2));\n// }\n }", "private static String m85766a(Aweme aweme) {\n if (aweme == null) {\n return \"\";\n }\n String m = C33230ac.m107238m(aweme);\n C7573i.m23582a((Object) m, \"MobUtils.getAid(data ?: return \\\"\\\")\");\n return m;\n }", "public void setAsapcata(java.lang.String asapcata) {\n this.asapcata = asapcata;\n }", "public String apavada_vriddhi(String X_anta, String X_adi)\n {\n\n Log.info(\"*******ENTERED AAPAVADA NIYAMA UNO**********\");\n Log.info(\"X_adi == \" + X_adi);\n String anta = EncodingUtil.convertSLPToUniformItrans(X_anta);\n // x.transform(X_anta); // anta is ITRANS equivalent\n String adi = EncodingUtil.convertSLPToUniformItrans(X_adi);\n // x.transform(X_adi); // adi is ITRANS equivalent\n\n Log.info(\"adi == \" + adi);\n\n String return_me = \"UNAPPLICABLE\";\n\n boolean bool1 = VowelUtil.isAkaranta(X_anta) && (adi.equals(\"eti\") || adi.equals(\"edhati\"));\n boolean bool2 = VowelUtil.isAkaranta(X_anta) && adi.equals(\"UTh\");\n\n // 203\n // **********IF****************//\n if (X_anta.endsWith(\"f\") && X_adi.startsWith(\"f\")) // watch out!!! must\n // be SLP not ITRANS\n {// checked:29-6\n String strip1 = VarnaUtil.stripAntyaVarna(X_anta);\n String strip2 = VarnaUtil.stripAdiVarna(X_adi);\n\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + strip1 + \"f\" + strip2;\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"RRiti RRi vA vacanam\");\n comments.setSutraProc(\"hrasva RRikara ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"small RRi followed by small RRi merge to become small RRi.\\n\" + \"RRi + RRi = RRi\";\n comments.setConditions(cond1);\n\n } // end of main if\n // **********END OF IF****************//\n\n // 204\n // **********IF****************//\n else if (X_anta.endsWith(\"f\") && X_adi.startsWith(\"x\")) // watch out!!!\n // must be SLP\n // not ITRANS\n { // checked:29-6 // SLP x = ITRANS LLi\n String strip1 = VarnaUtil.stripAntyaVarna(X_anta);\n String strip2 = VarnaUtil.stripAdiVarna(X_adi);\n\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + strip1 + \"x\" + strip2; // SLP\n // x =\n // ITRANS\n // LLi\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"LLiti LLi vA vacanam\");\n comments.setSutraProc(\"hrasva LLikara ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \" RRi/RRI followed by small LLi merge to become small LLi.\\n RRi/RRI + LLi = LLi\";\n comments.setConditions(cond1);\n\n } // end of main if\n // **********END OF IF****************//\n\n // 207a-b\n // **********ELSE IF****************//\n else if (bool1 || bool2)\n {\n // checked:29-6\n return_me = vriddhi_sandhi(X_anta, X_adi);\n\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n comments.decrementPointer();\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.86\");\n comments.setSutraPath(\"eti-edhati-UThsu\");\n comments.setSutraProc(\"vRRiddhi-ekadesh\");\n comments.setSource(Comments.sutra);\n\n String cond1 = \"akaara followed by declensions of 'iN', 'edha' and 'UTh\" + \"<eti/edhati/UTh> are replaced by their vRRiddhi counterpart.\\n\" + \"a/A/a3 + eti/edhati/UTha = VRRiddhi Counterpart.\\n\" + \"Pls. Note.My Program cannot handle all the declensions of given roots.\" + \"Hence will only work for one instance of Third Person Singular Form\";\n comments.setConditions(cond1);\n\n String cond2 = \"Blocks para-rupa Sandhi given by 'e~ni pararUpam' which had blocked Normal Vriddhi Sandhi\";\n\n if (bool1)\n comments.append_condition(cond2);\n else if (bool2) comments.append_condition(\"Blocks 'Ad guNaH'\");\n\n }\n\n // **********END OF ELSE IF****************//\n\n // 208\n // **********ELSE IF****************//\n else if (anta.equals(\"akSa\") && adi.equals(\"UhinI\"))\n {// checked:29-6\n return_me = \"akzOhiRI\"; // u to have give in SLP..had\n // ITRANS....fixed\n // not sending to vrridhit_sandhi becose of Na-inclusion\n // vriddhi_sandhi(X_anta,X_adi);\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n // ***/vowel_notes.decrement_pointer();/***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"akSAdUhinyAm\");\n comments.setSutraProc(\"vRRiddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"akSa + UhinI = akshauhiNI.Vartika blocks guna-sandhi ato allow vRRiddhi-ekadesh\";\n comments.setConditions(cond1);\n\n }\n // **********END OF ELSE IF****************//\n\n // 209\n // **********ELSE IF****************//\n else if (anta.equals(\"pra\") && (adi.equals(\"Uha\") || adi.equals(\"UDha\") || adi.equals(\"UDhi\") || adi.equals(\"eSa\") || adi.equals(\"eSya\")))\n // checked:29-6\n {\n return_me = vriddhi_sandhi(X_anta, X_adi);\n\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n /***/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"prAd-Uha-UDha-UDhi-eSa-eSyeSu\");\n comments.setSutraProc(\"vRRiddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"upasarga 'pra' + <prAd/Uha/UDha/UDhi/eSa/eSya> = vRRiddhi-ekadesha.\" + \"\\nVartika blocks para-rupa Sandhi and/or guna Sandhi to allow vRRidhi-ekadesh.\";\n\n comments.setConditions(cond1);\n\n }\n\n // **********END OF ELSE IF****************//\n\n // 210\n // **********ELSE IF****************//\n else if (anta.equals(\"sva\") && (adi.equals(\"ira\") || adi.equals(\"irin\")))\n {\n // checked:29-6\n return_me = vriddhi_sandhi(X_anta, X_adi);\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n /***/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"svaadireriNoH\");\n comments.setSutraProc(\"vRRiddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"sva + <ira/irin> = vRRIddhi.\\n Blocks Guna Sandhi.\" + \"\\nPls. note. My program does not cover sandhi with declensions.\";\n comments.setConditions(cond1);\n }\n\n // **********END OF ELSE IF****************//\n\n // 211 Vik. Semantic Dependency\n // **********ELSE IF****************//\n else if (VowelUtil.isAkaranta(X_anta) && X_adi.equals(\"fta\"))// adi.equals(\"RRita\"))\n {\n // checked:29-6\n // not working for 'a' but working for 'A'. Find out why...fixed\n\n return_me = utsarga_prakruti_bhava(X_anta, X_adi) + \", \" + vriddhi_sandhi(X_anta, X_adi) + \"**\";\n\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n /***/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"RRite ca tRRitIyAsamAse\");\n comments.setSutraProc(\"Vriddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"If an akaranta ('a/aa/a3'-terminating phoneme) is going to form a Tritiya Samas compound with a RRi-initial word\" + \" vRRiddhi-ekadesha takes place blocking other rules.\\n\" + \"a/A/a3 + RRi -> Tritiya Samaasa Compound -> vRRiddhi-ekadesh\" + depend;\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n // 212-213\n // **********ELSE IF****************//\n else if ((anta.equals(\"pra\") || anta.equals(\"vatsatara\") || anta.equals(\"kambala\") || anta.equals(\"vasana\") || anta.equals(\"RRiNa\") || anta.equals(\"dasha\")) && adi.equals(\"RRiNa\"))\n\n // checked:29-6\n { // pra condition not working...fixed now . 5 MAR 05\n // return_me = guna_sandhi(X_anta,X_adi) + \", \" +\n // prakruti_bhava(X_anta,X_adi)\n\n return_me = vriddhi_sandhi(X_anta, X_adi);\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n /***/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n // vowel_notes.set_sutra_num(\"\") ;\n comments.setVartikaPath(\"pra-vatsatara-kambala-vasanArNa dashaanAm RRiNe\");\n comments.setSutraProc(\"Vriddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"If 'pra' etc are followed by the word 'RRiNa',\" + \" vRRiddhi-ekadesh takes place blocking Guna and Prakruti Bhava Sandhis.\" + \"\\n<pra/vatsatara/kambala/vasana/RRiNa/dash> + RRiNa = vRRiddhi\";\n comments.setConditions(cond1);\n }\n // ???? also implement prakruti bhava\n\n /**\n * **YEs ACCORDING TO SWAMI DS but not according to Bhaimi Bhashya else\n * if ( adi.equals(\"RRiNa\") && (anta.equals(\"RRiNa\") ||\n * anta.equals(\"dasha\")) ) { return_me = vriddhi_sandhi(X_anta,X_adi);\n * //*sandhi_notes = VE + apavada + vartika + \"'RRiNa dashAbhyAm ca'.\" +\n * \"\\nBlocks Guna and Prakruti Bhava Sandhi\";\n * \n * vowel_notes.start_adding_notes(); vowel_notes.set_sutra_num(\"\") ;\n * vowel_notes.set_vartika_path(\"RRiNa dashAbhyAm ca\") ;\n * vowel_notes.set_sutra_proc(\"Vriddhi-ekadesh\");\n * vowel_notes.set_source(tippani.vartika) ; String cond1 =depend +\n * \"Blocks Guna and Prakruti Bhava Sandhi\";\n * vowel_notes.set_conditions(cond1);\n * /* return_me = utsarga_prakruti_bhava(X_anta,X_adi) + \", \" +\n * vriddhi_sandhi(X_anta,X_adi) + \"**\"; sandhi_notes = usg1 +\n * sandhi_notes; sandhi_notes+= \"\\n\" + usg2 + VE +apavada + vartika +\n * \"'RRiNa dashAbhyAm ca'.\" + depend; // .... this was when I assumed\n * this niyama is optional with other // ???? also implement prakruti\n * bhava }\n */\n // **********END OF ELSE IF****************//\n // 214 Vik. Semantic Dependency\n // **********ELSE IF****************//\n else if (anta.equals(\"A\") && VowelUtil.isAjadi(X_adi))\n {\n // checked:29-6\n // rules is A + Vowel = VRddhi\n\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + vriddhi_sandhi(X_anta, X_adi) + \"**\";\n /*******************************************************************\n * sandhi_notes = usg1 + sandhi_notes + \"\\n\" + usg2 ; // We have to\n * remove vriddhi_sandhi default notes // this is done by /\n ******************************************************************/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.87\");\n comments.setSutraPath(\"ATashca\");\n comments.setSutraProc(\"Vriddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = depend + \"if String 1 equals 'aa' and implies 'AT'-Agama and \" + \"String 2 is a verbal form. E.g. A + IkSata = aikSata not ekSata.\\n\" + \" 'aa' + Verbal Form = vRRiddhi-ekadesh\";\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n // **********ELSE IF****************//\n // akaranta uparga mein error....fixed 4 MAR\n // 215 Vik Semantic Dependency\n else if (is_akaranta_upsarga(X_anta) && X_adi.startsWith(\"f\")) // RRi\n // ==\n // SLP\n // 'f'USing\n // X_adi,\n // switched\n // to\n // Sharfe\n // Encoding\n { // according to Vedanga Prakash Sandhi Vishaya RRIkara is being\n // translated\n // but checked with SC Basu Trans. it is RRIta not RRikara\n // checked:29-6\n\n Log.info(\" Rules 215 applies\");\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + vriddhi_sandhi(X_anta, X_adi) + \"**\";\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n // vowel_notes.decrement_pointer();\n\n // July 14 2005.. I have removed the above line\n // vowel_notes.decrement_pointer();\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.88\");\n comments.setSutraPath(\"upasargAdRRiti dhAtau\");\n comments.setSutraProc(\"Vriddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = depend + \"akaranta upsarga(preverb) followed by verbal form begining with short RRi.\\n \" + \"preverb ending in <a> + verbal form begining with RRi = vRRiddhi-ekadesha\\n\";\n\n /*\n * \"By 6.1.88 it should block all \" + \"optional forms but by 'vA\n * supyApishaleH' (6.1.89) subantas are \" + \"permitted the Guna\n * option.\";\n */\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n Log.info(\"return_me == \" + return_me);\n Log.info(\"*******EXITED AAPAVADA NIYAMA UNO**********\");\n\n if (return_me.equals(\"UNAPPLICABLE\"))\n {\n return_me = apavada_para_rupa(X_anta, X_adi); // search for more\n // apavada rules\n }\n return return_me; // apavada rules formulated by Panini apply\n }", "public static void readAcu() throws IOException, ClassNotFoundException, SQLException\n\t{\n\tString line;\n\tFile worksheet = new File(\"/Users/sturtevantauto/Pictures/Car_Pictures/XPS/6715329.acu\");\n\t\tBufferedReader reader = new BufferedReader(new FileReader(worksheet));\n\t\tint i = 1;\n\t\tString namebegin = null;\n\t\tboolean sw = false;\n\t\tint linebegin = 0;\n\t\twhile ((line = reader.readLine()) != null)\n\t\t{\n\t\t\tif(line.contains(\"-\"))\n\t\t\t{\n\t\t\t\tString[] lines = line.split(\"-\");\n\t\t\t\tif(Character.isDigit(lines[0].charAt((lines[0].length() - 1))))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString[] endlines = lines[1].split(\" \");\n\t\t\t\t\t\t\tendlines[0] = endlines[0].trim();\n\t\t\t\t\t\t\tint partnum = Integer.parseInt(lines[0].substring((lines[0].length() - 3), lines[0].length()));\n\t\t\t\t\t\t\tString partend = endlines[0];\n\t\t\t\t\t\t\t//System.out.println(findLine(DATReader.findPartName(partnum)));\n\t\t\t\t\t\t\tString name = DATReader.findPartName(partnum);\n\t\t\t\t\t\t\tif(!name.equals(namebegin))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnamebegin = name;\n\t\t\t\t\t\t\tsw = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(sw)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsw = false;\n\t\t\t\t\t\t\tlinebegin = findLine(name);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] linetext = findText(linebegin, i, name);\n\t\t\t\t\t\t\tint q = 1;\n\t\t\t\t\t\t\tfor(String print : linetext)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(print != null)\n\t\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\tprint = print.replace(\".\", \"\");\n\t\t\t\t\t\t\t\tSystem.out.println(q + \": \" + print);\n\t\t\t\t\t\t\t\tq++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlinebegin = i;\n\t\t\t\t\t\t\t//System.out.println(partnum + \"-\" + partend);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t }\n\t\treader.close();\n\n\t}", "public String getTranslation()\n {\n StringBuilder aminoAcid = new StringBuilder();\n Map<String, String> codToAa = Map.ofEntries(\n entry(\"ATA\", \"I\"), entry(\"ATC\", \"I\"), entry(\"ATT\", \"I\"), entry(\"ATG\", \"M\"),\n entry(\"ACA\", \"T\"), entry(\"ACC\", \"T\"), entry(\"ACG\", \"T\"), entry(\"ACT\", \"T\"),\n entry(\"AAC\", \"N\"), entry(\"AAT\", \"N\"), entry(\"AAA\", \"K\"), entry(\"AAG\", \"K\"),\n entry(\"AGC\", \"S\"), entry(\"AGT\", \"S\"), entry(\"AGA\", \"R\"), entry(\"AGG\", \"R\"),\n entry(\"CTA\", \"L\"), entry(\"CTC\", \"L\"), entry(\"CTG\", \"L\"), entry(\"CTT\", \"L\"),\n entry(\"CCA\", \"P\"), entry(\"CCC\", \"P\"), entry(\"CCG\", \"P\"), entry(\"CCT\", \"P\"),\n entry(\"CAC\", \"H\"), entry(\"CAT\", \"H\"), entry(\"CAA\", \"Q\"), entry(\"CAG\", \"Q\"),\n entry(\"CGA\", \"R\"), entry(\"CGC\", \"R\"), entry(\"CGG\", \"R\"), entry(\"CGT\", \"R\"),\n entry(\"GTA\", \"V\"), entry(\"GTC\", \"V\"), entry(\"GTG\", \"V\"), entry(\"GTT\", \"V\"),\n entry(\"GCA\", \"A\"), entry(\"GCC\", \"A\"), entry(\"GCG\", \"A\"), entry(\"GCT\", \"A\"),\n entry(\"GAC\", \"D\"), entry(\"GAT\", \"D\"), entry(\"GAA\", \"E\"), entry(\"GAG\", \"E\"),\n entry(\"GGA\", \"G\"), entry(\"GGC\", \"G\"), entry(\"GGG\", \"G\"), entry(\"GGT\", \"G\"),\n entry(\"TCA\", \"S\"), entry(\"TCC\", \"S\"), entry(\"TCG\", \"S\"), entry(\"TCT\", \"S\"),\n entry(\"TTC\", \"F\"), entry(\"TTT\", \"F\"), entry(\"TTA\", \"L\"), entry(\"TTG\", \"L\"),\n entry(\"TAC\", \"Y\"), entry(\"TAT\", \"Y\"), entry(\"TAA\", \"_\"), entry(\"TAG\", \"_\"),\n entry(\"TGC\", \"C\"), entry(\"TGT\", \"C\"), entry(\"TGA\", \"_\"), entry(\"TGG\", \"W\")\n );\n try\n {\n for (int i = 0; i < this.sequence.length(); i += 3)\n {\n aminoAcid.append(codToAa.get(this.sequence.substring(i, i + 3)));\n }\n }\n catch (StringIndexOutOfBoundsException ignored)\n {\n }\n return aminoAcid.toString();\n }", "public DocumentData parseData(byte[] data) throws Exception {\n if (data.length < 30) {\n throw new Exception(\"Unsupported barcode encoding\");\n }\n byte complianceIndicator = data[0];\n if (complianceIndicator == 0x40) {\n // May be AAMVA\n byte elementSeparator = data[1];\n byte recordSeparator = data[2];\n byte segmentTerminator = data[3];\n byte[] fileType = Arrays.copyOfRange(data, 4, 9);\n byte[] iin = Arrays.copyOfRange(data, 9, 15);\n int aamvaVersionNumber = dataToInt(Arrays.copyOfRange(data, 15, 17));\n AAMVASubfileParser subfileParser = new AAMVASubfileParser(aamvaVersionNumber, elementSeparator);\n byte[] jurisdictionVersionNumber = Arrays.copyOfRange(data, 17, 19);\n int numberOfEntries = dataToInt(Arrays.copyOfRange(data, 19, 21));\n int index = 21;\n AAMVADocumentData documentData = null;\n for (int i=0; i<numberOfEntries; i++) {\n String subfileType = new String(Arrays.copyOfRange(data, index, index+2), UTF8);\n int offset = dataToInt(Arrays.copyOfRange(data, index+2, index+6));\n int length = dataToInt(Arrays.copyOfRange(data, index+6, index+10));\n int start = Math.min(offset, data.length);\n int end = Math.min(offset+length, data.length);\n if (numberOfEntries == 1 && offset == 0) {\n start = data.length - length;\n end = data.length;\n }\n AAMVADocumentData subData = subfileParser.parseFields(Arrays.copyOfRange(data, start, end));\n if (documentData == null) {\n documentData = subData;\n } else {\n documentData.appendFieldsFrom(subData);\n }\n index += 10;\n }\n if (documentData == null || documentData.isEmpty()) {\n throw new Exception(\"Empty document\");\n }\n return documentData;\n } else if (data[0] == 0x25) {\n MagStripeDocumentData documentData = new MagStripeDocumentData();\n String track = new String(data, StandardCharsets.US_ASCII);\n String jurisdiction = track.substring(1, 3);\n documentData.setValue(new DataField(\"State/Province\", jurisdiction, jurisdiction), \"State/Province\");\n track = track.substring(3);\n String city = getStringToDelimiter(track, \"^\", 13);\n documentData.setValue(new DataField(\"City\", city, city), \"City\");\n track = track.substring(city.length());\n track = leftTrimString(track, \"^\");\n String name = getStringToDelimiter(track, \"^\", 35);\n String[] names = name.split(\"\\\\$\");\n if (names.length > 2) {\n documentData.setValue(new DataField(\"Title\", names[2], names[2].trim()), \"Title\");\n }\n if (names.length > 1) {\n documentData.setValue(new DataField(\"First name\", names[1], StringUtils.strip(names[1], \"/, \")), \"First name\");\n }\n if (names.length > 0) {\n documentData.setValue(new DataField(\"Last name\", names[0], StringUtils.strip(names[0], \"/, \")), \"Last name\");\n }\n track = track.substring(name.length());\n track = leftTrimString(track, \"^\");\n String address = getStringToDelimiter(track, \"^\", 77 - city.length() - name.length());\n address = getStringToDelimiter(address, \"?\", address.length());\n String[] addressFields = address.split(\"\\\\$\");\n address = TextUtils.join(\"\\n\", addressFields);\n documentData.setValue(new DataField(\"Address\", address, address), \"Address\");\n if (track.substring(0, 1).equals(\"?\")) {\n track = track.substring(1);\n }\n int delimiterIndex = track.indexOf(\";\");\n if (delimiterIndex > -1) {\n track = track.substring(delimiterIndex+1);\n String iin = track.substring(0, 6);\n documentData.setValue(new DataField(\"IIN\", iin, iin), \"IIN\");\n track = track.substring(6);\n String dlNo = getStringToDelimiter(track, \"=\", 13);\n track = track.substring(dlNo.length());\n track = leftTrimString(track, \"=\");\n String expiryYear = \"20\"+track.substring(0, 2);\n String expiryMonth = track.substring(2, 4);\n track = track.substring(4);\n String birthYear = track.substring(0, 4);\n String birthMonth = track.substring(4, 6);\n String birthDate = track.substring(6, 8);\n track = track.substring(8);\n String expiryDate = null;\n if (expiryMonth.equals(\"77\")) {\n expiryDate = \"non-expiring\";\n } else if (expiryMonth.equals(\"88\")) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(Integer.parseInt(\"20\" + expiryYear) + 1, Integer.parseInt(birthMonth), 1);\n expiryDate = Integer.toString(calendar.getActualMaximum(Calendar.DAY_OF_MONTH));\n expiryDate = expiryDate + \"/\" + birthMonth + \"/\" + expiryYear;\n } else if (expiryMonth.equals(\"99\")) {\n expiryDate = birthDate + \"/\" + birthMonth + \"/\" + expiryYear;\n } else {\n Calendar calendar = Calendar.getInstance();\n calendar.set(Integer.parseInt(\"20\" + expiryYear), Integer.parseInt(expiryMonth), 1);\n expiryDate = Integer.toString(calendar.getActualMaximum(Calendar.DAY_OF_MONTH));\n expiryDate = expiryDate + \"/\" + expiryMonth + \"/\" + expiryYear;\n }\n documentData.setValue(new DataField(\"Date of expiry\", expiryDate, expiryDate), \"Date of expiry\");\n documentData.setValue(new DataField(\"Date of birth\", birthDate+birthMonth+birthYear, birthDate+\"/\"+birthMonth+\"/\"+birthYear), \"Date of birth\");\n if (track.length() > 0) {\n String dlNoOverflow = getStringToDelimiter(track, \"=\", 5);\n if (!dlNoOverflow.isEmpty()) {\n dlNo += dlNoOverflow;\n }\n }\n documentData.setValue(new DataField(\"DL/ID#\", dlNo, dlNo), \"DL/ID#\");\n delimiterIndex = track.indexOf(\"%\");\n }\n if (delimiterIndex > -1) {\n track = track.substring(delimiterIndex+1);\n String versionNumber = track.substring(0, 1);\n documentData.setValue(new DataField(\"Version #\", versionNumber, versionNumber), \"Version #\");\n track = track.substring(1);\n String securityVersionNumber = track.substring(0, 1);\n documentData.setValue(new DataField(\"Security v. #\", securityVersionNumber, securityVersionNumber), \"Security v. #\");\n track = track.substring(1);\n String postalCode = StringUtils.strip(track.substring(0, 11), \"/, \");\n documentData.setValue(new DataField(\"Postal code\", postalCode, postalCode), \"Postal code\");\n track = track.substring(11);\n String dlClass = track.substring(0, 2).trim();\n if (!dlClass.isEmpty()) {\n documentData.setValue(new DataField(\"Class\", dlClass, dlClass), \"Class\");\n }\n track = track.substring(2);\n String restrictions = track.substring(0, 10).trim();\n if (!restrictions.isEmpty()) {\n documentData.setValue(new DataField(\"Restrictions\", restrictions, restrictions), \"Restrictions\");\n }\n track = track.substring(10);\n String endorsements = track.substring(0, 4).trim();\n if (!endorsements.isEmpty()) {\n documentData.setValue(new DataField(\"Endorsements\", endorsements, endorsements), \"Endorsements\");\n }\n track = track.substring(4);\n String sex = track.substring(0, 1);\n documentData.setValue(new DataField(\"Sex\", sex, sex), \"Sex\");\n track = track.substring(1);\n String height = track.substring(0, 3).trim();\n if (!height.isEmpty()) {\n documentData.setValue(new DataField(\"Height\", height, height), \"Height\");\n }\n track = track.substring(3);\n String weight = track.substring(0, 3).trim();\n if (!weight.isEmpty()) {\n documentData.setValue(new DataField(\"Weight\", weight, weight), \"Weight\");\n }\n track = track.substring(3);\n String hairColour = track.substring(0, 3).trim();\n if (!hairColour.isEmpty()) {\n documentData.setValue(new DataField(\"Hair color\", hairColour, getHairColour(hairColour)), \"Hair color\");\n }\n track = track.substring(3);\n String eyeColour = track.substring(0, 3).trim();\n if (!eyeColour.isEmpty()) {\n documentData.setValue(new DataField(\"Eye color\", eyeColour, getEyeColour(eyeColour)), \"Eye color\");\n }\n }\n return documentData;\n }\n throw new Exception(\"Nothing decoded\");\n }", "public void mo1606a(Format format) {\n }", "public String processMessage() throws ICANException {\n String aSegment;\n HL7Group aGroup;\n HL7Message aInMess = new HL7Message(mHL7Message);\n HL7Segment aInMSHSegment = new HL7Segment(aInMess.getSegment(\"MSH\"));\n HL7Segment aOutMSHSegment = processMSHToUFD();\n if (mEnvironment.indexOf(\"TEST\") >= 0) {\n String aSendingApp = aOutMSHSegment.get(HL7_23.MSH_3_sending_application);\n if (aSendingApp.indexOf(\".TEST\") >= 0) {\n aOutMSHSegment.set(HL7_23.MSH_3_sending_application, aSendingApp.substring(0, aSendingApp.length() - 5));\n }\n }\n HL7Message aOutMess = new HL7Message(aOutMSHSegment.getSegment());\n\n if(aInMess.isEvent(\"A01, A02, A03, A08, A11, A12, A13, A21, A22, A28, A31\")) {\n aOutMess.append(processEVNToUFD());\n aOutMess.append(processPIDToUFD());\n aOutMess.append(processNK1s_ToUFD());\n aOutMess.append(processPV1ToUFD());\n aOutMess.append(processPV2ToUFD());\n aOutMess.append(processOBXs_ToUFD());\n aOutMess.append(processAL1s_ToUFD());\n aOutMess.append(processDG1s_ToUFD());\n aOutMess.append(processDRGToUFD());\n aOutMess.append(processPR1s_ToUFD());\n aOutMess.append(processGT1s_ToUFD());\n aOutMess.append(processInsuranceToUFD());\n aOutMess.append(processCSC_ZsegmentsToUFD());\n\n } else if (aInMess.isEvent(\"A17\")) {\n aOutMess.append(processEVNToUFD().getSegment());\n aOutMess.append(processA17GroupToUFD(1));\n aOutMess.append(processA17GroupToUFD(2));\n\n } else if (aInMess.isEvent(\"A34\")) {\n aOutMess.append(processEVNToUFD().getSegment());\n aOutMess.append(processPIDToUFD().getSegment());\n aOutMess.append(processMRGToUFD().getSegment());\n }\n if (aOutMess.getMessage().length() > 0) {\n aOutMess.append(setupZBX(\"MESSAGE\", \"SOURCE_ID\", aInMSHSegment.get(HL7_23.MSH_10_message_control_ID)));\n }\n return aOutMess.getMessage();\n }", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "@Test\n public void RegistroC380Test() throws ParseException {\n RegistroC380 reg = new RegistroC380();\n LineModel line = reg.createModel();\n SimpleDateFormat sdf = new SimpleDateFormat(\"ddMMyyyy\");\n Date data = sdf.parse(\"17121986\");\n \n //02\n line.setFieldValue(RegistroC380.COD_MOD, \"02\");\n //03\n line.setFieldValue(RegistroC380.DT_DOC_INI, data);\n //04\n line.setFieldValue(RegistroC380.DT_DOC_FIN, data);\n //05\n line.setFieldValue(RegistroC380.NUM_DOC_INI, 123456L);\n //06\n line.setFieldValue(RegistroC380.NUM_DOC_FIN, 123456L);\n //07\n line.setFieldValue(RegistroC380.VL_DOC, 78911.11);\n //08\n line.setFieldValue(RegistroC380.VL_DOC_CANC, 78911.11);\n\n StringBuffer sb = line.getRepresentation();\n System.out.print(sb);\n// String expected = \"|C380|02|17121986|17121986|123456|123456|78911,11|78911,11|\";\n// assertEquals (expected, sb.toString());\n }", "private AtualizarContaPreFaturadaHelper parserRegistroTipo1(String linha) {\r\n\t\tAtualizarContaPreFaturadaHelper retorno = new AtualizarContaPreFaturadaHelper();\r\n\r\n\t\tInteger index = 0;\r\n\r\n\t\t// Tipo de registro\r\n\t\tretorno.tipoRegistro = linha.substring(index, index + REGISTRO_TIPO);\r\n\t\tindex += REGISTRO_TIPO;\r\n\r\n\t\t// Matricula do imovel\r\n\t\tretorno.matriculaImovel = linha.substring(index, index\r\n\t\t\t\t+ MATRICULA_IMOVEL);\r\n\t\tindex += MATRICULA_IMOVEL;\r\n\r\n\t\t// Tipo de medição\r\n\t\tretorno.tipoMedicao = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_TIPO_MEDICAO);\r\n\t\tindex += REGISTRO_TIPO_1_TIPO_MEDICAO;\r\n\r\n\t\t// Ano e mes do faturamento\r\n\t\tretorno.anoMesFaturamento = Util.formatarMesAnoParaAnoMes(linha\r\n\t\t\t\t.substring(index, index + REGISTRO_TIPO_1_ANO_MES_FATURAMENTO));\r\n\t\tindex += REGISTRO_TIPO_1_ANO_MES_FATURAMENTO;\r\n\r\n\t\t// Numero da conta\r\n\t\tretorno.numeroConta = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_NUMERO_CONTA);\r\n\t\tindex += REGISTRO_TIPO_1_NUMERO_CONTA;\r\n\r\n\t\t// Codigo do Grupo de faturamento\r\n\t\tretorno.codigoGrupoFaturamento = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CODIGO_GRUPO_FATURAMENTO);\r\n\t\tindex += REGISTRO_TIPO_1_CODIGO_GRUPO_FATURAMENTO;\r\n\r\n\t\t// Codigo da rota\r\n\t\tretorno.codigoRota = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CODIGO_ROTA);\r\n\t\tindex += REGISTRO_TIPO_1_CODIGO_ROTA;\r\n\r\n\t\t// Codigo da leitura do hidrometro\r\n\t\tretorno.leituraHidrometro = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_LEITURA_HIDROMETRO);\r\n\t\tindex += REGISTRO_TIPO_1_LEITURA_HIDROMETRO;\r\n\r\n\t\t// Anormalidade de Leitura\r\n\t\tretorno.anormalidadeLeitura = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_ANORMALIDADE_LEITURA);\r\n\t\tindex += REGISTRO_TIPO_1_ANORMALIDADE_LEITURA;\r\n\r\n\t\t// Data e Hora Leitura\r\n\t\tretorno.dataHoraLeituraHidrometro = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_DATA_HORA_LEITURA);\r\n\t\tindex += REGISTRO_TIPO_1_DATA_HORA_LEITURA;\r\n\r\n\t\t// Indicador de Confirmacao\r\n\t\tretorno.indicadorConfirmacaoLeitura = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_INDICADOR_CONFIRMACAO_LEITURA);\r\n\t\tindex += REGISTRO_TIPO_1_INDICADOR_CONFIRMACAO_LEITURA;\r\n\r\n\t\t// Leitura do Faturamento\r\n\t\tretorno.leituraFaturamento = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_LEITURA_FATURAMENTO);\r\n\t\tindex += REGISTRO_TIPO_1_LEITURA_FATURAMENTO;\r\n\r\n\t\t// Consumo Medido no mes\r\n\t\tretorno.consumoMedido = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_MEDIDO);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_MEDIDO;\r\n\r\n\t\t// Consumo a ser cobrado\r\n\t\tretorno.consumoASerCobradoMes = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_A_SER_COBRADO_MES);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_A_SER_COBRADO_MES;\r\n\r\n\t\t// Consumo rateio agua\r\n\t\tretorno.consumoRateioAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_RATEIO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_RATEIO_AGUA;\r\n\r\n\t\t// Valor rateio agua\r\n\t\tretorno.valorRateioAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_VALOR_RATEIO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_1_VALOR_RATEIO_AGUA;\r\n\r\n\t\t// Consumo rateio esgoto\r\n\t\tretorno.consumoRateioEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_RATEIO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_RATEIO_ESGOTO;\r\n\r\n\t\t// Valor rateio esgoto\r\n\t\tretorno.valorRateioEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_VALOR_RATEIO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_1_VALOR_RATEIO_ESGOTO;\r\n\r\n\t\t// Tipo de consumo\r\n\t\tretorno.tipoConsumo = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_TIPO_CONSUMO);\r\n\t\tindex += REGISTRO_TIPO_1_TIPO_CONSUMO;\r\n\r\n\t\t// Anormalidade de consumo\r\n\t\tretorno.anormalidadeConsumo = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_ANORMALIDADE_CONSUMO);\r\n\t\tindex += REGISTRO_TIPO_1_ANORMALIDADE_CONSUMO;\r\n\r\n\t\t// Indicador de emissao de conta\r\n\t\tretorno.indicacaoEmissaoConta = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_INDICACAO_EMISSAO_CONTA);\r\n\t\tindex += REGISTRO_TIPO_1_INDICACAO_EMISSAO_CONTA;\r\n\r\n\t\t// Inscricao\r\n\t\tString inscricao = \"\";\r\n\t\tinscricao = linha.substring(index, index + REGISTRO_TIPO_1_INSCRICAO);\r\n\t\tformatarInscricao(retorno, inscricao);\r\n\t\tindex += REGISTRO_TIPO_1_INSCRICAO;\r\n\r\n\t\t// Indicador Geração da conta\r\n\t\tretorno.indicadorGeracaoConta = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_INDICADOR_GERACAO_CONTA);\r\n\t\tindex += REGISTRO_TIPO_1_INDICADOR_GERACAO_CONTA;\r\n\r\n\t\t// consumo imóveis vinculados\r\n\t\tretorno.consumoImoveisVinculados = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_IMOVEIS_VINCULADOS);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_IMOVEIS_VINCULADOS;\r\n\r\n\t\t// anormalidade de faturamento\r\n\t\tretorno.anormalidadeFaturamento = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_ANORMALIDADE_FATURAMENTO);\r\n\t\tindex += REGISTRO_TIPO_1_ANORMALIDADE_FATURAMENTO;\r\n\r\n\t\t// Id Cobrança Documento\r\n\t\tretorno.idCobrancaDocumento = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_COBRANCA_DOCUMENTO);\r\n\t\tindex += REGISTRO_TIPO_1_NUMERO_CONTA;\r\n\r\n\t\t// Codigo da leitura do hidrometro anterior\r\n\t\tretorno.leituraHidrometroAnterior = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_LEITURA_HIDROMETRO_ANTERIOR);\r\n\t\tindex += REGISTRO_TIPO_1_LEITURA_HIDROMETRO_ANTERIOR;\r\n\r\n\t\t\r\n\t\tif (linha.length() > 200) {\r\n\t\t\t// Latitude\r\n\t\t\tretorno.latitude = linha.substring( index, index + REGISTRO_TIPO_1_LATITUDE );\r\n\t\t\tindex += REGISTRO_TIPO_1_LATITUDE;\r\n\r\n\t\t\t// Longitude\r\n\t\t\tretorno.longitude = linha.substring( index, index + REGISTRO_TIPO_1_LONGITUDE );\r\n\t\t\t index += REGISTRO_TIPO_1_LONGITUDE;\r\n\r\n\t\t\t// Versão do IS\r\n\t\t\tretorno.numeroVersao = linha.substring(index, index\t+ REGISTRO_TIPO_1_NUMERO_VERSAO);\r\n\t\t\tindex += REGISTRO_TIPO_1_NUMERO_VERSAO;\r\n\r\n\t\t} else {\r\n\t\t\t// Latitude\r\n\t\t\tretorno.latitude = \"0\";\r\n\r\n\t\t\t// Longitude\r\n\t\t\t retorno.longitude = \"0\";\r\n\r\n\t\t\t// Versão do IS\r\n\t\t\tretorno.numeroVersao = linha.substring(index, index\t+ REGISTRO_TIPO_1_NUMERO_VERSAO);\r\n\t\t\tindex += REGISTRO_TIPO_1_NUMERO_VERSAO;\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "void format01(String line, int lineCount) {\n\n // only 1 survey is allowed per load file - max of 9 code 01 lines\n code01Count++;\n if (prevCode > 1) {\n outputError((lineCount-1) + \" - Fatal - \" +\n \"More than 1 survey in data file : \" + code01Count);\n } // if (prevCode != 1)\n\n // get the data from the line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n int subCode = 0;\n if (t.hasMoreTokens()) subCode = toInteger(t.nextToken());\n switch (subCode) {\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '1' n/a\n //03 a9 survey_id e.g. '1997/0001' survey\n //04 a10 planam Platform name inventory\n case 1: if (t.hasMoreTokens()) survey.setSurveyId(t.nextToken());\n if (t.hasMoreTokens()) {\n dummy = t.nextToken(); //ub08\n while (t.hasMoreTokens()) dummy += \" \" + t.nextToken(); //ub08\n platformName = dummy;\n if (dummy.length() > 10) dummy = dummy.substring(0, 10);//ub06\n survey.setPlanam(dummy); //ub06\n if (dbg) System.out.println(\"planam = \" + platformName + \" \" + survey.getPlanam(\"\"));\n } // if (t.hasMoreTokens())\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '2' n/a\n //03 a15 expnam Expedition name, e.g. 'AJAXL2' survey\n case 2: if (t.hasMoreTokens()) {\n dummy = t.nextToken(); //ub08\n while (t.hasMoreTokens()) dummy += \" \" + t.nextToken(); //ub08\n expeditionName = dummy;\n if (dummy.length() > 10) dummy = dummy.substring(0, 10);//ub06\n survey.setExpnam(dummy); //ub06\n if (dbg) System.out.println(\"expnam = \" + expeditionName + \" \" + survey.getExpnam(\"\"));\n } // if (t.hasMoreTokens())\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '3' n/a\n //03 a3 institute 3-letter Institute code, e.g. 'RIO' survey\n //04 a28 prjnam project name, e.g. 'HEAVYMETAL' survey\n case 3: survey.setInstitute(t.nextToken());\n if (t.hasMoreTokens()) {\n dummy = t.nextToken(); //ub08\n while (t.hasMoreTokens()) dummy += \" \" + t.nextToken(); //ub08\n projectName = dummy;\n if (dummy.length() > 10) dummy = dummy.substring(0, 10);//ub06\n survey.setPrjnam(dummy); //ub06\n if (dbg) System.out.println(\"prjnam = \" + projectName + \" \" + survey.getPrjnam(\"\"));\n } // if (t.hasMoreTokens())\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '4' n/a\n //03 a10 domain e.g. 'SURFZONE', 'DEEPSEA' survey\n // domain corrected by user in form\n //case 4: inventory.setDomain(toString(line.substring(5)));\n //case 4: if (!loadFlag) inventory.setDomain(toString(line.substring(5)));\n case 4: //if (!loadFlag) {\n if (t.hasMoreTokens()) {\n dummy = t.nextToken(); //ub08\n while (t.hasMoreTokens()) dummy += \" \" + t.nextToken(); //ub08\n if (dummy.length() > 10) dummy = dummy.substring(0, 10);//ub06\n inventory.setDomain(dummy); //ub06\n } // if (t.hasMoreTokens())\n //} // if (!loadFlag)\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '5' n/a\n //03 a10 arenam Area name, e.g. 'AGULHAS BK' survey\n // area name corrected by user in form\n //case 5: inventory.setAreaname(toString(line.substring(5)));\n //case 5: if (!loadFlag) inventory.setAreaname(toString(line.substring(5)));\n case 5: //if (!loadFlag) {\n if (t.hasMoreTokens()) {\n dummy = t.nextToken(); //ub08\n while (t.hasMoreTokens()) dummy += \" \" + t.nextToken(); //ub08\n if (dummy.length() > 20) dummy = dummy.substring(0, 20);//ub06\n inventory.setAreaname(dummy); //ub06\n } // if (t.hasMoreTokens())\n //} // if (!loadFlag)\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '6' n/a\n //04 a10 insitute e.g. 'World Ocean database' inventory\n case 6: //if (!loadFlag) { //ub03\n if (t.hasMoreTokens()) { //ub03\n instituteName = t.nextToken(); //ub03\n while (t.hasMoreTokens()) //ub03\n instituteName += \" \" + t.nextToken(); //ub03\n } // if (t.hasMoreTokens()) //ub03\n //} // if (!loadFlag) //ub03\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '7' n/a\n //04 a10 chief scientist inventory\n case 7: //if (!loadFlag) { //ub03\n if (t.hasMoreTokens()) { //ub03\n chiefScientist = t.nextToken(); //ub03\n while (t.hasMoreTokens()) //ub03\n chiefScientist += \" \" + t.nextToken(); //ub03\n } // if (t.hasMoreTokens()) //ub03\n //} // if (!loadFlag) //ub03\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '8' n/a\n //04 a10 country e.g. 'Germany' inventory\n case 8: //if (!loadFlag) { //ub03\n if (t.hasMoreTokens()) { //ub03\n countryName = t.nextToken(); //ub03\n while (t.hasMoreTokens()) //ub03\n countryName += \" \" + t.nextToken(); //ub03\n } // if (t.hasMoreTokens()) //ub03\n //} // if (!loadFlag) //ub03\n break;\n //01 a2 format code Always '01' n/a\n //02 a1 format subCode Always '8' n/a\n //04 a10 submitting scientist load log\n case 9: //if (!loadFlag) { //ub03\n if (t.hasMoreTokens()) { //ub03\n submitScientist = t.nextToken(); //ub03\n while (t.hasMoreTokens()) //ub03\n submitScientist += \" \" + t.nextToken(); //ub03\n } // if (t.hasMoreTokens()) //ub03\n //!} // if (!loadFlag) //ub03\n break;\n } // switch (subCode)\n\n //survey.setSurveyId(toString(line.substring(2,11)));\n //survey.setPlanam(toString(line.substring(11,21)));\n //survey.setExpnam(toString(line.substring(21,31)));\n //survey.setInstitute(toString(line.substring(31,34)));\n //survey.setPrjnam(toString(line.substring(34,44)));\n //if (!loadFlag) {\n // inventory.setAreaname(toString(line.substring(44,54))); // use as default to show on screen\n // inventory.setDomain(toString(line.substring(54,64))); // use as default to show on screen\n //} // if (!loadFlag)\n\n if (dbg) System.out.println(\"<br>format01: line = \" + line);\n if (dbg) System.out.println(\"<br>format01: subCode = \" + subCode);\n\n }", "public Long obtenerUAporcodigo(Long oidMarca, Long oidCanal, Long oidPais,\n String codsgv, String codRegion, String codZona, String codSeccion,\n String codTer) throws MareException {\n \n UtilidadesLog.info(\"DAOZON.obtenerUAporcodigo(Long oidMarca, Long oidCanal, Long oidPais, String codsgv, String codRegion, String codZona, String codSeccion, String codTer): Entrada\");\n \n BigDecimal result;\n BelcorpService belcorpService;\n RecordSet respuestaRecordSet = null;\n Vector parametros = new Vector();\n\n StringBuffer stringBuffer = null;\n\n try {\n belcorpService = BelcorpService.getInstance();\n\n if (checkStr(codSeccion) && checkStr(codZona) &&\n checkStr(codRegion) && checkStr(codsgv) &&\n checkStr(codTer)) {\n //Chequeo sobre CodSGV,Region,Zona,Seccion. Para Territorio\n stringBuffer = new StringBuffer(\"SELECT T.OID_TERR as UA\");\n stringBuffer.append(\n \" FROM ZON_SUB_GEREN_VENTA SGV, ZON_REGIO R, ZON_ZONA Z, ZON_SECCI S, ZON_TERRI T, ZON_TERRI_ADMIN TA \");\n stringBuffer.append(\" WHERE \");\n stringBuffer.append(\" SGV.CANA_OID_CANA = \" +\n oidCanal.toString());\n stringBuffer.append(\" AND SGV.MARC_OID_MARC = \" +\n oidMarca.toString());\n stringBuffer.append(\" AND SGV.PAIS_OID_PAIS = \" +\n oidPais.toString());\n stringBuffer.append(\" AND SGV.COD_SUBG_VENT = '\" + codsgv +\n \"' \");\n stringBuffer.append(\" AND R.COD_REGI = '\" + codRegion + \"' \");\n stringBuffer.append(\" AND Z.COD_ZONA = '\" + codZona + \"' \");\n stringBuffer.append(\" AND S.COD_SECC = '\" + codSeccion + \"' \");\n stringBuffer.append(\" AND T.COD_TERR = '\" + codTer + \"' \");\n stringBuffer.append(\n \" AND R.ZSGV_OID_SUBG_VENT = SGV.OID_SUBG_VENT \");\n stringBuffer.append(\" AND Z.ZORG_OID_REGI = R.OID_REGI \");\n stringBuffer.append(\" AND S.ZZON_OID_ZONA = Z.OID_ZONA \");\n stringBuffer.append(\" AND TA.ZSCC_OID_SECC = S.OID_SECC \");\n stringBuffer.append(\" AND TA.TERR_OID_TERR = T.OID_TERR \"); \n stringBuffer.append(\" AND SGV.IND_BORR = 0 \");\n stringBuffer.append(\" AND R.IND_BORR = 0 \");\n stringBuffer.append(\" AND Z.IND_BORR = 0 \");\n stringBuffer.append(\" AND S.IND_BORR = 0 \");\n stringBuffer.append(\" AND T.IND_BORR = 0 \");\n stringBuffer.append(\" AND TA.IND_BORR = 0 \");\n \n respuestaRecordSet = belcorpService.dbService.executeStaticQuery(stringBuffer.toString());\n } else if (checkStr(codSeccion) && checkStr(codZona) &&\n checkStr(codRegion) && checkStr(codsgv)) {\n //Chequeo sobre CodSGV,Region,Zona,Seccion. Para Territorio\n stringBuffer = new StringBuffer(\"SELECT S.OID_SECC as UA\");\n stringBuffer.append(\n \" FROM ZON_SUB_GEREN_VENTA SGV, ZON_REGIO R, ZON_ZONA Z, ZON_SECCI S\");\n stringBuffer.append(\" WHERE \");\n stringBuffer.append(\" SGV.CANA_OID_CANA = \" +\n oidCanal.toString());\n stringBuffer.append(\" AND SGV.MARC_OID_MARC = \" +\n oidMarca.toString());\n stringBuffer.append(\" AND SGV.PAIS_OID_PAIS = \" +\n oidPais.toString());\n stringBuffer.append(\" AND SGV.COD_SUBG_VENT = '\" + codsgv +\n \"' \");\n stringBuffer.append(\" AND R.COD_REGI = '\" + codRegion + \"' \");\n stringBuffer.append(\" AND Z.COD_ZONA = '\" + codZona + \"' \");\n stringBuffer.append(\" AND S.COD_SECC = '\" + codSeccion + \"' \");\n stringBuffer.append(\n \" AND R.ZSGV_OID_SUBG_VENT = SGV.OID_SUBG_VENT \");\n stringBuffer.append(\" AND Z.ZORG_OID_REGI = R.OID_REGI \");\n stringBuffer.append(\" AND S.ZZON_OID_ZONA = Z.OID_ZONA \");\n stringBuffer.append(\" AND SGV.IND_BORR = 0 \");\n stringBuffer.append(\" AND R.IND_BORR = 0 \");\n stringBuffer.append(\" AND Z.IND_BORR = 0 \");\n stringBuffer.append(\" AND S.IND_BORR = 0 \");\n \n respuestaRecordSet = belcorpService.dbService.executeStaticQuery(stringBuffer.toString());\n } else if (checkStr(codsgv) && checkStr(codRegion) &&\n checkStr(codZona)) {\n //Chequeo sobre codSgv,Region,Zona. Para Seccion\n stringBuffer = new StringBuffer(\"SELECT Z.OID_ZONA as UA\");\n stringBuffer.append(\n \" FROM ZON_SUB_GEREN_VENTA SGV, ZON_REGIO R, ZON_ZONA Z\");\n stringBuffer.append(\" WHERE \");\n stringBuffer.append(\" SGV.CANA_OID_CANA = \" +\n oidCanal.toString());\n stringBuffer.append(\" AND SGV.MARC_OID_MARC = \" +\n oidMarca.toString());\n stringBuffer.append(\" AND SGV.PAIS_OID_PAIS = \" +\n oidPais.toString());\n stringBuffer.append(\" AND SGV.COD_SUBG_VENT = '\" + codsgv +\n \"' \");\n stringBuffer.append(\" AND R.COD_REGI = '\" + codRegion + \"' \");\n stringBuffer.append(\" AND Z.COD_ZONA = '\" + codZona + \"' \");\n stringBuffer.append(\n \" AND R.ZSGV_OID_SUBG_VENT = SGV.OID_SUBG_VENT \");\n stringBuffer.append(\" AND Z.ZORG_OID_REGI = R.OID_REGI \");\n stringBuffer.append(\" AND SGV.IND_BORR = 0 \");\n stringBuffer.append(\" AND R.IND_BORR = 0 \");\n stringBuffer.append(\" AND Z.IND_BORR = 0 \");\n \n respuestaRecordSet = belcorpService.dbService.executeStaticQuery(stringBuffer.toString());\n } else if (checkStr(codsgv) && checkStr(codRegion)) {\n //Chequeo sobre codSgv,Region. Para Zona.\n stringBuffer = new StringBuffer(\"SELECT R.OID_REGI as UA\");\n stringBuffer.append(\n \" FROM ZON_SUB_GEREN_VENTA SGV, ZON_REGIO R\");\n stringBuffer.append(\" WHERE \");\n stringBuffer.append(\" SGV.CANA_OID_CANA = \" +\n oidCanal.toString());\n stringBuffer.append(\" AND SGV.MARC_OID_MARC = \" +\n oidMarca.toString());\n stringBuffer.append(\" AND SGV.PAIS_OID_PAIS = \" +\n oidPais.toString());\n stringBuffer.append(\" AND SGV.COD_SUBG_VENT = '\" + codsgv +\n \"' \");\n stringBuffer.append(\" AND R.COD_REGI = '\" + codRegion + \"' \");\n stringBuffer.append(\n \" AND R.ZSGV_OID_SUBG_VENT = SGV.OID_SUBG_VENT \");\n stringBuffer.append(\" AND SGV.IND_BORR = 0 \");\n stringBuffer.append(\" AND R.IND_BORR = 0 \");\n \n respuestaRecordSet = belcorpService.dbService.executeStaticQuery(stringBuffer.toString());\n } else if (checkStr(codsgv)) {\n //Chequeo sobre codSgv. Para Region\n stringBuffer = new StringBuffer(\n \"SELECT SGV.OID_SUBG_VENT as UA\");\n stringBuffer.append(\" FROM ZON_SUB_GEREN_VENTA SGV\");\n stringBuffer.append(\" WHERE \");\n stringBuffer.append(\" SGV.CANA_OID_CANA = \" +\n oidCanal.toString());\n stringBuffer.append(\" AND SGV.MARC_OID_MARC = \" +\n oidMarca.toString());\n stringBuffer.append(\" AND SGV.PAIS_OID_PAIS = \" +\n oidPais.toString());\n stringBuffer.append(\" AND SGV.COD_SUBG_VENT = '\" + codsgv + \"' \");\n stringBuffer.append(\" AND SGV.IND_BORR = 0 \");\n \n respuestaRecordSet = belcorpService.dbService.executeStaticQuery(stringBuffer.toString());\n }\n } catch (MareMiiServiceNotFoundException serviceNotFoundException) {\n codigoError = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(serviceNotFoundException,\n UtilidadesError.armarCodigoError(codigoError));\n } catch (Exception exception) {\n codigoError = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(exception,\n UtilidadesError.armarCodigoError(codigoError));\n }\n\n if (respuestaRecordSet.esVacio()) {\n UtilidadesLog.info(\"DAOZON.obtenerUAporcodigo(Long oidMarca, Long oidCanal, Long oidPais, String codsgv, String codRegion, String codZona, String codSeccion, String codTer): Salida\");\n return null;\n } else {\n result = (BigDecimal) respuestaRecordSet.getValueAt(0, \"UA\");\n }\n UtilidadesLog.info(\"DAOZON.obtenerUAporcodigo(Long oidMarca, Long oidCanal, Long oidPais, String codsgv, String codRegion, String codZona, String codSeccion, String codTer): Salida\");\n return new Long(result.longValue());\n }", "public java.lang.String getDataFromLMS();", "Object obtenerPolizasPorFolioSolicitudNoCancelada(int folioSolicitud,String formatoSolicitud);", "public String HaToMa(double ha) {\n // ma = 100000*ha\n double ma = ha*100000;\n return check_after_decimal_point(ma);\n }", "@Override\n public void invoke(SimpleAssetsOperational simpleAssetsOperational, AnalysisContext context) {\n String des = simpleAssetsOperational.getDes();\n if (StringUtils.isBlank(des)) {\n ++index;\n return;\n }\n\n String replace2 = des.replace(\"\\n\", \"\");\n String replace = replace2.replace(\" \", \"\");\n switch (index) {\n case 0:\n break;\n case 1:\n break;\n case 2:\n // 单位名称:定远县分公司 填表人员姓名:吴松 联系方式:18955083799\n break;\n case 3:\n //手工网点总数量\n String var111 = replace.replace(\"个\",\"\");\n if (StringUtils.isNotBlank(var111)){\n int i = Integer.parseInt(var111);\n Result.手工网点总数量 += i;\n }\n break;\n case 4:\n //手工网点人员 人员数量1人的手工网点数量: 11 ;人员数量2人的手工网点数量 0 人员数量1人的手工网点数量:11;人员数量2人的手工网点数量0\n String[] strings = replace.split(\";\");\n for (String info : strings) {\n if (info.contains(\"人员数量1人的手工网点数量\")) {\n String replace1 = info.replace(\":\", \"\");\n String 人员数量1人的手工网点数量 = replace1.replace(\"人员数量1人的手工网点数量\", \"\");\n if (StringUtils.isNotBlank(人员数量1人的手工网点数量)) {\n int i1 = Integer.parseInt(人员数量1人的手工网点数量.replace(\"个\",\"\"));\n Result.人员数量1人的手工网点数量 += i1;\n }\n } else if (info.contains(\"人员数量2人的手工网点数量\")) {\n String replace1 = info.replace(\":\", \"\");\n String 人员数量2人的手工网点数量 = replace1.replace(\"人员数量2人的手工网点数量\", \"\");\n if (StringUtils.isNotBlank(人员数量2人的手工网点数量)) {\n int i1 = Integer.parseInt(人员数量2人的手工网点数量.replace(\"个\",\"\"));\n Result.人员数量2人的手工网点数量 += i1;\n }\n }\n }\n break;\n case 5:\n //设备配备 (PC/手机/PDA) 配置PC的手工网点数量: 2 ;配置手机以及PDA的手工网点数量: 9\n String[] stringss = replace.split(\";\");\n for (String info : stringss) {\n if (info.contains(\"配置PC的手工网点数量\")) {\n String replace1 = info.replace(\":\", \"\");\n String 配置PC的手工网点数量 = replace1.replace(\"配置PC的手工网点数量\", \"\");\n if (StringUtils.isNotBlank(配置PC的手工网点数量)) {\n int i1 = Integer.parseInt(配置PC的手工网点数量.replace(\"个\",\"\"));\n Result.配置PC的手工网点数量 += i1;\n }\n } else if (info.contains(\"配置手机以及PDA的手工网点数量\")) {\n String replace1 = info.replace(\":\", \"\");\n String 配置手机以及PDA的手工网点数量 = replace1.replace(\"配置手机以及PDA的手工网点数量\", \"\");\n if (StringUtils.isNotBlank(配置手机以及PDA的手工网点数量)) {\n int i1 = Integer.parseInt(配置手机以及PDA的手工网点数量.replace(\"个\",\"\"));\n Result.配置手机以及PDA的手工网点数量 += i1;\n }\n }\n }\n break;\n case 6:\n //满足作业需求程度:五星■ 四星□ 三星□ 二星□ 一星□\n //(备注:在所选星数后面涂黑■,星数越多,说明程度越大或评价越高,以下均是如此)\n //满足管理需求程度:五星■ 四星□ 三星□ 二星□ 一星□;\n //从不使用的功能包括: ;\n //建议完善的功能包括: ;\n //建议补充的功能包括: ;\n String[] split = replace.split(\";\");\n if (split.length >= 4) {\n int length = split[0].length();\n int index = split[0].indexOf(\"如此\");\n String 选项1 = split[0].substring(0, index);\n String 选项2 = split[0].substring(index, length);\n String 星 = xuanxing(选项1);\n HashMap<String, Integer> pc满足作业需求程度 = Result.pc满足作业需求程度;\n if (pc满足作业需求程度.containsKey(星)) {\n Integer integer = pc满足作业需求程度.get(星);\n pc满足作业需求程度.put(星, ++integer);\n } else {\n pc满足作业需求程度.put(星, 1);\n }\n\n Result.pc满足作业需求程度 = pc满足作业需求程度;\n 星 = xuanxing(选项2);\n HashMap<String, Integer> pc满足管理需求程度 = Result.pc满足管理需求程度;\n if (pc满足管理需求程度.containsKey(星)) {\n Integer integer = pc满足管理需求程度.get(星);\n pc满足管理需求程度.put(星, ++integer);\n } else {\n pc满足管理需求程度.put(星, 1);\n }\n Result.pc满足管理需求程度 = pc满足管理需求程度;\n // -------2\n String s2 = split[1];\n String var2 = s2.replace(\"从不使用的功能包括:\", \"\");\n if (StringUtils.isNotBlank(var2)) {\n Result.PC端从不使用的功能包括.add(var2);\n }\n\n // -------3\n String s3 = split[2];\n String var3 = s3.replace(\"建议完善的功能包括:\", \"\");\n if (StringUtils.isNotBlank(var3)) {\n Result.PC端建议完善的功能包括.add(var3);\n }\n\n // -------2\n String s4 = split[3];\n String var4 = s4.replace(\"建议补充的功能包括:\", \"\");\n if (StringUtils.isNotBlank(var4)) {\n Result.PC端建议补充的功能包括.add(var4);\n }\n } else {\n throw new NullPointerException();\n }\n\n\n break;\n case 7:\n //满足作业需求程度:五星■ 四星□ 三星□ 二星□ 一星□;\n //满足管理需求程度:五星■ 四星□ 三星□ 二星□ 一星□;\n //从不使用的功能包括: ;\n //建议完善的功能包括: ;\n //建议补充的功能包括: ;\n\n String[] split8 = replace.split(\";\");\n if (split8.length >= 5) {\n String 星 = xuanxing(split8[0]);\n HashMap<String, Integer> 手机满足作业需求程度 = Result.手机满足作业需求程度;\n if (手机满足作业需求程度.containsKey(星)) {\n Integer integer = 手机满足作业需求程度.get(星);\n 手机满足作业需求程度.put(星, ++integer);\n } else {\n 手机满足作业需求程度.put(星, 1);\n }\n Result.手机满足作业需求程度 = 手机满足作业需求程度;\n // 2\n 星 = xuanxing(split8[1]);\n HashMap<String, Integer> 手机满足管理需求程度 = Result.手机满足管理需求程度;\n if (手机满足管理需求程度.containsKey(星)) {\n Integer integer = 手机满足管理需求程度.get(星);\n 手机满足管理需求程度.put(星, ++integer);\n } else {\n 手机满足管理需求程度.put(星, 1);\n }\n Result.手机满足管理需求程度 = 手机满足管理需求程度;\n // -------3\n String s2 = split8[2];\n String var2 = s2.replace(\"从不使用的功能包括:\", \"\");\n if (StringUtils.isNotBlank(var2)) {\n Result.手机端从不使用的功能包括.add(var2);\n }\n\n // -------3\n String s3 = split8[3];\n String var3 = s3.replace(\"建议完善的功能包括:\", \"\");\n if (StringUtils.isNotBlank(var3)) {\n Result.手机建议完善的功能包括.add(var3);\n }\n\n // -------2\n String s4 = split8[4];\n String var4 = s4.replace(\"建议补充的功能包括:\", \"\");\n if (StringUtils.isNotBlank(var4)) {\n Result.手机端建议补充的功能包括.add(var4);\n }\n } else {\n throw new NullPointerException();\n }\n break;\n case 8:\n // 操作过程中系统提示的消息易于理解程度:\n //五星■ 四星□ 三星□ 二星□ 一星□;\n String 星 = xuanxing(replace);\n HashMap<String, Integer> 操作过程中系统提示的消息易于理解程度 = Result.操作过程中系统提示的消息易于理解程度;\n if (操作过程中系统提示的消息易于理解程度.containsKey(星)) {\n int var = 操作过程中系统提示的消息易于理解程度.get(星);\n 操作过程中系统提示的消息易于理解程度.put(星, ++var);\n } else {\n 操作过程中系统提示的消息易于理解程度.put(星, 1);\n }\n Result.操作过程中系统提示的消息易于理解程度 = 操作过程中系统提示的消息易于理解程度;\n break;\n case 9:\n //系统出现问题后,系统给出相应问题诊断的符合程度:\n //五星■ 四星□ 三星□ 二星□ 一星□;\n String 星10 = xuanxing(replace);\n HashMap<String, Integer> 系统出现问题后系统给出相应问题诊断的符合程度 = Result.系统出现问题后系统给出相应问题诊断的符合程度;\n if (系统出现问题后系统给出相应问题诊断的符合程度.containsKey(星10)) {\n int var = 系统出现问题后系统给出相应问题诊断的符合程度.get(星10);\n 系统出现问题后系统给出相应问题诊断的符合程度.put(星10, ++var);\n } else {\n 系统出现问题后系统给出相应问题诊断的符合程度.put(星10, 1);\n }\n Result.系统出现问题后系统给出相应问题诊断的符合程度 = 系统出现问题后系统给出相应问题诊断的符合程度;\n break;\n case 10:\n //系统帮助对解决问题的帮助程度:\n //五星■ 四星□ 三星□ 二星□ 一星□;\n String 星11 = xuanxing(replace);\n HashMap<String, Integer> 系统帮助对解决问题的帮助程度 = Result.系统帮助对解决问题的帮助程度;\n if (系统帮助对解决问题的帮助程度.containsKey(星11)) {\n int var = 系统帮助对解决问题的帮助程度.get(星11);\n 系统帮助对解决问题的帮助程度.put(星11, ++var);\n } else {\n 系统帮助对解决问题的帮助程度.put(星11, 1);\n }\n Result.系统帮助对解决问题的帮助程度 = 系统帮助对解决问题的帮助程度;\n\n break;\n case 11:\n //用户手册等文档对解决问题的帮助程度:\n //五星■ 四星□ 三星□ 二星□ 一星□;\n String 星12 = xuanxing(replace);\n HashMap<String, Integer> 用户手册等文档对解决问题的帮助程度 = Result.用户手册等文档对解决问题的帮助程度;\n if (用户手册等文档对解决问题的帮助程度.containsKey(星12)) {\n int var = 用户手册等文档对解决问题的帮助程度.get(星12);\n 用户手册等文档对解决问题的帮助程度.put(星12, ++var);\n } else {\n 用户手册等文档对解决问题的帮助程度.put(星12, 1);\n }\n Result.用户手册等文档对解决问题的帮助程度 = 用户手册等文档对解决问题的帮助程度;\n break;\n case 12:\n //PC端操作界面友好程度:五星■ 四星□ 三星□ 二星□ 一星□;\n //APP操作界面友好程度: 五星■ 四星□ 三星□ 二星□ 一星□;\n String[] s_13 = replace.split(\";\");\n int lenght = s_13.length;\n if (lenght >= 2) {\n String PC端操作界面友好程度 = s_13[0];\n HashMap<String, Integer> pc端操作界面友好程度 = Result.PC端操作界面友好程度;\n String var = xuanxing(PC端操作界面友好程度);\n if (pc端操作界面友好程度.containsKey(var)) {\n int _v = pc端操作界面友好程度.get(var);\n pc端操作界面友好程度.put(var, ++_v);\n } else {\n pc端操作界面友好程度.put(var, 1);\n }\n Result.PC端操作界面友好程度 = pc端操作界面友好程度;\n\n String APP操作界面友好程度 = s_13[1];\n HashMap<String, Integer> 手机端操作界面友好程度 = Result.手机端操作界面友好程度;\n String var1 = xuanxing(APP操作界面友好程度);\n if (手机端操作界面友好程度.containsKey(var1)) {\n int _v = 手机端操作界面友好程度.get(var1);\n 手机端操作界面友好程度.put(var1, ++_v);\n } else {\n 手机端操作界面友好程度.put(var1, 1);\n }\n Result.手机端操作界面友好程度 = 手机端操作界面友好程度;\n\n } else {\n throw new NullPointerException();\n }\n break;\n case 13:\n //系统容易使用的程度:五星■ 四星□ 三星□ 二星□ 一星□;\n //若感觉到复杂,优化建议: ;\n String[] s_14 = replace.split(\";\");\n int lenght14 = s_14.length;\n if (lenght14 >= 2) {\n String ss = s_14[0];\n HashMap<String, Integer> 系统容易使用的程度 = Result.系统容易使用的程度;\n String var = xuanxing(ss);\n if (系统容易使用的程度.containsKey(var)) {\n int _v = 系统容易使用的程度.get(var);\n 系统容易使用的程度.put(var, ++_v);\n } else {\n 系统容易使用的程度.put(var, 1);\n }\n Result.系统容易使用的程度 = 系统容易使用的程度;\n\n String 优化建议 = s_14[1];\n Result.操作的复杂性建议.add(优化建议.replace(\"若感觉到复杂,优化建议:\", \"\"));\n\n } else {\n throw new NullPointerException();\n }\n break;\n case 14:\n //完成具体任务时的操作简洁程度(操作步骤少):\n //五星■ 四星□ 三星□ 二星□ 一星□;\n //若感觉到操作步骤过多,优化建议: ;\n String[] s_15 = replace.split(\";\");\n int lenght15 = s_15.length;\n if (lenght15 >= 2) {\n String ss = s_15[0];\n HashMap<String, Integer> 操作简洁程度 = Result.操作简洁程度;\n String var = xuanxing(ss);\n if (操作简洁程度.containsKey(var)) {\n int _v = 操作简洁程度.get(var);\n 操作简洁程度.put(var, ++_v);\n } else {\n 操作简洁程度.put(var, 1);\n }\n Result.系统容易使用的程度 = 操作简洁程度;\n\n String 优化建议 = s_15[1];\n Result.操作的复杂性步骤过多建议.add(优化建议.replace(\"若感觉到操作步骤过多,优化建议:\", \"\"));\n\n } else {\n System.out.println(\"解析异常15\");\n }\n break;\n case 15:\n //常见故障名称(或类型): ;\n //系统平均每个月出现的故障次数: 1 次;\n //系统故障时平均持续时间:\n //30分钟内■ 1小时内□ 2小时内□ 2小时以上□;\n //对业务的影响程度:五星□ 四星□ 三星□ 二星□ 一星□;\n //(备注:星数越多,说明影响程度越大)\n //若有影响,请简要说明:\n String[] s_16 = replace.split(\";\");\n if (s_16.length >= 5) {\n String s1 = s_16[0];\n Result.常见故障.add(s1.replace(\"常见故障名称(或类型):\", \"\"));\n\n String s2 = s_16[1];\n String replace1 = s2.replace(\"系统平均每个月出现的故障次数:\", \"\");\n String 次 = replace1.replace(\"次\", \"\");\n if (StringUtils.isNotBlank(次)){\n int i1 = 0;\n if (次.contains(\"-\")){\n i1 = Integer.parseInt(次.split(\"-\")[0]);\n }else {\n i1 = Integer.parseInt(次);\n }\n Result.平均系统出现故障次数 += i1;\n }\n\n\n String s3 = s_16[2];\n String xuanxiaoshi = xuanxiaoshi(s3);\n if (Result.系统故障时平均持续时间.containsKey(xuanxiaoshi)) {\n int count = Result.系统故障时平均持续时间.get(xuanxiaoshi);\n Result.系统故障时平均持续时间.put(xuanxiaoshi,++count);\n }else {\n Result.系统故障时平均持续时间.put(xuanxiaoshi,1);\n }\n\n String s4 = s_16[3];\n String xing = xuanxing(s4);\n if (Result.对业务的影响程度.containsKey(xing)) {\n int count = Result.对业务的影响程度.get(xing);\n Result.对业务的影响程度.put(xing,++count);\n }else {\n Result.对业务的影响程度.put(xing,1);\n }\n\n String s5 = s_16[4];\n Result.影响说明.add(s5.replace(\"(备注:星数越多,说明影响程度越大)若有影响,请简要说明:\", \"\"));\n\n }\n break;\n case 16:\n //系统运行前手工作业效率: 10 分钟/每件(普通包裹)\n //系统运行前手工作业效率: 5 分钟/每件(信函)\n //系统运行前手工作业效率: 3 分钟/每件(报刊);\n //系统运行后作业效率: 8 分钟/每件(普通包裹)\n //系统运行后作业效率: 4 分钟/每件(信函)\n //系统运行后作业效率: 3 分钟/每件(报刊)。\n String[] s_17 = replace.split(\";\");\n if (s_17.length >= 2){\n String[] s_var = s_17[0].split(\")\");\n if (s_var.length >= 3){\n // 1\n String replace1 = s_var[0].replace(\"系统运行前手工作业效率:\", \"\");\n String replace3 = replace1.replace(\"分钟/每件(普通包裹\", \"\");\n double result = 0;\n if (StringUtils.isNotBlank(replace3)){\n result = Double.parseDouble(replace3);\n }\n if (Result.人员效率.containsKey(\"普通包裹\")) {\n Double var = Result.人员效率.get(\"普通包裹\");\n Result.人员效率.put(\"普通包裹\",result+var);\n }else {\n Result.人员效率.put(\"普通包裹\",result);\n }\n //2\n replace1 = s_var[1].replace(\"系统运行前手工作业效率:\", \"\");\n replace3 = replace1.replace(\"分钟/每件(信函\", \"\");\n double result1 = 0;\n if (StringUtils.isNotBlank(replace3)){\n result1 = Double.parseDouble(replace3);\n }\n if (Result.人员效率.containsKey(\"信函\")) {\n Double var = Result.人员效率.get(\"信函\");\n Result.人员效率.put(\"信函\",result1+var);\n }else {\n Result.人员效率.put(\"信函\",result1);\n }\n //3\n replace1 = s_var[2].replace(\"系统运行前手工作业效率:\", \"\");\n replace3 = replace1.replace(\"分钟/每件(报刊\", \"\");\n double result3 = 0;\n if (StringUtils.isNotBlank(replace3)){\n result3 = Double.parseDouble(replace3);\n }\n if (Result.人员效率.containsKey(\"报刊\")) {\n Double var = Result.人员效率.get(\"报刊\");\n Result.人员效率.put(\"报刊\",result3+var);\n }else {\n Result.人员效率.put(\"报刊\",result3);\n }\n }\n\n\n s_var = s_17[1].split(\")\");\n if (s_var.length >= 3){\n // 1\n String replace1 = s_var[0].replace(\"系统运行后作业效率:\", \"\");\n String replace3 = replace1.replace(\"分钟/每件(普通包裹\", \"\");\n double result4 = 0;\n if (StringUtils.isNotBlank(replace3)){\n result4 = Double.parseDouble(replace3);\n }\n if (Result.人员效率.containsKey(\"系统运行后普通包裹\")) {\n Double var = Result.人员效率.get(\"系统运行后普通包裹\");\n Result.人员效率.put(\"系统运行后普通包裹\",result4+var);\n }else {\n Result.人员效率.put(\"系统运行后普通包裹\",result4);\n }\n //2\n\n replace1 = s_var[1].replace(\"系统运行后作业效率:\", \"\");\n replace3 = replace1.replace(\"分钟/每件(信函\", \"\");\n double result5 = 0;\n if (StringUtils.isNotBlank(replace3)){\n result5 = Double.parseDouble(replace3);\n }\n if (Result.人员效率.containsKey(\"系统运行后信函\")) {\n Double var = Result.人员效率.get(\"系统运行后信函\");\n Result.人员效率.put(\"系统运行后信函\",result5+var);\n }else {\n Result.人员效率.put(\"系统运行后信函\",result5);\n }\n //3\n replace1 = s_var[2].replace(\"系统运行后作业效率:\", \"\");\n replace3 = replace1.replace(\"分钟/每件(报刊\", \"\");\n double result6 = 0;\n if (StringUtils.isNotBlank(replace3)){\n result6 = Double.parseDouble(replace3);\n }\n if (Result.人员效率.containsKey(\"系统运行后报刊\")) {\n Double var = Result.人员效率.get(\"系统运行后报刊\");\n Result.人员效率.put(\"系统运行后报刊\",result6+var);\n }else {\n Result.人员效率.put(\"系统运行后报刊\",result6);\n }\n }\n\n\n }\n break;\n case 17:\n //您对系统的总体评价:五星■ 四星□ 三星□ 二星□ 一星□;\n //简要评价说明:\n String[] s_18 = replace.split(\";\");\n int lenght18 = s_18.length;\n if (lenght18 >= 2) {\n String ss = s_18[0];\n HashMap<String, Integer> 总体评价 = Result.总体评价;\n String var = xuanxing(ss);\n if (总体评价.containsKey(var)) {\n int _v = 总体评价.get(var);\n 总体评价.put(var, ++_v);\n } else {\n 总体评价.put(var, 1);\n }\n Result.总体评价 = 总体评价;\n\n String 优化建议 = s_18[1];\n\n Result.总体评价说明.add(优化建议.replace(\"简要评价说明:\", \"\"));\n\n } else {\n throw new NullPointerException();\n }\n break;\n case 18:\n //意见建议\n Result.意见建议.add(replace);\n break;\n default:\n }\n ++index;\n }", "public static String getAcountAsterixData(String ccNum) \r\n\t{\r\n\t\tif(ccNum.length() < 4)\r\n\t\t\treturn ccNum;\r\n\t\tint len = ccNum.length();\r\n\t\tString temp = \"\";\r\n\t\tfor (int i = 0; i < (len - 4); i++) {\r\n\t\t\ttemp = temp + \"*\";\r\n\t\t}\r\n\t\treturn (temp + ccNum.substring((len - 4), (len)));\r\n\t}", "private String[] Asignacion(String texto) {\n String[] retorno = new String[2];\n try {\n retorno = texto.split(\"=\");\n if (retorno.length == 2) {\n if (retorno[0].toLowerCase().contains(\"int\")) {\n if (retorno[0].contains(\"int\")) {\n if (retorno[0].startsWith(\"int\")) {\n String aux[] = retorno[0].split(\"int\");\n if (aux.length == 2) {\n retorno[0] = \"1\";//aceptacion\n retorno[1] = aux[1];//nombre variable\n } else {\n retorno[0] = \"0\";//error\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n } else {\n retorno[0] = \"0\";//error\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"se encuentra mal escrito el int.\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"no se encontro la palabra reservada int.\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n } catch (Exception e) {\n System.out.println(\"Error en Asignacion \" + e.getClass());\n } finally {\n return retorno;\n }\n }", "bdm mo1784a(akh akh);", "public static String converterDataSemBarraParaDataComBarra(String data) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tif (data != null && !data.equals(\"\") && data.trim().length() == 8) {\r\n\r\n\t\t\tretorno = data.substring(0, 2) + \"/\" + data.substring(2, 4) + \"/\" + data.substring(4, 8);\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "private AtualizarContaPreFaturadaHelper parserRegistroTipo3(String linha) {\r\n\t\tAtualizarContaPreFaturadaHelper retorno = new AtualizarContaPreFaturadaHelper();\r\n\r\n\t\tInteger index = 0;\r\n\r\n\t\t// Tipo de registro\r\n\t\tretorno.tipoRegistro = linha.substring(index, index + REGISTRO_TIPO);\r\n\t\tindex += REGISTRO_TIPO;\r\n\r\n\t\t// Matricula do imovel\r\n\t\tretorno.matriculaImovel = linha.substring(index, index\r\n\t\t\t\t+ MATRICULA_IMOVEL);\r\n\t\tindex += MATRICULA_IMOVEL;\r\n\r\n\t\t// Codigo da Categoria\r\n\t\tretorno.codigoCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CODIGO_CATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_3_CODIGO_CATEGORIA;\r\n\r\n\t\t// Codigo da Subcategoria\r\n\t\tretorno.codigoSubCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CODIGO_SUBCATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_3_CODIGO_SUBCATEGORIA;\r\n\r\n\t\t// Consumo faturado de agua\r\n\t\tretorno.consumoFaturadoAguaFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CONSUMO_FATURADO_AGUA_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_CONSUMO_FATURADO_AGUA_FAIXA;\r\n\r\n\t\t// Valor tarifa minima de agua\r\n\t\tretorno.valorFaturadoAguaFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_FATURADO_AGUA_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_FATURADO_AGUA_FAIXA;\r\n\r\n\t\t// Limite Inicial do Consumo na Faixa\r\n\t\tretorno.limiteInicialConsumoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_LIMITE_INICIAL_CONSUMO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_LIMITE_INICIAL_CONSUMO_FAIXA;\r\n\r\n\t\t// Limite Final do consumo na Faixa\r\n\t\tretorno.limiteFinalConsumoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_LIMITE_FINAL_CONSUMO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_LIMITE_FINAL_CONSUMO_FAIXA;\r\n\r\n\t\t// Valor da Tarifa Agua na Faixa\r\n\t\tretorno.valorTarifaAguaFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_TARIFA_AGUA_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_TARIFA_AGUA_FAIXA;\r\n\r\n\t\t// Valor da Tarifa Esgoto na Faixa\r\n\t\tretorno.valorTarifaEsgotoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_TARIFA_ESGOTO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_TARIFA_ESGOTO_FAIXA;\r\n\r\n\t\t// Consumo faturado de esgoto\r\n\t\tretorno.consumoFaturadoEsgotoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CONSUMO_FATURADO_ESGOTO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_CONSUMO_FATURADO_ESGOTO_FAIXA;\r\n\r\n\t\t// Valor tarifa minima de agua\r\n\t\tretorno.valorFaturadoEsgotoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_FATURADO_ESGOTO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_FATURADO_ESGOTO_FAIXA;\r\n\r\n\t\treturn retorno;\r\n\t}", "public static void main(String [] args ) {\n String a = \"ASDFASD=ab = dsf ='ab\";\n String [] arr = a.split(\"=\");\n int b = 111;\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");//设置日期格式\n String timeStr = \"2016-12-06 00:00:00\";\n\n try {\n long endStamp = df.parse(timeStr).getTime();\n long startStamp = endStamp - 24*3600*1000;\n System.out.println(df.format(startStamp));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n System.out.println(df.format(new Date()));\n\n\n System.out.println(b/100);\n test tt = new test();\n System.out.println(tt.a);\n String iI = AnalyseFactory.createAnalyse(JDealDataPS).itemInstr;\n System.out.println(iI);\n }", "public String getAgcData ()\n\t{\n\t\tString agcData = getContent().substring(OFF_ID27_AGC_DATA, OFF_ID27_AGC_DATA + LEN_ID27_AGC_DATA) ;\n\t\treturn (agcData);\n\t}", "public String HaToA(double ha) {\n // a = 100*ha\n double a = ha*100;\n return check_after_decimal_point(a);\n }", "public Format mo25010a(long subsampleOffsetUs) {\n Format format = new Format(this.f16501a, this.f16502b, this.f16506f, this.f16507g, this.f16504d, this.f16503c, this.f16508h, this.f16512l, this.f16513m, this.f16514n, this.f16515o, this.f16516p, this.f16518r, this.f16517q, this.f16519s, this.f16520t, this.f16521u, this.f16522v, this.f16523w, this.f16524x, this.f16525y, this.f16526z, this.f16499A, subsampleOffsetUs, this.f16509i, this.f16510j, this.f16505e);\n return format;\n }", "private String Interpretar(String num) {\r\n\t\tif(num.length() > 3)\r\n\t\t\treturn \"\";\r\n\t\tString salida=\"\";\r\n\t\t\r\n\t\tif(Dataposi(num,2) != 0)\r\n\t\t\tsalida = Centenas[Dataposi(num,2)-1];\r\n\t\t\r\n\t\tint k = Integer.parseInt(String.valueOf(Dataposi(num,1))+String.valueOf(Dataposi(num,0)));\r\n\r\n\t\tif(k <= 20)\r\n\t\t\tsalida += Numero[k];\r\n\t\telse {\r\n\t\t\tif(k > 30 && Dataposi(num,0) != 0)\r\n\t\t\t\tsalida += Decenas[Dataposi(num,1)-2] + \"Y \" + Numero[Dataposi(num,0)];\r\n\t\t\telse\r\n\t\t\t\tsalida += Decenas[Dataposi(num,1)-2] + Numero[Dataposi(num,0)];\r\n\t\t}\r\n\t\t//Caso especial con el 100\r\n\t\tif(Dataposi(num,2) == 1 && k == 0)\r\n\t\t\tsalida=\"CIEN\";\r\n\t\t\r\n\t\treturn salida;\r\n\t}", "public Integer getAaa021() {\r\n return aaa021;\r\n }", "public aa m14042a(C2917c c2917c) {\n String a = this.f12193i.m14548a(\"Content-Type\");\n String a2 = this.f12193i.m14548a(\"Content-Length\");\n return new C2896a().m14003a(new C2989a().m14608a(this.f12187c).m14610a(this.f12189e, null).m14613a(this.f12188d).m14620c()).m13998a(this.f12190f).m13994a(this.f12191g).m13996a(this.f12192h).m14002a(this.f12193i).m14000a(new C4340b(c2917c, a, a2)).m14001a(this.f12194j).m13995a(this.f12195k).m14005b(this.f12196l).m14004a();\n }", "public String getAaa023() {\r\n return aaa023;\r\n }", "private void getTDPPrepaid(){\n TDPPrepaid = KalkulatorUtility.getTDP_ADDM(DP,biayaAdminADDM,polis,installment2Prepaid,premiAmountSumUp,\n \"ONLOAN\",tenor,bungaADDM.size());\n LogUtility.logging(TAG,LogUtility.infoLog,\"TDPPrepaid\",\"TDPPrepaid\",JSONProcessor.toJSON(TDPPrepaid));\n }", "public Asiakas(){\n\t\tid++;\n\t\tbussiNumero = new Random().nextInt(OmaMoottori.bussienMaara);\n\t\tsaapumisaika = Kello.getInstance().getAika();\n\t}", "public abstract java.lang.String getAcma_cierre();", "public abstract java.lang.String getAcma_descripcion();", "void format09(String line, int lineCount) {\n\n // is this the first record in the file?\n checkFirstRecord(code, lineCount);\n\n // there can only be one code 09 record per substation\n code09Count++;\n if (code09Count > 1) {\n outputError(lineCount + \" - Fatal - \" +\n \"More than 1 code 09 record in substation\");\n } // if (code09Count > 1)\n\n // get the data off the line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n\n if (dataType == SEDIMENT) {\n\n //01 a2 format code always \"09\" n/a\n //02 a12 stnid station id: composed as for format 03 sedphy\n //03 f10.3 calcium µgm / gram sedchem2\n //04 f8.2 magnesium µgm / gram sedchem2\n //05 f7.3 sulphide(SO3) µgm / gram sedchem2\n //06 f8.3 potassium µgm / gram sedchem2\n //07 f8.2 sodium µgm / gram sedchem2\n //08 f9.3 strontium µgm / gram sedchem2\n\n if (t.hasMoreTokens()) sedphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) sedchem2.setCalcium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedchem2.setMagnesium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedchem2.setSo3(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedchem2.setPotassium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedchem2.setSodium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedchem2.setStrontium(toFloat(t.nextToken(), 1f));\n\n // station Id must match that of previous station record\n checkStationId(lineCount, sedphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format09: sedchem2 = \" + sedchem2);\n\n } else if (dataType == WATER) {\n\n //01 a2 format code always \"09\" n/a\n //02 a12 stnid station id: composed as for format 03 watphy\n //03 f7.3 suspendedSolids mgm / litre watchem2\n //04 f10.3 calcium µgm / litre watchem2\n //05 f7.4 sulphate(SO4) gm / litre watchem2\n //06 f8.3 potassium µgm / litre watchem2\n //07 f8.2 magnesium µgm / litre watchem2\n //08 f8.2 sodium µgm / litre watchem2\n //09 f9.3 strontium µgm / litre watchem2\n\n if (t.hasMoreTokens()) watphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) watchem2.setSussol(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watchem2.setCalcium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watchem2.setSo4(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watchem2.setPotassium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watchem2.setMagnesium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watchem2.setSodium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watchem2.setStrontium(toFloat(t.nextToken(), 1f));\n\n // station Id must match that of previous station record\n checkStationId(lineCount, watphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format09: watchem2 = \" + watchem2);\n\n } // if (dataType == SEDIMENT)\n\n }", "private String formato(String cadena){\n cadena = cadena.replaceAll(\" \",\"0\");\n return cadena;\n }", "void format12(String line, int lineCount) {\n\n // is this the first record in the file?\n checkFirstRecord(code, lineCount);\n\n // there can only be one code 12 record per substation\n code12Count++;\n if (code12Count > 1) {\n outputError(lineCount + \" - Fatal - \" +\n \"More than 1 code 12 record in substation\");\n } // if (code12Count > 1)\n\n // get the data off the line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n\n if (dataType == SEDIMENT) {\n\n //01 a2 format code always \"12\" n/a\n //02 a12 stnid station id: composed as for format 03 sedphy\n //03 f10.3 iron µgm / gram sedpol1\n //04 f9.3 chromium µgm / gram sedpol1\n //05 f8.3 manganese µgm / gram sedpol1\n //06 f8.3 cobalt µgm / gram sedpol1\n //07 f8.3 selenium µgm / gram sedpol1\n //08 f8.3 arsenic µgm / gram sedpol1\n\n if (t.hasMoreTokens()) sedphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) sedpol1.setIron(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol1.setChromium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol1.setManganese(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol1.setCobalt(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol1.setSelenium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol1.setArsenic(toFloat(t.nextToken(), 1f));\n\n // station Id must match that of previous station record\n checkStationId(lineCount, sedphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format12: sedpol1 = \" + sedpol1);\n\n } else if (dataType == WATER) {\n\n //01 a2 format code always \"12\" n/a\n //02 a12 stnid station id: composed as for format 03 watphy\n //03 f10.3 iron µgm / litre watpol1\n //04 f9.3 chromium µgm / litre watpol1\n //05 f8.3 manganese µgm / litre watpol1\n //06 f8.3 cobalt µgm / litre watpol1\n //07 f8.3 selenium µgm / litre watpol1\n //08 f8.3 arsenic µgm / litre watpol1\n\n if (t.hasMoreTokens()) watphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) watpol1.setIron(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol1.setChromium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol1.setManganese(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol1.setCobalt(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol1.setSelenium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol1.setArsenic(toFloat(t.nextToken(), 1f));\n\n // station Id must match that of previous station record\n checkStationId(lineCount, watphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format12: watpol1 = \" + watpol1);\n\n } // if (dataType == SEDIMENT)\n\n }", "private AtualizarContaPreFaturadaHelper parserRegistroTipo2(String linha) {\r\n\t\tAtualizarContaPreFaturadaHelper retorno = new AtualizarContaPreFaturadaHelper();\r\n\r\n\t\tInteger index = 0;\r\n\r\n\t\t// Tipo de registro\r\n\t\tretorno.tipoRegistro = linha.substring(index, index + REGISTRO_TIPO);\r\n\t\tindex += REGISTRO_TIPO;\r\n\t\tSystem.out.println(\"Tipo de Retorno: \" + retorno.tipoRegistro);\r\n\r\n\t\t// Matricula do imovel\r\n\t\tretorno.matriculaImovel = linha.substring(index, index\r\n\t\t\t\t+ MATRICULA_IMOVEL);\r\n\t\tindex += MATRICULA_IMOVEL;\r\n\t\tSystem.out.println(\"Matricula do Imovel: \" + retorno.matriculaImovel);\r\n\r\n\t\t// Codigo da Categoria\r\n\t\tretorno.codigoCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CODIGO_CATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_2_CODIGO_CATEGORIA;\r\n\r\n\t\t// Codigo da Subcategoria\r\n\t\tretorno.codigoSubCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CODIGO_SUBCATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_2_CODIGO_SUBCATEGORIA;\r\n\r\n\t\t// Valor faturado agua\r\n\t\tretorno.valorFaturadoAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_FATURADO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_FATURADO_AGUA;\r\n\r\n\t\t// Consumo faturado de agua\r\n\t\tretorno.consumoFaturadoAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_FATURADO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_FATURADO_AGUA;\r\n\r\n\t\t// Valor tarifa minima de agua\r\n\t\tretorno.valorTarifaMinimaAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_AGUA;\r\n\r\n\t\t// Consumo Minimo de Agua\r\n\t\tretorno.consumoMinimoAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_MINIMO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_MINIMO_AGUA;\r\n\r\n\t\t// Valor faturado esgoto\r\n\t\tretorno.valorFaturadoEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_FATURADO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_FATURADO_ESGOTO;\r\n\r\n\t\t// Consumo faturado de esgoto\r\n\t\tretorno.consumoFaturadoEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_FATURADO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_FATURADO_ESGOTO;\r\n\r\n\t\t// Valor tarifa minima de esgoto\r\n\t\tretorno.valorTarifaMinimaEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_ESGOTO;\r\n\r\n\t\t// Consumo Minimo de esgoto\r\n\t\tretorno.consumoMinimoEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_MINIMO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_MINIMO_ESGOTO;\r\n\t\t\r\n\t\t// Consumo Minimo de esgoto \r\n\t\t/*\r\n\t\tretorno.subsidio = linha.substring(index + 2, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_SUBSIDIO_AGUA_PARA);\r\n\t\tindex += REGISTRO_TIPO_2_SUBSIDIO_AGUA_PARA;\r\n\t\t*/\r\n\t\treturn retorno;\r\n\t}", "public String HaToCa(double ha) {\n // ca = 10000*ha\n double ca = ha*10000;\n return check_after_decimal_point(ca);\n }", "int format04(String line, int lineCount) {\n\n // local variables\n String splDattim = \"\";\n String tmpStationId = \"\";\n\n // is this the first record in the file?\n checkFirstRecord(code, lineCount);\n\n // code 04 must be preceded by a code 03 or another code 04\n if ((prevCode != 3) && (prevCode != 4)) {\n outputError(lineCount + \" - Fatal - \" +\n \"Code 04 not preceded by code 03\");\n } // if (!\"03\".equals(prevCode))\n\n // get the data off the data line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n int subCode = 0;\n if (t.hasMoreTokens()) subCode = toInteger(t.nextToken());\n if (t.hasMoreTokens()) tmpStationId = toString(t.nextToken());\n // station Id must match that of previous station record\n checkStationId(lineCount, tmpStationId);\n\n switch (subCode) {\n\n //01 a2 format code always \"04\" n/a\n //02 a1 format subCode Always '1' n/a\n //03 a12 stnid station id: composed as for format 03 weather\n //04 a5 subdes substation descriptor e.g. CTD, XBT watphy\n //05 i6 spltim hhmmss UCT, e.g. 142134 watphy\n //06 f6.1 atmosph_pres in mBars weather\n //07 a5 cloud weather\n //08 f4.1 drybulb in deg C weather\n //09 f4.1 surface temp in deg C weather\n //10 a10 nav_equip_type weather\n case 1: if (t.hasMoreTokens())\n subdes = toString(t.nextToken().toUpperCase());\n switch (dataType) { // - moved to loadData\n case CURRENTS: currents.setSubdes(subdes); break;\n case SEDIMENT: sedphy.setSubdes(subdes); break;\n case WATER: watphy.setSubdes(subdes); break;\n case WATERWOD: watphy.setSubdes(subdes); break;\n } // switch (dataType)\n if (t.hasMoreTokens()) splDattim = toString(t.nextToken());\n if (t.hasMoreTokens())\n weather.setAtmosphPres(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) weather.setCloud(toString(t.nextToken()));\n if (t.hasMoreTokens()) weather.setDrybulb(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) weather.setSurfaceTmp(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) weather.setNavEquipType(toString(t.nextToken()));\n break;\n //01 a2 format code always '04' n/a\n //02 a1 format subCode Always '2' n/a\n //03 a12 stnid station id: composed as for format 03 weather\n //04 i3 swell dir in degrees TN weather\n //05 i2 swell height in m weather\n //06 i2 swell period in s weather\n //07 i2 transparency coded weather\n //08 a2 visibility code coded weather\n //09 i2 water colour coded weather\n //10 f4.1 wetbulb in deg C weather\n //11 i3 wind direction in degrees TN weather\n //12 f4.1 wind speed in m/s weather\n //13 a2 weather code weather\n case 2: if (t.hasMoreTokens()) weather.setSwellDir(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) weather.setSwellHeight(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) weather.setSwellPeriod(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) weather.setTransparency(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) weather.setVisCode(toString(t.nextToken()));\n if (t.hasMoreTokens()) weather.setWaterColor(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) weather.setWetbulb(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) weather.setWindDir(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) weather.setWindSpeed(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) weather.setWeatherCode(toString(t.nextToken()));\n break;\n } // switch (subCode)\n\n\n // time is on record with subCode = 1\n if ((subCode == 1) && !\"\".equals(splDattim)) {\n String seconds = \"00\";\n if (splDattim.length() == 6) {\n seconds = splDattim.substring(4);\n } // if (splDattim.length() == 6)\n startDateTime = startDate + \" \" + splDattim.substring(0,2) +\n \":\" + splDattim.substring(2,4) + \":\" + seconds + \".0\";\n if (dbg) System.out.println(\"<br>format04: startDateTime = \" + startDateTime);\n checkForValidDate(startDateTime);\n\n // convert to UTC?\n if (\"sast\".equals(timeZone)) {\n GregorianCalendar calDate = new GregorianCalendar();\n calDate.setTime(Timestamp.valueOf(startDateTime));\n calDate.add(Calendar.HOUR, -2);\n SimpleDateFormat formatter =\n new SimpleDateFormat (\"yyyy-MM-dd HH:mm:ss.s\");\n startDateTime = formatter.format(calDate.getTime());\n } // if ('sast'.equals(timeZone))\n if (dbg4) System.out.println(\"<br>format04: startDateTime = \" + startDateTime);\n //watphy.setSpldattim(startDateTime); //- moved to loadData\n switch (dataType) {\n case CURRENTS: currents.setSpldattim(startDateTime); break;\n case SEDIMENT: sedphy.setSpldattim(startDateTime); break;\n case WATER: watphy.setSpldattim(startDateTime); break;\n case WATERWOD: watphy.setSpldattim(startDateTime); break;\n } // switch (dataType)\n } // if ((subCode == 1) && !\"\".equals(splDattim))\n\n if (dbg) System.out.println(\"<br>format04: weather = \" + weather);\n if (dbg) {\n System.out.print(\"<br>format04: \");\n switch (dataType) {\n case CURRENTS: System.out.println(\"currents = \" + currents); break;\n case SEDIMENT: System.out.println(\"sedphy = \" + sedphy); break;\n case WATER: System.out.println(\"watphy = \" + watphy); break;\n case WATERWOD: System.out.println(\"watphy = \" + watphy); break;\n } // switch (dataType)\n } // if (dbg)\n\n return subCode;\n\n }", "java.lang.String getUa();", "public static void main(String[] args) {\n\n String text= \"merhaba arkadaslar \";\n System.out.println( \"1. bolum =\" + text .substring(1,5));// 1 nolu indexten 5 e kadar. 5 dahil degil\n System.out.println(\"2. bolum =\"+ text.substring(0,3));\n System.out.println(\"3. bolum =\"+ text.substring(4));// verilen indexten sonun akadar al\n\n String strAlinan= text.substring(0,3);\n\n\n\n\n\n }", "public BigInteger atas(){\n if(atas!=null)\n \n return atas.data;\n \n else {\n return null; \n }\n }", "public static Map<String, Object> getMap(String a0000,String tpid) throws Exception{\n\t ExportDataBuilder edb = new ExportDataBuilder();\n\t Map<String, Object> dataMap = new HashMap<String, Object>();\n\t if(tpid.equals(\"eebdefc2-4d67-4452-a973-5f7939530a11\")){\n\t \tdataMap = edb.getGbrmspbMap(a0000);\n\t }else if(tpid.equals(\"B73E508A87A44EF889430ABA451AC85C\")){\n\t \tdataMap = edb.getGbrmspbMap(a0000);\n\t }else if(tpid.equals(\"5d3cef0f0d8b430cb35b2ac2cb3bf927\")||tpid.equals(\"0f6e25ab-ee0a-4b23-b52d-7c6774dfc462\")){\n\t \tdataMap = edb.getGwydjbMap(a0000);\n\t }else if(tpid.equals(\"a43d8c50-400d-42fe-9e0d-5665ed0b0508\")){\n\t \tdataMap = edb.getNdkhdjb(a0000);\n\t }else if(tpid.equals(\"04f59673-9c3a-4d9c-b016-a5b789d636e2\")){\n\t \tdataMap = edb.getGwyjlspb(a0000);\n\t }else if(tpid.equals(\"3de527c0-ea23-42c4-a66f\")){\n\t \t//dataMap = edb.getGwylyspb(a0000);\n\t \tdataMap = edb.getGwylyb(a0000);\n\t }else if(tpid.equals(\"9e7e1226-6fa1-46a1-8270\")){\n\t \tdataMap = edb.getGwydrspb(a0000);\n\t }else if(tpid.equals(\"28bc4d39-dccd-4f07-8aa9\")){\n\t \tdataMap = edb.getGwyzjtgb(a0000);\n\t }\n\t\t\t/** 姓名 */\n\t\t\tString a0101 = (String) dataMap.get(\"a0101\");\n\t\t\t/** 民族 */\n\t\t\tString a0117 = (String) dataMap.get(\"a0117\");\n\t\t\t/** 籍贯 */\n\t\t\tString a0111a = (String) dataMap.get(\"a0111a\");\n\t\t\t/** 健康 */\n\t\t\tString a0128 = (String) dataMap.get(\"a0128\");\n\t\t\t/** 专业技术职务 */\n\t\t\tString a0196 = (String) dataMap.get(\"a0196\");\n\t\t\t/** 特长 */\n\t\t\tString a0187a = (String) dataMap.get(\"a0187a\");\n\t\t\t/** 身份证号码 */\n\t\t\tString a0184 = (String) dataMap.get(\"a0184\");\n\t\t\t//格式化时间参数\n\t\t\tString a0107 = (String)dataMap.get(\"a0107\");\n\t\t\tString a0134 = (String)dataMap.get(\"a0134\");\n\t\t\tString a1701 = (String)dataMap.get(\"a1701\");\n\t\t\tString a2949 = (String)dataMap.get(\"a2949\");\n\t\t\tString a0288 = (String) dataMap.get(\"a0288\");\n\t\t\tString a0192t = (String) dataMap.get(\"a0192t\");\n\t\t\t//格式化学历学位\n\t\t\tString qrzxl = (String)dataMap.get(\"qrzxl\");\n\t\t\tString qrzxw = (String)dataMap.get(\"qrzxw\");\n\t\t\tString zzxl = (String)dataMap.get(\"zzxl\");\n\t\t\tString zzxw = (String)dataMap.get(\"zzxw\");\n\t\t\tif(!StringUtil.isEmpty(qrzxl)&&!StringUtil.isEmpty(qrzxw)){\n\t\t\t\tString qrzxlxw = qrzxl+\"\\r\\n\"+qrzxw;\n\t\t\t\tdataMap.put(\"qrzxlxw\", qrzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(qrzxl)){\n\t\t\t\tString qrzxlxw = qrzxl;\n\t\t\t\tdataMap.put(\"qrzxlxw\", qrzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(qrzxw)){\n\t\t\t\tString qrzxlxw = qrzxw;\n\t\t\t\tdataMap.put(\"qrzxlxw\", qrzxlxw);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"qrzxlxw\", \"\");\n\t\t\t}\n\t\t\tif(!StringUtil.isEmpty(zzxl)&&!StringUtil.isEmpty(zzxw)){\n\t\t\t\tString zzxlxw = zzxl+\"\\r\\n\"+zzxw;\n\t\t\t\tdataMap.put(\"zzxlxw\", zzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(zzxl)){\n\t\t\t\tString zzxlxw = zzxl;\n\t\t\t\tdataMap.put(\"zzxlxw\", zzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(zzxw)){\n\t\t\t\tString zzxlxw = zzxw;\n\t\t\t\tdataMap.put(\"zzxlxw\", zzxlxw);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"zzxlxw\", \"\");\n\t\t\t}\n\t\t\t//格式化学校及院系\n\t\t\tString QRZXLXX = (String) dataMap.get(\"qrzxlxx\");\n\t\t\tString QRZXWXX = (String) dataMap.get(\"qrzxwxx\");\n\t\t\tString ZZXLXX = (String) dataMap.get(\"zzxlxx\");\n\t\t\tString ZZXWXX = (String) dataMap.get(\"zzxwxx\");\n\t\t\tif(!StringUtil.isEmpty(QRZXLXX)&&!StringUtil.isEmpty(QRZXWXX)&&!QRZXLXX.equals(QRZXWXX)){\n\t\t\t\tString qrzxlxx = QRZXLXX+\"\\r\\n\"+QRZXWXX;\n\t\t\t\tdataMap.put(\"qrzxlxx\", qrzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(QRZXLXX)){\n\t\t\t\tString qrzxlxx = QRZXLXX;\n\t\t\t\tdataMap.put(\"qrzxlxx\", qrzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(QRZXWXX)){\n\t\t\t\tString qrzxlxx = QRZXWXX;\n\t\t\t\tdataMap.put(\"qrzxlxx\", qrzxlxx);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"qrzxlxx\", \"\");\n\t\t\t}\n\t\t\tif(!StringUtil.isEmpty(ZZXLXX)&&!StringUtil.isEmpty(ZZXWXX)&&!ZZXLXX.equals(ZZXWXX)){\n\t\t\t\tString zzxlxx = ZZXLXX+\"\\r\\n\"+ZZXWXX;\n\t\t\t\tdataMap.put(\"zzxlxx\", zzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(ZZXLXX)){\n\t\t\t\tString zzxlxx = ZZXLXX;\n\t\t\t\tdataMap.put(\"zzxlxx\", zzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(ZZXWXX)){\n\t\t\t\tString zzxlxx = ZZXWXX;\n\t\t\t\tdataMap.put(\"zzxlxx\", zzxlxx);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"zzxlxx\", \"\");\n\t\t\t}\n\t\t\tif(a1701 != null){\n\t\t\t\t//简历格式化\n\t\t\t\tStringBuffer originaljl = new StringBuffer(\"\");\n\t\t\t\tString jianli = AddPersonPageModel.formatJL(a1701,originaljl);\n\t\t\t\ta1701 = jianli;\n\t\t\t\tdataMap.put(\"a1701\", a1701);\n\t\t\t}\n\t\t\tif(a0107 != null && !\"\".equals(a0107)){\n\t\t\t\ta0107 = a0107.substring(0,4)+\".\"+a0107.substring(4,6);\n\t\t\t\tdataMap.put(\"a0107\", a0107);\n\t\t\t}\n\t\t\tif(a0134 != null && !\"\".equals(a0134)){\n\t\t\t\ta0134 = a0134.substring(0,4)+\".\"+a0134.substring(4,6);\n\t\t\t\tdataMap.put(\"a0134\", a0134);\n\t\t\t}\n\t\t\tif(a2949 != null && !\"\".equals(a2949)){\n\t\t\t\ta2949 = a2949.substring(0,4)+\".\"+a2949.substring(4,6);\n\t\t\t\tdataMap.put(\"a2949\", a2949);\n\t\t\t}\n\t\t\tif(a0288 != null && !\"\".equals(a0288)){\n\t\t\t\ta0288 = a0288.substring(0,4)+\".\"+a0288.substring(4,6);\n\t\t\t\tdataMap.put(\"a0288\", a0288);\n\t\t\t}\n\t\t\tif(a0192t != null && !\"\".equals(a0192t)){\n\t\t\t\ta0192t = a0192t.substring(0,4)+\".\"+a0192t.substring(4,6);\n\t\t\t\tdataMap.put(\"a0192t\", a0192t);\n\t\t\t}\n\t\t\t//姓名2个字加空格\n/*\t\t\tif(a0101 != null){\n\t\t\t\tif(a0101.length() == 2){\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t int length = a0101.length();\n\t\t\t\t for (int i1 = 0; i1 < length; i1++) {\n\t\t\t\t if (length - i1 <= 2) { //防止ArrayIndexOutOfBoundsException\n\t\t\t\t sb.append(a0101.substring(i1, i1 + 1)).append(\" \");\n\t\t\t\t sb.append(a0101.substring(i1 + 1));\n\t\t\t\t break;\n\t\t\t\t }\n\t\t\t\t sb.append(a0101.substring(i1, i1 + 1)).append(\" \");\n\t\t\t\t }\n\t\t\t\t dataMap.put(\"a0101\", sb.toString());\n\t\t\t\t}\n\t\t\t}*/\n\t\t\t\n\t\t\tdataMap.put(\"a0101\" , Space(a0101) );\n\t\t\tdataMap.put(\"a0117\" , a0117);\n\t\t\tdataMap.put(\"a0111a\", Space(a0111a));\n\t\t\tdataMap.put(\"a0128\" , a0128);\n\t\t\tdataMap.put(\"a0196\" , a0196);\n\t\t\tdataMap.put(\"a0187a\", Space(a0187a));\n\t\t\t//System.out.println(dataMap);\n\t\t\t//现职务层次格式化\n\t\t\t\n\t\t\tString a0221 = (String)dataMap.get(\"a0221\");\n\t\t\tif(a0221 !=null){\n\t\t\t\tif(a0221.length()==5){\n\t\t\t\t\ta0221 = a0221.substring(0,3)+\"\\r\\n\"+a0221.substring(3);\n\t\t\t\t\tdataMap.put(\"a0221\", a0221);\n\t\t\t\t\tdataMap.put(\"a0148\", a0221);\n\t\t\t\t}\n\t\t\t}\n\t\t\tString a0192d = (String) dataMap.get(\"a0192d\");\n\t\t\tif(a0192d !=null){\n\t\t\t\tif(a0192d.length()>5){\n\t\t\t\t\ta0192d = a0192d.substring(0, 3)+\"\\r\\n\"+a0192d.substring(3);\n\t\t\t\t\tdataMap.put(\"a0192d\", a0192d);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//dataList.add(dataMap);\n\t return dataMap;\n\t\t}", "public int Masaid_Bul(String masa_adi) throws SQLException {\n baglanti vb = new baglanti();\r\n try {\r\n \r\n vb.baglan();\r\n int masaid = 0;\r\n String sorgu = \"select idmasalar from masalar where masa_adi='\" + masa_adi + \"';\";\r\n\r\n ps = vb.con.prepareStatement(sorgu);\r\n\r\n rs = ps.executeQuery(sorgu);\r\n while (rs.next()) {\r\n masaid = rs.getInt(1);\r\n }\r\n\r\n return masaid;\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, e);\r\n return 0;\r\n }\r\n finally{\r\n vb.con.close();\r\n }\r\n }", "public void hitunganRule1(){\n penebaranBibitSedikit = 1200;\r\n hariPanenSedang = 50;\r\n \r\n //menentukan niu\r\n nBibit = (1500 - penebaranBibitSedikit) / (1500 - 500);\r\n \r\n //menentukan niu hari panen sedang\r\n if ((hariPanenSedang >=40) && (hariPanenSedang <=80)) {\r\n nPanen = (hariPanenSedang - 40) / (80 - 40);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a1 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a1 = nPanen;\r\n }\r\n \r\n //tentukan Z1\r\n z1 = (penebaranBibitSedikit + hariPanenSedang) * 700;\r\n System.out.println(\"a1 = \" + String.valueOf(a1));\r\n System.out.println(\"z1 = \" + String.valueOf(z1));\r\n }", "public String formatForAmericanModel(Date data){\n //definido modelo americano\n DateFormat formatBR = new SimpleDateFormat(\"yyyy-MM-dd\");\n return formatBR.format(data);\n \n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static void obtenerNombreAsignatura(int codAsignatura) {\n\t\tfinal AppMediador appMediador = AppMediador.getInstance();\n\t\t// busca en la tabla matriculados todos los que tienen un identificador\n\t\t// de asignatura dado\n\t\t@SuppressWarnings(\"rawtypes\")\n\t\tParseQuery query = new ParseQuery(nombreTabla);\n\t\tquery.whereEqualTo(CAMPO_CODIGO, codAsignatura);\n\t\tquery.findInBackground(new FindCallback<ParseObject>() {\n\n\t\t\t@Override\n\t\t\tpublic void done(List<ParseObject> registros, ParseException e) {\n\n\t\t\t\tif (e == null) {\n\t\t\t\t\t// Solo devolverá un unico registro ya que solo puede\n\t\t\t\t\t// existir una asignatura con un mismo codigo\n\n\t\t\t\t\tint i = 0;\n\t\t\t\t\tDatosAsignatura datos = new DatosAsignatura(registros\n\t\t\t\t\t\t\t.get(0).getNumber(CAMPO_CODIGO).intValue(),\n\t\t\t\t\t\t\tregistros.get(i).getString(CAMPO_NOMBRE), registros\n\t\t\t\t\t\t\t\t\t.get(0).getNumber(CAMPO_CURSO).intValue(),\n\t\t\t\t\t\t\tregistros.get(0).getNumber(CAMPO_CUATRIMESTRE)\n\t\t\t\t\t\t\t\t\t.intValue(), registros.get(i).getString(\n\t\t\t\t\t\t\t\t\tCAMPO_CARRERA));\n\t\t\t\t\tBundle extras = new Bundle();\n\t\t\t\t\textras.putSerializable(AppMediador.DATOS_ASIGNATURA, datos);\n\t\t\t\t\tappMediador.sendBroadcast(AppMediador.AVISO_ASIGNATURAS,\n\t\t\t\t\t\t\textras);\n\t\t\t\t} else {\n\t\t\t\t\tappMediador.sendBroadcast(AppMediador.AVISO_ASIGNATURAS,\n\t\t\t\t\t\t\tnull);\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t}", "public int aa() {\n return this.am * 121064660;\n }", "private void createAA() {\r\n\r\n\t\tfor( int x = 0 ; x < dnasequence.size(); x++) {\r\n\t\t\tString str = dnasequence.get(x);\r\n\t\t\t//put catch for missing 3rd letter\r\n\t\t\tif(str.substring(0, 1).equals(\"G\")) {\r\n\t\t\t\taasequence.add(getG(str));\r\n\t\t\r\n\t\t\t}else if(str.substring(0, 1).equals(\"C\")) {\r\n\t\t\t\taasequence.add(getC(str));\r\n\t\t\t\t\r\n\t\t\t}else if(str.substring(0, 1).equals(\"A\")) {\r\n\t\t\t\taasequence.add(getA(str));\r\n\t\t\t\t\r\n\t\t\t}else if(str.substring(0, 1).equals(\"T\")) {\r\n\t\t\t\taasequence.add(getT(str));\r\n\t\t\t\t\r\n\t\t\t}else if(str.substring(0,1).equals(\"N\")) {\r\n\t\t\t\taasequence.add(\"ERROR\");\r\n\t\t\t}else\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t}\r\n\t}", "public static String converterddmmaaaaParaaaammdd(String data) {\n String[] aux = data.trim().split(\"/\");\n String dia = aux[0].length() < 2 ? \"0\" + aux[0] : aux[0];\n String mes = aux[1].length() < 2 ? \"0\" + aux[1] : aux[1];\n return aux[2] + mes + dia;\n }", "public static String converterddmmaaaaParaaaammdd(String data) {\n String[] aux = data.trim().split(\"/\");\n String dia = aux[0].length() < 2 ? \"0\" + aux[0] : aux[0];\n String mes = aux[1].length() < 2 ? \"0\" + aux[1] : aux[1];\n return aux[2] + mes + dia;\n }", "public void hitunganRule4(){\n penebaranBibitBanyak = 1900;\r\n hariPanenLama = 110;\r\n \r\n //menentukan niu bibit\r\n nBibit = (penebaranBibitBanyak - 1500) / (3000 - 1500);\r\n \r\n //menentukan niu hari panen sedang\r\n if ((hariPanenLama >=80) && (hariPanenLama <=120)) {\r\n nPanen = (hariPanenLama - 100) / (180 - 100);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a4 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a4 = nPanen;\r\n }\r\n \r\n //tentukan Z3\r\n z4 = (penebaranBibitBanyak + hariPanenLama) * 500;\r\n System.out.println(\"a4 = \" + String.valueOf(a4));\r\n System.out.println(\"z4 = \" + String.valueOf(z4));\r\n }", "String getAnnoPubblicazione();", "public java.lang.String getAsapcata() {\n return asapcata;\n }", "public String mo75191a(Bundle bundle) {\n AppMethodBeat.m2504i(65564);\n r1 = new Object[12];\n r1[7] = \"QUE:\" + bundle.getInt(TXLiveConstants.NET_STATUS_CODEC_CACHE) + \" | \" + bundle.getInt(TXLiveConstants.NET_STATUS_CACHE_SIZE) + \",\" + bundle.getInt(TXLiveConstants.NET_STATUS_VIDEO_CACHE_SIZE) + \",\" + bundle.getInt(TXLiveConstants.NET_STATUS_V_DEC_CACHE_SIZE) + \" | \" + bundle.getInt(TXLiveConstants.NET_STATUS_AV_RECV_INTERVAL) + \",\" + bundle.getInt(TXLiveConstants.NET_STATUS_AV_PLAY_INTERVAL) + \",\" + String.format(\"%.1f\", new Object[]{Float.valueOf(bundle.getFloat(TXLiveConstants.NET_STATUS_AUDIO_PLAY_SPEED))}).toString();\n r1[8] = \"VRA:\" + bundle.getInt(TXLiveConstants.NET_STATUS_VIDEO_BITRATE) + \"Kbps\";\n r1[9] = \"DRP:\" + bundle.getInt(TXLiveConstants.NET_STATUS_CODEC_DROP_CNT) + \"|\" + bundle.getInt(TXLiveConstants.NET_STATUS_DROP_SIZE);\n r1[10] = \"SVR:\" + bundle.getString(TXLiveConstants.NET_STATUS_SERVER_IP);\n r1[11] = \"AUDIO:\" + bundle.getString(TXLiveConstants.NET_STATUS_AUDIO_INFO);\n String format = String.format(\"%-16s %-16s %-16s\\n%-12s %-12s %-12s %-12s\\n%-14s %-14s %-14s\\n%-16s %-16s\", r1);\n AppMethodBeat.m2505o(65564);\n return format;\n }", "void format08(String line, int lineCount) {\n\n // is this the first record in the file?\n checkFirstRecord(code, lineCount);\n\n // get the data off the line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n\n int subCode = 0;\n if (dataType == WATERWOD) {\n if (t.hasMoreTokens()) subCode = toInteger(t.nextToken());\n switch (subCode) {\n case 1: if (t.hasMoreTokens()) watProfQC.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) t.nextToken(); // is no profile kjn quality flag\n if (t.hasMoreTokens()) t.nextToken(); // is no profile nh3 quality flag\n if (t.hasMoreTokens()) t.nextToken(); // is no profile oxa quality flag\n if (t.hasMoreTokens()) //set profile ph quality flag\n watProfQC.setPh((toInteger(t.nextToken())));\n break;\n } // switch (subCode)\n } // if (dataType = WATERWOD)\n\n // there can only be one code 08 record per substation\n if (subCode != 1) code08Count++;\n if (code08Count > 1) {\n outputError(lineCount + \" - Fatal - \" +\n \"More than 1 code 08 record in substation\");\n } // if (code08Count > 1)\n\n //01 a2 format code always \"08\" n/a\n //02 a12 stnid station id: composed as for format 03 watphy\n //03 f7.2 kjn µgm atom / litre = µM watchem1\n //04 f6.2 nh3 µgm atom / litre = µM watchem1\n //05 f7.3 oxa mgm / litre watchem1\n //07 f5.2 ph watchem1\n\n // subCode = 1 - ignore\n // subCode = 0 (WATER) or subCode = 2 (WATERWOD)\n if (subCode != 1) {\n if (t.hasMoreTokens()) watphy.setStationId(toString(t.nextToken()));\n\n if (t.hasMoreTokens()) watchem1.setKjn(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) t.nextToken(); // is no profile kjn quality flag\n\n if (t.hasMoreTokens()) watchem1.setNh3(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) t.nextToken(); // is no profile nh3 quality flag\n\n if (t.hasMoreTokens()) watchem1.setOxa(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) t.nextToken(); // is no profile oxa quality flag\n\n if (t.hasMoreTokens()) watchem1.setPh(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set ph quality flag\n watQC.setPh((toInteger(t.nextToken())));\n } // if (subCode != 1)\n\n // station Id must match that of previous station record\n checkStationId(lineCount, watphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format08: watchem1 = \" + watchem1);\n\n }", "Aluno(String dataNascimento) {\n this.dataNascimento = dataNascimento;\n }", "public final void mo75263ad() {\n String str;\n super.mo75263ad();\n if (C25352e.m83313X(this.f77546j)) {\n if (C6399b.m19944t()) {\n if (!C6776h.m20948b(mo75261ab(), C25352e.m83305P(this.f77546j)) && C25371n.m83443a(mo75261ab())) {\n C25371n.m83471b(mo75261ab(), C25352e.m83305P(this.f77546j));\n }\n } else if (!DownloaderManagerHolder.m75524a().mo51673b(C25352e.m83241x(this.f77546j))) {\n C19535g a = DownloaderManagerHolder.m75524a();\n String x = C25352e.m83241x(this.f77546j);\n Aweme aweme = this.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n AwemeRawAd awemeRawAd = aweme.getAwemeRawAd();\n if (awemeRawAd == null) {\n C7573i.m23580a();\n }\n C7573i.m23582a((Object) awemeRawAd, \"mAweme.awemeRawAd!!\");\n Long adId = awemeRawAd.getAdId();\n C7573i.m23582a((Object) adId, \"mAweme.awemeRawAd!!.adId\");\n long longValue = adId.longValue();\n Aweme aweme2 = this.f77546j;\n C7573i.m23582a((Object) aweme2, \"mAweme\");\n C19386b a2 = C22943b.m75512a(\"result_ad\", aweme2.getAwemeRawAd(), false);\n Aweme aweme3 = this.f77546j;\n C7573i.m23582a((Object) aweme3, \"mAweme\");\n AwemeRawAd awemeRawAd2 = aweme3.getAwemeRawAd();\n if (awemeRawAd2 == null) {\n C7573i.m23580a();\n }\n a.mo51670a(x, longValue, 2, a2, C22942a.m75508a(awemeRawAd2));\n }\n }\n m110463ax();\n if (!C25352e.m83313X(this.f77546j) || C6776h.m20948b(mo75261ab(), C25352e.m83305P(this.f77546j)) || DownloaderManagerHolder.m75524a().mo51673b(C25352e.m83241x(this.f77546j))) {\n C24961b b = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"click\");\n if (C25352e.m83313X(this.f77546j)) {\n str = \"download_button\";\n } else {\n str = \"more_button\";\n }\n b.mo65283e(str).mo65270a(mo75261ab());\n }\n }", "void mo24178a(ResultData resultdata);", "public Integer[] abilitaAzioneSpecifica(TipoAzione tipoAzione){\n\n Integer[] celleDisattivate=null;\n if(tipoAzione == TipoAzione.TORRE_EDIFICIO) celleDisattivate = mantieniAbilitati(5, 8);\n else if(tipoAzione == TipoAzione.TORRE_TERRITORIO) celleDisattivate =mantieniAbilitati(1, 4);\n else if(tipoAzione == TipoAzione.TORRE_IMPRESA) celleDisattivate =mantieniAbilitati(13, 16);\n else if(tipoAzione == TipoAzione.TORRE_PERSONAGGIO) celleDisattivate =mantieniAbilitati(9, 12);\n else if(tipoAzione == TipoAzione.TORRE) celleDisattivate =mantieniAbilitati(1, 16);\n else if(tipoAzione == TipoAzione.PRODUZIONE) celleDisattivate =mantieniAbilitati(17, 18);\n else if(tipoAzione == TipoAzione.RACCOLTO) celleDisattivate =mantieniAbilitati(19, 20);\n return celleDisattivate;\n\n }", "public static Map<String, Object> getMap(String a0000,String tpid, String js0122) throws Exception{\n\t ExportDataBuilder edb = new ExportDataBuilder();\n\t Map<String, Object> dataMap = new HashMap<String, Object>();\n\t if(tpid.equals(\"eebdefc2-4d67-4452-a973-5f7939530a11\")){\n\t \tdataMap = edb.getGbrmspbMap(a0000, js0122);\n\t }else if(tpid.equals(\"5d3cef0f0d8b430cb35b2ac2cb3bf927\")||tpid.equals(\"0f6e25ab-ee0a-4b23-b52d-7c6774dfc462\")){\n\t \tdataMap = edb.getGwydjbMap(a0000);\n\t }else if(tpid.equals(\"a43d8c50-400d-42fe-9e0d-5665ed0b0508\")){\n\t \tdataMap = edb.getNdkhdjb(a0000);\n\t }else if(tpid.equals(\"04f59673-9c3a-4d9c-b016-a5b789d636e2\")){\n\t \tdataMap = edb.getGwyjlspb(a0000);\n\t }else if(tpid.equals(\"3de527c0-ea23-42c4-a66f\")){\n\t \t//dataMap = edb.getGwylyspb(a0000);\n\t \tdataMap = edb.getGwylyb(a0000);\n\t }else if(tpid.equals(\"9e7e1226-6fa1-46a1-8270\")){\n\t \tdataMap = edb.getGwydrspb(a0000);\n\t }else if(tpid.equals(\"28bc4d39-dccd-4f07-8aa9\")){\n\t \tdataMap = edb.getGwyzjtgb(a0000);\n\t }\n\t\t\t/** 姓名 */\n\t\t\tString a0101 = (String) dataMap.get(\"a0101\");\n\t\t\t/** 民族 */\n\t\t\tString a0117 = (String) dataMap.get(\"a0117\");\n\t\t\t/** 籍贯 */\n\t\t\tString a0111a = (String) dataMap.get(\"a0111a\");\n\t\t\t/** 健康 */\n\t\t\tString a0128 = (String) dataMap.get(\"a0128\");\n\t\t\t/** 专业技术职务 */\n\t\t\tString a0196 = (String) dataMap.get(\"a0196\");\n\t\t\t/** 特长 */\n\t\t\tString a0187a = (String) dataMap.get(\"a0187a\");\n\t\t\t/** 身份证号码 */\n\t\t\tString a0184 = (String) dataMap.get(\"a0184\");\n\t\t\t//格式化时间参数\n\t\t\tString a0107 = (String)dataMap.get(\"a0107\");\n\t\t\tString a0134 = (String)dataMap.get(\"a0134\");\n\t\t\tString a1701 = (String)dataMap.get(\"a1701\");\n\t\t\tString a2949 = (String)dataMap.get(\"a2949\");\n\t\t\tString a0288 = (String) dataMap.get(\"a0288\");\n\t\t\tString a0192t = (String) dataMap.get(\"a0192t\");\n\t\t\t//格式化学历学位\n\t\t\tString qrzxl = (String)dataMap.get(\"qrzxl\");\n\t\t\tString qrzxw = (String)dataMap.get(\"qrzxw\");\n\t\t\tString zzxl = (String)dataMap.get(\"zzxl\");\n\t\t\tString zzxw = (String)dataMap.get(\"zzxw\");\n\t\t\tif(!StringUtil.isEmpty(qrzxl)&&!StringUtil.isEmpty(qrzxw)){\n\t\t\t\tString qrzxlxw = qrzxl+\"\\r\\n\"+qrzxw;\n\t\t\t\tdataMap.put(\"qrzxlxw\", qrzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(qrzxl)){\n\t\t\t\tString qrzxlxw = qrzxl;\n\t\t\t\tdataMap.put(\"qrzxlxw\", qrzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(qrzxw)){\n\t\t\t\tString qrzxlxw = qrzxw;\n\t\t\t\tdataMap.put(\"qrzxlxw\", qrzxlxw);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"qrzxlxw\", \"\");\n\t\t\t}\n\t\t\tif(!StringUtil.isEmpty(zzxl)&&!StringUtil.isEmpty(zzxw)){\n\t\t\t\tString zzxlxw = zzxl+\"\\r\\n\"+zzxw;\n\t\t\t\tdataMap.put(\"zzxlxw\", zzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(zzxl)){\n\t\t\t\tString zzxlxw = zzxl;\n\t\t\t\tdataMap.put(\"zzxlxw\", zzxlxw);\n\t\t\t}else if(!StringUtil.isEmpty(zzxw)){\n\t\t\t\tString zzxlxw = zzxw;\n\t\t\t\tdataMap.put(\"zzxlxw\", zzxlxw);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"zzxlxw\", \"\");\n\t\t\t}\n\t\t\t//格式化学校及院系\n\t\t\tString QRZXLXX = (String) dataMap.get(\"qrzxlxx\");\n\t\t\tString QRZXWXX = (String) dataMap.get(\"qrzxwxx\");\n\t\t\tString ZZXLXX = (String) dataMap.get(\"zzxlxx\");\n\t\t\tString ZZXWXX = (String) dataMap.get(\"zzxwxx\");\n\t\t\tif(!StringUtil.isEmpty(QRZXLXX)&&!StringUtil.isEmpty(QRZXWXX)&&!QRZXLXX.equals(QRZXWXX)){\n\t\t\t\tString qrzxlxx = QRZXLXX+\"\\r\\n\"+QRZXWXX;\n\t\t\t\tdataMap.put(\"qrzxlxx\", qrzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(QRZXLXX)){\n\t\t\t\tString qrzxlxx = QRZXLXX;\n\t\t\t\tdataMap.put(\"qrzxlxx\", qrzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(QRZXWXX)){\n\t\t\t\tString qrzxlxx = QRZXWXX;\n\t\t\t\tdataMap.put(\"qrzxlxx\", qrzxlxx);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"qrzxlxx\", \"\");\n\t\t\t}\n\t\t\tif(!StringUtil.isEmpty(ZZXLXX)&&!StringUtil.isEmpty(ZZXWXX)&&!ZZXLXX.equals(ZZXWXX)){\n\t\t\t\tString zzxlxx = ZZXLXX+\"\\r\\n\"+ZZXWXX;\n\t\t\t\tdataMap.put(\"zzxlxx\", zzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(ZZXLXX)){\n\t\t\t\tString zzxlxx = ZZXLXX;\n\t\t\t\tdataMap.put(\"zzxlxx\", zzxlxx);\n\t\t\t}else if(!StringUtil.isEmpty(ZZXWXX)){\n\t\t\t\tString zzxlxx = ZZXWXX;\n\t\t\t\tdataMap.put(\"zzxlxx\", zzxlxx);\n\t\t\t}else{\n\t\t\t\tdataMap.put(\"zzxlxx\", \"\");\n\t\t\t}\n\t\t\tif(a1701 != null){\n\t\t\t\t//简历格式化\n\t\t\t\tStringBuffer originaljl = new StringBuffer(\"\");\n\t\t\t\tString jianli = AddPersonPageModel.formatJL(a1701,originaljl);\n\t\t\t\ta1701 = jianli;\n\t\t\t\tdataMap.put(\"a1701\", a1701);\n\t\t\t}\n\t\t\tif(a0107 != null && !\"\".equals(a0107)){\n\t\t\t\ta0107 = a0107.substring(0,4)+\".\"+a0107.substring(4,6);\n\t\t\t\tdataMap.put(\"a0107\", a0107);\n\t\t\t}\n\t\t\tif(a0134 != null && !\"\".equals(a0134)){\n\t\t\t\ta0134 = a0134.substring(0,4)+\".\"+a0134.substring(4,6);\n\t\t\t\tdataMap.put(\"a0134\", a0134);\n\t\t\t}\n\t\t\tif(a2949 != null && !\"\".equals(a2949)){\n\t\t\t\ta2949 = a2949.substring(0,4)+\".\"+a2949.substring(4,6);\n\t\t\t\tdataMap.put(\"a2949\", a2949);\n\t\t\t}\n\t\t\tif(a0288 != null && !\"\".equals(a0288)){\n\t\t\t\ta0288 = a0288.substring(0,4)+\".\"+a0288.substring(4,6);\n\t\t\t\tdataMap.put(\"a0288\", a0288);\n\t\t\t}\n\t\t\tif(a0192t != null && !\"\".equals(a0192t)){\n\t\t\t\ta0192t = a0192t.substring(0,4)+\".\"+a0192t.substring(4,6);\n\t\t\t\tdataMap.put(\"a0192t\", a0192t);\n\t\t\t}\n\t\t\t//姓名2个字加空格\n/*\t\t\tif(a0101 != null){\n\t\t\t\tif(a0101.length() == 2){\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t int length = a0101.length();\n\t\t\t\t for (int i1 = 0; i1 < length; i1++) {\n\t\t\t\t if (length - i1 <= 2) { //防止ArrayIndexOutOfBoundsException\n\t\t\t\t sb.append(a0101.substring(i1, i1 + 1)).append(\" \");\n\t\t\t\t sb.append(a0101.substring(i1 + 1));\n\t\t\t\t break;\n\t\t\t\t }\n\t\t\t\t sb.append(a0101.substring(i1, i1 + 1)).append(\" \");\n\t\t\t\t }\n\t\t\t\t dataMap.put(\"a0101\", sb.toString());\n\t\t\t\t}\n\t\t\t}*/\n\t\t\t\n\t\t\tdataMap.put(\"a0101\" , Space(a0101) );\n\t\t\tdataMap.put(\"a0117\" , Space(a0117) );\n\t\t\tdataMap.put(\"a0111a\", Space(a0111a));\n\t\t\tdataMap.put(\"a0128\" , Space(a0128) );\n\t\t\tdataMap.put(\"a0196\" , Space(a0196) );\n\t\t\tdataMap.put(\"a0187a\", Space(a0187a));\n\t\t\t//System.out.println(dataMap);\n\t\t\t//现职务层次格式化\n\t\t\t\n\t\t\tString a0221 = (String)dataMap.get(\"a0221\");\n\t\t\tif(a0221 !=null){\n\t\t\t\tif(a0221.length()==5){\n\t\t\t\t\ta0221 = a0221.substring(0,3)+\"\\r\\n\"+a0221.substring(3);\n\t\t\t\t\tdataMap.put(\"a0221\", a0221);\n\t\t\t\t\tdataMap.put(\"a0148\", a0221);\n\t\t\t\t}\n\t\t\t}\n\t\t\tString a0192d = (String) dataMap.get(\"a0192d\");\n\t\t\tif(a0192d !=null){\n\t\t\t\tif(a0192d.length()>5){\n\t\t\t\t\ta0192d = a0192d.substring(0, 3)+\"\\r\\n\"+a0192d.substring(3);\n\t\t\t\t\tdataMap.put(\"a0192d\", a0192d);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//dataList.add(dataMap);\n\t return dataMap;\n\t\t}", "public static String formatarDataSemBarra(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public final /* synthetic */ aza mo39939d(aza aza) throws GeneralSecurityException {\n return (aug) ((axu) aug.m47299a().mo40048a(0).mo40049a(zzcce.zzy(avp.m47382a(32))).mo40293e());\n }", "void format13(String line, int lineCount) {\n\n // is this the first record in the file?\n checkFirstRecord(code, lineCount);\n\n // there can only be one code 13 record per substation\n code13Count++;\n if (code13Count > 1) {\n outputError(lineCount + \" - Fatal - \" +\n \"More than 1 code 13 record in substation\");\n } // if (code13Count > 1)\n\n // get the data off the line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n\n if (dataType == SEDIMENT) {\n\n //01 a2 format code always \"13\" n/a\n //02 a12 stnid station id: composed as for format 03 sedphy\n //03 i5 aluminium µgm / gram sedpol2\n //04 f8.3 antimony µgm / gram sedpol2\n //05 f4.1 bismuth µgm / gram sedpol2\n //06 f4.1 molybdenum µgm / gram sedpol2\n //07 f8.3 silver µgm / gram sedpol2\n //08 i4 titanium µgm / gram sedpol2\n //09 f5.2 vanadium µgm / gram sedpol2\n\n if (t.hasMoreTokens()) sedphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) sedpol2.setAluminium(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) sedpol2.setAntimony(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol2.setBismuth(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol2.setMolybdenum(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol2.setSilver(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol2.setTitanium(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) sedpol2.setVanadium(toFloat(t.nextToken(), 1f));\n\n // station Id must match that of previous station record\n checkStationId(lineCount, sedphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format13: sedpol2 = \" + sedpol2);\n\n } else if (dataType == WATER) {\n\n //01 a2 format code always \"13\" n/a\n //02 a12 stnid station id: composed as for format 03 watphy\n //03 i5 aluminium µgm / litre watpol2\n //04 f8.3 antimony µgm / litre watpol2\n //05 f4.1 bismuth µgm / litre watpol2\n //06 f4.1 molybdenum µgm / litre watpol2\n //07 f8.3 silver µgm / litre watpol2\n //08 i4 titanium µgm / litre watpol2\n //08 f5.2 vanadium µgm / litre watpol2\n\n if (t.hasMoreTokens()) watphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) watpol2.setAluminium(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) watpol2.setAntimony(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol2.setBismuth(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol2.setMolybdenum(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol2.setSilver(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol2.setTitanium(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) watpol2.setVanadium(toFloat(t.nextToken(), 1f));\n\n // station Id must match that of previous station record\n checkStationId(lineCount, watphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format13: watpol2 = \" + watpol2);\n\n } // if (dataType == SEDIMENT)\n\n }", "String getATCUD();", "public String generarEstadisticasPorFacultad(String cualFacultad) {\n \n int contadorAlta = 0;\n String pAltaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadAlta.size(); i++) {\n if(EmpleadosPrioridadAlta.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorAlta += 1;\n pAltaEmpl += \"nombre: \" + EmpleadosPrioridadAlta.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadAlta.get(i).getIdentificacion() + \"\\n\";\n \n }\n }\n String pAlta = \"Se encuentran \" + contadorAlta + \" Empleados en condicion Alta\\n\";\n if(EmpleadosPrioridadAlta.isEmpty() == false){\n pAlta += \"los cuales son:\\n\" + pAltaEmpl;\n }\n \n int contadorMAlta = 0;\n String pMAltaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadMediaAlta.size(); i++) {\n if(EmpleadosPrioridadMediaAlta.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorMAlta += 1;\n pMAltaEmpl += \"nombre: \" + EmpleadosPrioridadMediaAlta.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadMediaAlta.get(i).getIdentificacion() + \"\\n\";\n \n }\n }\n String pMAlta = \"Se encuentran \" + contadorMAlta + \" Empleados en condicion Media Alta\\n\";\n if(EmpleadosPrioridadMediaAlta.isEmpty() == false){\n pMAlta += \"los cuales son:\\n\" + pMAltaEmpl;\n }\n \n int contadorMedia = 0;\n String pMediaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadMedia.size(); i++) {\n if(EmpleadosPrioridadMedia.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorMedia += 1;\n pMediaEmpl += \"nombre: \" + EmpleadosPrioridadMedia.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadMedia.get(i).getIdentificacion() + \"\\n\";\n \n }\n }\n String pMedia = \"Se encuentran \" + contadorMedia + \" Empleados en condicion Media\\n\";\n if(EmpleadosPrioridadMedia.isEmpty() == false){\n pMedia += \"los cuales son:\\n\" + pMediaEmpl;\n }\n \n int contadorBaja = 0;\n String pBajaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadBaja.size(); i++) {\n if(EmpleadosPrioridadBaja.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorBaja += 1;\n pBajaEmpl += \"nombre: \" + EmpleadosPrioridadBaja.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadBaja.get(i).getIdentificacion() + \"\\n\";\n }\n }\n String pBaja = \"Se encuentran \" + contadorBaja + \" Empleados en condicion Baja\\n\" ;\n if(EmpleadosPrioridadBaja.isEmpty() == false){\n pBaja += \"los cuales son:\\n\" + pBajaEmpl;\n }\n \n return \"En la facultad \" + cualFacultad + \" de la universidad del valle: \\n\"\n + pAlta + pMAlta + pMedia + pBaja;\n }", "public static CheckResult extractStats4ALI(String line) {\n String[] splits = SEMI.split(line);\n if(splits!=null && splits.length>41) {\n Double sales = splits[22].equals(\"\")?Double.valueOf(\"0.00\"):Double.valueOf(splits[22]);\n\n return new CheckResult(1,sales,\"ALI\");\n }\n return new CheckResult(1,0.00,null);\n }", "private static CartelleAvvisiResponseType getBPSCartelleResponse( Fascicolo fascicolo) throws Exception {\n\t\t\r\n\t\tCartellaAvvisiRequestType bpCartelleRequest = new CartellaAvvisiRequestType(); \r\n\t\tbpCartelleRequest.setTipologiaRichiesta(MessagesClass.getMessage(\"TIPOLOGIA_DOCUMENTI_TUTTI\").trim()) ;\t \r\n\t\tbpCartelleRequest.setCodiceFiscale(fascicolo.getAnagrafica().getCodiceFiscale().trim());\r\n\t\t//il tipo documento (cartella od avviso), viene lasciato vuoto in modo da caricare entrambe le tipologie\r\n\t\t//bpCartelleRequest.setTipoDocumento(null); \r\n\t\t\r\n\t\t//inizio modifiche Agosto\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\"); \r\n\t\tDate dataAttuale = new Date(); \r\n\t\tlogger.debug(dateFormat.format(dataAttuale)); \r\n\t\tbpCartelleRequest.setDataRichiesta(dataAttuale );\r\n\t\t//fine modifiche Agosto\r\n\t\t\r\n\t\treturn getBPSCartelleResponse(bpCartelleRequest);\r\n\t}", "void mo5872a(String str, Data data);", "public String getAKA100() {\n return AKA100;\n }", "private final void m110453aA() {\n if (this.f77530as && !m110454aB()) {\n if (!m110456aD()) {\n this.f89226e = false;\n } else if (!this.f89226e) {\n this.f89226e = true;\n C24958f.m81905a().mo65266a(\"result_ad\").mo65276b(\"show\").mo65273b(this.f77546j).mo65283e(\"video\").mo65270a(mo75261ab());\n Aweme aweme = this.f77546j;\n if (aweme != null) {\n AwemeRawAd awemeRawAd = aweme.getAwemeRawAd();\n if (awemeRawAd != null) {\n C7573i.m23582a((Object) awemeRawAd, \"it\");\n m110468c(awemeRawAd, null);\n }\n }\n }\n }\n }", "public void eisagwgiAstheni() {\n\t\t// Elegxw o arithmos twn asthenwn na mhn ypervei ton megisto dynato\n\t\tif(numOfPatient < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tpatient[numOfPatient] = new Asthenis();\n\t\t\tpatient[numOfPatient].setFname(sir.readString(\"DWSTE TO ONOMA TOU ASTHENH: \")); // Pairnei to onoma tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU ASTHENH: \")); // Pairnei to epitheto tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setAMKA(rnd.nextInt(1000000)); // To sistima dinei automata ton amka tou asthenous\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t//Elegxos monadikotitas tou amka tou astheni\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tif(patient[i].getAMKA() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfPatient++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS ASTHENEIS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "void format11(String line, int lineCount) {\n\n // is this the first record in the file?\n checkFirstRecord(code, lineCount);\n\n // there can only be one code 11 record per substation\n code11Count++;\n if (code11Count > 1) {\n outputError(lineCount + \" - Fatal - \" +\n \"More than 1 code 11 record in substation\");\n } // if (code11Count > 1)\n\n // get the data off the line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n\n if (dataType == SEDIMENT) {\n\n //01 a2 format code always \"11\" n/a\n //02 a12 stnid station id: composed as for format 03 sedphy\n //03 f7.3 cadmium µgm / gram sedpol1\n //04 f8.3 lead µgm / gram sedpol1\n //05 f8.3 copper µgm / gram sedpol1\n //06 f8.3 zinc µgm / gram sedpol1\n //07 f8.4 mercury µgm / gram sedpol1\n //08 f8.3 nickel µgm / gram sedpol1\n\n if (t.hasMoreTokens()) sedphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) sedpol1.setCadmium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol1.setLead(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol1.setCopper(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol1.setZinc(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol1.setMercury(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedpol1.setNickel(toFloat(t.nextToken(), 1f));\n\n // station Id must match that of previous station record\n checkStationId(lineCount, sedphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format11: sedpol1 = \" + sedpol1);\n\n } else if (dataType == WATER) {\n\n //01 a2 format code always \"11\" n/a\n //02 a12 stnid station id: composed as for format 03 watphy\n //03 f7.3 cadmium µgm / litre watpol1\n //04 f8.3 lead µgm / litre watpol1\n //05 f8.3 copper µgm / litre watpol1\n //06 f8.3 zinc µgm / litre watpol1\n //07 f8.4 mercury µgm / litre watpol1\n //08 f8.3 nickel µgm / litre watpol1\n\n if (t.hasMoreTokens()) watphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) watpol1.setCadmium(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol1.setLead(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol1.setCopper(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol1.setZinc(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol1.setMercury(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watpol1.setNickel(toFloat(t.nextToken(), 1f));\n\n // station Id must match that of previous station record\n checkStationId(lineCount, watphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format11: watpol1 = \" + watpol1);\n\n } // if (dataType == SEDIMENT)\n\n }", "public java.lang.String getHora_hasta();", "public static void main(String[] args) {\n Pasien Dam = new Pasien(\"Puspaningsyas\");\r\n Dam.setTanggalLahir(1974, 1, 12);\r\n// String str = Dam.getNama();\r\n \r\n \r\n\r\n System.out.println(\"Umur = \" + Dam.getUsia());\r\n Dam.NomorRekamMedis();\r\n // System.out.println(str.substring(0, 3));\r\n\r\n// Pasien Dam2 = new Pasien(\"Dam\");\r\n// Dam2.setTanggalLahir(1999,3,13);\r\n// System.out.println(\"Umur = \" +Dam2.getUsia());\r\n }", "private void parseData() {\n\t\t\r\n\t}", "void format05(String line, int lineCount) {\n\n float spldepDifference = 0f;\n\n // is this the first record in the file?\n checkFirstRecord(code, lineCount);\n\n String tmpStationId = \"\";\n String tmpSubdes = \"\";\n float tmpSpldep = -9999f;\n\n // get the data off the line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n\n int subCode = 0;\n if (dataType == WATERWOD) {\n if (t.hasMoreTokens()) subCode = toInteger(t.nextToken());\n switch (subCode) {\n case 1: if (t.hasMoreTokens()) t.nextToken(); //watProfQC.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) //set profile temperature quality flag\n watProfQC.setTemperature((toInteger(t.nextToken())));\n if (t.hasMoreTokens()) //set profile salinity quality flag\n watProfQC.setSalinity((toInteger(t.nextToken())));\n if (t.hasMoreTokens()) //set profile disoxygen quality flag\n watProfQC.setDisoxygen((toInteger(t.nextToken())));\n break;\n\n } // switch (subCode)\n } // if (dataType = WATERWOD)\n if (dbg) System.out.println(\"format05: subCode = \" + subCode);\n\n if (dataType == CURRENTS) {\n\n //01 a2 format code always \"05\" n/a\n //02 a12 stnid station id: composed as for format 03 currents\n //03 f7.2 sample depth in m currents\n //04 i3 current dir in deg TN currents\n //05 f5.2 current speed in m/s currents\n\n if (t.hasMoreTokens()) currents.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) currents.setSpldep(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) currents.setCurrentDir(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) currents.setCurrentSpeed(toFloat(t.nextToken(), 1f));\n\n tmpStationId = currents.getStationId(\"\");\n tmpSubdes = currents.getSubdes(\"\");\n tmpSpldep = currents.getSpldep();\n\n } else if (dataType == SEDIMENT) {\n\n // This is a new sub-station record - set flags for code 06 to 13\n // to false\n code06Count = 0;\n code07Count = 0;\n //code08Count = 0;\n code09Count = 0;\n //code10Count = 0;\n code11Count = 0;\n code12Count = 0;\n code13Count = 0;\n\n //01 a2 format code always “05\" n/a\n //02 a12 stnid station id: composed as for format 03 sedphy\n //03 f7.2 sample depth in m sedphy\n //04 f6.3 cod mg O2 / litre sedphy\n //05 f8.4 dwf sedphy\n //06 i5 meanpz µns sedphy\n //07 i5 medipz µns sedphy\n //08 f8.3 kurt sedphy\n //09 f8.3 skew sedphy\n\n if (t.hasMoreTokens()) sedphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) sedphy.setSpldep(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setCod(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setDwf(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setMeanpz(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) sedphy.setMedipz(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) sedphy.setKurt(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setSkew(toFloat(t.nextToken(), 1f));\n\n tmpStationId = sedphy.getStationId(\"\");\n tmpSubdes = sedphy.getSubdes(\"\");\n tmpSpldep = sedphy.getSpldep();\n if (dbg) System.out.println(\"<br>format05: subdes = \" + subdes +\n \", sedphy.getSubdes() = \" + sedphy.getSubdes(\"\"));\n if (dbg) System.out.println(\"<br>format05: tmpSpldep = \" + tmpSpldep);\n\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n\n // This is a new sub-station record - set flags for code 06 to 13\n // to false\n code06Count = 0;\n code07Count = 0;\n code08Count = 0;\n code09Count = 0;\n code10Count = 0;\n code11Count = 0;\n code12Count = 0;\n code13Count = 0;\n\n // subCode = 1 - ignore\n // subCode = 0 (WATER) or subCode = 2 (WATERWOD)\n if (subCode != 1) {\n //01 a2 format code always \"05\" n/a\n //02 a12 stnid station id: composed as for format 03 watphy\n //03 f7.2 sample depth in m watphy\n //04 f5.2 temperature in deg C watphy\n //05 f6.3 salinity in parts per thousand (?) watphy\n //06 f5.2 dis oxygen in ml / litre watphy\n\n if (t.hasMoreTokens()) watphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) watphy.setSpldep(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set spldep quality flag\n watQC.setSpldep((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watphy.setTemperature(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set temperature quality flag\n watQC.setTemperature((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watphy.setSalinity(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set salinity quality flag\n watQC.setSalinity((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watphy.setDisoxygen(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set disoxygen quality flag\n watQC.setDisoxygen((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watphy.setTurbidity(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watphy.setPressure(toFloat(t.nextToken(), 1f)); // ub09\n if (t.hasMoreTokens()) watphy.setFluorescence(toFloat(t.nextToken(), 1f)); // ub09\n\n if (watphy.getSpldep() == Tables.FLOATNULL) { // ub11\n if ((watphy.getPressure() != Tables.FLOATNULL) && // ub11\n (station.getLatitude() != Tables.FLOATNULL)) { // ub11\n watphy.setSpldep( // ub11\n calcDepth(watphy.getPressure(), // ub11\n station.getLatitude())); // ub11\n } // if ((watphy.getPressure() != Tables.FLOATNULL) && .// ub11\n } // if (watphy.getSpldep() == Tables.FLOATNULL) // ub11\n\n tmpStationId = watphy.getStationId(\"\");\n tmpSubdes = watphy.getSubdes(\"\");\n tmpSpldep = watphy.getSpldep();\n if (dbg) System.out.println(\"<br>format05: subdes = \" + subdes +\n \", watphy.getSubdes() = \" + watphy.getSubdes(\"\"));\n } // if (subCode != 1)\n\n } // if (dataType == CURRENTS)\n\n // subCode = 1 - ignore\n // subCode = 0 (WATER/CURRENTS/SEDIMENT) or subCode = 2 (WATERWOD)\n if (subCode != 1) {\n // station Id must match that of previous station record\n checkStationId(lineCount, tmpStationId);\n\n // samples must be at least 0.5 metre deeper than the previous.\n // If this is not the case, reject the sample.\n // Only valid for CTD-type data, not for XBT or currents\n if (\"CTD\".equals(tmpSubdes)) {\n if (\"U\".equals(upIndicator)) {\n spldepDifference = prevDepth - tmpSpldep;\n } else {\n spldepDifference = tmpSpldep - prevDepth;\n } // if (\"U\".equals(upIndicator))\n } else {\n spldepDifference = 1f;\n } // if (\"CTD\".equals(tmpSubdes))\n\n if ((spldepDifference < 0.5f) && (tmpSpldep != 0f) &&\n (prevDepth != 0f)) {\n rejectDepth = true;\n stationSampleRejectCount++;\n sampleRejectCount++;\n\n if ((dataType == WATER) || (dataType == WATERWOD)) {\n watchem1 = new MrnWatchem1();\n watchem1 = new MrnWatchem1();\n watchl = new MrnWatchl();\n watnut = new MrnWatnut();\n watpol1 = new MrnWatpol1();\n watpol2 = new MrnWatpol2();\n } // if ((dataType == WATER) || (dataType == WATERWOD))\n if (dataType == WATERWOD) {\n watQC = new MrnWatqc();\n } // if (dataType == WATERWOD)\n } else {\n rejectDepth = false;\n prevDepth = tmpSpldep;\n\n // update the minimum and maximum depth\n if (tmpSpldep < depthMin) {\n depthMin = tmpSpldep;\n } // if (tmpSpldep < depthMin)\n if (tmpSpldep > depthMax) {\n depthMax = tmpSpldep;\n } // if (tmpSpldep < depthMin)\n\n } // if ((spldepDifference < 0.5f) &&\n\n // update the counters\n sampleCount++;\n stationSampleCount++;\n\n if (dbg) System.out.println(\"<br>format05: depthMax = \" + depthMax);\n // keep the maximum depth for the station\n station.setMaxSpldep(depthMax);\n //if (dbg) System.out.println(\"format05: station = \" + station);\n if (dbg) {\n if (dataType == CURRENTS) {\n System.out.println(\"<br>format05: currents = \" + currents);\n } else if (dataType == SEDIMENT) {\n System.out.println(\"<br>format05: sedphy = \" + sedphy);\n } else if (dataType == WATER) {\n System.out.println(\"<br>format05: watphy = \" + watphy);\n } else if (dataType == WATERWOD) {\n System.out.println(\"format05: watProfQC = \" + watProfQC);\n System.out.println(\"format05: watQC = \" + watQC);\n System.out.println(\"format05: watphy = \" + watphy);\n } // if (dataType == CURRENTS)\n } // if (dbg)\n\n } // if (subCode != 1)\n\n }", "public Calificacion(String asignatura, int nota) {\n\t\tthis.asignatura = asignatura;\n\t\tthis.nota = nota;\n\t}", "public final /* synthetic */ Object mo39938c(aza aza) throws GeneralSecurityException {\n aug aug = (aug) aza;\n avs.m47386a(aug.zzfih, 0);\n if (aug.zzfip.size() == 32) {\n return new avu(aug.zzfip.toByteArray());\n }\n throw new GeneralSecurityException(\"invalid XChaCha20Poly1305Key: incorrect key length\");\n }", "void format06(String line, int lineCount) {\n\n // is this the first record in the file?\n checkFirstRecord(code, lineCount);\n\n // get the data off the line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n\n int subCode = 0;\n if (dataType == WATERWOD) {\n if (t.hasMoreTokens()) subCode = toInteger(t.nextToken());\n switch (subCode) {\n case 1: if (t.hasMoreTokens()) watProfQC.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) t.nextToken(); // is no profile no2 quality flag\n if (t.hasMoreTokens()) //set profile no3 quality flag\n watProfQC.setNo3((toInteger(t.nextToken())));\n if (t.hasMoreTokens()) //set profile po4 quality flag\n watProfQC.setPo4((toInteger(t.nextToken())));\n if (t.hasMoreTokens()) t.nextToken(); // is no profile ptot quality flag\n if (t.hasMoreTokens()) t.nextToken(); // is no profile sio3 quality flag\n if (t.hasMoreTokens()) //set profile sio4 quality flag\n watProfQC.setSio3((toInteger(t.nextToken())));\n if (t.hasMoreTokens()) //set profile chla quality flag\n watProfQC.setChla((toInteger(t.nextToken())));\n if (t.hasMoreTokens()) t.nextToken(); // is no profile chlb quality flag\n if (t.hasMoreTokens()) t.nextToken(); // is no profile chlc quality flag\n break;\n } // switch (subCode)\n } // if (dataType = WATERWOD)\n\n\n // there can only be one code 06 record per substation\n if (subCode != 1) code06Count++; // ignore WATERWOD code 1\n if (code06Count > 1) {\n outputError(lineCount + \" - Fatal - \" +\n \"More than 1 code 06 record in substation\");\n } // if (code06Count > 1)\n\n if (dataType == SEDIMENT) {\n\n //01 a2 format code always “06\" n/a/a\n //02 a12 stnid station id: composed as for format 03 sedphyhy\n //03 f4.1 pctsat percent sedphywatnut\n //04 f4.1 pctsil percent sedphywatnut\n //05 i5 permty seconds sedphyM watnut\n //06 f4.1 porsty percent sedphyM watnut\n //07 f5.1 splvol litre sedphy = µM watnut\n //08 i3 spldis sedphytre watchl\n //09 f8.1 sievsz sedphywatchl\n\n if (t.hasMoreTokens()) sedphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) sedphy.setPctsat(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setPctsil(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setPermty(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) sedphy.setPorsty(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setSplvol(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setSpldis(toInteger(t.nextToken())); // ub07\n if (t.hasMoreTokens()) sedphy.setSievsz(toFloat(t.nextToken(), 1f));\n\n // station Id must match that of previous station record\n checkStationId(lineCount, sedphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format06: sedphy = \" + sedphy);\n\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n\n //01 a2 format code always \"06\" n/a\n //02 a12 stnid station id: composed as for format 03 watphy\n //03 f6.2 NO2 µgm atom / litre = uM watnut\n //04 f6.2 NO3 µgm atom / litre = uM watnut\n //05 f6.2 PO4 µgm atom / litre = uM watnut\n //06 f7.3 Ptot µgm atom / litre = µM watnut\n //07 f7.2 SIO3 µgm atom / litre = µM watnut\n //08 f7.2 SIO4 µgm atom / litre = µM watnut\n //09 f7.3 chla µgm / litre watchl\n //10 f7.3 chlb µgm / litre watchl\n //11 f7.3 chlc µgm / litre watchl\n\n\n // subCode = 1 - ignore\n // subCode = 0 (WATER) or subCode = 2 (WATERWOD)\n if (subCode != 1) {\n if (t.hasMoreTokens()) watphy.setStationId(toString(t.nextToken()));\n\n if (t.hasMoreTokens()) watnut.setNo2(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) t.nextToken(); // is no profile no2 quality flag\n\n if (t.hasMoreTokens()) watnut.setNo3(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set No3 quality flag\n watQC.setNo3((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watnut.setPo4(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set Po4 quality flag\n watQC.setPo4((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watnut.setP(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) t.nextToken(); // is no profile ptot quality flag\n\n if (t.hasMoreTokens()) watnut.setSio3(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) t.nextToken(); // is no profile Sio3 quality flag\n\n if (t.hasMoreTokens()) watnut.setSio3(toFloat(t.nextToken(), 1f)); // ub07\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set Sio4 quality flag\n watQC.setSio3((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watchl.setChla(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set chla quality flag\n watQC.setChla((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watchl.setChlb(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) t.nextToken(); // is no profile chlb quality flag\n\n if (t.hasMoreTokens()) watchl.setChlc(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) t.nextToken(); // is no profile chlc quality flag\n\n // station Id must match that of previous station record\n checkStationId(lineCount, watphy.getStationId(\"\"));\n\n if (dbg) System.out.println(\"format06: watnut = \" + watnut);\n if (dbg) System.out.println(\"format06: watchl = \" + watchl);\n\n } // if (subCode != 1)\n\n } // if (dataType == SEDIMENT)\n\n }", "public C4720i0 mo11074a(C4878a aVar) {\n boolean z;\n C4878a aVar2 = aVar;\n if (aVar2 != null) {\n C4706e0 g = aVar.mo11176g();\n if (g != null) {\n C4707a aVar3 = new C4707a(g);\n C4716h0 h0Var = g.f11032e;\n String str = \"Content-Type\";\n String str2 = \"Content-Length\";\n if (h0Var != null) {\n C4879z b = h0Var.mo10973b();\n if (b != null) {\n aVar3.mo11017a(str, b.f11638a);\n }\n long a = h0Var.mo10970a();\n String str3 = \"Transfer-Encoding\";\n if (a != -1) {\n aVar3.mo11017a(str2, String.valueOf(a));\n aVar3.mo11016a(str3);\n } else {\n aVar3.mo11017a(str3, \"chunked\");\n aVar3.mo11016a(str2);\n }\n }\n String str4 = \"Host\";\n int i = 0;\n if (g.mo11012a(str4) == null) {\n aVar3.mo11017a(str4, C4737b.m10456a(g.f11029b, false));\n }\n String str5 = \"Connection\";\n if (g.mo11012a(str5) == null) {\n aVar3.mo11017a(str5, \"Keep-Alive\");\n }\n String str6 = \"Accept-Encoding\";\n String str7 = \"gzip\";\n if (g.mo11012a(str6) == null && g.mo11012a(\"Range\") == null) {\n aVar3.mo11017a(str6, str7);\n z = true;\n } else {\n z = false;\n }\n List a2 = this.f11294a.mo11344a(g.f11029b);\n if (!a2.isEmpty()) {\n StringBuilder sb = new StringBuilder();\n for (Object next : a2) {\n int i2 = i + 1;\n if (i >= 0) {\n C4854n nVar = (C4854n) next;\n if (i > 0) {\n sb.append(\"; \");\n }\n sb.append(nVar.f11571a);\n sb.append('=');\n sb.append(nVar.f11572b);\n i = i2;\n } else {\n C2286e.m5338f();\n throw null;\n }\n }\n String sb2 = sb.toString();\n C4638h.m10270a((Object) sb2, \"StringBuilder().apply(builderAction).toString()\");\n aVar3.mo11017a(\"Cookie\", sb2);\n }\n String str8 = \"User-Agent\";\n if (g.mo11012a(str8) == null) {\n aVar3.mo11017a(str8, \"okhttp/4.2.1\");\n }\n C4720i0 a3 = aVar2.mo11170a(aVar3.mo11021a());\n C4776e.m10582a(this.f11294a, g.f11029b, a3.f11065k);\n C4721a aVar4 = new C4721a(a3);\n aVar4.f11073a = g;\n if (z) {\n String str9 = \"Content-Encoding\";\n if (C4681g.m10322a(str7, C4720i0.m10406a(a3, str9, null, 2), true) && C4776e.m10583a(a3)) {\n C4725j0 j0Var = a3.f11066l;\n if (j0Var != null) {\n C4902n nVar2 = new C4902n(j0Var.mo10991h());\n C4871a c = a3.f11065k.mo11368c();\n c.mo11381c(str9);\n c.mo11381c(str2);\n aVar4.mo11041a(c.mo11378a());\n aVar4.f11079g = new C4779h(C4720i0.m10406a(a3, str, null, 2), -1, C0967p0.m2183a((C4882a0) nVar2));\n }\n }\n }\n return aVar4.mo11042a();\n }\n throw null;\n }\n C4638h.m10271a(\"chain\");\n throw null;\n }", "private static final int edu (StringBuffer buf, long mksa, int option) {\n\t\tint len0 = buf.length();\n\t\tint i, e, o, xff;\n\t\tint nu=0; \n\t\tboolean sep = false;\n\t\tlong m;\n\n\t\t/* Remove the 'log' or 'mag[]' part */\n\t\tif ((mksa&_log) != 0) {\n\t\t\tmksa &= ~_log;\n\t\t\tif ((mksa&_mag) != 0) mksa &= ~_mag;\n\t\t}\n\n\t\t/* Check unitless -- edited as empty string */\n\t\tif (mksa == underScore) return(0);\n\n\t\t/* Find the best symbol for the physical dimension */\n\t\tif (option > 0) {\n\t\t\tnu = (mksa&_mag) == 0 ? 0 : 1;\n\t\t\tfor (m=(mksa<<8)>>8; m!=0; m >>>= 8) {\n\t\t\t\tif ((m&0xff) != _e0 ) nu++ ;\n\t\t\t}\n\n\t\t\t/* Find whether this number corresponds to a composed unit */\n\t\t\tfor (i=0; i<uDef.length; i++) {\n\t\t\t\tif (uDef[i].mksa != mksa) continue;\n\t\t\t\tif (uDef[i].fact != 1) continue;\n\t\t\t\tbuf.append(uDef[i].symb) ;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// A basic unit need no explanation \n\t\t\tif (nu == 1) return(buf.length() - len0) ;\n\n\t\t\t// Add the explanation in MKSA within parenthesis\n\t\t\tif (buf.length() != len0) buf.append(\" [\") ;\n\t\t\telse nu = 0;\t// nu used as an indicator to add the ) \n\t\t}\n\n\t\to = _m0;\t// Zero power of magnitude\n\t\txff = 7;\t// Mask for magnitude\n\t\tfor (i=0; i<8; i++) {\n\t\t\te = (int)((mksa>>>(56-(i<<3)))&xff) - o;\n\t\t\to = _e0 ;\t// Other units: the mean is _e0 \n\t\t\txff = 0xff;\t// Other units\n\t\t\tif (e == 0) continue;\n\t\t\tif (sep) buf.append(\".\"); sep = true;\n\t\t\tbuf.append(MKSA[i]);\n\t\t\tif (e == 1) continue;\n\t\t\tif (e>0) buf.append(\"+\") ;\n\t\t\tbuf.append(e) ;\n\t\t}\n\t\tif (nu>0) buf.append(\"]\");\n\t\treturn(buf.length() - len0) ;\n\t}", "public Automato equalAF2AFN(Automato a){\n\t\t//a construcao da equivalencia de A será feita, utilizando a \n\t\t//tecnica de busca em largura.\n\t\t\n\t\tAutomato r = new Automato();\n\t\t//fechamento transitivo vazio (Epsilon)\n\t\tArrayList<Estado> fecho = new ArrayList<>();\n\t\t//conjunto de estados resultante do movimento com simbolo '0'\n\t\tArrayList<Estado> zero = new ArrayList<>();\n\t\t//conjunto de estados resultante do movimento com simbolo '1'\n\t\tArrayList<Estado> um = new ArrayList<>();\n\t\t//fila com os filhos(zero e um) do fechamento transtivo\n\t\tArrayList<ArrayList<Estado>> fila = new ArrayList<>();\n\t\t//calcula o fechamento do estado inicial\n\t\tfecho = a.fechamento(a.getQ().get(0));\n\t\tfila.add(fecho);\n\t\twhile(!fila.isEmpty()){\n\t\t\tfecho = fila.get(0);\n\t\t\tEstado inicial = new Estado(montar(fecho));\n\t\t\t//se os estado nao existir cria-se esse novo estado.\n\t\t\tif (!r.existe(inicial))\n\t\t\t\tr.addEstado(inicial);\n\t\t\telse\n\t\t\t\tinicial = r.getEstado(inicial);\n\t\t\t//calcula os movimentos com 0 e 1\n\t\t\tzero = a.movimento(fecho, '0');\n\t\t\tum = a.movimento(fecho, '1');\n\t\t\tif (!zero.isEmpty()){\n\t\t\t\t//se possui movimento com 0 calcula o fechamento\n\t\t\t\tfecho = a.fechamento(zero);\n\t\t\t\tEstado e = new Estado(montar(fecho));\n\t\t\t\tif (!r.existe(e))\n\t\t\t\t\t//se o estado nao existe cria o estado\n\t\t\t\t\tr.addEstado(e);\n\t\t\t\telse\n\t\t\t\t\te = r.getEstado(e);\n\t\t\t\tif (!r.existe(inicial, e, '0')){\n\t\t\t\t\t//se a trasicao nao existe cria a transicao\n\t\t\t\t\t//e adiciona o fechamento na fila\n\t\t\t\t\tfila.add(fecho);\n\t\t\t\t\tr.addTransicao(inicial, e, '0');\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!um.isEmpty()){\n\t\t\t\tfecho = a.fechamento(um);\n\t\t\t\t\n\t\t\t\tEstado e = new Estado(montar(fecho));\n\t\t\t\tif (!r.existe(e))\n\t\t\t\t\t//se o estado nao existe cria o estado\n\t\t\t\t\tr.addEstado(e);\n\t\t\t\telse\n\t\t\t\t\te = r.getEstado(e);\n\t\t\t\tif (!r.existe(inicial, e, '1')){\n\t\t\t\t\t//se a trasicao nao existe cria a transicao\n\t\t\t\t\t//e adiciona o fechamento na fila\n\t\t\t\t\tfila.add(fecho);\n\t\t\t\t\tr.addTransicao(inicial, e, '1');\n\t\t\t\t}\n\t\t\t}\n\t\t\tfila.remove(0);\n\t\t}\n\t\tatribuirFinais(r, a.getF());\n\t\tOperacao.updateIndex(r);\n\t\treturn r;\n\t}" ]
[ "0.5666372", "0.56192666", "0.56048393", "0.54736835", "0.54503155", "0.5438781", "0.543428", "0.54065883", "0.5392703", "0.52529967", "0.52419394", "0.5187331", "0.51752347", "0.51650524", "0.5157697", "0.51397604", "0.5125854", "0.5094601", "0.507778", "0.5077256", "0.50622267", "0.50561106", "0.5051995", "0.5008059", "0.5005924", "0.50045115", "0.500393", "0.49937862", "0.49865642", "0.49806014", "0.49798226", "0.49736446", "0.49729437", "0.4971421", "0.49510622", "0.49489072", "0.49454075", "0.49368542", "0.4936519", "0.49356565", "0.49347737", "0.49269694", "0.4924056", "0.49124056", "0.4911094", "0.49100417", "0.49010843", "0.4899621", "0.48991948", "0.48980916", "0.48963407", "0.4887277", "0.48863992", "0.48857492", "0.48778313", "0.48765108", "0.48713365", "0.48708594", "0.4869786", "0.4869394", "0.4864252", "0.48607722", "0.48531377", "0.48511228", "0.48481596", "0.484586", "0.48403576", "0.48343694", "0.48343694", "0.4833898", "0.48293024", "0.48292378", "0.48264366", "0.48230177", "0.48228672", "0.48221362", "0.48201558", "0.48174518", "0.48115173", "0.48103282", "0.48083872", "0.4805266", "0.48046628", "0.47946262", "0.4791938", "0.4785974", "0.47837046", "0.4780763", "0.47795704", "0.4779538", "0.4776236", "0.47713616", "0.47675082", "0.47672573", "0.4766856", "0.47638023", "0.47628033", "0.47620037", "0.47619522", "0.4757987", "0.4757675" ]
0.0
-1
Converte a data passada em string
public static String formatarData(Date data) { String retorno = ""; if (data != null) { // 1 Calendar dataCalendar = new GregorianCalendar(); StringBuffer dataBD = new StringBuffer(); dataCalendar.setTime(data); if (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) { dataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH) + "/"); } else { dataBD.append("0" + dataCalendar.get(Calendar.DAY_OF_MONTH) + "/"); } if ((dataCalendar.get(Calendar.MONTH) + 1) > 9) { dataBD.append(dataCalendar.get(Calendar.MONTH) + 1 + "/"); } else { dataBD.append("0" + (dataCalendar.get(Calendar.MONTH) + 1) + "/"); } dataBD.append(dataCalendar.get(Calendar.YEAR)); retorno = dataBD.toString(); } return retorno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDataString() {\r\n return formatoData.format(data);\r\n }", "public String getString_data() { \n char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,60)];\n int i;\n for (i = 0; i < carr.length; i++) {\n if ((char)getElement_data(i) == (char)0) break;\n carr[i] = (char)getElement_data(i);\n }\n return new String(carr,0,i);\n }", "public String convert()\r\n\t{\r\n\t\treturn str;\r\n\t}", "java.lang.String getData();", "public String makeConversion(String value);", "private static String convertDonnee(String donnee){\n byte[] tableau = convert.toBinaryFromString(donnee);\n StringBuilder sbDonnee = new StringBuilder();\n for (int i =0; i<tableau.length;i++){\n String too=Byte.toString(tableau[i]);\n sbDonnee.append(convert.decimalToBinary(Integer.parseInt(too)));\n }\n return sbDonnee.toString();\n }", "@Override\n public Object getData() {\n return new String(outputData);\n }", "public String asString();", "public abstract String toSaveString();", "public String toData() {\n return super.toData() + \"~S~\" + by;\n }", "String getData();", "public static String formatarData(String data) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tif (data != null && !data.equals(\"\") && data.trim().length() == 8) {\r\n\r\n\t\t\tretorno = data.substring(6, 8) + \"/\" + data.substring(4, 6) + \"/\" + data.substring(0, 4);\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "Integer getDataStrt();", "String asString();", "String serialize();", "public static String converterDataSemBarraParaDataComBarra(String data) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tif (data != null && !data.equals(\"\") && data.trim().length() == 8) {\r\n\r\n\t\t\tretorno = data.substring(0, 2) + \"/\" + data.substring(2, 4) + \"/\" + data.substring(4, 8);\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "public abstract String toDBString();", "public String toString() {\n return \"\" + data;\n }", "String toJSONString(Object data);", "public String toString() {\n\treturn createString(data);\n }", "@Override\n\t\tpublic byte[] convert(String s) {\n\t\t\treturn s.getBytes();\n\t\t}", "private CData convert(EValueType type, String str) {\n switch (type)\n {\n case DOUBLE_64:\n return new CData(type, Double.valueOf(str));\n case FLOAT_32:\n return new CData(type, Float.valueOf(str));\n case INT_16:\n return new CData(type, Short.valueOf(str));\n case INT_32:\n return new CData(type, Integer.valueOf(str));\n case INT_64:\n return new CData(type, Long.valueOf(str));\n case INT_8:\n return new CData(type, str.charAt(0));\n case UINT_64:\n return new CData(type, Long.valueOf(str));\n case UINT_32:\n return new CData(type, Long.valueOf(str));\n case UINT_16:\n return new CData(type, Character.valueOf(str.charAt(0)));\n case UINT_8:\n return new CData(type, str.charAt(0));\n case VOID:\n default:\n return CData.VOID;\n }\n }", "private String convertDataToString(List<DataFormat> trainData) {\n return trainData\n .stream()\n .map(d -> convertBooleanToInteger(d.getValue()) + \" \" +\n convertPredicateListToString(d.getPredicateList()) + System.lineSeparator())\n .collect(Collectors.joining());\n }", "public abstract String serialise();", "public Str(String data) {\n this.data = data;\n }", "private static String convertToHex(byte[] data) throws IOException {\n //create new instance of string buffer\n StringBuffer stringBuffer = new StringBuffer();\n String hex = \"\";\n\n //encode byte data with base64\n hex = Base64.getEncoder().encodeToString(data);\n stringBuffer.append(hex);\n\n //return string\n return stringBuffer.toString();\n }", "private String convertToString( Value recordValue, GraphPropertyDataType sourceType ) {\n if ( recordValue == null ) {\n return null;\n }\n if ( sourceType == null ) {\n return JSONValue.toJSONString( recordValue.asObject() );\n }\n switch ( sourceType ) {\n case String:\n return recordValue.asString();\n default:\n return JSONValue.toJSONString( recordValue.asObject() );\n }\n }", "@Override\n\tpublic void WriteData(String obj) {\n\t\t\n\t}", "String getDataNascimento();", "public void toStr()\r\n {\r\n numar = Integer.toString(read());\r\n while(numar.length() % 3 != 0){\r\n numar = \"0\" + numar; //Se completeaza cu zerouri pana numarul de cifre e multiplu de 3.\r\n }\r\n }", "private static String loadConvert(String str) {\n\t\tint off = 0;\n\t\tint len = str.length();\n\t\tchar[] in = str.toCharArray();\n\t\tchar[] convtBuf = new char[1024];\n\t\tif (convtBuf.length < len) {\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0) {\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end) {\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\') {\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u') {\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar) {\n\t\t\t\t\t\tcase '0':\n\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\tcase '3':\n\t\t\t\t\t\tcase '4':\n\t\t\t\t\t\tcase '5':\n\t\t\t\t\t\tcase '6':\n\t\t\t\t\t\tcase '7':\n\t\t\t\t\t\tcase '8':\n\t\t\t\t\t\tcase '9':\n\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'a':\n\t\t\t\t\t\tcase 'b':\n\t\t\t\t\t\tcase 'c':\n\t\t\t\t\t\tcase 'd':\n\t\t\t\t\t\tcase 'e':\n\t\t\t\t\t\tcase 'f':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tcase 'C':\n\t\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcase 'E':\n\t\t\t\t\t\tcase 'F':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char) value;\n\t\t\t\t} else {\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}", "@Override\n\tpublic Object convert(Object o) {\n\t\tif(o != null) {\n\t\t\treturn ((String)o).toCharArray();\n\t\t}\n\t\treturn null;\n\t}", "String convertStringForStorage(String value);", "public String toString()\r\n\t{\r\n\t\treturn data.toString();\r\n\t}", "public static String data(byte[] a)\n {\n if (a == null)\n return null;\n StringBuilder ret = new StringBuilder();\n int i = 0;\n while (a[i] != 0)\n {\n ret.append((char) a[i]);\n i++;\n }\n return ret.toString();\n }", "void mo5872a(String str, Data data);", "public String toString() {\n\t\treturn data.toString();\n }", "public abstract String valueAsText();", "public static String readString(Value value) {\n return SafeEncoder.encode((byte[]) value.get());\n }", "public String get(String parametro) {\n\t\tString dato = \"\";\n\t\tswitch (parametro) {\n\t\tcase \"nombre\":\n\t\t\tdato = getNombre();\n\t\t\tbreak;\n\t\tcase \"apellido\":\n\t\t\tdato = getApellido();\n\t\t\tbreak;\n\t\tcase \"dni\":\n\t\t\tdato = getDni();\n\t\t\tbreak;\n\t\tcase \"edad\":\n\t\t\tdato = Integer.toString(getEdad());\n\t\t\tbreak;\n\t\tcase \"telefono\":\n\t\t\tdato = Integer.toString(getTelefono());\n\t\t\tbreak;\n\t\tcase \"domicilio\":\n\t\t\tdato = getDomicilio();\n\t\t\tbreak;\n\t\t}\n\t\treturn dato;\n\t}", "public String toString() {\r\n\treturn data;\r\n }", "private static void saveData(String data) {\n }", "public String getData(String rawData){\n\t\treturn \"1\";\n\t}", "private void EnviarDatos(String data) \n {\n\n try \n {\n Output.write(data.getBytes());\n\n } catch (IOException e) {\n\n System.exit(ERROR);\n }\n }", "public String toString(){\n return data+\" \"; \n }", "public StringBuilder getConvert()//returns the converted string\r\n {\r\n return stbrLines;\r\n }", "public String encode_dados_acesso(){\n\n String result = \"\";\n\n try {\n String iddispositivo = Settings.Secure.getString(myContext.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n Uri.Builder builder = new Uri.Builder()\n .appendQueryParameter(TAG_IDDIUSPOSITIVO, iddispositivo)\n //.appendQueryParameter(TAG_EMAIL, v_email)\n //.appendQueryParameter(TAG_SENHA, v_senha)\n .appendQueryParameter(TAG_TEXTO, vTexto);\n\n result = builder.build().getEncodedQuery();\n Log.d(\"workshop encode:\",result);\n\n } catch (Exception e) {\n //Log.d(\"InputStream\", e.getLocalizedMessage());\n }\n\n // 11. return result\n return result;\n }", "public String encode_dados_acesso(){\n\n String result = \"\";\n\n try {\n String iddispositivo = Settings.Secure.getString(myContext.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n Uri.Builder builder = new Uri.Builder()\n .appendQueryParameter(TAG_IDDIUSPOSITIVO, iddispositivo)\n //.appendQueryParameter(TAG_EMAIL, v_email)\n //.appendQueryParameter(TAG_SENHA, v_senha)\n .appendQueryParameter(TAG_TEXTO, vTexto);\n\n result = builder.build().getEncodedQuery();\n Log.d(\"workshop encode:\",result);\n\n } catch (Exception e) {\n //Log.d(\"InputStream\", e.getLocalizedMessage());\n }\n\n // 11. return result\n return result;\n }", "void convert(ConversionPostedData postedData);", "public static String toString(Object o,byte type) throws ExecException {\n try {\n switch (type) {\n case INTEGER:\n return ((Integer)o).toString();\n\n case LONG:\n return ((Long)o).toString();\n\n case FLOAT:\n return ((Float)o).toString();\n\n case DOUBLE:\n return ((Double)o).toString();\n\n case DATETIME:\n return ((DateTime)o).toString();\n\n case BYTEARRAY:\n return ((DataByteArray)o).toString();\n\n case CHARARRAY:\n return ((String)o);\n\n case BIGINTEGER:\n return ((BigInteger)o).toString();\n\n case BIGDECIMAL:\n return ((BigDecimal)o).toString();\n\n case NULL:\n return null;\n\n case BOOLEAN:\n return ((Boolean)o).toString();\n\n case BYTE:\n return ((Byte)o).toString();\n\n case MAP:\n case INTERNALMAP:\n case TUPLE:\n case BAG:\n case UNKNOWN:\n default:\n int errCode = 1071;\n String msg = \"Cannot convert a \" + findTypeName(o) +\n \" to a String\";\n throw new ExecException(msg, errCode, PigException.INPUT);\n }\n } catch (ClassCastException cce) {\n throw cce;\n } catch (ExecException ee) {\n throw ee;\n } catch (Exception e) {\n int errCode = 2054;\n String msg = \"Internal error. Could not convert \" + o + \" to String.\";\n throw new ExecException(msg, errCode, PigException.BUG);\n }\n }", "public String formatData() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\n\t\t\tbuilder.append(this.iataCode);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.latitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.longitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.altitude);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.localTime);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.condition);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.temperature);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.pressure);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.humidity);\n\t\t\tbuilder.append(\"\\n\");\n\t\t\n\n\t\treturn builder.toString();\n\n\t}", "public String toText(String braille);", "static protected String[] double2String(double[][] d){ // Borrowed from JMatLink\r\nString encodeS[]=new String[d.length]; // String vector\r\n// for all rows\r\nfor (int n=0; n<d.length; n++){\r\nbyte b[] = new byte[d[n].length];\r\n// convert row from double to byte\r\nfor (int i=0; i<d[n].length ;i++) b[i]=(byte)d[n][i];\r\n\r\n// convert byte to String\r\ntry { encodeS[n] = new String(b, \"UTF8\");}\r\ncatch (UnsupportedEncodingException e) { e.printStackTrace(); }\r\n}\r\nreturn encodeS;\r\n}", "String getToText();", "public Data(String data){\n String[] dataAux = data.split(\"/\");\n dia = Integer.parseInt(dataAux[0]);\n mes = Integer.parseInt(dataAux[1]);\n ano = Integer.parseInt(dataAux[2]);\n }", "public String getData() {\n \n String str = new String();\n int aux;\n\n for(int i = 0; i < this.buffer.size(); i++) {\n for(int k = 0; k < this.buffer.get(i).size(); k++) {\n aux = this.buffer.get(i).get(k);\n str = str + Character.toString((char)aux);\n }\n str = str + \"\\n\";\n }\n return str;\n }", "public abstract String toText(T value);", "public String getDataCandidatura(){\n return dataCandidatura;\n }", "private static String transformarCelula(Integer valorCelula) {\n if (valorCelula == null) {\n return \"\"; // String vazia\n } else {\n return valorCelula.toString(); // Transforma a celula em String\n }\n }", "@Override\r\n\tpublic String getAsString(FacesContext context, UIComponent component,\r\n\t\t\tObject object) {\n\t\tloggerService.logPortalInfo(\" start getAsString method of ServiceConverter \");\r\n\t\tif (object instanceof String)\r\n\t\t\treturn null;\r\n\t\tif (object != null) {\r\n\t\t\treturn String.valueOf(((ProductTypeDTO) object).getId());\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t}", "public String makeString(){\n\t\tString title = getTitle();\n\t\tString xlabel = getXLabel();\n\t\tString ylabel = getYLabel();\n\t\tString GraphableDataInfoString = (\"<\" + title + \",\" + xlabel + \",\" + ylabel + \">\");\n\t\treturn GraphableDataInfoString;\n\t}", "public String toString() {\n\t\treturn data.toString();\n\t}", "public String toString() {\n\t\treturn data.toString();\n\t}", "@Override\n public void onReceivedData(byte[] arg0) {\n try {\n ultimoDadoRecebido = ultimoDadoRecebido + new String(arg0, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }", "public void setData(String d) {\n _data = d.getBytes();\n }", "protected String obterData(String format) {\n\t\tDateFormat formato = new SimpleDateFormat(format);\n\t\tDate data = new Date();\n\t\treturn formato.format(data).toString();\n\t}", "public String toDataString() {\n return isDone ? \"1 | \" + getDescription() : \"0 | \" + getDescription();\n }", "public String getData()\n {\n return data;\n }", "public java.lang.String getData() {\r\n return data;\r\n }", "@Override\n\tpublic Object revert(Object o) {\n\t\tif(o != null) {\n\t\t\treturn new String((char[])o);\n\t\t}\n\t\treturn null;\n\t}", "String toStr(Object o);", "protected String readString(DataInput in) throws IOException {\n if (in.readBoolean())\n return (in.readUTF());\n return null;\n }", "private String convertStreamToString(InputStream is) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder builder = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null) {\n builder.append(line);\n }\n return builder.toString();\n }", "private String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line).append('\\n');\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return sb.toString();\n }", "static String serializeToString(Object s) throws SQLException {\n\treturn createString(serialize(s));\n }", "public String ToStr(){\n\t\tswitch(getTkn()){\n\t\tcase Kali:\n\t\t\treturn \"*\";\n\t\tcase Bagi:\n\t\t\treturn \"/\";\n\t\tcase Div:\n\t\t\treturn \"div\";\n\t\tcase Tambah:\n\t\t\treturn \"+\";\n\t\tcase Kurang:\n\t\t\treturn \"-\";\n\t\tcase Kurungbuka:\n\t\t\treturn \"(\";\n\t\tcase Kurungtutup:\n\t\t\treturn \")\";\n\t\tcase Mod:\n\t\t\treturn \"mod\";\n\t\tcase And:\n\t\t\treturn \"and\";\n\t\tcase Or:\n\t\t\treturn \"or\";\n\t\tcase Xor:\n\t\t\treturn \"xor\";\n\t\tcase Not:\n\t\t\treturn \"!\";\n\t\tcase Bilangan:\n\t\t\tString s = new String();\n\t\t\tswitch (getTipeBilangan()){\n\t\t\tcase _bool:\n\t\t\t\tif (getBilanganBool())\n\t\t\t\t\treturn \"true\";\n\t\t\t\telse\treturn \"false\";\n\t\t\tcase _int:\n\t\t\t\ts+=(getBilanganInt());\n\t\t\t\tbreak;\n\t\t\tcase _float:\n\t\t\t\ts+=(getBilanganFloat());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\treturn s;\n\t\t}\n\t\treturn null;\n\t}", "public String formataDataNascimento(String dataNascimentoInserida) {\n String dataNascimentoString;\n SimpleDateFormat formatadorDataNascimento = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date dataNascimento = new Date();\n try {\n dataNascimento = formatadorDataNascimento.parse((dataNascimentoInserida));\n } catch (ParseException ex) {\n this.telaFuncionario.mensagemErroDataNascimento();\n dataNascimentoString = cadastraDataNascimento();\n return dataNascimentoString;\n }\n dataNascimentoString = formatadorDataNascimento.format(dataNascimento);\n dataNascimentoString = controlaConfirmacaoCadastroDataNascimento(dataNascimentoString);\n return dataNascimentoString;\n }", "public String getData() {\n\treturn data;\n }", "public String toString(Object data) {\n try {\n return objectMapper.writeValueAsString(data);\n } catch (JsonProcessingException e) {\n logger.error(e.getMessage(), e);\n }\n return null;\n }", "public static String convertObjToString(Object clsObj) {\n String jsonSender = new Gson().toJson(clsObj, new TypeToken<Object>() {\n }.getType());\n return jsonSender;\n }", "String encodeResourceToString(IBaseResource theResource) throws DataFormatException;", "private static String convertStreamToString(InputStream is) {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line = null;\n try {\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t sb.append(line + \"\\n\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n try {\n\t\t\tis.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n return sb.toString();\n \n }", "public String plainDataToString()\n {\n String plainDataOut = \"\";\n String vetVisitData = super.plainDataToString();\n String vetVisitUrgData = \"\";\n \n vetVisitUrgData = this.getDiagnosis() + \"\\n\" +\n this.getTreatment();\n \n plainDataOut = vetVisitData + \"\\n\" + vetVisitUrgData;\n \n return plainDataOut;\n \n }", "static String makeData(String key,\n String value) {\n return format(DATA_FMT, key, value);\n }", "private String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n String line;\n try {\n // building the string\n while ((line = reader.readLine()) != null) {\n sb.append(line).append('\\n');\n }\n } catch (IOException e) {\n // error occurred in the inputstream\n Log.e(TAG, \"IOException: \" + e.getMessage());\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n // error occurred closing input stream\n Log.e(TAG, \"IOException: \" + e.getMessage());\n }\n }\n return sb.toString();\n }", "String getString();", "String getString();", "String getString();", "public abstract String toJsonString();", "@Test\n public void testConvertDataToCsvString() {\n List<String> dataKeys = new ArrayList<>();\n dataKeys.add(\"First\");\n dataKeys.add(\"Second\");\n \n Map<String, Object> data = new HashMap<>();\n data.put(\"Second\", 0.34);\n data.put(\"First\", 1.23);\n \n String expResult = \"1.23,0.34*XX\";\n String result = dataModelConverter.convertDataToCsvString(dataKeys, data);\n assertEquals(expResult, result);\n }", "String asString ();", "public String toString()\n\t{\n\t\tString result = \"\";\n\t\tresult += this.data;\n\t\treturn result;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn data.toString();\n\t}", "public static String toJSON(Object data) {\n\t\ttry {\n\t\t\treturn fullMapper.writeValueAsString(data);\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}", "public String getDataNascimentoString() {\r\n\r\n\t\tSimpleDateFormat data = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\treturn data.format(this.dataNascimento.getTime());\r\n\r\n\t}", "public java.lang.String getData() {\n java.lang.Object ref = data_;\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 data_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "T convert(String value);", "protected String convertStreamToString(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n\n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n log.info(sb.toString());\n return sb.toString();\n }", "public void setDataNascimentoString(String dataNascimento) {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tjava.util.Date date = new SimpleDateFormat(\"dd/MM/yyyy\").parse(dataNascimento);\r\n\t\t\tCalendar dataCalendar = Calendar.getInstance();\r\n\t\t\tdataCalendar.setTime(date);\r\n\t\t\t\r\n\t\t\tthis.dataNascimento = dataCalendar;\r\n\t\t\t\r\n\t\t} catch (ParseException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "private String DEIToString( Object object ) {\n\t\tDynamicElementInfo DEI = ( DynamicElementInfo ) object;\n\t\tString result = \"\";\n\n\t\tchar[] stringChars = DEI.getStringChars( );\n\t\tfor( char nextChar : stringChars )\n\t\t\tresult += nextChar;\n\n\t\treturn result;\n\t}", "private static String bytes2String(byte[] bytes) {\n StringBuffer stringBuffer = new StringBuffer();\n for (int i = 0; i < bytes.length; i++) {\n stringBuffer.append((char) bytes[i]);\n }\n return stringBuffer.toString();\n }" ]
[ "0.6492394", "0.6207565", "0.61456317", "0.60917753", "0.6010815", "0.6004635", "0.5964517", "0.5907147", "0.5906527", "0.5818563", "0.5801986", "0.578474", "0.57821864", "0.57743293", "0.57276624", "0.5722522", "0.57211643", "0.5713333", "0.5675354", "0.56672674", "0.5635519", "0.563163", "0.56269985", "0.56167096", "0.559953", "0.5568547", "0.5547555", "0.5536777", "0.55296147", "0.5507501", "0.5494411", "0.54921323", "0.54914707", "0.54673564", "0.5438621", "0.5435799", "0.5431519", "0.5431046", "0.5417605", "0.54157674", "0.54140633", "0.5409087", "0.5388829", "0.53752834", "0.5359734", "0.5342158", "0.5340943", "0.5340943", "0.5329385", "0.53260475", "0.53253406", "0.5320927", "0.5312535", "0.531105", "0.5305537", "0.5305353", "0.5292104", "0.52867866", "0.527704", "0.5269374", "0.52659166", "0.5260972", "0.5260972", "0.52529305", "0.5245697", "0.52453125", "0.524253", "0.52400106", "0.5233897", "0.5219498", "0.52157664", "0.5212852", "0.51834774", "0.517974", "0.51776737", "0.5171647", "0.51495373", "0.51489437", "0.5147232", "0.5143119", "0.51376903", "0.5136892", "0.5129655", "0.5128788", "0.51281846", "0.5123511", "0.5123511", "0.5123511", "0.5119315", "0.5117308", "0.5115476", "0.511324", "0.5111193", "0.51064724", "0.50996155", "0.50959724", "0.50922996", "0.50904846", "0.50853795", "0.5081188", "0.5073191" ]
0.0
-1
Converte a data passada em string retorna AAAAMMDD
public static String formatarDataSemBarra(Date data) { String retorno = ""; if (data != null) { // 1 Calendar dataCalendar = new GregorianCalendar(); StringBuffer dataBD = new StringBuffer(); dataCalendar.setTime(data); dataBD.append(dataCalendar.get(Calendar.YEAR)); if ((dataCalendar.get(Calendar.MONTH) + 1) > 9) { dataBD.append(dataCalendar.get(Calendar.MONTH) + 1); } else { dataBD.append("0" + (dataCalendar.get(Calendar.MONTH) + 1)); } if (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) { dataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH)); } else { dataBD.append("0" + dataCalendar.get(Calendar.DAY_OF_MONTH)); } retorno = dataBD.toString(); } return retorno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo5872a(String str, Data data);", "public static String formatarData(String data) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tif (data != null && !data.equals(\"\") && data.trim().length() == 8) {\r\n\r\n\t\t\tretorno = data.substring(6, 8) + \"/\" + data.substring(4, 6) + \"/\" + data.substring(0, 4);\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "public String encode_dados_acesso(){\n\n String result = \"\";\n\n try {\n String iddispositivo = Settings.Secure.getString(myContext.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n Uri.Builder builder = new Uri.Builder()\n .appendQueryParameter(TAG_IDDIUSPOSITIVO, iddispositivo)\n //.appendQueryParameter(TAG_EMAIL, v_email)\n //.appendQueryParameter(TAG_SENHA, v_senha)\n .appendQueryParameter(TAG_TEXTO, vTexto);\n\n result = builder.build().getEncodedQuery();\n Log.d(\"workshop encode:\",result);\n\n } catch (Exception e) {\n //Log.d(\"InputStream\", e.getLocalizedMessage());\n }\n\n // 11. return result\n return result;\n }", "public String encode_dados_acesso(){\n\n String result = \"\";\n\n try {\n String iddispositivo = Settings.Secure.getString(myContext.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n Uri.Builder builder = new Uri.Builder()\n .appendQueryParameter(TAG_IDDIUSPOSITIVO, iddispositivo)\n //.appendQueryParameter(TAG_EMAIL, v_email)\n //.appendQueryParameter(TAG_SENHA, v_senha)\n .appendQueryParameter(TAG_TEXTO, vTexto);\n\n result = builder.build().getEncodedQuery();\n Log.d(\"workshop encode:\",result);\n\n } catch (Exception e) {\n //Log.d(\"InputStream\", e.getLocalizedMessage());\n }\n\n // 11. return result\n return result;\n }", "public String getString_data() { \n char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,60)];\n int i;\n for (i = 0; i < carr.length; i++) {\n if ((char)getElement_data(i) == (char)0) break;\n carr[i] = (char)getElement_data(i);\n }\n return new String(carr,0,i);\n }", "Data mo12944a(String str) throws IllegalArgumentException;", "public static String converterddmmaaaaParaaaammdd(String data) {\n String[] aux = data.trim().split(\"/\");\n String dia = aux[0].length() < 2 ? \"0\" + aux[0] : aux[0];\n String mes = aux[1].length() < 2 ? \"0\" + aux[1] : aux[1];\n return aux[2] + mes + dia;\n }", "public static String converterddmmaaaaParaaaammdd(String data) {\n String[] aux = data.trim().split(\"/\");\n String dia = aux[0].length() < 2 ? \"0\" + aux[0] : aux[0];\n String mes = aux[1].length() < 2 ? \"0\" + aux[1] : aux[1];\n return aux[2] + mes + dia;\n }", "public String getDataString() {\r\n return formatoData.format(data);\r\n }", "private String cadenaABinario(String cadena){\n String cb = \"\";\n int longitud;\n for(int i = 0; i < cadena.length(); i++){\n cb += String.format(\"%8s\",Integer.toBinaryString(cadena.charAt(i)));\n }\n cb = formato(cb);\n return cb;\n }", "private static String convertToHex(byte[] data) throws IOException {\n //create new instance of string buffer\n StringBuffer stringBuffer = new StringBuffer();\n String hex = \"\";\n\n //encode byte data with base64\n hex = Base64.getEncoder().encodeToString(data);\n stringBuffer.append(hex);\n\n //return string\n return stringBuffer.toString();\n }", "java.lang.String getData();", "public static String converterDataSemBarraParaDataComBarra(String data) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tif (data != null && !data.equals(\"\") && data.trim().length() == 8) {\r\n\r\n\t\t\tretorno = data.substring(0, 2) + \"/\" + data.substring(2, 4) + \"/\" + data.substring(4, 8);\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "private static String convertDonnee(String donnee){\n byte[] tableau = convert.toBinaryFromString(donnee);\n StringBuilder sbDonnee = new StringBuilder();\n for (int i =0; i<tableau.length;i++){\n String too=Byte.toString(tableau[i]);\n sbDonnee.append(convert.decimalToBinary(Integer.parseInt(too)));\n }\n return sbDonnee.toString();\n }", "public java.lang.String getDataFromLMS();", "String getDataNascimento();", "String dibujar();", "public static String formatarDataAAAAMMDD(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public static String convert(String paramString)\n/* */ {\n/* 2703 */ if (paramString == null) {\n/* 2704 */ return null;\n/* */ }\n/* */ \n/* 2707 */ int i = -1;\n/* 2708 */ StringBuffer localStringBuffer = new StringBuffer();\n/* 2709 */ UCharacterIterator localUCharacterIterator = UCharacterIterator.getInstance(paramString);\n/* */ \n/* 2711 */ while ((i = localUCharacterIterator.nextCodePoint()) != -1) {\n/* 2712 */ switch (i) {\n/* */ case 194664: \n/* 2714 */ localStringBuffer.append(corrigendum4MappingTable[0]);\n/* 2715 */ break;\n/* */ case 194676: \n/* 2717 */ localStringBuffer.append(corrigendum4MappingTable[1]);\n/* 2718 */ break;\n/* */ case 194847: \n/* 2720 */ localStringBuffer.append(corrigendum4MappingTable[2]);\n/* 2721 */ break;\n/* */ case 194911: \n/* 2723 */ localStringBuffer.append(corrigendum4MappingTable[3]);\n/* 2724 */ break;\n/* */ case 195007: \n/* 2726 */ localStringBuffer.append(corrigendum4MappingTable[4]);\n/* 2727 */ break;\n/* */ default: \n/* 2729 */ UTF16.append(localStringBuffer, i);\n/* */ }\n/* */ \n/* */ }\n/* */ \n/* 2734 */ return localStringBuffer.toString();\n/* */ }", "public static String data(byte[] a)\n {\n if (a == null)\n return null;\n StringBuilder ret = new StringBuilder();\n int i = 0;\n while (a[i] != 0)\n {\n ret.append((char) a[i]);\n i++;\n }\n return ret.toString();\n }", "C8325a mo21498a(String str);", "String mo2801a(String str);", "public String getData(String rawData){\n\t\treturn \"1\";\n\t}", "public static String\n adnStringFieldToString(byte[] data, int offset, int length) {\n if (length == 0) {\n return \"\";\n }\n if (length >= 1) {\n if (data[offset] == (byte) 0x80) {\n int ucslen = (length - 1) / 2;\n String ret = null;\n\n try {\n ret = new String(data, offset + 1, ucslen * 2, \"utf-16be\");\n } catch (UnsupportedEncodingException ex) {\n Rlog.e(LOG_TAG, \"implausible UnsupportedEncodingException\",\n ex);\n }\n\n if (ret != null) {\n // trim off trailing FFFF characters\n\n ucslen = ret.length();\n while (ucslen > 0 && ret.charAt(ucslen - 1) == '\\uFFFF')\n ucslen--;\n\n return ret.substring(0, ucslen);\n }\n }\n }\n\n boolean isucs2 = false;\n char base = '\\0';\n int len = 0;\n\n if (length >= 3 && data[offset] == (byte) 0x81) {\n len = data[offset + 1] & 0xFF;\n if (len > length - 3)\n len = length - 3;\n\n base = (char) ((data[offset + 2] & 0xFF) << 7);\n offset += 3;\n isucs2 = true;\n } else if (length >= 4 && data[offset] == (byte) 0x82) {\n len = data[offset + 1] & 0xFF;\n if (len > length - 4)\n len = length - 4;\n\n base = (char) (((data[offset + 2] & 0xFF) << 8) |\n (data[offset + 3] & 0xFF));\n offset += 4;\n isucs2 = true;\n }\n\n if (isucs2) {\n StringBuilder ret = new StringBuilder();\n\n while (len > 0) {\n // UCS2 subset case\n\n if (data[offset] < 0) {\n ret.append((char) (base + (data[offset] & 0x7F)));\n offset++;\n len--;\n }\n\n // GSM character set case\n\n int count = 0;\n while (count < len && data[offset + count] >= 0)\n count++;\n\n ret.append(GsmAlphabet.gsm8BitUnpackedToString(data,\n offset, count));\n\n offset += count;\n len -= count;\n }\n\n return ret.toString();\n }\n\n Resources resource = Resources.getSystem();\n String defaultCharset = \"\";\n try {\n defaultCharset =\n resource.getString(com.android.internal.R.string.gsm_alphabet_default_charset);\n } catch (NotFoundException e) {\n // Ignore Exception and defaultCharset is set to a empty string.\n }\n return GsmAlphabet.gsm8BitUnpackedToString(data, offset, length, defaultCharset.trim());\n }", "ResultData mo24177a(String str, String str2) throws Exception;", "public String formatData() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\n\t\t\tbuilder.append(this.iataCode);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.latitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.longitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.altitude);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.localTime);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.condition);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.temperature);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.pressure);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.humidity);\n\t\t\tbuilder.append(\"\\n\");\n\t\t\n\n\t\treturn builder.toString();\n\n\t}", "private String getPacketData(){\n\t\tString str = \"\";\n\t\tfor(int i=0;i<lenth_get/5;i++){\n\t\t\tstr = str + originalUPLMN[i];\n\t\t}\n\t\tif(DBUG){\n\t\t\tif(DEBUG) Log.d(LOG_TAG, \"getPacketData---str=\"+str);\n\t\t}\n\t\treturn str;\n\t}", "String getData();", "public static String formatarDataComTracoAAAAMMDD(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\t\t\tdataBD.append(\"-\");\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\t\t\tdataBD.append(\"-\");\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public static String toBaoMi(String secretKey, String data) throws Exception {\n\n \n\n \tSecretKeyFactory factory = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\");\n\n \tKeySpec spec = new PBEKeySpec(secretKey.toCharArray(), secretKey.getBytes(), 128, 256);\n\n \tSecretKey tmp = factory.generateSecret(spec);\n\n \tSecretKey key = new SecretKeySpec(tmp.getEncoded(), SuanFa);\n\n \t\n\n Cipher cipher = Cipher.getInstance(SuanFa);\n\n cipher.init(Cipher.ENCRYPT_MODE, key);\n\n \n\n return toShiLiuJinZhi(cipher.doFinal(data.getBytes()));\n\n }", "private static String loadConvert(String str) {\n\t\tint off = 0;\n\t\tint len = str.length();\n\t\tchar[] in = str.toCharArray();\n\t\tchar[] convtBuf = new char[1024];\n\t\tif (convtBuf.length < len) {\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0) {\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end) {\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\') {\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u') {\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar) {\n\t\t\t\t\t\tcase '0':\n\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\tcase '3':\n\t\t\t\t\t\tcase '4':\n\t\t\t\t\t\tcase '5':\n\t\t\t\t\t\tcase '6':\n\t\t\t\t\t\tcase '7':\n\t\t\t\t\t\tcase '8':\n\t\t\t\t\t\tcase '9':\n\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'a':\n\t\t\t\t\t\tcase 'b':\n\t\t\t\t\t\tcase 'c':\n\t\t\t\t\t\tcase 'd':\n\t\t\t\t\t\tcase 'e':\n\t\t\t\t\t\tcase 'f':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tcase 'C':\n\t\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcase 'E':\n\t\t\t\t\t\tcase 'F':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char) value;\n\t\t\t\t} else {\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}", "private String Interpretar(String num) {\r\n\t\tif(num.length() > 3)\r\n\t\t\treturn \"\";\r\n\t\tString salida=\"\";\r\n\t\t\r\n\t\tif(Dataposi(num,2) != 0)\r\n\t\t\tsalida = Centenas[Dataposi(num,2)-1];\r\n\t\t\r\n\t\tint k = Integer.parseInt(String.valueOf(Dataposi(num,1))+String.valueOf(Dataposi(num,0)));\r\n\r\n\t\tif(k <= 20)\r\n\t\t\tsalida += Numero[k];\r\n\t\telse {\r\n\t\t\tif(k > 30 && Dataposi(num,0) != 0)\r\n\t\t\t\tsalida += Decenas[Dataposi(num,1)-2] + \"Y \" + Numero[Dataposi(num,0)];\r\n\t\t\telse\r\n\t\t\t\tsalida += Decenas[Dataposi(num,1)-2] + Numero[Dataposi(num,0)];\r\n\t\t}\r\n\t\t//Caso especial con el 100\r\n\t\tif(Dataposi(num,2) == 1 && k == 0)\r\n\t\t\tsalida=\"CIEN\";\r\n\t\t\r\n\t\treturn salida;\r\n\t}", "public String toData() {\n return super.toData() + \"~S~\" + by;\n }", "Integer getDataStrt();", "public static String generateData() {\n\t\tStringBuilder res = new StringBuilder();\n\t\tres.append(generateID(9));\n\t\tres.append(\",\");\n\t\tres.append(\"Galsgow\");\n\t\tres.append(\",\");\n\t\tres.append(\"UK\");\n\t\tres.append(\",\");\n\t\tres.append(generateDate());\n\t\treturn res.toString();\n\t}", "private static String descifrarBase64(String arg) {\n Base64.Decoder decoder = Base64.getDecoder();\n byte[] decodedByteArray = decoder.decode(arg);\n\n return new String(decodedByteArray);\n }", "public String asString();", "String getBarcharDataQuery();", "String mo150a(String str);", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "private String m48359a(String str) {\n if (TextUtils.isEmpty(str)) {\n return \"\";\n }\n return C8145d.m48410a(str) ? \"xxxxxx\" : str;\n }", "private void sstring(Tlv tlv, String a){\n if(a != null){\n byte[] data = StringUtil.bytesOfStringCP_1251(a); \n //uint16 value (length)\n uint16(tlv, data.length + 1);\n //asciiz string \n tlv.addTlvData(DataWork.putArray(data)); \n tlv.addTlvData(DataWork.putByte(0x00)); \n }else{\n tlv.addTlvData(DataWork.putWordLE(0x00));\n tlv.addTlvData(DataWork.putWordLE(0x00));\n } \n }", "String transcribe(String dnaStrand) {\n\t\tStringBuilder rnaStrand = new StringBuilder();\n\t\t\n\t\tfor(int i=0; i<dnaStrand.length(); i++)\n\t\t{\n\t\t\t//using append function to add the characters in rnaStrand\n\t\t\trnaStrand.append(hm.get(dnaStrand.charAt(i)));\n\t\t}\n\t\t\n\t\t//return rnaStrand as String.\n\t\treturn rnaStrand.toString();\n\t}", "public static String convertOrarioToFascia(String data) {\n String[] data_splitted = data.split(\" \");\n String orario = data_splitted[1];\n String[] ora_string = orario.split(\":\");\n Integer ora = Integer.parseInt(ora_string[0]);\n if(ora<12){\n return \"prima\";\n }else{\n return \"seconda\";\n }\n }", "private static byte[] m24635a(Context context, String str) {\n String f = C6014b.m23956f();\n String string = Secure.getString(context.getContentResolver(), \"android_id\");\n String substring = str.substring(0, Math.min(8, str.length() - 1));\n StringBuilder sb = new StringBuilder();\n sb.append(substring);\n sb.append(f.substring(0, Math.min(8, f.length() - 1)));\n String sb2 = sb.toString();\n StringBuilder sb3 = new StringBuilder();\n sb3.append(sb2);\n sb3.append(string.substring(0, Math.min(8, string.length() - 1)));\n String sb4 = sb3.toString();\n if (sb4.length() != 24) {\n StringBuilder sb5 = new StringBuilder();\n sb5.append(sb4);\n sb5.append(str.substring(8, 24 - sb4.length()));\n sb4 = sb5.toString();\n }\n return sb4.getBytes();\n }", "String convertCAS(String CAS) {\n\t\t\n\t\tif (CAS.equals(\"427452 (uncertainty about the CAS No)\")) CAS=\"427452\";\n\t\t\n\t\tDecimalFormat df=new DecimalFormat(\"0\");\n\t\t\n\t\tdouble dCAS=Double.parseDouble(CAS);\n\t\t\n//\t\tSystem.out.println(CAS);\n\t\tCAS=df.format(dCAS);\n//\t\tSystem.out.println(CAS);\n\n\t\tString var3=CAS.substring(CAS.length()-1,CAS.length());\n\t\tCAS=CAS.substring(0,CAS.length()-1);\n\t\tString var2=CAS.substring(CAS.length()-2,CAS.length());\n\t\tCAS=CAS.substring(0,CAS.length()-2);\n\t\tString var1=CAS;\n\t\tString CASnew=var1+\"-\"+var2+\"-\"+var3;\n//\t\tSystem.out.println(CASnew);\n\t\treturn CASnew;\n\t}", "public static void main(String[] args) throws Exception {\n String data=\"=1&sta=dc4f223eb429&shop=1&token=123232jd&r=8134ad506c4e&id=12a2c334&type=check&data=t572007166r0e0c0h31624hb18fe34010150aps1800api5si10em2pl1024pll3072tag20 sp1\";\r\n// String data=\"=1&sta=dc4f223eb429&shop=1&token=123232jd&r=8134ad506c4e&id=12a2c334&type=configa&data=ch1cas5cat5sc5t30603970r0e0c0h47368cst36000iga1st1\";\r\n// System.out.println((int)'&');\r\n// System.out.println(data);\r\n// data = \"c3RhPTY4YzYzYWUwZGZlZiZzaG9wPTEmdG9rZW49MTIzMjMyamQmcj05NGQ5YjNhOWMyNmYmaWQ9MmRlY2ZkY2UmdHlwZT1wcm9iZWEmZGF0YT0lMDE5NGQ5YjNhOWMyNmYmJTAxJTAxMDAxN2M0Y2QwMWNmeCUwMTc4NjI1NmM2NzI1YkwlMDE1Yzk2OWQ3MWVmNjNRJTAxOTRkOWIzYTljMjZmJTIxJTAxN2NjNzA5N2Y0MWFmeCUwMSUwMWRjODVkZWQxNjE3ZjklMDE1NGRjMWQ3MmE0NDB4JTAxNzg2MjU2YzY3MjViRSUwMTVjOTY5ZDcxZWY2M0olMDE5NGQ5YjNhOWMyNmYlMUUlMDFlNGE3YTA5M2UzOTJ4JTAxNGMzNDg4OTQ5YjY2eCUwMTNjNDZkODMwZTAyMDYlMDElMDE2MGYxODk2ZjJmY2JDJTAxOTRkOWIzYTljMjZmKyUwMTkwYzM1ZjE3NWQ2MXglMDE0YzM0ODg5NDliNjZ4JTAxZTRhN2M1YzhjYzA4JTNBJTAxJTAxZjBiNDI5ZDI1MTFjWCUwMTVjOTY5ZDcxZWY2MyU1QyUwMWQ0NmE2YTE1NWJmMXglMDE5NGQ5YjNhOWMyNmYqJTAxPQ==\";\r\n// data = \"c3RhPTY4YzYzYWUwZGZlZiZzaG9wPTEmdG9rZW49MTIzMjMyamQmcj05NGQ5YjNhOWMyNmYmaWQ9NWY0NTQzZWMmdHlwZT1wcm9iZWEmZGF0YT0lMDE2OGM2M2FlMGRmZWYmJTAxMDhmNjljMDYzNDdmRSUwMTIwM2NhZThlMjZlY0clMDE9\";\r\n System.out.println(WIFIReportVO.buildWIFIReportVO(data));\r\n System.out.println(WIFIReportVO.buildWIFIReportVO(new String(Base64Utils.decodeFromString(data))));\r\n\r\n// HttpUtils.postJSON(\"http://127.0.0.1:8080/soundtooth/callout\" , \"{\\\"user_name\\\":\\\"用户名\\\",\\\"iSeatNo\\\":\\\"1001001\\\",\\\"callId\\\":\\\"210ab0fdfca1439ba268a6bf8266305c\\\",\\\"telA\\\":\\\"18133331269\\\",\\\"telB\\\":\\\"181****1200\\\",\\\"telX\\\":\\\"17100445588\\\",\\\"telG\\\":\\\"07556882659\\\",\\\"duration\\\":\\\"19\\\",\\\"userData\\\":\\\"ef7ede6f36c84f1d45333863c38ff14c\\\"}\");\r\n//// HttpUtils.postJSON(\"http://127.0.0.1:8080/soundtooth/callout\" , \"{\\\"user_name\\\":\\\"用户名\\\",\\\"iSeatNo\\\":\\\"1001001\\\",\\\"callId\\\":\\\"210ab0fdfca1439ba268a6bf8266305c\\\",\\\"telA\\\":\\\"18133331269\\\",\\\"telB\\\":\\\"181****1200\\\",\\\"telX\\\":\\\"17100445588\\\",\\\"telG\\\":\\\"07556882659\\\",\\\"duration\\\":\\\"19\\\",\\\"userData\\\":\\\"ef7ede6f36c84f1d45333863c38ff14c\\\"}\");\r\n// System.out.println(HttpUtils.postJSON(\"http://s.slstdt.com/collector/collect\" , \"\"));\r\n// System.out.println(HttpUtils.postJSON(\"http://s.slstdt.com/soundtooth/callout\" , \"\"));\r\n\r\n\r\n }", "public abstract String toDBString();", "public String amd_to_dma(java.sql.Date d)\n {\n String resp = \"\";\n if (d!=null)\n {\n String sdat = d.toString();\n String sano = sdat.substring(0,4);\n String smes = sdat.substring(5,7);\n String sdia = sdat.substring(8,10);\n resp = sdia+\"/\"+smes+\"/\"+sano;\n }\n return resp;\n }", "java.lang.String getEncoded();", "public final String mo4983Fk() {\n AppMethodBeat.m2504i(128894);\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"InstanceId:\").append(this.ddx);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppId:\").append(this.ddc);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppVersion:\").append(this.ddd);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppState:\").append(this.dgQ);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppType:\").append(this.ddz);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"CostTimeMs:\").append(this.ddA);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"Scene:\").append(this.cVR);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"StartTimeStampMs:\").append(this.ddB);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"EndTimeStampMs:\").append(this.ddC);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"path:\").append(this.bUh);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"isPreload:\").append(this.ddg);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"isPreloadPageFrame:\").append(this.deD);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"networkTypeStr:\").append(this.dex);\n String stringBuffer2 = stringBuffer.toString();\n AppMethodBeat.m2505o(128894);\n return stringBuffer2;\n }", "String mo21078i();", "public abstract byte[] mo32305a(String str);", "void mo5871a(String str);", "public String formataDataNascimento(String dataNascimentoInserida) {\n String dataNascimentoString;\n SimpleDateFormat formatadorDataNascimento = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date dataNascimento = new Date();\n try {\n dataNascimento = formatadorDataNascimento.parse((dataNascimentoInserida));\n } catch (ParseException ex) {\n this.telaFuncionario.mensagemErroDataNascimento();\n dataNascimentoString = cadastraDataNascimento();\n return dataNascimentoString;\n }\n dataNascimentoString = formatadorDataNascimento.format(dataNascimento);\n dataNascimentoString = controlaConfirmacaoCadastroDataNascimento(dataNascimentoString);\n return dataNascimentoString;\n }", "public String getTranslation()\n {\n StringBuilder aminoAcid = new StringBuilder();\n Map<String, String> codToAa = Map.ofEntries(\n entry(\"ATA\", \"I\"), entry(\"ATC\", \"I\"), entry(\"ATT\", \"I\"), entry(\"ATG\", \"M\"),\n entry(\"ACA\", \"T\"), entry(\"ACC\", \"T\"), entry(\"ACG\", \"T\"), entry(\"ACT\", \"T\"),\n entry(\"AAC\", \"N\"), entry(\"AAT\", \"N\"), entry(\"AAA\", \"K\"), entry(\"AAG\", \"K\"),\n entry(\"AGC\", \"S\"), entry(\"AGT\", \"S\"), entry(\"AGA\", \"R\"), entry(\"AGG\", \"R\"),\n entry(\"CTA\", \"L\"), entry(\"CTC\", \"L\"), entry(\"CTG\", \"L\"), entry(\"CTT\", \"L\"),\n entry(\"CCA\", \"P\"), entry(\"CCC\", \"P\"), entry(\"CCG\", \"P\"), entry(\"CCT\", \"P\"),\n entry(\"CAC\", \"H\"), entry(\"CAT\", \"H\"), entry(\"CAA\", \"Q\"), entry(\"CAG\", \"Q\"),\n entry(\"CGA\", \"R\"), entry(\"CGC\", \"R\"), entry(\"CGG\", \"R\"), entry(\"CGT\", \"R\"),\n entry(\"GTA\", \"V\"), entry(\"GTC\", \"V\"), entry(\"GTG\", \"V\"), entry(\"GTT\", \"V\"),\n entry(\"GCA\", \"A\"), entry(\"GCC\", \"A\"), entry(\"GCG\", \"A\"), entry(\"GCT\", \"A\"),\n entry(\"GAC\", \"D\"), entry(\"GAT\", \"D\"), entry(\"GAA\", \"E\"), entry(\"GAG\", \"E\"),\n entry(\"GGA\", \"G\"), entry(\"GGC\", \"G\"), entry(\"GGG\", \"G\"), entry(\"GGT\", \"G\"),\n entry(\"TCA\", \"S\"), entry(\"TCC\", \"S\"), entry(\"TCG\", \"S\"), entry(\"TCT\", \"S\"),\n entry(\"TTC\", \"F\"), entry(\"TTT\", \"F\"), entry(\"TTA\", \"L\"), entry(\"TTG\", \"L\"),\n entry(\"TAC\", \"Y\"), entry(\"TAT\", \"Y\"), entry(\"TAA\", \"_\"), entry(\"TAG\", \"_\"),\n entry(\"TGC\", \"C\"), entry(\"TGT\", \"C\"), entry(\"TGA\", \"_\"), entry(\"TGG\", \"W\")\n );\n try\n {\n for (int i = 0; i < this.sequence.length(); i += 3)\n {\n aminoAcid.append(codToAa.get(this.sequence.substring(i, i + 3)));\n }\n }\n catch (StringIndexOutOfBoundsException ignored)\n {\n }\n return aminoAcid.toString();\n }", "String mo2800a();", "private void convertToString(String s)\n\t{\n\t\tchar chars[] = s.toCharArray();\n\t\tfor(int i = 0; i < chars.length; i+=3)\n\t\t{\n\t\t\tString temp = \"\";\n\t\t\ttemp += chars[i];\n\t\t\ttemp += chars[i+1];\n\t\t\tif(chars[i] < '3')\n\t\t\t{\n\t\t\t\ttemp += chars[i+2];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ti -= 1;\n\t\t\t}\n\t\t\t\n\t\t\tif(!temp.equals(\"256\"))\n\t\t\t{\n\t\t\t\tmyDecryptedMessage += (char)(Integer.parseInt(temp));\n\t\t\t}\n\t\t}\n\t}", "String decodeString();", "String getCADENA_TRAMA();", "public String get(String parametro) {\n\t\tString dato = \"\";\n\t\tswitch (parametro) {\n\t\tcase \"nombre\":\n\t\t\tdato = getNombre();\n\t\t\tbreak;\n\t\tcase \"apellido\":\n\t\t\tdato = getApellido();\n\t\t\tbreak;\n\t\tcase \"dni\":\n\t\t\tdato = getDni();\n\t\t\tbreak;\n\t\tcase \"edad\":\n\t\t\tdato = Integer.toString(getEdad());\n\t\t\tbreak;\n\t\tcase \"telefono\":\n\t\t\tdato = Integer.toString(getTelefono());\n\t\t\tbreak;\n\t\tcase \"domicilio\":\n\t\t\tdato = getDomicilio();\n\t\t\tbreak;\n\t\t}\n\t\treturn dato;\n\t}", "public abstract String mo24851a(String str);", "private String parseStringtoInt(String welcome,Student s1){\n\n String time = TimeUitl.getTime(s1);\n\n String slogan = welcome + time;\n\n return slogan;\n }", "public String pid_011C(String str){\n\nString standar=\"Unknow\";\n switch(str.charAt(1)){\n case '1':{standar=\"OBD-II as defined by the CARB\";break;} \n case '2':{standar=\"OBD as defined by the EPA\";break;}\n case '3':{standar=\"OBD and OBD-II\";break;}\n case '4':{standar=\"OBD-I\";break;}\n case '5':{standar=\"Not meant to comply with any OBD standard\";break;}\n case '6':{standar=\"EOBD (Europe)\";break;}\n case '7':{standar=\"EOBD and OBD-II\";break;}\n case '8':{standar=\"EOBD and OBD\";break;}\n case '9':{standar=\"EOBD, OBD and OBD II\";break;}\n case 'A':{standar=\"JOBD (Japan)\";break;}\n case 'B':{standar=\"JOBD and OBD II\";break;} \n case 'C':{standar=\"JOBD and EOBD\";break;}\n case 'D':{standar=\"JOBD, EOBD, and OBD II\";break;} \n default: {break;} \n }\n \n return standar;\n}", "static String makeData(String key,\n String value) {\n return format(DATA_FMT, key, value);\n }", "String asString();", "java.lang.String getAdresa();", "public String getAgcData ()\n\t{\n\t\tString agcData = getContent().substring(OFF_ID27_AGC_DATA, OFF_ID27_AGC_DATA + LEN_ID27_AGC_DATA) ;\n\t\treturn (agcData);\n\t}", "void mo1582a(String str, C1329do c1329do);", "void mo303a(C0237a c0237a, String str, String str2, String str3);", "C12000e mo41087c(String str);", "public String makeConversion(String value);", "public Data(String data){\n String[] dataAux = data.split(\"/\");\n dia = Integer.parseInt(dataAux[0]);\n mes = Integer.parseInt(dataAux[1]);\n ano = Integer.parseInt(dataAux[2]);\n }", "String mo131984a();", "@Test\n\t public void teststringAPI_success() {\n\t\tString testData = \"My data is right\";\n\t\tchar charData='a';\n\t\tString expected = \"My dt is right\";\n\t\tString actualStr=stringObj.stringAPI(testData, charData);\n\t\tSystem.out.println(actualStr);\n\t\tassertEquals(\"Got Expected Result\", expected, actualStr);\n\t }", "public abstract java.lang.String getAcma_cierre();", "public String codifica(String cadena) {\n MessageDigest messageDigest = null;\n\n //Se crea objeto de string buffer para almacenar la concatenacion de los datos del arreglo.\n StringBuffer sb = null;\n try {\n //Se inicializa el objeto y se le pasa el tipo de encriptacion deseada\n messageDigest = MessageDigest.getInstance(\"SHA-512\");\n\n //Se extraen los bytes que contiene la cadena\n byte[] encripta = messageDigest.digest(cadena.getBytes());\n\n //Se inicializa un objeto tipo String buffer\n sb = new StringBuffer();\n\n //Se recorre el arreglo de bytes que genero messageDigest\n for (byte hashB : encripta) {\n // se concatena los datos obtenidos del arreglo\n sb.append(String.format(\"%02x\", hashB));\n }\n\n } catch (Exception e) {\n// log.info(e.getMessage());\n// errorService.createError(e.getMessage(), \"Error encriptando la cadena: \"+ cadena);\n }\n\n return sb.toString();\n }", "public final String mo4982Fj() {\n int i;\n AppMethodBeat.m2504i(128893);\n String str = \",\";\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(this.ddx);\n stringBuffer.append(str);\n stringBuffer.append(this.ddc);\n stringBuffer.append(str);\n stringBuffer.append(this.ddd);\n stringBuffer.append(str);\n if (this.dgQ != null) {\n i = this.dgQ.value;\n } else {\n i = -1;\n }\n stringBuffer.append(i);\n stringBuffer.append(str);\n stringBuffer.append(this.ddz);\n stringBuffer.append(str);\n stringBuffer.append(this.ddA);\n stringBuffer.append(str);\n stringBuffer.append(this.cVR);\n stringBuffer.append(str);\n stringBuffer.append(this.ddB);\n stringBuffer.append(str);\n stringBuffer.append(this.ddC);\n stringBuffer.append(str);\n stringBuffer.append(this.bUh);\n stringBuffer.append(str);\n stringBuffer.append(this.ddg);\n stringBuffer.append(str);\n stringBuffer.append(this.deD);\n stringBuffer.append(str);\n stringBuffer.append(this.dex);\n String stringBuffer2 = stringBuffer.toString();\n mo74164VX(stringBuffer2);\n AppMethodBeat.m2505o(128893);\n return stringBuffer2;\n }", "private String formato(String cadena){\n cadena = cadena.replaceAll(\" \",\"0\");\n return cadena;\n }", "public void toStr()\r\n {\r\n numar = Integer.toString(read());\r\n while(numar.length() % 3 != 0){\r\n numar = \"0\" + numar; //Se completeaza cu zerouri pana numarul de cifre e multiplu de 3.\r\n }\r\n }", "void mo8713dV(String str);", "String readString();", "public static String convertDateToSend(String gotdate){\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(Long.parseLong(gotdate));\n SimpleDateFormat inputFormat = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n SimpleDateFormat outputFormat = new SimpleDateFormat(\"dd MMM yyyy\");\n /*Date parsedDate = null;\n try {\n parsedDate = inputFormat.parse(gotdate);\n } catch (ParseException e) {\n e.printStackTrace();\n }*/\n String formattedDate = outputFormat.format(calendar.getTime());\n return formattedDate;\n }", "abstract String mo1747a(String str);", "@Override\r\n\tpublic String desencriptar(String string) {\n\r\n\t\tString palabra = string;\r\n\t\tString[] parts = string.split(\",\");\r\n String newName=\"\";\r\n for (int i = 0; i < parts.length; i++) {\r\n // instrucción switch con tipo de datos int\r\n switch (parts[i]) \r\n {\r\n case \"1\" : newName+=\"a\";\r\n break;\r\n case \"2\" : newName+=\"b\";\r\n break;\r\n case \"3\" : newName+=\"c\";\r\n break;\r\n case \"4\" : newName+=\"d\";\r\n break;\r\n case \"5\" : newName+=\"e\";\r\n break;\r\n case \"6\" : newName+=\"f\";\r\n break;\r\n case \"7\" : newName+=\"g\";\r\n break;\r\n case \"8\" : newName+=\"h\";\r\n break;\r\n case \"9\" : newName+=\"i\";\r\n break;\r\n case \"10\" : newName+=\"j\";\r\n break;\r\n case \"11\" : newName+=\"k\";\r\n break;\r\n case \"12\" : newName+=\"l\";\r\n break;\r\n case \"13\" : newName+=\"m\";\r\n break;\r\n case \"14\" : newName+=\"n\";\r\n break;\r\n case \"15\" : newName+=\"ñ\";\r\n break;\r\n case \"16\" : newName+=\"o\";\r\n break;\r\n case \"17\" : newName+=\"p\";\r\n break;\r\n case \"18\" : newName+=\"q\";\r\n break;\r\n case \"19\" : newName+=\"r\";\r\n break;\r\n case \"20\" : newName+=\"s\";\r\n break;\r\n case \"21\" : newName+=\"t\";\r\n break;\r\n case \"22\" : newName+=\"u\";\r\n break;\r\n case \"23\" : newName+=\"v\";\r\n break;\r\n case \"24\" : newName+=\"w\";\r\n break;\r\n case \"25\" : newName+=\"x\";\r\n break;\r\n case \"26\" : newName+=\"y\";\r\n break;\r\n case \"27\" : newName+=\"z\";\r\n break;\r\n case \"0\" : newName+=\" \";\r\n break;\r\n case \"28\" : newName+=\" \";\r\n break;\r\n \r\n \r\n }\r\n \r\n }\r\n \r\n return newName ;\r\n\t}", "public String toText(String braille);", "protected abstract SingleKeyVersionDataExtractor<DATA> generateDataKeyAsString () ;", "java.lang.String getField1252();", "protected String obterData(String format) {\n\t\tDateFormat formato = new SimpleDateFormat(format);\n\t\tDate data = new Date();\n\t\treturn formato.format(data).toString();\n\t}", "public final String mo4983Fk() {\n AppMethodBeat.m2504i(50547);\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"Tid:\").append(this.cZt);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoUrl:\").append(this.cZu);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"NewMd5:\").append(this.cVC);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"DownloadStartTime:\").append(this.cVD);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"DownloadEndTime:\").append(this.cVE);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoSize:\").append(this.cVF);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoDuration:\").append(this.cVG);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoBitrate:\").append(this.cVH);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AudioBitrate:\").append(this.cVI);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoFps:\").append(this.cVJ);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoWidth:\").append(this.cVK);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoHeight:\").append(this.cVL);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"CDNIp:\").append(this.cVM);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"OriginalAudioChannel:\").append(this.cVN);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"HadPreloadSize:\").append(this.cVO);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"HadPreloadCompletion:\").append(this.cVP);\n String stringBuffer2 = stringBuffer.toString();\n AppMethodBeat.m2505o(50547);\n return stringBuffer2;\n }", "public static String retirarFormatacaoCEP(String codigo) {\r\n\r\n\t\tString retornoCEP = null;\r\n\r\n\t\tString parte1 = codigo.substring(0, 2);\r\n\t\tString parte2 = codigo.substring(3, 6);\r\n\t\tString parte3 = codigo.substring(7, 10);\r\n\r\n\t\tretornoCEP = parte1 + parte2 + parte3;\r\n\r\n\t\treturn retornoCEP;\r\n\t}", "public static void main(String[] args) {\n\t\tString s = \"twckwuyvbihajbmhmodminftgpdcbquupwflqfiunpuwtigfwjtgzzcfofjpydjnzqysvgmiyifrrlwpwpyvqadefmvfshsrxsltbxbziiqbvosufqpwsucyjyfbhauesgzvfdwnloojejdkzugsrksakzbrzxwudxpjaoyocpxhycrxwzrpllpwlsnkqlevjwejkfxmuwvsyopxpjmbuexfwksoywkhsqqevqtpoohpd\";\n\t\tString s2 = convert(s, 4);\n\t\tSystem.out.println(s2);\n\t}", "public final void mo118723c(String str) {\n EventMessage abVar;\n C32569u.m150519b(str, C6969H.m41409d(\"G7A97C737AC37\"));\n EventMessage abVar2 = null;\n try {\n abVar = EventMessage.f96677a.decode(Base64.decode(str, 0));\n } catch (Exception e) {\n VideoXOnlineLog.f101073b.mo121420a(\"link api 轮询 msg decode error : {}\", String.valueOf(e.getMessage()));\n abVar = abVar2;\n }\n if (abVar != null && !f97544a.m134904a(abVar, C6969H.m41409d(\"G658ADB11FF31BB20\"))) {\n VideoXOnlineLog abVar3 = VideoXOnlineLog.f101073b;\n String abVar4 = abVar.toString();\n C32569u.m150513a((Object) abVar4, C6969H.m41409d(\"G60979B0EB003BF3BEF009700BB\"));\n abVar3.mo121420a(\"msg, link api , 消息 : {}\", abVar4);\n f97544a.m134907b(abVar);\n }\n }", "public String dana() {\n\t\treturn \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\";\n\t}", "private static String getValue(String rawValue) {\n\t\trawValue = rawValue.trim();\n\t\tString f1 = \"\";\n\t\tString f2 = \"\";\n\t\tfor (int t = 1; t < rawValue.length() - 1; t++) {\n\t\t\tf1 += rawValue.charAt(t);\n\t\t}\n\t\tfor (int t = 0; t < f1.length() && t < 16; t++) {\n\t\t\tf2 += f1.charAt(t);\n\t\t}\n\t\treturn f2;\n\t}", "public String convert()\r\n\t{\r\n\t\treturn str;\r\n\t}", "public String mo543a(C0164ce ceVar, String str) throws C0172ck {\n try {\n return new String(mo544a(ceVar), str);\n } catch (UnsupportedEncodingException e) {\n throw new C0172ck(\"JVM DOES NOT SUPPORT ENCODING: \" + str);\n }\n }", "private static String adaptarFecha(int fecha) {\n\t\tString fechaFormateada = String.valueOf(fecha);\n\t\twhile(fechaFormateada.length()<2){\n\t\t\tfechaFormateada = \"0\"+fechaFormateada;\n\t\t}\n\n\t\treturn fechaFormateada;\n\t}", "public String getTestData(String TC)\r\n\t{\r\n\t\tString regData=testData.get(TC);\r\n\t\t\r\n\t\tif(regData.split(\",\")[0].length()>9)\r\n\t\t\tregData=regData.replace(regData.split(\",\")[0], Generic.generateMobileNumber());\r\n\t\t\r\n\t\treturn regData;\r\n\t}", "String mo1889a(String str, String str2, String str3, String str4);", "String mo1888b(String str, String str2, String str3, String str4);" ]
[ "0.6593871", "0.64254594", "0.6283302", "0.6283302", "0.6243354", "0.61936253", "0.61371887", "0.61371887", "0.60226554", "0.59228575", "0.59056634", "0.5870554", "0.5844119", "0.58333534", "0.5791031", "0.5781586", "0.5746472", "0.57409036", "0.5706424", "0.56900513", "0.5679848", "0.5674931", "0.5666642", "0.56573176", "0.564307", "0.5639326", "0.56373", "0.5621989", "0.5617834", "0.5613802", "0.5603896", "0.55936575", "0.5592309", "0.55744773", "0.5562858", "0.5559355", "0.55450773", "0.5542026", "0.5524004", "0.55210835", "0.550281", "0.5502412", "0.5497589", "0.5455122", "0.5453407", "0.5453062", "0.54377973", "0.54281324", "0.5423953", "0.5421858", "0.5419105", "0.541887", "0.5412445", "0.54079384", "0.54078317", "0.5404972", "0.5399719", "0.5399113", "0.53910697", "0.53868306", "0.5386513", "0.5378551", "0.5377403", "0.53742486", "0.53729635", "0.5372231", "0.53559023", "0.5351999", "0.5350374", "0.53451574", "0.5306889", "0.53067005", "0.5305516", "0.52893424", "0.5288507", "0.52795935", "0.5278964", "0.5266805", "0.5260337", "0.52567744", "0.5252524", "0.52477026", "0.5243628", "0.52404827", "0.5235366", "0.5231968", "0.52210104", "0.52206355", "0.5220177", "0.52186006", "0.5218268", "0.52158576", "0.5215464", "0.52113116", "0.52046585", "0.5201303", "0.5196889", "0.5194398", "0.5186055", "0.5184843", "0.5183197" ]
0.0
-1
Converte a data passada em string retorna DDMMAAAA
public static String formatarDataSemBarraDDMMAAAA(Date data) { String retorno = ""; if (data != null) { // 1 Calendar dataCalendar = new GregorianCalendar(); StringBuffer dataBD = new StringBuffer(); dataCalendar.setTime(data); if (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) { dataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH)); } else { dataBD.append("0" + dataCalendar.get(Calendar.DAY_OF_MONTH)); } if ((dataCalendar.get(Calendar.MONTH) + 1) > 9) { dataBD.append(dataCalendar.get(Calendar.MONTH) + 1); } else { dataBD.append("0" + (dataCalendar.get(Calendar.MONTH) + 1)); } dataBD.append(dataCalendar.get(Calendar.YEAR)); retorno = dataBD.toString(); } return retorno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo5872a(String str, Data data);", "public static String converterddmmaaaaParaaaammdd(String data) {\n String[] aux = data.trim().split(\"/\");\n String dia = aux[0].length() < 2 ? \"0\" + aux[0] : aux[0];\n String mes = aux[1].length() < 2 ? \"0\" + aux[1] : aux[1];\n return aux[2] + mes + dia;\n }", "public static String converterddmmaaaaParaaaammdd(String data) {\n String[] aux = data.trim().split(\"/\");\n String dia = aux[0].length() < 2 ? \"0\" + aux[0] : aux[0];\n String mes = aux[1].length() < 2 ? \"0\" + aux[1] : aux[1];\n return aux[2] + mes + dia;\n }", "Data mo12944a(String str) throws IllegalArgumentException;", "public String getString_data() { \n char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,60)];\n int i;\n for (i = 0; i < carr.length; i++) {\n if ((char)getElement_data(i) == (char)0) break;\n carr[i] = (char)getElement_data(i);\n }\n return new String(carr,0,i);\n }", "public String encode_dados_acesso(){\n\n String result = \"\";\n\n try {\n String iddispositivo = Settings.Secure.getString(myContext.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n Uri.Builder builder = new Uri.Builder()\n .appendQueryParameter(TAG_IDDIUSPOSITIVO, iddispositivo)\n //.appendQueryParameter(TAG_EMAIL, v_email)\n //.appendQueryParameter(TAG_SENHA, v_senha)\n .appendQueryParameter(TAG_TEXTO, vTexto);\n\n result = builder.build().getEncodedQuery();\n Log.d(\"workshop encode:\",result);\n\n } catch (Exception e) {\n //Log.d(\"InputStream\", e.getLocalizedMessage());\n }\n\n // 11. return result\n return result;\n }", "public String encode_dados_acesso(){\n\n String result = \"\";\n\n try {\n String iddispositivo = Settings.Secure.getString(myContext.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n Uri.Builder builder = new Uri.Builder()\n .appendQueryParameter(TAG_IDDIUSPOSITIVO, iddispositivo)\n //.appendQueryParameter(TAG_EMAIL, v_email)\n //.appendQueryParameter(TAG_SENHA, v_senha)\n .appendQueryParameter(TAG_TEXTO, vTexto);\n\n result = builder.build().getEncodedQuery();\n Log.d(\"workshop encode:\",result);\n\n } catch (Exception e) {\n //Log.d(\"InputStream\", e.getLocalizedMessage());\n }\n\n // 11. return result\n return result;\n }", "public java.lang.String getDataFromLMS();", "public static String data(byte[] a)\n {\n if (a == null)\n return null;\n StringBuilder ret = new StringBuilder();\n int i = 0;\n while (a[i] != 0)\n {\n ret.append((char) a[i]);\n i++;\n }\n return ret.toString();\n }", "public static String formatarData(String data) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tif (data != null && !data.equals(\"\") && data.trim().length() == 8) {\r\n\r\n\t\t\tretorno = data.substring(6, 8) + \"/\" + data.substring(4, 6) + \"/\" + data.substring(0, 4);\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "public static String formatarDataAAAAMMDD(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public String getDataString() {\r\n return formatoData.format(data);\r\n }", "public static String formatarDataComTracoAAAAMMDD(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\t\t\tdataBD.append(\"-\");\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\t\t\tdataBD.append(\"-\");\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "java.lang.String getData();", "private String cadenaABinario(String cadena){\n String cb = \"\";\n int longitud;\n for(int i = 0; i < cadena.length(); i++){\n cb += String.format(\"%8s\",Integer.toBinaryString(cadena.charAt(i)));\n }\n cb = formato(cb);\n return cb;\n }", "private static String convertToHex(byte[] data) throws IOException {\n //create new instance of string buffer\n StringBuffer stringBuffer = new StringBuffer();\n String hex = \"\";\n\n //encode byte data with base64\n hex = Base64.getEncoder().encodeToString(data);\n stringBuffer.append(hex);\n\n //return string\n return stringBuffer.toString();\n }", "public static String\n adnStringFieldToString(byte[] data, int offset, int length) {\n if (length == 0) {\n return \"\";\n }\n if (length >= 1) {\n if (data[offset] == (byte) 0x80) {\n int ucslen = (length - 1) / 2;\n String ret = null;\n\n try {\n ret = new String(data, offset + 1, ucslen * 2, \"utf-16be\");\n } catch (UnsupportedEncodingException ex) {\n Rlog.e(LOG_TAG, \"implausible UnsupportedEncodingException\",\n ex);\n }\n\n if (ret != null) {\n // trim off trailing FFFF characters\n\n ucslen = ret.length();\n while (ucslen > 0 && ret.charAt(ucslen - 1) == '\\uFFFF')\n ucslen--;\n\n return ret.substring(0, ucslen);\n }\n }\n }\n\n boolean isucs2 = false;\n char base = '\\0';\n int len = 0;\n\n if (length >= 3 && data[offset] == (byte) 0x81) {\n len = data[offset + 1] & 0xFF;\n if (len > length - 3)\n len = length - 3;\n\n base = (char) ((data[offset + 2] & 0xFF) << 7);\n offset += 3;\n isucs2 = true;\n } else if (length >= 4 && data[offset] == (byte) 0x82) {\n len = data[offset + 1] & 0xFF;\n if (len > length - 4)\n len = length - 4;\n\n base = (char) (((data[offset + 2] & 0xFF) << 8) |\n (data[offset + 3] & 0xFF));\n offset += 4;\n isucs2 = true;\n }\n\n if (isucs2) {\n StringBuilder ret = new StringBuilder();\n\n while (len > 0) {\n // UCS2 subset case\n\n if (data[offset] < 0) {\n ret.append((char) (base + (data[offset] & 0x7F)));\n offset++;\n len--;\n }\n\n // GSM character set case\n\n int count = 0;\n while (count < len && data[offset + count] >= 0)\n count++;\n\n ret.append(GsmAlphabet.gsm8BitUnpackedToString(data,\n offset, count));\n\n offset += count;\n len -= count;\n }\n\n return ret.toString();\n }\n\n Resources resource = Resources.getSystem();\n String defaultCharset = \"\";\n try {\n defaultCharset =\n resource.getString(com.android.internal.R.string.gsm_alphabet_default_charset);\n } catch (NotFoundException e) {\n // Ignore Exception and defaultCharset is set to a empty string.\n }\n return GsmAlphabet.gsm8BitUnpackedToString(data, offset, length, defaultCharset.trim());\n }", "private static String convertDonnee(String donnee){\n byte[] tableau = convert.toBinaryFromString(donnee);\n StringBuilder sbDonnee = new StringBuilder();\n for (int i =0; i<tableau.length;i++){\n String too=Byte.toString(tableau[i]);\n sbDonnee.append(convert.decimalToBinary(Integer.parseInt(too)));\n }\n return sbDonnee.toString();\n }", "String transcribe(String dnaStrand) {\n\t\tStringBuilder rnaStrand = new StringBuilder();\n\t\t\n\t\tfor(int i=0; i<dnaStrand.length(); i++)\n\t\t{\n\t\t\t//using append function to add the characters in rnaStrand\n\t\t\trnaStrand.append(hm.get(dnaStrand.charAt(i)));\n\t\t}\n\t\t\n\t\t//return rnaStrand as String.\n\t\treturn rnaStrand.toString();\n\t}", "private String getPacketData(){\n\t\tString str = \"\";\n\t\tfor(int i=0;i<lenth_get/5;i++){\n\t\t\tstr = str + originalUPLMN[i];\n\t\t}\n\t\tif(DBUG){\n\t\t\tif(DEBUG) Log.d(LOG_TAG, \"getPacketData---str=\"+str);\n\t\t}\n\t\treturn str;\n\t}", "public String getData(String rawData){\n\t\treturn \"1\";\n\t}", "public static String converterDataSemBarraParaDataComBarra(String data) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tif (data != null && !data.equals(\"\") && data.trim().length() == 8) {\r\n\r\n\t\t\tretorno = data.substring(0, 2) + \"/\" + data.substring(2, 4) + \"/\" + data.substring(4, 8);\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "String getDataNascimento();", "private static byte[] m24635a(Context context, String str) {\n String f = C6014b.m23956f();\n String string = Secure.getString(context.getContentResolver(), \"android_id\");\n String substring = str.substring(0, Math.min(8, str.length() - 1));\n StringBuilder sb = new StringBuilder();\n sb.append(substring);\n sb.append(f.substring(0, Math.min(8, f.length() - 1)));\n String sb2 = sb.toString();\n StringBuilder sb3 = new StringBuilder();\n sb3.append(sb2);\n sb3.append(string.substring(0, Math.min(8, string.length() - 1)));\n String sb4 = sb3.toString();\n if (sb4.length() != 24) {\n StringBuilder sb5 = new StringBuilder();\n sb5.append(sb4);\n sb5.append(str.substring(8, 24 - sb4.length()));\n sb4 = sb5.toString();\n }\n return sb4.getBytes();\n }", "public String amd_to_dma(java.sql.Date d)\n {\n String resp = \"\";\n if (d!=null)\n {\n String sdat = d.toString();\n String sano = sdat.substring(0,4);\n String smes = sdat.substring(5,7);\n String sdia = sdat.substring(8,10);\n resp = sdia+\"/\"+smes+\"/\"+sano;\n }\n return resp;\n }", "String getCADENA_TRAMA();", "C8325a mo21498a(String str);", "String getBarcharDataQuery();", "public String getTranslation()\n {\n StringBuilder aminoAcid = new StringBuilder();\n Map<String, String> codToAa = Map.ofEntries(\n entry(\"ATA\", \"I\"), entry(\"ATC\", \"I\"), entry(\"ATT\", \"I\"), entry(\"ATG\", \"M\"),\n entry(\"ACA\", \"T\"), entry(\"ACC\", \"T\"), entry(\"ACG\", \"T\"), entry(\"ACT\", \"T\"),\n entry(\"AAC\", \"N\"), entry(\"AAT\", \"N\"), entry(\"AAA\", \"K\"), entry(\"AAG\", \"K\"),\n entry(\"AGC\", \"S\"), entry(\"AGT\", \"S\"), entry(\"AGA\", \"R\"), entry(\"AGG\", \"R\"),\n entry(\"CTA\", \"L\"), entry(\"CTC\", \"L\"), entry(\"CTG\", \"L\"), entry(\"CTT\", \"L\"),\n entry(\"CCA\", \"P\"), entry(\"CCC\", \"P\"), entry(\"CCG\", \"P\"), entry(\"CCT\", \"P\"),\n entry(\"CAC\", \"H\"), entry(\"CAT\", \"H\"), entry(\"CAA\", \"Q\"), entry(\"CAG\", \"Q\"),\n entry(\"CGA\", \"R\"), entry(\"CGC\", \"R\"), entry(\"CGG\", \"R\"), entry(\"CGT\", \"R\"),\n entry(\"GTA\", \"V\"), entry(\"GTC\", \"V\"), entry(\"GTG\", \"V\"), entry(\"GTT\", \"V\"),\n entry(\"GCA\", \"A\"), entry(\"GCC\", \"A\"), entry(\"GCG\", \"A\"), entry(\"GCT\", \"A\"),\n entry(\"GAC\", \"D\"), entry(\"GAT\", \"D\"), entry(\"GAA\", \"E\"), entry(\"GAG\", \"E\"),\n entry(\"GGA\", \"G\"), entry(\"GGC\", \"G\"), entry(\"GGG\", \"G\"), entry(\"GGT\", \"G\"),\n entry(\"TCA\", \"S\"), entry(\"TCC\", \"S\"), entry(\"TCG\", \"S\"), entry(\"TCT\", \"S\"),\n entry(\"TTC\", \"F\"), entry(\"TTT\", \"F\"), entry(\"TTA\", \"L\"), entry(\"TTG\", \"L\"),\n entry(\"TAC\", \"Y\"), entry(\"TAT\", \"Y\"), entry(\"TAA\", \"_\"), entry(\"TAG\", \"_\"),\n entry(\"TGC\", \"C\"), entry(\"TGT\", \"C\"), entry(\"TGA\", \"_\"), entry(\"TGG\", \"W\")\n );\n try\n {\n for (int i = 0; i < this.sequence.length(); i += 3)\n {\n aminoAcid.append(codToAa.get(this.sequence.substring(i, i + 3)));\n }\n }\n catch (StringIndexOutOfBoundsException ignored)\n {\n }\n return aminoAcid.toString();\n }", "ResultData mo24177a(String str, String str2) throws Exception;", "public abstract byte[] mo32305a(String str);", "public static String convert(String paramString)\n/* */ {\n/* 2703 */ if (paramString == null) {\n/* 2704 */ return null;\n/* */ }\n/* */ \n/* 2707 */ int i = -1;\n/* 2708 */ StringBuffer localStringBuffer = new StringBuffer();\n/* 2709 */ UCharacterIterator localUCharacterIterator = UCharacterIterator.getInstance(paramString);\n/* */ \n/* 2711 */ while ((i = localUCharacterIterator.nextCodePoint()) != -1) {\n/* 2712 */ switch (i) {\n/* */ case 194664: \n/* 2714 */ localStringBuffer.append(corrigendum4MappingTable[0]);\n/* 2715 */ break;\n/* */ case 194676: \n/* 2717 */ localStringBuffer.append(corrigendum4MappingTable[1]);\n/* 2718 */ break;\n/* */ case 194847: \n/* 2720 */ localStringBuffer.append(corrigendum4MappingTable[2]);\n/* 2721 */ break;\n/* */ case 194911: \n/* 2723 */ localStringBuffer.append(corrigendum4MappingTable[3]);\n/* 2724 */ break;\n/* */ case 195007: \n/* 2726 */ localStringBuffer.append(corrigendum4MappingTable[4]);\n/* 2727 */ break;\n/* */ default: \n/* 2729 */ UTF16.append(localStringBuffer, i);\n/* */ }\n/* */ \n/* */ }\n/* */ \n/* 2734 */ return localStringBuffer.toString();\n/* */ }", "@VisibleForTesting\n protected static byte[] getGalileoDataByteArray(String dwrd) {\n String dataString = dwrd.substring(0, dwrd.length() - 8);\n byte[] data = BaseEncoding.base16().lowerCase().decode(dataString.toLowerCase());\n // Removing bytes 16 and 32 (they are padding which should be always zero)\n byte[] dataStart = Arrays.copyOfRange(data, 0, 15);\n byte[] dataEnd = Arrays.copyOfRange(data, 16, 31);\n byte[] result = new byte[dataStart.length + dataEnd.length];\n\n System.arraycopy(dataStart, 0, result, 0, dataStart.length);\n System.arraycopy(dataEnd, 0, result, 15, dataEnd.length);\n return result;\n }", "private void sstring(Tlv tlv, String a){\n if(a != null){\n byte[] data = StringUtil.bytesOfStringCP_1251(a); \n //uint16 value (length)\n uint16(tlv, data.length + 1);\n //asciiz string \n tlv.addTlvData(DataWork.putArray(data)); \n tlv.addTlvData(DataWork.putByte(0x00)); \n }else{\n tlv.addTlvData(DataWork.putWordLE(0x00));\n tlv.addTlvData(DataWork.putWordLE(0x00));\n } \n }", "String getData();", "public String formatData() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\n\t\t\tbuilder.append(this.iataCode);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.latitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.longitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.altitude);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.localTime);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.condition);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.temperature);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.pressure);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.humidity);\n\t\t\tbuilder.append(\"\\n\");\n\t\t\n\n\t\treturn builder.toString();\n\n\t}", "public final void mo118723c(String str) {\n EventMessage abVar;\n C32569u.m150519b(str, C6969H.m41409d(\"G7A97C737AC37\"));\n EventMessage abVar2 = null;\n try {\n abVar = EventMessage.f96677a.decode(Base64.decode(str, 0));\n } catch (Exception e) {\n VideoXOnlineLog.f101073b.mo121420a(\"link api 轮询 msg decode error : {}\", String.valueOf(e.getMessage()));\n abVar = abVar2;\n }\n if (abVar != null && !f97544a.m134904a(abVar, C6969H.m41409d(\"G658ADB11FF31BB20\"))) {\n VideoXOnlineLog abVar3 = VideoXOnlineLog.f101073b;\n String abVar4 = abVar.toString();\n C32569u.m150513a((Object) abVar4, C6969H.m41409d(\"G60979B0EB003BF3BEF009700BB\"));\n abVar3.mo121420a(\"msg, link api , 消息 : {}\", abVar4);\n f97544a.m134907b(abVar);\n }\n }", "static void lda_from_mem(String passed){\n\t\tregisters.put('A', memory.get(hexa_to_deci(passed.substring(4))));\n\t}", "private String m48359a(String str) {\n if (TextUtils.isEmpty(str)) {\n return \"\";\n }\n return C8145d.m48410a(str) ? \"xxxxxx\" : str;\n }", "private char[] toDSUID(UUID uuid) {\n ByteBuffer bb = ByteBuffer.wrap(new byte[17]);\n bb.putLong(uuid.getMostSignificantBits());\n bb.putLong(uuid.getLeastSignificantBits());\n\n String s_uuid = DatatypeConverter.printHexBinary(bb.array());\n return s_uuid.toCharArray();\n }", "byte[] getStructuredData(String messageData);", "public static String generateData() {\n\t\tStringBuilder res = new StringBuilder();\n\t\tres.append(generateID(9));\n\t\tres.append(\",\");\n\t\tres.append(\"Galsgow\");\n\t\tres.append(\",\");\n\t\tres.append(\"UK\");\n\t\tres.append(\",\");\n\t\tres.append(generateDate());\n\t\treturn res.toString();\n\t}", "private String parseDN(byte[] buffer, TLV dn) {\n TLV attribute;\n TLV type;\n TLV value;\n StringBuffer name = new StringBuffer(256);\n\n /*\n * Name ::= CHOICE { RDNSequence } # CHOICE does not encoded\n *\n * RDNSequence ::= SEQUENCE OF RelativeDistinguishedName\n *\n * RelativeDistinguishedName ::= SET OF AttributeTypeAndValue\n *\n * AttributeTypeAndValue ::= SEQUENCE {\n * type AttributeType,\n * value AttributeValue }\n *\n * AttributeType ::= OBJECT IDENTIFIER\n *\n * AttributeValue ::= ANY DEFINED BY AttributeType\n *\n * basically this means that each attribute value is 3 levels down\n */\n\n // sequence drop down a level\n attribute = dn.child;\n \n while (attribute != null) {\n if (attribute != dn.child) {\n name.append(\";\");\n }\n\n /*\n * we do not handle relative distinguished names yet\n * which should not be used by CAs anyway\n * so only take the first element of the sequence\n */\n\n type = attribute.child.child;\n\n /*\n * At this point we tag the name component, e.g. C= or hex\n * if unknown.\n */\n if ((type.length == 3) && (buffer[type.valueOffset] == 0x55) &&\n (buffer[type.valueOffset + 1] == 0x04)) {\n // begins with id-at, so try to see if we have a label\n int temp = buffer[type.valueOffset + 2] & 0xFF;\n if ((temp < AttrLabel.length) &&\n (AttrLabel[temp] != null)) {\n name.append(AttrLabel[temp]);\n } else {\n name.append(TLV.hexEncode(buffer, type.valueOffset,\n type.length, -1));\n }\n } else if (TLV.byteMatch(buffer, type.valueOffset,\n type.length, EMAIL_ATTR_OID,\n 0, EMAIL_ATTR_OID.length)) {\n name.append(EMAIL_ATTR_LABEL);\n } else {\n name.append(TLV.hexEncode(buffer, type.valueOffset,\n type.length, -1));\n }\n\n name.append(\"=\");\n\n value = attribute.child.child.next;\n if (value.type == TLV.PRINTSTR_TYPE ||\n value.type == TLV.TELETEXSTR_TYPE ||\n value.type == TLV.UTF8STR_TYPE ||\n value.type == TLV.IA5STR_TYPE ||\n value.type == TLV.UNIVSTR_TYPE) {\n try {\n name.append(new String(buffer, value.valueOffset,\n value.length, \"UTF-8\"));\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e.toString());\n }\n } else {\n name.append(TLV.hexEncode(buffer, value.valueOffset,\n value.length, -1));\n }\n\n attribute = attribute.next;\n }\n\n return name.toString();\n }", "public String dana() {\n\t\treturn \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\";\n\t}", "static String makeData(String key,\n String value) {\n return format(DATA_FMT, key, value);\n }", "public static String toBaoMi(String secretKey, String data) throws Exception {\n\n \n\n \tSecretKeyFactory factory = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\");\n\n \tKeySpec spec = new PBEKeySpec(secretKey.toCharArray(), secretKey.getBytes(), 128, 256);\n\n \tSecretKey tmp = factory.generateSecret(spec);\n\n \tSecretKey key = new SecretKeySpec(tmp.getEncoded(), SuanFa);\n\n \t\n\n Cipher cipher = Cipher.getInstance(SuanFa);\n\n cipher.init(Cipher.ENCRYPT_MODE, key);\n\n \n\n return toShiLiuJinZhi(cipher.doFinal(data.getBytes()));\n\n }", "String dibujar();", "public final String mo4983Fk() {\n AppMethodBeat.m2504i(128894);\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"InstanceId:\").append(this.ddx);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppId:\").append(this.ddc);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppVersion:\").append(this.ddd);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppState:\").append(this.dgQ);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppType:\").append(this.ddz);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"CostTimeMs:\").append(this.ddA);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"Scene:\").append(this.cVR);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"StartTimeStampMs:\").append(this.ddB);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"EndTimeStampMs:\").append(this.ddC);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"path:\").append(this.bUh);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"isPreload:\").append(this.ddg);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"isPreloadPageFrame:\").append(this.deD);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"networkTypeStr:\").append(this.dex);\n String stringBuffer2 = stringBuffer.toString();\n AppMethodBeat.m2505o(128894);\n return stringBuffer2;\n }", "public String toData() {\n return super.toData() + \"~S~\" + by;\n }", "public void setData(String d) {\n _data = d.getBytes();\n }", "public String getAgcData ()\n\t{\n\t\tString agcData = getContent().substring(OFF_ID27_AGC_DATA, OFF_ID27_AGC_DATA + LEN_ID27_AGC_DATA) ;\n\t\treturn (agcData);\n\t}", "public String getTestData(String TC)\r\n\t{\r\n\t\tString regData=testData.get(TC);\r\n\t\t\r\n\t\tif(regData.split(\",\")[0].length()>9)\r\n\t\t\tregData=regData.replace(regData.split(\",\")[0], Generic.generateMobileNumber());\r\n\t\t\r\n\t\treturn regData;\r\n\t}", "private String doDrTranslate(String pDrCode) {\n\n byte[] aCode = pDrCode.getBytes();\n String aDrCode = pDrCode;\n\n if (aCode.length == 5 && !mFacility.matches(\"BHH|PJC|MAR|ANG\")) {\n int i;\n for (i = 1; i < aCode.length; i++) {\n if ((i == 1 || i == 2) && (aCode[i] < 'A' || aCode[i] > 'Z')) { // Check for \"aa\" part of format\n aDrCode = k.NULL ;\n } else if ((i == 3 || i == 4 || i==5) && (aCode[i] < '0' || aCode[i] > '9')) { // Check for \"nnn\" part of format\n aDrCode = k.NULL ;\n }\n }\n return pDrCode;\n\n } else {\n if (mFacility.equalsIgnoreCase(\"SDMH\")) {\n CodeLookUp aSDMHDrTranslate = new CodeLookUp(\"Dr_Translation.table\", \"SDMH\", mEnvironment);\n aDrCode = aSDMHDrTranslate.getValue(pDrCode);\n\n if (aDrCode.length() == 5 ) {\n aDrCode = k.NULL;\n }\n } else if (mFacility.equalsIgnoreCase(\"CGMC\")) {\n if (! pDrCode.equalsIgnoreCase(\"UNK\")) {\n aDrCode = k.NULL ;\n }\n } else if (mFacility.equalsIgnoreCase(\"ALF\")) {\n aDrCode = k.NULL ;\n } else {\n //covers eastern health systems\n aDrCode = pDrCode;\n }\n }\n return aDrCode;\n\n }", "public static void main(String[] args) throws Exception {\n String data=\"=1&sta=dc4f223eb429&shop=1&token=123232jd&r=8134ad506c4e&id=12a2c334&type=check&data=t572007166r0e0c0h31624hb18fe34010150aps1800api5si10em2pl1024pll3072tag20 sp1\";\r\n// String data=\"=1&sta=dc4f223eb429&shop=1&token=123232jd&r=8134ad506c4e&id=12a2c334&type=configa&data=ch1cas5cat5sc5t30603970r0e0c0h47368cst36000iga1st1\";\r\n// System.out.println((int)'&');\r\n// System.out.println(data);\r\n// data = \"c3RhPTY4YzYzYWUwZGZlZiZzaG9wPTEmdG9rZW49MTIzMjMyamQmcj05NGQ5YjNhOWMyNmYmaWQ9MmRlY2ZkY2UmdHlwZT1wcm9iZWEmZGF0YT0lMDE5NGQ5YjNhOWMyNmYmJTAxJTAxMDAxN2M0Y2QwMWNmeCUwMTc4NjI1NmM2NzI1YkwlMDE1Yzk2OWQ3MWVmNjNRJTAxOTRkOWIzYTljMjZmJTIxJTAxN2NjNzA5N2Y0MWFmeCUwMSUwMWRjODVkZWQxNjE3ZjklMDE1NGRjMWQ3MmE0NDB4JTAxNzg2MjU2YzY3MjViRSUwMTVjOTY5ZDcxZWY2M0olMDE5NGQ5YjNhOWMyNmYlMUUlMDFlNGE3YTA5M2UzOTJ4JTAxNGMzNDg4OTQ5YjY2eCUwMTNjNDZkODMwZTAyMDYlMDElMDE2MGYxODk2ZjJmY2JDJTAxOTRkOWIzYTljMjZmKyUwMTkwYzM1ZjE3NWQ2MXglMDE0YzM0ODg5NDliNjZ4JTAxZTRhN2M1YzhjYzA4JTNBJTAxJTAxZjBiNDI5ZDI1MTFjWCUwMTVjOTY5ZDcxZWY2MyU1QyUwMWQ0NmE2YTE1NWJmMXglMDE5NGQ5YjNhOWMyNmYqJTAxPQ==\";\r\n// data = \"c3RhPTY4YzYzYWUwZGZlZiZzaG9wPTEmdG9rZW49MTIzMjMyamQmcj05NGQ5YjNhOWMyNmYmaWQ9NWY0NTQzZWMmdHlwZT1wcm9iZWEmZGF0YT0lMDE2OGM2M2FlMGRmZWYmJTAxMDhmNjljMDYzNDdmRSUwMTIwM2NhZThlMjZlY0clMDE9\";\r\n System.out.println(WIFIReportVO.buildWIFIReportVO(data));\r\n System.out.println(WIFIReportVO.buildWIFIReportVO(new String(Base64Utils.decodeFromString(data))));\r\n\r\n// HttpUtils.postJSON(\"http://127.0.0.1:8080/soundtooth/callout\" , \"{\\\"user_name\\\":\\\"用户名\\\",\\\"iSeatNo\\\":\\\"1001001\\\",\\\"callId\\\":\\\"210ab0fdfca1439ba268a6bf8266305c\\\",\\\"telA\\\":\\\"18133331269\\\",\\\"telB\\\":\\\"181****1200\\\",\\\"telX\\\":\\\"17100445588\\\",\\\"telG\\\":\\\"07556882659\\\",\\\"duration\\\":\\\"19\\\",\\\"userData\\\":\\\"ef7ede6f36c84f1d45333863c38ff14c\\\"}\");\r\n//// HttpUtils.postJSON(\"http://127.0.0.1:8080/soundtooth/callout\" , \"{\\\"user_name\\\":\\\"用户名\\\",\\\"iSeatNo\\\":\\\"1001001\\\",\\\"callId\\\":\\\"210ab0fdfca1439ba268a6bf8266305c\\\",\\\"telA\\\":\\\"18133331269\\\",\\\"telB\\\":\\\"181****1200\\\",\\\"telX\\\":\\\"17100445588\\\",\\\"telG\\\":\\\"07556882659\\\",\\\"duration\\\":\\\"19\\\",\\\"userData\\\":\\\"ef7ede6f36c84f1d45333863c38ff14c\\\"}\");\r\n// System.out.println(HttpUtils.postJSON(\"http://s.slstdt.com/collector/collect\" , \"\"));\r\n// System.out.println(HttpUtils.postJSON(\"http://s.slstdt.com/soundtooth/callout\" , \"\"));\r\n\r\n\r\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "String mo2801a(String str);", "private static String descifrarBase64(String arg) {\n Base64.Decoder decoder = Base64.getDecoder();\n byte[] decodedByteArray = decoder.decode(arg);\n\n return new String(decodedByteArray);\n }", "public String MaToDaa(double ma) {\n // daa = ma/10000\n double daa = ma/10000;\n return check_after_decimal_point(daa);\n }", "public String toFIPAString() {\n String str = \"(\" + type.toUpperCase() + \"\\n\";\n if ( sender != null )\n str += \" :sender ( \" + getSender_As_FIPA_String() + \" )\\n\";\n if ( receivers != null && !receivers.isEmpty() ) {\n str += \" :receiver (set \";\n Enumeration allRec = getFIPAReceivers();\n while (allRec.hasMoreElements()) {\n FIPA_AID_Address addr = (FIPA_AID_Address) allRec.nextElement();\n String current =\"(\" + addr.toFIPAString() +\")\";\n str += current; }\n str += \" )\\n\";\n }\n if ( replyWith != null )\n str += \" :reply-with \" + replyWith + \"\\n\";\n if ( inReplyTo != null )\n str += \" :in-reply-to \" + inReplyTo + \"\\n\";\n if ( replyBy != null )\n str += \" :reply-by \" + replyBy + \"\\n\";\n if ( ontology != null )\n str += \" :ontology \" + ontology + \"\\n\";\n if ( language != null )\n str += \" :language \" + language + \"\\n\";\n if ( content != null )\n // try no \"'s // brackets may be SL specific\n str += \" :content \\\"\" + content + \"\\\"\\n\";//\" :content \\\"( \" +Misc.escape(content) + \")\\\"\\n\";\n if ( protocol != null )\n str += \" :protocol \" + protocol + \"\\n\";\n if ( conversationId != null )\n str += \" :conversation-id \" + conversationId + \"\\n\";\n if ( replyTo != null )\n str += \" :reply-to \" + replyTo + \"\\n\";\n /*\n if ( envelope != null && !envelope.isEmpty() ) {\n str += \" :envelope (\";\n Enumeration enum = envelope.keys();\n String key;\n Object value;\n while( enum.hasMoreElements() ) {\n key = (String)enum.nextElement();\n value = envelope.get(key);\n str += \"(\" + key + \" \\\"\" + Misc.escape(value.toString()) + \"\\\")\";\n }*/\n // str += \")\";\n //}\n \n str += \")\\n\";\n return str;\n }", "public String HaToDaa(double ha) {\n // daa = 10*ha\n double daa = ha*10;\n return check_after_decimal_point(daa);\n }", "void mo1582a(String str, C1329do c1329do);", "String getATCUD();", "private String convertToMdy(String fechaDocumento)\n {\n String ahnio = fechaDocumento.substring(0, 4);\n String mes = fechaDocumento.substring(4, 6);\n String dia = fechaDocumento.substring(6, 8);\n \n return String.format( \"%s-%s-%s\", ahnio, mes, dia );\n }", "public String\nrdataToString() {\n\tStringBuffer sb = new StringBuffer();\n\tif (signature != null) {\n\t\tsb.append (Type.string(covered));\n\t\tsb.append (\" \");\n\t\tsb.append (alg);\n\t\tsb.append (\" \");\n\t\tsb.append (labels);\n\t\tsb.append (\" \");\n\t\tsb.append (origttl);\n\t\tsb.append (\" \");\n\t\tif (Options.check(\"multiline\"))\n\t\t\tsb.append (\"(\\n\\t\");\n\t\tsb.append (formatDate(expire));\n\t\tsb.append (\" \");\n\t\tsb.append (formatDate(timeSigned));\n\t\tsb.append (\" \");\n\t\tsb.append (footprint);\n\t\tsb.append (\" \");\n\t\tsb.append (signer);\n\t\tif (Options.check(\"multiline\")) {\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(base64.formatString(signature, 64, \"\\t\",\n\t\t\t\t true));\n\t\t} else {\n\t\t\tsb.append (\" \");\n\t\t\tsb.append(base64.toString(signature));\n\t\t}\n\t}\n\treturn sb.toString();\n}", "private static byte[] m5293aA(String str) {\n try {\n if (TextUtils.isEmpty(str)) {\n return null;\n }\n StringBuilder sb = new StringBuilder();\n sb.append(str);\n sb.append(C1248f.getKey());\n return Arrays.copyOf(sb.toString().getBytes(AudienceNetworkActivity.WEBVIEW_ENCODING), 16);\n } catch (Throwable unused) {\n return null;\n }\n }", "void mo303a(C0237a c0237a, String str, String str2, String str3);", "Integer getDataStrt();", "public void setDataFromLMS(java.lang.String dataFromLMS);", "public static String byteArrayToDataString(byte[] inBytes)\n\t{\n\t\tStringBuffer playerDataString = new StringBuffer();\n\t\t\n\t\tfor (int byteIndex = 0; byteIndex < inBytes.length; byteIndex++)\n\t\t{\n\t\t\tplayerDataString.append(\" \");\n\n\t\t\tif (inBytes[byteIndex] >= 0)\n\t\t\t{\n\t\t\t\tplayerDataString.append(Integer.toHexString(inBytes[byteIndex]).toUpperCase());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tplayerDataString.append(Integer.toHexString(inBytes[byteIndex]).toUpperCase().substring(6));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn playerDataString.toString();\n\t}", "private String getDataAttributes() {\n StringBuilder sb = new StringBuilder();\n\n dataAttribute.forEach((key, value) -> {\n sb.append(key).append(\"='\").append(value).append(\"' \");\n });\n\n return sb.toString().trim();\n }", "String mo150a(String str);", "C12000e mo41087c(String str);", "public final String mo29756a(C12012d dVar) {\n C12011c cVar;\n C12014b bVar = new C12014b(this.f32164b);\n StringBuilder sb = new StringBuilder(\"\");\n String str = \"\";\n if (dVar.f31950e != null && dVar.f31950e.size() > 0) {\n List a = bVar.mo29662a(dVar.f31950e);\n for (int i = 0; i < dVar.f31950e.size(); i++) {\n if (((C12009a) a.get(i)).f31930b != null) {\n StringBuilder sb2 = new StringBuilder(\",\\\"\");\n sb2.append(new File((String) dVar.f31950e.get(i)).getName());\n sb2.append(\"\\\":\\\"\");\n sb2.append((String) ((C12009a) a.get(i)).f31930b.getUrlList().get(0));\n sb2.append(\"\\\"\");\n sb.append(sb2.toString());\n }\n }\n }\n C12015c cVar2 = new C12015c(this.f32164b);\n if (dVar.f31949d != null && dVar.f31949d.size() > 0) {\n List a2 = cVar2.mo29663a(dVar.f31949d);\n String str2 = str;\n for (int i2 = 0; i2 < dVar.f31949d.size(); i2++) {\n if (((C12009a) a2.get(i2)).f31930b != null) {\n StringBuilder sb3 = new StringBuilder(\",\\\"\");\n sb3.append(new File((String) dVar.f31949d.get(i2)).getName());\n sb3.append(\"\\\":\\\"\");\n sb3.append((String) ((C12009a) a2.get(i2)).f31930b.getUrlList().get(0));\n sb3.append(\"\\\"\");\n sb.append(sb3.toString());\n str2 = ((C12009a) a2.get(i2)).f31930b.getUri();\n }\n }\n str = str2;\n }\n String sb4 = sb.toString();\n if (!sb4.equals(\"\")) {\n sb4 = sb4.substring(1);\n }\n StringBuilder sb5 = new StringBuilder(\"{\");\n sb5.append(sb4);\n sb5.append(\"}\");\n try {\n cVar = (C12011c) C12013a.m35082a().fastback(dVar.f31946a, 1, URLEncoder.encode(dVar.f31947b, \"UTF-8\"), URLEncoder.encode(dVar.f31948c, \"UTF-8\"), URLEncoder.encode(sb5.toString(), \"UTF-8\"), URLEncoder.encode(str, \"UTF-8\"), C12072c.m35216a(), \"Android\", m35239a(C11999a.m35070a())).get();\n } catch (Throwable unused) {\n cVar = null;\n }\n if (cVar == null) {\n return \"Failure to submit, please try again.\";\n }\n if (cVar.f31944a == 0) {\n return \"\";\n }\n if (TextUtils.isEmpty(cVar.f31945b)) {\n return \"Failure to submit, please try again.\";\n }\n return cVar.f31945b;\n }", "private void convertToString(String s)\n\t{\n\t\tchar chars[] = s.toCharArray();\n\t\tfor(int i = 0; i < chars.length; i+=3)\n\t\t{\n\t\t\tString temp = \"\";\n\t\t\ttemp += chars[i];\n\t\t\ttemp += chars[i+1];\n\t\t\tif(chars[i] < '3')\n\t\t\t{\n\t\t\t\ttemp += chars[i+2];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ti -= 1;\n\t\t\t}\n\t\t\t\n\t\t\tif(!temp.equals(\"256\"))\n\t\t\t{\n\t\t\t\tmyDecryptedMessage += (char)(Integer.parseInt(temp));\n\t\t\t}\n\t\t}\n\t}", "static String m61434a(C18815c cVar, String str) {\n StringBuilder sb = new StringBuilder(str);\n C18800a aVar = cVar.f50716k;\n if (aVar != null) {\n sb.append(aVar.f50683b.mo50069a());\n }\n List<C18800a> list = cVar.f50717l;\n if (list != null) {\n int size = list.size();\n for (int i = 0; i < size; i++) {\n if (i > 0 || aVar != null) {\n sb.append(\", \");\n }\n sb.append(((C18800a) list.get(i)).f50683b.mo50069a());\n }\n }\n return sb.toString();\n }", "public java.lang.String getAdresa() {\n java.lang.Object ref = adresa_;\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 adresa_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "java.lang.String getField1305();", "public final String mo4982Fj() {\n int i;\n AppMethodBeat.m2504i(128893);\n String str = \",\";\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(this.ddx);\n stringBuffer.append(str);\n stringBuffer.append(this.ddc);\n stringBuffer.append(str);\n stringBuffer.append(this.ddd);\n stringBuffer.append(str);\n if (this.dgQ != null) {\n i = this.dgQ.value;\n } else {\n i = -1;\n }\n stringBuffer.append(i);\n stringBuffer.append(str);\n stringBuffer.append(this.ddz);\n stringBuffer.append(str);\n stringBuffer.append(this.ddA);\n stringBuffer.append(str);\n stringBuffer.append(this.cVR);\n stringBuffer.append(str);\n stringBuffer.append(this.ddB);\n stringBuffer.append(str);\n stringBuffer.append(this.ddC);\n stringBuffer.append(str);\n stringBuffer.append(this.bUh);\n stringBuffer.append(str);\n stringBuffer.append(this.ddg);\n stringBuffer.append(str);\n stringBuffer.append(this.deD);\n stringBuffer.append(str);\n stringBuffer.append(this.dex);\n String stringBuffer2 = stringBuffer.toString();\n mo74164VX(stringBuffer2);\n AppMethodBeat.m2505o(128893);\n return stringBuffer2;\n }", "public String fromPacketToString() {\r\n\t\tString message = Integer.toString(senderID) + PACKET_SEPARATOR + Integer.toString(packetID) + PACKET_SEPARATOR + type + PACKET_SEPARATOR;\r\n\t\tfor (String word:content) {\r\n\t\t\tmessage = message + word + PACKET_SEPARATOR;\r\n\t\t}\r\n\t\treturn message;\r\n\t}", "protected abstract SingleKeyVersionDataExtractor<DATA> generateDataKeyAsString () ;", "String convertCAS(String CAS) {\n\t\t\n\t\tif (CAS.equals(\"427452 (uncertainty about the CAS No)\")) CAS=\"427452\";\n\t\t\n\t\tDecimalFormat df=new DecimalFormat(\"0\");\n\t\t\n\t\tdouble dCAS=Double.parseDouble(CAS);\n\t\t\n//\t\tSystem.out.println(CAS);\n\t\tCAS=df.format(dCAS);\n//\t\tSystem.out.println(CAS);\n\n\t\tString var3=CAS.substring(CAS.length()-1,CAS.length());\n\t\tCAS=CAS.substring(0,CAS.length()-1);\n\t\tString var2=CAS.substring(CAS.length()-2,CAS.length());\n\t\tCAS=CAS.substring(0,CAS.length()-2);\n\t\tString var1=CAS;\n\t\tString CASnew=var1+\"-\"+var2+\"-\"+var3;\n//\t\tSystem.out.println(CASnew);\n\t\treturn CASnew;\n\t}", "public static void main(String args[])\r\n\t{\n\t\ttry {\r\n\t\t\tString s = \"{\\\"wfycdwmc\\\":\\\"河西单位0712\\\",\\\"sfbj\\\":\\\"0\\\"}\";\r\n\t\t sun.misc.BASE64Encoder necoder = new sun.misc.BASE64Encoder(); \r\n\t\t String ss = necoder.encode(s.getBytes());\r\n\t\t System.out.println(ss);\r\n\t\t sun.misc.BASE64Decoder decoder = new sun.misc.BASE64Decoder();\r\n\t\t byte[] bt = decoder.decodeBuffer(ss); \r\n\t\t ss = new String(bt, \"UTF-8\");\r\n\t\t System.out.println(ss);\r\n//\t\t\tClient client = new Client(new URL(url));\r\n////\t\t\tObject[] token = client.invoke(\"getToken\",new Object[] {tokenUser,tokenPwd});//获取token\r\n//\t\t\tObject[] zyjhbh = client.invoke(apiName,new Object[] {\"120000\"});\r\n//\t\t\tSystem.out.println(zyjhbh[0].toString());\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static String createArffData(DataSet dataSet){\n StringBuilder sb = new StringBuilder();\n sb.append(\"@data\\n\");\n for(int i = 0; i < dataSet.getRows(); i++){\n for(int j = 0; j < dataSet.getColumns() - 1; j++){\n sb.append(dataSet.getEntryInDataSet(i, j));\n sb.append(\",\");\n }\n sb.append(dataSet.getEntryInDataSet(i, dataSet.getColumns() - 1));\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n return sb.toString();\n }", "public String pid_011C(String str){\n\nString standar=\"Unknow\";\n switch(str.charAt(1)){\n case '1':{standar=\"OBD-II as defined by the CARB\";break;} \n case '2':{standar=\"OBD as defined by the EPA\";break;}\n case '3':{standar=\"OBD and OBD-II\";break;}\n case '4':{standar=\"OBD-I\";break;}\n case '5':{standar=\"Not meant to comply with any OBD standard\";break;}\n case '6':{standar=\"EOBD (Europe)\";break;}\n case '7':{standar=\"EOBD and OBD-II\";break;}\n case '8':{standar=\"EOBD and OBD\";break;}\n case '9':{standar=\"EOBD, OBD and OBD II\";break;}\n case 'A':{standar=\"JOBD (Japan)\";break;}\n case 'B':{standar=\"JOBD and OBD II\";break;} \n case 'C':{standar=\"JOBD and EOBD\";break;}\n case 'D':{standar=\"JOBD, EOBD, and OBD II\";break;} \n default: {break;} \n }\n \n return standar;\n}", "private static String m12564b(String str, String str2, String str3) {\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 4 + String.valueOf(str2).length() + String.valueOf(str3).length());\n sb.append(str);\n sb.append(\"|T|\");\n sb.append(str2);\n sb.append(\"|\");\n sb.append(str3);\n return sb.toString();\n }", "static void sta_to_mem(String passed){\n\t\tmemory.put(hexa_to_deci(passed.substring(4)),registers.get('A'));\n\t\t//System.out.println(memory.get(hexa_to_deci(passed.substring(4))));\n\t}", "String decodeString();", "public String formataDataNascimento(String dataNascimentoInserida) {\n String dataNascimentoString;\n SimpleDateFormat formatadorDataNascimento = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date dataNascimento = new Date();\n try {\n dataNascimento = formatadorDataNascimento.parse((dataNascimentoInserida));\n } catch (ParseException ex) {\n this.telaFuncionario.mensagemErroDataNascimento();\n dataNascimentoString = cadastraDataNascimento();\n return dataNascimentoString;\n }\n dataNascimentoString = formatadorDataNascimento.format(dataNascimento);\n dataNascimentoString = controlaConfirmacaoCadastroDataNascimento(dataNascimentoString);\n return dataNascimentoString;\n }", "static void adi_data_with_acc(String passed){\n\t\tint sum = hexa_to_deci(registers.get('A'));\n\t\tsum+=hexa_to_deci(passed.substring(4));\n\t\tCS = sum>255?true:false;\n\t\tregisters.put('A',decimel_to_hexa_8bit(sum));\n\t\tmodify_status(registers.get('A'));\n\t}", "private static String loadConvert(String str) {\n\t\tint off = 0;\n\t\tint len = str.length();\n\t\tchar[] in = str.toCharArray();\n\t\tchar[] convtBuf = new char[1024];\n\t\tif (convtBuf.length < len) {\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0) {\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end) {\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\') {\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u') {\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar) {\n\t\t\t\t\t\tcase '0':\n\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\tcase '3':\n\t\t\t\t\t\tcase '4':\n\t\t\t\t\t\tcase '5':\n\t\t\t\t\t\tcase '6':\n\t\t\t\t\t\tcase '7':\n\t\t\t\t\t\tcase '8':\n\t\t\t\t\t\tcase '9':\n\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'a':\n\t\t\t\t\t\tcase 'b':\n\t\t\t\t\t\tcase 'c':\n\t\t\t\t\t\tcase 'd':\n\t\t\t\t\t\tcase 'e':\n\t\t\t\t\t\tcase 'f':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tcase 'C':\n\t\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcase 'E':\n\t\t\t\t\t\tcase 'F':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char) value;\n\t\t\t\t} else {\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}", "CharSequence formatEIP721Message(\n String messageData);", "void mo8713dV(String str);", "@Override\n\t\tpublic byte[] convert(String s) {\n\t\t\treturn s.getBytes();\n\t\t}", "java.lang.String getDataId();", "java.lang.String getDataId();", "public static String bcdPlmnToString(byte[] data, int offset) {\n if (offset + 3 > data.length) {\n return null;\n }\n byte[] trans = new byte[3];\n trans[0] = (byte) ((data[0 + offset] << 4) | ((data[0 + offset] >> 4) & 0xF));\n trans[1] = (byte) ((data[1 + offset] << 4) | (data[2 + offset] & 0xF));\n trans[2] = (byte) ((data[2 + offset] & 0xF0) | ((data[1 + offset] >> 4) & 0xF));\n String ret = bytesToHexString(trans);\n\n // For a valid plmn we trim all character 'F'\n if (ret.contains(\"F\")) {\n ret = ret.replaceAll(\"F\", \"\");\n }\n return ret;\n }", "java.lang.String getAdresa();", "public String getData() {\n \n String str = new String();\n int aux;\n\n for(int i = 0; i < this.buffer.size(); i++) {\n for(int k = 0; k < this.buffer.get(i).size(); k++) {\n aux = this.buffer.get(i).get(k);\n str = str + Character.toString((char)aux);\n }\n str = str + \"\\n\";\n }\n return str;\n }", "public CharSequence ZawGyiToUni(String myString1, Boolean unicode) {\n\t\t String uni = \"[\"\n\t + \" {\\\"from\\\": \\\"(\\u103D|\\u1087)\\\",\\\"to\\\":\\\"\\u103E\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C\\\",\\\"to\\\":\\\"\\u103D\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u103B|\\u107E|\\u107F|\\u1080|\\u1081|\\u1082|\\u1083|\\u1084)\\\",\\\"to\\\":\\\"\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u103A|\\u107D)\\\",\\\"to\\\":\\\"\\u103B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1039\\\",\\\"to\\\":\\\"\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106A\\\",\\\"to\\\":\\\"\\u1009\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106B\\\",\\\"to\\\":\\\"\\u100A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106C\\\",\\\"to\\\":\\\"\\u1039\\u100B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106D\\\",\\\"to\\\":\\\"\\u1039\\u100C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106E\\\",\\\"to\\\":\\\"\\u100D\\u1039\\u100D\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106F\\\",\\\"to\\\":\\\"\\u100D\\u1039\\u100E\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1070\\\",\\\"to\\\":\\\"\\u1039\\u100F\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u1071|\\u1072)\\\",\\\"to\\\":\\\"\\u1039\\u1010\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1060\\\",\\\"to\\\":\\\"\\u1039\\u1000\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1061\\\",\\\"to\\\":\\\"\\u1039\\u1001\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1062\\\",\\\"to\\\":\\\"\\u1039\\u1002\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1063\\\",\\\"to\\\":\\\"\\u1039\\u1003\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1065\\\",\\\"to\\\":\\\"\\u1039\\u1005\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1068\\\",\\\"to\\\":\\\"\\u1039\\u1007\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1069\\\",\\\"to\\\":\\\"\\u1039\\u1008\\\"},\"\n\t + \" {\\\"from\\\": \\\"/(\\u1073|\\u1074)/g\\\",\\\"to\\\":\\\"\\u1039\\u1011\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1075\\\",\\\"to\\\":\\\"\\u1039\\u1012\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1076\\\",\\\"to\\\":\\\"\\u1039\\u1013\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1077\\\",\\\"to\\\":\\\"\\u1039\\u1014\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1078\\\",\\\"to\\\":\\\"\\u1039\\u1015\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1079\\\",\\\"to\\\":\\\"\\u1039\\u1016\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u107A\\\",\\\"to\\\":\\\"\\u1039\\u1017\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u107C\\\",\\\"to\\\":\\\"\\u1039\\u1019\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1085\\\",\\\"to\\\":\\\"\\u1039\\u101C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1033\\\",\\\"to\\\":\\\"\\u102F\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1034\\\",\\\"to\\\":\\\"\\u1030\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103F\\\",\\\"to\\\":\\\"\\u1030\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1086\\\",\\\"to\\\":\\\"\\u103F\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1088\\\",\\\"to\\\":\\\"\\u103E\\u102F\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1089\\\",\\\"to\\\":\\\"\\u103E\\u1030\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u108A\\\",\\\"to\\\":\\\"\\u103D\\u103E\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u1064\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u108B\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u102D\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u108C\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u102E\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u108D\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u108E\\\",\\\"to\\\":\\\"\\u102D\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u108F\\\",\\\"to\\\":\\\"\\u1014\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1090\\\",\\\"to\\\":\\\"\\u101B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1091\\\",\\\"to\\\":\\\"\\u100F\\u1039\\u1091\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1019\\u102C(\\u107B|\\u1093)\\\",\\\"to\\\":\\\"\\u1019\\u1039\\u1018\\u102C\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u107B|\\u1093)\\\",\\\"to\\\":\\\"\\u103A\\u1018\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u1094|\\u1095)\\\",\\\"to\\\":\\\"\\u1037\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1096\\\",\\\"to\\\":\\\"\\u1039\\u1010\\u103D\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1097\\\",\\\"to\\\":\\\"\\u100B\\u1039\\u100B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C([\\u1000-\\u1021])([\\u1000-\\u1021])?\\\",\\\"to\\\":\\\"$1\\u103C$2\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u103C\\u103A\\\",\\\"to\\\":\\\"\\u103C$1\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031([\\u1000-\\u1021])(\\u103E)?(\\u103B)?\\\",\\\"to\\\":\\\"$1$2$3\\u1031\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u1031(\\u103B|\\u103C|\\u103D)\\\",\\\"to\\\":\\\"$1$2\\u1031\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1032\\u103D\\\",\\\"to\\\":\\\"\\u103D\\u1032\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103D\\u103B\\\",\\\"to\\\":\\\"\\u103B\\u103D\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103A\\u1037\\\",\\\"to\\\":\\\"\\u1037\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u102F(\\u102D|\\u102E|\\u1036|\\u1037)\\u102F\\\",\\\"to\\\":\\\"\\u102F$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u102F\\u102F\\\",\\\"to\\\":\\\"\\u102F\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u102F|\\u1030)(\\u102D|\\u102E)\\\",\\\"to\\\":\\\"$2$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u103E)(\\u103B|\\u1037)\\\",\\\"to\\\":\\\"$2$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1025(\\u103A|\\u102C)\\\",\\\"to\\\":\\\"\\u1009$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1025\\u102E\\\",\\\"to\\\":\\\"\\u1026\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1005\\u103B\\\",\\\"to\\\":\\\"\\u1008\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1036(\\u102F|\\u1030)\\\",\\\"to\\\":\\\"$1\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031\\u1037\\u103E\\\",\\\"to\\\":\\\"\\u103E\\u1031\\u1037\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031\\u103E\\u102C\\\",\\\"to\\\":\\\"\\u103E\\u1031\\u102C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u105A\\\",\\\"to\\\":\\\"\\u102B\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031\\u103B\\u103E\\\",\\\"to\\\":\\\"\\u103B\\u103E\\u1031\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u102D|\\u102E)(\\u103D|\\u103E)\\\",\\\"to\\\":\\\"$2$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u102C\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1039$1\\u102C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C\\u1004\\u103A\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1039\\u103C\\u103A\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u103A\\u1039$1\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1039$1\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1036\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1039$1\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1092\\\",\\\"to\\\":\\\"\\u100B\\u1039\\u100C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u104E\\\",\\\"to\\\":\\\"\\u104E\\u1004\\u103A\\u1038\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1040(\\u102B|\\u102C|\\u1036)\\\",\\\"to\\\":\\\"\\u101D$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1025\\u1039\\\",\\\"to\\\":\\\"\\u1009\\u1039\\\"}\" + \"]\";\n\t\t \n\t\t String zawgyi = \"[ { \\\"from\\\": \\\"င်္\\\", \\\"to\\\": \\\"ၤ\\\" }, { \\\"from\\\": \\\"္တွ\\\", \\\"to\\\": \\\"႖\\\" }, { \\\"from\\\": \\\"န(?=[ူွှု္])\\\", \\\"to\\\": \\\"ႏ\\\" }, { \\\"from\\\": \\\"ါ်\\\", \\\"to\\\": \\\"ၚ\\\" }, { \\\"from\\\": \\\"ဋ္ဌ\\\", \\\"to\\\": \\\"႒\\\" }, { \\\"from\\\": \\\"ိံ\\\", \\\"to\\\": \\\"ႎ\\\" }, { \\\"from\\\": \\\"၎င်း\\\", \\\"to\\\": \\\"၎\\\" }, { \\\"from\\\": \\\"[ဥဉ](?=[္ုူ])\\\", \\\"to\\\": \\\"ၪ\\\" }, { \\\"from\\\": \\\"[ဥဉ](?=[်])\\\", \\\"to\\\": \\\"ဥ\\\" }, { \\\"from\\\": \\\"ည(?=[္ုူွ])\\\", \\\"to\\\": \\\"ၫ\\\" }, { \\\"from\\\": \\\"(္[က-အ])ု\\\", \\\"to\\\": \\\"$1ဳ\\\" }, { \\\"from\\\": \\\"(္[က-အ])ူ\\\", \\\"to\\\": \\\"$1ဴ\\\" }, { \\\"from\\\": \\\"္က\\\", \\\"to\\\": \\\"ၠ\\\" }, { \\\"from\\\": \\\"္ခ\\\", \\\"to\\\": \\\"ၡ\\\" }, { \\\"from\\\": \\\"္ဂ\\\", \\\"to\\\": \\\"ၢ\\\" }, { \\\"from\\\": \\\"္ဃ\\\", \\\"to\\\": \\\"ၣ\\\" }, { \\\"from\\\": \\\"္စ\\\", \\\"to\\\": \\\"ၥ\\\" }, { \\\"from\\\": \\\"္ဆ\\\", \\\"to\\\": \\\"ၦ\\\" }, { \\\"from\\\": \\\"္ဇ\\\", \\\"to\\\": \\\"ၨ\\\" }, { \\\"from\\\": \\\"္ဈ\\\", \\\"to\\\": \\\"ၩ\\\" }, { \\\"from\\\": \\\"ည(?=[္ုူ])\\\", \\\"to\\\": \\\"ၫ\\\" }, { \\\"from\\\": \\\"္ဋ\\\", \\\"to\\\": \\\"ၬ\\\" }, { \\\"from\\\": \\\"္ဌ\\\", \\\"to\\\": \\\"ၭ\\\" }, { \\\"from\\\": \\\"ဍ္ဍ\\\", \\\"to\\\": \\\"ၮ\\\" }, { \\\"from\\\": \\\"ဎ္ဍ\\\", \\\"to\\\": \\\"ၯ\\\" }, { \\\"from\\\": \\\"္ဏ\\\", \\\"to\\\": \\\"ၰ\\\" }, { \\\"from\\\": \\\"္တ\\\", \\\"to\\\": \\\"ၱ\\\" }, { \\\"from\\\": \\\"္ထ\\\", \\\"to\\\": \\\"ၳ\\\" }, { \\\"from\\\": \\\"္ဒ\\\", \\\"to\\\": \\\"ၵ\\\" }, { \\\"from\\\": \\\"္ဓ\\\", \\\"to\\\": \\\"ၶ\\\" }, { \\\"from\\\": \\\"္ဓ\\\", \\\"to\\\": \\\"ၶ\\\" }, { \\\"from\\\": \\\"္န\\\", \\\"to\\\": \\\"ၷ\\\" }, { \\\"from\\\": \\\"္ပ\\\", \\\"to\\\": \\\"ၸ\\\" }, { \\\"from\\\": \\\"္ဖ\\\", \\\"to\\\": \\\"ၹ\\\" }, { \\\"from\\\": \\\"္ဗ\\\", \\\"to\\\": \\\"ၺ\\\" }, { \\\"from\\\": \\\"္ဘ\\\", \\\"to\\\": \\\"ၻ\\\" }, { \\\"from\\\": \\\"္မ\\\", \\\"to\\\": \\\"ၼ\\\" }, { \\\"from\\\": \\\"္လ\\\", \\\"to\\\": \\\"ႅ\\\" }, { \\\"from\\\": \\\"ဿ\\\", \\\"to\\\": \\\"ႆ\\\" }, { \\\"from\\\": \\\"(ြ)ှ\\\", \\\"to\\\": \\\"$1ႇ\\\" }, { \\\"from\\\": \\\"ွှ\\\", \\\"to\\\": \\\"ႊ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])ိ\\\", \\\"to\\\": \\\"$2$3$4ႋ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])ီ\\\", \\\"to\\\": \\\"$2$3$4ႌ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])ံ\\\", \\\"to\\\": \\\"$2$3$4ႍ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])\\\", \\\"to\\\": \\\"$2$3$4$1\\\" }, { \\\"from\\\": \\\"ရ(?=[ုူွႊ])\\\", \\\"to\\\": \\\"႐\\\" }, { \\\"from\\\": \\\"ဏ္ဍ\\\", \\\"to\\\": \\\"႑\\\" }, { \\\"from\\\": \\\"ဋ္ဋ\\\", \\\"to\\\": \\\"႗\\\" }, { \\\"from\\\": \\\"([က-အႏဩ႐])([ၠ-ၩၬၭၰ-ၼႅႊ])?([ျ-ှ]*)?ေ\\\", \\\"to\\\": \\\"ေ$1$2$3\\\" }, { \\\"from\\\": \\\"([က-အဩ])([ၠ-ၩၬၭၰ-ၼႅ])?(ြ)\\\", \\\"to\\\": \\\"$3$1$2\\\" }, { \\\"from\\\": \\\"်\\\", \\\"to\\\": \\\"္\\\" }, { \\\"from\\\": \\\"ျ\\\", \\\"to\\\": \\\"်\\\" }, { \\\"from\\\": \\\"ြ\\\", \\\"to\\\": \\\"ျ\\\" }, { \\\"from\\\": \\\"ွ\\\", \\\"to\\\": \\\"ြ\\\" }, { \\\"from\\\": \\\"ှ\\\", \\\"to\\\": \\\"ွ\\\" }, { \\\"from\\\": \\\"ွု\\\", \\\"to\\\": \\\"ႈ\\\" }, { \\\"from\\\": \\\"([ုူနရြႊွႈ])([ဲံ]{0,1})့\\\", \\\"to\\\": \\\"$1$2႕\\\" }, { \\\"from\\\": \\\"ု႕\\\", \\\"to\\\": \\\"ု႔\\\" }, { \\\"from\\\": \\\"([နရ])([ဲံိီႋႌႍႎ])့\\\", \\\"to\\\": \\\"$1$2႕\\\" }, { \\\"from\\\": \\\"႕္\\\", \\\"to\\\": \\\"႔္\\\" }, { \\\"from\\\": \\\"([်ျ])([က-အ])([ံိီႋႌႍႎ]?)ု\\\", \\\"to\\\": \\\"$1$2$3ဳ\\\" }, { \\\"from\\\": \\\"([်ျ])([က-အ])([ံိီႋႌႍႎ]?)ူ\\\", \\\"to\\\": \\\"$1$2$3ဴ\\\" }, { \\\"from\\\": \\\"်ု\\\", \\\"to\\\": \\\"်ဳ\\\" }, { \\\"from\\\": \\\"်([ံိီႋႌႍႎ])ု\\\", \\\"to\\\": \\\"်$1ဳ\\\" }, { \\\"from\\\": \\\"([်ျ])([က-အ])ူ\\\", \\\"to\\\": \\\"$1$2ဴ\\\" }, { \\\"from\\\": \\\"်ူ\\\", \\\"to\\\": \\\"်ဴ\\\" }, { \\\"from\\\": \\\"်([ံိီႋႌႍႎ])ူ\\\", \\\"to\\\": \\\"်$1ဴ\\\" }, { \\\"from\\\": \\\"ွူ\\\", \\\"to\\\": \\\"ႉ\\\" }, { \\\"from\\\": \\\"ျ([ကဃဆဏတထဘယလယသဟ])\\\", \\\"to\\\": \\\"ၾ$1\\\" }, { \\\"from\\\": \\\"ၾ([ကဃဆဏတထဘယလယသဟ])([ြႊ])([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ႄ$1$2$3\\\" }, { \\\"from\\\": \\\"ၾ([ကဃဆဏတထဘယလယသဟ])([ြႊ])\\\", \\\"to\\\": \\\"ႂ$1$2\\\" }, { \\\"from\\\": \\\"ၾ([ကဃဆဏတထဘယလယသဟ])([ဳဴ]?)([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ႀ$1$2$3\\\" }, { \\\"from\\\": \\\"ျ([က-အ])([ြႊ])([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ႃ$1$2$3\\\" }, { \\\"from\\\": \\\"ျ([က-အ])([ြႊ])\\\", \\\"to\\\": \\\"ႁ$1$2\\\" }, { \\\"from\\\": \\\"ျ([က-အ])([ဳဴ]?)([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ၿ$1$2$3\\\" }, { \\\"from\\\": \\\"်ွ\\\", \\\"to\\\": \\\"ွ်\\\" }, { \\\"from\\\": \\\"်([ြႊ])\\\", \\\"to\\\": \\\"$1ၽ\\\" }, { \\\"from\\\": \\\"([ဳဴ])႔\\\", \\\"to\\\": \\\"$1႕\\\" }, { \\\"from\\\": \\\"ႏၱ\\\", \\\"to\\\" : \\\"ႏၲ\\\" }, { \\\"from\\\": \\\"([က-အ])([ၻၦ])ာ\\\", \\\"to\\\": \\\"$1ာ$2\\\" }, { \\\"from\\\": \\\"ာ([ၻၦ])့\\\", \\\"to\\\": \\\"ာ$1႔\\\" }]\";\n\t\t \n\t\t if(unicode==true) {\n\t\treturn replacewithUni(uni, myString1);\n\t\t } else {\n\t\t\t return replacewithZawgyi(zawgyi, myString1);\n\t\t }\n\t}", "private static String convertStringToHex(String input){\n\t\tchar[] chars = input.toCharArray();\n\t\tStringBuffer hexOutput = new StringBuffer();\n\t\t\n\t\tfor(int i = 0; i < chars.length; i++){\n\t\t\thexOutput.append(Integer.toHexString((int)chars[i]));\n\t\t}\n\n\t\treturn hexOutput.toString();\n\t}" ]
[ "0.63771784", "0.628793", "0.628793", "0.60605097", "0.59458303", "0.59169525", "0.59169525", "0.5886305", "0.5849456", "0.5822536", "0.5738751", "0.5723075", "0.5719627", "0.56980705", "0.5679531", "0.5676715", "0.5650842", "0.5597263", "0.5583314", "0.55770916", "0.5557027", "0.5520022", "0.55121976", "0.55073583", "0.5472337", "0.5465181", "0.54220027", "0.5407316", "0.5390466", "0.53825086", "0.53759927", "0.53735507", "0.5352125", "0.53394324", "0.5326446", "0.53160036", "0.5306527", "0.53057843", "0.5299889", "0.5298347", "0.5289866", "0.52749354", "0.5274926", "0.5274425", "0.5273551", "0.52699006", "0.5261432", "0.52457887", "0.52391267", "0.5213895", "0.5209705", "0.52078605", "0.5190211", "0.5163218", "0.51549315", "0.51482266", "0.51415837", "0.51399416", "0.5130157", "0.5126232", "0.5116208", "0.5114999", "0.51148146", "0.51116765", "0.5108901", "0.5104947", "0.51027584", "0.5102012", "0.509459", "0.50940156", "0.5086349", "0.5084901", "0.50795764", "0.5078084", "0.5074377", "0.5066542", "0.5065026", "0.50595343", "0.5042128", "0.5039777", "0.50351703", "0.50335824", "0.50333923", "0.5030296", "0.5022368", "0.5020175", "0.5019718", "0.5005862", "0.50013816", "0.50010103", "0.4999087", "0.49986237", "0.498439", "0.49839", "0.49839", "0.49833304", "0.49823993", "0.4974773", "0.497251", "0.49705666" ]
0.49985853
92
Converte a data passada em string retorna DDMMAAAA
public static String formatarDataComTracoAAAAMMDD(Date data) { String retorno = ""; if (data != null) { // 1 Calendar dataCalendar = new GregorianCalendar(); StringBuffer dataBD = new StringBuffer(); dataCalendar.setTime(data); dataBD.append(dataCalendar.get(Calendar.YEAR)); dataBD.append("-"); if ((dataCalendar.get(Calendar.MONTH) + 1) > 9) { dataBD.append(dataCalendar.get(Calendar.MONTH) + 1); } else { dataBD.append("0" + (dataCalendar.get(Calendar.MONTH) + 1)); } dataBD.append("-"); if (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) { dataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH)); } else { dataBD.append("0" + dataCalendar.get(Calendar.DAY_OF_MONTH)); } retorno = dataBD.toString(); } return retorno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo5872a(String str, Data data);", "public static String converterddmmaaaaParaaaammdd(String data) {\n String[] aux = data.trim().split(\"/\");\n String dia = aux[0].length() < 2 ? \"0\" + aux[0] : aux[0];\n String mes = aux[1].length() < 2 ? \"0\" + aux[1] : aux[1];\n return aux[2] + mes + dia;\n }", "public static String converterddmmaaaaParaaaammdd(String data) {\n String[] aux = data.trim().split(\"/\");\n String dia = aux[0].length() < 2 ? \"0\" + aux[0] : aux[0];\n String mes = aux[1].length() < 2 ? \"0\" + aux[1] : aux[1];\n return aux[2] + mes + dia;\n }", "Data mo12944a(String str) throws IllegalArgumentException;", "public String getString_data() { \n char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,60)];\n int i;\n for (i = 0; i < carr.length; i++) {\n if ((char)getElement_data(i) == (char)0) break;\n carr[i] = (char)getElement_data(i);\n }\n return new String(carr,0,i);\n }", "public String encode_dados_acesso(){\n\n String result = \"\";\n\n try {\n String iddispositivo = Settings.Secure.getString(myContext.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n Uri.Builder builder = new Uri.Builder()\n .appendQueryParameter(TAG_IDDIUSPOSITIVO, iddispositivo)\n //.appendQueryParameter(TAG_EMAIL, v_email)\n //.appendQueryParameter(TAG_SENHA, v_senha)\n .appendQueryParameter(TAG_TEXTO, vTexto);\n\n result = builder.build().getEncodedQuery();\n Log.d(\"workshop encode:\",result);\n\n } catch (Exception e) {\n //Log.d(\"InputStream\", e.getLocalizedMessage());\n }\n\n // 11. return result\n return result;\n }", "public String encode_dados_acesso(){\n\n String result = \"\";\n\n try {\n String iddispositivo = Settings.Secure.getString(myContext.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n Uri.Builder builder = new Uri.Builder()\n .appendQueryParameter(TAG_IDDIUSPOSITIVO, iddispositivo)\n //.appendQueryParameter(TAG_EMAIL, v_email)\n //.appendQueryParameter(TAG_SENHA, v_senha)\n .appendQueryParameter(TAG_TEXTO, vTexto);\n\n result = builder.build().getEncodedQuery();\n Log.d(\"workshop encode:\",result);\n\n } catch (Exception e) {\n //Log.d(\"InputStream\", e.getLocalizedMessage());\n }\n\n // 11. return result\n return result;\n }", "public java.lang.String getDataFromLMS();", "public static String data(byte[] a)\n {\n if (a == null)\n return null;\n StringBuilder ret = new StringBuilder();\n int i = 0;\n while (a[i] != 0)\n {\n ret.append((char) a[i]);\n i++;\n }\n return ret.toString();\n }", "public static String formatarData(String data) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tif (data != null && !data.equals(\"\") && data.trim().length() == 8) {\r\n\r\n\t\t\tretorno = data.substring(6, 8) + \"/\" + data.substring(4, 6) + \"/\" + data.substring(0, 4);\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "public static String formatarDataAAAAMMDD(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public String getDataString() {\r\n return formatoData.format(data);\r\n }", "java.lang.String getData();", "private String cadenaABinario(String cadena){\n String cb = \"\";\n int longitud;\n for(int i = 0; i < cadena.length(); i++){\n cb += String.format(\"%8s\",Integer.toBinaryString(cadena.charAt(i)));\n }\n cb = formato(cb);\n return cb;\n }", "private static String convertToHex(byte[] data) throws IOException {\n //create new instance of string buffer\n StringBuffer stringBuffer = new StringBuffer();\n String hex = \"\";\n\n //encode byte data with base64\n hex = Base64.getEncoder().encodeToString(data);\n stringBuffer.append(hex);\n\n //return string\n return stringBuffer.toString();\n }", "public static String\n adnStringFieldToString(byte[] data, int offset, int length) {\n if (length == 0) {\n return \"\";\n }\n if (length >= 1) {\n if (data[offset] == (byte) 0x80) {\n int ucslen = (length - 1) / 2;\n String ret = null;\n\n try {\n ret = new String(data, offset + 1, ucslen * 2, \"utf-16be\");\n } catch (UnsupportedEncodingException ex) {\n Rlog.e(LOG_TAG, \"implausible UnsupportedEncodingException\",\n ex);\n }\n\n if (ret != null) {\n // trim off trailing FFFF characters\n\n ucslen = ret.length();\n while (ucslen > 0 && ret.charAt(ucslen - 1) == '\\uFFFF')\n ucslen--;\n\n return ret.substring(0, ucslen);\n }\n }\n }\n\n boolean isucs2 = false;\n char base = '\\0';\n int len = 0;\n\n if (length >= 3 && data[offset] == (byte) 0x81) {\n len = data[offset + 1] & 0xFF;\n if (len > length - 3)\n len = length - 3;\n\n base = (char) ((data[offset + 2] & 0xFF) << 7);\n offset += 3;\n isucs2 = true;\n } else if (length >= 4 && data[offset] == (byte) 0x82) {\n len = data[offset + 1] & 0xFF;\n if (len > length - 4)\n len = length - 4;\n\n base = (char) (((data[offset + 2] & 0xFF) << 8) |\n (data[offset + 3] & 0xFF));\n offset += 4;\n isucs2 = true;\n }\n\n if (isucs2) {\n StringBuilder ret = new StringBuilder();\n\n while (len > 0) {\n // UCS2 subset case\n\n if (data[offset] < 0) {\n ret.append((char) (base + (data[offset] & 0x7F)));\n offset++;\n len--;\n }\n\n // GSM character set case\n\n int count = 0;\n while (count < len && data[offset + count] >= 0)\n count++;\n\n ret.append(GsmAlphabet.gsm8BitUnpackedToString(data,\n offset, count));\n\n offset += count;\n len -= count;\n }\n\n return ret.toString();\n }\n\n Resources resource = Resources.getSystem();\n String defaultCharset = \"\";\n try {\n defaultCharset =\n resource.getString(com.android.internal.R.string.gsm_alphabet_default_charset);\n } catch (NotFoundException e) {\n // Ignore Exception and defaultCharset is set to a empty string.\n }\n return GsmAlphabet.gsm8BitUnpackedToString(data, offset, length, defaultCharset.trim());\n }", "private static String convertDonnee(String donnee){\n byte[] tableau = convert.toBinaryFromString(donnee);\n StringBuilder sbDonnee = new StringBuilder();\n for (int i =0; i<tableau.length;i++){\n String too=Byte.toString(tableau[i]);\n sbDonnee.append(convert.decimalToBinary(Integer.parseInt(too)));\n }\n return sbDonnee.toString();\n }", "String transcribe(String dnaStrand) {\n\t\tStringBuilder rnaStrand = new StringBuilder();\n\t\t\n\t\tfor(int i=0; i<dnaStrand.length(); i++)\n\t\t{\n\t\t\t//using append function to add the characters in rnaStrand\n\t\t\trnaStrand.append(hm.get(dnaStrand.charAt(i)));\n\t\t}\n\t\t\n\t\t//return rnaStrand as String.\n\t\treturn rnaStrand.toString();\n\t}", "private String getPacketData(){\n\t\tString str = \"\";\n\t\tfor(int i=0;i<lenth_get/5;i++){\n\t\t\tstr = str + originalUPLMN[i];\n\t\t}\n\t\tif(DBUG){\n\t\t\tif(DEBUG) Log.d(LOG_TAG, \"getPacketData---str=\"+str);\n\t\t}\n\t\treturn str;\n\t}", "public String getData(String rawData){\n\t\treturn \"1\";\n\t}", "public static String converterDataSemBarraParaDataComBarra(String data) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tif (data != null && !data.equals(\"\") && data.trim().length() == 8) {\r\n\r\n\t\t\tretorno = data.substring(0, 2) + \"/\" + data.substring(2, 4) + \"/\" + data.substring(4, 8);\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "String getDataNascimento();", "private static byte[] m24635a(Context context, String str) {\n String f = C6014b.m23956f();\n String string = Secure.getString(context.getContentResolver(), \"android_id\");\n String substring = str.substring(0, Math.min(8, str.length() - 1));\n StringBuilder sb = new StringBuilder();\n sb.append(substring);\n sb.append(f.substring(0, Math.min(8, f.length() - 1)));\n String sb2 = sb.toString();\n StringBuilder sb3 = new StringBuilder();\n sb3.append(sb2);\n sb3.append(string.substring(0, Math.min(8, string.length() - 1)));\n String sb4 = sb3.toString();\n if (sb4.length() != 24) {\n StringBuilder sb5 = new StringBuilder();\n sb5.append(sb4);\n sb5.append(str.substring(8, 24 - sb4.length()));\n sb4 = sb5.toString();\n }\n return sb4.getBytes();\n }", "public String amd_to_dma(java.sql.Date d)\n {\n String resp = \"\";\n if (d!=null)\n {\n String sdat = d.toString();\n String sano = sdat.substring(0,4);\n String smes = sdat.substring(5,7);\n String sdia = sdat.substring(8,10);\n resp = sdia+\"/\"+smes+\"/\"+sano;\n }\n return resp;\n }", "String getCADENA_TRAMA();", "C8325a mo21498a(String str);", "String getBarcharDataQuery();", "public String getTranslation()\n {\n StringBuilder aminoAcid = new StringBuilder();\n Map<String, String> codToAa = Map.ofEntries(\n entry(\"ATA\", \"I\"), entry(\"ATC\", \"I\"), entry(\"ATT\", \"I\"), entry(\"ATG\", \"M\"),\n entry(\"ACA\", \"T\"), entry(\"ACC\", \"T\"), entry(\"ACG\", \"T\"), entry(\"ACT\", \"T\"),\n entry(\"AAC\", \"N\"), entry(\"AAT\", \"N\"), entry(\"AAA\", \"K\"), entry(\"AAG\", \"K\"),\n entry(\"AGC\", \"S\"), entry(\"AGT\", \"S\"), entry(\"AGA\", \"R\"), entry(\"AGG\", \"R\"),\n entry(\"CTA\", \"L\"), entry(\"CTC\", \"L\"), entry(\"CTG\", \"L\"), entry(\"CTT\", \"L\"),\n entry(\"CCA\", \"P\"), entry(\"CCC\", \"P\"), entry(\"CCG\", \"P\"), entry(\"CCT\", \"P\"),\n entry(\"CAC\", \"H\"), entry(\"CAT\", \"H\"), entry(\"CAA\", \"Q\"), entry(\"CAG\", \"Q\"),\n entry(\"CGA\", \"R\"), entry(\"CGC\", \"R\"), entry(\"CGG\", \"R\"), entry(\"CGT\", \"R\"),\n entry(\"GTA\", \"V\"), entry(\"GTC\", \"V\"), entry(\"GTG\", \"V\"), entry(\"GTT\", \"V\"),\n entry(\"GCA\", \"A\"), entry(\"GCC\", \"A\"), entry(\"GCG\", \"A\"), entry(\"GCT\", \"A\"),\n entry(\"GAC\", \"D\"), entry(\"GAT\", \"D\"), entry(\"GAA\", \"E\"), entry(\"GAG\", \"E\"),\n entry(\"GGA\", \"G\"), entry(\"GGC\", \"G\"), entry(\"GGG\", \"G\"), entry(\"GGT\", \"G\"),\n entry(\"TCA\", \"S\"), entry(\"TCC\", \"S\"), entry(\"TCG\", \"S\"), entry(\"TCT\", \"S\"),\n entry(\"TTC\", \"F\"), entry(\"TTT\", \"F\"), entry(\"TTA\", \"L\"), entry(\"TTG\", \"L\"),\n entry(\"TAC\", \"Y\"), entry(\"TAT\", \"Y\"), entry(\"TAA\", \"_\"), entry(\"TAG\", \"_\"),\n entry(\"TGC\", \"C\"), entry(\"TGT\", \"C\"), entry(\"TGA\", \"_\"), entry(\"TGG\", \"W\")\n );\n try\n {\n for (int i = 0; i < this.sequence.length(); i += 3)\n {\n aminoAcid.append(codToAa.get(this.sequence.substring(i, i + 3)));\n }\n }\n catch (StringIndexOutOfBoundsException ignored)\n {\n }\n return aminoAcid.toString();\n }", "ResultData mo24177a(String str, String str2) throws Exception;", "public abstract byte[] mo32305a(String str);", "public static String convert(String paramString)\n/* */ {\n/* 2703 */ if (paramString == null) {\n/* 2704 */ return null;\n/* */ }\n/* */ \n/* 2707 */ int i = -1;\n/* 2708 */ StringBuffer localStringBuffer = new StringBuffer();\n/* 2709 */ UCharacterIterator localUCharacterIterator = UCharacterIterator.getInstance(paramString);\n/* */ \n/* 2711 */ while ((i = localUCharacterIterator.nextCodePoint()) != -1) {\n/* 2712 */ switch (i) {\n/* */ case 194664: \n/* 2714 */ localStringBuffer.append(corrigendum4MappingTable[0]);\n/* 2715 */ break;\n/* */ case 194676: \n/* 2717 */ localStringBuffer.append(corrigendum4MappingTable[1]);\n/* 2718 */ break;\n/* */ case 194847: \n/* 2720 */ localStringBuffer.append(corrigendum4MappingTable[2]);\n/* 2721 */ break;\n/* */ case 194911: \n/* 2723 */ localStringBuffer.append(corrigendum4MappingTable[3]);\n/* 2724 */ break;\n/* */ case 195007: \n/* 2726 */ localStringBuffer.append(corrigendum4MappingTable[4]);\n/* 2727 */ break;\n/* */ default: \n/* 2729 */ UTF16.append(localStringBuffer, i);\n/* */ }\n/* */ \n/* */ }\n/* */ \n/* 2734 */ return localStringBuffer.toString();\n/* */ }", "@VisibleForTesting\n protected static byte[] getGalileoDataByteArray(String dwrd) {\n String dataString = dwrd.substring(0, dwrd.length() - 8);\n byte[] data = BaseEncoding.base16().lowerCase().decode(dataString.toLowerCase());\n // Removing bytes 16 and 32 (they are padding which should be always zero)\n byte[] dataStart = Arrays.copyOfRange(data, 0, 15);\n byte[] dataEnd = Arrays.copyOfRange(data, 16, 31);\n byte[] result = new byte[dataStart.length + dataEnd.length];\n\n System.arraycopy(dataStart, 0, result, 0, dataStart.length);\n System.arraycopy(dataEnd, 0, result, 15, dataEnd.length);\n return result;\n }", "private void sstring(Tlv tlv, String a){\n if(a != null){\n byte[] data = StringUtil.bytesOfStringCP_1251(a); \n //uint16 value (length)\n uint16(tlv, data.length + 1);\n //asciiz string \n tlv.addTlvData(DataWork.putArray(data)); \n tlv.addTlvData(DataWork.putByte(0x00)); \n }else{\n tlv.addTlvData(DataWork.putWordLE(0x00));\n tlv.addTlvData(DataWork.putWordLE(0x00));\n } \n }", "String getData();", "public String formatData() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\n\t\t\tbuilder.append(this.iataCode);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.latitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.longitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.altitude);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.localTime);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.condition);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.temperature);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.pressure);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.humidity);\n\t\t\tbuilder.append(\"\\n\");\n\t\t\n\n\t\treturn builder.toString();\n\n\t}", "public final void mo118723c(String str) {\n EventMessage abVar;\n C32569u.m150519b(str, C6969H.m41409d(\"G7A97C737AC37\"));\n EventMessage abVar2 = null;\n try {\n abVar = EventMessage.f96677a.decode(Base64.decode(str, 0));\n } catch (Exception e) {\n VideoXOnlineLog.f101073b.mo121420a(\"link api 轮询 msg decode error : {}\", String.valueOf(e.getMessage()));\n abVar = abVar2;\n }\n if (abVar != null && !f97544a.m134904a(abVar, C6969H.m41409d(\"G658ADB11FF31BB20\"))) {\n VideoXOnlineLog abVar3 = VideoXOnlineLog.f101073b;\n String abVar4 = abVar.toString();\n C32569u.m150513a((Object) abVar4, C6969H.m41409d(\"G60979B0EB003BF3BEF009700BB\"));\n abVar3.mo121420a(\"msg, link api , 消息 : {}\", abVar4);\n f97544a.m134907b(abVar);\n }\n }", "static void lda_from_mem(String passed){\n\t\tregisters.put('A', memory.get(hexa_to_deci(passed.substring(4))));\n\t}", "private String m48359a(String str) {\n if (TextUtils.isEmpty(str)) {\n return \"\";\n }\n return C8145d.m48410a(str) ? \"xxxxxx\" : str;\n }", "private char[] toDSUID(UUID uuid) {\n ByteBuffer bb = ByteBuffer.wrap(new byte[17]);\n bb.putLong(uuid.getMostSignificantBits());\n bb.putLong(uuid.getLeastSignificantBits());\n\n String s_uuid = DatatypeConverter.printHexBinary(bb.array());\n return s_uuid.toCharArray();\n }", "byte[] getStructuredData(String messageData);", "public String dana() {\n\t\treturn \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\";\n\t}", "private String parseDN(byte[] buffer, TLV dn) {\n TLV attribute;\n TLV type;\n TLV value;\n StringBuffer name = new StringBuffer(256);\n\n /*\n * Name ::= CHOICE { RDNSequence } # CHOICE does not encoded\n *\n * RDNSequence ::= SEQUENCE OF RelativeDistinguishedName\n *\n * RelativeDistinguishedName ::= SET OF AttributeTypeAndValue\n *\n * AttributeTypeAndValue ::= SEQUENCE {\n * type AttributeType,\n * value AttributeValue }\n *\n * AttributeType ::= OBJECT IDENTIFIER\n *\n * AttributeValue ::= ANY DEFINED BY AttributeType\n *\n * basically this means that each attribute value is 3 levels down\n */\n\n // sequence drop down a level\n attribute = dn.child;\n \n while (attribute != null) {\n if (attribute != dn.child) {\n name.append(\";\");\n }\n\n /*\n * we do not handle relative distinguished names yet\n * which should not be used by CAs anyway\n * so only take the first element of the sequence\n */\n\n type = attribute.child.child;\n\n /*\n * At this point we tag the name component, e.g. C= or hex\n * if unknown.\n */\n if ((type.length == 3) && (buffer[type.valueOffset] == 0x55) &&\n (buffer[type.valueOffset + 1] == 0x04)) {\n // begins with id-at, so try to see if we have a label\n int temp = buffer[type.valueOffset + 2] & 0xFF;\n if ((temp < AttrLabel.length) &&\n (AttrLabel[temp] != null)) {\n name.append(AttrLabel[temp]);\n } else {\n name.append(TLV.hexEncode(buffer, type.valueOffset,\n type.length, -1));\n }\n } else if (TLV.byteMatch(buffer, type.valueOffset,\n type.length, EMAIL_ATTR_OID,\n 0, EMAIL_ATTR_OID.length)) {\n name.append(EMAIL_ATTR_LABEL);\n } else {\n name.append(TLV.hexEncode(buffer, type.valueOffset,\n type.length, -1));\n }\n\n name.append(\"=\");\n\n value = attribute.child.child.next;\n if (value.type == TLV.PRINTSTR_TYPE ||\n value.type == TLV.TELETEXSTR_TYPE ||\n value.type == TLV.UTF8STR_TYPE ||\n value.type == TLV.IA5STR_TYPE ||\n value.type == TLV.UNIVSTR_TYPE) {\n try {\n name.append(new String(buffer, value.valueOffset,\n value.length, \"UTF-8\"));\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e.toString());\n }\n } else {\n name.append(TLV.hexEncode(buffer, value.valueOffset,\n value.length, -1));\n }\n\n attribute = attribute.next;\n }\n\n return name.toString();\n }", "public static String generateData() {\n\t\tStringBuilder res = new StringBuilder();\n\t\tres.append(generateID(9));\n\t\tres.append(\",\");\n\t\tres.append(\"Galsgow\");\n\t\tres.append(\",\");\n\t\tres.append(\"UK\");\n\t\tres.append(\",\");\n\t\tres.append(generateDate());\n\t\treturn res.toString();\n\t}", "static String makeData(String key,\n String value) {\n return format(DATA_FMT, key, value);\n }", "public static String toBaoMi(String secretKey, String data) throws Exception {\n\n \n\n \tSecretKeyFactory factory = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\");\n\n \tKeySpec spec = new PBEKeySpec(secretKey.toCharArray(), secretKey.getBytes(), 128, 256);\n\n \tSecretKey tmp = factory.generateSecret(spec);\n\n \tSecretKey key = new SecretKeySpec(tmp.getEncoded(), SuanFa);\n\n \t\n\n Cipher cipher = Cipher.getInstance(SuanFa);\n\n cipher.init(Cipher.ENCRYPT_MODE, key);\n\n \n\n return toShiLiuJinZhi(cipher.doFinal(data.getBytes()));\n\n }", "String dibujar();", "public final String mo4983Fk() {\n AppMethodBeat.m2504i(128894);\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"InstanceId:\").append(this.ddx);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppId:\").append(this.ddc);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppVersion:\").append(this.ddd);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppState:\").append(this.dgQ);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppType:\").append(this.ddz);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"CostTimeMs:\").append(this.ddA);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"Scene:\").append(this.cVR);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"StartTimeStampMs:\").append(this.ddB);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"EndTimeStampMs:\").append(this.ddC);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"path:\").append(this.bUh);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"isPreload:\").append(this.ddg);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"isPreloadPageFrame:\").append(this.deD);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"networkTypeStr:\").append(this.dex);\n String stringBuffer2 = stringBuffer.toString();\n AppMethodBeat.m2505o(128894);\n return stringBuffer2;\n }", "public String toData() {\n return super.toData() + \"~S~\" + by;\n }", "public void setData(String d) {\n _data = d.getBytes();\n }", "public String getAgcData ()\n\t{\n\t\tString agcData = getContent().substring(OFF_ID27_AGC_DATA, OFF_ID27_AGC_DATA + LEN_ID27_AGC_DATA) ;\n\t\treturn (agcData);\n\t}", "public String getTestData(String TC)\r\n\t{\r\n\t\tString regData=testData.get(TC);\r\n\t\t\r\n\t\tif(regData.split(\",\")[0].length()>9)\r\n\t\t\tregData=regData.replace(regData.split(\",\")[0], Generic.generateMobileNumber());\r\n\t\t\r\n\t\treturn regData;\r\n\t}", "private String doDrTranslate(String pDrCode) {\n\n byte[] aCode = pDrCode.getBytes();\n String aDrCode = pDrCode;\n\n if (aCode.length == 5 && !mFacility.matches(\"BHH|PJC|MAR|ANG\")) {\n int i;\n for (i = 1; i < aCode.length; i++) {\n if ((i == 1 || i == 2) && (aCode[i] < 'A' || aCode[i] > 'Z')) { // Check for \"aa\" part of format\n aDrCode = k.NULL ;\n } else if ((i == 3 || i == 4 || i==5) && (aCode[i] < '0' || aCode[i] > '9')) { // Check for \"nnn\" part of format\n aDrCode = k.NULL ;\n }\n }\n return pDrCode;\n\n } else {\n if (mFacility.equalsIgnoreCase(\"SDMH\")) {\n CodeLookUp aSDMHDrTranslate = new CodeLookUp(\"Dr_Translation.table\", \"SDMH\", mEnvironment);\n aDrCode = aSDMHDrTranslate.getValue(pDrCode);\n\n if (aDrCode.length() == 5 ) {\n aDrCode = k.NULL;\n }\n } else if (mFacility.equalsIgnoreCase(\"CGMC\")) {\n if (! pDrCode.equalsIgnoreCase(\"UNK\")) {\n aDrCode = k.NULL ;\n }\n } else if (mFacility.equalsIgnoreCase(\"ALF\")) {\n aDrCode = k.NULL ;\n } else {\n //covers eastern health systems\n aDrCode = pDrCode;\n }\n }\n return aDrCode;\n\n }", "public static void main(String[] args) throws Exception {\n String data=\"=1&sta=dc4f223eb429&shop=1&token=123232jd&r=8134ad506c4e&id=12a2c334&type=check&data=t572007166r0e0c0h31624hb18fe34010150aps1800api5si10em2pl1024pll3072tag20 sp1\";\r\n// String data=\"=1&sta=dc4f223eb429&shop=1&token=123232jd&r=8134ad506c4e&id=12a2c334&type=configa&data=ch1cas5cat5sc5t30603970r0e0c0h47368cst36000iga1st1\";\r\n// System.out.println((int)'&');\r\n// System.out.println(data);\r\n// data = \"c3RhPTY4YzYzYWUwZGZlZiZzaG9wPTEmdG9rZW49MTIzMjMyamQmcj05NGQ5YjNhOWMyNmYmaWQ9MmRlY2ZkY2UmdHlwZT1wcm9iZWEmZGF0YT0lMDE5NGQ5YjNhOWMyNmYmJTAxJTAxMDAxN2M0Y2QwMWNmeCUwMTc4NjI1NmM2NzI1YkwlMDE1Yzk2OWQ3MWVmNjNRJTAxOTRkOWIzYTljMjZmJTIxJTAxN2NjNzA5N2Y0MWFmeCUwMSUwMWRjODVkZWQxNjE3ZjklMDE1NGRjMWQ3MmE0NDB4JTAxNzg2MjU2YzY3MjViRSUwMTVjOTY5ZDcxZWY2M0olMDE5NGQ5YjNhOWMyNmYlMUUlMDFlNGE3YTA5M2UzOTJ4JTAxNGMzNDg4OTQ5YjY2eCUwMTNjNDZkODMwZTAyMDYlMDElMDE2MGYxODk2ZjJmY2JDJTAxOTRkOWIzYTljMjZmKyUwMTkwYzM1ZjE3NWQ2MXglMDE0YzM0ODg5NDliNjZ4JTAxZTRhN2M1YzhjYzA4JTNBJTAxJTAxZjBiNDI5ZDI1MTFjWCUwMTVjOTY5ZDcxZWY2MyU1QyUwMWQ0NmE2YTE1NWJmMXglMDE5NGQ5YjNhOWMyNmYqJTAxPQ==\";\r\n// data = \"c3RhPTY4YzYzYWUwZGZlZiZzaG9wPTEmdG9rZW49MTIzMjMyamQmcj05NGQ5YjNhOWMyNmYmaWQ9NWY0NTQzZWMmdHlwZT1wcm9iZWEmZGF0YT0lMDE2OGM2M2FlMGRmZWYmJTAxMDhmNjljMDYzNDdmRSUwMTIwM2NhZThlMjZlY0clMDE9\";\r\n System.out.println(WIFIReportVO.buildWIFIReportVO(data));\r\n System.out.println(WIFIReportVO.buildWIFIReportVO(new String(Base64Utils.decodeFromString(data))));\r\n\r\n// HttpUtils.postJSON(\"http://127.0.0.1:8080/soundtooth/callout\" , \"{\\\"user_name\\\":\\\"用户名\\\",\\\"iSeatNo\\\":\\\"1001001\\\",\\\"callId\\\":\\\"210ab0fdfca1439ba268a6bf8266305c\\\",\\\"telA\\\":\\\"18133331269\\\",\\\"telB\\\":\\\"181****1200\\\",\\\"telX\\\":\\\"17100445588\\\",\\\"telG\\\":\\\"07556882659\\\",\\\"duration\\\":\\\"19\\\",\\\"userData\\\":\\\"ef7ede6f36c84f1d45333863c38ff14c\\\"}\");\r\n//// HttpUtils.postJSON(\"http://127.0.0.1:8080/soundtooth/callout\" , \"{\\\"user_name\\\":\\\"用户名\\\",\\\"iSeatNo\\\":\\\"1001001\\\",\\\"callId\\\":\\\"210ab0fdfca1439ba268a6bf8266305c\\\",\\\"telA\\\":\\\"18133331269\\\",\\\"telB\\\":\\\"181****1200\\\",\\\"telX\\\":\\\"17100445588\\\",\\\"telG\\\":\\\"07556882659\\\",\\\"duration\\\":\\\"19\\\",\\\"userData\\\":\\\"ef7ede6f36c84f1d45333863c38ff14c\\\"}\");\r\n// System.out.println(HttpUtils.postJSON(\"http://s.slstdt.com/collector/collect\" , \"\"));\r\n// System.out.println(HttpUtils.postJSON(\"http://s.slstdt.com/soundtooth/callout\" , \"\"));\r\n\r\n\r\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "String mo2801a(String str);", "private static String descifrarBase64(String arg) {\n Base64.Decoder decoder = Base64.getDecoder();\n byte[] decodedByteArray = decoder.decode(arg);\n\n return new String(decodedByteArray);\n }", "public String MaToDaa(double ma) {\n // daa = ma/10000\n double daa = ma/10000;\n return check_after_decimal_point(daa);\n }", "public String toFIPAString() {\n String str = \"(\" + type.toUpperCase() + \"\\n\";\n if ( sender != null )\n str += \" :sender ( \" + getSender_As_FIPA_String() + \" )\\n\";\n if ( receivers != null && !receivers.isEmpty() ) {\n str += \" :receiver (set \";\n Enumeration allRec = getFIPAReceivers();\n while (allRec.hasMoreElements()) {\n FIPA_AID_Address addr = (FIPA_AID_Address) allRec.nextElement();\n String current =\"(\" + addr.toFIPAString() +\")\";\n str += current; }\n str += \" )\\n\";\n }\n if ( replyWith != null )\n str += \" :reply-with \" + replyWith + \"\\n\";\n if ( inReplyTo != null )\n str += \" :in-reply-to \" + inReplyTo + \"\\n\";\n if ( replyBy != null )\n str += \" :reply-by \" + replyBy + \"\\n\";\n if ( ontology != null )\n str += \" :ontology \" + ontology + \"\\n\";\n if ( language != null )\n str += \" :language \" + language + \"\\n\";\n if ( content != null )\n // try no \"'s // brackets may be SL specific\n str += \" :content \\\"\" + content + \"\\\"\\n\";//\" :content \\\"( \" +Misc.escape(content) + \")\\\"\\n\";\n if ( protocol != null )\n str += \" :protocol \" + protocol + \"\\n\";\n if ( conversationId != null )\n str += \" :conversation-id \" + conversationId + \"\\n\";\n if ( replyTo != null )\n str += \" :reply-to \" + replyTo + \"\\n\";\n /*\n if ( envelope != null && !envelope.isEmpty() ) {\n str += \" :envelope (\";\n Enumeration enum = envelope.keys();\n String key;\n Object value;\n while( enum.hasMoreElements() ) {\n key = (String)enum.nextElement();\n value = envelope.get(key);\n str += \"(\" + key + \" \\\"\" + Misc.escape(value.toString()) + \"\\\")\";\n }*/\n // str += \")\";\n //}\n \n str += \")\\n\";\n return str;\n }", "public String HaToDaa(double ha) {\n // daa = 10*ha\n double daa = ha*10;\n return check_after_decimal_point(daa);\n }", "void mo1582a(String str, C1329do c1329do);", "private String convertToMdy(String fechaDocumento)\n {\n String ahnio = fechaDocumento.substring(0, 4);\n String mes = fechaDocumento.substring(4, 6);\n String dia = fechaDocumento.substring(6, 8);\n \n return String.format( \"%s-%s-%s\", ahnio, mes, dia );\n }", "String getATCUD();", "public String\nrdataToString() {\n\tStringBuffer sb = new StringBuffer();\n\tif (signature != null) {\n\t\tsb.append (Type.string(covered));\n\t\tsb.append (\" \");\n\t\tsb.append (alg);\n\t\tsb.append (\" \");\n\t\tsb.append (labels);\n\t\tsb.append (\" \");\n\t\tsb.append (origttl);\n\t\tsb.append (\" \");\n\t\tif (Options.check(\"multiline\"))\n\t\t\tsb.append (\"(\\n\\t\");\n\t\tsb.append (formatDate(expire));\n\t\tsb.append (\" \");\n\t\tsb.append (formatDate(timeSigned));\n\t\tsb.append (\" \");\n\t\tsb.append (footprint);\n\t\tsb.append (\" \");\n\t\tsb.append (signer);\n\t\tif (Options.check(\"multiline\")) {\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(base64.formatString(signature, 64, \"\\t\",\n\t\t\t\t true));\n\t\t} else {\n\t\t\tsb.append (\" \");\n\t\t\tsb.append(base64.toString(signature));\n\t\t}\n\t}\n\treturn sb.toString();\n}", "private static byte[] m5293aA(String str) {\n try {\n if (TextUtils.isEmpty(str)) {\n return null;\n }\n StringBuilder sb = new StringBuilder();\n sb.append(str);\n sb.append(C1248f.getKey());\n return Arrays.copyOf(sb.toString().getBytes(AudienceNetworkActivity.WEBVIEW_ENCODING), 16);\n } catch (Throwable unused) {\n return null;\n }\n }", "void mo303a(C0237a c0237a, String str, String str2, String str3);", "public void setDataFromLMS(java.lang.String dataFromLMS);", "Integer getDataStrt();", "public static String byteArrayToDataString(byte[] inBytes)\n\t{\n\t\tStringBuffer playerDataString = new StringBuffer();\n\t\t\n\t\tfor (int byteIndex = 0; byteIndex < inBytes.length; byteIndex++)\n\t\t{\n\t\t\tplayerDataString.append(\" \");\n\n\t\t\tif (inBytes[byteIndex] >= 0)\n\t\t\t{\n\t\t\t\tplayerDataString.append(Integer.toHexString(inBytes[byteIndex]).toUpperCase());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tplayerDataString.append(Integer.toHexString(inBytes[byteIndex]).toUpperCase().substring(6));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn playerDataString.toString();\n\t}", "private String getDataAttributes() {\n StringBuilder sb = new StringBuilder();\n\n dataAttribute.forEach((key, value) -> {\n sb.append(key).append(\"='\").append(value).append(\"' \");\n });\n\n return sb.toString().trim();\n }", "String mo150a(String str);", "C12000e mo41087c(String str);", "public final String mo29756a(C12012d dVar) {\n C12011c cVar;\n C12014b bVar = new C12014b(this.f32164b);\n StringBuilder sb = new StringBuilder(\"\");\n String str = \"\";\n if (dVar.f31950e != null && dVar.f31950e.size() > 0) {\n List a = bVar.mo29662a(dVar.f31950e);\n for (int i = 0; i < dVar.f31950e.size(); i++) {\n if (((C12009a) a.get(i)).f31930b != null) {\n StringBuilder sb2 = new StringBuilder(\",\\\"\");\n sb2.append(new File((String) dVar.f31950e.get(i)).getName());\n sb2.append(\"\\\":\\\"\");\n sb2.append((String) ((C12009a) a.get(i)).f31930b.getUrlList().get(0));\n sb2.append(\"\\\"\");\n sb.append(sb2.toString());\n }\n }\n }\n C12015c cVar2 = new C12015c(this.f32164b);\n if (dVar.f31949d != null && dVar.f31949d.size() > 0) {\n List a2 = cVar2.mo29663a(dVar.f31949d);\n String str2 = str;\n for (int i2 = 0; i2 < dVar.f31949d.size(); i2++) {\n if (((C12009a) a2.get(i2)).f31930b != null) {\n StringBuilder sb3 = new StringBuilder(\",\\\"\");\n sb3.append(new File((String) dVar.f31949d.get(i2)).getName());\n sb3.append(\"\\\":\\\"\");\n sb3.append((String) ((C12009a) a2.get(i2)).f31930b.getUrlList().get(0));\n sb3.append(\"\\\"\");\n sb.append(sb3.toString());\n str2 = ((C12009a) a2.get(i2)).f31930b.getUri();\n }\n }\n str = str2;\n }\n String sb4 = sb.toString();\n if (!sb4.equals(\"\")) {\n sb4 = sb4.substring(1);\n }\n StringBuilder sb5 = new StringBuilder(\"{\");\n sb5.append(sb4);\n sb5.append(\"}\");\n try {\n cVar = (C12011c) C12013a.m35082a().fastback(dVar.f31946a, 1, URLEncoder.encode(dVar.f31947b, \"UTF-8\"), URLEncoder.encode(dVar.f31948c, \"UTF-8\"), URLEncoder.encode(sb5.toString(), \"UTF-8\"), URLEncoder.encode(str, \"UTF-8\"), C12072c.m35216a(), \"Android\", m35239a(C11999a.m35070a())).get();\n } catch (Throwable unused) {\n cVar = null;\n }\n if (cVar == null) {\n return \"Failure to submit, please try again.\";\n }\n if (cVar.f31944a == 0) {\n return \"\";\n }\n if (TextUtils.isEmpty(cVar.f31945b)) {\n return \"Failure to submit, please try again.\";\n }\n return cVar.f31945b;\n }", "private void convertToString(String s)\n\t{\n\t\tchar chars[] = s.toCharArray();\n\t\tfor(int i = 0; i < chars.length; i+=3)\n\t\t{\n\t\t\tString temp = \"\";\n\t\t\ttemp += chars[i];\n\t\t\ttemp += chars[i+1];\n\t\t\tif(chars[i] < '3')\n\t\t\t{\n\t\t\t\ttemp += chars[i+2];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ti -= 1;\n\t\t\t}\n\t\t\t\n\t\t\tif(!temp.equals(\"256\"))\n\t\t\t{\n\t\t\t\tmyDecryptedMessage += (char)(Integer.parseInt(temp));\n\t\t\t}\n\t\t}\n\t}", "static String m61434a(C18815c cVar, String str) {\n StringBuilder sb = new StringBuilder(str);\n C18800a aVar = cVar.f50716k;\n if (aVar != null) {\n sb.append(aVar.f50683b.mo50069a());\n }\n List<C18800a> list = cVar.f50717l;\n if (list != null) {\n int size = list.size();\n for (int i = 0; i < size; i++) {\n if (i > 0 || aVar != null) {\n sb.append(\", \");\n }\n sb.append(((C18800a) list.get(i)).f50683b.mo50069a());\n }\n }\n return sb.toString();\n }", "public java.lang.String getAdresa() {\n java.lang.Object ref = adresa_;\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 adresa_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "java.lang.String getField1305();", "public final String mo4982Fj() {\n int i;\n AppMethodBeat.m2504i(128893);\n String str = \",\";\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(this.ddx);\n stringBuffer.append(str);\n stringBuffer.append(this.ddc);\n stringBuffer.append(str);\n stringBuffer.append(this.ddd);\n stringBuffer.append(str);\n if (this.dgQ != null) {\n i = this.dgQ.value;\n } else {\n i = -1;\n }\n stringBuffer.append(i);\n stringBuffer.append(str);\n stringBuffer.append(this.ddz);\n stringBuffer.append(str);\n stringBuffer.append(this.ddA);\n stringBuffer.append(str);\n stringBuffer.append(this.cVR);\n stringBuffer.append(str);\n stringBuffer.append(this.ddB);\n stringBuffer.append(str);\n stringBuffer.append(this.ddC);\n stringBuffer.append(str);\n stringBuffer.append(this.bUh);\n stringBuffer.append(str);\n stringBuffer.append(this.ddg);\n stringBuffer.append(str);\n stringBuffer.append(this.deD);\n stringBuffer.append(str);\n stringBuffer.append(this.dex);\n String stringBuffer2 = stringBuffer.toString();\n mo74164VX(stringBuffer2);\n AppMethodBeat.m2505o(128893);\n return stringBuffer2;\n }", "public String fromPacketToString() {\r\n\t\tString message = Integer.toString(senderID) + PACKET_SEPARATOR + Integer.toString(packetID) + PACKET_SEPARATOR + type + PACKET_SEPARATOR;\r\n\t\tfor (String word:content) {\r\n\t\t\tmessage = message + word + PACKET_SEPARATOR;\r\n\t\t}\r\n\t\treturn message;\r\n\t}", "protected abstract SingleKeyVersionDataExtractor<DATA> generateDataKeyAsString () ;", "String convertCAS(String CAS) {\n\t\t\n\t\tif (CAS.equals(\"427452 (uncertainty about the CAS No)\")) CAS=\"427452\";\n\t\t\n\t\tDecimalFormat df=new DecimalFormat(\"0\");\n\t\t\n\t\tdouble dCAS=Double.parseDouble(CAS);\n\t\t\n//\t\tSystem.out.println(CAS);\n\t\tCAS=df.format(dCAS);\n//\t\tSystem.out.println(CAS);\n\n\t\tString var3=CAS.substring(CAS.length()-1,CAS.length());\n\t\tCAS=CAS.substring(0,CAS.length()-1);\n\t\tString var2=CAS.substring(CAS.length()-2,CAS.length());\n\t\tCAS=CAS.substring(0,CAS.length()-2);\n\t\tString var1=CAS;\n\t\tString CASnew=var1+\"-\"+var2+\"-\"+var3;\n//\t\tSystem.out.println(CASnew);\n\t\treturn CASnew;\n\t}", "public static void main(String args[])\r\n\t{\n\t\ttry {\r\n\t\t\tString s = \"{\\\"wfycdwmc\\\":\\\"河西单位0712\\\",\\\"sfbj\\\":\\\"0\\\"}\";\r\n\t\t sun.misc.BASE64Encoder necoder = new sun.misc.BASE64Encoder(); \r\n\t\t String ss = necoder.encode(s.getBytes());\r\n\t\t System.out.println(ss);\r\n\t\t sun.misc.BASE64Decoder decoder = new sun.misc.BASE64Decoder();\r\n\t\t byte[] bt = decoder.decodeBuffer(ss); \r\n\t\t ss = new String(bt, \"UTF-8\");\r\n\t\t System.out.println(ss);\r\n//\t\t\tClient client = new Client(new URL(url));\r\n////\t\t\tObject[] token = client.invoke(\"getToken\",new Object[] {tokenUser,tokenPwd});//获取token\r\n//\t\t\tObject[] zyjhbh = client.invoke(apiName,new Object[] {\"120000\"});\r\n//\t\t\tSystem.out.println(zyjhbh[0].toString());\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static String createArffData(DataSet dataSet){\n StringBuilder sb = new StringBuilder();\n sb.append(\"@data\\n\");\n for(int i = 0; i < dataSet.getRows(); i++){\n for(int j = 0; j < dataSet.getColumns() - 1; j++){\n sb.append(dataSet.getEntryInDataSet(i, j));\n sb.append(\",\");\n }\n sb.append(dataSet.getEntryInDataSet(i, dataSet.getColumns() - 1));\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n return sb.toString();\n }", "public String pid_011C(String str){\n\nString standar=\"Unknow\";\n switch(str.charAt(1)){\n case '1':{standar=\"OBD-II as defined by the CARB\";break;} \n case '2':{standar=\"OBD as defined by the EPA\";break;}\n case '3':{standar=\"OBD and OBD-II\";break;}\n case '4':{standar=\"OBD-I\";break;}\n case '5':{standar=\"Not meant to comply with any OBD standard\";break;}\n case '6':{standar=\"EOBD (Europe)\";break;}\n case '7':{standar=\"EOBD and OBD-II\";break;}\n case '8':{standar=\"EOBD and OBD\";break;}\n case '9':{standar=\"EOBD, OBD and OBD II\";break;}\n case 'A':{standar=\"JOBD (Japan)\";break;}\n case 'B':{standar=\"JOBD and OBD II\";break;} \n case 'C':{standar=\"JOBD and EOBD\";break;}\n case 'D':{standar=\"JOBD, EOBD, and OBD II\";break;} \n default: {break;} \n }\n \n return standar;\n}", "private static String m12564b(String str, String str2, String str3) {\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 4 + String.valueOf(str2).length() + String.valueOf(str3).length());\n sb.append(str);\n sb.append(\"|T|\");\n sb.append(str2);\n sb.append(\"|\");\n sb.append(str3);\n return sb.toString();\n }", "static void sta_to_mem(String passed){\n\t\tmemory.put(hexa_to_deci(passed.substring(4)),registers.get('A'));\n\t\t//System.out.println(memory.get(hexa_to_deci(passed.substring(4))));\n\t}", "String decodeString();", "public String formataDataNascimento(String dataNascimentoInserida) {\n String dataNascimentoString;\n SimpleDateFormat formatadorDataNascimento = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date dataNascimento = new Date();\n try {\n dataNascimento = formatadorDataNascimento.parse((dataNascimentoInserida));\n } catch (ParseException ex) {\n this.telaFuncionario.mensagemErroDataNascimento();\n dataNascimentoString = cadastraDataNascimento();\n return dataNascimentoString;\n }\n dataNascimentoString = formatadorDataNascimento.format(dataNascimento);\n dataNascimentoString = controlaConfirmacaoCadastroDataNascimento(dataNascimentoString);\n return dataNascimentoString;\n }", "static void adi_data_with_acc(String passed){\n\t\tint sum = hexa_to_deci(registers.get('A'));\n\t\tsum+=hexa_to_deci(passed.substring(4));\n\t\tCS = sum>255?true:false;\n\t\tregisters.put('A',decimel_to_hexa_8bit(sum));\n\t\tmodify_status(registers.get('A'));\n\t}", "private static String loadConvert(String str) {\n\t\tint off = 0;\n\t\tint len = str.length();\n\t\tchar[] in = str.toCharArray();\n\t\tchar[] convtBuf = new char[1024];\n\t\tif (convtBuf.length < len) {\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0) {\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end) {\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\') {\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u') {\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar) {\n\t\t\t\t\t\tcase '0':\n\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\tcase '3':\n\t\t\t\t\t\tcase '4':\n\t\t\t\t\t\tcase '5':\n\t\t\t\t\t\tcase '6':\n\t\t\t\t\t\tcase '7':\n\t\t\t\t\t\tcase '8':\n\t\t\t\t\t\tcase '9':\n\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'a':\n\t\t\t\t\t\tcase 'b':\n\t\t\t\t\t\tcase 'c':\n\t\t\t\t\t\tcase 'd':\n\t\t\t\t\t\tcase 'e':\n\t\t\t\t\t\tcase 'f':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tcase 'C':\n\t\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcase 'E':\n\t\t\t\t\t\tcase 'F':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char) value;\n\t\t\t\t} else {\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}", "public static String formatarDataSemBarraDDMMAAAA(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "CharSequence formatEIP721Message(\n String messageData);", "void mo8713dV(String str);", "@Override\n\t\tpublic byte[] convert(String s) {\n\t\t\treturn s.getBytes();\n\t\t}", "public static String bcdPlmnToString(byte[] data, int offset) {\n if (offset + 3 > data.length) {\n return null;\n }\n byte[] trans = new byte[3];\n trans[0] = (byte) ((data[0 + offset] << 4) | ((data[0 + offset] >> 4) & 0xF));\n trans[1] = (byte) ((data[1 + offset] << 4) | (data[2 + offset] & 0xF));\n trans[2] = (byte) ((data[2 + offset] & 0xF0) | ((data[1 + offset] >> 4) & 0xF));\n String ret = bytesToHexString(trans);\n\n // For a valid plmn we trim all character 'F'\n if (ret.contains(\"F\")) {\n ret = ret.replaceAll(\"F\", \"\");\n }\n return ret;\n }", "java.lang.String getDataId();", "java.lang.String getDataId();", "java.lang.String getAdresa();", "public String getData() {\n \n String str = new String();\n int aux;\n\n for(int i = 0; i < this.buffer.size(); i++) {\n for(int k = 0; k < this.buffer.get(i).size(); k++) {\n aux = this.buffer.get(i).get(k);\n str = str + Character.toString((char)aux);\n }\n str = str + \"\\n\";\n }\n return str;\n }", "public CharSequence ZawGyiToUni(String myString1, Boolean unicode) {\n\t\t String uni = \"[\"\n\t + \" {\\\"from\\\": \\\"(\\u103D|\\u1087)\\\",\\\"to\\\":\\\"\\u103E\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C\\\",\\\"to\\\":\\\"\\u103D\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u103B|\\u107E|\\u107F|\\u1080|\\u1081|\\u1082|\\u1083|\\u1084)\\\",\\\"to\\\":\\\"\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u103A|\\u107D)\\\",\\\"to\\\":\\\"\\u103B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1039\\\",\\\"to\\\":\\\"\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106A\\\",\\\"to\\\":\\\"\\u1009\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106B\\\",\\\"to\\\":\\\"\\u100A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106C\\\",\\\"to\\\":\\\"\\u1039\\u100B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106D\\\",\\\"to\\\":\\\"\\u1039\\u100C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106E\\\",\\\"to\\\":\\\"\\u100D\\u1039\\u100D\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106F\\\",\\\"to\\\":\\\"\\u100D\\u1039\\u100E\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1070\\\",\\\"to\\\":\\\"\\u1039\\u100F\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u1071|\\u1072)\\\",\\\"to\\\":\\\"\\u1039\\u1010\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1060\\\",\\\"to\\\":\\\"\\u1039\\u1000\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1061\\\",\\\"to\\\":\\\"\\u1039\\u1001\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1062\\\",\\\"to\\\":\\\"\\u1039\\u1002\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1063\\\",\\\"to\\\":\\\"\\u1039\\u1003\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1065\\\",\\\"to\\\":\\\"\\u1039\\u1005\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1068\\\",\\\"to\\\":\\\"\\u1039\\u1007\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1069\\\",\\\"to\\\":\\\"\\u1039\\u1008\\\"},\"\n\t + \" {\\\"from\\\": \\\"/(\\u1073|\\u1074)/g\\\",\\\"to\\\":\\\"\\u1039\\u1011\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1075\\\",\\\"to\\\":\\\"\\u1039\\u1012\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1076\\\",\\\"to\\\":\\\"\\u1039\\u1013\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1077\\\",\\\"to\\\":\\\"\\u1039\\u1014\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1078\\\",\\\"to\\\":\\\"\\u1039\\u1015\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1079\\\",\\\"to\\\":\\\"\\u1039\\u1016\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u107A\\\",\\\"to\\\":\\\"\\u1039\\u1017\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u107C\\\",\\\"to\\\":\\\"\\u1039\\u1019\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1085\\\",\\\"to\\\":\\\"\\u1039\\u101C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1033\\\",\\\"to\\\":\\\"\\u102F\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1034\\\",\\\"to\\\":\\\"\\u1030\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103F\\\",\\\"to\\\":\\\"\\u1030\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1086\\\",\\\"to\\\":\\\"\\u103F\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1088\\\",\\\"to\\\":\\\"\\u103E\\u102F\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1089\\\",\\\"to\\\":\\\"\\u103E\\u1030\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u108A\\\",\\\"to\\\":\\\"\\u103D\\u103E\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u1064\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u108B\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u102D\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u108C\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u102E\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u108D\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u108E\\\",\\\"to\\\":\\\"\\u102D\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u108F\\\",\\\"to\\\":\\\"\\u1014\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1090\\\",\\\"to\\\":\\\"\\u101B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1091\\\",\\\"to\\\":\\\"\\u100F\\u1039\\u1091\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1019\\u102C(\\u107B|\\u1093)\\\",\\\"to\\\":\\\"\\u1019\\u1039\\u1018\\u102C\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u107B|\\u1093)\\\",\\\"to\\\":\\\"\\u103A\\u1018\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u1094|\\u1095)\\\",\\\"to\\\":\\\"\\u1037\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1096\\\",\\\"to\\\":\\\"\\u1039\\u1010\\u103D\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1097\\\",\\\"to\\\":\\\"\\u100B\\u1039\\u100B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C([\\u1000-\\u1021])([\\u1000-\\u1021])?\\\",\\\"to\\\":\\\"$1\\u103C$2\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u103C\\u103A\\\",\\\"to\\\":\\\"\\u103C$1\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031([\\u1000-\\u1021])(\\u103E)?(\\u103B)?\\\",\\\"to\\\":\\\"$1$2$3\\u1031\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u1031(\\u103B|\\u103C|\\u103D)\\\",\\\"to\\\":\\\"$1$2\\u1031\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1032\\u103D\\\",\\\"to\\\":\\\"\\u103D\\u1032\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103D\\u103B\\\",\\\"to\\\":\\\"\\u103B\\u103D\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103A\\u1037\\\",\\\"to\\\":\\\"\\u1037\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u102F(\\u102D|\\u102E|\\u1036|\\u1037)\\u102F\\\",\\\"to\\\":\\\"\\u102F$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u102F\\u102F\\\",\\\"to\\\":\\\"\\u102F\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u102F|\\u1030)(\\u102D|\\u102E)\\\",\\\"to\\\":\\\"$2$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u103E)(\\u103B|\\u1037)\\\",\\\"to\\\":\\\"$2$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1025(\\u103A|\\u102C)\\\",\\\"to\\\":\\\"\\u1009$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1025\\u102E\\\",\\\"to\\\":\\\"\\u1026\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1005\\u103B\\\",\\\"to\\\":\\\"\\u1008\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1036(\\u102F|\\u1030)\\\",\\\"to\\\":\\\"$1\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031\\u1037\\u103E\\\",\\\"to\\\":\\\"\\u103E\\u1031\\u1037\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031\\u103E\\u102C\\\",\\\"to\\\":\\\"\\u103E\\u1031\\u102C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u105A\\\",\\\"to\\\":\\\"\\u102B\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031\\u103B\\u103E\\\",\\\"to\\\":\\\"\\u103B\\u103E\\u1031\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u102D|\\u102E)(\\u103D|\\u103E)\\\",\\\"to\\\":\\\"$2$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u102C\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1039$1\\u102C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C\\u1004\\u103A\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1039\\u103C\\u103A\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u103A\\u1039$1\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1039$1\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1036\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1039$1\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1092\\\",\\\"to\\\":\\\"\\u100B\\u1039\\u100C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u104E\\\",\\\"to\\\":\\\"\\u104E\\u1004\\u103A\\u1038\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1040(\\u102B|\\u102C|\\u1036)\\\",\\\"to\\\":\\\"\\u101D$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1025\\u1039\\\",\\\"to\\\":\\\"\\u1009\\u1039\\\"}\" + \"]\";\n\t\t \n\t\t String zawgyi = \"[ { \\\"from\\\": \\\"င်္\\\", \\\"to\\\": \\\"ၤ\\\" }, { \\\"from\\\": \\\"္တွ\\\", \\\"to\\\": \\\"႖\\\" }, { \\\"from\\\": \\\"န(?=[ူွှု္])\\\", \\\"to\\\": \\\"ႏ\\\" }, { \\\"from\\\": \\\"ါ်\\\", \\\"to\\\": \\\"ၚ\\\" }, { \\\"from\\\": \\\"ဋ္ဌ\\\", \\\"to\\\": \\\"႒\\\" }, { \\\"from\\\": \\\"ိံ\\\", \\\"to\\\": \\\"ႎ\\\" }, { \\\"from\\\": \\\"၎င်း\\\", \\\"to\\\": \\\"၎\\\" }, { \\\"from\\\": \\\"[ဥဉ](?=[္ုူ])\\\", \\\"to\\\": \\\"ၪ\\\" }, { \\\"from\\\": \\\"[ဥဉ](?=[်])\\\", \\\"to\\\": \\\"ဥ\\\" }, { \\\"from\\\": \\\"ည(?=[္ုူွ])\\\", \\\"to\\\": \\\"ၫ\\\" }, { \\\"from\\\": \\\"(္[က-အ])ု\\\", \\\"to\\\": \\\"$1ဳ\\\" }, { \\\"from\\\": \\\"(္[က-အ])ူ\\\", \\\"to\\\": \\\"$1ဴ\\\" }, { \\\"from\\\": \\\"္က\\\", \\\"to\\\": \\\"ၠ\\\" }, { \\\"from\\\": \\\"္ခ\\\", \\\"to\\\": \\\"ၡ\\\" }, { \\\"from\\\": \\\"္ဂ\\\", \\\"to\\\": \\\"ၢ\\\" }, { \\\"from\\\": \\\"္ဃ\\\", \\\"to\\\": \\\"ၣ\\\" }, { \\\"from\\\": \\\"္စ\\\", \\\"to\\\": \\\"ၥ\\\" }, { \\\"from\\\": \\\"္ဆ\\\", \\\"to\\\": \\\"ၦ\\\" }, { \\\"from\\\": \\\"္ဇ\\\", \\\"to\\\": \\\"ၨ\\\" }, { \\\"from\\\": \\\"္ဈ\\\", \\\"to\\\": \\\"ၩ\\\" }, { \\\"from\\\": \\\"ည(?=[္ုူ])\\\", \\\"to\\\": \\\"ၫ\\\" }, { \\\"from\\\": \\\"္ဋ\\\", \\\"to\\\": \\\"ၬ\\\" }, { \\\"from\\\": \\\"္ဌ\\\", \\\"to\\\": \\\"ၭ\\\" }, { \\\"from\\\": \\\"ဍ္ဍ\\\", \\\"to\\\": \\\"ၮ\\\" }, { \\\"from\\\": \\\"ဎ္ဍ\\\", \\\"to\\\": \\\"ၯ\\\" }, { \\\"from\\\": \\\"္ဏ\\\", \\\"to\\\": \\\"ၰ\\\" }, { \\\"from\\\": \\\"္တ\\\", \\\"to\\\": \\\"ၱ\\\" }, { \\\"from\\\": \\\"္ထ\\\", \\\"to\\\": \\\"ၳ\\\" }, { \\\"from\\\": \\\"္ဒ\\\", \\\"to\\\": \\\"ၵ\\\" }, { \\\"from\\\": \\\"္ဓ\\\", \\\"to\\\": \\\"ၶ\\\" }, { \\\"from\\\": \\\"္ဓ\\\", \\\"to\\\": \\\"ၶ\\\" }, { \\\"from\\\": \\\"္န\\\", \\\"to\\\": \\\"ၷ\\\" }, { \\\"from\\\": \\\"္ပ\\\", \\\"to\\\": \\\"ၸ\\\" }, { \\\"from\\\": \\\"္ဖ\\\", \\\"to\\\": \\\"ၹ\\\" }, { \\\"from\\\": \\\"္ဗ\\\", \\\"to\\\": \\\"ၺ\\\" }, { \\\"from\\\": \\\"္ဘ\\\", \\\"to\\\": \\\"ၻ\\\" }, { \\\"from\\\": \\\"္မ\\\", \\\"to\\\": \\\"ၼ\\\" }, { \\\"from\\\": \\\"္လ\\\", \\\"to\\\": \\\"ႅ\\\" }, { \\\"from\\\": \\\"ဿ\\\", \\\"to\\\": \\\"ႆ\\\" }, { \\\"from\\\": \\\"(ြ)ှ\\\", \\\"to\\\": \\\"$1ႇ\\\" }, { \\\"from\\\": \\\"ွှ\\\", \\\"to\\\": \\\"ႊ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])ိ\\\", \\\"to\\\": \\\"$2$3$4ႋ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])ီ\\\", \\\"to\\\": \\\"$2$3$4ႌ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])ံ\\\", \\\"to\\\": \\\"$2$3$4ႍ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])\\\", \\\"to\\\": \\\"$2$3$4$1\\\" }, { \\\"from\\\": \\\"ရ(?=[ုူွႊ])\\\", \\\"to\\\": \\\"႐\\\" }, { \\\"from\\\": \\\"ဏ္ဍ\\\", \\\"to\\\": \\\"႑\\\" }, { \\\"from\\\": \\\"ဋ္ဋ\\\", \\\"to\\\": \\\"႗\\\" }, { \\\"from\\\": \\\"([က-အႏဩ႐])([ၠ-ၩၬၭၰ-ၼႅႊ])?([ျ-ှ]*)?ေ\\\", \\\"to\\\": \\\"ေ$1$2$3\\\" }, { \\\"from\\\": \\\"([က-အဩ])([ၠ-ၩၬၭၰ-ၼႅ])?(ြ)\\\", \\\"to\\\": \\\"$3$1$2\\\" }, { \\\"from\\\": \\\"်\\\", \\\"to\\\": \\\"္\\\" }, { \\\"from\\\": \\\"ျ\\\", \\\"to\\\": \\\"်\\\" }, { \\\"from\\\": \\\"ြ\\\", \\\"to\\\": \\\"ျ\\\" }, { \\\"from\\\": \\\"ွ\\\", \\\"to\\\": \\\"ြ\\\" }, { \\\"from\\\": \\\"ှ\\\", \\\"to\\\": \\\"ွ\\\" }, { \\\"from\\\": \\\"ွု\\\", \\\"to\\\": \\\"ႈ\\\" }, { \\\"from\\\": \\\"([ုူနရြႊွႈ])([ဲံ]{0,1})့\\\", \\\"to\\\": \\\"$1$2႕\\\" }, { \\\"from\\\": \\\"ု႕\\\", \\\"to\\\": \\\"ု႔\\\" }, { \\\"from\\\": \\\"([နရ])([ဲံိီႋႌႍႎ])့\\\", \\\"to\\\": \\\"$1$2႕\\\" }, { \\\"from\\\": \\\"႕္\\\", \\\"to\\\": \\\"႔္\\\" }, { \\\"from\\\": \\\"([်ျ])([က-အ])([ံိီႋႌႍႎ]?)ု\\\", \\\"to\\\": \\\"$1$2$3ဳ\\\" }, { \\\"from\\\": \\\"([်ျ])([က-အ])([ံိီႋႌႍႎ]?)ူ\\\", \\\"to\\\": \\\"$1$2$3ဴ\\\" }, { \\\"from\\\": \\\"်ု\\\", \\\"to\\\": \\\"်ဳ\\\" }, { \\\"from\\\": \\\"်([ံိီႋႌႍႎ])ု\\\", \\\"to\\\": \\\"်$1ဳ\\\" }, { \\\"from\\\": \\\"([်ျ])([က-အ])ူ\\\", \\\"to\\\": \\\"$1$2ဴ\\\" }, { \\\"from\\\": \\\"်ူ\\\", \\\"to\\\": \\\"်ဴ\\\" }, { \\\"from\\\": \\\"်([ံိီႋႌႍႎ])ူ\\\", \\\"to\\\": \\\"်$1ဴ\\\" }, { \\\"from\\\": \\\"ွူ\\\", \\\"to\\\": \\\"ႉ\\\" }, { \\\"from\\\": \\\"ျ([ကဃဆဏတထဘယလယသဟ])\\\", \\\"to\\\": \\\"ၾ$1\\\" }, { \\\"from\\\": \\\"ၾ([ကဃဆဏတထဘယလယသဟ])([ြႊ])([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ႄ$1$2$3\\\" }, { \\\"from\\\": \\\"ၾ([ကဃဆဏတထဘယလယသဟ])([ြႊ])\\\", \\\"to\\\": \\\"ႂ$1$2\\\" }, { \\\"from\\\": \\\"ၾ([ကဃဆဏတထဘယလယသဟ])([ဳဴ]?)([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ႀ$1$2$3\\\" }, { \\\"from\\\": \\\"ျ([က-အ])([ြႊ])([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ႃ$1$2$3\\\" }, { \\\"from\\\": \\\"ျ([က-အ])([ြႊ])\\\", \\\"to\\\": \\\"ႁ$1$2\\\" }, { \\\"from\\\": \\\"ျ([က-အ])([ဳဴ]?)([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ၿ$1$2$3\\\" }, { \\\"from\\\": \\\"်ွ\\\", \\\"to\\\": \\\"ွ်\\\" }, { \\\"from\\\": \\\"်([ြႊ])\\\", \\\"to\\\": \\\"$1ၽ\\\" }, { \\\"from\\\": \\\"([ဳဴ])႔\\\", \\\"to\\\": \\\"$1႕\\\" }, { \\\"from\\\": \\\"ႏၱ\\\", \\\"to\\\" : \\\"ႏၲ\\\" }, { \\\"from\\\": \\\"([က-အ])([ၻၦ])ာ\\\", \\\"to\\\": \\\"$1ာ$2\\\" }, { \\\"from\\\": \\\"ာ([ၻၦ])့\\\", \\\"to\\\": \\\"ာ$1႔\\\" }]\";\n\t\t \n\t\t if(unicode==true) {\n\t\treturn replacewithUni(uni, myString1);\n\t\t } else {\n\t\t\t return replacewithZawgyi(zawgyi, myString1);\n\t\t }\n\t}", "private static String convertStringToHex(String input){\n\t\tchar[] chars = input.toCharArray();\n\t\tStringBuffer hexOutput = new StringBuffer();\n\t\t\n\t\tfor(int i = 0; i < chars.length; i++){\n\t\t\thexOutput.append(Integer.toHexString((int)chars[i]));\n\t\t}\n\n\t\treturn hexOutput.toString();\n\t}" ]
[ "0.63773084", "0.6288131", "0.6288131", "0.60600466", "0.59437644", "0.59158474", "0.59158474", "0.58850867", "0.58495486", "0.58214194", "0.5738917", "0.57216847", "0.56963676", "0.5679467", "0.5676883", "0.56505287", "0.55958754", "0.55832213", "0.55748063", "0.55553234", "0.55194783", "0.55099213", "0.5506576", "0.54711515", "0.5464949", "0.54213065", "0.5406046", "0.5390055", "0.53813756", "0.537557", "0.5373174", "0.53515714", "0.5339377", "0.5324829", "0.53145164", "0.5306203", "0.5305443", "0.52991265", "0.5297349", "0.52901655", "0.5274606", "0.52741456", "0.5273735", "0.52729243", "0.5270792", "0.5260025", "0.52444834", "0.52374744", "0.5213081", "0.5208921", "0.52065915", "0.51888645", "0.51633763", "0.5154687", "0.51476884", "0.51416165", "0.51405716", "0.51299316", "0.51262647", "0.5115579", "0.5113385", "0.51132256", "0.5111459", "0.5109085", "0.5104761", "0.51014006", "0.51002043", "0.5094095", "0.50935507", "0.5085542", "0.5084109", "0.50780463", "0.5077399", "0.50732166", "0.5066251", "0.50641704", "0.50572705", "0.5040228", "0.50390136", "0.5034951", "0.5033829", "0.50329775", "0.5028862", "0.50214446", "0.5019695", "0.5019221", "0.5003511", "0.50015336", "0.50000364", "0.4999078", "0.49989083", "0.49978304", "0.49838397", "0.49828345", "0.49820837", "0.49820837", "0.49813882", "0.4972602", "0.49712965", "0.49697205" ]
0.5719515
12
Converte a data passada em string retorna DDMMAAAA
public static String formatarDataAAAAMMDD(Date data) { String retorno = ""; if (data != null) { // 1 Calendar dataCalendar = new GregorianCalendar(); StringBuffer dataBD = new StringBuffer(); dataCalendar.setTime(data); dataBD.append(dataCalendar.get(Calendar.YEAR)); if ((dataCalendar.get(Calendar.MONTH) + 1) > 9) { dataBD.append(dataCalendar.get(Calendar.MONTH) + 1); } else { dataBD.append("0" + (dataCalendar.get(Calendar.MONTH) + 1)); } if (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) { dataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH)); } else { dataBD.append("0" + dataCalendar.get(Calendar.DAY_OF_MONTH)); } retorno = dataBD.toString(); } return retorno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo5872a(String str, Data data);", "public static String converterddmmaaaaParaaaammdd(String data) {\n String[] aux = data.trim().split(\"/\");\n String dia = aux[0].length() < 2 ? \"0\" + aux[0] : aux[0];\n String mes = aux[1].length() < 2 ? \"0\" + aux[1] : aux[1];\n return aux[2] + mes + dia;\n }", "public static String converterddmmaaaaParaaaammdd(String data) {\n String[] aux = data.trim().split(\"/\");\n String dia = aux[0].length() < 2 ? \"0\" + aux[0] : aux[0];\n String mes = aux[1].length() < 2 ? \"0\" + aux[1] : aux[1];\n return aux[2] + mes + dia;\n }", "Data mo12944a(String str) throws IllegalArgumentException;", "public String getString_data() { \n char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,60)];\n int i;\n for (i = 0; i < carr.length; i++) {\n if ((char)getElement_data(i) == (char)0) break;\n carr[i] = (char)getElement_data(i);\n }\n return new String(carr,0,i);\n }", "public String encode_dados_acesso(){\n\n String result = \"\";\n\n try {\n String iddispositivo = Settings.Secure.getString(myContext.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n Uri.Builder builder = new Uri.Builder()\n .appendQueryParameter(TAG_IDDIUSPOSITIVO, iddispositivo)\n //.appendQueryParameter(TAG_EMAIL, v_email)\n //.appendQueryParameter(TAG_SENHA, v_senha)\n .appendQueryParameter(TAG_TEXTO, vTexto);\n\n result = builder.build().getEncodedQuery();\n Log.d(\"workshop encode:\",result);\n\n } catch (Exception e) {\n //Log.d(\"InputStream\", e.getLocalizedMessage());\n }\n\n // 11. return result\n return result;\n }", "public String encode_dados_acesso(){\n\n String result = \"\";\n\n try {\n String iddispositivo = Settings.Secure.getString(myContext.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n Uri.Builder builder = new Uri.Builder()\n .appendQueryParameter(TAG_IDDIUSPOSITIVO, iddispositivo)\n //.appendQueryParameter(TAG_EMAIL, v_email)\n //.appendQueryParameter(TAG_SENHA, v_senha)\n .appendQueryParameter(TAG_TEXTO, vTexto);\n\n result = builder.build().getEncodedQuery();\n Log.d(\"workshop encode:\",result);\n\n } catch (Exception e) {\n //Log.d(\"InputStream\", e.getLocalizedMessage());\n }\n\n // 11. return result\n return result;\n }", "public java.lang.String getDataFromLMS();", "public static String data(byte[] a)\n {\n if (a == null)\n return null;\n StringBuilder ret = new StringBuilder();\n int i = 0;\n while (a[i] != 0)\n {\n ret.append((char) a[i]);\n i++;\n }\n return ret.toString();\n }", "public static String formatarData(String data) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tif (data != null && !data.equals(\"\") && data.trim().length() == 8) {\r\n\r\n\t\t\tretorno = data.substring(6, 8) + \"/\" + data.substring(4, 6) + \"/\" + data.substring(0, 4);\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "public String getDataString() {\r\n return formatoData.format(data);\r\n }", "public static String formatarDataComTracoAAAAMMDD(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\t\t\tdataBD.append(\"-\");\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\t\t\tdataBD.append(\"-\");\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "java.lang.String getData();", "private String cadenaABinario(String cadena){\n String cb = \"\";\n int longitud;\n for(int i = 0; i < cadena.length(); i++){\n cb += String.format(\"%8s\",Integer.toBinaryString(cadena.charAt(i)));\n }\n cb = formato(cb);\n return cb;\n }", "private static String convertToHex(byte[] data) throws IOException {\n //create new instance of string buffer\n StringBuffer stringBuffer = new StringBuffer();\n String hex = \"\";\n\n //encode byte data with base64\n hex = Base64.getEncoder().encodeToString(data);\n stringBuffer.append(hex);\n\n //return string\n return stringBuffer.toString();\n }", "public static String\n adnStringFieldToString(byte[] data, int offset, int length) {\n if (length == 0) {\n return \"\";\n }\n if (length >= 1) {\n if (data[offset] == (byte) 0x80) {\n int ucslen = (length - 1) / 2;\n String ret = null;\n\n try {\n ret = new String(data, offset + 1, ucslen * 2, \"utf-16be\");\n } catch (UnsupportedEncodingException ex) {\n Rlog.e(LOG_TAG, \"implausible UnsupportedEncodingException\",\n ex);\n }\n\n if (ret != null) {\n // trim off trailing FFFF characters\n\n ucslen = ret.length();\n while (ucslen > 0 && ret.charAt(ucslen - 1) == '\\uFFFF')\n ucslen--;\n\n return ret.substring(0, ucslen);\n }\n }\n }\n\n boolean isucs2 = false;\n char base = '\\0';\n int len = 0;\n\n if (length >= 3 && data[offset] == (byte) 0x81) {\n len = data[offset + 1] & 0xFF;\n if (len > length - 3)\n len = length - 3;\n\n base = (char) ((data[offset + 2] & 0xFF) << 7);\n offset += 3;\n isucs2 = true;\n } else if (length >= 4 && data[offset] == (byte) 0x82) {\n len = data[offset + 1] & 0xFF;\n if (len > length - 4)\n len = length - 4;\n\n base = (char) (((data[offset + 2] & 0xFF) << 8) |\n (data[offset + 3] & 0xFF));\n offset += 4;\n isucs2 = true;\n }\n\n if (isucs2) {\n StringBuilder ret = new StringBuilder();\n\n while (len > 0) {\n // UCS2 subset case\n\n if (data[offset] < 0) {\n ret.append((char) (base + (data[offset] & 0x7F)));\n offset++;\n len--;\n }\n\n // GSM character set case\n\n int count = 0;\n while (count < len && data[offset + count] >= 0)\n count++;\n\n ret.append(GsmAlphabet.gsm8BitUnpackedToString(data,\n offset, count));\n\n offset += count;\n len -= count;\n }\n\n return ret.toString();\n }\n\n Resources resource = Resources.getSystem();\n String defaultCharset = \"\";\n try {\n defaultCharset =\n resource.getString(com.android.internal.R.string.gsm_alphabet_default_charset);\n } catch (NotFoundException e) {\n // Ignore Exception and defaultCharset is set to a empty string.\n }\n return GsmAlphabet.gsm8BitUnpackedToString(data, offset, length, defaultCharset.trim());\n }", "private static String convertDonnee(String donnee){\n byte[] tableau = convert.toBinaryFromString(donnee);\n StringBuilder sbDonnee = new StringBuilder();\n for (int i =0; i<tableau.length;i++){\n String too=Byte.toString(tableau[i]);\n sbDonnee.append(convert.decimalToBinary(Integer.parseInt(too)));\n }\n return sbDonnee.toString();\n }", "String transcribe(String dnaStrand) {\n\t\tStringBuilder rnaStrand = new StringBuilder();\n\t\t\n\t\tfor(int i=0; i<dnaStrand.length(); i++)\n\t\t{\n\t\t\t//using append function to add the characters in rnaStrand\n\t\t\trnaStrand.append(hm.get(dnaStrand.charAt(i)));\n\t\t}\n\t\t\n\t\t//return rnaStrand as String.\n\t\treturn rnaStrand.toString();\n\t}", "private String getPacketData(){\n\t\tString str = \"\";\n\t\tfor(int i=0;i<lenth_get/5;i++){\n\t\t\tstr = str + originalUPLMN[i];\n\t\t}\n\t\tif(DBUG){\n\t\t\tif(DEBUG) Log.d(LOG_TAG, \"getPacketData---str=\"+str);\n\t\t}\n\t\treturn str;\n\t}", "public String getData(String rawData){\n\t\treturn \"1\";\n\t}", "public static String converterDataSemBarraParaDataComBarra(String data) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tif (data != null && !data.equals(\"\") && data.trim().length() == 8) {\r\n\r\n\t\t\tretorno = data.substring(0, 2) + \"/\" + data.substring(2, 4) + \"/\" + data.substring(4, 8);\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "String getDataNascimento();", "private static byte[] m24635a(Context context, String str) {\n String f = C6014b.m23956f();\n String string = Secure.getString(context.getContentResolver(), \"android_id\");\n String substring = str.substring(0, Math.min(8, str.length() - 1));\n StringBuilder sb = new StringBuilder();\n sb.append(substring);\n sb.append(f.substring(0, Math.min(8, f.length() - 1)));\n String sb2 = sb.toString();\n StringBuilder sb3 = new StringBuilder();\n sb3.append(sb2);\n sb3.append(string.substring(0, Math.min(8, string.length() - 1)));\n String sb4 = sb3.toString();\n if (sb4.length() != 24) {\n StringBuilder sb5 = new StringBuilder();\n sb5.append(sb4);\n sb5.append(str.substring(8, 24 - sb4.length()));\n sb4 = sb5.toString();\n }\n return sb4.getBytes();\n }", "public String amd_to_dma(java.sql.Date d)\n {\n String resp = \"\";\n if (d!=null)\n {\n String sdat = d.toString();\n String sano = sdat.substring(0,4);\n String smes = sdat.substring(5,7);\n String sdia = sdat.substring(8,10);\n resp = sdia+\"/\"+smes+\"/\"+sano;\n }\n return resp;\n }", "String getCADENA_TRAMA();", "C8325a mo21498a(String str);", "String getBarcharDataQuery();", "public String getTranslation()\n {\n StringBuilder aminoAcid = new StringBuilder();\n Map<String, String> codToAa = Map.ofEntries(\n entry(\"ATA\", \"I\"), entry(\"ATC\", \"I\"), entry(\"ATT\", \"I\"), entry(\"ATG\", \"M\"),\n entry(\"ACA\", \"T\"), entry(\"ACC\", \"T\"), entry(\"ACG\", \"T\"), entry(\"ACT\", \"T\"),\n entry(\"AAC\", \"N\"), entry(\"AAT\", \"N\"), entry(\"AAA\", \"K\"), entry(\"AAG\", \"K\"),\n entry(\"AGC\", \"S\"), entry(\"AGT\", \"S\"), entry(\"AGA\", \"R\"), entry(\"AGG\", \"R\"),\n entry(\"CTA\", \"L\"), entry(\"CTC\", \"L\"), entry(\"CTG\", \"L\"), entry(\"CTT\", \"L\"),\n entry(\"CCA\", \"P\"), entry(\"CCC\", \"P\"), entry(\"CCG\", \"P\"), entry(\"CCT\", \"P\"),\n entry(\"CAC\", \"H\"), entry(\"CAT\", \"H\"), entry(\"CAA\", \"Q\"), entry(\"CAG\", \"Q\"),\n entry(\"CGA\", \"R\"), entry(\"CGC\", \"R\"), entry(\"CGG\", \"R\"), entry(\"CGT\", \"R\"),\n entry(\"GTA\", \"V\"), entry(\"GTC\", \"V\"), entry(\"GTG\", \"V\"), entry(\"GTT\", \"V\"),\n entry(\"GCA\", \"A\"), entry(\"GCC\", \"A\"), entry(\"GCG\", \"A\"), entry(\"GCT\", \"A\"),\n entry(\"GAC\", \"D\"), entry(\"GAT\", \"D\"), entry(\"GAA\", \"E\"), entry(\"GAG\", \"E\"),\n entry(\"GGA\", \"G\"), entry(\"GGC\", \"G\"), entry(\"GGG\", \"G\"), entry(\"GGT\", \"G\"),\n entry(\"TCA\", \"S\"), entry(\"TCC\", \"S\"), entry(\"TCG\", \"S\"), entry(\"TCT\", \"S\"),\n entry(\"TTC\", \"F\"), entry(\"TTT\", \"F\"), entry(\"TTA\", \"L\"), entry(\"TTG\", \"L\"),\n entry(\"TAC\", \"Y\"), entry(\"TAT\", \"Y\"), entry(\"TAA\", \"_\"), entry(\"TAG\", \"_\"),\n entry(\"TGC\", \"C\"), entry(\"TGT\", \"C\"), entry(\"TGA\", \"_\"), entry(\"TGG\", \"W\")\n );\n try\n {\n for (int i = 0; i < this.sequence.length(); i += 3)\n {\n aminoAcid.append(codToAa.get(this.sequence.substring(i, i + 3)));\n }\n }\n catch (StringIndexOutOfBoundsException ignored)\n {\n }\n return aminoAcid.toString();\n }", "ResultData mo24177a(String str, String str2) throws Exception;", "public abstract byte[] mo32305a(String str);", "public static String convert(String paramString)\n/* */ {\n/* 2703 */ if (paramString == null) {\n/* 2704 */ return null;\n/* */ }\n/* */ \n/* 2707 */ int i = -1;\n/* 2708 */ StringBuffer localStringBuffer = new StringBuffer();\n/* 2709 */ UCharacterIterator localUCharacterIterator = UCharacterIterator.getInstance(paramString);\n/* */ \n/* 2711 */ while ((i = localUCharacterIterator.nextCodePoint()) != -1) {\n/* 2712 */ switch (i) {\n/* */ case 194664: \n/* 2714 */ localStringBuffer.append(corrigendum4MappingTable[0]);\n/* 2715 */ break;\n/* */ case 194676: \n/* 2717 */ localStringBuffer.append(corrigendum4MappingTable[1]);\n/* 2718 */ break;\n/* */ case 194847: \n/* 2720 */ localStringBuffer.append(corrigendum4MappingTable[2]);\n/* 2721 */ break;\n/* */ case 194911: \n/* 2723 */ localStringBuffer.append(corrigendum4MappingTable[3]);\n/* 2724 */ break;\n/* */ case 195007: \n/* 2726 */ localStringBuffer.append(corrigendum4MappingTable[4]);\n/* 2727 */ break;\n/* */ default: \n/* 2729 */ UTF16.append(localStringBuffer, i);\n/* */ }\n/* */ \n/* */ }\n/* */ \n/* 2734 */ return localStringBuffer.toString();\n/* */ }", "@VisibleForTesting\n protected static byte[] getGalileoDataByteArray(String dwrd) {\n String dataString = dwrd.substring(0, dwrd.length() - 8);\n byte[] data = BaseEncoding.base16().lowerCase().decode(dataString.toLowerCase());\n // Removing bytes 16 and 32 (they are padding which should be always zero)\n byte[] dataStart = Arrays.copyOfRange(data, 0, 15);\n byte[] dataEnd = Arrays.copyOfRange(data, 16, 31);\n byte[] result = new byte[dataStart.length + dataEnd.length];\n\n System.arraycopy(dataStart, 0, result, 0, dataStart.length);\n System.arraycopy(dataEnd, 0, result, 15, dataEnd.length);\n return result;\n }", "private void sstring(Tlv tlv, String a){\n if(a != null){\n byte[] data = StringUtil.bytesOfStringCP_1251(a); \n //uint16 value (length)\n uint16(tlv, data.length + 1);\n //asciiz string \n tlv.addTlvData(DataWork.putArray(data)); \n tlv.addTlvData(DataWork.putByte(0x00)); \n }else{\n tlv.addTlvData(DataWork.putWordLE(0x00));\n tlv.addTlvData(DataWork.putWordLE(0x00));\n } \n }", "String getData();", "public String formatData() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\n\t\t\tbuilder.append(this.iataCode);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.latitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.longitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.altitude);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.localTime);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.condition);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.temperature);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.pressure);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.humidity);\n\t\t\tbuilder.append(\"\\n\");\n\t\t\n\n\t\treturn builder.toString();\n\n\t}", "public final void mo118723c(String str) {\n EventMessage abVar;\n C32569u.m150519b(str, C6969H.m41409d(\"G7A97C737AC37\"));\n EventMessage abVar2 = null;\n try {\n abVar = EventMessage.f96677a.decode(Base64.decode(str, 0));\n } catch (Exception e) {\n VideoXOnlineLog.f101073b.mo121420a(\"link api 轮询 msg decode error : {}\", String.valueOf(e.getMessage()));\n abVar = abVar2;\n }\n if (abVar != null && !f97544a.m134904a(abVar, C6969H.m41409d(\"G658ADB11FF31BB20\"))) {\n VideoXOnlineLog abVar3 = VideoXOnlineLog.f101073b;\n String abVar4 = abVar.toString();\n C32569u.m150513a((Object) abVar4, C6969H.m41409d(\"G60979B0EB003BF3BEF009700BB\"));\n abVar3.mo121420a(\"msg, link api , 消息 : {}\", abVar4);\n f97544a.m134907b(abVar);\n }\n }", "static void lda_from_mem(String passed){\n\t\tregisters.put('A', memory.get(hexa_to_deci(passed.substring(4))));\n\t}", "private String m48359a(String str) {\n if (TextUtils.isEmpty(str)) {\n return \"\";\n }\n return C8145d.m48410a(str) ? \"xxxxxx\" : str;\n }", "private char[] toDSUID(UUID uuid) {\n ByteBuffer bb = ByteBuffer.wrap(new byte[17]);\n bb.putLong(uuid.getMostSignificantBits());\n bb.putLong(uuid.getLeastSignificantBits());\n\n String s_uuid = DatatypeConverter.printHexBinary(bb.array());\n return s_uuid.toCharArray();\n }", "byte[] getStructuredData(String messageData);", "public static String generateData() {\n\t\tStringBuilder res = new StringBuilder();\n\t\tres.append(generateID(9));\n\t\tres.append(\",\");\n\t\tres.append(\"Galsgow\");\n\t\tres.append(\",\");\n\t\tres.append(\"UK\");\n\t\tres.append(\",\");\n\t\tres.append(generateDate());\n\t\treturn res.toString();\n\t}", "public String dana() {\n\t\treturn \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\";\n\t}", "static String makeData(String key,\n String value) {\n return format(DATA_FMT, key, value);\n }", "private String parseDN(byte[] buffer, TLV dn) {\n TLV attribute;\n TLV type;\n TLV value;\n StringBuffer name = new StringBuffer(256);\n\n /*\n * Name ::= CHOICE { RDNSequence } # CHOICE does not encoded\n *\n * RDNSequence ::= SEQUENCE OF RelativeDistinguishedName\n *\n * RelativeDistinguishedName ::= SET OF AttributeTypeAndValue\n *\n * AttributeTypeAndValue ::= SEQUENCE {\n * type AttributeType,\n * value AttributeValue }\n *\n * AttributeType ::= OBJECT IDENTIFIER\n *\n * AttributeValue ::= ANY DEFINED BY AttributeType\n *\n * basically this means that each attribute value is 3 levels down\n */\n\n // sequence drop down a level\n attribute = dn.child;\n \n while (attribute != null) {\n if (attribute != dn.child) {\n name.append(\";\");\n }\n\n /*\n * we do not handle relative distinguished names yet\n * which should not be used by CAs anyway\n * so only take the first element of the sequence\n */\n\n type = attribute.child.child;\n\n /*\n * At this point we tag the name component, e.g. C= or hex\n * if unknown.\n */\n if ((type.length == 3) && (buffer[type.valueOffset] == 0x55) &&\n (buffer[type.valueOffset + 1] == 0x04)) {\n // begins with id-at, so try to see if we have a label\n int temp = buffer[type.valueOffset + 2] & 0xFF;\n if ((temp < AttrLabel.length) &&\n (AttrLabel[temp] != null)) {\n name.append(AttrLabel[temp]);\n } else {\n name.append(TLV.hexEncode(buffer, type.valueOffset,\n type.length, -1));\n }\n } else if (TLV.byteMatch(buffer, type.valueOffset,\n type.length, EMAIL_ATTR_OID,\n 0, EMAIL_ATTR_OID.length)) {\n name.append(EMAIL_ATTR_LABEL);\n } else {\n name.append(TLV.hexEncode(buffer, type.valueOffset,\n type.length, -1));\n }\n\n name.append(\"=\");\n\n value = attribute.child.child.next;\n if (value.type == TLV.PRINTSTR_TYPE ||\n value.type == TLV.TELETEXSTR_TYPE ||\n value.type == TLV.UTF8STR_TYPE ||\n value.type == TLV.IA5STR_TYPE ||\n value.type == TLV.UNIVSTR_TYPE) {\n try {\n name.append(new String(buffer, value.valueOffset,\n value.length, \"UTF-8\"));\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e.toString());\n }\n } else {\n name.append(TLV.hexEncode(buffer, value.valueOffset,\n value.length, -1));\n }\n\n attribute = attribute.next;\n }\n\n return name.toString();\n }", "public static String toBaoMi(String secretKey, String data) throws Exception {\n\n \n\n \tSecretKeyFactory factory = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\");\n\n \tKeySpec spec = new PBEKeySpec(secretKey.toCharArray(), secretKey.getBytes(), 128, 256);\n\n \tSecretKey tmp = factory.generateSecret(spec);\n\n \tSecretKey key = new SecretKeySpec(tmp.getEncoded(), SuanFa);\n\n \t\n\n Cipher cipher = Cipher.getInstance(SuanFa);\n\n cipher.init(Cipher.ENCRYPT_MODE, key);\n\n \n\n return toShiLiuJinZhi(cipher.doFinal(data.getBytes()));\n\n }", "String dibujar();", "public final String mo4983Fk() {\n AppMethodBeat.m2504i(128894);\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"InstanceId:\").append(this.ddx);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppId:\").append(this.ddc);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppVersion:\").append(this.ddd);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppState:\").append(this.dgQ);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppType:\").append(this.ddz);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"CostTimeMs:\").append(this.ddA);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"Scene:\").append(this.cVR);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"StartTimeStampMs:\").append(this.ddB);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"EndTimeStampMs:\").append(this.ddC);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"path:\").append(this.bUh);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"isPreload:\").append(this.ddg);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"isPreloadPageFrame:\").append(this.deD);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"networkTypeStr:\").append(this.dex);\n String stringBuffer2 = stringBuffer.toString();\n AppMethodBeat.m2505o(128894);\n return stringBuffer2;\n }", "public String toData() {\n return super.toData() + \"~S~\" + by;\n }", "public void setData(String d) {\n _data = d.getBytes();\n }", "public String getAgcData ()\n\t{\n\t\tString agcData = getContent().substring(OFF_ID27_AGC_DATA, OFF_ID27_AGC_DATA + LEN_ID27_AGC_DATA) ;\n\t\treturn (agcData);\n\t}", "public String getTestData(String TC)\r\n\t{\r\n\t\tString regData=testData.get(TC);\r\n\t\t\r\n\t\tif(regData.split(\",\")[0].length()>9)\r\n\t\t\tregData=regData.replace(regData.split(\",\")[0], Generic.generateMobileNumber());\r\n\t\t\r\n\t\treturn regData;\r\n\t}", "private String doDrTranslate(String pDrCode) {\n\n byte[] aCode = pDrCode.getBytes();\n String aDrCode = pDrCode;\n\n if (aCode.length == 5 && !mFacility.matches(\"BHH|PJC|MAR|ANG\")) {\n int i;\n for (i = 1; i < aCode.length; i++) {\n if ((i == 1 || i == 2) && (aCode[i] < 'A' || aCode[i] > 'Z')) { // Check for \"aa\" part of format\n aDrCode = k.NULL ;\n } else if ((i == 3 || i == 4 || i==5) && (aCode[i] < '0' || aCode[i] > '9')) { // Check for \"nnn\" part of format\n aDrCode = k.NULL ;\n }\n }\n return pDrCode;\n\n } else {\n if (mFacility.equalsIgnoreCase(\"SDMH\")) {\n CodeLookUp aSDMHDrTranslate = new CodeLookUp(\"Dr_Translation.table\", \"SDMH\", mEnvironment);\n aDrCode = aSDMHDrTranslate.getValue(pDrCode);\n\n if (aDrCode.length() == 5 ) {\n aDrCode = k.NULL;\n }\n } else if (mFacility.equalsIgnoreCase(\"CGMC\")) {\n if (! pDrCode.equalsIgnoreCase(\"UNK\")) {\n aDrCode = k.NULL ;\n }\n } else if (mFacility.equalsIgnoreCase(\"ALF\")) {\n aDrCode = k.NULL ;\n } else {\n //covers eastern health systems\n aDrCode = pDrCode;\n }\n }\n return aDrCode;\n\n }", "public static void main(String[] args) throws Exception {\n String data=\"=1&sta=dc4f223eb429&shop=1&token=123232jd&r=8134ad506c4e&id=12a2c334&type=check&data=t572007166r0e0c0h31624hb18fe34010150aps1800api5si10em2pl1024pll3072tag20 sp1\";\r\n// String data=\"=1&sta=dc4f223eb429&shop=1&token=123232jd&r=8134ad506c4e&id=12a2c334&type=configa&data=ch1cas5cat5sc5t30603970r0e0c0h47368cst36000iga1st1\";\r\n// System.out.println((int)'&');\r\n// System.out.println(data);\r\n// data = \"c3RhPTY4YzYzYWUwZGZlZiZzaG9wPTEmdG9rZW49MTIzMjMyamQmcj05NGQ5YjNhOWMyNmYmaWQ9MmRlY2ZkY2UmdHlwZT1wcm9iZWEmZGF0YT0lMDE5NGQ5YjNhOWMyNmYmJTAxJTAxMDAxN2M0Y2QwMWNmeCUwMTc4NjI1NmM2NzI1YkwlMDE1Yzk2OWQ3MWVmNjNRJTAxOTRkOWIzYTljMjZmJTIxJTAxN2NjNzA5N2Y0MWFmeCUwMSUwMWRjODVkZWQxNjE3ZjklMDE1NGRjMWQ3MmE0NDB4JTAxNzg2MjU2YzY3MjViRSUwMTVjOTY5ZDcxZWY2M0olMDE5NGQ5YjNhOWMyNmYlMUUlMDFlNGE3YTA5M2UzOTJ4JTAxNGMzNDg4OTQ5YjY2eCUwMTNjNDZkODMwZTAyMDYlMDElMDE2MGYxODk2ZjJmY2JDJTAxOTRkOWIzYTljMjZmKyUwMTkwYzM1ZjE3NWQ2MXglMDE0YzM0ODg5NDliNjZ4JTAxZTRhN2M1YzhjYzA4JTNBJTAxJTAxZjBiNDI5ZDI1MTFjWCUwMTVjOTY5ZDcxZWY2MyU1QyUwMWQ0NmE2YTE1NWJmMXglMDE5NGQ5YjNhOWMyNmYqJTAxPQ==\";\r\n// data = \"c3RhPTY4YzYzYWUwZGZlZiZzaG9wPTEmdG9rZW49MTIzMjMyamQmcj05NGQ5YjNhOWMyNmYmaWQ9NWY0NTQzZWMmdHlwZT1wcm9iZWEmZGF0YT0lMDE2OGM2M2FlMGRmZWYmJTAxMDhmNjljMDYzNDdmRSUwMTIwM2NhZThlMjZlY0clMDE9\";\r\n System.out.println(WIFIReportVO.buildWIFIReportVO(data));\r\n System.out.println(WIFIReportVO.buildWIFIReportVO(new String(Base64Utils.decodeFromString(data))));\r\n\r\n// HttpUtils.postJSON(\"http://127.0.0.1:8080/soundtooth/callout\" , \"{\\\"user_name\\\":\\\"用户名\\\",\\\"iSeatNo\\\":\\\"1001001\\\",\\\"callId\\\":\\\"210ab0fdfca1439ba268a6bf8266305c\\\",\\\"telA\\\":\\\"18133331269\\\",\\\"telB\\\":\\\"181****1200\\\",\\\"telX\\\":\\\"17100445588\\\",\\\"telG\\\":\\\"07556882659\\\",\\\"duration\\\":\\\"19\\\",\\\"userData\\\":\\\"ef7ede6f36c84f1d45333863c38ff14c\\\"}\");\r\n//// HttpUtils.postJSON(\"http://127.0.0.1:8080/soundtooth/callout\" , \"{\\\"user_name\\\":\\\"用户名\\\",\\\"iSeatNo\\\":\\\"1001001\\\",\\\"callId\\\":\\\"210ab0fdfca1439ba268a6bf8266305c\\\",\\\"telA\\\":\\\"18133331269\\\",\\\"telB\\\":\\\"181****1200\\\",\\\"telX\\\":\\\"17100445588\\\",\\\"telG\\\":\\\"07556882659\\\",\\\"duration\\\":\\\"19\\\",\\\"userData\\\":\\\"ef7ede6f36c84f1d45333863c38ff14c\\\"}\");\r\n// System.out.println(HttpUtils.postJSON(\"http://s.slstdt.com/collector/collect\" , \"\"));\r\n// System.out.println(HttpUtils.postJSON(\"http://s.slstdt.com/soundtooth/callout\" , \"\"));\r\n\r\n\r\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "String mo2801a(String str);", "private static String descifrarBase64(String arg) {\n Base64.Decoder decoder = Base64.getDecoder();\n byte[] decodedByteArray = decoder.decode(arg);\n\n return new String(decodedByteArray);\n }", "public String MaToDaa(double ma) {\n // daa = ma/10000\n double daa = ma/10000;\n return check_after_decimal_point(daa);\n }", "public String toFIPAString() {\n String str = \"(\" + type.toUpperCase() + \"\\n\";\n if ( sender != null )\n str += \" :sender ( \" + getSender_As_FIPA_String() + \" )\\n\";\n if ( receivers != null && !receivers.isEmpty() ) {\n str += \" :receiver (set \";\n Enumeration allRec = getFIPAReceivers();\n while (allRec.hasMoreElements()) {\n FIPA_AID_Address addr = (FIPA_AID_Address) allRec.nextElement();\n String current =\"(\" + addr.toFIPAString() +\")\";\n str += current; }\n str += \" )\\n\";\n }\n if ( replyWith != null )\n str += \" :reply-with \" + replyWith + \"\\n\";\n if ( inReplyTo != null )\n str += \" :in-reply-to \" + inReplyTo + \"\\n\";\n if ( replyBy != null )\n str += \" :reply-by \" + replyBy + \"\\n\";\n if ( ontology != null )\n str += \" :ontology \" + ontology + \"\\n\";\n if ( language != null )\n str += \" :language \" + language + \"\\n\";\n if ( content != null )\n // try no \"'s // brackets may be SL specific\n str += \" :content \\\"\" + content + \"\\\"\\n\";//\" :content \\\"( \" +Misc.escape(content) + \")\\\"\\n\";\n if ( protocol != null )\n str += \" :protocol \" + protocol + \"\\n\";\n if ( conversationId != null )\n str += \" :conversation-id \" + conversationId + \"\\n\";\n if ( replyTo != null )\n str += \" :reply-to \" + replyTo + \"\\n\";\n /*\n if ( envelope != null && !envelope.isEmpty() ) {\n str += \" :envelope (\";\n Enumeration enum = envelope.keys();\n String key;\n Object value;\n while( enum.hasMoreElements() ) {\n key = (String)enum.nextElement();\n value = envelope.get(key);\n str += \"(\" + key + \" \\\"\" + Misc.escape(value.toString()) + \"\\\")\";\n }*/\n // str += \")\";\n //}\n \n str += \")\\n\";\n return str;\n }", "public String HaToDaa(double ha) {\n // daa = 10*ha\n double daa = ha*10;\n return check_after_decimal_point(daa);\n }", "public String\nrdataToString() {\n\tStringBuffer sb = new StringBuffer();\n\tif (signature != null) {\n\t\tsb.append (Type.string(covered));\n\t\tsb.append (\" \");\n\t\tsb.append (alg);\n\t\tsb.append (\" \");\n\t\tsb.append (labels);\n\t\tsb.append (\" \");\n\t\tsb.append (origttl);\n\t\tsb.append (\" \");\n\t\tif (Options.check(\"multiline\"))\n\t\t\tsb.append (\"(\\n\\t\");\n\t\tsb.append (formatDate(expire));\n\t\tsb.append (\" \");\n\t\tsb.append (formatDate(timeSigned));\n\t\tsb.append (\" \");\n\t\tsb.append (footprint);\n\t\tsb.append (\" \");\n\t\tsb.append (signer);\n\t\tif (Options.check(\"multiline\")) {\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(base64.formatString(signature, 64, \"\\t\",\n\t\t\t\t true));\n\t\t} else {\n\t\t\tsb.append (\" \");\n\t\t\tsb.append(base64.toString(signature));\n\t\t}\n\t}\n\treturn sb.toString();\n}", "void mo1582a(String str, C1329do c1329do);", "String getATCUD();", "private String convertToMdy(String fechaDocumento)\n {\n String ahnio = fechaDocumento.substring(0, 4);\n String mes = fechaDocumento.substring(4, 6);\n String dia = fechaDocumento.substring(6, 8);\n \n return String.format( \"%s-%s-%s\", ahnio, mes, dia );\n }", "private static byte[] m5293aA(String str) {\n try {\n if (TextUtils.isEmpty(str)) {\n return null;\n }\n StringBuilder sb = new StringBuilder();\n sb.append(str);\n sb.append(C1248f.getKey());\n return Arrays.copyOf(sb.toString().getBytes(AudienceNetworkActivity.WEBVIEW_ENCODING), 16);\n } catch (Throwable unused) {\n return null;\n }\n }", "void mo303a(C0237a c0237a, String str, String str2, String str3);", "Integer getDataStrt();", "public void setDataFromLMS(java.lang.String dataFromLMS);", "public static String byteArrayToDataString(byte[] inBytes)\n\t{\n\t\tStringBuffer playerDataString = new StringBuffer();\n\t\t\n\t\tfor (int byteIndex = 0; byteIndex < inBytes.length; byteIndex++)\n\t\t{\n\t\t\tplayerDataString.append(\" \");\n\n\t\t\tif (inBytes[byteIndex] >= 0)\n\t\t\t{\n\t\t\t\tplayerDataString.append(Integer.toHexString(inBytes[byteIndex]).toUpperCase());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tplayerDataString.append(Integer.toHexString(inBytes[byteIndex]).toUpperCase().substring(6));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn playerDataString.toString();\n\t}", "private String getDataAttributes() {\n StringBuilder sb = new StringBuilder();\n\n dataAttribute.forEach((key, value) -> {\n sb.append(key).append(\"='\").append(value).append(\"' \");\n });\n\n return sb.toString().trim();\n }", "String mo150a(String str);", "C12000e mo41087c(String str);", "private void convertToString(String s)\n\t{\n\t\tchar chars[] = s.toCharArray();\n\t\tfor(int i = 0; i < chars.length; i+=3)\n\t\t{\n\t\t\tString temp = \"\";\n\t\t\ttemp += chars[i];\n\t\t\ttemp += chars[i+1];\n\t\t\tif(chars[i] < '3')\n\t\t\t{\n\t\t\t\ttemp += chars[i+2];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ti -= 1;\n\t\t\t}\n\t\t\t\n\t\t\tif(!temp.equals(\"256\"))\n\t\t\t{\n\t\t\t\tmyDecryptedMessage += (char)(Integer.parseInt(temp));\n\t\t\t}\n\t\t}\n\t}", "public final String mo29756a(C12012d dVar) {\n C12011c cVar;\n C12014b bVar = new C12014b(this.f32164b);\n StringBuilder sb = new StringBuilder(\"\");\n String str = \"\";\n if (dVar.f31950e != null && dVar.f31950e.size() > 0) {\n List a = bVar.mo29662a(dVar.f31950e);\n for (int i = 0; i < dVar.f31950e.size(); i++) {\n if (((C12009a) a.get(i)).f31930b != null) {\n StringBuilder sb2 = new StringBuilder(\",\\\"\");\n sb2.append(new File((String) dVar.f31950e.get(i)).getName());\n sb2.append(\"\\\":\\\"\");\n sb2.append((String) ((C12009a) a.get(i)).f31930b.getUrlList().get(0));\n sb2.append(\"\\\"\");\n sb.append(sb2.toString());\n }\n }\n }\n C12015c cVar2 = new C12015c(this.f32164b);\n if (dVar.f31949d != null && dVar.f31949d.size() > 0) {\n List a2 = cVar2.mo29663a(dVar.f31949d);\n String str2 = str;\n for (int i2 = 0; i2 < dVar.f31949d.size(); i2++) {\n if (((C12009a) a2.get(i2)).f31930b != null) {\n StringBuilder sb3 = new StringBuilder(\",\\\"\");\n sb3.append(new File((String) dVar.f31949d.get(i2)).getName());\n sb3.append(\"\\\":\\\"\");\n sb3.append((String) ((C12009a) a2.get(i2)).f31930b.getUrlList().get(0));\n sb3.append(\"\\\"\");\n sb.append(sb3.toString());\n str2 = ((C12009a) a2.get(i2)).f31930b.getUri();\n }\n }\n str = str2;\n }\n String sb4 = sb.toString();\n if (!sb4.equals(\"\")) {\n sb4 = sb4.substring(1);\n }\n StringBuilder sb5 = new StringBuilder(\"{\");\n sb5.append(sb4);\n sb5.append(\"}\");\n try {\n cVar = (C12011c) C12013a.m35082a().fastback(dVar.f31946a, 1, URLEncoder.encode(dVar.f31947b, \"UTF-8\"), URLEncoder.encode(dVar.f31948c, \"UTF-8\"), URLEncoder.encode(sb5.toString(), \"UTF-8\"), URLEncoder.encode(str, \"UTF-8\"), C12072c.m35216a(), \"Android\", m35239a(C11999a.m35070a())).get();\n } catch (Throwable unused) {\n cVar = null;\n }\n if (cVar == null) {\n return \"Failure to submit, please try again.\";\n }\n if (cVar.f31944a == 0) {\n return \"\";\n }\n if (TextUtils.isEmpty(cVar.f31945b)) {\n return \"Failure to submit, please try again.\";\n }\n return cVar.f31945b;\n }", "static String m61434a(C18815c cVar, String str) {\n StringBuilder sb = new StringBuilder(str);\n C18800a aVar = cVar.f50716k;\n if (aVar != null) {\n sb.append(aVar.f50683b.mo50069a());\n }\n List<C18800a> list = cVar.f50717l;\n if (list != null) {\n int size = list.size();\n for (int i = 0; i < size; i++) {\n if (i > 0 || aVar != null) {\n sb.append(\", \");\n }\n sb.append(((C18800a) list.get(i)).f50683b.mo50069a());\n }\n }\n return sb.toString();\n }", "public java.lang.String getAdresa() {\n java.lang.Object ref = adresa_;\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 adresa_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "java.lang.String getField1305();", "public final String mo4982Fj() {\n int i;\n AppMethodBeat.m2504i(128893);\n String str = \",\";\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(this.ddx);\n stringBuffer.append(str);\n stringBuffer.append(this.ddc);\n stringBuffer.append(str);\n stringBuffer.append(this.ddd);\n stringBuffer.append(str);\n if (this.dgQ != null) {\n i = this.dgQ.value;\n } else {\n i = -1;\n }\n stringBuffer.append(i);\n stringBuffer.append(str);\n stringBuffer.append(this.ddz);\n stringBuffer.append(str);\n stringBuffer.append(this.ddA);\n stringBuffer.append(str);\n stringBuffer.append(this.cVR);\n stringBuffer.append(str);\n stringBuffer.append(this.ddB);\n stringBuffer.append(str);\n stringBuffer.append(this.ddC);\n stringBuffer.append(str);\n stringBuffer.append(this.bUh);\n stringBuffer.append(str);\n stringBuffer.append(this.ddg);\n stringBuffer.append(str);\n stringBuffer.append(this.deD);\n stringBuffer.append(str);\n stringBuffer.append(this.dex);\n String stringBuffer2 = stringBuffer.toString();\n mo74164VX(stringBuffer2);\n AppMethodBeat.m2505o(128893);\n return stringBuffer2;\n }", "public String fromPacketToString() {\r\n\t\tString message = Integer.toString(senderID) + PACKET_SEPARATOR + Integer.toString(packetID) + PACKET_SEPARATOR + type + PACKET_SEPARATOR;\r\n\t\tfor (String word:content) {\r\n\t\t\tmessage = message + word + PACKET_SEPARATOR;\r\n\t\t}\r\n\t\treturn message;\r\n\t}", "protected abstract SingleKeyVersionDataExtractor<DATA> generateDataKeyAsString () ;", "String convertCAS(String CAS) {\n\t\t\n\t\tif (CAS.equals(\"427452 (uncertainty about the CAS No)\")) CAS=\"427452\";\n\t\t\n\t\tDecimalFormat df=new DecimalFormat(\"0\");\n\t\t\n\t\tdouble dCAS=Double.parseDouble(CAS);\n\t\t\n//\t\tSystem.out.println(CAS);\n\t\tCAS=df.format(dCAS);\n//\t\tSystem.out.println(CAS);\n\n\t\tString var3=CAS.substring(CAS.length()-1,CAS.length());\n\t\tCAS=CAS.substring(0,CAS.length()-1);\n\t\tString var2=CAS.substring(CAS.length()-2,CAS.length());\n\t\tCAS=CAS.substring(0,CAS.length()-2);\n\t\tString var1=CAS;\n\t\tString CASnew=var1+\"-\"+var2+\"-\"+var3;\n//\t\tSystem.out.println(CASnew);\n\t\treturn CASnew;\n\t}", "public static void main(String args[])\r\n\t{\n\t\ttry {\r\n\t\t\tString s = \"{\\\"wfycdwmc\\\":\\\"河西单位0712\\\",\\\"sfbj\\\":\\\"0\\\"}\";\r\n\t\t sun.misc.BASE64Encoder necoder = new sun.misc.BASE64Encoder(); \r\n\t\t String ss = necoder.encode(s.getBytes());\r\n\t\t System.out.println(ss);\r\n\t\t sun.misc.BASE64Decoder decoder = new sun.misc.BASE64Decoder();\r\n\t\t byte[] bt = decoder.decodeBuffer(ss); \r\n\t\t ss = new String(bt, \"UTF-8\");\r\n\t\t System.out.println(ss);\r\n//\t\t\tClient client = new Client(new URL(url));\r\n////\t\t\tObject[] token = client.invoke(\"getToken\",new Object[] {tokenUser,tokenPwd});//获取token\r\n//\t\t\tObject[] zyjhbh = client.invoke(apiName,new Object[] {\"120000\"});\r\n//\t\t\tSystem.out.println(zyjhbh[0].toString());\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static String createArffData(DataSet dataSet){\n StringBuilder sb = new StringBuilder();\n sb.append(\"@data\\n\");\n for(int i = 0; i < dataSet.getRows(); i++){\n for(int j = 0; j < dataSet.getColumns() - 1; j++){\n sb.append(dataSet.getEntryInDataSet(i, j));\n sb.append(\",\");\n }\n sb.append(dataSet.getEntryInDataSet(i, dataSet.getColumns() - 1));\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n return sb.toString();\n }", "public String pid_011C(String str){\n\nString standar=\"Unknow\";\n switch(str.charAt(1)){\n case '1':{standar=\"OBD-II as defined by the CARB\";break;} \n case '2':{standar=\"OBD as defined by the EPA\";break;}\n case '3':{standar=\"OBD and OBD-II\";break;}\n case '4':{standar=\"OBD-I\";break;}\n case '5':{standar=\"Not meant to comply with any OBD standard\";break;}\n case '6':{standar=\"EOBD (Europe)\";break;}\n case '7':{standar=\"EOBD and OBD-II\";break;}\n case '8':{standar=\"EOBD and OBD\";break;}\n case '9':{standar=\"EOBD, OBD and OBD II\";break;}\n case 'A':{standar=\"JOBD (Japan)\";break;}\n case 'B':{standar=\"JOBD and OBD II\";break;} \n case 'C':{standar=\"JOBD and EOBD\";break;}\n case 'D':{standar=\"JOBD, EOBD, and OBD II\";break;} \n default: {break;} \n }\n \n return standar;\n}", "private static String m12564b(String str, String str2, String str3) {\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 4 + String.valueOf(str2).length() + String.valueOf(str3).length());\n sb.append(str);\n sb.append(\"|T|\");\n sb.append(str2);\n sb.append(\"|\");\n sb.append(str3);\n return sb.toString();\n }", "String decodeString();", "static void sta_to_mem(String passed){\n\t\tmemory.put(hexa_to_deci(passed.substring(4)),registers.get('A'));\n\t\t//System.out.println(memory.get(hexa_to_deci(passed.substring(4))));\n\t}", "public String formataDataNascimento(String dataNascimentoInserida) {\n String dataNascimentoString;\n SimpleDateFormat formatadorDataNascimento = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date dataNascimento = new Date();\n try {\n dataNascimento = formatadorDataNascimento.parse((dataNascimentoInserida));\n } catch (ParseException ex) {\n this.telaFuncionario.mensagemErroDataNascimento();\n dataNascimentoString = cadastraDataNascimento();\n return dataNascimentoString;\n }\n dataNascimentoString = formatadorDataNascimento.format(dataNascimento);\n dataNascimentoString = controlaConfirmacaoCadastroDataNascimento(dataNascimentoString);\n return dataNascimentoString;\n }", "CharSequence formatEIP721Message(\n String messageData);", "private static String loadConvert(String str) {\n\t\tint off = 0;\n\t\tint len = str.length();\n\t\tchar[] in = str.toCharArray();\n\t\tchar[] convtBuf = new char[1024];\n\t\tif (convtBuf.length < len) {\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0) {\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end) {\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\') {\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u') {\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar) {\n\t\t\t\t\t\tcase '0':\n\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\tcase '3':\n\t\t\t\t\t\tcase '4':\n\t\t\t\t\t\tcase '5':\n\t\t\t\t\t\tcase '6':\n\t\t\t\t\t\tcase '7':\n\t\t\t\t\t\tcase '8':\n\t\t\t\t\t\tcase '9':\n\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'a':\n\t\t\t\t\t\tcase 'b':\n\t\t\t\t\t\tcase 'c':\n\t\t\t\t\t\tcase 'd':\n\t\t\t\t\t\tcase 'e':\n\t\t\t\t\t\tcase 'f':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tcase 'C':\n\t\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcase 'E':\n\t\t\t\t\t\tcase 'F':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char) value;\n\t\t\t\t} else {\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}", "static void adi_data_with_acc(String passed){\n\t\tint sum = hexa_to_deci(registers.get('A'));\n\t\tsum+=hexa_to_deci(passed.substring(4));\n\t\tCS = sum>255?true:false;\n\t\tregisters.put('A',decimel_to_hexa_8bit(sum));\n\t\tmodify_status(registers.get('A'));\n\t}", "void mo8713dV(String str);", "public static String formatarDataSemBarraDDMMAAAA(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public static String bcdPlmnToString(byte[] data, int offset) {\n if (offset + 3 > data.length) {\n return null;\n }\n byte[] trans = new byte[3];\n trans[0] = (byte) ((data[0 + offset] << 4) | ((data[0 + offset] >> 4) & 0xF));\n trans[1] = (byte) ((data[1 + offset] << 4) | (data[2 + offset] & 0xF));\n trans[2] = (byte) ((data[2 + offset] & 0xF0) | ((data[1 + offset] >> 4) & 0xF));\n String ret = bytesToHexString(trans);\n\n // For a valid plmn we trim all character 'F'\n if (ret.contains(\"F\")) {\n ret = ret.replaceAll(\"F\", \"\");\n }\n return ret;\n }", "@Override\n\t\tpublic byte[] convert(String s) {\n\t\t\treturn s.getBytes();\n\t\t}", "java.lang.String getDataId();", "java.lang.String getDataId();", "java.lang.String getAdresa();", "public String getData() {\n \n String str = new String();\n int aux;\n\n for(int i = 0; i < this.buffer.size(); i++) {\n for(int k = 0; k < this.buffer.get(i).size(); k++) {\n aux = this.buffer.get(i).get(k);\n str = str + Character.toString((char)aux);\n }\n str = str + \"\\n\";\n }\n return str;\n }", "public CharSequence ZawGyiToUni(String myString1, Boolean unicode) {\n\t\t String uni = \"[\"\n\t + \" {\\\"from\\\": \\\"(\\u103D|\\u1087)\\\",\\\"to\\\":\\\"\\u103E\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C\\\",\\\"to\\\":\\\"\\u103D\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u103B|\\u107E|\\u107F|\\u1080|\\u1081|\\u1082|\\u1083|\\u1084)\\\",\\\"to\\\":\\\"\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u103A|\\u107D)\\\",\\\"to\\\":\\\"\\u103B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1039\\\",\\\"to\\\":\\\"\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106A\\\",\\\"to\\\":\\\"\\u1009\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106B\\\",\\\"to\\\":\\\"\\u100A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106C\\\",\\\"to\\\":\\\"\\u1039\\u100B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106D\\\",\\\"to\\\":\\\"\\u1039\\u100C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106E\\\",\\\"to\\\":\\\"\\u100D\\u1039\\u100D\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106F\\\",\\\"to\\\":\\\"\\u100D\\u1039\\u100E\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1070\\\",\\\"to\\\":\\\"\\u1039\\u100F\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u1071|\\u1072)\\\",\\\"to\\\":\\\"\\u1039\\u1010\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1060\\\",\\\"to\\\":\\\"\\u1039\\u1000\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1061\\\",\\\"to\\\":\\\"\\u1039\\u1001\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1062\\\",\\\"to\\\":\\\"\\u1039\\u1002\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1063\\\",\\\"to\\\":\\\"\\u1039\\u1003\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1065\\\",\\\"to\\\":\\\"\\u1039\\u1005\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1068\\\",\\\"to\\\":\\\"\\u1039\\u1007\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1069\\\",\\\"to\\\":\\\"\\u1039\\u1008\\\"},\"\n\t + \" {\\\"from\\\": \\\"/(\\u1073|\\u1074)/g\\\",\\\"to\\\":\\\"\\u1039\\u1011\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1075\\\",\\\"to\\\":\\\"\\u1039\\u1012\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1076\\\",\\\"to\\\":\\\"\\u1039\\u1013\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1077\\\",\\\"to\\\":\\\"\\u1039\\u1014\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1078\\\",\\\"to\\\":\\\"\\u1039\\u1015\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1079\\\",\\\"to\\\":\\\"\\u1039\\u1016\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u107A\\\",\\\"to\\\":\\\"\\u1039\\u1017\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u107C\\\",\\\"to\\\":\\\"\\u1039\\u1019\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1085\\\",\\\"to\\\":\\\"\\u1039\\u101C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1033\\\",\\\"to\\\":\\\"\\u102F\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1034\\\",\\\"to\\\":\\\"\\u1030\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103F\\\",\\\"to\\\":\\\"\\u1030\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1086\\\",\\\"to\\\":\\\"\\u103F\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1088\\\",\\\"to\\\":\\\"\\u103E\\u102F\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1089\\\",\\\"to\\\":\\\"\\u103E\\u1030\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u108A\\\",\\\"to\\\":\\\"\\u103D\\u103E\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u1064\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u108B\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u102D\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u108C\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u102E\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u108D\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u108E\\\",\\\"to\\\":\\\"\\u102D\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u108F\\\",\\\"to\\\":\\\"\\u1014\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1090\\\",\\\"to\\\":\\\"\\u101B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1091\\\",\\\"to\\\":\\\"\\u100F\\u1039\\u1091\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1019\\u102C(\\u107B|\\u1093)\\\",\\\"to\\\":\\\"\\u1019\\u1039\\u1018\\u102C\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u107B|\\u1093)\\\",\\\"to\\\":\\\"\\u103A\\u1018\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u1094|\\u1095)\\\",\\\"to\\\":\\\"\\u1037\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1096\\\",\\\"to\\\":\\\"\\u1039\\u1010\\u103D\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1097\\\",\\\"to\\\":\\\"\\u100B\\u1039\\u100B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C([\\u1000-\\u1021])([\\u1000-\\u1021])?\\\",\\\"to\\\":\\\"$1\\u103C$2\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u103C\\u103A\\\",\\\"to\\\":\\\"\\u103C$1\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031([\\u1000-\\u1021])(\\u103E)?(\\u103B)?\\\",\\\"to\\\":\\\"$1$2$3\\u1031\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u1031(\\u103B|\\u103C|\\u103D)\\\",\\\"to\\\":\\\"$1$2\\u1031\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1032\\u103D\\\",\\\"to\\\":\\\"\\u103D\\u1032\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103D\\u103B\\\",\\\"to\\\":\\\"\\u103B\\u103D\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103A\\u1037\\\",\\\"to\\\":\\\"\\u1037\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u102F(\\u102D|\\u102E|\\u1036|\\u1037)\\u102F\\\",\\\"to\\\":\\\"\\u102F$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u102F\\u102F\\\",\\\"to\\\":\\\"\\u102F\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u102F|\\u1030)(\\u102D|\\u102E)\\\",\\\"to\\\":\\\"$2$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u103E)(\\u103B|\\u1037)\\\",\\\"to\\\":\\\"$2$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1025(\\u103A|\\u102C)\\\",\\\"to\\\":\\\"\\u1009$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1025\\u102E\\\",\\\"to\\\":\\\"\\u1026\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1005\\u103B\\\",\\\"to\\\":\\\"\\u1008\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1036(\\u102F|\\u1030)\\\",\\\"to\\\":\\\"$1\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031\\u1037\\u103E\\\",\\\"to\\\":\\\"\\u103E\\u1031\\u1037\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031\\u103E\\u102C\\\",\\\"to\\\":\\\"\\u103E\\u1031\\u102C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u105A\\\",\\\"to\\\":\\\"\\u102B\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031\\u103B\\u103E\\\",\\\"to\\\":\\\"\\u103B\\u103E\\u1031\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u102D|\\u102E)(\\u103D|\\u103E)\\\",\\\"to\\\":\\\"$2$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u102C\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1039$1\\u102C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C\\u1004\\u103A\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1039\\u103C\\u103A\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u103A\\u1039$1\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1039$1\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1036\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1039$1\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1092\\\",\\\"to\\\":\\\"\\u100B\\u1039\\u100C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u104E\\\",\\\"to\\\":\\\"\\u104E\\u1004\\u103A\\u1038\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1040(\\u102B|\\u102C|\\u1036)\\\",\\\"to\\\":\\\"\\u101D$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1025\\u1039\\\",\\\"to\\\":\\\"\\u1009\\u1039\\\"}\" + \"]\";\n\t\t \n\t\t String zawgyi = \"[ { \\\"from\\\": \\\"င်္\\\", \\\"to\\\": \\\"ၤ\\\" }, { \\\"from\\\": \\\"္တွ\\\", \\\"to\\\": \\\"႖\\\" }, { \\\"from\\\": \\\"န(?=[ူွှု္])\\\", \\\"to\\\": \\\"ႏ\\\" }, { \\\"from\\\": \\\"ါ်\\\", \\\"to\\\": \\\"ၚ\\\" }, { \\\"from\\\": \\\"ဋ္ဌ\\\", \\\"to\\\": \\\"႒\\\" }, { \\\"from\\\": \\\"ိံ\\\", \\\"to\\\": \\\"ႎ\\\" }, { \\\"from\\\": \\\"၎င်း\\\", \\\"to\\\": \\\"၎\\\" }, { \\\"from\\\": \\\"[ဥဉ](?=[္ုူ])\\\", \\\"to\\\": \\\"ၪ\\\" }, { \\\"from\\\": \\\"[ဥဉ](?=[်])\\\", \\\"to\\\": \\\"ဥ\\\" }, { \\\"from\\\": \\\"ည(?=[္ုူွ])\\\", \\\"to\\\": \\\"ၫ\\\" }, { \\\"from\\\": \\\"(္[က-အ])ု\\\", \\\"to\\\": \\\"$1ဳ\\\" }, { \\\"from\\\": \\\"(္[က-အ])ူ\\\", \\\"to\\\": \\\"$1ဴ\\\" }, { \\\"from\\\": \\\"္က\\\", \\\"to\\\": \\\"ၠ\\\" }, { \\\"from\\\": \\\"္ခ\\\", \\\"to\\\": \\\"ၡ\\\" }, { \\\"from\\\": \\\"္ဂ\\\", \\\"to\\\": \\\"ၢ\\\" }, { \\\"from\\\": \\\"္ဃ\\\", \\\"to\\\": \\\"ၣ\\\" }, { \\\"from\\\": \\\"္စ\\\", \\\"to\\\": \\\"ၥ\\\" }, { \\\"from\\\": \\\"္ဆ\\\", \\\"to\\\": \\\"ၦ\\\" }, { \\\"from\\\": \\\"္ဇ\\\", \\\"to\\\": \\\"ၨ\\\" }, { \\\"from\\\": \\\"္ဈ\\\", \\\"to\\\": \\\"ၩ\\\" }, { \\\"from\\\": \\\"ည(?=[္ုူ])\\\", \\\"to\\\": \\\"ၫ\\\" }, { \\\"from\\\": \\\"္ဋ\\\", \\\"to\\\": \\\"ၬ\\\" }, { \\\"from\\\": \\\"္ဌ\\\", \\\"to\\\": \\\"ၭ\\\" }, { \\\"from\\\": \\\"ဍ္ဍ\\\", \\\"to\\\": \\\"ၮ\\\" }, { \\\"from\\\": \\\"ဎ္ဍ\\\", \\\"to\\\": \\\"ၯ\\\" }, { \\\"from\\\": \\\"္ဏ\\\", \\\"to\\\": \\\"ၰ\\\" }, { \\\"from\\\": \\\"္တ\\\", \\\"to\\\": \\\"ၱ\\\" }, { \\\"from\\\": \\\"္ထ\\\", \\\"to\\\": \\\"ၳ\\\" }, { \\\"from\\\": \\\"္ဒ\\\", \\\"to\\\": \\\"ၵ\\\" }, { \\\"from\\\": \\\"္ဓ\\\", \\\"to\\\": \\\"ၶ\\\" }, { \\\"from\\\": \\\"္ဓ\\\", \\\"to\\\": \\\"ၶ\\\" }, { \\\"from\\\": \\\"္န\\\", \\\"to\\\": \\\"ၷ\\\" }, { \\\"from\\\": \\\"္ပ\\\", \\\"to\\\": \\\"ၸ\\\" }, { \\\"from\\\": \\\"္ဖ\\\", \\\"to\\\": \\\"ၹ\\\" }, { \\\"from\\\": \\\"္ဗ\\\", \\\"to\\\": \\\"ၺ\\\" }, { \\\"from\\\": \\\"္ဘ\\\", \\\"to\\\": \\\"ၻ\\\" }, { \\\"from\\\": \\\"္မ\\\", \\\"to\\\": \\\"ၼ\\\" }, { \\\"from\\\": \\\"္လ\\\", \\\"to\\\": \\\"ႅ\\\" }, { \\\"from\\\": \\\"ဿ\\\", \\\"to\\\": \\\"ႆ\\\" }, { \\\"from\\\": \\\"(ြ)ှ\\\", \\\"to\\\": \\\"$1ႇ\\\" }, { \\\"from\\\": \\\"ွှ\\\", \\\"to\\\": \\\"ႊ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])ိ\\\", \\\"to\\\": \\\"$2$3$4ႋ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])ီ\\\", \\\"to\\\": \\\"$2$3$4ႌ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])ံ\\\", \\\"to\\\": \\\"$2$3$4ႍ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])\\\", \\\"to\\\": \\\"$2$3$4$1\\\" }, { \\\"from\\\": \\\"ရ(?=[ုူွႊ])\\\", \\\"to\\\": \\\"႐\\\" }, { \\\"from\\\": \\\"ဏ္ဍ\\\", \\\"to\\\": \\\"႑\\\" }, { \\\"from\\\": \\\"ဋ္ဋ\\\", \\\"to\\\": \\\"႗\\\" }, { \\\"from\\\": \\\"([က-အႏဩ႐])([ၠ-ၩၬၭၰ-ၼႅႊ])?([ျ-ှ]*)?ေ\\\", \\\"to\\\": \\\"ေ$1$2$3\\\" }, { \\\"from\\\": \\\"([က-အဩ])([ၠ-ၩၬၭၰ-ၼႅ])?(ြ)\\\", \\\"to\\\": \\\"$3$1$2\\\" }, { \\\"from\\\": \\\"်\\\", \\\"to\\\": \\\"္\\\" }, { \\\"from\\\": \\\"ျ\\\", \\\"to\\\": \\\"်\\\" }, { \\\"from\\\": \\\"ြ\\\", \\\"to\\\": \\\"ျ\\\" }, { \\\"from\\\": \\\"ွ\\\", \\\"to\\\": \\\"ြ\\\" }, { \\\"from\\\": \\\"ှ\\\", \\\"to\\\": \\\"ွ\\\" }, { \\\"from\\\": \\\"ွု\\\", \\\"to\\\": \\\"ႈ\\\" }, { \\\"from\\\": \\\"([ုူနရြႊွႈ])([ဲံ]{0,1})့\\\", \\\"to\\\": \\\"$1$2႕\\\" }, { \\\"from\\\": \\\"ု႕\\\", \\\"to\\\": \\\"ု႔\\\" }, { \\\"from\\\": \\\"([နရ])([ဲံိီႋႌႍႎ])့\\\", \\\"to\\\": \\\"$1$2႕\\\" }, { \\\"from\\\": \\\"႕္\\\", \\\"to\\\": \\\"႔္\\\" }, { \\\"from\\\": \\\"([်ျ])([က-အ])([ံိီႋႌႍႎ]?)ု\\\", \\\"to\\\": \\\"$1$2$3ဳ\\\" }, { \\\"from\\\": \\\"([်ျ])([က-အ])([ံိီႋႌႍႎ]?)ူ\\\", \\\"to\\\": \\\"$1$2$3ဴ\\\" }, { \\\"from\\\": \\\"်ု\\\", \\\"to\\\": \\\"်ဳ\\\" }, { \\\"from\\\": \\\"်([ံိီႋႌႍႎ])ု\\\", \\\"to\\\": \\\"်$1ဳ\\\" }, { \\\"from\\\": \\\"([်ျ])([က-အ])ူ\\\", \\\"to\\\": \\\"$1$2ဴ\\\" }, { \\\"from\\\": \\\"်ူ\\\", \\\"to\\\": \\\"်ဴ\\\" }, { \\\"from\\\": \\\"်([ံိီႋႌႍႎ])ူ\\\", \\\"to\\\": \\\"်$1ဴ\\\" }, { \\\"from\\\": \\\"ွူ\\\", \\\"to\\\": \\\"ႉ\\\" }, { \\\"from\\\": \\\"ျ([ကဃဆဏတထဘယလယသဟ])\\\", \\\"to\\\": \\\"ၾ$1\\\" }, { \\\"from\\\": \\\"ၾ([ကဃဆဏတထဘယလယသဟ])([ြႊ])([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ႄ$1$2$3\\\" }, { \\\"from\\\": \\\"ၾ([ကဃဆဏတထဘယလယသဟ])([ြႊ])\\\", \\\"to\\\": \\\"ႂ$1$2\\\" }, { \\\"from\\\": \\\"ၾ([ကဃဆဏတထဘယလယသဟ])([ဳဴ]?)([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ႀ$1$2$3\\\" }, { \\\"from\\\": \\\"ျ([က-အ])([ြႊ])([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ႃ$1$2$3\\\" }, { \\\"from\\\": \\\"ျ([က-အ])([ြႊ])\\\", \\\"to\\\": \\\"ႁ$1$2\\\" }, { \\\"from\\\": \\\"ျ([က-အ])([ဳဴ]?)([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ၿ$1$2$3\\\" }, { \\\"from\\\": \\\"်ွ\\\", \\\"to\\\": \\\"ွ်\\\" }, { \\\"from\\\": \\\"်([ြႊ])\\\", \\\"to\\\": \\\"$1ၽ\\\" }, { \\\"from\\\": \\\"([ဳဴ])႔\\\", \\\"to\\\": \\\"$1႕\\\" }, { \\\"from\\\": \\\"ႏၱ\\\", \\\"to\\\" : \\\"ႏၲ\\\" }, { \\\"from\\\": \\\"([က-အ])([ၻၦ])ာ\\\", \\\"to\\\": \\\"$1ာ$2\\\" }, { \\\"from\\\": \\\"ာ([ၻၦ])့\\\", \\\"to\\\": \\\"ာ$1႔\\\" }]\";\n\t\t \n\t\t if(unicode==true) {\n\t\treturn replacewithUni(uni, myString1);\n\t\t } else {\n\t\t\t return replacewithZawgyi(zawgyi, myString1);\n\t\t }\n\t}", "private static String convertStringToHex(String input){\n\t\tchar[] chars = input.toCharArray();\n\t\tStringBuffer hexOutput = new StringBuffer();\n\t\t\n\t\tfor(int i = 0; i < chars.length; i++){\n\t\t\thexOutput.append(Integer.toHexString((int)chars[i]));\n\t\t}\n\n\t\treturn hexOutput.toString();\n\t}" ]
[ "0.63764364", "0.6286057", "0.6286057", "0.60583985", "0.59471905", "0.59181404", "0.59181404", "0.588632", "0.5850812", "0.582324", "0.5726316", "0.5719068", "0.56979626", "0.5679373", "0.5677556", "0.56521714", "0.559831", "0.5584367", "0.55779374", "0.55570936", "0.55202734", "0.55120516", "0.5506778", "0.54719424", "0.5464899", "0.5421131", "0.54084027", "0.539055", "0.5379933", "0.53744245", "0.5374202", "0.5350909", "0.534112", "0.5326346", "0.53179437", "0.5306598", "0.5302724", "0.5300132", "0.52981436", "0.52892476", "0.5277762", "0.5275582", "0.52743983", "0.5272914", "0.5269932", "0.5262078", "0.5248219", "0.5240631", "0.5214635", "0.5210801", "0.520738", "0.51898706", "0.51625067", "0.515402", "0.514769", "0.5142955", "0.51393497", "0.5132502", "0.5125643", "0.511548", "0.5115226", "0.5114887", "0.51137114", "0.51076406", "0.51033574", "0.5102939", "0.5100524", "0.5095923", "0.5095007", "0.5086125", "0.5084869", "0.5079928", "0.5079782", "0.5075449", "0.50680053", "0.50653243", "0.50606877", "0.5044627", "0.50401574", "0.5036311", "0.5034382", "0.5033792", "0.50297207", "0.50217354", "0.5019927", "0.5018351", "0.5005594", "0.50008273", "0.49999687", "0.49986964", "0.4998426", "0.49975684", "0.4985793", "0.4984924", "0.4983885", "0.4983885", "0.49830696", "0.49749893", "0.4971274", "0.49710515" ]
0.57376635
10
Monta um data inicial com hora,minuto e segundo zerados para pesquisa no banco
public static Date formatarDataInicial(Date dataInicial) { Calendar calendario = GregorianCalendar.getInstance(); calendario.setTime(dataInicial); calendario.set(Calendar.HOUR_OF_DAY, 0); calendario.set(Calendar.MINUTE, 0); calendario.set(Calendar.SECOND, 0); return calendario.getTime(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void introducirPagosALojamientoHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];// pago de alojamiento en rango fchas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);\n objeto[3] = resultado.getDate(4);// pago de alojamiento en rango fchas\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();// pago de alojamiento en rango fchas\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void introducirPagosALojamientoClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);// pago de alojamiento en rango fchas\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Dpi_Cliente=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n declaracion.setString(3, dpiCliente);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);// pago de alojamiento en rango fchas\n objeto[3] = resultado.getDate(4);\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "@Override\n public long minutosOcupados(Integer idEstacion, Date inicio, Date fin) {\n long minutos = 0;\n String sql = \"SELECT eje FROM Recurso rec, Ejecucion eje WHERE rec.idestacion = :idEstacion AND eje.idrecurso = rec.idrecurso AND eje.fechafin >= :inicio AND eje.fechainicio < :fin\";\n List<Ejecucion> ejecuciones = getCurrentSession().createQuery(sql).setParameter(\"idEstacion\", idEstacion).setParameter(\"inicio\", inicio).setParameter(\"fin\", fin).list();\n for (Ejecucion next : ejecuciones) {\n Date inicioEjecucion = next.getFechainicio();\n Date finEjecucion = next.getFechafin();\n if (inicioEjecucion.before(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio y finaliza en el fin de la ejecucion\n minutos = minutos + Math.abs(finEjecucion.getTime() - inicio.getTime())/60000;\n \n } else if (inicioEjecucion.after(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio de la ejecucion y finaliza en el fin de la ejecucion\n minutos = minutos + Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n \n }else if (inicioEjecucion.after(inicio) && finEjecucion.after(fin)){\n //Comienza en inicio de la ejecucion y finaliza en el fin\n minutos = minutos + Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n \n } else if (inicioEjecucion.before(inicio) && finEjecucion.after(fin)) {\n //Comienza en inicio y finaliza en el fin\n minutos = minutos + Math.abs(fin.getTime() - inicio.getTime())/60000;\n }\n }\n return minutos;\n }", "public void introducirConsumosHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo) {\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT * FROM CONSUMO_RESTAURANTE WHERE Fecha_Consumo>=? AND Fecha_Consumo<=?\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// mira los consumo de unas fechas\n Object objeto[] = new Object[7];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);// mira los consumo de unas fechas\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);\n objeto[4] = resultado.getInt(5);\n objeto[5] = resultado.getDate(6);// mira los consumo de unas fechas\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;\n modelo.addRow(objeto);// mira los consumo de unas fechas\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "@Override\n public long minutosLibres(Integer idEstacion, Date inicio, Date fin) {\n long minutos = Math.abs(fin.getTime() - inicio.getTime())/60000;\n List<Ejecucion> ejecuciones = null;\n String sql = \"SELECT eje FROM Recurso rec, Ejecucion eje WHERE rec.estacion.idestaciones = :idEstacion AND eje.recurso.idrecurso = rec.idrecurso AND eje.fechafin >= :inicio AND eje.fechainicio < :fin\";\n ejecuciones = getCurrentSession().createQuery(sql).setParameter(\"idEstacion\", idEstacion).setParameter(\"inicio\", inicio).setParameter(\"fin\", fin).list();\n \n if (ejecuciones != null) {\n for (Ejecucion next : ejecuciones) {\n Date inicioEjecucion = next.getFechainicio();\n Date finEjecucion = next.getFechafin();\n if (inicioEjecucion.before(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio y finaliza en el fin de la ejecucion\n minutos = minutos - Math.abs(finEjecucion.getTime() - inicio.getTime())/60000;\n\n } else if (inicioEjecucion.after(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio de la ejecucion y finaliza en el fin de la ejecucion\n minutos = minutos - Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n\n }else if (inicioEjecucion.after(inicio) && finEjecucion.after(fin)){\n //Comienza en inicio de la ejecucion y finaliza en el fin\n minutos = minutos - Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n\n } else if (inicioEjecucion.before(inicio) && finEjecucion.after(fin)) {\n //Comienza en inicio y finaliza en el fin\n minutos = minutos - Math.abs(fin.getTime() - inicio.getTime())/60000;\n }\n /*if (inicioEjecucion.before(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio y finaliza en el fin de la ejecucion\n minutos = minutos + (fin.getTime() - inicio.getTime())/60000;\n\n } else if (inicioEjecucion.after(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio de la ejecucion y finaliza en el fin de la ejecucion\n minutos = minutos + ((fin.getTime() - inicio.getTime()) + (inicioEjecucion.getTime() - inicio.getTime()))/60000;\n\n }else if (inicioEjecucion.after(inicio) && finEjecucion.after(fin)){\n //Comienza en inicio de la ejecucion y finaliza en el fin\n minutos = minutos + Math.abs(inicioEjecucion.getTime() - inicio.getTime())/60000;\n\n }*/\n }\n }\n return minutos;\n }", "public void introducirConsumosClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente) {\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT CONSUMO_RESTAURANTE.Id_Consumo,CONSUMO_RESTAURANTE.Id_Alojamiento,CONSUMO_RESTAURANTE.Nombre_Comida,CONSUMO_RESTAURANTE.Precio_Comida,CONSUMO_RESTAURANTE.Cantidad,CONSUMO_RESTAURANTE.Fecha_Consumo FROM CONSUMO_RESTAURANTE JOIN ALOJAMIENTO JOIN RESERVACION WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND ALOJAMIENTO.Id=CONSUMO_RESTAURANTE.Id_Alojamiento AND RESERVACION.Dpi_Cliente=? AND Fecha_Consumo>=? AND Fecha_Consumo<=?\");\n declaracion.setString(1, dpiCliente);\n declaracion.setDate(2,fechaInicialSql);\n declaracion.setDate(3,fechaFinalSQL);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// mira los consumo de unas fechas\n Object objeto[] = new Object[7];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);// mira los consumo de unas fechas\n objeto[4] = resultado.getInt(5);\n objeto[5] = resultado.getDate(6);\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;// mira los consumo de unas fechas\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "private void MontarTabela(String where) {\n \n int linha = 0;\n int coluna = 0;\n \n String offset = String.valueOf(getPaginacao());\n \n while(linha < 10){\n while(coluna < 7){\n tbConFin.getModel().setValueAt(\"\", linha, coluna);\n coluna++;\n }\n linha++;\n coluna = 0;\n }\n \n linha = 0;\n \n String rd_id\n ,rd_codico\n ,rd_nome\n ,rd_receita_despesa\n ,rd_grupo\n ,rd_fixa\n ,rd_ativo;\n \n \n \n try{\n ResultSet rsConFin = cc.stm.executeQuery(\"select * from v_receitadespesa \"+where+\" order by rd_codico limit 10 offset \"+offset);\n \n while ( rsConFin.next() ) {\n rd_id = rsConFin.getString(\"RD_ID\");\n rd_codico = rsConFin.getString(\"rd_codico\");\n rd_nome = rsConFin.getString(\"rd_nome\");\n rd_receita_despesa = getRecDesp(rsConFin.getString(\"rd_receita_despesa\"));\n rd_grupo = getSimNao(rsConFin.getString(\"rd_grupo\"));\n rd_fixa = getSimNao(rsConFin.getString(\"rd_fixa\"));\n rd_ativo = getSimNao(rsConFin.getString(\"rd_ativo\"));\n \n tbConFin.getModel().setValueAt(rd_id, linha, 0);\n tbConFin.getModel().setValueAt(rd_codico, linha, 1);\n tbConFin.getModel().setValueAt(rd_nome, linha, 2);\n tbConFin.getModel().setValueAt(rd_receita_despesa, linha, 3);\n tbConFin.getModel().setValueAt(rd_grupo, linha, 4);\n tbConFin.getModel().setValueAt(rd_fixa, linha, 5);\n tbConFin.getModel().setValueAt(rd_ativo, linha, 6);\n \n linha++;\n }\n \n \n if(linha <= 10){\n setMensagem(\"A Busca retornou \"+linha+\" registros!\");\n }\n \n if(linha < 10){\n setFimConsulta(true);\n }else{\n setFimConsulta(false);\n }\n \n }catch(SQLException e){\n JOptionPane.showMessageDialog(this, \"Erro ao Carregar informações de contas financeiras!\\n\"+e.getMessage());\n }\n \n }", "private void populaHorarioAula()\n {\n Calendar hora = Calendar.getInstance();\n hora.set(Calendar.HOUR_OF_DAY, 18);\n hora.set(Calendar.MINUTE, 0);\n HorarioAula h = new HorarioAula(hora, \"Segunda e Quinta\", 1, 3, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Terca e Sexta\", 1, 3, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 15);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 10);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Quarta e Sexta\", 3, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Sexta\", 1, 1, 2);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 19);\n h = new HorarioAula(hora, \"Sexta\", 2, 1, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Segunda\", 3, 6, 4);\n horarioAulaDAO.insert(h);\n\n }", "public void convertirHoraMinutosStamina(int Hora, int Minutos){\n horaMinutos = Hora * 60;\n minutosTopStamina = 42 * 60;\n minutosTotales = horaMinutos + Minutos;\n totalMinutosStamina = minutosTopStamina - minutosTotales;\n }", "public List<ChamadosAtendidos> contaChamadosAtendidos(int servico) throws SQLException {\r\n\r\n List<ChamadosAtendidos> CAList = new ArrayList<>();\r\n PreparedStatement ps = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? \");\r\n\r\n ps.setInt(1, servico);\r\n ChamadosAtendidos ch = new ChamadosAtendidos();\r\n int contador1 = 0, contador2 = 0, contador3 = 0;\r\n\r\n ResultSet rs = ps.executeQuery();\r\n while (rs.next()) {\r\n contador1++;\r\n }\r\n PreparedStatement ps2 = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? and em_chamado= 4 \");\r\n ps2.setInt(1, servico);\r\n ResultSet rs2 = ps2.executeQuery();\r\n while (rs2.next()) {\r\n contador2++;\r\n }\r\n PreparedStatement ps3 = conn.prepareStatement(\"SELECT Qtde_tentativas FROM `solicitacoes` WHERE servico_id_servico=?\");\r\n ps3.setInt(1, servico);\r\n ResultSet rs3 = ps3.executeQuery();\r\n while (rs3.next()) {\r\n\r\n contador3 = contador3 + rs3.getInt(1);\r\n }\r\n PreparedStatement ps4 = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? and em_chamado= 2 \");\r\n ps4.setInt(1, servico);\r\n\r\n ResultSet rs4 = ps4.executeQuery();\r\n while (rs4.next()) {\r\n\r\n contador3++;\r\n }\r\n ch.setTotalDeChamados(contador1);\r\n ch.setChamadosConcluidos(contador2);\r\n ch.setChamadosRealizados(contador3 + contador2);\r\n CAList.add(ch);\r\n return CAList;\r\n }", "public int actualizarTiempo(int empresa_id,int idtramite, int usuario_id) throws ParseException {\r\n\t\tint update = 0;\r\n\t\t\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat formateador = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n\t\tString timeNow = formateador.format(date);\r\n\t\tSimpleDateFormat formateador2 = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tString fecha = formateador2.format(date);\r\n\t\tSimpleDateFormat formateador3 = new SimpleDateFormat(\"hh:mm:ss\");\r\n\t\tString hora = formateador3.format(date);\r\n\t\tSystem.out.println(timeNow +\" \"+ fecha+\" \"+hora );\r\n\t\t\r\n\t\t List<Map<String, Object>> rows = listatks(empresa_id, idtramite);\t\r\n\t\t System.out.println(rows);\r\n\t\t if(rows.size() > 0 ) {\r\n\t\t\t String timeCreate = rows.get(0).get(\"TIMECREATE_HEAD\").toString();\r\n\t\t\t System.out.println(\" timeCreate \" +timeCreate+\" timeNow: \"+ timeNow );\r\n\t\t\t Date fechaInicio = formateador.parse(timeCreate); // Date\r\n\t\t\t Date fechaFinalizo = formateador.parse(timeNow); //Date\r\n\t\t\t long horasFechas =(long)((fechaInicio.getTime()- fechaFinalizo.getTime())/3600000);\r\n\t\t\t System.out.println(\" horasFechas \"+ horasFechas);\r\n\t\t\t long diferenciaMils = fechaFinalizo.getTime() - fechaInicio.getTime();\r\n\t\t\t //obtenemos los segundos\r\n\t\t\t long segundos = diferenciaMils / 1000;\t\t\t \r\n\t\t\t //obtenemos las horas\r\n\t\t\t long horas = segundos / 3600;\t\t\t \r\n\t\t\t //restamos las horas para continuar con minutos\r\n\t\t\t segundos -= horas*3600;\t\t\t \r\n\t\t\t //igual que el paso anterior\r\n\t\t\t long minutos = segundos /60;\r\n\t\t\t segundos -= minutos*60;\t\t\t \r\n\t\t\t System.out.println(\" horas \"+ horas +\" min\"+ minutos+ \" seg \"+ segundos );\r\n\t\t\t double tiempoTotal = Double.parseDouble(horas+\".\"+minutos);\r\n\t\t\t // actualizar cabecera \r\n\t\t\t updateHeaderOut( idtramite, fecha, hora, tiempoTotal, usuario_id);\r\n\t\t\t for (Map<?, ?> row : rows) {\r\n\t\t\t\t Map<String, Object> mapa = new HashMap<String, Object>();\r\n\t\t\t\tint idd = Integer.parseInt(row.get(\"IDD\").toString());\r\n\t\t\t\tint idtramite_d = Integer.parseInt(row.get(\"IDTRAMITE\").toString());\r\n\t\t\t\tint cantidaMaletas = Integer.parseInt(row.get(\"CANTIDAD\").toString());\r\n\t\t\t\tdouble precio = Double.parseDouble(row.get(\"PRECIO\").toString());\t\t\t\t\r\n\t\t\t\tdouble subtotal = subtotal(precio, tiempoTotal, cantidaMaletas);\r\n\t\t\t\tString tipoDescuento = \"\";\r\n\t\t\t\tdouble porcDescuento = 0;\r\n\t\t\t\tdouble descuento = descuento(subtotal, porcDescuento);\r\n\t\t\t\tdouble precioNeto = precioNeto(subtotal, descuento);\r\n\t\t\t\tdouble iva = 0;\r\n\t\t\t\tdouble montoIVA = montoIVA(precioNeto, iva);\r\n\t\t\t\tdouble precioFinal = precioFinal(precioNeto, montoIVA);\r\n\t\t\t\t//actualizar detalle\r\n\t\t\t\tupdateBodyOut( idd, idtramite_d, tiempoTotal , subtotal, tipoDescuento, porcDescuento, descuento, precioNeto, iva, montoIVA, precioFinal );\r\n\t\t\t }\r\n\t\t\t \r\n\t\t }\r\n\t\treturn update;\r\n\t}", "private void populaAluno()\n {\n Calendar nasc = Calendar.getInstance();\n nasc.set(Calendar.DAY_OF_MONTH, 24);\n nasc.set(Calendar.MONTH, 03);\n nasc.set(Calendar.YEAR, 1989);\n Aluno c = new Aluno();\n c.setNome(\"Christian \");\n c.setEmail(\"[email protected]\");\n c.setCpf(\"33342523501\");\n c.setAltura(1.76);\n c.setPeso(70);\n c.setSenha(CriptografiaLogic.encriptar(\"r\"));\n c.setRg(\"22233344401\");\n c.setDataNascimento(nasc);\n c.setNumSolicitacao(0);\n alunoDAO.insert(c);\n\n for (int i = 1; i < 500; i++)\n {\n nasc.set(Calendar.DAY_OF_MONTH, NumberLogic.randomInteger(1, 28));\n nasc.set(Calendar.MONTH, NumberLogic.randomInteger(1, 12));\n nasc.set(Calendar.YEAR, NumberLogic.randomInteger(1940, 1995));\n Aluno a = new Aluno();\n a.setNome(\"Aluno \" + i);\n a.setEmail(\"aluno\" + i + \"@gmail.com\");\n a.setCpf(String.valueOf(NumberLogic.randomInteger(100000000, 999999999)));\n a.setAltura(NumberLogic.randomDouble(1.60d, 1.99d));\n a.setPeso(NumberLogic.randomInteger(60, 100));\n a.setSenha(CriptografiaLogic.encriptar(\"123\"));\n a.setRg(String.valueOf(NumberLogic.randomInteger(100000000, 999999999)));\n a.setDataNascimento(nasc);\n a.setNumSolicitacao(0);\n alunoDAO.insert(a);\n }\n }", "public void introducirConsumosHabitacion(TablaModelo modelo,String idHabitacion) {\n int idHabitacionInt = Integer.parseInt(idHabitacion);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT CONSUMO_RESTAURANTE.Id_Consumo,CONSUMO_RESTAURANTE.Id_Alojamiento,CONSUMO_RESTAURANTE.Nombre_Comida,CONSUMO_RESTAURANTE.Precio_Comida,CONSUMO_RESTAURANTE.Cantidad,CONSUMO_RESTAURANTE.Fecha_Consumo FROM CONSUMO_RESTAURANTE JOIN ALOJAMIENTO JOIN RESERVACION WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND ALOJAMIENTO.Id=CONSUMO_RESTAURANTE.Id_Alojamiento AND RESERVACION.Id_Habitacion=?\");\n declaracion.setInt(1, idHabitacionInt);// mira los consumo de unas fechas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[7];// mira los consumo de unas fechas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);// mira los consumo de unas fechas\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);\n objeto[4] = resultado.getInt(5);// mira los consumo de unas fechas\n objeto[5] = resultado.getDate(6);\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;// mira los consumo de unas fechas\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void ReservaEfetivadas () {\n Date hoje = new Date ();\n for (int z = 0; z < vecReserva.size(); z++) {\n if (((int) ((((entReserva)vecReserva.elementAt(z)).getDatain().getTime() - (hoje.getTime())) / 86400000L)) == 0){// Reserva será relaizada hj\n if (((entReserva)vecReserva.elementAt(z)).getPagamento().getSituacao() == 0){//Cliente fez todo o pagamento e o quarto será\n vecReservaEfetivadas.add(vecReserva.elementAt(z));\n }\n \n }\n }\n }", "public void calcularCost() {\r\n cost = 0;\r\n int a = 0;\r\n try {\r\n String r = DataR.toString()+ \" \" + horaR;\r\n String d = DataD.toString()+ \" \" + horaD;\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\r\n Date dateR = simpleDateFormat.parse(r);\r\n Date dateD = simpleDateFormat.parse(d);\r\n a = (int) ((dateD.getTime() - dateR.getTime())/(1000*3600));\r\n \r\n \r\n } catch (ParseException ex) {\r\n Logger.getLogger(Reserva.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if(a > 24) {\r\n cost += 15*(a/(24));\r\n a -= (((int)(a/24))*24);\r\n }\r\n if(a%3600 == 0) {\r\n cost += 1;\r\n }\r\n if(a%3600 > 0) {\r\n cost += 1;\r\n }\r\n \r\n }", "public int getHora(){\n return minutosStamina;\n }", "public void reporteHabitacionMasPopular(TablaModelo modelo){\n ArrayList<ControlVeces> control = new ArrayList<>();\n ControlVeces controlador;\n try {// pago de alojamiento en rango fchas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio, RESERVACION.Id_Habitacion FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Check_In=1;\");\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// pago de alojamiento en rango fchas\n String nombre = Integer.toString(resultado.getInt(6));\n int casilla = numeroObjeto(control,nombre);\n if(casilla>=0){// maneja el resultado// pago de alojamiento en rango fchas\n control.get(casilla).setVeces(control.get(casilla).getVeces()+1);\n }else{// maneja el resultado\n controlador = new ControlVeces(nombre);// pago de alojamiento en rango fchas\n control.add(controlador);\n }\n } // maneja el resultado \n ordenamiento(control);\n int numero = control.size()-1;// el de hasta arriba es el que mas elementos tiene \n String idHabitacionMasPopular = control.get(numero).getNombre();\n this.habitacionPopular= idHabitacionMasPopular;\n introducirDatosHabitacionMasPopular(modelo, idHabitacionMasPopular);\n } catch (SQLException ex) {\n ex.printStackTrace();\n } catch(Exception e){\n \n }\n }", "public static int obterQtdeHorasEntreDatas(Date dataInicial, Date dataFinal) {\r\n\t\tCalendar start = Calendar.getInstance();\r\n\t\tstart.setTime(dataInicial);\r\n\t\t// Date startTime = start.getTime();\r\n\t\tif (!dataInicial.before(dataFinal))\r\n\t\t\treturn 0;\r\n\t\tfor (int i = 1;; ++i) {\r\n\t\t\tstart.add(Calendar.HOUR, 1);\r\n\t\t\tif (start.getTime().after(dataFinal)) {\r\n\t\t\t\tstart.add(Calendar.HOUR, -1);\r\n\t\t\t\treturn (i - 1);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public long reserva_de_entradas(int identificador_evento, Date fechaevento, Horario[] listahorarios ) throws ParseException {\n fgen.info (\"Identificador del evento\" + identificador_evento);\n fgen.info (\"Fecha del evento\" + fechaevento);\n ArrayList<Horario> horariosReserva = new ArrayList<Horario>();\n for (int i = 0; i < listahorarios.length; i++) {\n \n Horario horario = listahorarios[i];\n fgen.info (\"Horario : \" + horario.getHorario().toString()); \n horariosReserva.add(horario);\n List<Disponibilidad> listadisponibles = listahorarios[i].disponibilidades;\n for (int j = 0; j < listadisponibles.size() ; j++) { \n fgen.info (\" Disponibilidad - Cantidad: \" + listadisponibles.get(j).getCantidad());\n fgen.info (\" Disponibilidad - Precio: \" + listadisponibles.get(j).getPrecio());\n fgen.info (\" Disponibilidad - Sector: \" + listadisponibles.get(j).getSector());\n } \n \n \n } \n //Inicializo o tomo lo que esta en memoria de la lista de reservas\n ListaReservas reservas= new ListaReservas(); \n // busco el evento y que la lista de horarios sea en la que quiero reservar\n ListaEventos eventos = new ListaEventos();\n Calendar c = Calendar.getInstance();\n c.setTime(fechaevento);\n Evento e = eventos.buscarEvento(identificador_evento, c);\n List<Horario> horariosRetornar = new ArrayList<Horario>();\n if(e != null)\n {\n horariosRetornar = e.getHorarios();\n } \n \n if (horariosRetornar != null)\n {\n for (int i = 0; i < horariosRetornar.size(); i++) {\n for (int j = 0; j < listahorarios.length; j++) {\n Date fechaE = horariosRetornar.get(i).getHorario().getTime(); \n Date fechaEventoDate = listahorarios[j].hora.getTime(); \n if(fechaE.equals(fechaEventoDate)) \n { for (int k = 0; k < horariosRetornar.get(i).disponibilidades.size(); k++) {\n for (int l = 0; l < listahorarios[j].disponibilidades.size(); l++) {\n Disponibilidad d= horariosRetornar.get(i).disponibilidades.get(k);\n Disponibilidad r= listahorarios[j].disponibilidades.get(l);\n if (d.cantidad >= r.cantidad && d.sector.equalsIgnoreCase(r.sector) && d.precio==r.precio)\n {\n d.setCantidad(d.cantidad-r.cantidad);\n //Reserva reserv= new Reserva();\n //reservas.contador_Id= reservas.contador_Id +1;\n //reserv.idReserva= reservas.contador_Id;\n //reserv.Estado=1;\n //reserv.idEvento = identificador_evento;\n //reserv.horarios.add(listahorarios[j]);\n //reservas.listaReserva.add(reserv);\n //return reserv.idReserva;\n }\n else if(d.cantidad < r.cantidad && d.sector.equalsIgnoreCase(r.sector) && d.precio==r.precio)\n {\n //Si hay alguna solicitud de de reserva que no se pueda cumplir. Re reorna 0.\n //TODO: Hay que volver para atras las cantidades modificadas.\n return 0;\n }\n \n }\n \n }\n }\n }\n }\n Reserva reserv= new Reserva();\n reservas.contador_Id= reservas.contador_Id +1;\n reserv.idReserva= reservas.contador_Id;\n reserv.Estado=1;\n reserv.idEvento = identificador_evento;\n reserv.horarios = horariosReserva;\n reserv.fechaEvento = c;\n reservas.listaReserva.add(reserv);\n return reserv.idReserva;\n }\n \n return 0;\n }", "@Scheduled(fixedDelay = 86400000)\n\tpublic void contabilizarDiarias() {\n\t\t\n\t\t// Obtem apenas os hospedes que estao no hotel (Data de saida como null)\n\t\tList<Hospede> hospedes = hospedeRepository.obterHospedes();\n\t\t\n\t\tfor(Hospede hospede : hospedes) {\n\t\t\t\n\t\t\t// Verifica se houve alguma cobrança do hospede na data atual\n\t\t\tList<Diaria> diarias = diariaRepository.obterDiariasContabilizadas(LocalDate.now(), hospede.getId());\n\t\t\t\n\t\t\t// Se nao houve nenhuma cobrança ainda, sera contabilizado a cobrança da diaria do hospede\n\t\t\tif(diarias.isEmpty()) {\n\t\t\t\t\n\t\t\t\tCheckIn checkIn = checkInRepository.obterCheckIn(hospede.getId());\n\t\t\t\t\n\t\t\t\tLocalDateTime dataAtual = LocalDateTime.now();\n\t\t\t\t\n\t\t\t\tif(dataAtual.getDayOfWeek() == DayOfWeek.SATURDAY || dataAtual.getDayOfWeek() == DayOfWeek.SUNDAY) { // SABADO OU DOMINGO\n\t\t\t\t\t\n\t\t\t\t\tif(checkIn.getAdicionalVeiculo()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tcheckIn.setTotal(checkIn.getTotal() + Constantes.DIARIA_FINAL_SEMANA + Constantes.ADICIONAL_VEICULO_FINAL_SEMANA);\n\t\t\t\t\t\t\n\t\t\t\t\t\thospede.setValorGasto(hospede.getValorGasto() + Constantes.DIARIA_FINAL_SEMANA + Constantes.ADICIONAL_VEICULO_FINAL_SEMANA);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t\n\t\t\t\t\t\tcheckIn.setTotal(checkIn.getTotal() + Constantes.DIARIA_FINAL_SEMANA);\n\t\t\t\t\t\t\n\t\t\t\t\t\thospede.setValorGasto(hospede.getValorGasto() + Constantes.DIARIA_FINAL_SEMANA);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse { // ALGUM DIA DA SEMANA\n\t\t\t\t\t\n\t\t\t\t\tif(checkIn.getAdicionalVeiculo()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tcheckIn.setTotal(checkIn.getTotal() + Constantes.DIARIA_SEMANA + Constantes.ADICIONAL_VEICULO_SEMANA);\n\t\t\t\t\t\t\n\t\t\t\t\t\thospede.setValorGasto(hospede.getValorGasto() + Constantes.DIARIA_SEMANA + Constantes.ADICIONAL_VEICULO_SEMANA);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t\n\t\t\t\t\t\tcheckIn.setTotal(checkIn.getTotal() + Constantes.DIARIA_SEMANA);\n\t\t\t\t\t\t\n\t\t\t\t\t\thospede.setValorGasto(hospede.getValorGasto() + Constantes.DIARIA_SEMANA);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\thospedeRepository.save(hospede);\n\t\t\t\t\n\t\t\t\tcheckInRepository.save(checkIn);\n\t\t\t\t\n\t\t\t\t// REGISTRA QUE O HOSPEDE JA FOI COBRADO NO DIA, EVITA DUPLICIDADE NAS COBRANÇAS\n\t\t\t\tdiariaRepository.save(new Diaria(LocalDate.now(), hospede.getId(), true));\n\t\t\t\t\n\t\t\t\tlog.info(\"DIARIA DO HOSPEDE ID = \" + hospede.getId() + \"FOI CONTABILIZADA!\");\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic List<ControlDiarioAlertaDto> convertEntityMenorH(int mes, int year, int diaI, int diaF) {\n\n\t\tList<ControlDiarioAlertaDto> controlAlertas = new ArrayList<ControlDiarioAlertaDto>();\n\n\t\ttry {\n\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"hh:mm\"); // if 24 hour format\n\t\t\tDate d1;\n\t\t\tTime ppstime;\n\n\t\t\td1 = (java.util.Date) format.parse(\"09:00:00\");\n\n\t\t\tppstime = new java.sql.Time(d1.getTime());\n\n\t\t\t// System.out.println(d1);\n\t\t\t// System.out.println(ppstime);\n\n\t\t\t// Llamado al metodo que me trae todos los datos de la tabla tblcontrol_diario\n\t\t\t// de acuerdo al rango (mes, anio, dia inicial , dia final)\n\t\t\tList<ControlDiario> controlD = getControlDiarioService().findAllRange(mes, year, diaI, diaF);\n\n\t\t\tString alerta = \"\";\n\n\t\t\tControlDiarioAlertaDto controlDA = null;\n\t\t\tfor (ControlDiario controlDiario : controlD) {\n\t\t\t\tif (controlDiario.getTiempo().getHours() < prop.getHorasLaboradas()) {\n\t\t\t\t\talerta = \"EL USUARIO NO CUMPLE CON LAS 9 HORAS ESTABLECIDAS\";\n\t\t\t\t\t// System.out.println(\"EL usuario :\" + controlDiario.getNombre() + \" no cumplio\n\t\t\t\t\t// las 9 horas correspondietes\");\n\n\t\t\t\t\t// se carga el DTO solo si el usuario no cumple con las horas establecidas\n\t\t\t\t\tcontrolDA = new ControlDiarioAlertaDto(controlDiario.getFecha().toString(),\n\t\t\t\t\t\t\tString.valueOf(controlDiario.getCodigoUsuario()), controlDiario.getNombre(),\n\t\t\t\t\t\t\tcontrolDiario.getEntrada().toString(), controlDiario.getSalida().toString(),\n\t\t\t\t\t\t\tcontrolDiario.getTiempo().toString(), alerta);\n\n\t\t\t\t\t// Se agrega a la lista de controlDiarioalertaDTO para returnarlo para generar\n\t\t\t\t\t// el reporte\n\t\t\t\t\tcontrolAlertas.add(controlDA);\n\n\t\t\t\t} else {\n\t\t\t\t\talerta = \"\";\n\t\t\t\t}\n\n\t\t\t\t// System.out.println(controlDA.toString());\n\n\t\t\t}\n\n\t\t\treturn controlAlertas;\n\n\t\t} catch (Exception e) {\n\n\t\t\tSystem.out.println(e);\n\n\t\t}\n\n\t\treturn controlAlertas;\n\t}", "private void procurarData() {\n if (jDateIni.getDate() != null && jDateFim.getDate() != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String data = sdf.format(jDateIni.getDate());\n String data2 = sdf.format(jDateFim.getDate());\n carregaTable(id, data, data2);\n JBreg.setEnabled(false);\n }\n }", "void MontaValores(){\r\n // 0;0;-23,3154166666667;-51,1447783333333;0 // Extrai os valores e coloca no objetos\r\n // Dis;Dir;Lat;Long;Velocidade\r\n // Quebra de Rota lat=-999.999 long=-999.999 ==> Marca ...\r\n \r\n int ind=0;\r\n NMEAS=NMEA.replace(\",\" , \".\");\r\n \r\n //1)\r\n dists=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind));\r\n Distancia=Double.valueOf(dists);\r\n ind=ind+dists.length()+1;\r\n \r\n //2)\r\n dirs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Direcao=Double.valueOf(dirs);\r\n ind=ind+dirs.length()+1;\r\n \r\n //3)\r\n lats=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Lat=Double.valueOf(lats);\r\n ind=ind+lats.length()+1;\r\n \r\n //4)\r\n longs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Long=Double.valueOf(longs);\r\n ind=ind+longs.length()+1;\r\n \r\n //5)\r\n vels=NMEAS.substring(ind,NMEAS.length());\r\n // Transforma de Knots para Km/h\r\n Velocidade=Double.valueOf(vels)/100*1.15152*1.60934;\r\n vels=String.valueOf(Velocidade);\r\n ind=ind+vels.length()+1;\r\n \r\n }", "public static void main(String[] args) {\n int horaSalida;\n int minutosSalida;\n int horaLlegada;\n int minutosLlegada;\n //Salida:\n int duracion;\n //condiciones y restricciones: el vuelo puede pasar de medianoche y no dura mas de 24h\n Scanner sc = new Scanner(System.in);\n do {\n System.out.println(\"Ingrese la hora de salida\");\n horaSalida = sc.nextInt();\n System.out.println(\"Ingrese los minutos\");\n minutosSalida = sc.nextInt();\n\n System.out.println(\"Ingrese la hora de llegada\");\n horaLlegada = sc.nextInt();\n System.out.println(\"Ingrese los minutos\");\n minutosLlegada = sc.nextInt();\n if (horaSalida > 24 || horaLlegada > 24 || minutosSalida > 60 || minutosLlegada > 60) {\n System.out.println(\"Los datos no han sido ingresados correctamente, vuelva a intentarlo\");\n }\n } while (horaSalida > 24 || horaLlegada > 24 || minutosSalida > 60 || minutosLlegada > 60);\n\n //Conversion de horas y minutos en solo minutos 19<2\n if (horaSalida > horaLlegada) {//caso 1\n horaLlegada = 24 + horaLlegada;//para poder restarlo a eso las h y m de salida\n }\n if (horaLlegada == horaSalida && (minutosSalida > minutosLlegada || minutosSalida == minutosLlegada)) {//caso 2\n horaLlegada = 24 + horaLlegada;//para poder restarlo a eso las h y m de salida\n }\n duracion = ((horaLlegada * 60) + minutosLlegada) - ((horaSalida * 60) + minutosSalida);\n\n if (duracion >= 1440) {//24*60=1440 si se pasa esto significa que el vuelo dura mas de 24h ex: 3:41 y llego 3:20\n System.out.print(\"El vuelo no puede durar mas de 24 horas \");\n } else {\n System.out.print(\"La duracion del vuelo es \" + duracion + \" minutos o \");\n //CODICIONES PARA EL AFFICHAGE\n if ((duracion / 60) < 10) {\n System.out.print(\"0\");\n }\n System.out.print(duracion / 60 + \"h\");\n\n if ((duracion % 60) < 10) {\n System.out.print(\"0\");\n }\n System.out.print(duracion % 60 + \"m\");\n }\n }", "public Float consultarScript(Indicador indicador){\n Connection con = ConexaoCliente.getConexao();\n Float resultadoConsulta=null;\n try {\n Statement statement = con.createStatement();\n //Executa o Script do Indicador\n ResultSet result = statement.executeQuery(indicador.getScript());\n\n while(result.next()){\n // CONFIGURAR PARÂMETRO CONFORME O SCRIPT ******\n resultadoConsulta=result.getFloat(1);\n }\n\n statement.close();\n\n } catch (SQLException ex) {\n Logger.getLogger(IndicadorDao.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"IndicadorDao.consultarScript. \\n\"+ex.toString());\n ex.printStackTrace();\n }finally{\n try{\n con.close();\n }catch(SQLException ex){\n ex.printStackTrace();\n Logger.getLogger(IndicadorDao.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"IndicadorDao.consultarScript. fechar conexão\\n\"+ex.toString());\n }\n\n }\n\n Calendar calendar = new GregorianCalendar();\n Date data = new Date();\n calendar.setTime(data);\n \n try{\n Movimentacao mov = new Movimentacao();\n //Atribui valores para gravar na tabela [ tb_movimentacao ]\n mov.setDataMovimentacao(calendar.getTime());\n mov.setIdIndicador(mov.getIdIndicador());\n mov.setStatus(\"T\");\n mov.setValorRetorno(mov.getValorRetorno());\n\n MovimentacaoDao movDao = new MovimentacaoDao();\n movDao.gravarMovimentacao(mov);\n\n }catch(Exception e){\n e.printStackTrace();\n }\n \n return resultadoConsulta;\n }", "public void hora()\n {\n horaTotal = HoraSalida - HoraLlegada;\n\n }", "@Override\n public Collection<resumenSemestre> resumenSemestre(int idCurso, int mesApertura, int mesCierre) throws Exception {\n Collection<resumenSemestre> retValue = new ArrayList();\n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"select ma.nombremateria, p.idcuestionario as test, \"\n + \"round(avg(p.puntaje),2) as promedio, cue.fechainicio, MONTH(cue.fechacierre) as mes \"\n + \"from puntuaciones p, cuestionario cue, curso cu, materia ma \"\n + \"where cu.idcurso = ma.idcurso and ma.idmateria = cue.idmateria \"\n + \"and cue.idcuestionario = p.idcuestionario and cu.idcurso = ? \"\n + \"and MONTH(cue.fechacierre) >= ? AND MONTH(cue.fechacierre) <= ? and YEAR(cue.fechacierre) = YEAR(NOW())\"\n + \"GROUP by ma.nombremateria, MONTH(cue.fechacierre) ORDER BY ma.nombremateria\");\n pstmt.setInt(1, idCurso );\n pstmt.setInt(2, mesApertura);\n pstmt.setInt(3, mesCierre);\n rs = pstmt.executeQuery();\n while (rs.next()) { \n retValue.add(new resumenSemestre(rs.getString(\"nombremateria\"), rs.getInt(\"test\"), rs.getInt(\"promedio\"), rs.getInt(\"mes\")));\n }\n return retValue;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return retValue;\n\n\n }", "private void obtenerGastosDiariosMes() {\n\t\t// Obtenemos las fechas actuales inicial y final\n\t\tCalendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n int diaFinalMes = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);\n\n\t\tList<Movimiento> movimientos = this.movimientoService.obtenerMovimientosFechaUsuario(idUsuario, LocalDate.of(LocalDate.now().getYear(),LocalDate.now().getMonthValue(),1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLocalDate.of(LocalDate.now().getYear(),LocalDate.now().getMonthValue(), diaFinalMes));\n\t\tList<Double> listaGastos = new ArrayList<Double>();\n\t\tList<String> listaFechas = new ArrayList<String>();\n\t\t\n\t\tDate fechaUtilizadaActual = null;\n\t\tdouble gastoDiario = 0;\n\t\t\n\t\tfor (Iterator iterator = movimientos.iterator(); iterator.hasNext();) {\n\t\t\tMovimiento movimiento = (Movimiento) iterator.next();\n\t\t\tif(fechaUtilizadaActual == null) { //Comprobamos si se acaba de entrar en el bucle para inicializar la fecha del movimiento\n\t\t\t\tfechaUtilizadaActual = movimiento.getFecha();\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Si hemos cambiado de fecha del movimiento se procede a guardar los datos recogidos\n\t\t\tif(!fechaUtilizadaActual.equals(movimiento.getFecha())) {\n\t\t\t\tlistaGastos.add(gastoDiario);\n\t\t\t\tlistaFechas.add(fechaUtilizadaActual.getDate()+\"/\"+Utils.getMonthForInt(fechaUtilizadaActual.getMonth()).substring(0, 3));\n\t\t\t\tgastoDiario = 0; // Reiniciamos el contador del gasto\n\t\t\t\tfechaUtilizadaActual = movimiento.getFecha(); // Almacenemos la fecha del nuevo gasto\n\t\t\t}\n\t\t\t\n\t\t\t// Si el movimiento que se ha realizado es un gasto lo sumamos al contador de gasto\n\t\t\tif(movimiento.getTipo().equals(TipoMovimiento.GASTO)) {\n\t\t\t\tgastoDiario += movimiento.getCantidad();\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Comprobamos si es el ultimo item del iterador y almacenamos sus datos\n\t\t\tif(!iterator.hasNext()) {\n\t\t\t\tlistaGastos.add(gastoDiario);\n\t\t\t\tlistaFechas.add(fechaUtilizadaActual.getDate()+\"/\"+Utils.getMonthForInt(fechaUtilizadaActual.getMonth()).substring(0, 3));\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tthis.listadoGastosDiariosDiagrama = new Double[listaGastos.size()];\n\t\tthis.listadoGastosDiariosDiagrama = listaGastos.toArray(this.listadoGastosDiariosDiagrama);\n\t\tthis.fechasDiagrama = new String[listaFechas.size()];\n\t\tthis.fechasDiagrama = listaFechas.toArray(this.fechasDiagrama);\n\t\t\n\t}", "private void atualizaHistoricoPendenteRecarga(Date datExecucao) throws SQLException\n\t{\n\t\tCalendar calExecucao = Calendar.getInstance();\n\t\tcalExecucao.setTime(datExecucao);\n\t\tint diaExecucao = calExecucao.get(Calendar.DAY_OF_MONTH);\n\t\tConnection connClientes = null;\n//\t\tPreparedStatement prepClientes = null;\n\t\tPreparedStatement prepInsert = null;\n//\t\tResultSet resultClientes = null;\n\t\t\n\t\t//Parametros para consulta no banco de dados de assinantes pendentes de primeira recarga \n\t\tString datEntradaPromocao = null;\n\t\t\n\t\tswitch(diaExecucao)\n\t\t{\n\t\t\tcase 11:\n\t\t\t\tdatEntradaPromocao = \"DAT_ENTRADA_PROMOCAO >= TO_DATE('01/01/2005', 'DD/MM/YYYY') AND \" +\n\t\t\t\t\t\t\t\t\t \"DAT_ENTRADA_PROMOCAO < TO_DATE('09/02/2005', 'DD/MM/YYYY') \";\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\tdatEntradaPromocao = \"DAT_ENTRADA_PROMOCAO >= TO_DATE('09/02/2005', 'DD/MM/YYYY') AND \" +\n\t\t\t\t \t\t\t\t\t \"DAT_ENTRADA_PROMOCAO < TO_DATE('01/04/2005', 'DD/MM/YYYY') \";\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\tdatEntradaPromocao = \"DAT_ENTRADA_PROMOCAO >= TO_DATE('01/04/2005', 'DD/MM/YYYY') AND \" +\n\t\t\t\t \t\t\t\t\t \"DAT_ENTRADA_PROMOCAO < TO_DATE('01/07/2005', 'DD/MM/YYYY') \";\n\t\t\t\tbreak;\n\t\t\t//Caso contrario, nao faz nada e termina a execucao\n\t\t\tdefault:\n\t\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry\n\t\t{\n\t\t\t//Inserindo registros no historico\n\t\t\tString sqlInsert = \"INSERT INTO TBL_GER_HISTORICO_PULA_PULA \" +\n\t\t \t \t\t\t\t \"(IDT_MSISDN, IDT_PROMOCAO, DAT_EXECUCAO, DES_STATUS_EXECUCAO, \" +\n\t\t\t\t\t\t\t \" IDT_CODIGO_RETORNO, VLR_CREDITO_BONUS) \" +\n\t\t\t\t\t\t\t \"SELECT IDT_MSISDN, IDT_PROMOCAO, ?, 'SUCESSO', ?, 0 \" +\n\t\t\t\t\t\t\t \"FROM TBL_GER_PROMOCAO_ASSINANTE \" +\n\t\t\t\t\t\t\t \"WHERE IDT_PROMOCAO = \" + String.valueOf(ID_PENDENTE_RECARGA) + \n\t\t\t\t\t\t\t \" AND \" + datEntradaPromocao;\n\t\t\t\n\t\t\tconnClientes = DriverManager.getConnection(\"jdbc:oracle:oci8:@\" + sid, usuario,senha);\n\t\t\tprepInsert = connClientes.prepareStatement(sqlInsert);\n\t\t\tprepInsert.setDate (1, new java.sql.Date(datExecucao.getTime()));\n\t\t\tprepInsert.setString(2, (new DecimalFormat(\"0000\")).format(RET_PULA_PULA_PENDENTE_RECARGA));\n\t\t\tprepInsert.executeUpdate();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif(prepInsert != null) prepInsert.close();\n\t\t\tif(connClientes != null) connClientes.close();\n\t\t}\n\t}", "public CalMetasDTO cargarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta) {\n/* */ try {\n/* 416 */ String s = \"select m.*,\";\n/* 417 */ s = s + \"tm.descripcion as nombreTipoMedicion,\";\n/* 418 */ s = s + \"est.descripcion as nombreEstado,\";\n/* 419 */ s = s + \"Um.Descripcion as nombre_unidad_medida\";\n/* 420 */ s = s + \" from cal_plan_metas m,sis_multivalores tm,sis_multivalores est,Sis_Multivalores Um\";\n/* 421 */ s = s + \" where \";\n/* 422 */ s = s + \" m.tipo_medicion =tm.valor\";\n/* 423 */ s = s + \" and tm.tabla='CAL_TIPO_MEDICION'\";\n/* 424 */ s = s + \" and m.estado =est.valor\";\n/* 425 */ s = s + \" and est.tabla='CAL_ESTADO_META'\";\n/* 426 */ s = s + \" and m.Unidad_Medida = Um.Valor\";\n/* 427 */ s = s + \" and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META'\";\n/* 428 */ s = s + \" and m.codigo_ciclo=\" + codigoCiclo;\n/* 429 */ s = s + \" and m.codigo_plan=\" + codigoPlan;\n/* 430 */ s = s + \" and m.codigo_meta=\" + codigoMeta;\n/* 431 */ boolean rtaDB = this.dat.parseSql(s);\n/* 432 */ if (!rtaDB) {\n/* 433 */ return null;\n/* */ }\n/* */ \n/* 436 */ this.rs = this.dat.getResultSet();\n/* 437 */ if (this.rs.next()) {\n/* 438 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 441 */ catch (Exception e) {\n/* 442 */ e.printStackTrace();\n/* 443 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarCalMetas \", e);\n/* */ } \n/* 445 */ return null;\n/* */ }", "public java.sql.ResultSet consultaporhorafecha(String hora,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where phm.horas='\"+hora+\"' and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporhorafecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public CalMetasDTO leerRegistro() {\n/* */ try {\n/* 56 */ CalMetasDTO reg = new CalMetasDTO();\n/* 57 */ reg.setCodigoCiclo(this.rs.getInt(\"codigo_ciclo\"));\n/* 58 */ reg.setCodigoPlan(this.rs.getInt(\"codigo_plan\"));\n/* 59 */ reg.setCodigoMeta(this.rs.getInt(\"codigo_meta\"));\n/* 60 */ reg.setCodigoObjetivo(this.rs.getInt(\"codigo_objetivo\"));\n/* 61 */ reg.setDescripcion(this.rs.getString(\"descripcion\"));\n/* 62 */ reg.setJustificacion(this.rs.getString(\"justificacion\"));\n/* 63 */ reg.setValorMeta(this.rs.getDouble(\"valor_meta\"));\n/* 64 */ reg.setTipoMedicion(this.rs.getString(\"tipo_medicion\"));\n/* 65 */ reg.setFuenteDato(this.rs.getString(\"fuente_dato\"));\n/* 66 */ reg.setAplicaEn(this.rs.getString(\"aplica_en\"));\n/* 67 */ reg.setUnidadMedida(this.rs.getString(\"unidad_medida\"));\n/* 68 */ reg.setValorMinimo(this.rs.getDouble(\"valor_minimo\"));\n/* 69 */ reg.setValorMaximo(this.rs.getDouble(\"valor_maximo\"));\n/* 70 */ reg.setMes01(this.rs.getString(\"mes01\"));\n/* 71 */ reg.setMes02(this.rs.getString(\"mes02\"));\n/* 72 */ reg.setMes03(this.rs.getString(\"mes03\"));\n/* 73 */ reg.setMes04(this.rs.getString(\"mes04\"));\n/* 74 */ reg.setMes05(this.rs.getString(\"mes05\"));\n/* 75 */ reg.setMes06(this.rs.getString(\"mes06\"));\n/* 76 */ reg.setMes07(this.rs.getString(\"mes07\"));\n/* 77 */ reg.setMes08(this.rs.getString(\"mes08\"));\n/* 78 */ reg.setMes09(this.rs.getString(\"mes09\"));\n/* 79 */ reg.setMes10(this.rs.getString(\"mes10\"));\n/* 80 */ reg.setMes11(this.rs.getString(\"mes11\"));\n/* 81 */ reg.setMes12(this.rs.getString(\"mes12\"));\n/* 82 */ reg.setEstado(this.rs.getString(\"estado\"));\n/* 83 */ reg.setTipoGrafica(this.rs.getString(\"tipo_grafica\"));\n/* 84 */ reg.setFechaInsercion(this.rs.getString(\"fecha_insercion\"));\n/* 85 */ reg.setUsuarioInsercion(this.rs.getString(\"usuario_insercion\"));\n/* 86 */ reg.setFechaModificacion(this.rs.getString(\"fecha_modificacion\"));\n/* 87 */ reg.setUsuarioModificacion(this.rs.getString(\"usuario_modificacion\"));\n/* 88 */ reg.setNombreTipoMedicion(this.rs.getString(\"nombreTipoMedicion\"));\n/* 89 */ reg.setNombreEstado(this.rs.getString(\"nombreEstado\"));\n/* 90 */ reg.setNombreUnidadMedida(this.rs.getString(\"nombre_unidad_medida\"));\n/* */ \n/* */ try {\n/* 93 */ reg.setNumeroAcciones(this.rs.getInt(\"acciones\"));\n/* */ }\n/* 95 */ catch (Exception e) {}\n/* */ \n/* */ \n/* */ \n/* 99 */ return reg;\n/* */ }\n/* 101 */ catch (Exception e) {\n/* 102 */ e.printStackTrace();\n/* 103 */ Utilidades.writeError(\"CalPlanMetasFactory:leerRegistro \", e);\n/* */ \n/* 105 */ return null;\n/* */ } \n/* */ }", "public static ArrayList <FichajeOperarios> obtenerFichajeOperarios(Date fecha) throws SQLException{\n Connection conexion=null;\n Connection conexion2=null;\n ResultSet resultSet;\n PreparedStatement statement;\n ArrayList <FichajeOperarios> FichajeOperarios=new ArrayList();\n Conexion con=new Conexion();\n\n //java.util.Date fecha = new Date();\n \n //para saber la fecha actual\n Date fechaActual = new Date();\n DateFormat formatoFecha = new SimpleDateFormat(\"dd/MM/yyyy\");\n \n //System.out.println(formatoFecha.format(fechaActual));\n \n try {\n\n conexion = con.connecta();\n\n\n statement=conexion.prepareStatement(\"select codigo,nombre,HORA_ENTRADA,centro from \"\n + \" (SELECT op.codigo,op.nombre,F2.FECHA AS FECHA_ENTRADA,F2.HORA AS HORA_ENTRADA,F2.FECHA+f2.HORA AS FICHA_ENTRADA,centro.DESCRIP as CENTRO,\"\n + \" (select top(1) f22.fecha \"\n + \" from e001_fichajes2 as f22 where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno order by f22.recno) AS FECHA_SALIDA,\"\n + \" (select top(1) f22.hora \"\n + \" from e001_fichajes2 as f22 \"\n + \" where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno \"\n + \" order by f22.recno) AS HORA_SALIDA,\"\n + \" (select top(1) f22.fecha \"\n + \" from e001_fichajes2 as f22 \"\n + \" where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno \"\n + \" order by f22.recno)+\"\n + \" (select top(1) f22.hora \"\n + \" from e001_fichajes2 as f22 \"\n + \" where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno \"\n + \" order by f22.recno) as FICHA_SALIDA \"\n + \" FROM E001_OPERARIO as op left join e001_fichajes2 as f2 on op.codigo=f2.OPERARIO and f2.tipo='E' JOIN E001_centrost as centro on f2.CENTROTRAB=centro.CODIGO \"\n + \" WHERE F2.FECHA='\"+formatoFecha.format(fecha)+\"' and f2.HORA=(select max(hora) from e001_fichajes2 as f22 where f2.operario=f22.operario and f22.tipo='e' and f22.FECHA=f2.FECHA)) as a\"\n + \" where FICHA_SALIDA is null \"\n + \" ORDER BY codigo\");\n \n resultSet = statement.executeQuery();\n while (resultSet.next()) {\n FichajeOperarios fiop=new FichajeOperarios(); \n fiop.setCodigo(resultSet.getString(\"CODIGO\"));\n fiop.setNombre(resultSet.getString(\"NOMBRE\"));\n fiop.setHora_Entrada(resultSet.getString(\"HORA_ENTRADA\"));\n //fiop.setHora_Salida(resultSet.getString(\"HORA_SALIDA\"));\n fiop.setCentro(resultSet.getString(\"CENTRO\"));\n FichajeOperarios.add(fiop);\n }\n \n } catch (SQLException ex) {\n System.out.println(ex);\n \n }\n return FichajeOperarios;\n \n \n }", "public void consultaTest() throws Exception{\n\t\t\n\t ResultSet rs = statement.executeQuery(\"select * from statistics\");\n\t \n\t \n\t while(rs.next())\n\t {\n\t\t \n\t\t DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss.SSS\");\n\t\t Date date = df.parse(rs.getString(\"timeActual\"));\n\t\t Calendar cal = Calendar.getInstance();\n\t\t cal.setTime(date);\n\t\t \n\t\t String completoDay = cal.get(Calendar.YEAR)+\"-\"+(cal.get(Calendar.MONTH) + 1)+\"-\"+ cal.get(Calendar.DAY_OF_MONTH);\n\t\t \n\t System.out.println(\"id= \" + rs.getInt(\"id\") + \" memory= \" + rs.getInt(\"memory\") + \" cpu= \" \n\t \t+ rs.getInt(\"cpu\") + \" timeActual= \" + completoDay);\n\t }\n\t \n\t if(rs != null)\n\t\t rs.close();\n\t \n\t if(connection != null)\n\t connection.close();\n\t \n\t}", "public Vector listaAsignaturas(String nombre_titulacion)\n {\n try\n {\n Date fechaActual = new Date();\n SimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\n //Se obtiene una conexion\n Connection conexion = this.bbdd.getConexion();\n\n //Se prepara la query\n String query = \"SELECT * FROM asignaturatotal \";\n query += \"WHERE fechainicio <='\" + formato.format(fechaActual) +\"' \";\n query += \"AND fechafin >= '\"+formato.format(fechaActual)+\"' AND tit_nombre='\"+nombre_titulacion+\"' AND activa = 's'\";\n\n //Se crea un vector de asignaturas\n Vector vectorAsignaturas = new Vector();\n\n //Se ejecuta la query \n Statement st = conexion.createStatement();\n ResultSet resultado = st.executeQuery(query);\n \n //Para cada fila se creará un objeto y se rellenará\n //con los valores de las columnas.\n while(resultado.next())\n {\n asignatura asignatura = new asignatura();\n \n asignatura.setCodigo(resultado.getString(\"codigo\"));\n asignatura.setTitulo(resultado.getString(\"titulo\"));\n asignatura.setFechaInicio(resultado.getDate(\"fechainicio\"));\n asignatura.setFechaFin(resultado.getDate(\"fechafin\"));\n asignatura.setResponsable(resultado.getString(\"responsable\"));\n asignatura.setEmail(resultado.getString(\"email\"));\n asignatura.setTelefono(resultado.getString(\"telefono\"));\n \n //Se añade la asignatura al vector de asignaturas\n vectorAsignaturas.add(asignatura);\n }\n\n //Se cierra la conexión\n this.bbdd.cerrarConexion(conexion);\n\n return vectorAsignaturas;\n }\n catch(SQLException e)\n {\n System.out.println(\"Error al acceder a las asignaturas de la Base de Datos: \"+e.getMessage());\n return null;\n }\n }", "public Collection pesquisarParcelamentoContaUsuario(Integer idUsuario, Date dataInicial, Date dataFinal)\n\t\t\t\t\tthrows ErroRepositorioException{\n\n\t\tCollection retorno = null;\n\t\tSession session = HibernateUtil.getSession();\n\t\tStringBuffer consulta = new StringBuffer();\n\n\t\ttry{\n\t\t\tconsulta.append(\"SELECT MPCCDFUN AS mpccdfun, \");\n\t\t\tconsulta.append(\" MPCDTMPC AS mpcdtmpc, \");\n\t\t\tconsulta.append(\" MPCHRMPC AS mpchrmpc, \");\n\t\t\tconsulta.append(\" MPCAMINI AS mpcamini, \");\n\t\t\tconsulta.append(\" MPCAMFIN AS mpcamfin, \");\n\t\t\tconsulta.append(\" MPCNNMATUSU AS mpcnnatusu, \");\n\t\t\tconsulta.append(\" MPCNNMATUSUD AS mpcnnmatusud, \");\n\t\t\tconsulta.append(\" MPCNNPREST AS mpcnnprest, \");\n\t\t\tconsulta.append(\" MPCVLENTR AS mpcvlentr, \");\n\t\t\tconsulta.append(\" MPCVLPREST AS mpcvlprest, \");\n\t\t\tconsulta.append(\" MPCVLDEBHIST AS mpcvldebhist, \");\n\t\t\tconsulta.append(\" MPCVLDEBCORR AS mpcvldebcorr, \");\n\t\t\tconsulta.append(\" MPCVLTOTSACINCL AS mpcvltotsacincl, \");\n\t\t\tconsulta.append(\" MPCVLPARCEL AS mpcvlparcel, \");\n\t\t\tconsulta.append(\" MPCNNMATGER AS mpcnnmatger \");\n\t\t\tconsulta.append(\"FROM SCITMPC \");\n\t\t\tconsulta.append(\"WHERE MPCNNMATUSU = :idUsuario \");\n\t\t\tconsulta.append(\"AND MPCDTMPC BETWEEN :dataInicial AND :dataFinal \");\n\t\t\tconsulta.append(\"ORDER BY MPCDTMPC, MPCHRMPC, MPCNNMATUSU \");\n\n\t\t\tSQLQuery query = session.createSQLQuery(consulta.toString());\n\n\t\t\t// RETORNO\n\t\t\tquery.addScalar(\"mpccdfun\", Hibernate.INTEGER);\n\t\t\tquery.addScalar(\"mpcdtmpc\", Hibernate.DATE);\n\t\t\tquery.addScalar(\"mpchrmpc\", Hibernate.INTEGER);\n\t\t\tquery.addScalar(\"mpcamini\", Hibernate.INTEGER);\n\t\t\tquery.addScalar(\"mpcamfin\", Hibernate.INTEGER);\n\t\t\tquery.addScalar(\"mpcnnatusu\", Hibernate.INTEGER);\n\t\t\tquery.addScalar(\"mpcnnmatusud\", Hibernate.INTEGER);\n\t\t\tquery.addScalar(\"mpcnnprest\", Hibernate.INTEGER);\n\t\t\tquery.addScalar(\"mpcvlentr\", Hibernate.BIG_DECIMAL);\n\t\t\tquery.addScalar(\"mpcvlprest\", Hibernate.BIG_DECIMAL);\n\t\t\tquery.addScalar(\"mpcvldebhist\", Hibernate.BIG_DECIMAL);\n\t\t\tquery.addScalar(\"mpcvldebcorr\", Hibernate.BIG_DECIMAL);\n\t\t\tquery.addScalar(\"mpcvltotsacincl\", Hibernate.BIG_DECIMAL);\n\t\t\tquery.addScalar(\"mpcvlparcel\", Hibernate.BIG_DECIMAL);\n\t\t\tquery.addScalar(\"mpcnnmatger\", Hibernate.INTEGER);\n\n\t\t\t// PARAMETROS\n\t\t\tquery.setInteger(\"idUsuario\", idUsuario);\n\t\t\tquery.setDate(\"dataInicial\", dataInicial);\n\t\t\tquery.setDate(\"dataFinal\", dataFinal);\n\n\t\t\tretorno = query.list();\n\n\t\t}catch(HibernateException e){\n\t\t\t// levanta a exceção para a próxima camada\n\t\t\tthrow new ErroRepositorioException(e, \"Erro no Hibernate\");\n\t\t}finally{\n\t\t\t// fecha a sessão\n\t\t\tHibernateUtil.closeSession(session);\n\t\t}\n\n\t\treturn retorno;\n\t}", "public ArrayList<clsPago> consultaDataPagosCuotaInicial(int codigoCli)\n { \n ArrayList<clsPago> data = new ArrayList<clsPago>(); \n try{\n bd.conectarBaseDeDatos();\n sql = \" SELECT a.id_pagos_recibo idPago, a.id_usuario, b.name name_usuario, \"\n + \" a.referencia referencia, \"\n + \" a.fecha_pago fecha_pago, a.estado, \"\n + \" a.valor valor_pago, a.id_caja_operacion, e.name_completo nombre_cliente, \"\n + \" a.fecha_pago fecha_registro\"\n + \" FROM ck_pagos_recibo AS a\"\n + \" JOIN ck_usuario AS b ON a.id_usuario = b.id_usuario\"\n + \" JOIN ck_cliente AS e ON a.codigo = e.codigo\"\n + \" WHERE a.estado = 'A'\"\n + \" AND a.cuota_inicial = 'S'\"\n + \" AND a.estado_asignado = 'N'\"\n + \" AND a.codigo = \" + codigoCli; \n \n System.out.println(sql);\n bd.resultado = bd.sentencia.executeQuery(sql);\n \n if(bd.resultado.next())\n { \n do \n { \n clsPago oListaTemporal = new clsPago();\n \n oListaTemporal.setReferencia(bd.resultado.getString(\"referencia\"));\n oListaTemporal.setFechaPago(bd.resultado.getString(\"fecha_pago\"));\n oListaTemporal.setNombreUsuario(bd.resultado.getString(\"name_usuario\"));\n oListaTemporal.setNombreCliente(bd.resultado.getString(\"nombre_cliente\"));\n oListaTemporal.setValor(bd.resultado.getDouble(\"valor_pago\"));\n oListaTemporal.setFechaRegistro(bd.resultado.getString(\"fecha_registro\"));\n oListaTemporal.setIdPago(bd.resultado.getInt(\"idPago\"));\n data.add(oListaTemporal);\n }\n while(bd.resultado.next()); \n //return data;\n }\n else\n { \n data = null;\n } \n }\n catch(Exception ex)\n {\n System.out.print(ex);\n data = null;\n } \n bd.desconectarBaseDeDatos();\n return data;\n }", "public void listar_saldoMontadoData(String data_entrega,String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_Saldo_Montado.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getSaldoVendaMontadoPorData(data_entrega, tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getTotal()});\n }\n \n \n }", "public java.sql.ResultSet consultaporespecialidadhora(String CodigoEspecialidad,String hora){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.horas='\"+hora+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidadhora \"+ex);\r\n }\t\r\n return rs;\r\n }", "public int obtenerHoraMasAccesos()\n {\n int numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora = 0;\n int horaConElNumeroDeAccesosMaximo = -1;\n\n if(archivoLog.size() >0){\n for(int horaActual=0; horaActual < 24; horaActual++){\n int totalDeAccesosParaHoraActual = 0;\n //Miramos todos los accesos\n for(Acceso acceso :archivoLog){\n if(horaActual == acceso.getHora()){\n totalDeAccesosParaHoraActual++;\n }\n }\n if(numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora<=totalDeAccesosParaHoraActual){\n numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora =totalDeAccesosParaHoraActual;\n horaConElNumeroDeAccesosMaximo = horaActual;\n }\n }\n }\n else{\n System.out.println(\"No hay datos\");\n }\n return horaConElNumeroDeAccesosMaximo;\n }", "public static void aggiornaDatiGioco(String query, Utente utente) throws SQLException{\n\t\t\tConnection con = connectToDB();\n\t\t\tStatement cmd = con.createStatement();\n\t\t\t\n\t\t\tResultSet res = cmd.executeQuery(query);\n\t\t\t\n\t\t\twhile(res.next()){\n\t\t\t\tutente.setPuntiXP(res.getInt(\"puntixp\"));\n\t\t\t\t//System.out.println(res.getInt(\"puntixp\"));\n\t\t\t}\t\n\t\t\t\n\t\t\tcloseConnectionToDB(con);\n\t\t}", "private void calcularOtrosIngresos(Ingreso ingreso)throws Exception{\n\t\tfor(IngresoDetalle ingresoDetalle : ingreso.getListaIngresoDetalle()){\r\n\t\t\tif(ingresoDetalle.getIntPersPersonaGirado().equals(ingreso.getBancoFondo().getIntPersonabancoPk())\r\n\t\t\t&& ingresoDetalle.getBdAjusteDeposito()==null){\r\n\t\t\t\tbdOtrosIngresos = ingresoDetalle.getBdMontoAbono();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@RequiresApi(api = Build.VERSION_CODES.O)\n private String obtenerSegundos(){\n try{\n this.minutos = java.time.LocalDateTime.now().toString().substring(17,19);\n }catch (StringIndexOutOfBoundsException sioobe){\n this.segundos = \"00\";\n }\n return this.minutos;\n }", "public List<Faturamento> gerarFaturamento(Banco banco,Date competenciaBase,\tint dataLimite, UsuarioInterface usuario, Date dataGeracaoPlanilha, Collection<TetoPrestadorFaturamento> tetos) throws Exception {\n\t\tSession session = HibernateUtil.currentSession();\n\t\tsession.setFlushMode(FlushMode.COMMIT);\n\t\tCriteria criteria = session.createCriteria(Prestador.class);\n\t\tList<Faturamento> faturamentos = new ArrayList<Faturamento>();\n\t\tList<AbstractFaturamento> todosFaturamentos = new ArrayList<AbstractFaturamento>();\n\t\tif (banco != null)\n\t\t\tcriteria.add(Expression.eq(\"informacaoFinanceira.banco\",banco));\n//\t\t\tcriteria.add(Expression.not(Expression.in(\"idPrestador\", AbstractFinanceiroService.getIdsPrestadoresNaoPagos())));\n\t\t\tcriteria.add(Expression.eq(\"idPrestador\",528079L));\n\t\t\t\n\t\tList<Prestador> prestadores = criteria.list();\n\n//\t\tsaveImpostos();\n\t\tint quantPrest = prestadores.size();\n\t\tint countPrest = 0;\n\t\tDate competenciaAjustada = ajustarCompetencia(competenciaBase);\n\t\t\n//\t\talimentaLista();\n\t\t\n\t\tfor (Prestador prestador : prestadores) {\n\t\t\tSystem.out.println(++countPrest + \"/\" + quantPrest + \" - Prestador: \" + prestador.getPessoaJuridica().getFantasia());\n\t\t\tif(!prestador.getTipoPrestador().equals(Prestador.TIPO_PRESTADOR_ANESTESISTA)){\n//\t\t\t\tgerarFaturamento(competenciaBase, faturamentos, competenciaAjustada, prestador, usuario, dataGeracaoPlanilha, tetos);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"Gerando os faturamentos dos procedimentos...\");\n \t\t\t\tgerarFaturamento(competenciaBase, faturamentos, competenciaAjustada, (PrestadorAnestesista)prestador, usuario);\n\t\t\t\tSystem.out.println(\"Gerando os faturamentos das guias...\");\n//\t\t\t\tgerarFaturamento(competenciaBase, faturamentos, competenciaAjustada, prestador, usuario, dataGeracaoPlanilha, tetos);\n\t\t\t\tSystem.out.println(\"Concluído Coopanest!\");\n\t\t\t}\t\t\t\t\n\t\t}\n\t\t\n\t\treturn faturamentos;\n\t}", "public static List<Punto> getPuntos(){\n\t\t\n\t\tList<Punto> puntos = new ArrayList<Punto>();\n\t\ttry{\n\n\t\t\t//-12.045916, -75.195270\n\t\t\t\n\t\t\tPunto p1 = new Punto(1,-12.037512,-75.183327,0.0);\n\t\t\tp1.setDatos(getDatos(\"16/06/2017 09:00:00\", 2 , 1));\n\t\t\t\n\t\t\tPunto p2 = new Punto(2,-12.041961,-75.184786,0.0);\n\t\t\tp2.setDatos(getDatos(\"16/06/2017 09:00:00\",1 , 2));\n\t\t\t\n\t\t\tPunto p3 = new Punto(3,-12.0381,-75.1841,0.0);\n\t\t\tp3.setDatos(getDatos(\"16/06/2017 09:00:00\",2 , 2));\n\t\t\t\n\t\t\tPunto p4 = new Punto(4,-12.041542,-75.185816,0.0);\n\t\t\tp4.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p5 = new Punto(5,-12.037764,-75.181096,0.0);\n\t\t\tp5.setDatos(getDatos(\"16/06/2017 11:15:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p6 = new Punto(6,-12.042801,-75.190108,0.0);\n\t\t\tp6.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p7 = new Punto(7,-12.04364,-75.184014,0.0);\n\t\t\tp7.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p8 = new Punto(8,-12.045739,-75.185387,0.0);\n\t\t\tp8.setDatos(getDatos(\"16/06/2017 11:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p9 = new Punto(9,-12.04683,-75.187361,0.0);\n\t\t\tp9.setDatos(getDatos(\"16/06/2017 11:50:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p10 = new Punto(10,-12.050775,-75.187962,0.0);\n\t\t\tp10.setDatos(getDatos(\"16/06/2017 12:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p11 = new Punto(11,-12.053797,-75.184271,0.0);\n\t\t\tp11.setDatos(getDatos(\"16/06/2017 13:00:00\",0 , 0));\n\t\t\t\n\t\t\tpuntos.add(p8);\n\t\t\tpuntos.add(p9);\n\t\t\tpuntos.add(p3);\n\t\t\tpuntos.add(p4);\n\t\t\tpuntos.add(p5);\n\t\t\tpuntos.add(p6);\n\t\t\tpuntos.add(p7);\n\t\t\tpuntos.add(p10);\n\t\t\tpuntos.add(p1);\n\t\t\tpuntos.add(p2);\n\t\t\tpuntos.add(p11);\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e ){\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn puntos;\n\t\n\t}", "List<Venta1> consultarVentaPorFecha(Date desde, Date hasta, Persona cliente) throws Exception;", "public java.sql.ResultSet consultaporespecialidadhorafecha(String CodigoEspecialidad,String hora,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.horas='\"+hora+\"' and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas \");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidadhorafecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "private int creaSingoloAddebito(int cod, Date data) {\n /* variabili e costanti locali di lavoro */\n int nuovoRecord = 0;\n boolean continua;\n Dati dati;\n int codConto = 0;\n int codListino = 0;\n int quantita = 0;\n double prezzo = 0.0;\n Campo campoConto = null;\n Campo campoListino = null;\n Campo campoQuantita = null;\n Campo campoPrezzo = null;\n Campo campoData = null;\n Campo campoFissoConto = null;\n Campo campoFissoListino = null;\n Campo campoFissoQuantita = null;\n Campo campoFissoPrezzo = null;\n ArrayList<CampoValore> campi = null;\n Modulo modAddebito = null;\n Modulo modAddebitoFisso = null;\n\n try { // prova ad eseguire il codice\n\n modAddebito = Progetto.getModulo(Addebito.NOME_MODULO);\n modAddebitoFisso = Progetto.getModulo(AddebitoFisso.NOME_MODULO);\n\n /* carica tutti i dati dall'addebito fisso */\n dati = modAddebitoFisso.query().caricaRecord(cod);\n continua = dati != null;\n\n /* recupera i campi da leggere e da scrivere */\n if (continua) {\n\n /* campi del modulo Addebito Fisso (da leggere) */\n campoFissoConto = modAddebitoFisso.getCampo(Addebito.Cam.conto.get());\n campoFissoListino = modAddebitoFisso.getCampo(Addebito.Cam.listino.get());\n campoFissoQuantita = modAddebitoFisso.getCampo(Addebito.Cam.quantita.get());\n campoFissoPrezzo = modAddebitoFisso.getCampo(Addebito.Cam.prezzo.get());\n\n /* campi del modulo Addebito (da scrivere) */\n campoConto = modAddebito.getCampo(Addebito.Cam.conto.get());\n campoListino = modAddebito.getCampo(Addebito.Cam.listino.get());\n campoQuantita = modAddebito.getCampo(Addebito.Cam.quantita.get());\n campoPrezzo = modAddebito.getCampo(Addebito.Cam.prezzo.get());\n campoData = modAddebito.getCampo(Addebito.Cam.data.get());\n\n }// fine del blocco if\n\n /* legge i dati dal record di addebito fisso */\n if (continua) {\n codConto = dati.getIntAt(campoFissoConto);\n codListino = dati.getIntAt(campoFissoListino);\n quantita = dati.getIntAt(campoFissoQuantita);\n prezzo = (Double)dati.getValueAt(0, campoFissoPrezzo);\n dati.close();\n }// fine del blocco if\n\n /* crea un nuovo record in addebito */\n if (continua) {\n campi = new ArrayList<CampoValore>();\n campi.add(new CampoValore(campoConto, codConto));\n campi.add(new CampoValore(campoListino, codListino));\n campi.add(new CampoValore(campoQuantita, quantita));\n campi.add(new CampoValore(campoPrezzo, prezzo));\n campi.add(new CampoValore(campoData, data));\n nuovoRecord = modAddebito.query().nuovoRecord(campi);\n continua = nuovoRecord > 0;\n }// fine del blocco if\n\n /* aggiorna la data di sincronizzazione in addebito fisso */\n if (continua) {\n this.getModulo().query().registraRecordValore(cod, Cam.dataSincro.get(), data);\n }// fine del blocco if\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return nuovoRecord;\n }", "public static ParseQuery consultarNotasDeHoy(){\n\n ParseQuery queryNotasHoy = new ParseQuery(\"Todo\");\n\n Calendar cal = getFechaHoy();\n\n cal.set(Calendar.HOUR, 0);\n cal.set(Calendar.MINUTE,0);\n cal.set(Calendar.SECOND,0);\n\n Date min = cal.getTime();\n\n cal.set(Calendar.HOUR, 23);\n cal.set(Calendar.MINUTE,59);\n cal.set(Calendar.SECOND,59);\n\n Date max= cal.getTime();\n\n queryNotasHoy.whereGreaterThanOrEqualTo(\"Fecha\", min);\n queryNotasHoy.whereLessThan(\"Fecha\", max);\n\n return queryNotasHoy;\n }", "public void run() {\r\n\t\tDate fechaActual = new Date();\r\n\t\ttry {\r\n\t\t\t// Actual\r\n\t\t\tint horaActual = Integer.parseInt(ManipulacionFechas\r\n\t\t\t\t\t.getHora(fechaActual));\r\n\t\t\tint minutosActual = Integer.parseInt(ManipulacionFechas\r\n\t\t\t\t\t.getMinutos(fechaActual));\r\n\r\n\t\t\tint horaInicialRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"HORA_INICIAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\t\t\tint minutosInicialRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"MINUTOS_INICIAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\r\n\t\t\tint horaFinalRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"HORA_FINAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\t\t\tint minutosFinalRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"MINUTOS_FINAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\r\n\t\t\t// Tiempo Actual en Minutos\r\n\t\t\tint tiempoActual = (horaActual * 60) + minutosActual;\r\n\r\n\t\t\t// Tiempos de Rango de Ejecucion en Minutos\r\n\t\t\tint rangoInicial = (horaInicialRangoEjecucion * 60)\r\n\t\t\t\t\t+ minutosInicialRangoEjecucion;\r\n\t\t\tint rangoFinal = (horaFinalRangoEjecucion * 60)\r\n\t\t\t\t\t+ minutosFinalRangoEjecucion;\r\n\r\n\t\t\t// Pregunta si la hora actual esta dentro del rango de ejecucion de\r\n\t\t\t// la tarea\r\n\t\t\tif ((tiempoActual >= rangoInicial) && (tiempoActual <= rangoFinal)) {\r\n\t\t\t\tDate start = new Date();\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Corriendo proceso automatico Cobro de Ciat Casa Ciat : \"\r\n\t\t\t\t\t\t\t\t+ start + \"----\");\r\n\t\t\t\tnew BillingAccountServiceImpl().CobroCiatCasaCiat();\r\n\r\n\t\t\t\tDate end = new Date();\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Termina proceso Envio de notificaciones automaticas Cobro de Ciat Casa Ciat \"\r\n\t\t\t\t\t\t\t\t+ start + \"----\");\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(end.getTime()\r\n\t\t\t\t\t\t\t\t- start.getTime()\r\n\t\t\t\t\t\t\t\t+ \" total milliseconds en realizar tarea automatica Cobro de Ciat Casa Ciat : \");\r\n\r\n\t\t\t}// Fin if\r\n\t\t\telse {\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Tarea Automatica de notificacion Cobro de Ciat Casa Ciat en espera... \"\r\n\t\t\t\t\t\t\t\t+ new Date() + \" ----\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog\r\n\t\t\t\t\t.error(\"Error RUN Tarea Automatica de notificacion Cobro de Ciat Casa Ciat: \"\r\n\t\t\t\t\t\t\t+ e.getMessage());\r\n\t\t}\r\n\r\n\t\tfechaActual = null;\r\n\r\n\t}", "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 }", "static void Jogo (String nome, String Classe)\n {\n Scanner scan = new Scanner (System.in);\n \n int pontos = 0;\n int pontuador = 0;\n int erro = 0;\n\n int [] aleatorio; // cria um vetor para pegar a resposta da função de Gerar Perguntas Aleatórias \n aleatorio = GerarAleatorio(); // Pega a Reposta da função\n \n \n long start = System.currentTimeMillis(); // inicia o Cronometro do Jogo\n \n for (int i = 0; i < aleatorio.length; i++) // Para cada cada pergunta Aleatoria do tamanho total de perguntas(7) ele chama a pergunta montada e compara as respostas do usario \n { // com a função que tem todas as perguntas certas\n \n System.out.println((i + 1) + \") \" + MostrarPergunta (aleatorio[i])); //chama a função que monta a pergunta, passando o numero da pergunta (gerado aleatoriamente) \n \n String Certa = Correta(aleatorio[i]); // pega a resposta correta de acordo com o numero com o numero da pergunta\n \n System.out.println(\"Informe sua resposta: \\n\");\n String opcao = scan.next();\n \n if (opcao.equals(Certa)) // compara a resposta do usuario com a Resposta correta guardada na função \"Correta\"\n { // marca os pontos de acordo com a Classe escolhida pelo jogador \n pontuador++;\n if (Classe.equals(\"Pontuador\")) \n {\n pontos = pontos + 100;\n \n System.out.println(\"Parabens você acertou!: \" + pontos + \"\\n\");\n\n if(pontuador == 3)\n {\n pontos = pontos + 300;\n \n System.out.println(\"Parabens você acertou, e ganhou um Bonus de 300 pontos. Seus Pontos: \" + pontos + \"\\n\");\n \n pontuador = 0;\n }\n }\n else\n {\n pontos = pontos + 100;\n System.out.println(\"Parabens você acertou. Seus pontos: \" + pontos + \"\\n\");\n } \n }\n \n else if (opcao.equals(Certa) == false) \n {\n erro++;\n \n if (Classe.equals(\"Errar\")) \n {\n if(erro == 3)\n {\n pontos = pontos + 50;\n \n System.out.println(\"Infelizmente Você errou. Mas acomulou 3 erros e recebeu um bonus de 50 pontos: \" + pontos + \"\\n\");\n \n erro = 0;\n }\n }\n else\n {\n pontuador = 0;\n \n pontos = pontos - 100; \n System.out.println(\"Que pena vc errou, Seus pontos atuais: \" + pontos + \"\\n\");\n }\n }\n }\n \n long end = System.currentTimeMillis(); //Encerra o Cronometro do jogador\n \n tempo(start, end, nome, pontos, Classe); //manda para a função Tempo, para calcular os minutos e segundos do usuario \n \n }", "public java.sql.ResultSet consultapormedicohorafecha(String CodigoMedico,String hora,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pmd.codigo=\"+CodigoMedico+\" and phm.horas='\"+hora+\"' and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicohorafecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public Calculadora(){\n this.operador1 = 0.0;\n this.operador2 = 0.0;\n this.resultado = 0.0;\n }", "public java.sql.ResultSet consultaporhora(String hora){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where phm.horas='\"+hora+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporhora \"+ex);\r\n }\t\r\n return rs;\r\n }", "public static List<StronaWiersza> pobierzStronaWierszazBazy(StronaWiersza stronaWiersza, String wnma, StronaWierszaDAO stronaWierszaDAO, TransakcjaDAO transakcjaDAO) {\r\n List<StronaWiersza> listaStronaWierszazBazy =new ArrayList<>();\r\n// stare = pobiera tylko w walucie dokumentu rozliczeniowego \r\n// listaNowychRozrachunkow = stronaWierszaDAO.findStronaByKontoWnMaWaluta(stronaWiersza.getKonto(), stronaWiersza.getWiersz().getTabelanbp().getWaluta().getSymbolwaluty(), stronaWiersza.getWnma());\r\n// nowe pobiera wszystkie waluty \r\n listaStronaWierszazBazy = stronaWierszaDAO.findStronaByKontoWnMa(stronaWiersza.getKonto(), wnma);\r\n //stronaWierszaDAO.refresh(listaStronaWierszazBazy);\r\n if (listaStronaWierszazBazy != null && !listaStronaWierszazBazy.isEmpty()) {\r\n try {\r\n DateFormat formatter;\r\n formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n String datarozrachunku = null;\r\n if (stronaWiersza.getWiersz().getDataWalutyWiersza() != null) {\r\n datarozrachunku = stronaWiersza.getWiersz().getDokfk().getRok()+\"-\"+stronaWiersza.getWiersz().getDokfk().getMiesiac()+\"-\"+stronaWiersza.getWiersz().getDataWalutyWiersza();\r\n } else {\r\n datarozrachunku = stronaWiersza.getWiersz().getDokfk().getDatadokumentu();\r\n }\r\n Date dataR = formatter.parse(datarozrachunku);\r\n Iterator it = listaStronaWierszazBazy.iterator();\r\n while(it.hasNext()) {\r\n StronaWiersza stronaWierszaZbazy = (StronaWiersza) it.next();\r\n List<Transakcja> zachowaneTransakcje = transakcjaDAO.findByNowaTransakcja(stronaWierszaZbazy);\r\n for (Iterator<Transakcja> itx = stronaWierszaZbazy.getPlatnosci().iterator(); itx.hasNext();) {\r\n Transakcja transakcjazbazy = (Transakcja) itx.next();\r\n if (zachowaneTransakcje == null || zachowaneTransakcje.size() == 0) {\r\n itx.remove();\r\n } else if (!zachowaneTransakcje.contains(transakcjazbazy)) {\r\n itx.remove();\r\n }\r\n }\r\n for (Transakcja ta : zachowaneTransakcje) {\r\n if (!stronaWierszaZbazy.getPlatnosci().contains(ta)) {\r\n stronaWierszaZbazy.getPlatnosci().add(ta);\r\n }\r\n }\r\n if (Z.z(stronaWierszaZbazy.getPozostalo()) <= 0.0) {\r\n it.remove();\r\n } else {\r\n String dataplatnosci;\r\n if (stronaWierszaZbazy.getWiersz().getDataWalutyWiersza() != null) {\r\n dataplatnosci = stronaWierszaZbazy.getWiersz().getDokfk().getRok()+\"-\"+stronaWierszaZbazy.getWiersz().getDokfk().getMiesiac()+\"-\"+stronaWierszaZbazy.getWiersz().getDataWalutyWiersza();\r\n } else {\r\n dataplatnosci = stronaWierszaZbazy.getWiersz().getDokfk().getDatadokumentu();\r\n }\r\n Date dataP = formatter.parse(dataplatnosci);\r\n if (dataP.compareTo(dataR) > 0) {\r\n it.remove();\r\n }\r\n }\r\n }\r\n } catch (ParseException ex) {\r\n E.e(ex);\r\n }\r\n }\r\n List<StronaWiersza> stronywierszaBO = stronaWierszaDAO.findStronaByKontoWnMaBO(stronaWiersza.getKonto(), stronaWiersza.getWnma());\r\n if (stronywierszaBO != null && !stronywierszaBO.isEmpty()) {\r\n Iterator it = stronywierszaBO.iterator();\r\n while(it.hasNext()) {\r\n StronaWiersza p = (StronaWiersza) it.next();\r\n if (Z.z(p.getPozostalo()) <= 0.0) {\r\n it.remove();\r\n }\r\n }\r\n listaStronaWierszazBazy.addAll(stronywierszaBO);\r\n }\r\n if (listaStronaWierszazBazy == null) {\r\n return (new ArrayList<>());\r\n }\r\n return listaStronaWierszazBazy;\r\n //pobrano wiersze - a teraz z nich robie rozrachunki\r\n }", "private int contabilizaHorasNoLectivas(ArrayList<FichajeRecuentoBean> listaFichajesRecuento, ProfesorBean profesor, boolean guardar, int mes) {\r\n int segundos=0;\r\n for (FichajeRecuentoBean fichajeRecuento : listaFichajesRecuento) {\r\n// System.out.println(fichajeRecuento.getFecha()+\" \"+fichajeRecuento.getHoraEntrada()+\"->\"+fichajeRecuento.getHoraSalida()+\" => \"+UtilsContabilizar.dimeDuracion(fichajeRecuento.getHoraEntrada(),fichajeRecuento.getHoraSalida()));\r\n segundos+=UtilsContabilizar.dimeDuracion(fichajeRecuento.getHoraEntrada(),fichajeRecuento.getHoraSalida());\r\n \r\n DetalleInformeBean detalleInforme=new DetalleInformeBean();\r\n detalleInforme.setIdProfesor(profesor.getIdProfesor());\r\n detalleInforme.setTotalHoras(UtilsContabilizar.dimeDuracion(fichajeRecuento.getHoraEntrada(),fichajeRecuento.getHoraSalida()));\r\n detalleInforme.setFecha(fichajeRecuento.getFecha());\r\n detalleInforme.setHoraIni(fichajeRecuento.getHoraEntrada());\r\n detalleInforme.setHoraFin(fichajeRecuento.getHoraSalida());\r\n detalleInforme.setTipoHora(\"NL\");\r\n if(guardar && detalleInforme.getTotalHoras()>0)GestionDetallesInformesBD.guardaDetalleInforme(detalleInforme, \"contabilizaHorasNoLectivas\", mes);\r\n \r\n }\r\n return segundos;\r\n }", "public ArrayList<TicketDto> consultarVentasChance(String fecha, String moneda) {\n ArrayList<TicketDto> lista = new ArrayList();\n Connection con = null;\n try {\n con = Recurso.Conexion.getPool().getDataSource().getConnection();\n String sql = \"SELECT codigo,sum(vrl_apuesta) \"\n + \"FROM ticket\"\n + \" where \"\n + \" fecha='\" + fecha + \"' and moneda='\" + moneda + \"' group by codigo\";\n\n PreparedStatement str;\n str = con.prepareStatement(sql);\n ResultSet rs = str.executeQuery();\n\n while (rs.next()) {\n TicketDto dto = new TicketDto();\n dto.setCodigo(rs.getString(1));\n dto.setValor(rs.getInt(2));\n dto.setMoneda(moneda);\n lista.add(dto);\n }\n str.close();\n rs.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n } finally {\n if (con != null) {\n try {\n con.close();\n } catch (SQLException ex) {\n Logger.getLogger(GestorPremio.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return lista;\n }\n }", "private void atualizaHistoricoPulaPula(HashMap infoAssinante, Date datExecucao, Connection con)\n\t\tthrows SQLException\n\t{\n\t\tString idtMsisdn = (String)infoAssinante.get(\"IDT_MSISDN\");\n\t\tInteger idtPromocao = (Integer)infoAssinante.get(\"IDT_PROMOCAO\");\n\t\tInteger idtCodigoRetorno = (Integer)infoAssinante.get(\"IDT_CODIGO_RETORNO\");\n\t\tString desStatusExecucao = (idtCodigoRetorno.intValue() == RET_ERRO_TECNICO) ? \"ERRO\" : \"SUCESSO\";\n\t\tDouble vlrAjuste = (Double)infoAssinante.get(\"VLR_AJUSTE\");\n\t\t\n\t\tPreparedStatement prepInsert = null;\n\t\tString sqlInsert = \"INSERT INTO TBL_GER_HISTORICO_PULA_PULA \" +\n\t\t\t\t\t\t \" (IDT_MSISDN, IDT_PROMOCAO, DAT_EXECUCAO, DES_STATUS_EXECUCAO, \" +\n\t\t\t\t\t\t \" IDT_CODIGO_RETORNO, VLR_CREDITO_BONUS) \" +\n\t\t\t\t\t\t \"VALUES \" +\n\t\t\t\t\t\t \" (?, ?, ?, ?, ?, ?)\";\n\n\t\t//Executando o Insert\n\t\ttry\n\t\t{\n\t\t\tprepInsert = con.prepareStatement(sqlInsert);\n\t\t\tprepInsert.setString(1, idtMsisdn);\n\t\t\tprepInsert.setInt(2, idtPromocao.intValue());\n\t\t\tprepInsert.setDate(3, new java.sql.Date(datExecucao.getTime()));\n\t\t\tprepInsert.setString(4, desStatusExecucao);\n\t\t\tprepInsert.setString(5, (new DecimalFormat(\"0000\")).format(idtCodigoRetorno.intValue()));\n\t\t\tprepInsert.setDouble(6, (vlrAjuste == null) ? 0.0 : vlrAjuste.doubleValue());\n\t\t\tprepInsert.executeUpdate();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tlog(\"Exception : MSISDN: \" + idtMsisdn + \" : \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif(prepInsert != null) prepInsert.close();\n\t\t\tprepInsert = null;\n\t\t}\n\t}", "public List<Map<String, Object>> Listar_Cumplea˝os(String mes,\r\n String dia, String aps, String dep, String are,\r\n String sec, String pue, String fec, String edad,\r\n String ape, String mat, String nom, String tip, String num) {\r\n sql = \"SELECT * FROM RHVD_FILTRO_CUMPL_TRAB \";\r\n sql += (!aps.equals(\"\")) ? \"Where UPPER(CO_APS)='\" + aps.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!dep.equals(\"\")) ? \"Where UPPER(DEPARTAMENTO)='\" + dep.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!are.equals(\"\")) ? \"Where UPPER(AREA)='\" + are.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!sec.equals(\"\")) ? \"Where UPPER(SECCION)='\" + sec.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!pue.equals(\"\")) ? \"Where UPPER(PUESTO)='\" + pue.trim().toUpperCase() + \"'\" : \"\";\r\n //sql += (!fec.equals(\"\")) ? \"Where FECHA_NAC='\" + fec.trim() + \"'\" : \"\"; \r\n sql += (!edad.equals(\"\")) ? \"Where EDAD='\" + edad.trim() + \"'\" : \"\";\r\n sql += (!ape.equals(\"\")) ? \"Where UPPER(AP_PATERNO)='\" + ape.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!mat.equals(\"\")) ? \"Where UPPER(AP_MATERNO)='\" + mat.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!nom.equals(\"\")) ? \"Where UPPER(NO_TRABAJADOR)='\" + nom.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!tip.equals(\"\")) ? \"Where UPPER(TIPO)='\" + tip.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!num.equals(\"\")) ? \"Where NU_DOC='\" + num.trim() + \"'\" : \"\";\r\n //buscar por rango de mes de cumplea├▒os*/\r\n\r\n sql += (!mes.equals(\"\") & !mes.equals(\"13\")) ? \"where mes='\" + mes.trim() + \"' \" : \"\";\r\n sql += (!mes.equals(\"\") & mes.equals(\"13\")) ? \"\" : \"\";\r\n sql += (!dia.equals(\"\")) ? \"and dia='\" + dia.trim() + \"'\" : \"\";\r\n return jt.queryForList(sql);\r\n }", "public static void main(String [] args){//inicio del main\r\n\r\n Scanner sc= new Scanner(System.in); \r\n\r\nSystem.out.println(\"ingrese los segundos \");//mesaje\r\nint num=sc.nextInt();//total de segundos\r\nint hor=num/3600;//total de horas en los segundos\r\nint min=(num-(3600*hor))/60;//total de min en las horas restantes\r\nint seg=num-((hor*3600)+(min*60));//total de segundo sen los miniutos restantes\r\nSystem.out.println(\"Horas: \" + hor + \" Minutos: \" + min + \" Segundos: \" + seg);//salida del tiempo\r\n\r\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 List<Prenotazione> getAllReservations(QueryParamsMap queryParamsMap) {\n final String sql = \"SELECT id, data_p , ora_inizio, ora_fine, clienti, ufficio_id, utente_id FROM prenotazioni\";\n\n List<Prenotazione> reservations = new LinkedList<>();\n\n try {\n Connection conn = DBConnect.getInstance().getConnection();\n PreparedStatement st = conn.prepareStatement(sql);\n\n ResultSet rs = st.executeQuery();\n\n Prenotazione old = null;\n while(rs.next()) {\n if(old == null){\n old = new Prenotazione(rs.getInt(\"id\"), rs.getString(\"data_p\"), rs.getInt(\"ora_inizio\"), rs.getInt(\"ora_fine\"), rs.getInt(\"clienti\"), rs.getInt(\"ufficio_id\"), rs.getString(\"utente_id\"));\n }\n else if(old.getFinalHour() == rs.getInt(\"ora_fine\") && old.getDate().equals(rs.getString(\"data_p\")) && old.getOfficeId() == rs.getInt(\"ufficio_id\") && old.getUserId() == rs.getString(\"utente_id\"))\n old = new Prenotazione(old.getId(), old.getDate(), old.getStartHour(), rs.getInt(\"ora_fine\"), old.getClients() + rs.getInt(\"clienti\"), old.getOfficeId(), old.getUserId());\n else {\n reservations.add(old);\n Prenotazione t = new Prenotazione(rs.getInt(\"id\"), rs.getString(\"data_p\"), rs.getInt(\"ora_inizio\"), rs.getInt(\"ora_fine\"), rs.getInt(\"clienti\"), rs.getInt(\"ufficio_id\"), rs.getString(\"utente_id\"));\n reservations.add(t);\n }\n }\n\n conn.close();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return reservations;\n }", "public java.sql.ResultSet consultapormedicohora(String CodigoMedico,String hora){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pmd.codigo=\"+CodigoMedico+\" and phm.horas='\"+hora+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas \");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicohora \"+ex);\r\n }\t\r\n return rs;\r\n }", "private void insertData() \n {\n for (int i = 0; i < 3; i++) {\n TarjetaPrepagoEntity entity = factory.manufacturePojo(TarjetaPrepagoEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n for(int i = 0; i < 3; i++)\n {\n PagoEntity pagos = factory.manufacturePojo(PagoEntity.class);\n em.persist(pagos);\n pagosData.add(pagos);\n\n }\n \n data.get(2).setSaldo(0.0);\n data.get(2).setPuntos(0.0);\n \n double valor = (Math.random()+1) *100;\n data.get(0).setSaldo(valor);\n data.get(0).setPuntos(valor); \n data.get(1).setSaldo(valor);\n data.get(1).setPuntos(valor);\n \n }", "public Socio getSocioInfoAtualizar() {\n\n ArrayList<Socio> listaSocio = new ArrayList<Socio>();\n // iniciando a conexao\n connection = BancoDados.getInstance().getConnection();\n System.out.println(\"conectado e preparando listagem para pegar Socio\"); \n Statement stmt = null;\n\n\n try {\n stmt = connection.createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT * FROM alterados\");\n\n // Incluindo Socios na listaSocios que vai ser retornada\n while (rs.next()) {\n Socio socio = new Socio (rs.getString(\"nomeSocio\"),rs.getString(\"cpfSocio\"),rs.getString(\"rgSocio\"),\n rs.getString(\"matSocio\"),rs.getString(\"sexoSocio\"),rs.getString(\"diaNascSocio\"),\n rs.getString(\"mesNascSocio\"),rs.getString(\"anoNascSocio\"),rs.getString(\"enderecoSocio\"),\n rs.getString(\"numEndSocio\"),rs.getString(\"bairroSocio\"),rs.getString(\"cidadeSocio\"),\n rs.getString(\"estadoSocio\"),rs.getString(\"foneSocio\"),rs.getString(\"celSocio\"),\n rs.getString(\"emailSocio\"),rs.getString(\"blocoSocio\"), rs.getString(\"funcaoSocio\"),rs.getInt(\"idSocio\"), rs.getInt(\"idSocioPK\"));\n listaSocio.add(socio);\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n\n } finally {\n // este bloco finally sempre executa na instrução try para\n // fechar a conexão a cada conexão aberta\n try {\n stmt.close();\n connection.close();\n } catch (SQLException e) {\n System.out.println(\"Erro ao desconectar\" + e.getMessage());\n }\n }\n\n \n Socio socioMax = new Socio();\n\n socioMax = listaSocio.get(0);\n\n //Se houver mais de um socio na lista vai procurar o de maior ID\n if(listaSocio.size()-1 > 0){\n\n for(int i=0; i<= listaSocio.size()-1; i++){\n\n Socio socio = new Socio();\n socio = listaSocio.get(i);\n\n if(socio.getIdAlterado()>= socioMax.getIdAlterado() ){\n socioMax = socio;\n }\n\n }\n\n }\n //Se não pega o primeiro\n else {\n socioMax = listaSocio.get(0);\n \n }\n\n System.out.println(socioMax.getIdAlterado());\n\n //Retorna o socio de maior ID, logo o ultimo inserido.\n return socioMax;\n }", "public List<VentaDet> generar(Periodo mes){\n\t\tString sql=ReplicationUtils.resolveSQL(mes,\"ALMACE\",\"ALMFECHA\")+\" AND ALMTIPO=\\'FAC\\' ORDER BY ALMSUCUR,ALMNUMER,ALMSERIE\";\r\n\t\tVentasDetMapper mapper=new VentasDetMapper();\r\n\t\tmapper.setBeanClass(getBeanClass());\r\n\t\tmapper.setOrigen(\"ALMACE\");\r\n\t\tmapper.setPropertyColumnMap(getPropertyColumnMap());\r\n\t\tList<VentaDet> rows=getFactory().getJdbcTemplate(mes).query(sql,mapper);\r\n\t\tlogger.info(\"VentaDet obtenidas : \"+rows.size());\r\n\t\treturn rows;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n public void consultarCoactivosXLS() throws CirculemosNegocioException {\n\n // consulta la tabla temporal de los 6000 coactivos\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"select [TIPO DOC], [NUMERO DE IDENTIFICACIÓN], [valor multas], [titulo valor], proceso \");\n sql.append(\"from coactivos_xls \");\n sql.append(\"where id_tramite is null and numero_axis is null AND archivo is not null \");\n sql.append(\"AND [titulo valor] IN ('2186721','2187250','2187580','2186845')\");\n\n Query query = em.createNativeQuery(sql.toString());\n\n List<Object[]> listaResultados = Utilidades.safeList(query.getResultList());\n\n Date fechaCoactivo = UtilFecha.buildCalendar().getTime();\n CoactivoDTO coactivoDTOs;\n TipoIdentificacionPersonaDTO tipoIdentificacion;\n List<ObligacionCoactivoDTO> obligacionesCoactivoDTO;\n PersonaDTO personaDTO;\n ProcesoDTO proceso;\n // persiste los resultados en coactivoDTO\n for (Object[] coactivo : listaResultados) {\n coactivoDTOs = new CoactivoDTO();\n // persiste el tipo de indetificacion en TipoIdentificacionPersonaDTO\n personaDTO = new PersonaDTO();\n proceso = new ProcesoDTO();\n tipoIdentificacion = new TipoIdentificacionPersonaDTO();\n obligacionesCoactivoDTO = new ArrayList<>();\n\n tipoIdentificacion.setCodigo((String) coactivo[0]);\n personaDTO.setTipoIdentificacion(tipoIdentificacion);\n coactivoDTOs.setPersona(personaDTO);\n coactivoDTOs.getPersona().setNumeroIdentificacion((String) coactivo[1]);\n\n proceso.setFechaInicio(fechaCoactivo);\n coactivoDTOs.setProceso(proceso);\n coactivoDTOs.setValorTotalObligaciones(BigDecimal\n .valueOf(Double.valueOf(coactivo[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n coactivoDTOs.setValorTotalCostasProcesales(\n coactivoDTOs.getValorTotalObligaciones().multiply(BigDecimal.valueOf(0.05)));\n coactivoDTOs.getProceso().setObservacion(\"COACTIVO\");\n String[] numeroFactura = coactivo[3].toString().split(\",\");\n // separa los numeros de factura cuando viene mas de uno.\n for (String nFactura : numeroFactura) {\n // consulta por numero de factura el el saldo a capital por cada factura\n sql = new StringBuilder();\n sql.append(\"select nombre, saldo_capital, saldo_interes \");\n sql.append(\"from cartera_coactivos_xls \");\n sql.append(\"where nombre = :nFactura\");\n\n Query quer = em.createNativeQuery(sql.toString());\n\n quer.setParameter(\"nFactura\", nFactura);\n\n List<Object[]> result = Utilidades.safeList(quer.getResultList());\n // persiste las obligaciones consultadas y las inserta en ObligacionCoactivoDTO\n ObligacionCoactivoDTO obligaciones;\n for (Object[] obligacion : result) {\n obligaciones = new ObligacionCoactivoDTO();\n obligaciones.setNumeroObligacion((String) obligacion[0]);\n obligaciones.setValorObligacion(BigDecimal.valueOf(\n Double.valueOf(obligacion[1].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n obligaciones.setValorInteresMoratorios(BigDecimal.valueOf(\n Double.valueOf(obligacion[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n // Adiciona las obligaciones a una lista\n obligacionesCoactivoDTO.add(obligaciones);\n }\n\n }\n coactivoDTOs.setObligacionCoactivos(obligacionesCoactivoDTO);\n try {\n iLCoactivo.registrarCoactivoAxis(coactivoDTOs, coactivo[4].toString());\n } catch (Exception e) {\n logger.error(\"Error al registrar coactivo 6000 :\", e);\n }\n }\n }", "public List<ReceiverEntity> obtenerReceiversHora(){\r\n System.out.println(\"Se ejecuta cvapa logica\");\r\n List<ReceiverEntity> receivers = persistence.findByHour();\r\n return receivers;\r\n }", "public Data() {\n\t\tCalendar now = new GregorianCalendar();\n\t\tthis.anno = now.get(Calendar.YEAR);\n\t\tthis.giorno = now.get(Calendar.DAY_OF_MONTH);\n\t\tthis.mese = Data.MESI[now.get(Calendar.MONTH)];\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(System.currentTimeMillis()); // Quantos Milisegundos desde data 01/01/1970\n\t\t\n\t\t// Data Atual\n\t\tDate agora = new Date();\n\t\tSystem.out.println(\"Data Atual: \"+agora);\n\t\t\n\t\tDate data = new Date(1_000_000_000_000L);\n\t\tSystem.out.println(\"Data com 1.000.000.000.000ms: \"+data);\n\t\t\n\t\t// METODOS\n\t\tdata.getTime();\n\t\tdata.setTime(1_000_000_000_000L);\n\t\tSystem.out.println(data.compareTo(agora)); // -1 para anterior, 0 para igual, +1 para posterior\n\t\t\n\t\t// GregorianCalendar\n\t\tCalendar c = Calendar.getInstance();\n\t\tc.set(1980, Calendar.FEBRUARY, 12);\n\t\tSystem.out.println(c.getTime());\n\t\tSystem.out.println(c.get(Calendar.YEAR)); // Ano\n\t\tSystem.out.println(c.get(Calendar.MONTH)); // Mes 0 - 11\n\t\tSystem.out.println(c.get(Calendar.DAY_OF_MONTH)); // Dia do mes\n\t\t\n\t\tc.set(Calendar.YEAR,2016); // Altera o Ano\n\t\tc.set(Calendar.MONTH, 10); // Altera o Mes 0 - 11\n\t\tc.set(Calendar.DAY_OF_MONTH, 24); // Altera o Dia do mes\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.clear(Calendar.MINUTE); // limpa minutos\n\t\tc.clear(Calendar.SECOND); // limpa segundos\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.add(Calendar.DAY_OF_MONTH,1); // adiciona dias (avança o mes e ano)\n\t\tc.add(Calendar.YEAR,1); // adiciona o ano \n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.roll(Calendar.DAY_OF_MONTH,20); // adiciona dias (não avança o mes e ano)\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\t// Saudação com Bom dia, Boa arde ou Boa noite\n\t\tCalendar c1 = Calendar.getInstance();\n\t\tint hora = c1.get(Calendar.HOUR_OF_DAY);\n\t\tSystem.out.println(hora);\n\t\tif(hora <= 12){\n\t\t\tSystem.out.println(\"Bom Dia\");\n\t\t} else if(hora > 12 && hora < 18){\n\t\t\tSystem.out.println(\"Boa Tarde\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Boa Noite\");\n\t\t}\n\t\t\n\n\t}", "public Collection cargarMasivo(int codigoCiclo, String proceso, String subproceso, int periodo) {\n/* 287 */ Collection resultados = new ArrayList();\n/* */ try {\n/* 289 */ String s = \"select m.Codigo_Ciclo, m.Codigo_Plan, m.Codigo_Meta, m.Codigo_Objetivo, u.Descripcion Nombre_Area, Um.Descripcion as Nombre_Unidad_Medida, to_char(m.Codigo_Objetivo,'9999999999') ||' - ' || o.Descripcion Nombre_Objetivo, to_char(m.Codigo_Meta,'9999999999') ||' - ' || m.Descripcion Nombre_Meta, m.Unidad_Medida, m.Valor_Minimo, m.Valor_Maximo, l.Valor_Logro, case when l.Valor_Logro is not null then 'A' else 'N' end Existe from Cal_Planes p, Cal_Plan_Objetivos o, Cal_Plan_Metas m left join Cal_Logros l on( m.Codigo_Ciclo = l.Codigo_Ciclo and m.Codigo_Plan = l.Codigo_Plan and m.Codigo_Meta = l.Codigo_Meta and m.Codigo_Objetivo = l.Codigo_Objetivo and \" + periodo + \" = l.Periodo),\" + \" Unidades_Dependencia u,\" + \" Sis_Multivalores Um\" + \" where p.Ciclo = o.Codigo_Ciclo\" + \" and p.Codigo_Plan = o.Codigo_Plan\" + \" and o.Codigo_Ciclo = m.Codigo_Ciclo\" + \" and o.Codigo_Plan = m.Codigo_Plan\" + \" and o.Codigo_Objetivo = m.Codigo_Objetivo\" + \" and p.Codigo_Area = u.Codigo\" + \" and m.Unidad_Medida = Um.Valor\" + \" and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META'\" + \" and o.Proceso = '\" + proceso + \"'\" + \" and o.Subproceso = '\" + subproceso + \"'\" + \" and p.Ciclo = \" + codigoCiclo + \" and m.Estado = 'A'\" + \" and o.Estado = 'A'\" + \" and o.Tipo_Objetivo in ('G', 'M')\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 333 */ if (periodo == 1) {\n/* 334 */ s = s + \" and m.mes01='S'\";\n/* */ }\n/* 336 */ else if (periodo == 2) {\n/* 337 */ s = s + \" and m.mes02='S'\";\n/* */ }\n/* 339 */ else if (periodo == 3) {\n/* 340 */ s = s + \" and m.mes03='S'\";\n/* */ }\n/* 342 */ else if (periodo == 4) {\n/* 343 */ s = s + \" and m.mes04='S'\";\n/* */ }\n/* 345 */ else if (periodo == 5) {\n/* 346 */ s = s + \" and m.mes05='S'\";\n/* */ }\n/* 348 */ else if (periodo == 6) {\n/* 349 */ s = s + \" and m.mes06='S'\";\n/* */ }\n/* 351 */ else if (periodo == 7) {\n/* 352 */ s = s + \" and m.mes07='S'\";\n/* */ }\n/* 354 */ else if (periodo == 8) {\n/* 355 */ s = s + \" and m.mes08='S'\";\n/* */ }\n/* 357 */ else if (periodo == 9) {\n/* 358 */ s = s + \" and m.mes09='S'\";\n/* */ }\n/* 360 */ else if (periodo == 10) {\n/* 361 */ s = s + \" and m.mes10='S'\";\n/* */ }\n/* 363 */ else if (periodo == 11) {\n/* 364 */ s = s + \" and m.mes11='S'\";\n/* */ }\n/* 366 */ else if (periodo == 12) {\n/* 367 */ s = s + \" and m.mes12='S'\";\n/* */ } \n/* */ \n/* 370 */ s = s + \" order by m.Codigo_Ciclo, m.Codigo_Objetivo, m.Codigo_Meta, u.Descripcion\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 377 */ boolean rtaDB = this.dat.parseSql(s);\n/* 378 */ if (!rtaDB) {\n/* 379 */ return resultados;\n/* */ }\n/* */ \n/* 382 */ this.rs = this.dat.getResultSet();\n/* 383 */ while (this.rs.next()) {\n/* 384 */ CalMetasDTO reg = new CalMetasDTO();\n/* 385 */ reg.setCodigoCiclo(codigoCiclo);\n/* 386 */ reg.setCodigoPlan(this.rs.getInt(\"codigo_plan\"));\n/* 387 */ reg.setCodigoMeta(this.rs.getInt(\"codigo_meta\"));\n/* 388 */ reg.setCodigoObjetivo(this.rs.getInt(\"codigo_objetivo\"));\n/* 389 */ reg.setNombreArea(this.rs.getString(\"Nombre_Area\"));\n/* 390 */ reg.setNombreMeta(this.rs.getString(\"Nombre_meta\"));\n/* 391 */ reg.setNombreObjetivo(this.rs.getString(\"Nombre_Objetivo\"));\n/* 392 */ reg.setUnidadMedida(this.rs.getString(\"unidad_medida\"));\n/* 393 */ reg.setValorMinimo(this.rs.getDouble(\"valor_minimo\"));\n/* 394 */ reg.setValorMaximo(this.rs.getDouble(\"valor_maximo\"));\n/* 395 */ reg.setValorLogro(this.rs.getDouble(\"Valor_Logro\"));\n/* 396 */ reg.setNombreUnidadMedida(this.rs.getString(\"nombre_unidad_medida\"));\n/* 397 */ reg.setEstado(this.rs.getString(\"existe\"));\n/* 398 */ resultados.add(reg);\n/* */ }\n/* */ \n/* 401 */ } catch (Exception e) {\n/* 402 */ e.printStackTrace();\n/* 403 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarTodos \", e);\n/* */ } \n/* 405 */ return resultados;\n/* */ }", "public static void main(String[] args) throws ParseException {\t\t\n\t int mes, ano, diaDaSemana, primeiroDiaDoMes, numeroDeSemana = 1;\n\t Date data;\n\t \n\t //Converter texto em data e data em texto\n\t SimpleDateFormat sdf\t = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t //Prover o calendario\n\t GregorianCalendar gc\t = new GregorianCalendar();\n\t \n\t String mesesCalendario[] = new String[12];\n\t\tString mesesNome[]\t\t = {\"Janeiro\", \"Fevereiro\", \"Marco\", \"Abri\", \"Maio\", \"Junho\", \"Julho\", \"Agosto\", \"Setembro\", \"Outubro\", \"Novembro\", \"Dezembro\"};\n\t\tint mesesDia[]\t\t\t = {31,28,31,30,31,30,31,31,30,31,30,31};\n\t\t\n\t\t//Errado? e pra receber apenas o \"dia da semana\" do \"primeiro dia do mes\" na questao\n\t //Recebendo mes e ano\n\t mes = Entrada.Int(\"Digite o mes:\", \"Entrada de dados\");\n\t ano = Entrada.Int(\"Digite o ano:\", \"Entrada de dados\");\n\t \n\t //Errado? e pra ser o dia inicial do mes na questao\n\t // Dia inicial do ano\n data = sdf.parse(\"01/01/\" + ano);\n gc.setTime(data);\n diaDaSemana = gc.get(GregorianCalendar.DAY_OF_WEEK);\n \n //Nao sei se e necessario por causa da questao\n //*Alteracao feita||| Ano bissexto tem +1 dia em fevereiro\n if(ano % 4 == 0) {\n \tmesesDia[1] = 29;\n \tmesesNome[1] = \"Ano Bissexto - Fevereiro\";\n }\n \n \n //Meses \n for(int mesAtual = 0; mesAtual < 12; mesAtual++) {\n\t int diasDoMes\t= 0;\n\t String nomeMesAtual = \"\";\n\n\n\t nomeMesAtual = mesesNome[mesAtual]; \n diasDoMes\t = mesesDia[mesAtual]; \n\n\n mesesCalendario[mesAtual] = \"\\n \" + nomeMesAtual + \" de \" + ano + \"\\n\";\n mesesCalendario[mesAtual] += \"---------------------------------------------------------------------|\\n\";\n mesesCalendario[mesAtual] += \" Dom Seg Ter Qua Qui Sex Sab | Semanas\\n\";\n mesesCalendario[mesAtual] += \"---------------------------------------------------------------------|\\n \";\n\t\n\t \n\t // Primeira semana comeca em\n\t data = sdf.parse( \"01/\" + (mesAtual+1) + \"/\" + ano );\n gc.setTime(data);\n primeiroDiaDoMes = gc.get(GregorianCalendar.DAY_OF_WEEK);\n\t for (int space = 1; space < primeiroDiaDoMes; space++) {\n\t \tmesesCalendario[mesAtual] += \" \";\n\t }\n\t \n\t //Dias\t \n\t for (int diaAtual = 1; diaAtual <= diasDoMes; diaAtual++)\n\t {\n\t \t// Trata espaco do dia\n\t \t\t//Transforma o diaAtuel em String\n\t String diaTratado = Integer.toString(diaAtual);\n\t if (diaTratado.length() == 1)\n\t \tdiaTratado = \" \" + diaAtual + \" \";\n\t else\n\t \tdiaTratado = \" \" + diaAtual + \" \";\n\t \n\t // dia\n\t mesesCalendario[mesAtual] += diaTratado;\n\t \t\n\t \t// Pula Linha no final da semana\n\t data = sdf.parse( diaAtual + \"/\" + (mesAtual+1) + \"/\" + ano );\n\t gc.setTime(data);\n\t diaDaSemana = gc.get(GregorianCalendar.DAY_OF_WEEK);\n\t if (diaDaSemana == 7) {\n\t \tmesesCalendario[mesAtual] += (\"| \" + numeroDeSemana++);\n\t \tmesesCalendario[mesAtual] += \"\\n |\";\n\t \tmesesCalendario[mesAtual] += \"\\n \";\n\t }\n\t }\n\t mesesCalendario[mesAtual] += \"\\n\\n\\n\\n\";\n\t }\n\t \n //Imprime mes desejado\n\t System.out.println(mesesCalendario[mes-1]);\n\n\t}", "private boolean crearRecurso(int codigoCiclo, int codigoPlan, int codigoMeta, int codigoRecurso, String estado, String usuarioInsercion) {\n/* */ try {\n/* 513 */ String s = \"select estado from cal_plan_recursos_meta r where r.codigo_ciclo=\" + codigoCiclo + \" and r.codigo_plan=\" + codigoPlan + \" and r.codigo_meta=\" + codigoMeta + \" and r.codigo_recurso=\" + codigoRecurso;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 520 */ this.dat.parseSql(s);\n/* 521 */ this.rs = this.dat.getResultSet();\n/* 522 */ if (this.rs.next()) {\n/* 523 */ s = \"update cal_plan_recursos_meta set \";\n/* 524 */ s = s + \" estado='\" + estado + \"',\";\n/* 525 */ s = s + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \",\";\n/* 526 */ s = s + \" usuario_modificacion='\" + usuarioInsercion + \"'\";\n/* 527 */ s = s + \" where \";\n/* 528 */ s = s + \" codigo_ciclo=\" + codigoCiclo;\n/* 529 */ s = s + \" and codigo_plan=\" + codigoPlan;\n/* 530 */ s = s + \" and codigo_meta=\" + codigoMeta;\n/* 531 */ s = s + \" and codigo_recurso=\" + codigoRecurso;\n/* */ } else {\n/* */ \n/* 534 */ s = \"insert into cal_plan_recursos_meta (codigo_ciclo,codigo_plan,codigo_meta,codigo_recurso,estado,fecha_insercion,usuario_insercion) values (\" + codigoCiclo + \",\" + \"\" + codigoPlan + \",\" + \"\" + codigoMeta + \",\" + \"\" + codigoRecurso + \",\" + \"'\" + estado + \"',\" + Utilidades.getFechaBD() + \",\" + \"'\" + usuarioInsercion + \"'\" + \")\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 552 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 555 */ catch (Exception e) {\n/* 556 */ e.printStackTrace();\n/* 557 */ Utilidades.writeError(\"CalMetasDAO:crearRegistro\", e);\n/* */ \n/* 559 */ return false;\n/* */ } \n/* */ }", "private Hashtable obtenerHistoricosSolicitud(Long oidPais, Long oidSolicitud) throws MareException {\n UtilidadesLog.info(\"MONHistoricoDTO.obtenerHistoricosSolicitud() - entrada\"); \n BelcorpService belcorpService;\n StringBuffer query = new StringBuffer();\n RecordSet rsHistoricosActuales = null;\n Hashtable hashHistoricos = new Hashtable();\n String clave;\n try {\n belcorpService = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException serviceNotFoundException) {\n String codigoError = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(serviceNotFoundException,\n UtilidadesError.armarCodigoError(codigoError));\n }\n\n try {\n\t\t\tquery.append(\" SELECT \");\n query.append(\" OID_HIST_DTO, DCTO_OID_DESC, SOCA_OID_SOLI_CABE, IMP_FIJO, \");\n query.append(\" IMP_DESC_APLI, VAL_PORC_APLI, VAL_VENT_REAL, VAL_BASE_CALC, VAL_BASE_CALC_ACUM, \");\n query.append(\" MAFA_OID_MATR_FACT, CLIE_OID_CLIE \");\n\t\t\tquery.append(\" FROM \");\n query.append(\" DTO_HISTO_DTO \");\n\t\t\tquery.append(\" WHERE \");\n query.append(\" PAIS_OID_PAIS = ? AND SOCA_OID_SOLI_CABE = ? \");\n Vector parametros = new Vector();\n parametros.add(oidPais);\n parametros.add(oidSolicitud);\n rsHistoricosActuales = belcorpService.dbService.executePreparedQuery(query.toString(), parametros);\n } catch (Exception e) {\n throw new MareException(e,\n UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n\n for (int i=0; i<rsHistoricosActuales.getRowCount(); i++) {\n DTOHistoricoDescuento dtoHistoricoDescuento = new DTOHistoricoDescuento();\n dtoHistoricoDescuento.setOidHistoricoDescuento(new Long(((BigDecimal)rsHistoricosActuales.getValueAt(i,\"OID_HIST_DTO\")).toString()));\n dtoHistoricoDescuento.setOidDescuento(new Long(((BigDecimal)rsHistoricosActuales.getValueAt(i,\"DCTO_OID_DESC\")).toString()));\n dtoHistoricoDescuento.setOidSolicitud(new Long(((BigDecimal)rsHistoricosActuales.getValueAt(i,\"SOCA_OID_SOLI_CABE\")).toString()));\n dtoHistoricoDescuento.setImporteFijo((BigDecimal)rsHistoricosActuales.getValueAt(i,\"IMP_FIJO\"));\n dtoHistoricoDescuento.setImporteDescuentoAplicado((BigDecimal)rsHistoricosActuales.getValueAt(i,\"IMP_DESC_APLI\"));\n dtoHistoricoDescuento.setPorcentaje((BigDecimal)rsHistoricosActuales.getValueAt(i,\"VAL_PORC_APLI\"));\n dtoHistoricoDescuento.setImporteVentaReal((BigDecimal)rsHistoricosActuales.getValueAt(i,\"VAL_VENT_REAL\"));\n dtoHistoricoDescuento.setBaseCalculo((BigDecimal)rsHistoricosActuales.getValueAt(i,\"VAL_BASE_CALC\"));\n dtoHistoricoDescuento.setBaseCalculoAcumulada((BigDecimal)rsHistoricosActuales.getValueAt(i,\"VAL_BASE_CALC_ACUM\"));\n dtoHistoricoDescuento.setOidMatrizFacturacion(new Long(((BigDecimal)rsHistoricosActuales.getValueAt(i,\"MAFA_OID_MATR_FACT\")).toString()));\n dtoHistoricoDescuento.setOidCliente(new Long(((BigDecimal)rsHistoricosActuales.getValueAt(i,\"CLIE_OID_CLIE\")).toString()));\n clave = this.obtenerClaveHistorico(dtoHistoricoDescuento);\n hashHistoricos.put(clave, dtoHistoricoDescuento);\n }\n UtilidadesLog.info(\"MONHistoricoDTO.obtenerHistoricosSolicitud() - salida\"); \n return hashHistoricos;\n }", "public Double getTotalOliDOdeEnvasadoresEntreDates(Long temporadaId, Date dataInici, Date dataFi, Integer idAutorizada) throws InfrastructureException {\r\n\t\tlogger.debug(\"getTotalOliDOdeEnvasadoresEntreDates ini\");\r\n//\t\tCollection listaTrasllat = getEntradaTrasladosEntreDiasoTemporadas(temporadaId, dataInici, dataFi);\r\n\t\tCollection listaTrasllat = null;\r\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\tdouble litros = 0;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tString q = \"from Trasllat tdi where tdi.retornatEstablimentOrigen = true \";\r\n\t\t\tif(dataInici != null){\r\n\t\t\t\tString fi = df.format(dataInici);\r\n\t\t\t\tq = q+ \" and tdi.data >= '\"+fi+\"' \";\r\n\t\t\t}\r\n\t\t\tif(dataFi != null){\r\n\t\t\t\tString ff = df.format(dataFi);\r\n\t\t\t\tq = q+ \" and tdi.data <= '\"+ff+\"' \";\r\n\t\t\t}\r\n\t\t\tlistaTrasllat = getHibernateTemplate().find(q);\t\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tlogger.error(\"getTotalOliDOdeEnvasadoresEntreDates failed\", ex);\r\n\t\t\tthrow new InfrastructureException(ex);\r\n\t\t}\r\n\t\t\r\n\t\t//Para cada uno de lor registro Trasllat separamos los depositos y devolvemos un objeto rasllatDipositCommand\r\n\t\tif (listaTrasllat != null){\r\n\t\t\tfor(Iterator it=listaTrasllat.iterator();it.hasNext();){\r\n\t\t\t\tTrasllat trasllat = (Trasllat)it.next();\r\n\t\t\t\tif(trasllat.getDiposits()!= null){\r\n\t\t\t\t\tfor(Iterator itDip=trasllat.getDiposits().iterator();itDip.hasNext();){\r\n\t\t\t\t\t\tDiposit diposit = (Diposit)itDip.next();\r\n\t\t\t\t\t\tif(idAutorizada!= null && diposit.getPartidaOli() != null && diposit.getPartidaOli().getCategoriaOli() !=null && diposit.getPartidaOli().getCategoriaOli()!= null){\r\n\t\t\t\t\t\t\tif(diposit.getPartidaOli().getCategoriaOli().getId().intValue() == idAutorizada.intValue() && diposit.getVolumActual()!= null){\r\n\t\t\t\t\t\t\t\tlitros+= diposit.getVolumActual().doubleValue();\r\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tlogger.debug(\"getTotalOliDOdeEnvasadoresEntreDates fin\");\r\n\t\treturn Double.valueOf(String.valueOf(litros));\r\n\t}", "@Test\n\tvoid calcularSalarioConMasCuarentaHorasPagoPositivoTest() {\n\t\tEmpleadoPorComision empleadoPorComision = new EmpleadoPorComision(\"Eiichiro oda\", \"p33\", 400000, 500000);\n\t\tdouble salarioEsperado = 425000;\n\t\tdouble salarioEmpleadoPorComision = empleadoPorComision.calcularSalario();\n\t\tassertEquals(salarioEsperado, salarioEmpleadoPorComision);\n\n\t}", "public Fecha () {\n\t\tthis.ahora = Calendar.getInstance();\n\t\tahora.set(2018, 3, 1, 15, 15, 0);\t \n\t\taño = ahora.get(Calendar.YEAR);\n\t\tmes = ahora.get(Calendar.MONTH) + 1; // 1 (ENERO) y 12 (DICIEMBRE)\n\t\tdia = ahora.get(Calendar.DAY_OF_MONTH);\n\t\thr_12 = ahora.get(Calendar.HOUR);\n\t\thr_24 = ahora.get(Calendar.HOUR_OF_DAY);\n\t\tmin = ahora.get(Calendar.MINUTE);\n\t\tseg = ahora.get(Calendar.SECOND);\n\t\tam_pm = v_am_pm[ahora.get(Calendar.AM_PM)]; //ahora.get(Calendar.AM_PM)=> 0 (AM) y 1 (PM)\n\t\tmes_nombre = v_mes_nombre[ahora.get(Calendar.MONTH)];\n\t\tdia_nombre = v_dia_nombre[ahora.get(Calendar.DAY_OF_WEEK) - 1];\n\n\t}", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "@Override\npublic JsonArray queryStatistics(String date, Employee em) throws Exception {\n\tint [] montharr= {31,28,31,30,31,30,31,31,30,31,30,31};\n\tSystem.out.println(date);\n\tint year;\n\tint month;\n\tif(date.length()==0){\n\t\tmonth = new Date().getMonth()+1;\n\t\tyear= new Date().getYear()+1900;\n\t}else{\n\t\tString[] s=date.split(\"-\");\n\t\tyear=Integer.parseInt(s[0]);\n\t\tmonth=Integer.parseInt(s[1]);\n\t}\n\t\n\t\n\tList<Map<String,Object>> lstMap = new LinkedList<Map<String,Object>>();\n\tfor (int i = 1; i <=montharr[month-1] ; i++) {\n\t\tStringBuffer buffer =new StringBuffer(\"select SUM(c.golds) from consumption c,machineinfo m where c.fmachineid=m.id and m.state!=-1 and c.type=-1 and m.empid=\")\n\t\t\t\t.append(em.getId()).append(\" and year(c.createtime) =\").append(year)\n\t\t\t\t.append(\" and month(c.createtime) =\").append(month).append(\" and day(c.createtime) =\").append(i);;\n\t\t\t\tSystem.out.println(buffer);\n\t\t\t\tMap<String,Object> map = new HashMap<String,Object>();\n\t\t\t\tList<Object> lst = databaseHelper.getResultListBySql(buffer.toString());\n\t\t\t\t\n\t\t\t\tmap.put(\"nums\", lst==null?\"0\":lst.size()==0?\"0\":lst.get(0)==null?\"0\":lst.get(0).toString());\n\t\t\t\tmap.put(\"time\", i+\"日\");\n\t\t\t\tmap.put(\"month\", month);\n\t\t\t\tlstMap.add(map);\n\t}\n\tString result = new Gson().toJson(lstMap);\n\tJsonArray jarr = (JsonArray) new JsonParser().parse(result);\n\treturn jarr;\n}", "public void cartgarTareasConRepeticionDespuesDe(TareaModel model,int unid_medi,String cant_tiempo,String tomas)\n {\n Date fecha = convertirStringEnFecha(model.getFecha_aviso(),model.getHora_aviso());\n Calendar calendar = Calendar.getInstance();\n\n if(fecha != null)\n {\n calendar.setTime(fecha);\n calcularCantidadDeRepeticionesHorasMin(unid_medi,calendar,cant_tiempo,tomas,model);\n }\n }", "public void obtener() {\r\n \t\r\n \tif (raiz!=null)\r\n {\r\n int informacion = raiz.dato;\r\n raiz = raiz.sig;\r\n end = raiz;\r\n System.out.println(\"Obtenemos el dato de la cima: \"+informacion);\r\n }\r\n else\r\n {\r\n System.out.println(\"No hay datos en la pila\");\r\n }\r\n }", "public Vector listaAsignaturasTotal(String nombre_titulacion)\n {\n try\n { \n //Se obtiene una conexion\n Connection conexion = this.bbdd.getConexion();\n\n //Se prepara la query\n String query = \"SELECT * FROM asignaturatotal \";\n query += \"WHERE tit_nombre='\"+nombre_titulacion+\"' AND activa = 's'\";\n\n //Se crea un vector de asignaturas\n Vector vectorAsignaturas = new Vector();\n\n //Se ejecuta la query\n Statement st = conexion.createStatement();\n ResultSet resultado = st.executeQuery(query);\n\n //Para cada fila se creará un objeto y se rellenará\n //con los valores de las columnas.\n while(resultado.next())\n {\n asignatura asignatura = new asignatura();\n\n asignatura.setCodigo(resultado.getString(\"codigo\"));\n asignatura.setTitulo(resultado.getString(\"titulo\"));\n asignatura.setFechaInicio(resultado.getDate(\"fechainicio\"));\n asignatura.setFechaFin(resultado.getDate(\"fechafin\"));\n asignatura.setResponsable(resultado.getString(\"responsable\"));\n asignatura.setEmail(resultado.getString(\"email\"));\n asignatura.setTelefono(resultado.getString(\"telefono\"));\n\n //Se añade la asignatura al vector de asignaturas\n vectorAsignaturas.add(asignatura);\n }\n\n //Se cierra la conexión\n this.bbdd.cerrarConexion(conexion);\n\n return vectorAsignaturas;\n }\n catch(SQLException e)\n {\n System.out.println(\"Error al acceder a las asignaturas de la Base de Datos: \"+e.getMessage());\n return null;\n }\n }", "public void actualiser(){\n try{\n \t\n /* Memo des variables : horaireDepart tableau de string contenant l'heure de depart entree par l'user\n * heure = heure saisie castee en int, minutes = minutes saisie castee en Integer\n * tpsRest = tableau de string contenant la duree du cours en heure entree par l'user\n * minutage = format minutes horaire = format heure, ils servent a formater les deux variables currentTime qui recuperent l'heure en ms\n * tempsrestant = variable calculant le temps restant en minutes, heurerestante = variable calculant le nombre d'heure restantes\n * heureDuree = duree du cours totale en int minutesDuree = duree totale du cours en minute\n * tempsfinal = temps restant reel en prenant en compte la duree du cours\n * angle = temps radian engleu = temps en toDegrees\n */\n String[] horaireDepart = Reader.read(saisie.getText(), this.p, \"\\\\ \");\n \n //on check si le pattern est bon et si l'utilisateur n'est pas un tard\n if(Reader.isHour(horaireDepart)){\n \t\n int heure = Integer.parseInt(horaireDepart[0]);\n int minutes = Integer.parseInt(horaireDepart[2]);\n minutes += (heure*60);\n String[] tpsrest = Reader.read(format.getText(), this.p, \"\\\\ \");\n \n //conversion de la saisie en SimpleDateFormat pour les calculs\n SimpleDateFormat minutage = new SimpleDateFormat (\"mm\");\n SimpleDateFormat Horaire = new SimpleDateFormat (\"HH\");\n \n //recupere l'heure en ms\n Date currentTime_1 = new Date(System.currentTimeMillis());\n Date currentTime_2 = new Date(System.currentTimeMillis());\n \n //cast en int pour les calculs\n int tempsrestant = Integer.parseInt(minutage.format(currentTime_1));\n int heurerestante = Integer.parseInt(Horaire.format(currentTime_2))*60;\n tempsrestant += heurerestante;\n \n //pareil mais pour la duree\n if(Reader.isHour(tpsrest)){\n int heureDuree = Integer.parseInt(tpsrest[0]);\n int minutesDuree = Integer.parseInt(tpsrest[2]);\n minutesDuree += (heureDuree*60);\n tempsrestant -= minutes;\n int tempsfinal = minutesDuree - tempsrestant;\n \n //conversion du temps en angle pour l'afficher \n double angle = ((double)tempsfinal*2/(double)minutesDuree)*Math.PI;\n int engleu = 360 - (int)Math.toDegrees(angle);\n for(int i = 0; i < engleu; i++){\n this.panne.dessineLine(getGraphics(), i);\n }\n \n //conversion du temps en pi radiant pour l'affichage\n if(tempsfinal < minutesDuree){\n tempsfinal *= 2;\n for(int i = minutesDuree; i > 1; i--){\n if(tempsfinal % i == 0 && minutesDuree % i == 0){\n tempsfinal /= i;\n minutesDuree /= i;\n }\n }\n }\n \n //update l'affichage\n this.resultat.setText(tempsfinal + \"/\" + minutesDuree + \"π radiant\");\n this.resultat.update(this.resultat.getGraphics());\n }\n }\n }catch(FormatSaisieException fse){\n this.resultat.setText(fse.errMsg(this.p.toString()));\n }\n }", "public void contabilizarConMesYProfesor(ProfesorBean profesor, int mes){\r\n GestionDetallesInformesBD.deleteDetallesInforme(profesor, mes); \r\n\r\n //Preparamos todos los datos. Lista de fichas de horario.\r\n ArrayList<FichajeBean> listaFichajes = GestionFichajeBD.getListaFichajesProfesor(profesor,mes);\r\n ArrayList<FichajeRecuentoBean> listaFichajesRecuento= UtilsContabilizar.convertirFichajes(listaFichajes);\r\n\r\n /**\r\n * Contabilizar horas en eventos de día completo\r\n */\r\n \r\n int segundosEventosCompletos=contabilizarEventosCompletos(listaFichajesRecuento, profesor,mes);\r\n \r\n /**\r\n * Contabilizar horas en eventos de tiempo parcial\r\n */\r\n \r\n ArrayList<EventoBean> listaEventos=GestionEventosBD.getListaEventosProfesor(false, profesor, mes);\r\n int segundosEventosParciales=contabilizarEventosParciales(listaFichajesRecuento,listaEventos, profesor, mes, \"C\");\r\n \r\n /**\r\n * Contabilizamos las horas lectivas\r\n */\r\n ArrayList<FichaBean> listaFichasLectivas=UtilsContabilizar.getHorarioCompacto(profesor, \"L\");\r\n int segundosLectivos=contabilizaHorasLectivasOCmplementarias(listaFichajesRecuento, listaFichasLectivas, profesor,\"L\", mes);\r\n \r\n /**\r\n * Contabilizar horas complementarias\r\n */\r\n ArrayList<FichaBean> listaFichasComplementarias=UtilsContabilizar.getHorarioCompacto(profesor, \"C\");\r\n int segundosComplementarios=contabilizaHorasLectivasOCmplementarias(listaFichajesRecuento, listaFichasComplementarias, profesor,\"C\", mes);\r\n \r\n /**\r\n * Contabilizamos la horas no lectivas (el resto de lo que quede en los fichajes.\r\n */\r\n int segundosNLectivos=contabilizaHorasNoLectivas(listaFichajesRecuento, profesor, true, mes);\r\n \r\n /**\r\n * Contabilizamos las horas extra añadidas al profesor\r\n */\r\n ArrayList<HoraExtraBean> listaHorasExtra=GestionHorasExtrasBD.getHorasExtraProfesor(profesor, mes);\r\n HashMap<String, Integer> tablaHorasExtra = contabilizaHorasExtra(listaHorasExtra, profesor, mes);\r\n \r\n System.out.println(\"Segundos de horas lectivas: \"+Utils.convierteSegundos(segundosLectivos));\r\n System.out.println(\"Segundos de horas complementarias: \"+Utils.convierteSegundos(segundosComplementarios));\r\n System.out.println(\"Segundos de horas no lectivas: \"+Utils.convierteSegundos(segundosNLectivos));\r\n System.out.println(\"Segundos eventos completos: \"+Utils.convierteSegundos(segundosEventosCompletos));\r\n System.out.println(\"Segundos eventos parciales: \"+Utils.convierteSegundos(segundosEventosParciales));\r\n System.out.println(\"Total: \"+Utils.convierteSegundos((segundosComplementarios+segundosLectivos+segundosNLectivos+segundosEventosCompletos+segundosEventosParciales)));\r\n \r\n /**\r\n * Comprobacion\r\n */\r\n listaFichajes = GestionFichajeBD.getListaFichajesProfesor(profesor,mes);\r\n listaFichajesRecuento= UtilsContabilizar.convertirFichajes(listaFichajes);\r\n int segundosValidacion=contabilizaHorasNoLectivas(listaFichajesRecuento, profesor, false, mes);\r\n int segundosValidacion2=segundosComplementarios+segundosLectivos+segundosNLectivos+segundosEventosCompletos+segundosEventosParciales;\r\n System.out.println(\"Comprobacion: \"+Utils.convierteSegundos(segundosValidacion));\r\n String obser=segundosValidacion==segundosValidacion2?\"Correcto\":\"No coinciden las horas en el colegio, con las horas calculadas de cada tipo.\";\r\n \r\n segundosComplementarios+=segundosEventosCompletos;\r\n segundosComplementarios+=segundosEventosParciales;\r\n\r\n //Guardamos en la base de datos\r\n GestionInformesBD.guardaInforme(profesor, obser, segundosLectivos, segundosNLectivos, segundosComplementarios,mes);\r\n \r\n }", "private void validarhorarioconotroshorariosactivos(HorarioAsignado horarioasignado, List<HorarioAsignado> horarios) throws LogicaException, ParseException, DatoException {\nGregorianCalendar startasignado=new GregorianCalendar();\nDate startdateasignado= new Date(horarioasignado.getValidezinicio().getTime());\nstartasignado.setTime(startdateasignado);\nGregorianCalendar endasignado=new GregorianCalendar();\nDate enddateasignado= new Date(horarioasignado.getValidezfin().getTime());\nendasignado.setTime(enddateasignado);\n\nint tempfrecasignado = horarioasignado.getHorario().getIdfrecuenciaasignacion().intValue();\nList<Integer> diadelasemanaasignado = diadelasemana(tempfrecasignado);\nList<HashMap<String, Object>> dataasignado = Util.diferenciaEnDiasconFrecuencia(startasignado, endasignado,diadelasemanaasignado,tempfrecasignado);\n\n\n\n\nfor(HorarioAsignado ho:horarios){\n\t\t\tif(ho.getIdhorarioasignado().equals(horarioasignado.getIdhorarioasignado())){\n\t\t\t\n\t\t\t}else{\n\t\t\tif(ho.getIdhorario()==horarioasignado.getIdhorario()){\n\t\t\t\n\t\t\t/*//cedulasconhorarios.add(em);\n\t\t\tif (horarioasignado.getValidezinicio().after(ho.getValidezinicio()) && horarioasignado.getValidezinicio().before(ho.getValidezfin())){\n\t\t\tthrow new LogicaException(\"este contrato ya tiene asociado ese horario\"\n\t\t\t+ \" entre las fechas \"+ho.getValidezinicio()+\" y \"+ ho.getValidezfin());\n\t\t\t\n\t\t\t}*/\n\t\t\t\n\t\t\t}else{\n\t\t\t\n\t\t\t}\n\n\t\tContrato contrato = contratoEJB.getContratosporId(ho.getIdcontrato());\n\t\tEmpleadoBean empleado = empleadoEJB.buscarEmpleadosporId(contrato.getIdempleado());\t\n\tGregorianCalendar start=new GregorianCalendar();\n\tDate startdate= new Date(ho.getValidezinicio().getTime());\n\tstart.setTime(startdate);\n\tGregorianCalendar end=new GregorianCalendar();\n\tDate enddate= new Date(ho.getValidezfin().getTime());\n\tend.setTime(enddate);\n\t\n\tint tempfrec = ho.getHorario().getIdfrecuenciaasignacion().intValue();\n\tList<Integer> diadelasemana = diadelasemana(tempfrec);\n\tList<HashMap<String, Object>> data = Util.diferenciaEnDiasconFrecuencia(start, end,diadelasemana,tempfrec);\n\t\n\t\t\t\t\tfor(HashMap<String, Object> diadehorario:data){\n\t\t\t\tHashMap<String, Object> horariofechas=new HashMap<String, Object>();\n\t\t\t\tGregorianCalendar fecha = (GregorianCalendar)diadehorario.get(\"fecha\");\n\t\t\t\tDate fechadat =fecha.getTime();\n\t\t\t\tGregorianCalendar fechafin = (GregorianCalendar)diadehorario.get(\"fechafin\");\n\t\t\t\tDate fechafindat = fechafin.getTime();\n\t\t\t\tfor(HashMap<String, Object> diaasignado:dataasignado){\n\t\t\t\t\t\tHashMap<String, Object> horariofechasasignadas=new HashMap<String, Object>();\n\t\t\t\t\t\tGregorianCalendar fechaasignada = (GregorianCalendar)diaasignado.get(\"fecha\");\n\t\t\t\t\t\tDate fechaasignadadat =fechaasignada.getTime();\n\t\t\t\t\t\tGregorianCalendar fechafinasignada = (GregorianCalendar)diaasignado.get(\"fechafin\");\n\t\t\t\t\t\tDate fechafinasignadadat = fechafinasignada.getTime();\n\t\t\t\t\t\t\t\t\tif(fechaasignada.after(fechafin)){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif((fechaasignada.getTime().after(fecha.getTime())||fechaasignada.getTime().equals(fecha.getTime())) && fechaasignada.getTime().before(fechafin.getTime()) ){\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//\tif((fechaasignada.getTime().after(fecha.getTime()) && fechaasignada.getTime().before(fechafin.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\") +\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\t\tif((fechafinasignada.getTime().after(fecha.getTime())||fechafinasignada.getTime().equals(fecha.getTime())) && fechafinasignada.getTime().before(fechafin.getTime()) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif((fecha.getTime().after(fechaasignada.getTime() ) && fecha.getTime().before(fechafinasignada.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\t\tif((fechafin.getTime().after(fechaasignada.getTime() ) && fechafin.getTime().before(fechafinasignada.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\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\n}\n\n\n}\n\n\n/////////////////////////fin validacion/\n}", "private void creaModuloMem() {\n /* variabili e costanti locali di lavoro */\n ArrayList<Campo> campi = new ArrayList<Campo>();\n ModuloRisultati modulo;\n Campo campo;\n\n try { // prova ad eseguire il codice\n\n campo = CampoFactory.intero(Campi.Ris.codicePiatto.getNome());\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.nomePiatto.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"piatto\");\n campo.setToolTipLista(\"nome del piatto\");\n campo.decora()\n .etichetta(\"nome del piatto\"); // le etichette servono per il dialogo ricerca\n campo.setLarghezza(250);\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.categoria.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"categoria\");\n campo.setToolTipLista(\"categoria del piatto\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteVolte.getNome());\n campo.setVisibileVistaDefault();\n campo.setLarghezza(80);\n campo.setTitoloColonna(\"quante volte\");\n campo.setToolTipLista(\n \"quante volte questo piatto è stato offerto nel periodo analizzato\");\n campo.decora().etichetta(\"quante volte\");\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quantiCoperti.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"coperti\");\n campo.setToolTipLista(\"numero di coperti che avrebbero potuto ordinare\");\n campo.decora().etichetta(\"n. coperti\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteComande.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"comande\");\n campo.setToolTipLista(\"numero di comande effettive\");\n campo.decora().etichetta(\"n. comande\");\n campo.setLarghezza(80);\n campo.setTotalizzabile(true);\n campi.add(campo);\n\n campo = CampoFactory.percentuale(Campi.Ris.gradimento.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"gradimento\");\n campo.setToolTipLista(\n \"percentuale di gradimento (è il 100% se tutti i coperti potenziali lo hanno ordinato)\");\n campo.decora().etichetta(\"% gradimento\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n modulo = new ModuloRisultati(campi);\n setModuloRisultati(modulo);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }", "public Collection getEntradaTrasladosEntreDiasoTemporadas(Long temporadaId, Date dataInici, Date dataFin) throws InfrastructureException {\r\n\t\tCollection col;\r\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\ttry {\r\n\t\t\tlogger.debug(\"getEntradaTrasladosEntreDiasoTemporadas ini\");\r\n\t\t\tString q = \"from Trasllat tdi where tdi.retornatEstablimentOrigen = true \";\r\n\r\n\t\t\tif(dataInici!= null || dataFin != null){\r\n\t\t\t\tLong campanyaActualId = (Long)getHibernateTemplate().find(\"select max(cam.id) from Campanya cam\").get(0);\r\n\t\t\t\tif(dataInici != null){\r\n\t\t\t\t\tString fi = df.format(dataInici);\r\n\t\t\t\t\tq = q+ \" and tdi.data >= '\"+fi+\"' \";\r\n\t\t\t\t}\r\n\t\t\t\tif(dataFin != null){\r\n\t\t\t\t\tString ff = df.format(dataFin);\r\n\t\t\t\t\tq = q+ \" and tdi.data <= '\"+ff+\"' \";\r\n\t\t\t\t}\r\n\r\n\t\t\t\tq = q+\" and tdi.establimentByTdiCodede.campanya.id=\"+campanyaActualId;\r\n\r\n\t\t\t}else{\r\n\t\t\t\tq = q+ \" and tdi.establimentByTdiCodede.campanya.id=\"+temporadaId;\r\n\t\t\t}\r\n\r\n\t\t\tcol = getHibernateTemplate().find(q);\t\t\t\r\n\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tlogger.error(\"getEntradaTrasladosEntreDiasoTemporadas failed\", ex);\r\n\t\t\tthrow new InfrastructureException(ex);\r\n\t\t}\r\n\t\tlogger.debug(\"getEntradaTrasladosEntreDiasoTemporadas fin\");\r\n\t\treturn col;\r\n\t}", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "public Muestra(String nombreMuestra,Float peso, Float profundidadInicial,Float profundidadFinal,OperadorDeLaboratorio operador,\r\n\t\t\t\t\tUsuario usuario, Ubicacion ubicacion, AASHTO aashto, SUCS sucs,Cliente cliente,java.sql.Date fecha) {\r\n\t\tthis.nombreMuestra = nombreMuestra;\r\n\t\tthis.profundidadInicial = profundidadInicial;\r\n\t\tthis.profundidadFinal = profundidadFinal;\r\n\t\tthis.peso = peso;\r\n\t\tthis.operadorLaboratorio = operador;\r\n\t\tthis.cliente = cliente;\r\n\t\tthis.usuario = usuario;\r\n\t\tthis.ubicacion = ubicacion;\r\n\t\tthis.aashto = aashto;\r\n\t\tthis.sucs = sucs;\r\n\t\tthis.fecha = fecha;\r\n\t\tD10= new Float(0);\r\n\t\tD30= new Float(0);\r\n\t\tD60= new Float(0);\r\n\t\tthis.gradoCurvatura = new Float(0);\r\n\t\tthis.coeficienteUniformidad = new Float(0);\r\n\t\tindicePlasticidad = new Float(0);\r\n\t\tlimitePlastico = new Float(0);\r\n\t\tlimiteLiquido = new Float(0);\r\n\t}", "public void ActualizadorOro(){\n\njavax.swing.Timer ao = new javax.swing.Timer(1000*60, new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n try {\n Connection conn = Conectar.conectar();\n Statement st = conn.createStatement();\n\n usuarios = new ArrayList<Usuario>();\n ResultSet rs = st.executeQuery(\"select * from usuarios\");\n while(rs.next()){\n usuarios.add(new Usuario(rs.getString(1), rs.getString(2), rs.getString(3), Integer.parseInt(rs.getString(4)), Integer.parseInt(rs.getString(5)), Integer.parseInt(rs.getString(6)), Integer.parseInt(rs.getString(7))));\n }\n\n //preparamos una consulta que nos lanzara el numero de minas por categoria que tiene cada usuario\n String consulta1 = \"select idEdificio, count(*) from regiones, edificiosregion\"+\n \" where regiones.idRegion=edificiosregion.idRegion\"+\n \" and propietario='\";\n\n String consulta2 = \"' and idEdificio in (1101,1102,1103,1104,1105)\"+\n \" group by idEdificio\";\n\n //recorremos toda la lista sumando el oro, dependiendo del numero de minas que posea\n ResultSet rs2 = null;\n for(Usuario usuario : usuarios){\n rs2 = st.executeQuery(consulta1 + usuario.getNick() + consulta2);\n int oro = 0;\n while(rs2.next()){\n System.out.println(Integer.parseInt(rs2.getString(1)));\n if(Integer.parseInt(rs2.getString(1)) == 1101){\n oro = oro + (rs2.getInt(2) * 100);\n }\n else if(Integer.parseInt(rs2.getString(1)) == 1102){\n oro = oro + (rs2.getInt(2) * 150);\n }\n else if(Integer.parseInt(rs2.getString(1)) == 1103){\n oro = oro + (rs2.getInt(2) * 300);\n }\n else if(Integer.parseInt(rs2.getString(1)) == 1104){\n oro = oro + (rs2.getInt(2) * 800);\n }\n else if(Integer.parseInt(rs2.getString(1)) == 1105){\n oro = oro + (rs2.getInt(2) * 2000);\n }\n }\n st.executeQuery(\"UPDATE usuarios SET oro = (SELECT oro+\" + oro + \" FROM usuarios WHERE nick ='\" + usuario.getNick() + \"'\"+\n \") WHERE nick = '\" + usuario.getNick() + \"'\");\n\n }\n st.close();\n rs.close();\n rs2.close();\n conn.close();\n\n } catch (SQLException ex) {\n System.out.println(ex.getMessage() + \" Fallo actualizar oro.\");\n }\n\n }\n });\n\n ao.start();\n}", "public static void main(String[] args) { \n// \n// try(\n// Connection conn = DBClass.getConn();\n// // En caso de necesitar llenar algun campo con informacion especifica colocamos '?'\n// PreparedStatement pst = conn.prepareStatement(\"SELECT * from lugar\");\n// ){\n// \n// \n// \n// // Pedimos ejecutar el query..\n// ResultSet rst = pst.executeQuery();\n// \n// // Ciclo mientras exista algo en la respuesta de la consulta\n// while (rst.next()){\n// }\n// \n// // Cerramos la conexion para no desperdiciar recursos\n// conn.close();\n// }\n// catch (SQLException ex) {\n// ex.printStackTrace();\n// }\n\n Calendar cal = Calendar.getInstance(); // creates calendar\n cal.setTime(new Date()); // sets calendar time/date\n// cal.add(Calendar.HOUR_OF_DAY, 7); // adds one hour\n cal.add(Calendar.DAY_OF_MONTH, 0);\n \n System.out.println(cal.getTime());\n }", "public String dimeTuTiempo()\n {\n String cadResultado=\"\";\n if (horas<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+horas;\n cadResultado=cadResultado+\":\";\n if(minutos<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+minutos;\n \n return cadResultado;\n }", "private Calendar modificarHoraReserva(Date horaInicio, int hora) {\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(horaInicio);\n calendar.set(Calendar.HOUR, hora);\n calendar.set(Calendar.MINUTE, 0);\n calendar.set(Calendar.MINUTE, 0);\n return calendar;\n }", "public void liquidarEmpleado(Fecha fechaLiquidacion) {\n //COMPLETE\n double prima=0; \n boolean antiguo=false;\n double aniosEnServicio=fechaLiquidacion.getAnio()-this.fechaIngreso.getAnio();\n if(aniosEnServicio>0&&\n fechaLiquidacion.getMes()>this.fechaIngreso.getMes())\n aniosEnServicio--; \n \n //System.out.println(\"A:\"+aniosEnServicio+\":\"+esEmpleadoLiquidable(fechaLiquidacion));\n if(esEmpleadoLiquidable(fechaLiquidacion)){\n this.descuentoSalud=salarioBase*0.04;\n this.descuentoPension=salarioBase*0.04;\n this.provisionCesantias=salarioBase/12;\n if(fechaLiquidacion.getMes()==12||fechaLiquidacion.getMes()==6)\n prima+=this.salarioBase*0.5; \n if(aniosEnServicio<6&&\n fechaLiquidacion.getMes()==this.fechaIngreso.getMes())prima+=((aniosEnServicio*5)/100)*this.salarioBase;\n if(aniosEnServicio>=6&&fechaLiquidacion.getMes()==this.fechaIngreso.getMes()) prima+=this.salarioBase*0.3;\n\n this.prima=prima;\n this.setIngresos(this.salarioBase+prima);\n \n this.setDescuentos(this.descuentoSalud+this.descuentoPension);\n this.setTotalAPagar(this.getIngresos()-this.getDescuentos());\n }\n\n }", "public void initTempsPassage() {\r\n\t\tlong dureeTotale = heureDepart.getTime();\r\n\t\ttempsPassage = new Date[getItineraire().size()][2];\r\n\r\n\t\tfor (int i = 0; i < getItineraire().size(); i++) {\r\n\t\t\tfor (int j = 0; j < getItineraire().get(i).getTroncons().size(); j++) {\r\n\t\t\t\tdureeTotale += getItineraire().get(i).getTroncons().get(j).getLongueur() * 1000 / VITESSE;// Duree\r\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// des\r\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// trajets\r\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// en\r\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// seconde\r\n\r\n\t\t\t}\r\n\t\t\tif (i < listeLivraisons.size()) {\r\n\t\t\t\tif (listeLivraisons.get(i).getDebutPlageHoraire() != null\r\n\t\t\t\t\t\t&& listeLivraisons.get(i).getDebutPlageHoraire().getTime() > dureeTotale) {\r\n\t\t\t\t\ttempsPassage[i][0] = new Date(dureeTotale);\r\n\t\t\t\t\ttempsPassage[i][1] = new Date(listeLivraisons.get(i).getDebutPlageHoraire().getTime());\r\n\t\t\t\t\tdureeTotale = listeLivraisons.get(i).getDebutPlageHoraire().getTime();\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttempsPassage[i][0] = new Date(dureeTotale);\r\n\t\t\t\t}\r\n\t\t\t\tdureeTotale += listeLivraisons.get(i).getDuree() * 1000; // duree\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// de\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// livraison\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// en\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ms\r\n\t\t\t} else {\r\n\t\t\t\ttempsPassage[i][0] = new Date(dureeTotale);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\theureArrivee = new Date(dureeTotale);\r\n\t}", "long buscarUltimo();", "private Filtro getFiltroFissiGiornoConto(Date data, int codConto) {\n /* variabili e costanti locali di lavoro */\n Filtro filtro = null;\n Filtro filtroDate = null;\n Filtro filtroInizio = null;\n Filtro filtroSincro;\n Filtro filtroVuota;\n Filtro filtroIntervallo;\n Filtro filtroFine;\n Filtro filtroConto = null;\n Modulo modConto;\n Date dataVuota;\n\n try { // prova ad eseguire il codice\n\n modConto = Progetto.getModulo(Conto.NOME_MODULO);\n\n filtroDate = new Filtro();\n\n filtroInizio = FiltroFactory.crea(Cam.dataInizioValidita.get(),\n Filtro.Op.MINORE_UGUALE,\n data);\n filtroSincro = FiltroFactory.crea(Cam.dataSincro.get(), Filtro.Op.MINORE, data);\n dataVuota = Lib.Data.getVuota();\n filtroVuota = FiltroFactory.crea(Cam.dataSincro.get(), dataVuota);\n\n filtroFine = FiltroFactory.crea(Cam.dataFineValidita.get(),\n Filtro.Op.MAGGIORE_UGUALE,\n data);\n filtroIntervallo = new Filtro();\n filtroIntervallo.add(filtroSincro);\n filtroIntervallo.add(filtroFine);\n\n filtroDate.add(filtroIntervallo);\n filtroDate.add(Filtro.Op.OR, filtroVuota);\n\n /* filtro per il conto */\n filtroConto = FiltroFactory.codice(modConto, codConto);\n\n filtro = new Filtro();\n filtro.add(filtroInizio);\n filtro.add(filtroDate);\n filtro.add(filtroConto);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return filtro;\n }", "public void ponerMaximoTiempo() {\n this.timeFi = Long.parseLong(\"2000000000000\");\n }", "@Override\n\tpublic int horas_trabajo() {\n\t\treturn 1000;\n\t}", "@PrePersist\r\n\tpublic void prePersist() {\n\t\ttry { Thread.sleep(1); } catch (Exception e) { System.out.println(\"Impossibile fermare il thread per 1 ms.\");}\r\n\t\tGregorianCalendar now = new GregorianCalendar();\r\n\t\tdataArrivoFile = new Date(now.getTimeInMillis());\r\n\t\tannoOrdine = now.get(Calendar.YEAR);\r\n\t\tannodoc = now.get(Calendar.YEAR);\r\n\t\tgenMovUscita = \"NO\";\r\n\t\t// il numero di lista è necessario, se non c'è lo genero.\r\n\t\tif (nrLista == null || nrLista.isEmpty()) {\r\n\t\t\tnrLista = sdf.format(now.getTime());\r\n\t\t}\r\n\t\t// il raggruppamento stampe è necessario, se non c'è lo imposto uguale al numero di lista.\r\n\t\tif (ragstampe == null || ragstampe.isEmpty()) {\r\n\t\t\tragstampe = nrLista;\r\n\t\t}\r\n\t\tnrListaArrivato = 0; // TODO, in teoria sarebbe come un autoincrement\r\n\t\tif (nomeFileArrivo == null || nomeFileArrivo.isEmpty()) nomeFileArrivo = sdf.format(now.getTime());\r\n\t\t// Se non ho specificato l'operatore assumo che sia un servizio.\r\n\t\tif (operatore == null || operatore.isEmpty()) operatore = \"SERVIZIO\";\r\n\t\t// Priorita', se non valorizzata imposto il default.\r\n\t\tif (priorita <= 0) priorita = 1;\r\n\t\t// Contrassegno\r\n\t\tif (tipoIncasso == null) tipoIncasso = \"\";\r\n\t\tif (valContrassegno == null) valContrassegno = 0.0;\r\n\t\tif (valoreDoganale == null)\tvaloreDoganale = 0.0;\r\n\t\t// Corriere, se null imposto a stringa vuota.\r\n\t\tif (corriere == null) corriere = \"\";\r\n\t\t// Codice cliente per il corriere, se null imposto a stringa vuota.\r\n\t\tif (codiceClienteCorriere == null) codiceClienteCorriere = \"\";\r\n\t\tif (stato == null) stato = \"INSE\";\r\n\t\tif (sessioneLavoro == null) sessioneLavoro = \"\";\r\n\t\tif (tipoDoc == null) tipoDoc = \"ORDINE\";\r\n\t}" ]
[ "0.6578695", "0.65665203", "0.65300965", "0.6436202", "0.6395944", "0.63568896", "0.6345826", "0.6169534", "0.6102602", "0.59676874", "0.59547657", "0.59402376", "0.59288204", "0.58984107", "0.58845395", "0.5853075", "0.5845239", "0.58145493", "0.5807629", "0.5807071", "0.5771796", "0.5763342", "0.57498914", "0.57433045", "0.57271785", "0.5721437", "0.57177204", "0.5680328", "0.5665543", "0.5661316", "0.56311923", "0.56288886", "0.56232345", "0.5591352", "0.5581446", "0.5578613", "0.55766666", "0.5570902", "0.5563319", "0.55534136", "0.5542195", "0.55419457", "0.5540219", "0.55383533", "0.5534671", "0.5530412", "0.5514272", "0.55098075", "0.5508398", "0.55053467", "0.5504052", "0.5500012", "0.54964614", "0.5482345", "0.54814464", "0.54767877", "0.54688764", "0.54460454", "0.5441795", "0.54386735", "0.54287416", "0.54206336", "0.54144406", "0.5412531", "0.5408546", "0.5406275", "0.5404744", "0.5390037", "0.53838307", "0.53741276", "0.5354338", "0.53532195", "0.53524566", "0.53501517", "0.5347191", "0.53460616", "0.5339482", "0.53289133", "0.5328494", "0.53257596", "0.53255033", "0.5322962", "0.5314273", "0.53094155", "0.5301116", "0.52976006", "0.52970076", "0.5296827", "0.52936596", "0.52870286", "0.5275021", "0.5262804", "0.5262067", "0.5257356", "0.5256888", "0.52486914", "0.524689", "0.52405113", "0.5237379", "0.5235987", "0.52337945" ]
0.0
-1
Monta um data inicial com hora,minuto e segundo zerados para pesquisa no banco
public static Date formatarDataFinal(Date dataFinal) { Calendar calendario = Calendar.getInstance(); calendario.setTime(dataFinal); calendario.set(Calendar.HOUR_OF_DAY, 23); calendario.set(Calendar.MINUTE, 59); calendario.set(Calendar.SECOND, 59); return calendario.getTime(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void introducirPagosALojamientoHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];// pago de alojamiento en rango fchas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);\n objeto[3] = resultado.getDate(4);// pago de alojamiento en rango fchas\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();// pago de alojamiento en rango fchas\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void introducirPagosALojamientoClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);// pago de alojamiento en rango fchas\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Dpi_Cliente=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n declaracion.setString(3, dpiCliente);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);// pago de alojamiento en rango fchas\n objeto[3] = resultado.getDate(4);\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "@Override\n public long minutosOcupados(Integer idEstacion, Date inicio, Date fin) {\n long minutos = 0;\n String sql = \"SELECT eje FROM Recurso rec, Ejecucion eje WHERE rec.idestacion = :idEstacion AND eje.idrecurso = rec.idrecurso AND eje.fechafin >= :inicio AND eje.fechainicio < :fin\";\n List<Ejecucion> ejecuciones = getCurrentSession().createQuery(sql).setParameter(\"idEstacion\", idEstacion).setParameter(\"inicio\", inicio).setParameter(\"fin\", fin).list();\n for (Ejecucion next : ejecuciones) {\n Date inicioEjecucion = next.getFechainicio();\n Date finEjecucion = next.getFechafin();\n if (inicioEjecucion.before(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio y finaliza en el fin de la ejecucion\n minutos = minutos + Math.abs(finEjecucion.getTime() - inicio.getTime())/60000;\n \n } else if (inicioEjecucion.after(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio de la ejecucion y finaliza en el fin de la ejecucion\n minutos = minutos + Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n \n }else if (inicioEjecucion.after(inicio) && finEjecucion.after(fin)){\n //Comienza en inicio de la ejecucion y finaliza en el fin\n minutos = minutos + Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n \n } else if (inicioEjecucion.before(inicio) && finEjecucion.after(fin)) {\n //Comienza en inicio y finaliza en el fin\n minutos = minutos + Math.abs(fin.getTime() - inicio.getTime())/60000;\n }\n }\n return minutos;\n }", "public void introducirConsumosHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo) {\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT * FROM CONSUMO_RESTAURANTE WHERE Fecha_Consumo>=? AND Fecha_Consumo<=?\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// mira los consumo de unas fechas\n Object objeto[] = new Object[7];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);// mira los consumo de unas fechas\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);\n objeto[4] = resultado.getInt(5);\n objeto[5] = resultado.getDate(6);// mira los consumo de unas fechas\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;\n modelo.addRow(objeto);// mira los consumo de unas fechas\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "@Override\n public long minutosLibres(Integer idEstacion, Date inicio, Date fin) {\n long minutos = Math.abs(fin.getTime() - inicio.getTime())/60000;\n List<Ejecucion> ejecuciones = null;\n String sql = \"SELECT eje FROM Recurso rec, Ejecucion eje WHERE rec.estacion.idestaciones = :idEstacion AND eje.recurso.idrecurso = rec.idrecurso AND eje.fechafin >= :inicio AND eje.fechainicio < :fin\";\n ejecuciones = getCurrentSession().createQuery(sql).setParameter(\"idEstacion\", idEstacion).setParameter(\"inicio\", inicio).setParameter(\"fin\", fin).list();\n \n if (ejecuciones != null) {\n for (Ejecucion next : ejecuciones) {\n Date inicioEjecucion = next.getFechainicio();\n Date finEjecucion = next.getFechafin();\n if (inicioEjecucion.before(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio y finaliza en el fin de la ejecucion\n minutos = minutos - Math.abs(finEjecucion.getTime() - inicio.getTime())/60000;\n\n } else if (inicioEjecucion.after(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio de la ejecucion y finaliza en el fin de la ejecucion\n minutos = minutos - Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n\n }else if (inicioEjecucion.after(inicio) && finEjecucion.after(fin)){\n //Comienza en inicio de la ejecucion y finaliza en el fin\n minutos = minutos - Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n\n } else if (inicioEjecucion.before(inicio) && finEjecucion.after(fin)) {\n //Comienza en inicio y finaliza en el fin\n minutos = minutos - Math.abs(fin.getTime() - inicio.getTime())/60000;\n }\n /*if (inicioEjecucion.before(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio y finaliza en el fin de la ejecucion\n minutos = minutos + (fin.getTime() - inicio.getTime())/60000;\n\n } else if (inicioEjecucion.after(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio de la ejecucion y finaliza en el fin de la ejecucion\n minutos = minutos + ((fin.getTime() - inicio.getTime()) + (inicioEjecucion.getTime() - inicio.getTime()))/60000;\n\n }else if (inicioEjecucion.after(inicio) && finEjecucion.after(fin)){\n //Comienza en inicio de la ejecucion y finaliza en el fin\n minutos = minutos + Math.abs(inicioEjecucion.getTime() - inicio.getTime())/60000;\n\n }*/\n }\n }\n return minutos;\n }", "public void introducirConsumosClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente) {\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT CONSUMO_RESTAURANTE.Id_Consumo,CONSUMO_RESTAURANTE.Id_Alojamiento,CONSUMO_RESTAURANTE.Nombre_Comida,CONSUMO_RESTAURANTE.Precio_Comida,CONSUMO_RESTAURANTE.Cantidad,CONSUMO_RESTAURANTE.Fecha_Consumo FROM CONSUMO_RESTAURANTE JOIN ALOJAMIENTO JOIN RESERVACION WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND ALOJAMIENTO.Id=CONSUMO_RESTAURANTE.Id_Alojamiento AND RESERVACION.Dpi_Cliente=? AND Fecha_Consumo>=? AND Fecha_Consumo<=?\");\n declaracion.setString(1, dpiCliente);\n declaracion.setDate(2,fechaInicialSql);\n declaracion.setDate(3,fechaFinalSQL);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// mira los consumo de unas fechas\n Object objeto[] = new Object[7];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);// mira los consumo de unas fechas\n objeto[4] = resultado.getInt(5);\n objeto[5] = resultado.getDate(6);\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;// mira los consumo de unas fechas\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "private void MontarTabela(String where) {\n \n int linha = 0;\n int coluna = 0;\n \n String offset = String.valueOf(getPaginacao());\n \n while(linha < 10){\n while(coluna < 7){\n tbConFin.getModel().setValueAt(\"\", linha, coluna);\n coluna++;\n }\n linha++;\n coluna = 0;\n }\n \n linha = 0;\n \n String rd_id\n ,rd_codico\n ,rd_nome\n ,rd_receita_despesa\n ,rd_grupo\n ,rd_fixa\n ,rd_ativo;\n \n \n \n try{\n ResultSet rsConFin = cc.stm.executeQuery(\"select * from v_receitadespesa \"+where+\" order by rd_codico limit 10 offset \"+offset);\n \n while ( rsConFin.next() ) {\n rd_id = rsConFin.getString(\"RD_ID\");\n rd_codico = rsConFin.getString(\"rd_codico\");\n rd_nome = rsConFin.getString(\"rd_nome\");\n rd_receita_despesa = getRecDesp(rsConFin.getString(\"rd_receita_despesa\"));\n rd_grupo = getSimNao(rsConFin.getString(\"rd_grupo\"));\n rd_fixa = getSimNao(rsConFin.getString(\"rd_fixa\"));\n rd_ativo = getSimNao(rsConFin.getString(\"rd_ativo\"));\n \n tbConFin.getModel().setValueAt(rd_id, linha, 0);\n tbConFin.getModel().setValueAt(rd_codico, linha, 1);\n tbConFin.getModel().setValueAt(rd_nome, linha, 2);\n tbConFin.getModel().setValueAt(rd_receita_despesa, linha, 3);\n tbConFin.getModel().setValueAt(rd_grupo, linha, 4);\n tbConFin.getModel().setValueAt(rd_fixa, linha, 5);\n tbConFin.getModel().setValueAt(rd_ativo, linha, 6);\n \n linha++;\n }\n \n \n if(linha <= 10){\n setMensagem(\"A Busca retornou \"+linha+\" registros!\");\n }\n \n if(linha < 10){\n setFimConsulta(true);\n }else{\n setFimConsulta(false);\n }\n \n }catch(SQLException e){\n JOptionPane.showMessageDialog(this, \"Erro ao Carregar informações de contas financeiras!\\n\"+e.getMessage());\n }\n \n }", "private void populaHorarioAula()\n {\n Calendar hora = Calendar.getInstance();\n hora.set(Calendar.HOUR_OF_DAY, 18);\n hora.set(Calendar.MINUTE, 0);\n HorarioAula h = new HorarioAula(hora, \"Segunda e Quinta\", 1, 3, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Terca e Sexta\", 1, 3, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 15);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 10);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Quarta e Sexta\", 3, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Sexta\", 1, 1, 2);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 19);\n h = new HorarioAula(hora, \"Sexta\", 2, 1, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Segunda\", 3, 6, 4);\n horarioAulaDAO.insert(h);\n\n }", "public void convertirHoraMinutosStamina(int Hora, int Minutos){\n horaMinutos = Hora * 60;\n minutosTopStamina = 42 * 60;\n minutosTotales = horaMinutos + Minutos;\n totalMinutosStamina = minutosTopStamina - minutosTotales;\n }", "public List<ChamadosAtendidos> contaChamadosAtendidos(int servico) throws SQLException {\r\n\r\n List<ChamadosAtendidos> CAList = new ArrayList<>();\r\n PreparedStatement ps = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? \");\r\n\r\n ps.setInt(1, servico);\r\n ChamadosAtendidos ch = new ChamadosAtendidos();\r\n int contador1 = 0, contador2 = 0, contador3 = 0;\r\n\r\n ResultSet rs = ps.executeQuery();\r\n while (rs.next()) {\r\n contador1++;\r\n }\r\n PreparedStatement ps2 = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? and em_chamado= 4 \");\r\n ps2.setInt(1, servico);\r\n ResultSet rs2 = ps2.executeQuery();\r\n while (rs2.next()) {\r\n contador2++;\r\n }\r\n PreparedStatement ps3 = conn.prepareStatement(\"SELECT Qtde_tentativas FROM `solicitacoes` WHERE servico_id_servico=?\");\r\n ps3.setInt(1, servico);\r\n ResultSet rs3 = ps3.executeQuery();\r\n while (rs3.next()) {\r\n\r\n contador3 = contador3 + rs3.getInt(1);\r\n }\r\n PreparedStatement ps4 = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? and em_chamado= 2 \");\r\n ps4.setInt(1, servico);\r\n\r\n ResultSet rs4 = ps4.executeQuery();\r\n while (rs4.next()) {\r\n\r\n contador3++;\r\n }\r\n ch.setTotalDeChamados(contador1);\r\n ch.setChamadosConcluidos(contador2);\r\n ch.setChamadosRealizados(contador3 + contador2);\r\n CAList.add(ch);\r\n return CAList;\r\n }", "public int actualizarTiempo(int empresa_id,int idtramite, int usuario_id) throws ParseException {\r\n\t\tint update = 0;\r\n\t\t\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat formateador = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n\t\tString timeNow = formateador.format(date);\r\n\t\tSimpleDateFormat formateador2 = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tString fecha = formateador2.format(date);\r\n\t\tSimpleDateFormat formateador3 = new SimpleDateFormat(\"hh:mm:ss\");\r\n\t\tString hora = formateador3.format(date);\r\n\t\tSystem.out.println(timeNow +\" \"+ fecha+\" \"+hora );\r\n\t\t\r\n\t\t List<Map<String, Object>> rows = listatks(empresa_id, idtramite);\t\r\n\t\t System.out.println(rows);\r\n\t\t if(rows.size() > 0 ) {\r\n\t\t\t String timeCreate = rows.get(0).get(\"TIMECREATE_HEAD\").toString();\r\n\t\t\t System.out.println(\" timeCreate \" +timeCreate+\" timeNow: \"+ timeNow );\r\n\t\t\t Date fechaInicio = formateador.parse(timeCreate); // Date\r\n\t\t\t Date fechaFinalizo = formateador.parse(timeNow); //Date\r\n\t\t\t long horasFechas =(long)((fechaInicio.getTime()- fechaFinalizo.getTime())/3600000);\r\n\t\t\t System.out.println(\" horasFechas \"+ horasFechas);\r\n\t\t\t long diferenciaMils = fechaFinalizo.getTime() - fechaInicio.getTime();\r\n\t\t\t //obtenemos los segundos\r\n\t\t\t long segundos = diferenciaMils / 1000;\t\t\t \r\n\t\t\t //obtenemos las horas\r\n\t\t\t long horas = segundos / 3600;\t\t\t \r\n\t\t\t //restamos las horas para continuar con minutos\r\n\t\t\t segundos -= horas*3600;\t\t\t \r\n\t\t\t //igual que el paso anterior\r\n\t\t\t long minutos = segundos /60;\r\n\t\t\t segundos -= minutos*60;\t\t\t \r\n\t\t\t System.out.println(\" horas \"+ horas +\" min\"+ minutos+ \" seg \"+ segundos );\r\n\t\t\t double tiempoTotal = Double.parseDouble(horas+\".\"+minutos);\r\n\t\t\t // actualizar cabecera \r\n\t\t\t updateHeaderOut( idtramite, fecha, hora, tiempoTotal, usuario_id);\r\n\t\t\t for (Map<?, ?> row : rows) {\r\n\t\t\t\t Map<String, Object> mapa = new HashMap<String, Object>();\r\n\t\t\t\tint idd = Integer.parseInt(row.get(\"IDD\").toString());\r\n\t\t\t\tint idtramite_d = Integer.parseInt(row.get(\"IDTRAMITE\").toString());\r\n\t\t\t\tint cantidaMaletas = Integer.parseInt(row.get(\"CANTIDAD\").toString());\r\n\t\t\t\tdouble precio = Double.parseDouble(row.get(\"PRECIO\").toString());\t\t\t\t\r\n\t\t\t\tdouble subtotal = subtotal(precio, tiempoTotal, cantidaMaletas);\r\n\t\t\t\tString tipoDescuento = \"\";\r\n\t\t\t\tdouble porcDescuento = 0;\r\n\t\t\t\tdouble descuento = descuento(subtotal, porcDescuento);\r\n\t\t\t\tdouble precioNeto = precioNeto(subtotal, descuento);\r\n\t\t\t\tdouble iva = 0;\r\n\t\t\t\tdouble montoIVA = montoIVA(precioNeto, iva);\r\n\t\t\t\tdouble precioFinal = precioFinal(precioNeto, montoIVA);\r\n\t\t\t\t//actualizar detalle\r\n\t\t\t\tupdateBodyOut( idd, idtramite_d, tiempoTotal , subtotal, tipoDescuento, porcDescuento, descuento, precioNeto, iva, montoIVA, precioFinal );\r\n\t\t\t }\r\n\t\t\t \r\n\t\t }\r\n\t\treturn update;\r\n\t}", "private void populaAluno()\n {\n Calendar nasc = Calendar.getInstance();\n nasc.set(Calendar.DAY_OF_MONTH, 24);\n nasc.set(Calendar.MONTH, 03);\n nasc.set(Calendar.YEAR, 1989);\n Aluno c = new Aluno();\n c.setNome(\"Christian \");\n c.setEmail(\"[email protected]\");\n c.setCpf(\"33342523501\");\n c.setAltura(1.76);\n c.setPeso(70);\n c.setSenha(CriptografiaLogic.encriptar(\"r\"));\n c.setRg(\"22233344401\");\n c.setDataNascimento(nasc);\n c.setNumSolicitacao(0);\n alunoDAO.insert(c);\n\n for (int i = 1; i < 500; i++)\n {\n nasc.set(Calendar.DAY_OF_MONTH, NumberLogic.randomInteger(1, 28));\n nasc.set(Calendar.MONTH, NumberLogic.randomInteger(1, 12));\n nasc.set(Calendar.YEAR, NumberLogic.randomInteger(1940, 1995));\n Aluno a = new Aluno();\n a.setNome(\"Aluno \" + i);\n a.setEmail(\"aluno\" + i + \"@gmail.com\");\n a.setCpf(String.valueOf(NumberLogic.randomInteger(100000000, 999999999)));\n a.setAltura(NumberLogic.randomDouble(1.60d, 1.99d));\n a.setPeso(NumberLogic.randomInteger(60, 100));\n a.setSenha(CriptografiaLogic.encriptar(\"123\"));\n a.setRg(String.valueOf(NumberLogic.randomInteger(100000000, 999999999)));\n a.setDataNascimento(nasc);\n a.setNumSolicitacao(0);\n alunoDAO.insert(a);\n }\n }", "public void introducirConsumosHabitacion(TablaModelo modelo,String idHabitacion) {\n int idHabitacionInt = Integer.parseInt(idHabitacion);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT CONSUMO_RESTAURANTE.Id_Consumo,CONSUMO_RESTAURANTE.Id_Alojamiento,CONSUMO_RESTAURANTE.Nombre_Comida,CONSUMO_RESTAURANTE.Precio_Comida,CONSUMO_RESTAURANTE.Cantidad,CONSUMO_RESTAURANTE.Fecha_Consumo FROM CONSUMO_RESTAURANTE JOIN ALOJAMIENTO JOIN RESERVACION WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND ALOJAMIENTO.Id=CONSUMO_RESTAURANTE.Id_Alojamiento AND RESERVACION.Id_Habitacion=?\");\n declaracion.setInt(1, idHabitacionInt);// mira los consumo de unas fechas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[7];// mira los consumo de unas fechas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);// mira los consumo de unas fechas\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);\n objeto[4] = resultado.getInt(5);// mira los consumo de unas fechas\n objeto[5] = resultado.getDate(6);\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;// mira los consumo de unas fechas\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void ReservaEfetivadas () {\n Date hoje = new Date ();\n for (int z = 0; z < vecReserva.size(); z++) {\n if (((int) ((((entReserva)vecReserva.elementAt(z)).getDatain().getTime() - (hoje.getTime())) / 86400000L)) == 0){// Reserva será relaizada hj\n if (((entReserva)vecReserva.elementAt(z)).getPagamento().getSituacao() == 0){//Cliente fez todo o pagamento e o quarto será\n vecReservaEfetivadas.add(vecReserva.elementAt(z));\n }\n \n }\n }\n }", "public void calcularCost() {\r\n cost = 0;\r\n int a = 0;\r\n try {\r\n String r = DataR.toString()+ \" \" + horaR;\r\n String d = DataD.toString()+ \" \" + horaD;\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\r\n Date dateR = simpleDateFormat.parse(r);\r\n Date dateD = simpleDateFormat.parse(d);\r\n a = (int) ((dateD.getTime() - dateR.getTime())/(1000*3600));\r\n \r\n \r\n } catch (ParseException ex) {\r\n Logger.getLogger(Reserva.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if(a > 24) {\r\n cost += 15*(a/(24));\r\n a -= (((int)(a/24))*24);\r\n }\r\n if(a%3600 == 0) {\r\n cost += 1;\r\n }\r\n if(a%3600 > 0) {\r\n cost += 1;\r\n }\r\n \r\n }", "public int getHora(){\n return minutosStamina;\n }", "public void reporteHabitacionMasPopular(TablaModelo modelo){\n ArrayList<ControlVeces> control = new ArrayList<>();\n ControlVeces controlador;\n try {// pago de alojamiento en rango fchas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio, RESERVACION.Id_Habitacion FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Check_In=1;\");\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// pago de alojamiento en rango fchas\n String nombre = Integer.toString(resultado.getInt(6));\n int casilla = numeroObjeto(control,nombre);\n if(casilla>=0){// maneja el resultado// pago de alojamiento en rango fchas\n control.get(casilla).setVeces(control.get(casilla).getVeces()+1);\n }else{// maneja el resultado\n controlador = new ControlVeces(nombre);// pago de alojamiento en rango fchas\n control.add(controlador);\n }\n } // maneja el resultado \n ordenamiento(control);\n int numero = control.size()-1;// el de hasta arriba es el que mas elementos tiene \n String idHabitacionMasPopular = control.get(numero).getNombre();\n this.habitacionPopular= idHabitacionMasPopular;\n introducirDatosHabitacionMasPopular(modelo, idHabitacionMasPopular);\n } catch (SQLException ex) {\n ex.printStackTrace();\n } catch(Exception e){\n \n }\n }", "public static int obterQtdeHorasEntreDatas(Date dataInicial, Date dataFinal) {\r\n\t\tCalendar start = Calendar.getInstance();\r\n\t\tstart.setTime(dataInicial);\r\n\t\t// Date startTime = start.getTime();\r\n\t\tif (!dataInicial.before(dataFinal))\r\n\t\t\treturn 0;\r\n\t\tfor (int i = 1;; ++i) {\r\n\t\t\tstart.add(Calendar.HOUR, 1);\r\n\t\t\tif (start.getTime().after(dataFinal)) {\r\n\t\t\t\tstart.add(Calendar.HOUR, -1);\r\n\t\t\t\treturn (i - 1);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public long reserva_de_entradas(int identificador_evento, Date fechaevento, Horario[] listahorarios ) throws ParseException {\n fgen.info (\"Identificador del evento\" + identificador_evento);\n fgen.info (\"Fecha del evento\" + fechaevento);\n ArrayList<Horario> horariosReserva = new ArrayList<Horario>();\n for (int i = 0; i < listahorarios.length; i++) {\n \n Horario horario = listahorarios[i];\n fgen.info (\"Horario : \" + horario.getHorario().toString()); \n horariosReserva.add(horario);\n List<Disponibilidad> listadisponibles = listahorarios[i].disponibilidades;\n for (int j = 0; j < listadisponibles.size() ; j++) { \n fgen.info (\" Disponibilidad - Cantidad: \" + listadisponibles.get(j).getCantidad());\n fgen.info (\" Disponibilidad - Precio: \" + listadisponibles.get(j).getPrecio());\n fgen.info (\" Disponibilidad - Sector: \" + listadisponibles.get(j).getSector());\n } \n \n \n } \n //Inicializo o tomo lo que esta en memoria de la lista de reservas\n ListaReservas reservas= new ListaReservas(); \n // busco el evento y que la lista de horarios sea en la que quiero reservar\n ListaEventos eventos = new ListaEventos();\n Calendar c = Calendar.getInstance();\n c.setTime(fechaevento);\n Evento e = eventos.buscarEvento(identificador_evento, c);\n List<Horario> horariosRetornar = new ArrayList<Horario>();\n if(e != null)\n {\n horariosRetornar = e.getHorarios();\n } \n \n if (horariosRetornar != null)\n {\n for (int i = 0; i < horariosRetornar.size(); i++) {\n for (int j = 0; j < listahorarios.length; j++) {\n Date fechaE = horariosRetornar.get(i).getHorario().getTime(); \n Date fechaEventoDate = listahorarios[j].hora.getTime(); \n if(fechaE.equals(fechaEventoDate)) \n { for (int k = 0; k < horariosRetornar.get(i).disponibilidades.size(); k++) {\n for (int l = 0; l < listahorarios[j].disponibilidades.size(); l++) {\n Disponibilidad d= horariosRetornar.get(i).disponibilidades.get(k);\n Disponibilidad r= listahorarios[j].disponibilidades.get(l);\n if (d.cantidad >= r.cantidad && d.sector.equalsIgnoreCase(r.sector) && d.precio==r.precio)\n {\n d.setCantidad(d.cantidad-r.cantidad);\n //Reserva reserv= new Reserva();\n //reservas.contador_Id= reservas.contador_Id +1;\n //reserv.idReserva= reservas.contador_Id;\n //reserv.Estado=1;\n //reserv.idEvento = identificador_evento;\n //reserv.horarios.add(listahorarios[j]);\n //reservas.listaReserva.add(reserv);\n //return reserv.idReserva;\n }\n else if(d.cantidad < r.cantidad && d.sector.equalsIgnoreCase(r.sector) && d.precio==r.precio)\n {\n //Si hay alguna solicitud de de reserva que no se pueda cumplir. Re reorna 0.\n //TODO: Hay que volver para atras las cantidades modificadas.\n return 0;\n }\n \n }\n \n }\n }\n }\n }\n Reserva reserv= new Reserva();\n reservas.contador_Id= reservas.contador_Id +1;\n reserv.idReserva= reservas.contador_Id;\n reserv.Estado=1;\n reserv.idEvento = identificador_evento;\n reserv.horarios = horariosReserva;\n reserv.fechaEvento = c;\n reservas.listaReserva.add(reserv);\n return reserv.idReserva;\n }\n \n return 0;\n }", "@Scheduled(fixedDelay = 86400000)\n\tpublic void contabilizarDiarias() {\n\t\t\n\t\t// Obtem apenas os hospedes que estao no hotel (Data de saida como null)\n\t\tList<Hospede> hospedes = hospedeRepository.obterHospedes();\n\t\t\n\t\tfor(Hospede hospede : hospedes) {\n\t\t\t\n\t\t\t// Verifica se houve alguma cobrança do hospede na data atual\n\t\t\tList<Diaria> diarias = diariaRepository.obterDiariasContabilizadas(LocalDate.now(), hospede.getId());\n\t\t\t\n\t\t\t// Se nao houve nenhuma cobrança ainda, sera contabilizado a cobrança da diaria do hospede\n\t\t\tif(diarias.isEmpty()) {\n\t\t\t\t\n\t\t\t\tCheckIn checkIn = checkInRepository.obterCheckIn(hospede.getId());\n\t\t\t\t\n\t\t\t\tLocalDateTime dataAtual = LocalDateTime.now();\n\t\t\t\t\n\t\t\t\tif(dataAtual.getDayOfWeek() == DayOfWeek.SATURDAY || dataAtual.getDayOfWeek() == DayOfWeek.SUNDAY) { // SABADO OU DOMINGO\n\t\t\t\t\t\n\t\t\t\t\tif(checkIn.getAdicionalVeiculo()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tcheckIn.setTotal(checkIn.getTotal() + Constantes.DIARIA_FINAL_SEMANA + Constantes.ADICIONAL_VEICULO_FINAL_SEMANA);\n\t\t\t\t\t\t\n\t\t\t\t\t\thospede.setValorGasto(hospede.getValorGasto() + Constantes.DIARIA_FINAL_SEMANA + Constantes.ADICIONAL_VEICULO_FINAL_SEMANA);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t\n\t\t\t\t\t\tcheckIn.setTotal(checkIn.getTotal() + Constantes.DIARIA_FINAL_SEMANA);\n\t\t\t\t\t\t\n\t\t\t\t\t\thospede.setValorGasto(hospede.getValorGasto() + Constantes.DIARIA_FINAL_SEMANA);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse { // ALGUM DIA DA SEMANA\n\t\t\t\t\t\n\t\t\t\t\tif(checkIn.getAdicionalVeiculo()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tcheckIn.setTotal(checkIn.getTotal() + Constantes.DIARIA_SEMANA + Constantes.ADICIONAL_VEICULO_SEMANA);\n\t\t\t\t\t\t\n\t\t\t\t\t\thospede.setValorGasto(hospede.getValorGasto() + Constantes.DIARIA_SEMANA + Constantes.ADICIONAL_VEICULO_SEMANA);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t\n\t\t\t\t\t\tcheckIn.setTotal(checkIn.getTotal() + Constantes.DIARIA_SEMANA);\n\t\t\t\t\t\t\n\t\t\t\t\t\thospede.setValorGasto(hospede.getValorGasto() + Constantes.DIARIA_SEMANA);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\thospedeRepository.save(hospede);\n\t\t\t\t\n\t\t\t\tcheckInRepository.save(checkIn);\n\t\t\t\t\n\t\t\t\t// REGISTRA QUE O HOSPEDE JA FOI COBRADO NO DIA, EVITA DUPLICIDADE NAS COBRANÇAS\n\t\t\t\tdiariaRepository.save(new Diaria(LocalDate.now(), hospede.getId(), true));\n\t\t\t\t\n\t\t\t\tlog.info(\"DIARIA DO HOSPEDE ID = \" + hospede.getId() + \"FOI CONTABILIZADA!\");\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic List<ControlDiarioAlertaDto> convertEntityMenorH(int mes, int year, int diaI, int diaF) {\n\n\t\tList<ControlDiarioAlertaDto> controlAlertas = new ArrayList<ControlDiarioAlertaDto>();\n\n\t\ttry {\n\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"hh:mm\"); // if 24 hour format\n\t\t\tDate d1;\n\t\t\tTime ppstime;\n\n\t\t\td1 = (java.util.Date) format.parse(\"09:00:00\");\n\n\t\t\tppstime = new java.sql.Time(d1.getTime());\n\n\t\t\t// System.out.println(d1);\n\t\t\t// System.out.println(ppstime);\n\n\t\t\t// Llamado al metodo que me trae todos los datos de la tabla tblcontrol_diario\n\t\t\t// de acuerdo al rango (mes, anio, dia inicial , dia final)\n\t\t\tList<ControlDiario> controlD = getControlDiarioService().findAllRange(mes, year, diaI, diaF);\n\n\t\t\tString alerta = \"\";\n\n\t\t\tControlDiarioAlertaDto controlDA = null;\n\t\t\tfor (ControlDiario controlDiario : controlD) {\n\t\t\t\tif (controlDiario.getTiempo().getHours() < prop.getHorasLaboradas()) {\n\t\t\t\t\talerta = \"EL USUARIO NO CUMPLE CON LAS 9 HORAS ESTABLECIDAS\";\n\t\t\t\t\t// System.out.println(\"EL usuario :\" + controlDiario.getNombre() + \" no cumplio\n\t\t\t\t\t// las 9 horas correspondietes\");\n\n\t\t\t\t\t// se carga el DTO solo si el usuario no cumple con las horas establecidas\n\t\t\t\t\tcontrolDA = new ControlDiarioAlertaDto(controlDiario.getFecha().toString(),\n\t\t\t\t\t\t\tString.valueOf(controlDiario.getCodigoUsuario()), controlDiario.getNombre(),\n\t\t\t\t\t\t\tcontrolDiario.getEntrada().toString(), controlDiario.getSalida().toString(),\n\t\t\t\t\t\t\tcontrolDiario.getTiempo().toString(), alerta);\n\n\t\t\t\t\t// Se agrega a la lista de controlDiarioalertaDTO para returnarlo para generar\n\t\t\t\t\t// el reporte\n\t\t\t\t\tcontrolAlertas.add(controlDA);\n\n\t\t\t\t} else {\n\t\t\t\t\talerta = \"\";\n\t\t\t\t}\n\n\t\t\t\t// System.out.println(controlDA.toString());\n\n\t\t\t}\n\n\t\t\treturn controlAlertas;\n\n\t\t} catch (Exception e) {\n\n\t\t\tSystem.out.println(e);\n\n\t\t}\n\n\t\treturn controlAlertas;\n\t}", "private void procurarData() {\n if (jDateIni.getDate() != null && jDateFim.getDate() != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String data = sdf.format(jDateIni.getDate());\n String data2 = sdf.format(jDateFim.getDate());\n carregaTable(id, data, data2);\n JBreg.setEnabled(false);\n }\n }", "void MontaValores(){\r\n // 0;0;-23,3154166666667;-51,1447783333333;0 // Extrai os valores e coloca no objetos\r\n // Dis;Dir;Lat;Long;Velocidade\r\n // Quebra de Rota lat=-999.999 long=-999.999 ==> Marca ...\r\n \r\n int ind=0;\r\n NMEAS=NMEA.replace(\",\" , \".\");\r\n \r\n //1)\r\n dists=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind));\r\n Distancia=Double.valueOf(dists);\r\n ind=ind+dists.length()+1;\r\n \r\n //2)\r\n dirs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Direcao=Double.valueOf(dirs);\r\n ind=ind+dirs.length()+1;\r\n \r\n //3)\r\n lats=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Lat=Double.valueOf(lats);\r\n ind=ind+lats.length()+1;\r\n \r\n //4)\r\n longs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Long=Double.valueOf(longs);\r\n ind=ind+longs.length()+1;\r\n \r\n //5)\r\n vels=NMEAS.substring(ind,NMEAS.length());\r\n // Transforma de Knots para Km/h\r\n Velocidade=Double.valueOf(vels)/100*1.15152*1.60934;\r\n vels=String.valueOf(Velocidade);\r\n ind=ind+vels.length()+1;\r\n \r\n }", "public static void main(String[] args) {\n int horaSalida;\n int minutosSalida;\n int horaLlegada;\n int minutosLlegada;\n //Salida:\n int duracion;\n //condiciones y restricciones: el vuelo puede pasar de medianoche y no dura mas de 24h\n Scanner sc = new Scanner(System.in);\n do {\n System.out.println(\"Ingrese la hora de salida\");\n horaSalida = sc.nextInt();\n System.out.println(\"Ingrese los minutos\");\n minutosSalida = sc.nextInt();\n\n System.out.println(\"Ingrese la hora de llegada\");\n horaLlegada = sc.nextInt();\n System.out.println(\"Ingrese los minutos\");\n minutosLlegada = sc.nextInt();\n if (horaSalida > 24 || horaLlegada > 24 || minutosSalida > 60 || minutosLlegada > 60) {\n System.out.println(\"Los datos no han sido ingresados correctamente, vuelva a intentarlo\");\n }\n } while (horaSalida > 24 || horaLlegada > 24 || minutosSalida > 60 || minutosLlegada > 60);\n\n //Conversion de horas y minutos en solo minutos 19<2\n if (horaSalida > horaLlegada) {//caso 1\n horaLlegada = 24 + horaLlegada;//para poder restarlo a eso las h y m de salida\n }\n if (horaLlegada == horaSalida && (minutosSalida > minutosLlegada || minutosSalida == minutosLlegada)) {//caso 2\n horaLlegada = 24 + horaLlegada;//para poder restarlo a eso las h y m de salida\n }\n duracion = ((horaLlegada * 60) + minutosLlegada) - ((horaSalida * 60) + minutosSalida);\n\n if (duracion >= 1440) {//24*60=1440 si se pasa esto significa que el vuelo dura mas de 24h ex: 3:41 y llego 3:20\n System.out.print(\"El vuelo no puede durar mas de 24 horas \");\n } else {\n System.out.print(\"La duracion del vuelo es \" + duracion + \" minutos o \");\n //CODICIONES PARA EL AFFICHAGE\n if ((duracion / 60) < 10) {\n System.out.print(\"0\");\n }\n System.out.print(duracion / 60 + \"h\");\n\n if ((duracion % 60) < 10) {\n System.out.print(\"0\");\n }\n System.out.print(duracion % 60 + \"m\");\n }\n }", "public Float consultarScript(Indicador indicador){\n Connection con = ConexaoCliente.getConexao();\n Float resultadoConsulta=null;\n try {\n Statement statement = con.createStatement();\n //Executa o Script do Indicador\n ResultSet result = statement.executeQuery(indicador.getScript());\n\n while(result.next()){\n // CONFIGURAR PARÂMETRO CONFORME O SCRIPT ******\n resultadoConsulta=result.getFloat(1);\n }\n\n statement.close();\n\n } catch (SQLException ex) {\n Logger.getLogger(IndicadorDao.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"IndicadorDao.consultarScript. \\n\"+ex.toString());\n ex.printStackTrace();\n }finally{\n try{\n con.close();\n }catch(SQLException ex){\n ex.printStackTrace();\n Logger.getLogger(IndicadorDao.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"IndicadorDao.consultarScript. fechar conexão\\n\"+ex.toString());\n }\n\n }\n\n Calendar calendar = new GregorianCalendar();\n Date data = new Date();\n calendar.setTime(data);\n \n try{\n Movimentacao mov = new Movimentacao();\n //Atribui valores para gravar na tabela [ tb_movimentacao ]\n mov.setDataMovimentacao(calendar.getTime());\n mov.setIdIndicador(mov.getIdIndicador());\n mov.setStatus(\"T\");\n mov.setValorRetorno(mov.getValorRetorno());\n\n MovimentacaoDao movDao = new MovimentacaoDao();\n movDao.gravarMovimentacao(mov);\n\n }catch(Exception e){\n e.printStackTrace();\n }\n \n return resultadoConsulta;\n }", "public void hora()\n {\n horaTotal = HoraSalida - HoraLlegada;\n\n }", "@Override\n public Collection<resumenSemestre> resumenSemestre(int idCurso, int mesApertura, int mesCierre) throws Exception {\n Collection<resumenSemestre> retValue = new ArrayList();\n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"select ma.nombremateria, p.idcuestionario as test, \"\n + \"round(avg(p.puntaje),2) as promedio, cue.fechainicio, MONTH(cue.fechacierre) as mes \"\n + \"from puntuaciones p, cuestionario cue, curso cu, materia ma \"\n + \"where cu.idcurso = ma.idcurso and ma.idmateria = cue.idmateria \"\n + \"and cue.idcuestionario = p.idcuestionario and cu.idcurso = ? \"\n + \"and MONTH(cue.fechacierre) >= ? AND MONTH(cue.fechacierre) <= ? and YEAR(cue.fechacierre) = YEAR(NOW())\"\n + \"GROUP by ma.nombremateria, MONTH(cue.fechacierre) ORDER BY ma.nombremateria\");\n pstmt.setInt(1, idCurso );\n pstmt.setInt(2, mesApertura);\n pstmt.setInt(3, mesCierre);\n rs = pstmt.executeQuery();\n while (rs.next()) { \n retValue.add(new resumenSemestre(rs.getString(\"nombremateria\"), rs.getInt(\"test\"), rs.getInt(\"promedio\"), rs.getInt(\"mes\")));\n }\n return retValue;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return retValue;\n\n\n }", "private void obtenerGastosDiariosMes() {\n\t\t// Obtenemos las fechas actuales inicial y final\n\t\tCalendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n int diaFinalMes = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);\n\n\t\tList<Movimiento> movimientos = this.movimientoService.obtenerMovimientosFechaUsuario(idUsuario, LocalDate.of(LocalDate.now().getYear(),LocalDate.now().getMonthValue(),1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLocalDate.of(LocalDate.now().getYear(),LocalDate.now().getMonthValue(), diaFinalMes));\n\t\tList<Double> listaGastos = new ArrayList<Double>();\n\t\tList<String> listaFechas = new ArrayList<String>();\n\t\t\n\t\tDate fechaUtilizadaActual = null;\n\t\tdouble gastoDiario = 0;\n\t\t\n\t\tfor (Iterator iterator = movimientos.iterator(); iterator.hasNext();) {\n\t\t\tMovimiento movimiento = (Movimiento) iterator.next();\n\t\t\tif(fechaUtilizadaActual == null) { //Comprobamos si se acaba de entrar en el bucle para inicializar la fecha del movimiento\n\t\t\t\tfechaUtilizadaActual = movimiento.getFecha();\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Si hemos cambiado de fecha del movimiento se procede a guardar los datos recogidos\n\t\t\tif(!fechaUtilizadaActual.equals(movimiento.getFecha())) {\n\t\t\t\tlistaGastos.add(gastoDiario);\n\t\t\t\tlistaFechas.add(fechaUtilizadaActual.getDate()+\"/\"+Utils.getMonthForInt(fechaUtilizadaActual.getMonth()).substring(0, 3));\n\t\t\t\tgastoDiario = 0; // Reiniciamos el contador del gasto\n\t\t\t\tfechaUtilizadaActual = movimiento.getFecha(); // Almacenemos la fecha del nuevo gasto\n\t\t\t}\n\t\t\t\n\t\t\t// Si el movimiento que se ha realizado es un gasto lo sumamos al contador de gasto\n\t\t\tif(movimiento.getTipo().equals(TipoMovimiento.GASTO)) {\n\t\t\t\tgastoDiario += movimiento.getCantidad();\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Comprobamos si es el ultimo item del iterador y almacenamos sus datos\n\t\t\tif(!iterator.hasNext()) {\n\t\t\t\tlistaGastos.add(gastoDiario);\n\t\t\t\tlistaFechas.add(fechaUtilizadaActual.getDate()+\"/\"+Utils.getMonthForInt(fechaUtilizadaActual.getMonth()).substring(0, 3));\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tthis.listadoGastosDiariosDiagrama = new Double[listaGastos.size()];\n\t\tthis.listadoGastosDiariosDiagrama = listaGastos.toArray(this.listadoGastosDiariosDiagrama);\n\t\tthis.fechasDiagrama = new String[listaFechas.size()];\n\t\tthis.fechasDiagrama = listaFechas.toArray(this.fechasDiagrama);\n\t\t\n\t}", "private void atualizaHistoricoPendenteRecarga(Date datExecucao) throws SQLException\n\t{\n\t\tCalendar calExecucao = Calendar.getInstance();\n\t\tcalExecucao.setTime(datExecucao);\n\t\tint diaExecucao = calExecucao.get(Calendar.DAY_OF_MONTH);\n\t\tConnection connClientes = null;\n//\t\tPreparedStatement prepClientes = null;\n\t\tPreparedStatement prepInsert = null;\n//\t\tResultSet resultClientes = null;\n\t\t\n\t\t//Parametros para consulta no banco de dados de assinantes pendentes de primeira recarga \n\t\tString datEntradaPromocao = null;\n\t\t\n\t\tswitch(diaExecucao)\n\t\t{\n\t\t\tcase 11:\n\t\t\t\tdatEntradaPromocao = \"DAT_ENTRADA_PROMOCAO >= TO_DATE('01/01/2005', 'DD/MM/YYYY') AND \" +\n\t\t\t\t\t\t\t\t\t \"DAT_ENTRADA_PROMOCAO < TO_DATE('09/02/2005', 'DD/MM/YYYY') \";\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\tdatEntradaPromocao = \"DAT_ENTRADA_PROMOCAO >= TO_DATE('09/02/2005', 'DD/MM/YYYY') AND \" +\n\t\t\t\t \t\t\t\t\t \"DAT_ENTRADA_PROMOCAO < TO_DATE('01/04/2005', 'DD/MM/YYYY') \";\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\tdatEntradaPromocao = \"DAT_ENTRADA_PROMOCAO >= TO_DATE('01/04/2005', 'DD/MM/YYYY') AND \" +\n\t\t\t\t \t\t\t\t\t \"DAT_ENTRADA_PROMOCAO < TO_DATE('01/07/2005', 'DD/MM/YYYY') \";\n\t\t\t\tbreak;\n\t\t\t//Caso contrario, nao faz nada e termina a execucao\n\t\t\tdefault:\n\t\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry\n\t\t{\n\t\t\t//Inserindo registros no historico\n\t\t\tString sqlInsert = \"INSERT INTO TBL_GER_HISTORICO_PULA_PULA \" +\n\t\t \t \t\t\t\t \"(IDT_MSISDN, IDT_PROMOCAO, DAT_EXECUCAO, DES_STATUS_EXECUCAO, \" +\n\t\t\t\t\t\t\t \" IDT_CODIGO_RETORNO, VLR_CREDITO_BONUS) \" +\n\t\t\t\t\t\t\t \"SELECT IDT_MSISDN, IDT_PROMOCAO, ?, 'SUCESSO', ?, 0 \" +\n\t\t\t\t\t\t\t \"FROM TBL_GER_PROMOCAO_ASSINANTE \" +\n\t\t\t\t\t\t\t \"WHERE IDT_PROMOCAO = \" + String.valueOf(ID_PENDENTE_RECARGA) + \n\t\t\t\t\t\t\t \" AND \" + datEntradaPromocao;\n\t\t\t\n\t\t\tconnClientes = DriverManager.getConnection(\"jdbc:oracle:oci8:@\" + sid, usuario,senha);\n\t\t\tprepInsert = connClientes.prepareStatement(sqlInsert);\n\t\t\tprepInsert.setDate (1, new java.sql.Date(datExecucao.getTime()));\n\t\t\tprepInsert.setString(2, (new DecimalFormat(\"0000\")).format(RET_PULA_PULA_PENDENTE_RECARGA));\n\t\t\tprepInsert.executeUpdate();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif(prepInsert != null) prepInsert.close();\n\t\t\tif(connClientes != null) connClientes.close();\n\t\t}\n\t}", "public CalMetasDTO cargarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta) {\n/* */ try {\n/* 416 */ String s = \"select m.*,\";\n/* 417 */ s = s + \"tm.descripcion as nombreTipoMedicion,\";\n/* 418 */ s = s + \"est.descripcion as nombreEstado,\";\n/* 419 */ s = s + \"Um.Descripcion as nombre_unidad_medida\";\n/* 420 */ s = s + \" from cal_plan_metas m,sis_multivalores tm,sis_multivalores est,Sis_Multivalores Um\";\n/* 421 */ s = s + \" where \";\n/* 422 */ s = s + \" m.tipo_medicion =tm.valor\";\n/* 423 */ s = s + \" and tm.tabla='CAL_TIPO_MEDICION'\";\n/* 424 */ s = s + \" and m.estado =est.valor\";\n/* 425 */ s = s + \" and est.tabla='CAL_ESTADO_META'\";\n/* 426 */ s = s + \" and m.Unidad_Medida = Um.Valor\";\n/* 427 */ s = s + \" and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META'\";\n/* 428 */ s = s + \" and m.codigo_ciclo=\" + codigoCiclo;\n/* 429 */ s = s + \" and m.codigo_plan=\" + codigoPlan;\n/* 430 */ s = s + \" and m.codigo_meta=\" + codigoMeta;\n/* 431 */ boolean rtaDB = this.dat.parseSql(s);\n/* 432 */ if (!rtaDB) {\n/* 433 */ return null;\n/* */ }\n/* */ \n/* 436 */ this.rs = this.dat.getResultSet();\n/* 437 */ if (this.rs.next()) {\n/* 438 */ return leerRegistro();\n/* */ }\n/* */ }\n/* 441 */ catch (Exception e) {\n/* 442 */ e.printStackTrace();\n/* 443 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarCalMetas \", e);\n/* */ } \n/* 445 */ return null;\n/* */ }", "public java.sql.ResultSet consultaporhorafecha(String hora,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where phm.horas='\"+hora+\"' and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporhorafecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public CalMetasDTO leerRegistro() {\n/* */ try {\n/* 56 */ CalMetasDTO reg = new CalMetasDTO();\n/* 57 */ reg.setCodigoCiclo(this.rs.getInt(\"codigo_ciclo\"));\n/* 58 */ reg.setCodigoPlan(this.rs.getInt(\"codigo_plan\"));\n/* 59 */ reg.setCodigoMeta(this.rs.getInt(\"codigo_meta\"));\n/* 60 */ reg.setCodigoObjetivo(this.rs.getInt(\"codigo_objetivo\"));\n/* 61 */ reg.setDescripcion(this.rs.getString(\"descripcion\"));\n/* 62 */ reg.setJustificacion(this.rs.getString(\"justificacion\"));\n/* 63 */ reg.setValorMeta(this.rs.getDouble(\"valor_meta\"));\n/* 64 */ reg.setTipoMedicion(this.rs.getString(\"tipo_medicion\"));\n/* 65 */ reg.setFuenteDato(this.rs.getString(\"fuente_dato\"));\n/* 66 */ reg.setAplicaEn(this.rs.getString(\"aplica_en\"));\n/* 67 */ reg.setUnidadMedida(this.rs.getString(\"unidad_medida\"));\n/* 68 */ reg.setValorMinimo(this.rs.getDouble(\"valor_minimo\"));\n/* 69 */ reg.setValorMaximo(this.rs.getDouble(\"valor_maximo\"));\n/* 70 */ reg.setMes01(this.rs.getString(\"mes01\"));\n/* 71 */ reg.setMes02(this.rs.getString(\"mes02\"));\n/* 72 */ reg.setMes03(this.rs.getString(\"mes03\"));\n/* 73 */ reg.setMes04(this.rs.getString(\"mes04\"));\n/* 74 */ reg.setMes05(this.rs.getString(\"mes05\"));\n/* 75 */ reg.setMes06(this.rs.getString(\"mes06\"));\n/* 76 */ reg.setMes07(this.rs.getString(\"mes07\"));\n/* 77 */ reg.setMes08(this.rs.getString(\"mes08\"));\n/* 78 */ reg.setMes09(this.rs.getString(\"mes09\"));\n/* 79 */ reg.setMes10(this.rs.getString(\"mes10\"));\n/* 80 */ reg.setMes11(this.rs.getString(\"mes11\"));\n/* 81 */ reg.setMes12(this.rs.getString(\"mes12\"));\n/* 82 */ reg.setEstado(this.rs.getString(\"estado\"));\n/* 83 */ reg.setTipoGrafica(this.rs.getString(\"tipo_grafica\"));\n/* 84 */ reg.setFechaInsercion(this.rs.getString(\"fecha_insercion\"));\n/* 85 */ reg.setUsuarioInsercion(this.rs.getString(\"usuario_insercion\"));\n/* 86 */ reg.setFechaModificacion(this.rs.getString(\"fecha_modificacion\"));\n/* 87 */ reg.setUsuarioModificacion(this.rs.getString(\"usuario_modificacion\"));\n/* 88 */ reg.setNombreTipoMedicion(this.rs.getString(\"nombreTipoMedicion\"));\n/* 89 */ reg.setNombreEstado(this.rs.getString(\"nombreEstado\"));\n/* 90 */ reg.setNombreUnidadMedida(this.rs.getString(\"nombre_unidad_medida\"));\n/* */ \n/* */ try {\n/* 93 */ reg.setNumeroAcciones(this.rs.getInt(\"acciones\"));\n/* */ }\n/* 95 */ catch (Exception e) {}\n/* */ \n/* */ \n/* */ \n/* 99 */ return reg;\n/* */ }\n/* 101 */ catch (Exception e) {\n/* 102 */ e.printStackTrace();\n/* 103 */ Utilidades.writeError(\"CalPlanMetasFactory:leerRegistro \", e);\n/* */ \n/* 105 */ return null;\n/* */ } \n/* */ }", "public static ArrayList <FichajeOperarios> obtenerFichajeOperarios(Date fecha) throws SQLException{\n Connection conexion=null;\n Connection conexion2=null;\n ResultSet resultSet;\n PreparedStatement statement;\n ArrayList <FichajeOperarios> FichajeOperarios=new ArrayList();\n Conexion con=new Conexion();\n\n //java.util.Date fecha = new Date();\n \n //para saber la fecha actual\n Date fechaActual = new Date();\n DateFormat formatoFecha = new SimpleDateFormat(\"dd/MM/yyyy\");\n \n //System.out.println(formatoFecha.format(fechaActual));\n \n try {\n\n conexion = con.connecta();\n\n\n statement=conexion.prepareStatement(\"select codigo,nombre,HORA_ENTRADA,centro from \"\n + \" (SELECT op.codigo,op.nombre,F2.FECHA AS FECHA_ENTRADA,F2.HORA AS HORA_ENTRADA,F2.FECHA+f2.HORA AS FICHA_ENTRADA,centro.DESCRIP as CENTRO,\"\n + \" (select top(1) f22.fecha \"\n + \" from e001_fichajes2 as f22 where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno order by f22.recno) AS FECHA_SALIDA,\"\n + \" (select top(1) f22.hora \"\n + \" from e001_fichajes2 as f22 \"\n + \" where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno \"\n + \" order by f22.recno) AS HORA_SALIDA,\"\n + \" (select top(1) f22.fecha \"\n + \" from e001_fichajes2 as f22 \"\n + \" where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno \"\n + \" order by f22.recno)+\"\n + \" (select top(1) f22.hora \"\n + \" from e001_fichajes2 as f22 \"\n + \" where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno \"\n + \" order by f22.recno) as FICHA_SALIDA \"\n + \" FROM E001_OPERARIO as op left join e001_fichajes2 as f2 on op.codigo=f2.OPERARIO and f2.tipo='E' JOIN E001_centrost as centro on f2.CENTROTRAB=centro.CODIGO \"\n + \" WHERE F2.FECHA='\"+formatoFecha.format(fecha)+\"' and f2.HORA=(select max(hora) from e001_fichajes2 as f22 where f2.operario=f22.operario and f22.tipo='e' and f22.FECHA=f2.FECHA)) as a\"\n + \" where FICHA_SALIDA is null \"\n + \" ORDER BY codigo\");\n \n resultSet = statement.executeQuery();\n while (resultSet.next()) {\n FichajeOperarios fiop=new FichajeOperarios(); \n fiop.setCodigo(resultSet.getString(\"CODIGO\"));\n fiop.setNombre(resultSet.getString(\"NOMBRE\"));\n fiop.setHora_Entrada(resultSet.getString(\"HORA_ENTRADA\"));\n //fiop.setHora_Salida(resultSet.getString(\"HORA_SALIDA\"));\n fiop.setCentro(resultSet.getString(\"CENTRO\"));\n FichajeOperarios.add(fiop);\n }\n \n } catch (SQLException ex) {\n System.out.println(ex);\n \n }\n return FichajeOperarios;\n \n \n }", "public void consultaTest() throws Exception{\n\t\t\n\t ResultSet rs = statement.executeQuery(\"select * from statistics\");\n\t \n\t \n\t while(rs.next())\n\t {\n\t\t \n\t\t DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss.SSS\");\n\t\t Date date = df.parse(rs.getString(\"timeActual\"));\n\t\t Calendar cal = Calendar.getInstance();\n\t\t cal.setTime(date);\n\t\t \n\t\t String completoDay = cal.get(Calendar.YEAR)+\"-\"+(cal.get(Calendar.MONTH) + 1)+\"-\"+ cal.get(Calendar.DAY_OF_MONTH);\n\t\t \n\t System.out.println(\"id= \" + rs.getInt(\"id\") + \" memory= \" + rs.getInt(\"memory\") + \" cpu= \" \n\t \t+ rs.getInt(\"cpu\") + \" timeActual= \" + completoDay);\n\t }\n\t \n\t if(rs != null)\n\t\t rs.close();\n\t \n\t if(connection != null)\n\t connection.close();\n\t \n\t}", "public Vector listaAsignaturas(String nombre_titulacion)\n {\n try\n {\n Date fechaActual = new Date();\n SimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\n //Se obtiene una conexion\n Connection conexion = this.bbdd.getConexion();\n\n //Se prepara la query\n String query = \"SELECT * FROM asignaturatotal \";\n query += \"WHERE fechainicio <='\" + formato.format(fechaActual) +\"' \";\n query += \"AND fechafin >= '\"+formato.format(fechaActual)+\"' AND tit_nombre='\"+nombre_titulacion+\"' AND activa = 's'\";\n\n //Se crea un vector de asignaturas\n Vector vectorAsignaturas = new Vector();\n\n //Se ejecuta la query \n Statement st = conexion.createStatement();\n ResultSet resultado = st.executeQuery(query);\n \n //Para cada fila se creará un objeto y se rellenará\n //con los valores de las columnas.\n while(resultado.next())\n {\n asignatura asignatura = new asignatura();\n \n asignatura.setCodigo(resultado.getString(\"codigo\"));\n asignatura.setTitulo(resultado.getString(\"titulo\"));\n asignatura.setFechaInicio(resultado.getDate(\"fechainicio\"));\n asignatura.setFechaFin(resultado.getDate(\"fechafin\"));\n asignatura.setResponsable(resultado.getString(\"responsable\"));\n asignatura.setEmail(resultado.getString(\"email\"));\n asignatura.setTelefono(resultado.getString(\"telefono\"));\n \n //Se añade la asignatura al vector de asignaturas\n vectorAsignaturas.add(asignatura);\n }\n\n //Se cierra la conexión\n this.bbdd.cerrarConexion(conexion);\n\n return vectorAsignaturas;\n }\n catch(SQLException e)\n {\n System.out.println(\"Error al acceder a las asignaturas de la Base de Datos: \"+e.getMessage());\n return null;\n }\n }", "public Collection pesquisarParcelamentoContaUsuario(Integer idUsuario, Date dataInicial, Date dataFinal)\n\t\t\t\t\tthrows ErroRepositorioException{\n\n\t\tCollection retorno = null;\n\t\tSession session = HibernateUtil.getSession();\n\t\tStringBuffer consulta = new StringBuffer();\n\n\t\ttry{\n\t\t\tconsulta.append(\"SELECT MPCCDFUN AS mpccdfun, \");\n\t\t\tconsulta.append(\" MPCDTMPC AS mpcdtmpc, \");\n\t\t\tconsulta.append(\" MPCHRMPC AS mpchrmpc, \");\n\t\t\tconsulta.append(\" MPCAMINI AS mpcamini, \");\n\t\t\tconsulta.append(\" MPCAMFIN AS mpcamfin, \");\n\t\t\tconsulta.append(\" MPCNNMATUSU AS mpcnnatusu, \");\n\t\t\tconsulta.append(\" MPCNNMATUSUD AS mpcnnmatusud, \");\n\t\t\tconsulta.append(\" MPCNNPREST AS mpcnnprest, \");\n\t\t\tconsulta.append(\" MPCVLENTR AS mpcvlentr, \");\n\t\t\tconsulta.append(\" MPCVLPREST AS mpcvlprest, \");\n\t\t\tconsulta.append(\" MPCVLDEBHIST AS mpcvldebhist, \");\n\t\t\tconsulta.append(\" MPCVLDEBCORR AS mpcvldebcorr, \");\n\t\t\tconsulta.append(\" MPCVLTOTSACINCL AS mpcvltotsacincl, \");\n\t\t\tconsulta.append(\" MPCVLPARCEL AS mpcvlparcel, \");\n\t\t\tconsulta.append(\" MPCNNMATGER AS mpcnnmatger \");\n\t\t\tconsulta.append(\"FROM SCITMPC \");\n\t\t\tconsulta.append(\"WHERE MPCNNMATUSU = :idUsuario \");\n\t\t\tconsulta.append(\"AND MPCDTMPC BETWEEN :dataInicial AND :dataFinal \");\n\t\t\tconsulta.append(\"ORDER BY MPCDTMPC, MPCHRMPC, MPCNNMATUSU \");\n\n\t\t\tSQLQuery query = session.createSQLQuery(consulta.toString());\n\n\t\t\t// RETORNO\n\t\t\tquery.addScalar(\"mpccdfun\", Hibernate.INTEGER);\n\t\t\tquery.addScalar(\"mpcdtmpc\", Hibernate.DATE);\n\t\t\tquery.addScalar(\"mpchrmpc\", Hibernate.INTEGER);\n\t\t\tquery.addScalar(\"mpcamini\", Hibernate.INTEGER);\n\t\t\tquery.addScalar(\"mpcamfin\", Hibernate.INTEGER);\n\t\t\tquery.addScalar(\"mpcnnatusu\", Hibernate.INTEGER);\n\t\t\tquery.addScalar(\"mpcnnmatusud\", Hibernate.INTEGER);\n\t\t\tquery.addScalar(\"mpcnnprest\", Hibernate.INTEGER);\n\t\t\tquery.addScalar(\"mpcvlentr\", Hibernate.BIG_DECIMAL);\n\t\t\tquery.addScalar(\"mpcvlprest\", Hibernate.BIG_DECIMAL);\n\t\t\tquery.addScalar(\"mpcvldebhist\", Hibernate.BIG_DECIMAL);\n\t\t\tquery.addScalar(\"mpcvldebcorr\", Hibernate.BIG_DECIMAL);\n\t\t\tquery.addScalar(\"mpcvltotsacincl\", Hibernate.BIG_DECIMAL);\n\t\t\tquery.addScalar(\"mpcvlparcel\", Hibernate.BIG_DECIMAL);\n\t\t\tquery.addScalar(\"mpcnnmatger\", Hibernate.INTEGER);\n\n\t\t\t// PARAMETROS\n\t\t\tquery.setInteger(\"idUsuario\", idUsuario);\n\t\t\tquery.setDate(\"dataInicial\", dataInicial);\n\t\t\tquery.setDate(\"dataFinal\", dataFinal);\n\n\t\t\tretorno = query.list();\n\n\t\t}catch(HibernateException e){\n\t\t\t// levanta a exceção para a próxima camada\n\t\t\tthrow new ErroRepositorioException(e, \"Erro no Hibernate\");\n\t\t}finally{\n\t\t\t// fecha a sessão\n\t\t\tHibernateUtil.closeSession(session);\n\t\t}\n\n\t\treturn retorno;\n\t}", "public ArrayList<clsPago> consultaDataPagosCuotaInicial(int codigoCli)\n { \n ArrayList<clsPago> data = new ArrayList<clsPago>(); \n try{\n bd.conectarBaseDeDatos();\n sql = \" SELECT a.id_pagos_recibo idPago, a.id_usuario, b.name name_usuario, \"\n + \" a.referencia referencia, \"\n + \" a.fecha_pago fecha_pago, a.estado, \"\n + \" a.valor valor_pago, a.id_caja_operacion, e.name_completo nombre_cliente, \"\n + \" a.fecha_pago fecha_registro\"\n + \" FROM ck_pagos_recibo AS a\"\n + \" JOIN ck_usuario AS b ON a.id_usuario = b.id_usuario\"\n + \" JOIN ck_cliente AS e ON a.codigo = e.codigo\"\n + \" WHERE a.estado = 'A'\"\n + \" AND a.cuota_inicial = 'S'\"\n + \" AND a.estado_asignado = 'N'\"\n + \" AND a.codigo = \" + codigoCli; \n \n System.out.println(sql);\n bd.resultado = bd.sentencia.executeQuery(sql);\n \n if(bd.resultado.next())\n { \n do \n { \n clsPago oListaTemporal = new clsPago();\n \n oListaTemporal.setReferencia(bd.resultado.getString(\"referencia\"));\n oListaTemporal.setFechaPago(bd.resultado.getString(\"fecha_pago\"));\n oListaTemporal.setNombreUsuario(bd.resultado.getString(\"name_usuario\"));\n oListaTemporal.setNombreCliente(bd.resultado.getString(\"nombre_cliente\"));\n oListaTemporal.setValor(bd.resultado.getDouble(\"valor_pago\"));\n oListaTemporal.setFechaRegistro(bd.resultado.getString(\"fecha_registro\"));\n oListaTemporal.setIdPago(bd.resultado.getInt(\"idPago\"));\n data.add(oListaTemporal);\n }\n while(bd.resultado.next()); \n //return data;\n }\n else\n { \n data = null;\n } \n }\n catch(Exception ex)\n {\n System.out.print(ex);\n data = null;\n } \n bd.desconectarBaseDeDatos();\n return data;\n }", "public void listar_saldoMontadoData(String data_entrega,String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_Saldo_Montado.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getSaldoVendaMontadoPorData(data_entrega, tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getTotal()});\n }\n \n \n }", "public java.sql.ResultSet consultaporespecialidadhora(String CodigoEspecialidad,String hora){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.horas='\"+hora+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidadhora \"+ex);\r\n }\t\r\n return rs;\r\n }", "public int obtenerHoraMasAccesos()\n {\n int numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora = 0;\n int horaConElNumeroDeAccesosMaximo = -1;\n\n if(archivoLog.size() >0){\n for(int horaActual=0; horaActual < 24; horaActual++){\n int totalDeAccesosParaHoraActual = 0;\n //Miramos todos los accesos\n for(Acceso acceso :archivoLog){\n if(horaActual == acceso.getHora()){\n totalDeAccesosParaHoraActual++;\n }\n }\n if(numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora<=totalDeAccesosParaHoraActual){\n numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora =totalDeAccesosParaHoraActual;\n horaConElNumeroDeAccesosMaximo = horaActual;\n }\n }\n }\n else{\n System.out.println(\"No hay datos\");\n }\n return horaConElNumeroDeAccesosMaximo;\n }", "public static void aggiornaDatiGioco(String query, Utente utente) throws SQLException{\n\t\t\tConnection con = connectToDB();\n\t\t\tStatement cmd = con.createStatement();\n\t\t\t\n\t\t\tResultSet res = cmd.executeQuery(query);\n\t\t\t\n\t\t\twhile(res.next()){\n\t\t\t\tutente.setPuntiXP(res.getInt(\"puntixp\"));\n\t\t\t\t//System.out.println(res.getInt(\"puntixp\"));\n\t\t\t}\t\n\t\t\t\n\t\t\tcloseConnectionToDB(con);\n\t\t}", "private void calcularOtrosIngresos(Ingreso ingreso)throws Exception{\n\t\tfor(IngresoDetalle ingresoDetalle : ingreso.getListaIngresoDetalle()){\r\n\t\t\tif(ingresoDetalle.getIntPersPersonaGirado().equals(ingreso.getBancoFondo().getIntPersonabancoPk())\r\n\t\t\t&& ingresoDetalle.getBdAjusteDeposito()==null){\r\n\t\t\t\tbdOtrosIngresos = ingresoDetalle.getBdMontoAbono();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@RequiresApi(api = Build.VERSION_CODES.O)\n private String obtenerSegundos(){\n try{\n this.minutos = java.time.LocalDateTime.now().toString().substring(17,19);\n }catch (StringIndexOutOfBoundsException sioobe){\n this.segundos = \"00\";\n }\n return this.minutos;\n }", "public List<Faturamento> gerarFaturamento(Banco banco,Date competenciaBase,\tint dataLimite, UsuarioInterface usuario, Date dataGeracaoPlanilha, Collection<TetoPrestadorFaturamento> tetos) throws Exception {\n\t\tSession session = HibernateUtil.currentSession();\n\t\tsession.setFlushMode(FlushMode.COMMIT);\n\t\tCriteria criteria = session.createCriteria(Prestador.class);\n\t\tList<Faturamento> faturamentos = new ArrayList<Faturamento>();\n\t\tList<AbstractFaturamento> todosFaturamentos = new ArrayList<AbstractFaturamento>();\n\t\tif (banco != null)\n\t\t\tcriteria.add(Expression.eq(\"informacaoFinanceira.banco\",banco));\n//\t\t\tcriteria.add(Expression.not(Expression.in(\"idPrestador\", AbstractFinanceiroService.getIdsPrestadoresNaoPagos())));\n\t\t\tcriteria.add(Expression.eq(\"idPrestador\",528079L));\n\t\t\t\n\t\tList<Prestador> prestadores = criteria.list();\n\n//\t\tsaveImpostos();\n\t\tint quantPrest = prestadores.size();\n\t\tint countPrest = 0;\n\t\tDate competenciaAjustada = ajustarCompetencia(competenciaBase);\n\t\t\n//\t\talimentaLista();\n\t\t\n\t\tfor (Prestador prestador : prestadores) {\n\t\t\tSystem.out.println(++countPrest + \"/\" + quantPrest + \" - Prestador: \" + prestador.getPessoaJuridica().getFantasia());\n\t\t\tif(!prestador.getTipoPrestador().equals(Prestador.TIPO_PRESTADOR_ANESTESISTA)){\n//\t\t\t\tgerarFaturamento(competenciaBase, faturamentos, competenciaAjustada, prestador, usuario, dataGeracaoPlanilha, tetos);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"Gerando os faturamentos dos procedimentos...\");\n \t\t\t\tgerarFaturamento(competenciaBase, faturamentos, competenciaAjustada, (PrestadorAnestesista)prestador, usuario);\n\t\t\t\tSystem.out.println(\"Gerando os faturamentos das guias...\");\n//\t\t\t\tgerarFaturamento(competenciaBase, faturamentos, competenciaAjustada, prestador, usuario, dataGeracaoPlanilha, tetos);\n\t\t\t\tSystem.out.println(\"Concluído Coopanest!\");\n\t\t\t}\t\t\t\t\n\t\t}\n\t\t\n\t\treturn faturamentos;\n\t}", "public static List<Punto> getPuntos(){\n\t\t\n\t\tList<Punto> puntos = new ArrayList<Punto>();\n\t\ttry{\n\n\t\t\t//-12.045916, -75.195270\n\t\t\t\n\t\t\tPunto p1 = new Punto(1,-12.037512,-75.183327,0.0);\n\t\t\tp1.setDatos(getDatos(\"16/06/2017 09:00:00\", 2 , 1));\n\t\t\t\n\t\t\tPunto p2 = new Punto(2,-12.041961,-75.184786,0.0);\n\t\t\tp2.setDatos(getDatos(\"16/06/2017 09:00:00\",1 , 2));\n\t\t\t\n\t\t\tPunto p3 = new Punto(3,-12.0381,-75.1841,0.0);\n\t\t\tp3.setDatos(getDatos(\"16/06/2017 09:00:00\",2 , 2));\n\t\t\t\n\t\t\tPunto p4 = new Punto(4,-12.041542,-75.185816,0.0);\n\t\t\tp4.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p5 = new Punto(5,-12.037764,-75.181096,0.0);\n\t\t\tp5.setDatos(getDatos(\"16/06/2017 11:15:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p6 = new Punto(6,-12.042801,-75.190108,0.0);\n\t\t\tp6.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p7 = new Punto(7,-12.04364,-75.184014,0.0);\n\t\t\tp7.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p8 = new Punto(8,-12.045739,-75.185387,0.0);\n\t\t\tp8.setDatos(getDatos(\"16/06/2017 11:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p9 = new Punto(9,-12.04683,-75.187361,0.0);\n\t\t\tp9.setDatos(getDatos(\"16/06/2017 11:50:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p10 = new Punto(10,-12.050775,-75.187962,0.0);\n\t\t\tp10.setDatos(getDatos(\"16/06/2017 12:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p11 = new Punto(11,-12.053797,-75.184271,0.0);\n\t\t\tp11.setDatos(getDatos(\"16/06/2017 13:00:00\",0 , 0));\n\t\t\t\n\t\t\tpuntos.add(p8);\n\t\t\tpuntos.add(p9);\n\t\t\tpuntos.add(p3);\n\t\t\tpuntos.add(p4);\n\t\t\tpuntos.add(p5);\n\t\t\tpuntos.add(p6);\n\t\t\tpuntos.add(p7);\n\t\t\tpuntos.add(p10);\n\t\t\tpuntos.add(p1);\n\t\t\tpuntos.add(p2);\n\t\t\tpuntos.add(p11);\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e ){\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn puntos;\n\t\n\t}", "List<Venta1> consultarVentaPorFecha(Date desde, Date hasta, Persona cliente) throws Exception;", "public java.sql.ResultSet consultaporespecialidadhorafecha(String CodigoEspecialidad,String hora,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.horas='\"+hora+\"' and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas \");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidadhorafecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public static ParseQuery consultarNotasDeHoy(){\n\n ParseQuery queryNotasHoy = new ParseQuery(\"Todo\");\n\n Calendar cal = getFechaHoy();\n\n cal.set(Calendar.HOUR, 0);\n cal.set(Calendar.MINUTE,0);\n cal.set(Calendar.SECOND,0);\n\n Date min = cal.getTime();\n\n cal.set(Calendar.HOUR, 23);\n cal.set(Calendar.MINUTE,59);\n cal.set(Calendar.SECOND,59);\n\n Date max= cal.getTime();\n\n queryNotasHoy.whereGreaterThanOrEqualTo(\"Fecha\", min);\n queryNotasHoy.whereLessThan(\"Fecha\", max);\n\n return queryNotasHoy;\n }", "private int creaSingoloAddebito(int cod, Date data) {\n /* variabili e costanti locali di lavoro */\n int nuovoRecord = 0;\n boolean continua;\n Dati dati;\n int codConto = 0;\n int codListino = 0;\n int quantita = 0;\n double prezzo = 0.0;\n Campo campoConto = null;\n Campo campoListino = null;\n Campo campoQuantita = null;\n Campo campoPrezzo = null;\n Campo campoData = null;\n Campo campoFissoConto = null;\n Campo campoFissoListino = null;\n Campo campoFissoQuantita = null;\n Campo campoFissoPrezzo = null;\n ArrayList<CampoValore> campi = null;\n Modulo modAddebito = null;\n Modulo modAddebitoFisso = null;\n\n try { // prova ad eseguire il codice\n\n modAddebito = Progetto.getModulo(Addebito.NOME_MODULO);\n modAddebitoFisso = Progetto.getModulo(AddebitoFisso.NOME_MODULO);\n\n /* carica tutti i dati dall'addebito fisso */\n dati = modAddebitoFisso.query().caricaRecord(cod);\n continua = dati != null;\n\n /* recupera i campi da leggere e da scrivere */\n if (continua) {\n\n /* campi del modulo Addebito Fisso (da leggere) */\n campoFissoConto = modAddebitoFisso.getCampo(Addebito.Cam.conto.get());\n campoFissoListino = modAddebitoFisso.getCampo(Addebito.Cam.listino.get());\n campoFissoQuantita = modAddebitoFisso.getCampo(Addebito.Cam.quantita.get());\n campoFissoPrezzo = modAddebitoFisso.getCampo(Addebito.Cam.prezzo.get());\n\n /* campi del modulo Addebito (da scrivere) */\n campoConto = modAddebito.getCampo(Addebito.Cam.conto.get());\n campoListino = modAddebito.getCampo(Addebito.Cam.listino.get());\n campoQuantita = modAddebito.getCampo(Addebito.Cam.quantita.get());\n campoPrezzo = modAddebito.getCampo(Addebito.Cam.prezzo.get());\n campoData = modAddebito.getCampo(Addebito.Cam.data.get());\n\n }// fine del blocco if\n\n /* legge i dati dal record di addebito fisso */\n if (continua) {\n codConto = dati.getIntAt(campoFissoConto);\n codListino = dati.getIntAt(campoFissoListino);\n quantita = dati.getIntAt(campoFissoQuantita);\n prezzo = (Double)dati.getValueAt(0, campoFissoPrezzo);\n dati.close();\n }// fine del blocco if\n\n /* crea un nuovo record in addebito */\n if (continua) {\n campi = new ArrayList<CampoValore>();\n campi.add(new CampoValore(campoConto, codConto));\n campi.add(new CampoValore(campoListino, codListino));\n campi.add(new CampoValore(campoQuantita, quantita));\n campi.add(new CampoValore(campoPrezzo, prezzo));\n campi.add(new CampoValore(campoData, data));\n nuovoRecord = modAddebito.query().nuovoRecord(campi);\n continua = nuovoRecord > 0;\n }// fine del blocco if\n\n /* aggiorna la data di sincronizzazione in addebito fisso */\n if (continua) {\n this.getModulo().query().registraRecordValore(cod, Cam.dataSincro.get(), data);\n }// fine del blocco if\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return nuovoRecord;\n }", "public void run() {\r\n\t\tDate fechaActual = new Date();\r\n\t\ttry {\r\n\t\t\t// Actual\r\n\t\t\tint horaActual = Integer.parseInt(ManipulacionFechas\r\n\t\t\t\t\t.getHora(fechaActual));\r\n\t\t\tint minutosActual = Integer.parseInt(ManipulacionFechas\r\n\t\t\t\t\t.getMinutos(fechaActual));\r\n\r\n\t\t\tint horaInicialRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"HORA_INICIAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\t\t\tint minutosInicialRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"MINUTOS_INICIAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\r\n\t\t\tint horaFinalRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"HORA_FINAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\t\t\tint minutosFinalRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"MINUTOS_FINAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\r\n\t\t\t// Tiempo Actual en Minutos\r\n\t\t\tint tiempoActual = (horaActual * 60) + minutosActual;\r\n\r\n\t\t\t// Tiempos de Rango de Ejecucion en Minutos\r\n\t\t\tint rangoInicial = (horaInicialRangoEjecucion * 60)\r\n\t\t\t\t\t+ minutosInicialRangoEjecucion;\r\n\t\t\tint rangoFinal = (horaFinalRangoEjecucion * 60)\r\n\t\t\t\t\t+ minutosFinalRangoEjecucion;\r\n\r\n\t\t\t// Pregunta si la hora actual esta dentro del rango de ejecucion de\r\n\t\t\t// la tarea\r\n\t\t\tif ((tiempoActual >= rangoInicial) && (tiempoActual <= rangoFinal)) {\r\n\t\t\t\tDate start = new Date();\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Corriendo proceso automatico Cobro de Ciat Casa Ciat : \"\r\n\t\t\t\t\t\t\t\t+ start + \"----\");\r\n\t\t\t\tnew BillingAccountServiceImpl().CobroCiatCasaCiat();\r\n\r\n\t\t\t\tDate end = new Date();\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Termina proceso Envio de notificaciones automaticas Cobro de Ciat Casa Ciat \"\r\n\t\t\t\t\t\t\t\t+ start + \"----\");\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(end.getTime()\r\n\t\t\t\t\t\t\t\t- start.getTime()\r\n\t\t\t\t\t\t\t\t+ \" total milliseconds en realizar tarea automatica Cobro de Ciat Casa Ciat : \");\r\n\r\n\t\t\t}// Fin if\r\n\t\t\telse {\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Tarea Automatica de notificacion Cobro de Ciat Casa Ciat en espera... \"\r\n\t\t\t\t\t\t\t\t+ new Date() + \" ----\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog\r\n\t\t\t\t\t.error(\"Error RUN Tarea Automatica de notificacion Cobro de Ciat Casa Ciat: \"\r\n\t\t\t\t\t\t\t+ e.getMessage());\r\n\t\t}\r\n\r\n\t\tfechaActual = null;\r\n\r\n\t}", "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 }", "static void Jogo (String nome, String Classe)\n {\n Scanner scan = new Scanner (System.in);\n \n int pontos = 0;\n int pontuador = 0;\n int erro = 0;\n\n int [] aleatorio; // cria um vetor para pegar a resposta da função de Gerar Perguntas Aleatórias \n aleatorio = GerarAleatorio(); // Pega a Reposta da função\n \n \n long start = System.currentTimeMillis(); // inicia o Cronometro do Jogo\n \n for (int i = 0; i < aleatorio.length; i++) // Para cada cada pergunta Aleatoria do tamanho total de perguntas(7) ele chama a pergunta montada e compara as respostas do usario \n { // com a função que tem todas as perguntas certas\n \n System.out.println((i + 1) + \") \" + MostrarPergunta (aleatorio[i])); //chama a função que monta a pergunta, passando o numero da pergunta (gerado aleatoriamente) \n \n String Certa = Correta(aleatorio[i]); // pega a resposta correta de acordo com o numero com o numero da pergunta\n \n System.out.println(\"Informe sua resposta: \\n\");\n String opcao = scan.next();\n \n if (opcao.equals(Certa)) // compara a resposta do usuario com a Resposta correta guardada na função \"Correta\"\n { // marca os pontos de acordo com a Classe escolhida pelo jogador \n pontuador++;\n if (Classe.equals(\"Pontuador\")) \n {\n pontos = pontos + 100;\n \n System.out.println(\"Parabens você acertou!: \" + pontos + \"\\n\");\n\n if(pontuador == 3)\n {\n pontos = pontos + 300;\n \n System.out.println(\"Parabens você acertou, e ganhou um Bonus de 300 pontos. Seus Pontos: \" + pontos + \"\\n\");\n \n pontuador = 0;\n }\n }\n else\n {\n pontos = pontos + 100;\n System.out.println(\"Parabens você acertou. Seus pontos: \" + pontos + \"\\n\");\n } \n }\n \n else if (opcao.equals(Certa) == false) \n {\n erro++;\n \n if (Classe.equals(\"Errar\")) \n {\n if(erro == 3)\n {\n pontos = pontos + 50;\n \n System.out.println(\"Infelizmente Você errou. Mas acomulou 3 erros e recebeu um bonus de 50 pontos: \" + pontos + \"\\n\");\n \n erro = 0;\n }\n }\n else\n {\n pontuador = 0;\n \n pontos = pontos - 100; \n System.out.println(\"Que pena vc errou, Seus pontos atuais: \" + pontos + \"\\n\");\n }\n }\n }\n \n long end = System.currentTimeMillis(); //Encerra o Cronometro do jogador\n \n tempo(start, end, nome, pontos, Classe); //manda para a função Tempo, para calcular os minutos e segundos do usuario \n \n }", "public java.sql.ResultSet consultapormedicohorafecha(String CodigoMedico,String hora,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pmd.codigo=\"+CodigoMedico+\" and phm.horas='\"+hora+\"' and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicohorafecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public Calculadora(){\n this.operador1 = 0.0;\n this.operador2 = 0.0;\n this.resultado = 0.0;\n }", "public java.sql.ResultSet consultaporhora(String hora){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where phm.horas='\"+hora+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporhora \"+ex);\r\n }\t\r\n return rs;\r\n }", "public static List<StronaWiersza> pobierzStronaWierszazBazy(StronaWiersza stronaWiersza, String wnma, StronaWierszaDAO stronaWierszaDAO, TransakcjaDAO transakcjaDAO) {\r\n List<StronaWiersza> listaStronaWierszazBazy =new ArrayList<>();\r\n// stare = pobiera tylko w walucie dokumentu rozliczeniowego \r\n// listaNowychRozrachunkow = stronaWierszaDAO.findStronaByKontoWnMaWaluta(stronaWiersza.getKonto(), stronaWiersza.getWiersz().getTabelanbp().getWaluta().getSymbolwaluty(), stronaWiersza.getWnma());\r\n// nowe pobiera wszystkie waluty \r\n listaStronaWierszazBazy = stronaWierszaDAO.findStronaByKontoWnMa(stronaWiersza.getKonto(), wnma);\r\n //stronaWierszaDAO.refresh(listaStronaWierszazBazy);\r\n if (listaStronaWierszazBazy != null && !listaStronaWierszazBazy.isEmpty()) {\r\n try {\r\n DateFormat formatter;\r\n formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n String datarozrachunku = null;\r\n if (stronaWiersza.getWiersz().getDataWalutyWiersza() != null) {\r\n datarozrachunku = stronaWiersza.getWiersz().getDokfk().getRok()+\"-\"+stronaWiersza.getWiersz().getDokfk().getMiesiac()+\"-\"+stronaWiersza.getWiersz().getDataWalutyWiersza();\r\n } else {\r\n datarozrachunku = stronaWiersza.getWiersz().getDokfk().getDatadokumentu();\r\n }\r\n Date dataR = formatter.parse(datarozrachunku);\r\n Iterator it = listaStronaWierszazBazy.iterator();\r\n while(it.hasNext()) {\r\n StronaWiersza stronaWierszaZbazy = (StronaWiersza) it.next();\r\n List<Transakcja> zachowaneTransakcje = transakcjaDAO.findByNowaTransakcja(stronaWierszaZbazy);\r\n for (Iterator<Transakcja> itx = stronaWierszaZbazy.getPlatnosci().iterator(); itx.hasNext();) {\r\n Transakcja transakcjazbazy = (Transakcja) itx.next();\r\n if (zachowaneTransakcje == null || zachowaneTransakcje.size() == 0) {\r\n itx.remove();\r\n } else if (!zachowaneTransakcje.contains(transakcjazbazy)) {\r\n itx.remove();\r\n }\r\n }\r\n for (Transakcja ta : zachowaneTransakcje) {\r\n if (!stronaWierszaZbazy.getPlatnosci().contains(ta)) {\r\n stronaWierszaZbazy.getPlatnosci().add(ta);\r\n }\r\n }\r\n if (Z.z(stronaWierszaZbazy.getPozostalo()) <= 0.0) {\r\n it.remove();\r\n } else {\r\n String dataplatnosci;\r\n if (stronaWierszaZbazy.getWiersz().getDataWalutyWiersza() != null) {\r\n dataplatnosci = stronaWierszaZbazy.getWiersz().getDokfk().getRok()+\"-\"+stronaWierszaZbazy.getWiersz().getDokfk().getMiesiac()+\"-\"+stronaWierszaZbazy.getWiersz().getDataWalutyWiersza();\r\n } else {\r\n dataplatnosci = stronaWierszaZbazy.getWiersz().getDokfk().getDatadokumentu();\r\n }\r\n Date dataP = formatter.parse(dataplatnosci);\r\n if (dataP.compareTo(dataR) > 0) {\r\n it.remove();\r\n }\r\n }\r\n }\r\n } catch (ParseException ex) {\r\n E.e(ex);\r\n }\r\n }\r\n List<StronaWiersza> stronywierszaBO = stronaWierszaDAO.findStronaByKontoWnMaBO(stronaWiersza.getKonto(), stronaWiersza.getWnma());\r\n if (stronywierszaBO != null && !stronywierszaBO.isEmpty()) {\r\n Iterator it = stronywierszaBO.iterator();\r\n while(it.hasNext()) {\r\n StronaWiersza p = (StronaWiersza) it.next();\r\n if (Z.z(p.getPozostalo()) <= 0.0) {\r\n it.remove();\r\n }\r\n }\r\n listaStronaWierszazBazy.addAll(stronywierszaBO);\r\n }\r\n if (listaStronaWierszazBazy == null) {\r\n return (new ArrayList<>());\r\n }\r\n return listaStronaWierszazBazy;\r\n //pobrano wiersze - a teraz z nich robie rozrachunki\r\n }", "private int contabilizaHorasNoLectivas(ArrayList<FichajeRecuentoBean> listaFichajesRecuento, ProfesorBean profesor, boolean guardar, int mes) {\r\n int segundos=0;\r\n for (FichajeRecuentoBean fichajeRecuento : listaFichajesRecuento) {\r\n// System.out.println(fichajeRecuento.getFecha()+\" \"+fichajeRecuento.getHoraEntrada()+\"->\"+fichajeRecuento.getHoraSalida()+\" => \"+UtilsContabilizar.dimeDuracion(fichajeRecuento.getHoraEntrada(),fichajeRecuento.getHoraSalida()));\r\n segundos+=UtilsContabilizar.dimeDuracion(fichajeRecuento.getHoraEntrada(),fichajeRecuento.getHoraSalida());\r\n \r\n DetalleInformeBean detalleInforme=new DetalleInformeBean();\r\n detalleInforme.setIdProfesor(profesor.getIdProfesor());\r\n detalleInforme.setTotalHoras(UtilsContabilizar.dimeDuracion(fichajeRecuento.getHoraEntrada(),fichajeRecuento.getHoraSalida()));\r\n detalleInforme.setFecha(fichajeRecuento.getFecha());\r\n detalleInforme.setHoraIni(fichajeRecuento.getHoraEntrada());\r\n detalleInforme.setHoraFin(fichajeRecuento.getHoraSalida());\r\n detalleInforme.setTipoHora(\"NL\");\r\n if(guardar && detalleInforme.getTotalHoras()>0)GestionDetallesInformesBD.guardaDetalleInforme(detalleInforme, \"contabilizaHorasNoLectivas\", mes);\r\n \r\n }\r\n return segundos;\r\n }", "public ArrayList<TicketDto> consultarVentasChance(String fecha, String moneda) {\n ArrayList<TicketDto> lista = new ArrayList();\n Connection con = null;\n try {\n con = Recurso.Conexion.getPool().getDataSource().getConnection();\n String sql = \"SELECT codigo,sum(vrl_apuesta) \"\n + \"FROM ticket\"\n + \" where \"\n + \" fecha='\" + fecha + \"' and moneda='\" + moneda + \"' group by codigo\";\n\n PreparedStatement str;\n str = con.prepareStatement(sql);\n ResultSet rs = str.executeQuery();\n\n while (rs.next()) {\n TicketDto dto = new TicketDto();\n dto.setCodigo(rs.getString(1));\n dto.setValor(rs.getInt(2));\n dto.setMoneda(moneda);\n lista.add(dto);\n }\n str.close();\n rs.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n } finally {\n if (con != null) {\n try {\n con.close();\n } catch (SQLException ex) {\n Logger.getLogger(GestorPremio.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return lista;\n }\n }", "private void atualizaHistoricoPulaPula(HashMap infoAssinante, Date datExecucao, Connection con)\n\t\tthrows SQLException\n\t{\n\t\tString idtMsisdn = (String)infoAssinante.get(\"IDT_MSISDN\");\n\t\tInteger idtPromocao = (Integer)infoAssinante.get(\"IDT_PROMOCAO\");\n\t\tInteger idtCodigoRetorno = (Integer)infoAssinante.get(\"IDT_CODIGO_RETORNO\");\n\t\tString desStatusExecucao = (idtCodigoRetorno.intValue() == RET_ERRO_TECNICO) ? \"ERRO\" : \"SUCESSO\";\n\t\tDouble vlrAjuste = (Double)infoAssinante.get(\"VLR_AJUSTE\");\n\t\t\n\t\tPreparedStatement prepInsert = null;\n\t\tString sqlInsert = \"INSERT INTO TBL_GER_HISTORICO_PULA_PULA \" +\n\t\t\t\t\t\t \" (IDT_MSISDN, IDT_PROMOCAO, DAT_EXECUCAO, DES_STATUS_EXECUCAO, \" +\n\t\t\t\t\t\t \" IDT_CODIGO_RETORNO, VLR_CREDITO_BONUS) \" +\n\t\t\t\t\t\t \"VALUES \" +\n\t\t\t\t\t\t \" (?, ?, ?, ?, ?, ?)\";\n\n\t\t//Executando o Insert\n\t\ttry\n\t\t{\n\t\t\tprepInsert = con.prepareStatement(sqlInsert);\n\t\t\tprepInsert.setString(1, idtMsisdn);\n\t\t\tprepInsert.setInt(2, idtPromocao.intValue());\n\t\t\tprepInsert.setDate(3, new java.sql.Date(datExecucao.getTime()));\n\t\t\tprepInsert.setString(4, desStatusExecucao);\n\t\t\tprepInsert.setString(5, (new DecimalFormat(\"0000\")).format(idtCodigoRetorno.intValue()));\n\t\t\tprepInsert.setDouble(6, (vlrAjuste == null) ? 0.0 : vlrAjuste.doubleValue());\n\t\t\tprepInsert.executeUpdate();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tlog(\"Exception : MSISDN: \" + idtMsisdn + \" : \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif(prepInsert != null) prepInsert.close();\n\t\t\tprepInsert = null;\n\t\t}\n\t}", "public List<Map<String, Object>> Listar_Cumplea˝os(String mes,\r\n String dia, String aps, String dep, String are,\r\n String sec, String pue, String fec, String edad,\r\n String ape, String mat, String nom, String tip, String num) {\r\n sql = \"SELECT * FROM RHVD_FILTRO_CUMPL_TRAB \";\r\n sql += (!aps.equals(\"\")) ? \"Where UPPER(CO_APS)='\" + aps.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!dep.equals(\"\")) ? \"Where UPPER(DEPARTAMENTO)='\" + dep.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!are.equals(\"\")) ? \"Where UPPER(AREA)='\" + are.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!sec.equals(\"\")) ? \"Where UPPER(SECCION)='\" + sec.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!pue.equals(\"\")) ? \"Where UPPER(PUESTO)='\" + pue.trim().toUpperCase() + \"'\" : \"\";\r\n //sql += (!fec.equals(\"\")) ? \"Where FECHA_NAC='\" + fec.trim() + \"'\" : \"\"; \r\n sql += (!edad.equals(\"\")) ? \"Where EDAD='\" + edad.trim() + \"'\" : \"\";\r\n sql += (!ape.equals(\"\")) ? \"Where UPPER(AP_PATERNO)='\" + ape.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!mat.equals(\"\")) ? \"Where UPPER(AP_MATERNO)='\" + mat.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!nom.equals(\"\")) ? \"Where UPPER(NO_TRABAJADOR)='\" + nom.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!tip.equals(\"\")) ? \"Where UPPER(TIPO)='\" + tip.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!num.equals(\"\")) ? \"Where NU_DOC='\" + num.trim() + \"'\" : \"\";\r\n //buscar por rango de mes de cumplea├▒os*/\r\n\r\n sql += (!mes.equals(\"\") & !mes.equals(\"13\")) ? \"where mes='\" + mes.trim() + \"' \" : \"\";\r\n sql += (!mes.equals(\"\") & mes.equals(\"13\")) ? \"\" : \"\";\r\n sql += (!dia.equals(\"\")) ? \"and dia='\" + dia.trim() + \"'\" : \"\";\r\n return jt.queryForList(sql);\r\n }", "public static void main(String [] args){//inicio del main\r\n\r\n Scanner sc= new Scanner(System.in); \r\n\r\nSystem.out.println(\"ingrese los segundos \");//mesaje\r\nint num=sc.nextInt();//total de segundos\r\nint hor=num/3600;//total de horas en los segundos\r\nint min=(num-(3600*hor))/60;//total de min en las horas restantes\r\nint seg=num-((hor*3600)+(min*60));//total de segundo sen los miniutos restantes\r\nSystem.out.println(\"Horas: \" + hor + \" Minutos: \" + min + \" Segundos: \" + seg);//salida del tiempo\r\n\r\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 List<Prenotazione> getAllReservations(QueryParamsMap queryParamsMap) {\n final String sql = \"SELECT id, data_p , ora_inizio, ora_fine, clienti, ufficio_id, utente_id FROM prenotazioni\";\n\n List<Prenotazione> reservations = new LinkedList<>();\n\n try {\n Connection conn = DBConnect.getInstance().getConnection();\n PreparedStatement st = conn.prepareStatement(sql);\n\n ResultSet rs = st.executeQuery();\n\n Prenotazione old = null;\n while(rs.next()) {\n if(old == null){\n old = new Prenotazione(rs.getInt(\"id\"), rs.getString(\"data_p\"), rs.getInt(\"ora_inizio\"), rs.getInt(\"ora_fine\"), rs.getInt(\"clienti\"), rs.getInt(\"ufficio_id\"), rs.getString(\"utente_id\"));\n }\n else if(old.getFinalHour() == rs.getInt(\"ora_fine\") && old.getDate().equals(rs.getString(\"data_p\")) && old.getOfficeId() == rs.getInt(\"ufficio_id\") && old.getUserId() == rs.getString(\"utente_id\"))\n old = new Prenotazione(old.getId(), old.getDate(), old.getStartHour(), rs.getInt(\"ora_fine\"), old.getClients() + rs.getInt(\"clienti\"), old.getOfficeId(), old.getUserId());\n else {\n reservations.add(old);\n Prenotazione t = new Prenotazione(rs.getInt(\"id\"), rs.getString(\"data_p\"), rs.getInt(\"ora_inizio\"), rs.getInt(\"ora_fine\"), rs.getInt(\"clienti\"), rs.getInt(\"ufficio_id\"), rs.getString(\"utente_id\"));\n reservations.add(t);\n }\n }\n\n conn.close();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return reservations;\n }", "public java.sql.ResultSet consultapormedicohora(String CodigoMedico,String hora){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pmd.codigo=\"+CodigoMedico+\" and phm.horas='\"+hora+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas \");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicohora \"+ex);\r\n }\t\r\n return rs;\r\n }", "private void insertData() \n {\n for (int i = 0; i < 3; i++) {\n TarjetaPrepagoEntity entity = factory.manufacturePojo(TarjetaPrepagoEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n for(int i = 0; i < 3; i++)\n {\n PagoEntity pagos = factory.manufacturePojo(PagoEntity.class);\n em.persist(pagos);\n pagosData.add(pagos);\n\n }\n \n data.get(2).setSaldo(0.0);\n data.get(2).setPuntos(0.0);\n \n double valor = (Math.random()+1) *100;\n data.get(0).setSaldo(valor);\n data.get(0).setPuntos(valor); \n data.get(1).setSaldo(valor);\n data.get(1).setPuntos(valor);\n \n }", "public Socio getSocioInfoAtualizar() {\n\n ArrayList<Socio> listaSocio = new ArrayList<Socio>();\n // iniciando a conexao\n connection = BancoDados.getInstance().getConnection();\n System.out.println(\"conectado e preparando listagem para pegar Socio\"); \n Statement stmt = null;\n\n\n try {\n stmt = connection.createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT * FROM alterados\");\n\n // Incluindo Socios na listaSocios que vai ser retornada\n while (rs.next()) {\n Socio socio = new Socio (rs.getString(\"nomeSocio\"),rs.getString(\"cpfSocio\"),rs.getString(\"rgSocio\"),\n rs.getString(\"matSocio\"),rs.getString(\"sexoSocio\"),rs.getString(\"diaNascSocio\"),\n rs.getString(\"mesNascSocio\"),rs.getString(\"anoNascSocio\"),rs.getString(\"enderecoSocio\"),\n rs.getString(\"numEndSocio\"),rs.getString(\"bairroSocio\"),rs.getString(\"cidadeSocio\"),\n rs.getString(\"estadoSocio\"),rs.getString(\"foneSocio\"),rs.getString(\"celSocio\"),\n rs.getString(\"emailSocio\"),rs.getString(\"blocoSocio\"), rs.getString(\"funcaoSocio\"),rs.getInt(\"idSocio\"), rs.getInt(\"idSocioPK\"));\n listaSocio.add(socio);\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n\n } finally {\n // este bloco finally sempre executa na instrução try para\n // fechar a conexão a cada conexão aberta\n try {\n stmt.close();\n connection.close();\n } catch (SQLException e) {\n System.out.println(\"Erro ao desconectar\" + e.getMessage());\n }\n }\n\n \n Socio socioMax = new Socio();\n\n socioMax = listaSocio.get(0);\n\n //Se houver mais de um socio na lista vai procurar o de maior ID\n if(listaSocio.size()-1 > 0){\n\n for(int i=0; i<= listaSocio.size()-1; i++){\n\n Socio socio = new Socio();\n socio = listaSocio.get(i);\n\n if(socio.getIdAlterado()>= socioMax.getIdAlterado() ){\n socioMax = socio;\n }\n\n }\n\n }\n //Se não pega o primeiro\n else {\n socioMax = listaSocio.get(0);\n \n }\n\n System.out.println(socioMax.getIdAlterado());\n\n //Retorna o socio de maior ID, logo o ultimo inserido.\n return socioMax;\n }", "public List<VentaDet> generar(Periodo mes){\n\t\tString sql=ReplicationUtils.resolveSQL(mes,\"ALMACE\",\"ALMFECHA\")+\" AND ALMTIPO=\\'FAC\\' ORDER BY ALMSUCUR,ALMNUMER,ALMSERIE\";\r\n\t\tVentasDetMapper mapper=new VentasDetMapper();\r\n\t\tmapper.setBeanClass(getBeanClass());\r\n\t\tmapper.setOrigen(\"ALMACE\");\r\n\t\tmapper.setPropertyColumnMap(getPropertyColumnMap());\r\n\t\tList<VentaDet> rows=getFactory().getJdbcTemplate(mes).query(sql,mapper);\r\n\t\tlogger.info(\"VentaDet obtenidas : \"+rows.size());\r\n\t\treturn rows;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n public void consultarCoactivosXLS() throws CirculemosNegocioException {\n\n // consulta la tabla temporal de los 6000 coactivos\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"select [TIPO DOC], [NUMERO DE IDENTIFICACIÓN], [valor multas], [titulo valor], proceso \");\n sql.append(\"from coactivos_xls \");\n sql.append(\"where id_tramite is null and numero_axis is null AND archivo is not null \");\n sql.append(\"AND [titulo valor] IN ('2186721','2187250','2187580','2186845')\");\n\n Query query = em.createNativeQuery(sql.toString());\n\n List<Object[]> listaResultados = Utilidades.safeList(query.getResultList());\n\n Date fechaCoactivo = UtilFecha.buildCalendar().getTime();\n CoactivoDTO coactivoDTOs;\n TipoIdentificacionPersonaDTO tipoIdentificacion;\n List<ObligacionCoactivoDTO> obligacionesCoactivoDTO;\n PersonaDTO personaDTO;\n ProcesoDTO proceso;\n // persiste los resultados en coactivoDTO\n for (Object[] coactivo : listaResultados) {\n coactivoDTOs = new CoactivoDTO();\n // persiste el tipo de indetificacion en TipoIdentificacionPersonaDTO\n personaDTO = new PersonaDTO();\n proceso = new ProcesoDTO();\n tipoIdentificacion = new TipoIdentificacionPersonaDTO();\n obligacionesCoactivoDTO = new ArrayList<>();\n\n tipoIdentificacion.setCodigo((String) coactivo[0]);\n personaDTO.setTipoIdentificacion(tipoIdentificacion);\n coactivoDTOs.setPersona(personaDTO);\n coactivoDTOs.getPersona().setNumeroIdentificacion((String) coactivo[1]);\n\n proceso.setFechaInicio(fechaCoactivo);\n coactivoDTOs.setProceso(proceso);\n coactivoDTOs.setValorTotalObligaciones(BigDecimal\n .valueOf(Double.valueOf(coactivo[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n coactivoDTOs.setValorTotalCostasProcesales(\n coactivoDTOs.getValorTotalObligaciones().multiply(BigDecimal.valueOf(0.05)));\n coactivoDTOs.getProceso().setObservacion(\"COACTIVO\");\n String[] numeroFactura = coactivo[3].toString().split(\",\");\n // separa los numeros de factura cuando viene mas de uno.\n for (String nFactura : numeroFactura) {\n // consulta por numero de factura el el saldo a capital por cada factura\n sql = new StringBuilder();\n sql.append(\"select nombre, saldo_capital, saldo_interes \");\n sql.append(\"from cartera_coactivos_xls \");\n sql.append(\"where nombre = :nFactura\");\n\n Query quer = em.createNativeQuery(sql.toString());\n\n quer.setParameter(\"nFactura\", nFactura);\n\n List<Object[]> result = Utilidades.safeList(quer.getResultList());\n // persiste las obligaciones consultadas y las inserta en ObligacionCoactivoDTO\n ObligacionCoactivoDTO obligaciones;\n for (Object[] obligacion : result) {\n obligaciones = new ObligacionCoactivoDTO();\n obligaciones.setNumeroObligacion((String) obligacion[0]);\n obligaciones.setValorObligacion(BigDecimal.valueOf(\n Double.valueOf(obligacion[1].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n obligaciones.setValorInteresMoratorios(BigDecimal.valueOf(\n Double.valueOf(obligacion[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n // Adiciona las obligaciones a una lista\n obligacionesCoactivoDTO.add(obligaciones);\n }\n\n }\n coactivoDTOs.setObligacionCoactivos(obligacionesCoactivoDTO);\n try {\n iLCoactivo.registrarCoactivoAxis(coactivoDTOs, coactivo[4].toString());\n } catch (Exception e) {\n logger.error(\"Error al registrar coactivo 6000 :\", e);\n }\n }\n }", "public List<ReceiverEntity> obtenerReceiversHora(){\r\n System.out.println(\"Se ejecuta cvapa logica\");\r\n List<ReceiverEntity> receivers = persistence.findByHour();\r\n return receivers;\r\n }", "public Data() {\n\t\tCalendar now = new GregorianCalendar();\n\t\tthis.anno = now.get(Calendar.YEAR);\n\t\tthis.giorno = now.get(Calendar.DAY_OF_MONTH);\n\t\tthis.mese = Data.MESI[now.get(Calendar.MONTH)];\n\t}", "public Collection cargarMasivo(int codigoCiclo, String proceso, String subproceso, int periodo) {\n/* 287 */ Collection resultados = new ArrayList();\n/* */ try {\n/* 289 */ String s = \"select m.Codigo_Ciclo, m.Codigo_Plan, m.Codigo_Meta, m.Codigo_Objetivo, u.Descripcion Nombre_Area, Um.Descripcion as Nombre_Unidad_Medida, to_char(m.Codigo_Objetivo,'9999999999') ||' - ' || o.Descripcion Nombre_Objetivo, to_char(m.Codigo_Meta,'9999999999') ||' - ' || m.Descripcion Nombre_Meta, m.Unidad_Medida, m.Valor_Minimo, m.Valor_Maximo, l.Valor_Logro, case when l.Valor_Logro is not null then 'A' else 'N' end Existe from Cal_Planes p, Cal_Plan_Objetivos o, Cal_Plan_Metas m left join Cal_Logros l on( m.Codigo_Ciclo = l.Codigo_Ciclo and m.Codigo_Plan = l.Codigo_Plan and m.Codigo_Meta = l.Codigo_Meta and m.Codigo_Objetivo = l.Codigo_Objetivo and \" + periodo + \" = l.Periodo),\" + \" Unidades_Dependencia u,\" + \" Sis_Multivalores Um\" + \" where p.Ciclo = o.Codigo_Ciclo\" + \" and p.Codigo_Plan = o.Codigo_Plan\" + \" and o.Codigo_Ciclo = m.Codigo_Ciclo\" + \" and o.Codigo_Plan = m.Codigo_Plan\" + \" and o.Codigo_Objetivo = m.Codigo_Objetivo\" + \" and p.Codigo_Area = u.Codigo\" + \" and m.Unidad_Medida = Um.Valor\" + \" and Um.Tabla = 'CAL_UNIDAD_MEDIDA_META'\" + \" and o.Proceso = '\" + proceso + \"'\" + \" and o.Subproceso = '\" + subproceso + \"'\" + \" and p.Ciclo = \" + codigoCiclo + \" and m.Estado = 'A'\" + \" and o.Estado = 'A'\" + \" and o.Tipo_Objetivo in ('G', 'M')\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 333 */ if (periodo == 1) {\n/* 334 */ s = s + \" and m.mes01='S'\";\n/* */ }\n/* 336 */ else if (periodo == 2) {\n/* 337 */ s = s + \" and m.mes02='S'\";\n/* */ }\n/* 339 */ else if (periodo == 3) {\n/* 340 */ s = s + \" and m.mes03='S'\";\n/* */ }\n/* 342 */ else if (periodo == 4) {\n/* 343 */ s = s + \" and m.mes04='S'\";\n/* */ }\n/* 345 */ else if (periodo == 5) {\n/* 346 */ s = s + \" and m.mes05='S'\";\n/* */ }\n/* 348 */ else if (periodo == 6) {\n/* 349 */ s = s + \" and m.mes06='S'\";\n/* */ }\n/* 351 */ else if (periodo == 7) {\n/* 352 */ s = s + \" and m.mes07='S'\";\n/* */ }\n/* 354 */ else if (periodo == 8) {\n/* 355 */ s = s + \" and m.mes08='S'\";\n/* */ }\n/* 357 */ else if (periodo == 9) {\n/* 358 */ s = s + \" and m.mes09='S'\";\n/* */ }\n/* 360 */ else if (periodo == 10) {\n/* 361 */ s = s + \" and m.mes10='S'\";\n/* */ }\n/* 363 */ else if (periodo == 11) {\n/* 364 */ s = s + \" and m.mes11='S'\";\n/* */ }\n/* 366 */ else if (periodo == 12) {\n/* 367 */ s = s + \" and m.mes12='S'\";\n/* */ } \n/* */ \n/* 370 */ s = s + \" order by m.Codigo_Ciclo, m.Codigo_Objetivo, m.Codigo_Meta, u.Descripcion\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 377 */ boolean rtaDB = this.dat.parseSql(s);\n/* 378 */ if (!rtaDB) {\n/* 379 */ return resultados;\n/* */ }\n/* */ \n/* 382 */ this.rs = this.dat.getResultSet();\n/* 383 */ while (this.rs.next()) {\n/* 384 */ CalMetasDTO reg = new CalMetasDTO();\n/* 385 */ reg.setCodigoCiclo(codigoCiclo);\n/* 386 */ reg.setCodigoPlan(this.rs.getInt(\"codigo_plan\"));\n/* 387 */ reg.setCodigoMeta(this.rs.getInt(\"codigo_meta\"));\n/* 388 */ reg.setCodigoObjetivo(this.rs.getInt(\"codigo_objetivo\"));\n/* 389 */ reg.setNombreArea(this.rs.getString(\"Nombre_Area\"));\n/* 390 */ reg.setNombreMeta(this.rs.getString(\"Nombre_meta\"));\n/* 391 */ reg.setNombreObjetivo(this.rs.getString(\"Nombre_Objetivo\"));\n/* 392 */ reg.setUnidadMedida(this.rs.getString(\"unidad_medida\"));\n/* 393 */ reg.setValorMinimo(this.rs.getDouble(\"valor_minimo\"));\n/* 394 */ reg.setValorMaximo(this.rs.getDouble(\"valor_maximo\"));\n/* 395 */ reg.setValorLogro(this.rs.getDouble(\"Valor_Logro\"));\n/* 396 */ reg.setNombreUnidadMedida(this.rs.getString(\"nombre_unidad_medida\"));\n/* 397 */ reg.setEstado(this.rs.getString(\"existe\"));\n/* 398 */ resultados.add(reg);\n/* */ }\n/* */ \n/* 401 */ } catch (Exception e) {\n/* 402 */ e.printStackTrace();\n/* 403 */ Utilidades.writeError(\"CalPlanMetasFactory:cargarTodos \", e);\n/* */ } \n/* 405 */ return resultados;\n/* */ }", "public static void main(String[] args) {\n\t\tSystem.out.println(System.currentTimeMillis()); // Quantos Milisegundos desde data 01/01/1970\n\t\t\n\t\t// Data Atual\n\t\tDate agora = new Date();\n\t\tSystem.out.println(\"Data Atual: \"+agora);\n\t\t\n\t\tDate data = new Date(1_000_000_000_000L);\n\t\tSystem.out.println(\"Data com 1.000.000.000.000ms: \"+data);\n\t\t\n\t\t// METODOS\n\t\tdata.getTime();\n\t\tdata.setTime(1_000_000_000_000L);\n\t\tSystem.out.println(data.compareTo(agora)); // -1 para anterior, 0 para igual, +1 para posterior\n\t\t\n\t\t// GregorianCalendar\n\t\tCalendar c = Calendar.getInstance();\n\t\tc.set(1980, Calendar.FEBRUARY, 12);\n\t\tSystem.out.println(c.getTime());\n\t\tSystem.out.println(c.get(Calendar.YEAR)); // Ano\n\t\tSystem.out.println(c.get(Calendar.MONTH)); // Mes 0 - 11\n\t\tSystem.out.println(c.get(Calendar.DAY_OF_MONTH)); // Dia do mes\n\t\t\n\t\tc.set(Calendar.YEAR,2016); // Altera o Ano\n\t\tc.set(Calendar.MONTH, 10); // Altera o Mes 0 - 11\n\t\tc.set(Calendar.DAY_OF_MONTH, 24); // Altera o Dia do mes\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.clear(Calendar.MINUTE); // limpa minutos\n\t\tc.clear(Calendar.SECOND); // limpa segundos\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.add(Calendar.DAY_OF_MONTH,1); // adiciona dias (avança o mes e ano)\n\t\tc.add(Calendar.YEAR,1); // adiciona o ano \n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.roll(Calendar.DAY_OF_MONTH,20); // adiciona dias (não avança o mes e ano)\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\t// Saudação com Bom dia, Boa arde ou Boa noite\n\t\tCalendar c1 = Calendar.getInstance();\n\t\tint hora = c1.get(Calendar.HOUR_OF_DAY);\n\t\tSystem.out.println(hora);\n\t\tif(hora <= 12){\n\t\t\tSystem.out.println(\"Bom Dia\");\n\t\t} else if(hora > 12 && hora < 18){\n\t\t\tSystem.out.println(\"Boa Tarde\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Boa Noite\");\n\t\t}\n\t\t\n\n\t}", "private boolean crearRecurso(int codigoCiclo, int codigoPlan, int codigoMeta, int codigoRecurso, String estado, String usuarioInsercion) {\n/* */ try {\n/* 513 */ String s = \"select estado from cal_plan_recursos_meta r where r.codigo_ciclo=\" + codigoCiclo + \" and r.codigo_plan=\" + codigoPlan + \" and r.codigo_meta=\" + codigoMeta + \" and r.codigo_recurso=\" + codigoRecurso;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 520 */ this.dat.parseSql(s);\n/* 521 */ this.rs = this.dat.getResultSet();\n/* 522 */ if (this.rs.next()) {\n/* 523 */ s = \"update cal_plan_recursos_meta set \";\n/* 524 */ s = s + \" estado='\" + estado + \"',\";\n/* 525 */ s = s + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \",\";\n/* 526 */ s = s + \" usuario_modificacion='\" + usuarioInsercion + \"'\";\n/* 527 */ s = s + \" where \";\n/* 528 */ s = s + \" codigo_ciclo=\" + codigoCiclo;\n/* 529 */ s = s + \" and codigo_plan=\" + codigoPlan;\n/* 530 */ s = s + \" and codigo_meta=\" + codigoMeta;\n/* 531 */ s = s + \" and codigo_recurso=\" + codigoRecurso;\n/* */ } else {\n/* */ \n/* 534 */ s = \"insert into cal_plan_recursos_meta (codigo_ciclo,codigo_plan,codigo_meta,codigo_recurso,estado,fecha_insercion,usuario_insercion) values (\" + codigoCiclo + \",\" + \"\" + codigoPlan + \",\" + \"\" + codigoMeta + \",\" + \"\" + codigoRecurso + \",\" + \"'\" + estado + \"',\" + Utilidades.getFechaBD() + \",\" + \"'\" + usuarioInsercion + \"'\" + \")\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 552 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 555 */ catch (Exception e) {\n/* 556 */ e.printStackTrace();\n/* 557 */ Utilidades.writeError(\"CalMetasDAO:crearRegistro\", e);\n/* */ \n/* 559 */ return false;\n/* */ } \n/* */ }", "public static void main(String[] args) throws ParseException {\t\t\n\t int mes, ano, diaDaSemana, primeiroDiaDoMes, numeroDeSemana = 1;\n\t Date data;\n\t \n\t //Converter texto em data e data em texto\n\t SimpleDateFormat sdf\t = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t //Prover o calendario\n\t GregorianCalendar gc\t = new GregorianCalendar();\n\t \n\t String mesesCalendario[] = new String[12];\n\t\tString mesesNome[]\t\t = {\"Janeiro\", \"Fevereiro\", \"Marco\", \"Abri\", \"Maio\", \"Junho\", \"Julho\", \"Agosto\", \"Setembro\", \"Outubro\", \"Novembro\", \"Dezembro\"};\n\t\tint mesesDia[]\t\t\t = {31,28,31,30,31,30,31,31,30,31,30,31};\n\t\t\n\t\t//Errado? e pra receber apenas o \"dia da semana\" do \"primeiro dia do mes\" na questao\n\t //Recebendo mes e ano\n\t mes = Entrada.Int(\"Digite o mes:\", \"Entrada de dados\");\n\t ano = Entrada.Int(\"Digite o ano:\", \"Entrada de dados\");\n\t \n\t //Errado? e pra ser o dia inicial do mes na questao\n\t // Dia inicial do ano\n data = sdf.parse(\"01/01/\" + ano);\n gc.setTime(data);\n diaDaSemana = gc.get(GregorianCalendar.DAY_OF_WEEK);\n \n //Nao sei se e necessario por causa da questao\n //*Alteracao feita||| Ano bissexto tem +1 dia em fevereiro\n if(ano % 4 == 0) {\n \tmesesDia[1] = 29;\n \tmesesNome[1] = \"Ano Bissexto - Fevereiro\";\n }\n \n \n //Meses \n for(int mesAtual = 0; mesAtual < 12; mesAtual++) {\n\t int diasDoMes\t= 0;\n\t String nomeMesAtual = \"\";\n\n\n\t nomeMesAtual = mesesNome[mesAtual]; \n diasDoMes\t = mesesDia[mesAtual]; \n\n\n mesesCalendario[mesAtual] = \"\\n \" + nomeMesAtual + \" de \" + ano + \"\\n\";\n mesesCalendario[mesAtual] += \"---------------------------------------------------------------------|\\n\";\n mesesCalendario[mesAtual] += \" Dom Seg Ter Qua Qui Sex Sab | Semanas\\n\";\n mesesCalendario[mesAtual] += \"---------------------------------------------------------------------|\\n \";\n\t\n\t \n\t // Primeira semana comeca em\n\t data = sdf.parse( \"01/\" + (mesAtual+1) + \"/\" + ano );\n gc.setTime(data);\n primeiroDiaDoMes = gc.get(GregorianCalendar.DAY_OF_WEEK);\n\t for (int space = 1; space < primeiroDiaDoMes; space++) {\n\t \tmesesCalendario[mesAtual] += \" \";\n\t }\n\t \n\t //Dias\t \n\t for (int diaAtual = 1; diaAtual <= diasDoMes; diaAtual++)\n\t {\n\t \t// Trata espaco do dia\n\t \t\t//Transforma o diaAtuel em String\n\t String diaTratado = Integer.toString(diaAtual);\n\t if (diaTratado.length() == 1)\n\t \tdiaTratado = \" \" + diaAtual + \" \";\n\t else\n\t \tdiaTratado = \" \" + diaAtual + \" \";\n\t \n\t // dia\n\t mesesCalendario[mesAtual] += diaTratado;\n\t \t\n\t \t// Pula Linha no final da semana\n\t data = sdf.parse( diaAtual + \"/\" + (mesAtual+1) + \"/\" + ano );\n\t gc.setTime(data);\n\t diaDaSemana = gc.get(GregorianCalendar.DAY_OF_WEEK);\n\t if (diaDaSemana == 7) {\n\t \tmesesCalendario[mesAtual] += (\"| \" + numeroDeSemana++);\n\t \tmesesCalendario[mesAtual] += \"\\n |\";\n\t \tmesesCalendario[mesAtual] += \"\\n \";\n\t }\n\t }\n\t mesesCalendario[mesAtual] += \"\\n\\n\\n\\n\";\n\t }\n\t \n //Imprime mes desejado\n\t System.out.println(mesesCalendario[mes-1]);\n\n\t}", "private Hashtable obtenerHistoricosSolicitud(Long oidPais, Long oidSolicitud) throws MareException {\n UtilidadesLog.info(\"MONHistoricoDTO.obtenerHistoricosSolicitud() - entrada\"); \n BelcorpService belcorpService;\n StringBuffer query = new StringBuffer();\n RecordSet rsHistoricosActuales = null;\n Hashtable hashHistoricos = new Hashtable();\n String clave;\n try {\n belcorpService = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException serviceNotFoundException) {\n String codigoError = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(serviceNotFoundException,\n UtilidadesError.armarCodigoError(codigoError));\n }\n\n try {\n\t\t\tquery.append(\" SELECT \");\n query.append(\" OID_HIST_DTO, DCTO_OID_DESC, SOCA_OID_SOLI_CABE, IMP_FIJO, \");\n query.append(\" IMP_DESC_APLI, VAL_PORC_APLI, VAL_VENT_REAL, VAL_BASE_CALC, VAL_BASE_CALC_ACUM, \");\n query.append(\" MAFA_OID_MATR_FACT, CLIE_OID_CLIE \");\n\t\t\tquery.append(\" FROM \");\n query.append(\" DTO_HISTO_DTO \");\n\t\t\tquery.append(\" WHERE \");\n query.append(\" PAIS_OID_PAIS = ? AND SOCA_OID_SOLI_CABE = ? \");\n Vector parametros = new Vector();\n parametros.add(oidPais);\n parametros.add(oidSolicitud);\n rsHistoricosActuales = belcorpService.dbService.executePreparedQuery(query.toString(), parametros);\n } catch (Exception e) {\n throw new MareException(e,\n UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n\n for (int i=0; i<rsHistoricosActuales.getRowCount(); i++) {\n DTOHistoricoDescuento dtoHistoricoDescuento = new DTOHistoricoDescuento();\n dtoHistoricoDescuento.setOidHistoricoDescuento(new Long(((BigDecimal)rsHistoricosActuales.getValueAt(i,\"OID_HIST_DTO\")).toString()));\n dtoHistoricoDescuento.setOidDescuento(new Long(((BigDecimal)rsHistoricosActuales.getValueAt(i,\"DCTO_OID_DESC\")).toString()));\n dtoHistoricoDescuento.setOidSolicitud(new Long(((BigDecimal)rsHistoricosActuales.getValueAt(i,\"SOCA_OID_SOLI_CABE\")).toString()));\n dtoHistoricoDescuento.setImporteFijo((BigDecimal)rsHistoricosActuales.getValueAt(i,\"IMP_FIJO\"));\n dtoHistoricoDescuento.setImporteDescuentoAplicado((BigDecimal)rsHistoricosActuales.getValueAt(i,\"IMP_DESC_APLI\"));\n dtoHistoricoDescuento.setPorcentaje((BigDecimal)rsHistoricosActuales.getValueAt(i,\"VAL_PORC_APLI\"));\n dtoHistoricoDescuento.setImporteVentaReal((BigDecimal)rsHistoricosActuales.getValueAt(i,\"VAL_VENT_REAL\"));\n dtoHistoricoDescuento.setBaseCalculo((BigDecimal)rsHistoricosActuales.getValueAt(i,\"VAL_BASE_CALC\"));\n dtoHistoricoDescuento.setBaseCalculoAcumulada((BigDecimal)rsHistoricosActuales.getValueAt(i,\"VAL_BASE_CALC_ACUM\"));\n dtoHistoricoDescuento.setOidMatrizFacturacion(new Long(((BigDecimal)rsHistoricosActuales.getValueAt(i,\"MAFA_OID_MATR_FACT\")).toString()));\n dtoHistoricoDescuento.setOidCliente(new Long(((BigDecimal)rsHistoricosActuales.getValueAt(i,\"CLIE_OID_CLIE\")).toString()));\n clave = this.obtenerClaveHistorico(dtoHistoricoDescuento);\n hashHistoricos.put(clave, dtoHistoricoDescuento);\n }\n UtilidadesLog.info(\"MONHistoricoDTO.obtenerHistoricosSolicitud() - salida\"); \n return hashHistoricos;\n }", "public Double getTotalOliDOdeEnvasadoresEntreDates(Long temporadaId, Date dataInici, Date dataFi, Integer idAutorizada) throws InfrastructureException {\r\n\t\tlogger.debug(\"getTotalOliDOdeEnvasadoresEntreDates ini\");\r\n//\t\tCollection listaTrasllat = getEntradaTrasladosEntreDiasoTemporadas(temporadaId, dataInici, dataFi);\r\n\t\tCollection listaTrasllat = null;\r\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\tdouble litros = 0;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tString q = \"from Trasllat tdi where tdi.retornatEstablimentOrigen = true \";\r\n\t\t\tif(dataInici != null){\r\n\t\t\t\tString fi = df.format(dataInici);\r\n\t\t\t\tq = q+ \" and tdi.data >= '\"+fi+\"' \";\r\n\t\t\t}\r\n\t\t\tif(dataFi != null){\r\n\t\t\t\tString ff = df.format(dataFi);\r\n\t\t\t\tq = q+ \" and tdi.data <= '\"+ff+\"' \";\r\n\t\t\t}\r\n\t\t\tlistaTrasllat = getHibernateTemplate().find(q);\t\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tlogger.error(\"getTotalOliDOdeEnvasadoresEntreDates failed\", ex);\r\n\t\t\tthrow new InfrastructureException(ex);\r\n\t\t}\r\n\t\t\r\n\t\t//Para cada uno de lor registro Trasllat separamos los depositos y devolvemos un objeto rasllatDipositCommand\r\n\t\tif (listaTrasllat != null){\r\n\t\t\tfor(Iterator it=listaTrasllat.iterator();it.hasNext();){\r\n\t\t\t\tTrasllat trasllat = (Trasllat)it.next();\r\n\t\t\t\tif(trasllat.getDiposits()!= null){\r\n\t\t\t\t\tfor(Iterator itDip=trasllat.getDiposits().iterator();itDip.hasNext();){\r\n\t\t\t\t\t\tDiposit diposit = (Diposit)itDip.next();\r\n\t\t\t\t\t\tif(idAutorizada!= null && diposit.getPartidaOli() != null && diposit.getPartidaOli().getCategoriaOli() !=null && diposit.getPartidaOli().getCategoriaOli()!= null){\r\n\t\t\t\t\t\t\tif(diposit.getPartidaOli().getCategoriaOli().getId().intValue() == idAutorizada.intValue() && diposit.getVolumActual()!= null){\r\n\t\t\t\t\t\t\t\tlitros+= diposit.getVolumActual().doubleValue();\r\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tlogger.debug(\"getTotalOliDOdeEnvasadoresEntreDates fin\");\r\n\t\treturn Double.valueOf(String.valueOf(litros));\r\n\t}", "@Test\n\tvoid calcularSalarioConMasCuarentaHorasPagoPositivoTest() {\n\t\tEmpleadoPorComision empleadoPorComision = new EmpleadoPorComision(\"Eiichiro oda\", \"p33\", 400000, 500000);\n\t\tdouble salarioEsperado = 425000;\n\t\tdouble salarioEmpleadoPorComision = empleadoPorComision.calcularSalario();\n\t\tassertEquals(salarioEsperado, salarioEmpleadoPorComision);\n\n\t}", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public Fecha () {\n\t\tthis.ahora = Calendar.getInstance();\n\t\tahora.set(2018, 3, 1, 15, 15, 0);\t \n\t\taño = ahora.get(Calendar.YEAR);\n\t\tmes = ahora.get(Calendar.MONTH) + 1; // 1 (ENERO) y 12 (DICIEMBRE)\n\t\tdia = ahora.get(Calendar.DAY_OF_MONTH);\n\t\thr_12 = ahora.get(Calendar.HOUR);\n\t\thr_24 = ahora.get(Calendar.HOUR_OF_DAY);\n\t\tmin = ahora.get(Calendar.MINUTE);\n\t\tseg = ahora.get(Calendar.SECOND);\n\t\tam_pm = v_am_pm[ahora.get(Calendar.AM_PM)]; //ahora.get(Calendar.AM_PM)=> 0 (AM) y 1 (PM)\n\t\tmes_nombre = v_mes_nombre[ahora.get(Calendar.MONTH)];\n\t\tdia_nombre = v_dia_nombre[ahora.get(Calendar.DAY_OF_WEEK) - 1];\n\n\t}", "public void cartgarTareasConRepeticionDespuesDe(TareaModel model,int unid_medi,String cant_tiempo,String tomas)\n {\n Date fecha = convertirStringEnFecha(model.getFecha_aviso(),model.getHora_aviso());\n Calendar calendar = Calendar.getInstance();\n\n if(fecha != null)\n {\n calendar.setTime(fecha);\n calcularCantidadDeRepeticionesHorasMin(unid_medi,calendar,cant_tiempo,tomas,model);\n }\n }", "@Override\npublic JsonArray queryStatistics(String date, Employee em) throws Exception {\n\tint [] montharr= {31,28,31,30,31,30,31,31,30,31,30,31};\n\tSystem.out.println(date);\n\tint year;\n\tint month;\n\tif(date.length()==0){\n\t\tmonth = new Date().getMonth()+1;\n\t\tyear= new Date().getYear()+1900;\n\t}else{\n\t\tString[] s=date.split(\"-\");\n\t\tyear=Integer.parseInt(s[0]);\n\t\tmonth=Integer.parseInt(s[1]);\n\t}\n\t\n\t\n\tList<Map<String,Object>> lstMap = new LinkedList<Map<String,Object>>();\n\tfor (int i = 1; i <=montharr[month-1] ; i++) {\n\t\tStringBuffer buffer =new StringBuffer(\"select SUM(c.golds) from consumption c,machineinfo m where c.fmachineid=m.id and m.state!=-1 and c.type=-1 and m.empid=\")\n\t\t\t\t.append(em.getId()).append(\" and year(c.createtime) =\").append(year)\n\t\t\t\t.append(\" and month(c.createtime) =\").append(month).append(\" and day(c.createtime) =\").append(i);;\n\t\t\t\tSystem.out.println(buffer);\n\t\t\t\tMap<String,Object> map = new HashMap<String,Object>();\n\t\t\t\tList<Object> lst = databaseHelper.getResultListBySql(buffer.toString());\n\t\t\t\t\n\t\t\t\tmap.put(\"nums\", lst==null?\"0\":lst.size()==0?\"0\":lst.get(0)==null?\"0\":lst.get(0).toString());\n\t\t\t\tmap.put(\"time\", i+\"日\");\n\t\t\t\tmap.put(\"month\", month);\n\t\t\t\tlstMap.add(map);\n\t}\n\tString result = new Gson().toJson(lstMap);\n\tJsonArray jarr = (JsonArray) new JsonParser().parse(result);\n\treturn jarr;\n}", "public void obtener() {\r\n \t\r\n \tif (raiz!=null)\r\n {\r\n int informacion = raiz.dato;\r\n raiz = raiz.sig;\r\n end = raiz;\r\n System.out.println(\"Obtenemos el dato de la cima: \"+informacion);\r\n }\r\n else\r\n {\r\n System.out.println(\"No hay datos en la pila\");\r\n }\r\n }", "public Vector listaAsignaturasTotal(String nombre_titulacion)\n {\n try\n { \n //Se obtiene una conexion\n Connection conexion = this.bbdd.getConexion();\n\n //Se prepara la query\n String query = \"SELECT * FROM asignaturatotal \";\n query += \"WHERE tit_nombre='\"+nombre_titulacion+\"' AND activa = 's'\";\n\n //Se crea un vector de asignaturas\n Vector vectorAsignaturas = new Vector();\n\n //Se ejecuta la query\n Statement st = conexion.createStatement();\n ResultSet resultado = st.executeQuery(query);\n\n //Para cada fila se creará un objeto y se rellenará\n //con los valores de las columnas.\n while(resultado.next())\n {\n asignatura asignatura = new asignatura();\n\n asignatura.setCodigo(resultado.getString(\"codigo\"));\n asignatura.setTitulo(resultado.getString(\"titulo\"));\n asignatura.setFechaInicio(resultado.getDate(\"fechainicio\"));\n asignatura.setFechaFin(resultado.getDate(\"fechafin\"));\n asignatura.setResponsable(resultado.getString(\"responsable\"));\n asignatura.setEmail(resultado.getString(\"email\"));\n asignatura.setTelefono(resultado.getString(\"telefono\"));\n\n //Se añade la asignatura al vector de asignaturas\n vectorAsignaturas.add(asignatura);\n }\n\n //Se cierra la conexión\n this.bbdd.cerrarConexion(conexion);\n\n return vectorAsignaturas;\n }\n catch(SQLException e)\n {\n System.out.println(\"Error al acceder a las asignaturas de la Base de Datos: \"+e.getMessage());\n return null;\n }\n }", "public void actualiser(){\n try{\n \t\n /* Memo des variables : horaireDepart tableau de string contenant l'heure de depart entree par l'user\n * heure = heure saisie castee en int, minutes = minutes saisie castee en Integer\n * tpsRest = tableau de string contenant la duree du cours en heure entree par l'user\n * minutage = format minutes horaire = format heure, ils servent a formater les deux variables currentTime qui recuperent l'heure en ms\n * tempsrestant = variable calculant le temps restant en minutes, heurerestante = variable calculant le nombre d'heure restantes\n * heureDuree = duree du cours totale en int minutesDuree = duree totale du cours en minute\n * tempsfinal = temps restant reel en prenant en compte la duree du cours\n * angle = temps radian engleu = temps en toDegrees\n */\n String[] horaireDepart = Reader.read(saisie.getText(), this.p, \"\\\\ \");\n \n //on check si le pattern est bon et si l'utilisateur n'est pas un tard\n if(Reader.isHour(horaireDepart)){\n \t\n int heure = Integer.parseInt(horaireDepart[0]);\n int minutes = Integer.parseInt(horaireDepart[2]);\n minutes += (heure*60);\n String[] tpsrest = Reader.read(format.getText(), this.p, \"\\\\ \");\n \n //conversion de la saisie en SimpleDateFormat pour les calculs\n SimpleDateFormat minutage = new SimpleDateFormat (\"mm\");\n SimpleDateFormat Horaire = new SimpleDateFormat (\"HH\");\n \n //recupere l'heure en ms\n Date currentTime_1 = new Date(System.currentTimeMillis());\n Date currentTime_2 = new Date(System.currentTimeMillis());\n \n //cast en int pour les calculs\n int tempsrestant = Integer.parseInt(minutage.format(currentTime_1));\n int heurerestante = Integer.parseInt(Horaire.format(currentTime_2))*60;\n tempsrestant += heurerestante;\n \n //pareil mais pour la duree\n if(Reader.isHour(tpsrest)){\n int heureDuree = Integer.parseInt(tpsrest[0]);\n int minutesDuree = Integer.parseInt(tpsrest[2]);\n minutesDuree += (heureDuree*60);\n tempsrestant -= minutes;\n int tempsfinal = minutesDuree - tempsrestant;\n \n //conversion du temps en angle pour l'afficher \n double angle = ((double)tempsfinal*2/(double)minutesDuree)*Math.PI;\n int engleu = 360 - (int)Math.toDegrees(angle);\n for(int i = 0; i < engleu; i++){\n this.panne.dessineLine(getGraphics(), i);\n }\n \n //conversion du temps en pi radiant pour l'affichage\n if(tempsfinal < minutesDuree){\n tempsfinal *= 2;\n for(int i = minutesDuree; i > 1; i--){\n if(tempsfinal % i == 0 && minutesDuree % i == 0){\n tempsfinal /= i;\n minutesDuree /= i;\n }\n }\n }\n \n //update l'affichage\n this.resultat.setText(tempsfinal + \"/\" + minutesDuree + \"π radiant\");\n this.resultat.update(this.resultat.getGraphics());\n }\n }\n }catch(FormatSaisieException fse){\n this.resultat.setText(fse.errMsg(this.p.toString()));\n }\n }", "public void contabilizarConMesYProfesor(ProfesorBean profesor, int mes){\r\n GestionDetallesInformesBD.deleteDetallesInforme(profesor, mes); \r\n\r\n //Preparamos todos los datos. Lista de fichas de horario.\r\n ArrayList<FichajeBean> listaFichajes = GestionFichajeBD.getListaFichajesProfesor(profesor,mes);\r\n ArrayList<FichajeRecuentoBean> listaFichajesRecuento= UtilsContabilizar.convertirFichajes(listaFichajes);\r\n\r\n /**\r\n * Contabilizar horas en eventos de día completo\r\n */\r\n \r\n int segundosEventosCompletos=contabilizarEventosCompletos(listaFichajesRecuento, profesor,mes);\r\n \r\n /**\r\n * Contabilizar horas en eventos de tiempo parcial\r\n */\r\n \r\n ArrayList<EventoBean> listaEventos=GestionEventosBD.getListaEventosProfesor(false, profesor, mes);\r\n int segundosEventosParciales=contabilizarEventosParciales(listaFichajesRecuento,listaEventos, profesor, mes, \"C\");\r\n \r\n /**\r\n * Contabilizamos las horas lectivas\r\n */\r\n ArrayList<FichaBean> listaFichasLectivas=UtilsContabilizar.getHorarioCompacto(profesor, \"L\");\r\n int segundosLectivos=contabilizaHorasLectivasOCmplementarias(listaFichajesRecuento, listaFichasLectivas, profesor,\"L\", mes);\r\n \r\n /**\r\n * Contabilizar horas complementarias\r\n */\r\n ArrayList<FichaBean> listaFichasComplementarias=UtilsContabilizar.getHorarioCompacto(profesor, \"C\");\r\n int segundosComplementarios=contabilizaHorasLectivasOCmplementarias(listaFichajesRecuento, listaFichasComplementarias, profesor,\"C\", mes);\r\n \r\n /**\r\n * Contabilizamos la horas no lectivas (el resto de lo que quede en los fichajes.\r\n */\r\n int segundosNLectivos=contabilizaHorasNoLectivas(listaFichajesRecuento, profesor, true, mes);\r\n \r\n /**\r\n * Contabilizamos las horas extra añadidas al profesor\r\n */\r\n ArrayList<HoraExtraBean> listaHorasExtra=GestionHorasExtrasBD.getHorasExtraProfesor(profesor, mes);\r\n HashMap<String, Integer> tablaHorasExtra = contabilizaHorasExtra(listaHorasExtra, profesor, mes);\r\n \r\n System.out.println(\"Segundos de horas lectivas: \"+Utils.convierteSegundos(segundosLectivos));\r\n System.out.println(\"Segundos de horas complementarias: \"+Utils.convierteSegundos(segundosComplementarios));\r\n System.out.println(\"Segundos de horas no lectivas: \"+Utils.convierteSegundos(segundosNLectivos));\r\n System.out.println(\"Segundos eventos completos: \"+Utils.convierteSegundos(segundosEventosCompletos));\r\n System.out.println(\"Segundos eventos parciales: \"+Utils.convierteSegundos(segundosEventosParciales));\r\n System.out.println(\"Total: \"+Utils.convierteSegundos((segundosComplementarios+segundosLectivos+segundosNLectivos+segundosEventosCompletos+segundosEventosParciales)));\r\n \r\n /**\r\n * Comprobacion\r\n */\r\n listaFichajes = GestionFichajeBD.getListaFichajesProfesor(profesor,mes);\r\n listaFichajesRecuento= UtilsContabilizar.convertirFichajes(listaFichajes);\r\n int segundosValidacion=contabilizaHorasNoLectivas(listaFichajesRecuento, profesor, false, mes);\r\n int segundosValidacion2=segundosComplementarios+segundosLectivos+segundosNLectivos+segundosEventosCompletos+segundosEventosParciales;\r\n System.out.println(\"Comprobacion: \"+Utils.convierteSegundos(segundosValidacion));\r\n String obser=segundosValidacion==segundosValidacion2?\"Correcto\":\"No coinciden las horas en el colegio, con las horas calculadas de cada tipo.\";\r\n \r\n segundosComplementarios+=segundosEventosCompletos;\r\n segundosComplementarios+=segundosEventosParciales;\r\n\r\n //Guardamos en la base de datos\r\n GestionInformesBD.guardaInforme(profesor, obser, segundosLectivos, segundosNLectivos, segundosComplementarios,mes);\r\n \r\n }", "private void validarhorarioconotroshorariosactivos(HorarioAsignado horarioasignado, List<HorarioAsignado> horarios) throws LogicaException, ParseException, DatoException {\nGregorianCalendar startasignado=new GregorianCalendar();\nDate startdateasignado= new Date(horarioasignado.getValidezinicio().getTime());\nstartasignado.setTime(startdateasignado);\nGregorianCalendar endasignado=new GregorianCalendar();\nDate enddateasignado= new Date(horarioasignado.getValidezfin().getTime());\nendasignado.setTime(enddateasignado);\n\nint tempfrecasignado = horarioasignado.getHorario().getIdfrecuenciaasignacion().intValue();\nList<Integer> diadelasemanaasignado = diadelasemana(tempfrecasignado);\nList<HashMap<String, Object>> dataasignado = Util.diferenciaEnDiasconFrecuencia(startasignado, endasignado,diadelasemanaasignado,tempfrecasignado);\n\n\n\n\nfor(HorarioAsignado ho:horarios){\n\t\t\tif(ho.getIdhorarioasignado().equals(horarioasignado.getIdhorarioasignado())){\n\t\t\t\n\t\t\t}else{\n\t\t\tif(ho.getIdhorario()==horarioasignado.getIdhorario()){\n\t\t\t\n\t\t\t/*//cedulasconhorarios.add(em);\n\t\t\tif (horarioasignado.getValidezinicio().after(ho.getValidezinicio()) && horarioasignado.getValidezinicio().before(ho.getValidezfin())){\n\t\t\tthrow new LogicaException(\"este contrato ya tiene asociado ese horario\"\n\t\t\t+ \" entre las fechas \"+ho.getValidezinicio()+\" y \"+ ho.getValidezfin());\n\t\t\t\n\t\t\t}*/\n\t\t\t\n\t\t\t}else{\n\t\t\t\n\t\t\t}\n\n\t\tContrato contrato = contratoEJB.getContratosporId(ho.getIdcontrato());\n\t\tEmpleadoBean empleado = empleadoEJB.buscarEmpleadosporId(contrato.getIdempleado());\t\n\tGregorianCalendar start=new GregorianCalendar();\n\tDate startdate= new Date(ho.getValidezinicio().getTime());\n\tstart.setTime(startdate);\n\tGregorianCalendar end=new GregorianCalendar();\n\tDate enddate= new Date(ho.getValidezfin().getTime());\n\tend.setTime(enddate);\n\t\n\tint tempfrec = ho.getHorario().getIdfrecuenciaasignacion().intValue();\n\tList<Integer> diadelasemana = diadelasemana(tempfrec);\n\tList<HashMap<String, Object>> data = Util.diferenciaEnDiasconFrecuencia(start, end,diadelasemana,tempfrec);\n\t\n\t\t\t\t\tfor(HashMap<String, Object> diadehorario:data){\n\t\t\t\tHashMap<String, Object> horariofechas=new HashMap<String, Object>();\n\t\t\t\tGregorianCalendar fecha = (GregorianCalendar)diadehorario.get(\"fecha\");\n\t\t\t\tDate fechadat =fecha.getTime();\n\t\t\t\tGregorianCalendar fechafin = (GregorianCalendar)diadehorario.get(\"fechafin\");\n\t\t\t\tDate fechafindat = fechafin.getTime();\n\t\t\t\tfor(HashMap<String, Object> diaasignado:dataasignado){\n\t\t\t\t\t\tHashMap<String, Object> horariofechasasignadas=new HashMap<String, Object>();\n\t\t\t\t\t\tGregorianCalendar fechaasignada = (GregorianCalendar)diaasignado.get(\"fecha\");\n\t\t\t\t\t\tDate fechaasignadadat =fechaasignada.getTime();\n\t\t\t\t\t\tGregorianCalendar fechafinasignada = (GregorianCalendar)diaasignado.get(\"fechafin\");\n\t\t\t\t\t\tDate fechafinasignadadat = fechafinasignada.getTime();\n\t\t\t\t\t\t\t\t\tif(fechaasignada.after(fechafin)){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif((fechaasignada.getTime().after(fecha.getTime())||fechaasignada.getTime().equals(fecha.getTime())) && fechaasignada.getTime().before(fechafin.getTime()) ){\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//\tif((fechaasignada.getTime().after(fecha.getTime()) && fechaasignada.getTime().before(fechafin.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\") +\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\t\tif((fechafinasignada.getTime().after(fecha.getTime())||fechafinasignada.getTime().equals(fecha.getTime())) && fechafinasignada.getTime().before(fechafin.getTime()) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif((fecha.getTime().after(fechaasignada.getTime() ) && fecha.getTime().before(fechafinasignada.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\t\tif((fechafin.getTime().after(fechaasignada.getTime() ) && fechafin.getTime().before(fechafinasignada.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\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\n}\n\n\n}\n\n\n/////////////////////////fin validacion/\n}", "public Collection getEntradaTrasladosEntreDiasoTemporadas(Long temporadaId, Date dataInici, Date dataFin) throws InfrastructureException {\r\n\t\tCollection col;\r\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\ttry {\r\n\t\t\tlogger.debug(\"getEntradaTrasladosEntreDiasoTemporadas ini\");\r\n\t\t\tString q = \"from Trasllat tdi where tdi.retornatEstablimentOrigen = true \";\r\n\r\n\t\t\tif(dataInici!= null || dataFin != null){\r\n\t\t\t\tLong campanyaActualId = (Long)getHibernateTemplate().find(\"select max(cam.id) from Campanya cam\").get(0);\r\n\t\t\t\tif(dataInici != null){\r\n\t\t\t\t\tString fi = df.format(dataInici);\r\n\t\t\t\t\tq = q+ \" and tdi.data >= '\"+fi+\"' \";\r\n\t\t\t\t}\r\n\t\t\t\tif(dataFin != null){\r\n\t\t\t\t\tString ff = df.format(dataFin);\r\n\t\t\t\t\tq = q+ \" and tdi.data <= '\"+ff+\"' \";\r\n\t\t\t\t}\r\n\r\n\t\t\t\tq = q+\" and tdi.establimentByTdiCodede.campanya.id=\"+campanyaActualId;\r\n\r\n\t\t\t}else{\r\n\t\t\t\tq = q+ \" and tdi.establimentByTdiCodede.campanya.id=\"+temporadaId;\r\n\t\t\t}\r\n\r\n\t\t\tcol = getHibernateTemplate().find(q);\t\t\t\r\n\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tlogger.error(\"getEntradaTrasladosEntreDiasoTemporadas failed\", ex);\r\n\t\t\tthrow new InfrastructureException(ex);\r\n\t\t}\r\n\t\tlogger.debug(\"getEntradaTrasladosEntreDiasoTemporadas fin\");\r\n\t\treturn col;\r\n\t}", "private void creaModuloMem() {\n /* variabili e costanti locali di lavoro */\n ArrayList<Campo> campi = new ArrayList<Campo>();\n ModuloRisultati modulo;\n Campo campo;\n\n try { // prova ad eseguire il codice\n\n campo = CampoFactory.intero(Campi.Ris.codicePiatto.getNome());\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.nomePiatto.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"piatto\");\n campo.setToolTipLista(\"nome del piatto\");\n campo.decora()\n .etichetta(\"nome del piatto\"); // le etichette servono per il dialogo ricerca\n campo.setLarghezza(250);\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.categoria.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"categoria\");\n campo.setToolTipLista(\"categoria del piatto\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteVolte.getNome());\n campo.setVisibileVistaDefault();\n campo.setLarghezza(80);\n campo.setTitoloColonna(\"quante volte\");\n campo.setToolTipLista(\n \"quante volte questo piatto è stato offerto nel periodo analizzato\");\n campo.decora().etichetta(\"quante volte\");\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quantiCoperti.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"coperti\");\n campo.setToolTipLista(\"numero di coperti che avrebbero potuto ordinare\");\n campo.decora().etichetta(\"n. coperti\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteComande.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"comande\");\n campo.setToolTipLista(\"numero di comande effettive\");\n campo.decora().etichetta(\"n. comande\");\n campo.setLarghezza(80);\n campo.setTotalizzabile(true);\n campi.add(campo);\n\n campo = CampoFactory.percentuale(Campi.Ris.gradimento.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"gradimento\");\n campo.setToolTipLista(\n \"percentuale di gradimento (è il 100% se tutti i coperti potenziali lo hanno ordinato)\");\n campo.decora().etichetta(\"% gradimento\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n modulo = new ModuloRisultati(campi);\n setModuloRisultati(modulo);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "public Muestra(String nombreMuestra,Float peso, Float profundidadInicial,Float profundidadFinal,OperadorDeLaboratorio operador,\r\n\t\t\t\t\tUsuario usuario, Ubicacion ubicacion, AASHTO aashto, SUCS sucs,Cliente cliente,java.sql.Date fecha) {\r\n\t\tthis.nombreMuestra = nombreMuestra;\r\n\t\tthis.profundidadInicial = profundidadInicial;\r\n\t\tthis.profundidadFinal = profundidadFinal;\r\n\t\tthis.peso = peso;\r\n\t\tthis.operadorLaboratorio = operador;\r\n\t\tthis.cliente = cliente;\r\n\t\tthis.usuario = usuario;\r\n\t\tthis.ubicacion = ubicacion;\r\n\t\tthis.aashto = aashto;\r\n\t\tthis.sucs = sucs;\r\n\t\tthis.fecha = fecha;\r\n\t\tD10= new Float(0);\r\n\t\tD30= new Float(0);\r\n\t\tD60= new Float(0);\r\n\t\tthis.gradoCurvatura = new Float(0);\r\n\t\tthis.coeficienteUniformidad = new Float(0);\r\n\t\tindicePlasticidad = new Float(0);\r\n\t\tlimitePlastico = new Float(0);\r\n\t\tlimiteLiquido = new Float(0);\r\n\t}", "public void ActualizadorOro(){\n\njavax.swing.Timer ao = new javax.swing.Timer(1000*60, new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n try {\n Connection conn = Conectar.conectar();\n Statement st = conn.createStatement();\n\n usuarios = new ArrayList<Usuario>();\n ResultSet rs = st.executeQuery(\"select * from usuarios\");\n while(rs.next()){\n usuarios.add(new Usuario(rs.getString(1), rs.getString(2), rs.getString(3), Integer.parseInt(rs.getString(4)), Integer.parseInt(rs.getString(5)), Integer.parseInt(rs.getString(6)), Integer.parseInt(rs.getString(7))));\n }\n\n //preparamos una consulta que nos lanzara el numero de minas por categoria que tiene cada usuario\n String consulta1 = \"select idEdificio, count(*) from regiones, edificiosregion\"+\n \" where regiones.idRegion=edificiosregion.idRegion\"+\n \" and propietario='\";\n\n String consulta2 = \"' and idEdificio in (1101,1102,1103,1104,1105)\"+\n \" group by idEdificio\";\n\n //recorremos toda la lista sumando el oro, dependiendo del numero de minas que posea\n ResultSet rs2 = null;\n for(Usuario usuario : usuarios){\n rs2 = st.executeQuery(consulta1 + usuario.getNick() + consulta2);\n int oro = 0;\n while(rs2.next()){\n System.out.println(Integer.parseInt(rs2.getString(1)));\n if(Integer.parseInt(rs2.getString(1)) == 1101){\n oro = oro + (rs2.getInt(2) * 100);\n }\n else if(Integer.parseInt(rs2.getString(1)) == 1102){\n oro = oro + (rs2.getInt(2) * 150);\n }\n else if(Integer.parseInt(rs2.getString(1)) == 1103){\n oro = oro + (rs2.getInt(2) * 300);\n }\n else if(Integer.parseInt(rs2.getString(1)) == 1104){\n oro = oro + (rs2.getInt(2) * 800);\n }\n else if(Integer.parseInt(rs2.getString(1)) == 1105){\n oro = oro + (rs2.getInt(2) * 2000);\n }\n }\n st.executeQuery(\"UPDATE usuarios SET oro = (SELECT oro+\" + oro + \" FROM usuarios WHERE nick ='\" + usuario.getNick() + \"'\"+\n \") WHERE nick = '\" + usuario.getNick() + \"'\");\n\n }\n st.close();\n rs.close();\n rs2.close();\n conn.close();\n\n } catch (SQLException ex) {\n System.out.println(ex.getMessage() + \" Fallo actualizar oro.\");\n }\n\n }\n });\n\n ao.start();\n}", "public static void main(String[] args) { \n// \n// try(\n// Connection conn = DBClass.getConn();\n// // En caso de necesitar llenar algun campo con informacion especifica colocamos '?'\n// PreparedStatement pst = conn.prepareStatement(\"SELECT * from lugar\");\n// ){\n// \n// \n// \n// // Pedimos ejecutar el query..\n// ResultSet rst = pst.executeQuery();\n// \n// // Ciclo mientras exista algo en la respuesta de la consulta\n// while (rst.next()){\n// }\n// \n// // Cerramos la conexion para no desperdiciar recursos\n// conn.close();\n// }\n// catch (SQLException ex) {\n// ex.printStackTrace();\n// }\n\n Calendar cal = Calendar.getInstance(); // creates calendar\n cal.setTime(new Date()); // sets calendar time/date\n// cal.add(Calendar.HOUR_OF_DAY, 7); // adds one hour\n cal.add(Calendar.DAY_OF_MONTH, 0);\n \n System.out.println(cal.getTime());\n }", "public String dimeTuTiempo()\n {\n String cadResultado=\"\";\n if (horas<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+horas;\n cadResultado=cadResultado+\":\";\n if(minutos<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+minutos;\n \n return cadResultado;\n }", "public void liquidarEmpleado(Fecha fechaLiquidacion) {\n //COMPLETE\n double prima=0; \n boolean antiguo=false;\n double aniosEnServicio=fechaLiquidacion.getAnio()-this.fechaIngreso.getAnio();\n if(aniosEnServicio>0&&\n fechaLiquidacion.getMes()>this.fechaIngreso.getMes())\n aniosEnServicio--; \n \n //System.out.println(\"A:\"+aniosEnServicio+\":\"+esEmpleadoLiquidable(fechaLiquidacion));\n if(esEmpleadoLiquidable(fechaLiquidacion)){\n this.descuentoSalud=salarioBase*0.04;\n this.descuentoPension=salarioBase*0.04;\n this.provisionCesantias=salarioBase/12;\n if(fechaLiquidacion.getMes()==12||fechaLiquidacion.getMes()==6)\n prima+=this.salarioBase*0.5; \n if(aniosEnServicio<6&&\n fechaLiquidacion.getMes()==this.fechaIngreso.getMes())prima+=((aniosEnServicio*5)/100)*this.salarioBase;\n if(aniosEnServicio>=6&&fechaLiquidacion.getMes()==this.fechaIngreso.getMes()) prima+=this.salarioBase*0.3;\n\n this.prima=prima;\n this.setIngresos(this.salarioBase+prima);\n \n this.setDescuentos(this.descuentoSalud+this.descuentoPension);\n this.setTotalAPagar(this.getIngresos()-this.getDescuentos());\n }\n\n }", "private Calendar modificarHoraReserva(Date horaInicio, int hora) {\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(horaInicio);\n calendar.set(Calendar.HOUR, hora);\n calendar.set(Calendar.MINUTE, 0);\n calendar.set(Calendar.MINUTE, 0);\n return calendar;\n }", "public void initTempsPassage() {\r\n\t\tlong dureeTotale = heureDepart.getTime();\r\n\t\ttempsPassage = new Date[getItineraire().size()][2];\r\n\r\n\t\tfor (int i = 0; i < getItineraire().size(); i++) {\r\n\t\t\tfor (int j = 0; j < getItineraire().get(i).getTroncons().size(); j++) {\r\n\t\t\t\tdureeTotale += getItineraire().get(i).getTroncons().get(j).getLongueur() * 1000 / VITESSE;// Duree\r\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// des\r\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// trajets\r\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// en\r\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// seconde\r\n\r\n\t\t\t}\r\n\t\t\tif (i < listeLivraisons.size()) {\r\n\t\t\t\tif (listeLivraisons.get(i).getDebutPlageHoraire() != null\r\n\t\t\t\t\t\t&& listeLivraisons.get(i).getDebutPlageHoraire().getTime() > dureeTotale) {\r\n\t\t\t\t\ttempsPassage[i][0] = new Date(dureeTotale);\r\n\t\t\t\t\ttempsPassage[i][1] = new Date(listeLivraisons.get(i).getDebutPlageHoraire().getTime());\r\n\t\t\t\t\tdureeTotale = listeLivraisons.get(i).getDebutPlageHoraire().getTime();\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttempsPassage[i][0] = new Date(dureeTotale);\r\n\t\t\t\t}\r\n\t\t\t\tdureeTotale += listeLivraisons.get(i).getDuree() * 1000; // duree\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// de\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// livraison\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// en\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ms\r\n\t\t\t} else {\r\n\t\t\t\ttempsPassage[i][0] = new Date(dureeTotale);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\theureArrivee = new Date(dureeTotale);\r\n\t}", "long buscarUltimo();", "private Filtro getFiltroFissiGiornoConto(Date data, int codConto) {\n /* variabili e costanti locali di lavoro */\n Filtro filtro = null;\n Filtro filtroDate = null;\n Filtro filtroInizio = null;\n Filtro filtroSincro;\n Filtro filtroVuota;\n Filtro filtroIntervallo;\n Filtro filtroFine;\n Filtro filtroConto = null;\n Modulo modConto;\n Date dataVuota;\n\n try { // prova ad eseguire il codice\n\n modConto = Progetto.getModulo(Conto.NOME_MODULO);\n\n filtroDate = new Filtro();\n\n filtroInizio = FiltroFactory.crea(Cam.dataInizioValidita.get(),\n Filtro.Op.MINORE_UGUALE,\n data);\n filtroSincro = FiltroFactory.crea(Cam.dataSincro.get(), Filtro.Op.MINORE, data);\n dataVuota = Lib.Data.getVuota();\n filtroVuota = FiltroFactory.crea(Cam.dataSincro.get(), dataVuota);\n\n filtroFine = FiltroFactory.crea(Cam.dataFineValidita.get(),\n Filtro.Op.MAGGIORE_UGUALE,\n data);\n filtroIntervallo = new Filtro();\n filtroIntervallo.add(filtroSincro);\n filtroIntervallo.add(filtroFine);\n\n filtroDate.add(filtroIntervallo);\n filtroDate.add(Filtro.Op.OR, filtroVuota);\n\n /* filtro per il conto */\n filtroConto = FiltroFactory.codice(modConto, codConto);\n\n filtro = new Filtro();\n filtro.add(filtroInizio);\n filtro.add(filtroDate);\n filtro.add(filtroConto);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return filtro;\n }", "public void ponerMaximoTiempo() {\n this.timeFi = Long.parseLong(\"2000000000000\");\n }", "@Override\n\tpublic int horas_trabajo() {\n\t\treturn 1000;\n\t}", "@PrePersist\r\n\tpublic void prePersist() {\n\t\ttry { Thread.sleep(1); } catch (Exception e) { System.out.println(\"Impossibile fermare il thread per 1 ms.\");}\r\n\t\tGregorianCalendar now = new GregorianCalendar();\r\n\t\tdataArrivoFile = new Date(now.getTimeInMillis());\r\n\t\tannoOrdine = now.get(Calendar.YEAR);\r\n\t\tannodoc = now.get(Calendar.YEAR);\r\n\t\tgenMovUscita = \"NO\";\r\n\t\t// il numero di lista è necessario, se non c'è lo genero.\r\n\t\tif (nrLista == null || nrLista.isEmpty()) {\r\n\t\t\tnrLista = sdf.format(now.getTime());\r\n\t\t}\r\n\t\t// il raggruppamento stampe è necessario, se non c'è lo imposto uguale al numero di lista.\r\n\t\tif (ragstampe == null || ragstampe.isEmpty()) {\r\n\t\t\tragstampe = nrLista;\r\n\t\t}\r\n\t\tnrListaArrivato = 0; // TODO, in teoria sarebbe come un autoincrement\r\n\t\tif (nomeFileArrivo == null || nomeFileArrivo.isEmpty()) nomeFileArrivo = sdf.format(now.getTime());\r\n\t\t// Se non ho specificato l'operatore assumo che sia un servizio.\r\n\t\tif (operatore == null || operatore.isEmpty()) operatore = \"SERVIZIO\";\r\n\t\t// Priorita', se non valorizzata imposto il default.\r\n\t\tif (priorita <= 0) priorita = 1;\r\n\t\t// Contrassegno\r\n\t\tif (tipoIncasso == null) tipoIncasso = \"\";\r\n\t\tif (valContrassegno == null) valContrassegno = 0.0;\r\n\t\tif (valoreDoganale == null)\tvaloreDoganale = 0.0;\r\n\t\t// Corriere, se null imposto a stringa vuota.\r\n\t\tif (corriere == null) corriere = \"\";\r\n\t\t// Codice cliente per il corriere, se null imposto a stringa vuota.\r\n\t\tif (codiceClienteCorriere == null) codiceClienteCorriere = \"\";\r\n\t\tif (stato == null) stato = \"INSE\";\r\n\t\tif (sessioneLavoro == null) sessioneLavoro = \"\";\r\n\t\tif (tipoDoc == null) tipoDoc = \"ORDINE\";\r\n\t}" ]
[ "0.65796304", "0.6567512", "0.6531469", "0.6436833", "0.6397229", "0.6357454", "0.63457197", "0.6169481", "0.6102167", "0.59678566", "0.59553254", "0.59394836", "0.5929345", "0.58996314", "0.58848053", "0.5852679", "0.5846294", "0.5814713", "0.58074594", "0.5807429", "0.5771395", "0.57630324", "0.5749066", "0.57428795", "0.5727329", "0.57219374", "0.5718885", "0.56793946", "0.56657493", "0.5661223", "0.5631521", "0.5628222", "0.56241935", "0.55918324", "0.55820376", "0.5579386", "0.5576219", "0.55700916", "0.5563642", "0.5552246", "0.55422586", "0.5542199", "0.55403924", "0.5538429", "0.5535911", "0.5530948", "0.55147874", "0.5510357", "0.55087847", "0.5504325", "0.55042386", "0.5500763", "0.5496308", "0.5481943", "0.5481601", "0.54769903", "0.5469758", "0.54463965", "0.54424536", "0.5438207", "0.5428017", "0.5420417", "0.5416051", "0.541196", "0.5407336", "0.5406975", "0.54053414", "0.5389612", "0.53836584", "0.53724855", "0.5353401", "0.5353081", "0.5352009", "0.5351589", "0.53469986", "0.53463614", "0.5340291", "0.53297174", "0.5327731", "0.5326858", "0.5326274", "0.53216934", "0.53147805", "0.53100455", "0.530163", "0.52978253", "0.5297286", "0.52958745", "0.5295149", "0.52865493", "0.52755904", "0.5262378", "0.5262311", "0.52587426", "0.5257001", "0.52490556", "0.52464765", "0.5239695", "0.52360255", "0.52352035", "0.5232" ]
0.0
-1
Converte a data passada para o formato "DD/MM/YYYY"
public static String formatarData(String data) { String retorno = ""; if (data != null && !data.equals("") && data.trim().length() == 8) { retorno = data.substring(6, 8) + "/" + data.substring(4, 6) + "/" + data.substring(0, 4); } return retorno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String formatarData(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH) + \"/\");\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH) + \"/\");\r\n\t\t\t}\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1 + \"/\");\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1) + \"/\");\r\n\t\t\t}\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "private String formataData(long dt){\n\t\tDate d = new Date(dt);\n\t\tDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\treturn df.format(d);\n\t}", "private static String convertToDDMMYYYY(Date date) {\n\t\tString returnStr = \"\";\n\t\ttry {\n\t\tDateFormat format1 = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\treturnStr = format1.format(date);\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn returnStr;\n\t}", "public static Date converteStringInvertidaSemBarraAAAAMMDDParaDate(String data) {\r\n\t\tDate retorno = null;\r\n\r\n\t\tString dataInvertida = data.substring(6, 8) + \"/\" + data.substring(4, 6) + \"/\" + data.substring(0, 4);\r\n\r\n\t\tSimpleDateFormat dataTxt = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\ttry {\r\n\t\t\tretorno = dataTxt.parse(dataInvertida);\r\n\t\t} catch (ParseException e) {\r\n\t\t\tthrow new IllegalArgumentException(data + \" não tem o formato dd/MM/yyyy.\");\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public String retornaData(){\n\t\tCalendar calendar = new GregorianCalendar();\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tDate date = new Date();\n\t\tcalendar.setTime(date);\n\t\treturn df.format(calendar.getTime());\n\t}", "public Date formatForDate(String data) throws ParseException{\n //definindo a forma da Data Recebida\n DateFormat formatUS = new SimpleDateFormat(\"dd-MM-yyyy\");\n return formatUS.parse(data);\n }", "public static Date converteStringInvertidaSemBarraAAMMDDParaDate(String data) {\r\n\t\tDate retorno = null;\r\n\r\n\t\tString dataInvertida = data.substring(4, 6) + \"/\" + data.substring(2, 4) + \"/20\" + data.substring(0, 2);\r\n\r\n\t\tSimpleDateFormat dataTxt = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\ttry {\r\n\t\t\tretorno = dataTxt.parse(dataInvertida);\r\n\t\t} catch (ParseException e) {\r\n\t\t\tthrow new IllegalArgumentException(data + \" não tem o formato dd/MM/yyyy.\");\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public String ConvertDate(){\r\n//\t\tDate date=JavaUtils.getSystemDate();\r\n//\t DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n\t String pattern = \"yyyy-MM-dd\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n\r\n\t String date = simpleDateFormat.format(new Date());\r\n//\t System.out.println(date);\r\n\t \r\n//\t String s = df.format(date);\r\n//\t String result = s;\r\n//\t try {\r\n//\t date=df.parse(result);\r\n//\t } catch (ParseException e) {\r\n//\t // TODO Auto-generated catch block\r\n//\t e.printStackTrace();\r\n//\t }\r\n\t return date;\r\n\t }", "public String convertDateToString(){\n\t\tString aDate = \"\";\n\t\taDate += Integer.toString(day);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(month);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(year);\n\t\treturn aDate;\n\t}", "public String dar_fecha(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n return dateFormat.format(date).toString();\n\n }", "private String convertDate(String date){\r\n String arrDate[] = date.split(\"/\");\r\n date = arrDate[2] + \"-\" + arrDate[1] + \"-\" + arrDate[0];\r\n return date;\r\n }", "private String formatDate(Date date) {\n String resultDate;\n SimpleDateFormat dateFormat;\n dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n resultDate = dateFormat.format(date);\n return resultDate;\n }", "public Date ToDate(String line){\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy/MM/dd\");\n try {\n Date d = sdf.parse(line);\n return d;\n } catch (ParseException ex) {\n\n Log.v(\"Exception\", ex.getLocalizedMessage());\n return null;\n }\n }", "public static String dateTran(String dateOri){\n\t\tDateFormat formatter1 ; \n\t\tDate date ; \n\t\tString newDate=null;\n\t\tformatter1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\ttry {\n\t\t\tdate=formatter1.parse(dateOri);\n\t\t\tSimpleDateFormat formatter = new SimpleDateFormat ( \"M/d/yy\" );\n\t\t\tnewDate = formatter.format(date);\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn newDate;\n\t}", "public static String convertDate(String dbDate) throws ParseException //yyyy-MM-dd\n {\n String convertedDate = \"\";\n\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(dbDate);\n\n convertedDate = new SimpleDateFormat(\"MM/dd/yyyy\").format(date);\n\n return convertedDate ;\n }", "public LocalDate Data(String data) {\n DateTimeFormatter formatodata = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\n //crio o objeto localdate que formata a informação intoduzida para o formato que eu paremetrizei em formatodata\n LocalDate localDate = LocalDate.parse(data, formatodata);\n\n return localDate;\n }", "private String formatarData(Date data)\n {\n String sDate;\n String sDia = \"\";\n String sMes = \"\";\n\n GregorianCalendar calendar = new GregorianCalendar();\n calendar.setTime(data);\n int dia = calendar.get(GregorianCalendar.DAY_OF_MONTH);\n if (dia > 0) {\n if (dia < 10) {\n sDia = \"0\";\n }\n }\n sDia += dia;\n\n int mes = calendar.get(GregorianCalendar.MONTH);\n mes = mes + 1;\n if (mes > 0) {\n if (mes < 10) {\n sMes = \"0\";\n }\n }\n sMes += mes;\n\n int ano = calendar.get(GregorianCalendar.YEAR);\n\n int hora = calendar.get(GregorianCalendar.HOUR);\n // 0 = dia\n // 1 = noite\n int amPm = calendar.get(GregorianCalendar.AM_PM);\n\n if(amPm == 1)\n {\n if(hora>0 && hora < 13)\n {\n if(hora > 11)\n hora = 0;\n else\n hora += 12;\n }\n }\n\n String sHora = \" \";\n if(hora<=9)\n {\n sHora += \"0\";\n }\n String sMin=\":\";\n int min = calendar.get(GregorianCalendar.MINUTE);\n if(min <10)\n sMin += \"0\";\n sMin += String.valueOf(min);\n sHora += String.valueOf(hora) + sMin + \":00\";\n sDate = String.valueOf(ano) + \"-\" + sMes + \"-\" + sDia + sHora;\n return sDate;\n\n }", "public String convertDateFormate(String dt) {\n String formatedDate = \"\";\n if (dt.equals(\"\"))\n return \"1970-01-01\";\n String[] splitdt = dt.split(\"-\");\n formatedDate = splitdt[2] + \"-\" + splitdt[1] + \"-\" + splitdt[0];\n \n return formatedDate;\n \n }", "public Date formatDate( String dob )\n throws ParseException {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n dateFormat.setLenient(false);\n return dateFormat.parse(dob);\n }", "private Date stringToDate(String datum)\r\n\t{\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDate d = df.parse(datum);\r\n\t\t\treturn d;\r\n\t\t}\r\n\t\tcatch (ParseException e)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public Date dataDiProva(String data) {\r\n try {\r\n String strDate1 = data;\r\n String strDate2 = \"2009/08/02 20:45:07\";\r\n\r\n SimpleDateFormat fmt = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\r\n fmt.setLenient(false);\r\n\r\n // Parses the two strings.\r\n Date d1 = null;\r\n try{\r\n d1 = (Date) fmt.parse(strDate1);\r\n }catch(ClassCastException cce){}\r\n return d1;\r\n } catch (ParseException e) {\r\n System.out.println(\"sbagliata conversione data\");\r\n return null;\r\n }\r\n }", "private static void formatDate(Date i) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yy\");\n\t\tformatter.setLenient(false);\n\t\tAnswer = formatter.format(i);\n\t}", "public static String strToDateFormToDB(String fecha){ \n\t\tString dateValue = fecha;\n\t\tint index = dateValue.indexOf(\"/\");\n\t\tString day = dateValue.substring(0,index);\n\t\tint index2 = dateValue.indexOf(\"/\",index+1);\n\t\tString month = dateValue.substring(index+1,index2);\n\t\tString year = dateValue.substring(index2+1,index2+5);\n\t\tdateValue=year+\"-\"+month+\"-\"+day;\n\t\treturn dateValue;\n\t}", "public String getDataNastereString(){\n\t\tDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tString sd = df.format(new Date(data_nastere.getTime()));\n\t\treturn sd;\n\t\t\n\t}", "private String dateToString(Date datum)\r\n\t{\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\tString dat = df.format(datum);\r\n\t\treturn dat;\r\n\t}", "public String formatForAmericanModel(Date data){\n //definido modelo americano\n DateFormat formatBR = new SimpleDateFormat(\"yyyy-MM-dd\");\n return formatBR.format(data);\n \n }", "protected String obterData(String format) {\n\t\tDateFormat formato = new SimpleDateFormat(format);\n\t\tDate data = new Date();\n\t\treturn formato.format(data).toString();\n\t}", "public String getDataNascimentoString() {\r\n\r\n\t\tSimpleDateFormat data = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\treturn data.format(this.dataNascimento.getTime());\r\n\r\n\t}", "public String getFormatedDate(Date date) {\r\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd/mm/yyyy\");\r\n\t\treturn sdf.format(date);\r\n\t}", "public static Date parseDate(String date)\n {\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date dt = null;\n try {\n dt = format.parse(date);\n } \n catch (ParseException ex) \n {\n System.out.println(\"Unexpected error during the conversion - \" + ex);\n }\n return dt;\n }", "private String changeDateFormat (String oldDate) throws ParseException {\n // Source: https://stackoverflow.com/questions/3469507/how-can-i-change-the-date-format-in-java\n final String OLD_FORMAT = \"MM/dd/yyyy\";\n final String NEW_FORMAT = \"yyyyMMdd\";\n String newDateString;\n SimpleDateFormat sdf = new SimpleDateFormat(OLD_FORMAT);\n Date d = sdf.parse(oldDate);\n sdf.applyPattern(NEW_FORMAT);\n newDateString = sdf.format(d);\n return newDateString;\n }", "private static String toDateTime(String dateSubmitted) {\n\t\tString[] extracted = dateSubmitted.split(\" \");\n\t\t\n\t\tString[] date = extracted[0].split(\"/\");\n\t\t\n\t\tif(date[0].length() == 1)\n\t\t\tdate[0] = \"0\" + date[0];\n\t\tif(date[1].length() == 1)\n\t\t\tdate[1] = \"0\" + date[1];\n\t\t\n\t\treturn date[2] + \"-\" + date[0] + \"-\" + date[1] + \" \" + extracted[1];\n\t}", "public DateCell(String value) // constructs the date\n\t{\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"mm/dd/yyyy\"); // creates date format\n date = format.parse(value,new ParsePosition(0)); // creates date \n String dateCompare = format.format(date); // puts date into a string\n //below is used for comparing dates\n String[] dateCompareOps = dateCompare.split(\"/\"); // splits values at the /\n month = Integer.parseInt(dateCompareOps[0]); // gets value for month\n day = Integer.parseInt(dateCompareOps[1]); // gets value for day\n year = Integer.parseInt(dateCompareOps[2]); // gets value for year\n\t}", "public static String convertDateToStandardFormat(String inComingDateformat, String date)\r\n\t{\r\n\t\tString cmName = \"DateFormatterManaager.convertDateToStandardFormat(String,String)\";\r\n\t\tString returnDate = \"\";\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif (date != null && !date.trim().equals(\"\"))\r\n\t\t\t{\r\n\t\t\t\tif (inComingDateformat != null && !inComingDateformat.trim().equals(\"\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(inComingDateformat);\r\n\t\t\t\t\tDate parsedDate = sdf.parse(date);\r\n\t\t\t\t\tSimpleDateFormat standardsdf = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t\t\t\treturnDate = standardsdf.format(parsedDate);\r\n\t\t\t\t} else\r\n\t\t\t\t{\r\n\t\t\t\t\treturnDate = date;\r\n\t\t\t\t\tlogger.cterror(\"CTBAS00113\", cmName, date);\r\n\t\t\t\t}\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\tlogger.ctdebug(\"CTBAS00114\", cmName);\r\n\t\t\t}\r\n\t\t} catch (ParseException pe) // just in case any runtime exception occurred just return input datestr as it is\r\n\t\t{\r\n\t\t\treturnDate = date;\r\n\t\t\tlogger.cterror(\"CTBAS00115\", pe, cmName, date, inComingDateformat);\r\n\t\t}\r\n\t\treturn returnDate;\r\n\t}", "public static String formartDate(String mDate) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"mm/dd/yyyy\");\n\t\t\t SimpleDateFormat outSDF = new SimpleDateFormat(\"yyyy-mm-dd\");\n\n\t\t\t \n\t\t\t String outDate = \"\";\n\t\t\t \n\t\t\t if (mDate != null) {\n\t\t\t try {\n\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t outDate = outSDF.format(date);\n\t\t\t \n\t\t\t \n\t\t\t } catch (Exception ex){ \n\t\t\t \tex.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t return outDate;\n\t\t}", "public static String formatarDataAAAAMMDD(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public String formatDate(Object valor) {\r\n\t\tString aux = valor.toString();\r\n\t\tif (!aux.equalsIgnoreCase(\"&nbsp;\") && !aux.equalsIgnoreCase(\"\")) {\r\n\t\t\tString anio = aux.substring(0, 4);\r\n\t\t\tString mes = aux.substring(4, 6);\r\n\t\t\tString dia = aux.substring(6);\r\n\t\t\treturn dia + \"/\" + mes + \"/\" + anio;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn aux;\r\n\t}", "private String convertDateVN(String date) {\r\n String arrDate[] = date.split(\"-\");\r\n date = arrDate[2] + \"/\" + arrDate[1] + \"/\" + arrDate[0];\r\n return date;\r\n }", "public static String dateToString(Date date){\r\n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n return df.format(date);\r\n }", "@Override\n\tpublic Date convert(String source) {\n\t\tif (StringUtils.isValid(source)) {\n\t\t\tDateFormat dateFormat;\n\t\t\tif (source.indexOf(\":\") != -1) {\n\t\t\t\tdateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t} else {\n\t\t\t\tdateFormat = new SimpleDateFormat(\"yyyy-MM-dd\"); \n\t\t\t}\n\t\t\t//日期转换为严格模式\n\t\t dateFormat.setLenient(false); \n\t try {\n\t\t\t\treturn dateFormat.parse(source);\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\t\treturn null;\n\t}", "private String toDate(Date appDate) throws ParseException {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(appDate);\n\t\tString formatedDate = cal.get(Calendar.DATE) + \"/\" + (cal.get(Calendar.MONTH) + 1) + \"/\" + cal.get(Calendar.YEAR);\n\t\tSystem.out.println(\"formatedDate : \" + formatedDate); \n\t\treturn formatedDate;\n\t}", "public java.sql.Date format(String date) {\n int i = 0;\n int dateAttr[];\n dateAttr = new int[3];\n for(String v : date.split(\"/\")) {\n dateAttr[i] = Integer.parseInt(v);\n i++;\n }\n\n GregorianCalendar gcalendar = new GregorianCalendar();\n gcalendar.set(dateAttr[2], dateAttr[0]-1, dateAttr[1]); // Year,Month,Day Of Month\n java.sql.Date sdate = new java.sql.Date(gcalendar.getTimeInMillis());\n return sdate;\n }", "private String convertDateToCron(Date date) {\n if (date == null)\n return \"\";\n Calendar calendar = java.util.Calendar.getInstance();\n calendar.setTime(date);\n\n String hours = String.valueOf(calendar.get(Calendar.HOUR_OF_DAY));\n\n String mins = String.valueOf(calendar.get(Calendar.MINUTE));\n\n String days = String.valueOf(calendar.get(Calendar.DAY_OF_MONTH));\n\n String months = new java.text.SimpleDateFormat(\"MM\").format(calendar.getTime());\n\n String years = String.valueOf(calendar.get(Calendar.YEAR));\n\n return \"0 \" + mins+ \" \" + hours + \" \" + days + \" \" + months + \" ? \" + years;\n }", "private static String convertDate(String dateString) {\n String date = null;\n\n try {\n //Parse the string into a date variable\n Date parsedDate = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\").parse(dateString);\n\n //Now reformat it using desired display pattern:\n date = new SimpleDateFormat(DATE_FORMAT).format(parsedDate);\n\n } catch (ParseException e) {\n Log.e(TAG, \"getDate: Error parsing date\", e);\n e.printStackTrace();\n }\n\n return date;\n }", "public static Date stringToDate(String dateAsString){\r\n try { \r\n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\"); \r\n return df.parse(dateAsString);\r\n } catch (ParseException ex) {\r\n ex.printStackTrace();\r\n return null;\r\n }\r\n }", "public static String formatarDataSemBarra(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "private Date convertirStringEnFecha(String dia, String hora)\n {\n String fecha = dia + \" \" + hora;\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy hh:mm\");\n Date fecha_conv = new Date();\n try\n {\n fecha_conv = format.parse(fecha);\n }catch (ParseException e)\n {\n Log.e(TAG, e.toString());\n }\n return fecha_conv;\n }", "public String formataDataNascimento(String dataNascimentoInserida) {\n String dataNascimentoString;\n SimpleDateFormat formatadorDataNascimento = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date dataNascimento = new Date();\n try {\n dataNascimento = formatadorDataNascimento.parse((dataNascimentoInserida));\n } catch (ParseException ex) {\n this.telaFuncionario.mensagemErroDataNascimento();\n dataNascimentoString = cadastraDataNascimento();\n return dataNascimentoString;\n }\n dataNascimentoString = formatadorDataNascimento.format(dataNascimento);\n dataNascimentoString = controlaConfirmacaoCadastroDataNascimento(dataNascimentoString);\n return dataNascimentoString;\n }", "private String leerFecha() {\n\t\ttry {\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"YYYY/MM/dd\");\n\t\t\treturn sdf.format(txtFecha.getDate());\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(this, \"Seleccione una fecha válida\", \"Aviso\", 2);\n\t\t\treturn null;\n\t\t}\n\t}", "public String dateFormatter(String fromDate) {\n\t\tString newDateString=\"\";\n\t\ttry {\n\t\t\tfinal String oldFormat = \"yyyy/MM/dd\";\n\t\t\tfinal String newFormat = \"yyyy-MM-dd\";\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(oldFormat);\n\t\t\tDate d = sdf.parse(fromDate);\n\t\t\tsdf.applyPattern(newFormat);\n\t\t\tnewDateString = sdf.format(d);\n\t\t} catch(Exception exp) {\n\t\t\tthrow ExceptionUtil.getYFSException(ExceptionLiterals.ERRORCODE_INVALID_DATE, exp);\n\t\t}\n\t\treturn newDateString;\n\t}", "public static String formatarDataComTracoAAAAMMDD(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\t\t\tdataBD.append(\"-\");\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\t\t\tdataBD.append(\"-\");\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public static void main(String[] args) throws Exception{\n\t\t\t Date currentTime = new Date(95,7,6);\n\t\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MMM/YYYY\");\n\t\t\t String dateString = formatter.format(currentTime);\n\t\t\t System.out.println(dateString);\n\t\t\t \n\t\t}", "public static String convertDateToSend(String gotdate){\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(Long.parseLong(gotdate));\n SimpleDateFormat inputFormat = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n SimpleDateFormat outputFormat = new SimpleDateFormat(\"dd MMM yyyy\");\n /*Date parsedDate = null;\n try {\n parsedDate = inputFormat.parse(gotdate);\n } catch (ParseException e) {\n e.printStackTrace();\n }*/\n String formattedDate = outputFormat.format(calendar.getTime());\n return formattedDate;\n }", "private String YYYYMMDD(String str) {\n\t\tString[] s = str.split(\"/\");\n\t\treturn s[0] + parseToTwoInteger(Integer.parseInt(s[1].trim())) + parseToTwoInteger(Integer.parseInt(s[2].trim()));\n\t}", "private void updateDatedeparture() {\n String myFormat = \"MM/dd/yy\";\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.FRANCE);\n\n departureDate.setText(sdf.format(myCalendar.getTime()));\n }", "public final String obtenerFechaFormateada() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MMM/yyyy\");\n return fechaDeLaVisita.get().format(formatter);\n }", "public Date getConvertedDate(String dateToBeConverted) {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yy hh:mm:ss\");\n\t\ttry{\n\t\t\tbookedDate = sdf.parse(dateToBeConverted);\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn bookedDate;\n\t}", "@TypeConverter\n public static Date toDate(String value) {\n if (value == null) return null;\n\n try {\n return df.parse(value);\n } catch (ParseException e) {\n e.printStackTrace();\n return null;\n }\n }", "public static String formatDate(Date d) {\n\t\tint month = d.getMonth() + 1;\n\t\tint dayOfMonth = d.getDate();\n\t\tint year = d.getYear() + 1900;\n\t\tString y = \"\" + year;\n\t\tString m = \"\" + month;\n\t\tString dom = \"\" + dayOfMonth;\n\t\tif (month < 10) {\n\t\t\tm = \"0\" + m;\n\t\t}\n\t\tif (dayOfMonth < 10) {\n\t\t\tdom = \"0\" + dom;\n\t\t}\n\t\treturn m + \"/\" + dom + \"/\" + y.substring(2);\n\t}", "public static String formatDate(java.util.Date uDate) {\n\t\tif (uDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\treturn dateFormat.format(uDate);\n\t\t}\n\t}", "public Date datePickerConverter(DatePicker datePicker) throws ParseException, DateTimeException {\n DatePicker newDatePicker = new DatePicker(datePicker.getConverter().fromString(datePicker.getEditor().getText()));\n\n String formatted = newDatePicker.getValue().format((DateTimeFormatter.ofPattern(\"dd/MM/yyyy\")));\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n return sdf.parse(formatted);\n }", "public static String formatDate(String date){\n String formatedDate = date;\n if (!date.matches(\"[0-9]{2}-[0-9]{2}-[0-9]{4}\")){\n if (date.matches(\"[0-9]{1,2}/[0-9]{1,2}/([0-9]{2}|[0-9]{4})\"))\n formatedDate = date.replace('/', '-');\n if (date.matches(\"[0-9]{1,2}.[0-9]{1,2}.([0-9]{2}|[0-9]{4})\")){\n if (formatedDate.matches(\"[0-9]{1}.[0-9]{1,2}.([0-9]{2}|[0-9]{4})\"))\n formatedDate = \"0\" + formatedDate;\n if (formatedDate.matches(\"[0-9]{2}.[0-9]{1}.([0-9]{2}|[0-9]{4})\"))\n formatedDate = formatedDate.substring(0, 3) + \"0\" + \n formatedDate.substring(3);\n if (formatedDate.matches(\"[0-9]{2}.[0-9]{2}.[0-9]{2}\")){\n String thisYear = String.valueOf(LocalDate.now().getYear());\n String century = thisYear.substring(0,2);\n /* If the last two digits of the date are larger than the two last digits of \n * the current date, then we can suppose that the year corresponds to the last \n * century.\n */ \n if (Integer.valueOf(formatedDate.substring(6)) > Integer.valueOf(thisYear.substring(2)))\n century = String.valueOf(Integer.valueOf(century) - 1);\n formatedDate = formatedDate.substring(0, 6) + century +\n formatedDate.substring(6); \n }\n }\n }\n return formatedDate;\n }", "java.lang.String getToDate();", "public String toDate(Date date) {\n DateFormat df = DateFormat.getDateInstance();\r\n String fecha = df.format(date);\r\n return fecha;\r\n }", "public String getDateConvert() {\n SimpleDateFormat dateFormat1 = new SimpleDateFormat(\"MMM dd yyyy - hh:mm\");\n SimpleDateFormat dateFormat2 = new SimpleDateFormat(\"a\");\n String date = dateFormat1.format(this.timePost) + dateFormat2.format(this.timePost).toLowerCase();\n return date;\n }", "static String localDate(String date){\n Date d = changeDateFormat(date, \"dd/MM/yyyy\");\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.FULL, Locale.getDefault());\n return dateFormat.format(d);\n }", "private void configDate(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n tvDateLost.setText(dateFormat.format(date));\n }", "public String getDate(){\n String d=\"\";\n String m=\"\";\n if(day<10){\n d=0+(String.valueOf(day));\n }\n else{\n d=String.valueOf(day);\n }\n\n if(month<10){\n m=0+(String.valueOf(month));\n }\n else{\n m=String.valueOf(month);\n }\n //returning day/month/year\n return (d+\"/\"+m+\"/\"+String.valueOf(year));\n }", "private static String convertDate(String date) {\n\t\tlong dateL = Long.valueOf(date);\n\t\tDate dateTo = new Date(dateL);\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tString formatted = format.format(dateTo);\n\t\tSystem.out.println(\"Date formatted: \" + formatted);\n\t\treturn formatted;\n\t}", "protected final void normalise()\n {\n // yyyy, mm, dd must be set at this point\n if ( isValid(yyyy,mm,dd) ) return;\n else if ( mm > 12 )\n {\n yyyy += (mm-1) / 12;\n mm = ((mm-1) % 12) + 1;\n if ( isValid(yyyy,mm,dd) ) return;\n }\n else if ( mm <= 0 )\n {\n // Java's definition of modulus means we need to handle negatives as a special case.\n yyyy -= -mm / 12 + 1;\n mm = 12 - (-mm % 12);\n if ( isValid(yyyy,mm,dd) ) return;\n }\n if ( isValid(yyyy,mm,01) )\n {\n int olddd = dd;\n dd = 1;\n toOrdinal();\n ordinal += olddd - 1;\n toGregorian();\n if ( isValid(yyyy,mm,dd) ) return;\n }\n\n throw new IllegalArgumentException(\"date cannot be normalised: \"\n + yyyy + \"/\" + mm + \"/\" + dd);\n\n }", "public static String formatDateToString(Date d, String formatoData) {\n\t\tfinal String OLD_FORMAT = \"yyyy-MM-dd\";\r\n\r\n\t\tString newDateString;\r\n\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(OLD_FORMAT);\r\n\t\tsdf.applyPattern(formatoData);\r\n\t\tnewDateString = sdf.format(d);\r\n\t\t\r\n\t\treturn newDateString;\r\n\t}", "public String convierteFormatoFecha(String fecha) {\n\t\tString resultado = \"\";\n\t\tresultado = fecha.substring(6,8)+\"/\"+fecha.substring(4,6)+\"/\"+fecha.substring(0, 4);\n\t\treturn resultado;\n\t}", "private String formatDate(final Date date) {\r\n\t\tfinal Calendar calendar = Calendar.getInstance();\r\n\t\tcalendar.setTime(date);\r\n\r\n\t\tfinal String dayOfMonth = formatDayOfMonth(calendar);\r\n\t\tfinal String month = formatMonth(calendar);\r\n\t\tfinal String year = String.valueOf(calendar.get(Calendar.YEAR));\r\n\r\n\t\treturn String.format(\"%s/%s/%s\", year, month, dayOfMonth);\r\n\t}", "public static String formartDateYOB(String mDate) {\n\t\t\t\t\n\t\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"dd/mm/yyyy\");\n\t\t\t\t SimpleDateFormat outSDF = new SimpleDateFormat(\"yyyy-mm-dd\");\n\n\t\t\t\t \n\t\t\t\t String outDate = \"\";\n\t\t\t\t \n\t\t\t\t if (mDate != null) {\n\t\t\t\t try {\n\t\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t\t outDate = outSDF.format(date);\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t } catch (Exception ex){ \n\t\t\t\t \tex.printStackTrace();\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t return outDate;\n\t\t\t}", "public void setDataNascimentoString(String dataNascimento) {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tjava.util.Date date = new SimpleDateFormat(\"dd/MM/yyyy\").parse(dataNascimento);\r\n\t\t\tCalendar dataCalendar = Calendar.getInstance();\r\n\t\t\tdataCalendar.setTime(date);\r\n\t\t\t\r\n\t\t\tthis.dataNascimento = dataCalendar;\r\n\t\t\t\r\n\t\t} catch (ParseException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "public String formatoCortoDeFecha(Date fecha){\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n return format.format(fecha);\n }", "public String getDateString() {\n int year = date.get(Calendar.YEAR);\n int month = date.get(Calendar.MONTH); // month is stored from 0-11 so adjust +1 for final display\n int day_of_month = date.get(Calendar.DAY_OF_MONTH);\n return String.valueOf(month + 1) + '/' + String.valueOf(day_of_month) + '/' + year;\n }", "public String format (Date date , String dateFormat) ;", "@Override\n\tpublic String toString() {\n\t\ttry {\n\t\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\t\tDate date = formatter.parse(month + \"/\" + day + \"/\" + year);\n\n\t\t\treturn formatter.format(date);\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "private LocalDate parse(String format) {\r\n\t\tString lista[] = format.split(\"/\"); // DD - MM - YYYY\r\n\t\tint dia = Integer.parseInt(lista[0]);\r\n\t\tint mes = Integer.parseInt(lista[1]);\r\n\t\tint ano = Integer.parseInt(lista[2]);\r\n\t\tLocalDate date = LocalDate.of(ano, mes, dia);\r\n\t\treturn date;\r\n\t}", "static String getReadableDate(LocalDate date){\r\n\t\tString readableDate = null;\r\n\t\t//convert only if non-null\r\n\t\tif(null != date){\r\n\t\t\t//convert date to readable form\r\n\t\t\treadableDate = date.toString(\"MM/dd/yyyy\");\r\n\t\t}\r\n\t\t\r\n\t\treturn readableDate;\r\n\t}", "public static String convertToFrenshFormat(String date){\n Date d = null;\n if(String.valueOf(Locale.getDefault()).contains(\"en\")){\n d = changeDateFormat(date, \"MM/dd/yyyy\");\n Locale locale = Locale.FRENCH;\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT, locale);\n return dateFormat.format(d);\n }\n else {\n return date;\n }\n }", "private String formatDate(String date)\n\t{\n\t\tif(date == null || date.isEmpty())\n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString[] dateSplit = date.split(\"/\");\n\t\t\tif(dateSplit.length != 3)\n\t\t\t{\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn getMonthName(dateSplit[0]) + \" \"+ dateSplit[1]+\", \"+ dateSplit[2];\n\t\t\t}\n\t\t}\n\t}", "public String getFechatxt(Date d){\n \n try {\n String formato = selectorfecha.getDateFormatString();\n //Formato\n \n SimpleDateFormat sdf = new SimpleDateFormat(formato);\n String txtfechap = sdf.format(d);\n return txtfechap;\n } catch (NullPointerException ex) {\n JOptionPane.showMessageDialog(this, \"Al menos selecciona una fecha válida!\", \"Error!\", JOptionPane.INFORMATION_MESSAGE);\n return null;\n\n }\n\n\n \n }", "private static Date getDate(String sdate)\n\t{\n\t\tDate date = null;\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\ttry {\n\t\t\tdate = formatter.parse(sdate);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn date;\n\t}", "public static String convertStringToSqlString(String input) throws ParseException{\r\n\t\tSimpleDateFormat fromUser = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\tSimpleDateFormat myFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\r\n\t\ttry {\r\n\r\n\t\t String reformattedStr = myFormat.format(fromUser.parse(input));\r\n\t\t return reformattedStr;\r\n\t\t} catch (ParseException e) {\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t \r\n\t\t/* Date dtJava;\r\n\t\tDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n dtJava = (java.util.Date)formatter.parse(input);\r\n\t\t\r\n\t\tjava.sql.Date date = new java.sql.Date(dtJava.getTime());\r\n\t\t\r\n\t\tString dtSql = (String)date.toString();\r\n\t\t\r\n\t\treturn dtSql;*/\r\n\t}", "public static Date parseDate(String val) {\n\n\t\tDate d = null;\n\n\t\tif (val != null && !val.equals(\"0\")) {\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"MMM/dd/yyyy\");\n\t\t\ttry {\n\t\t\t\td = format.parse(val);\n\t\t\t} catch (ParseException e) {\n\t\t\t}\n\t\t}\n\n\t\treturn d;\n\n\t}", "private java.sql.Date convert(Date datet) {\n\t\treturn null;\n\t}", "private String ObtenerFechaActual() {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/mm/yyyy\");\n Calendar calendar = GregorianCalendar.getInstance();\n return String.valueOf(simpleDateFormat.format(calendar.getTime()));\n }", "private static void formatDate (XmlDoc.Element date) throws Throwable {\n\t\tString in = date.value();\n\t\tString out = DateUtil.convertDateString(in, \"dd-MMM-yyyy\", \"yyyy-MM-dd\");\n\t\tdate.setValue(out);\n\t}", "public String toStringDateOfBirth() {\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\treturn dateofbirth.format(format);\n\t}", "private String getFormattedDate(String date) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(getString(R.string.received_import_date_format));\n SimpleDateFormat desiredDateFormat = new SimpleDateFormat(getString(R.string.desired_import_date_format));\n Date parsedDate;\n try {\n parsedDate = dateFormat.parse(date);\n return desiredDateFormat.format(parsedDate);\n } catch (ParseException e) {\n // Return an empty string in case of issues parsing the date string received.\n e.printStackTrace();\n return \"\";\n }\n }", "public static String formatSdf(Date data) {\n if (data == null) {\n return null;\n }\n return new SimpleDateFormat(SDF_DATE_FORMAT).format(data);\n }", "public static String date_d(String sourceDate,String format) throws ParseException {\n SimpleDateFormat sdf_ = new SimpleDateFormat(\"yyyy-MM-dd\");\n SimpleDateFormat sdfNew_ = new SimpleDateFormat(format);\n return sdfNew_.format(sdf_.parse(sourceDate));\n }", "public static void main(String[] args) {\n\t\tDateTimeFormatter formatter=DateTimeFormatter.ofPattern(\"yy/MM/dd\");\n\t\tString input=\"19/12/09\";//user can give input any format of date\n\t\t\n\t\tLocalDate date=LocalDate.parse(input,formatter);\n\t\tSystem.out.println(date);\n\t\t\n\t\n\t}", "public void dataPadrao() {\n Calendar c = Calendar.getInstance();\n SimpleDateFormat s = new SimpleDateFormat(\"dd/MM/yyyy\");\n String dataAtual = s.format(c.getTime());\n c.add(c.MONTH, 1);\n String dataAtualMaisUm = s.format(c.getTime());\n dataInicial.setText(dataAtual);\n dataFinal.setText(dataAtualMaisUm);\n }", "private void updateLabel(EditText view) {\n String myFormat = \"MM/dd/yyyy\"; //In which you need put here\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.US);\n\n view.setText(sdf.format(myCalendar.getTime()));\n }", "public String toString() {\n\treturn String.format(\"%d/%d/%d\", year, month, day);\t\r\n\t}", "public static Date StringToDate(String strFecha) throws ParseException {\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\r\n return simpleDateFormat.parse(strFecha);\r\n }", "public static java.util.Date parseStringToDate(String data, String pattern) {\r\n\t\tjava.util.Date retorno = null;\r\n\r\n\t\tif (data != null && pattern != null) {\r\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(pattern);\r\n\t\t\tformat.setLenient(false);\r\n\t\t\ttry {\r\n\t\t\t\tretorno = format.parse(data);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}" ]
[ "0.6854495", "0.6817281", "0.6793001", "0.67376435", "0.6691948", "0.664835", "0.6646422", "0.66376793", "0.654449", "0.65268135", "0.64892197", "0.6445659", "0.6392493", "0.63671386", "0.63590276", "0.6349663", "0.6332717", "0.6277924", "0.6229729", "0.6200526", "0.6182912", "0.6163578", "0.6149426", "0.6106402", "0.60063255", "0.5995478", "0.59917045", "0.5974279", "0.59368044", "0.5930606", "0.588794", "0.5863997", "0.5856569", "0.5850393", "0.5845384", "0.5839034", "0.58011174", "0.57848567", "0.5739009", "0.5731005", "0.5709779", "0.5706487", "0.5705812", "0.5660162", "0.56579024", "0.56459844", "0.56430036", "0.56255263", "0.5614774", "0.56146955", "0.560329", "0.5590258", "0.5583874", "0.5578439", "0.5558891", "0.5531224", "0.55264956", "0.55242676", "0.5512151", "0.5502516", "0.5500317", "0.54767454", "0.54682994", "0.54659593", "0.5459901", "0.5455476", "0.545376", "0.5451612", "0.54501396", "0.5441417", "0.54392433", "0.5437917", "0.543386", "0.54303414", "0.5421385", "0.5418556", "0.5416188", "0.541348", "0.541338", "0.541148", "0.5409046", "0.5389059", "0.53856945", "0.5384415", "0.53841186", "0.5362035", "0.5361247", "0.53567445", "0.5354028", "0.53419995", "0.5339853", "0.5325859", "0.5324476", "0.5318343", "0.5316357", "0.5311399", "0.5309966", "0.5306768", "0.5304832", "0.5298953" ]
0.5657085
45
Converte a data passada para o formato "DD/MM/YYYY"
public static String converterDataSemBarraParaDataComBarra(String data) { String retorno = ""; if (data != null && !data.equals("") && data.trim().length() == 8) { retorno = data.substring(0, 2) + "/" + data.substring(2, 4) + "/" + data.substring(4, 8); } return retorno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String formatarData(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH) + \"/\");\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH) + \"/\");\r\n\t\t\t}\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1 + \"/\");\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1) + \"/\");\r\n\t\t\t}\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "private String formataData(long dt){\n\t\tDate d = new Date(dt);\n\t\tDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\treturn df.format(d);\n\t}", "private static String convertToDDMMYYYY(Date date) {\n\t\tString returnStr = \"\";\n\t\ttry {\n\t\tDateFormat format1 = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\treturnStr = format1.format(date);\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn returnStr;\n\t}", "public static Date converteStringInvertidaSemBarraAAAAMMDDParaDate(String data) {\r\n\t\tDate retorno = null;\r\n\r\n\t\tString dataInvertida = data.substring(6, 8) + \"/\" + data.substring(4, 6) + \"/\" + data.substring(0, 4);\r\n\r\n\t\tSimpleDateFormat dataTxt = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\ttry {\r\n\t\t\tretorno = dataTxt.parse(dataInvertida);\r\n\t\t} catch (ParseException e) {\r\n\t\t\tthrow new IllegalArgumentException(data + \" não tem o formato dd/MM/yyyy.\");\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public String retornaData(){\n\t\tCalendar calendar = new GregorianCalendar();\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tDate date = new Date();\n\t\tcalendar.setTime(date);\n\t\treturn df.format(calendar.getTime());\n\t}", "public Date formatForDate(String data) throws ParseException{\n //definindo a forma da Data Recebida\n DateFormat formatUS = new SimpleDateFormat(\"dd-MM-yyyy\");\n return formatUS.parse(data);\n }", "public static Date converteStringInvertidaSemBarraAAMMDDParaDate(String data) {\r\n\t\tDate retorno = null;\r\n\r\n\t\tString dataInvertida = data.substring(4, 6) + \"/\" + data.substring(2, 4) + \"/20\" + data.substring(0, 2);\r\n\r\n\t\tSimpleDateFormat dataTxt = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\ttry {\r\n\t\t\tretorno = dataTxt.parse(dataInvertida);\r\n\t\t} catch (ParseException e) {\r\n\t\t\tthrow new IllegalArgumentException(data + \" não tem o formato dd/MM/yyyy.\");\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public String ConvertDate(){\r\n//\t\tDate date=JavaUtils.getSystemDate();\r\n//\t DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n\t String pattern = \"yyyy-MM-dd\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n\r\n\t String date = simpleDateFormat.format(new Date());\r\n//\t System.out.println(date);\r\n\t \r\n//\t String s = df.format(date);\r\n//\t String result = s;\r\n//\t try {\r\n//\t date=df.parse(result);\r\n//\t } catch (ParseException e) {\r\n//\t // TODO Auto-generated catch block\r\n//\t e.printStackTrace();\r\n//\t }\r\n\t return date;\r\n\t }", "public String convertDateToString(){\n\t\tString aDate = \"\";\n\t\taDate += Integer.toString(day);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(month);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(year);\n\t\treturn aDate;\n\t}", "public String dar_fecha(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n return dateFormat.format(date).toString();\n\n }", "private String convertDate(String date){\r\n String arrDate[] = date.split(\"/\");\r\n date = arrDate[2] + \"-\" + arrDate[1] + \"-\" + arrDate[0];\r\n return date;\r\n }", "private String formatDate(Date date) {\n String resultDate;\n SimpleDateFormat dateFormat;\n dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n resultDate = dateFormat.format(date);\n return resultDate;\n }", "public Date ToDate(String line){\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy/MM/dd\");\n try {\n Date d = sdf.parse(line);\n return d;\n } catch (ParseException ex) {\n\n Log.v(\"Exception\", ex.getLocalizedMessage());\n return null;\n }\n }", "public static String dateTran(String dateOri){\n\t\tDateFormat formatter1 ; \n\t\tDate date ; \n\t\tString newDate=null;\n\t\tformatter1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\ttry {\n\t\t\tdate=formatter1.parse(dateOri);\n\t\t\tSimpleDateFormat formatter = new SimpleDateFormat ( \"M/d/yy\" );\n\t\t\tnewDate = formatter.format(date);\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn newDate;\n\t}", "public static String convertDate(String dbDate) throws ParseException //yyyy-MM-dd\n {\n String convertedDate = \"\";\n\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(dbDate);\n\n convertedDate = new SimpleDateFormat(\"MM/dd/yyyy\").format(date);\n\n return convertedDate ;\n }", "public LocalDate Data(String data) {\n DateTimeFormatter formatodata = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\n //crio o objeto localdate que formata a informação intoduzida para o formato que eu paremetrizei em formatodata\n LocalDate localDate = LocalDate.parse(data, formatodata);\n\n return localDate;\n }", "private String formatarData(Date data)\n {\n String sDate;\n String sDia = \"\";\n String sMes = \"\";\n\n GregorianCalendar calendar = new GregorianCalendar();\n calendar.setTime(data);\n int dia = calendar.get(GregorianCalendar.DAY_OF_MONTH);\n if (dia > 0) {\n if (dia < 10) {\n sDia = \"0\";\n }\n }\n sDia += dia;\n\n int mes = calendar.get(GregorianCalendar.MONTH);\n mes = mes + 1;\n if (mes > 0) {\n if (mes < 10) {\n sMes = \"0\";\n }\n }\n sMes += mes;\n\n int ano = calendar.get(GregorianCalendar.YEAR);\n\n int hora = calendar.get(GregorianCalendar.HOUR);\n // 0 = dia\n // 1 = noite\n int amPm = calendar.get(GregorianCalendar.AM_PM);\n\n if(amPm == 1)\n {\n if(hora>0 && hora < 13)\n {\n if(hora > 11)\n hora = 0;\n else\n hora += 12;\n }\n }\n\n String sHora = \" \";\n if(hora<=9)\n {\n sHora += \"0\";\n }\n String sMin=\":\";\n int min = calendar.get(GregorianCalendar.MINUTE);\n if(min <10)\n sMin += \"0\";\n sMin += String.valueOf(min);\n sHora += String.valueOf(hora) + sMin + \":00\";\n sDate = String.valueOf(ano) + \"-\" + sMes + \"-\" + sDia + sHora;\n return sDate;\n\n }", "public String convertDateFormate(String dt) {\n String formatedDate = \"\";\n if (dt.equals(\"\"))\n return \"1970-01-01\";\n String[] splitdt = dt.split(\"-\");\n formatedDate = splitdt[2] + \"-\" + splitdt[1] + \"-\" + splitdt[0];\n \n return formatedDate;\n \n }", "public Date formatDate( String dob )\n throws ParseException {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n dateFormat.setLenient(false);\n return dateFormat.parse(dob);\n }", "private Date stringToDate(String datum)\r\n\t{\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDate d = df.parse(datum);\r\n\t\t\treturn d;\r\n\t\t}\r\n\t\tcatch (ParseException e)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public Date dataDiProva(String data) {\r\n try {\r\n String strDate1 = data;\r\n String strDate2 = \"2009/08/02 20:45:07\";\r\n\r\n SimpleDateFormat fmt = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\r\n fmt.setLenient(false);\r\n\r\n // Parses the two strings.\r\n Date d1 = null;\r\n try{\r\n d1 = (Date) fmt.parse(strDate1);\r\n }catch(ClassCastException cce){}\r\n return d1;\r\n } catch (ParseException e) {\r\n System.out.println(\"sbagliata conversione data\");\r\n return null;\r\n }\r\n }", "private static void formatDate(Date i) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yy\");\n\t\tformatter.setLenient(false);\n\t\tAnswer = formatter.format(i);\n\t}", "public static String strToDateFormToDB(String fecha){ \n\t\tString dateValue = fecha;\n\t\tint index = dateValue.indexOf(\"/\");\n\t\tString day = dateValue.substring(0,index);\n\t\tint index2 = dateValue.indexOf(\"/\",index+1);\n\t\tString month = dateValue.substring(index+1,index2);\n\t\tString year = dateValue.substring(index2+1,index2+5);\n\t\tdateValue=year+\"-\"+month+\"-\"+day;\n\t\treturn dateValue;\n\t}", "public String getDataNastereString(){\n\t\tDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tString sd = df.format(new Date(data_nastere.getTime()));\n\t\treturn sd;\n\t\t\n\t}", "private String dateToString(Date datum)\r\n\t{\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\tString dat = df.format(datum);\r\n\t\treturn dat;\r\n\t}", "public String formatForAmericanModel(Date data){\n //definido modelo americano\n DateFormat formatBR = new SimpleDateFormat(\"yyyy-MM-dd\");\n return formatBR.format(data);\n \n }", "protected String obterData(String format) {\n\t\tDateFormat formato = new SimpleDateFormat(format);\n\t\tDate data = new Date();\n\t\treturn formato.format(data).toString();\n\t}", "public String getDataNascimentoString() {\r\n\r\n\t\tSimpleDateFormat data = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\treturn data.format(this.dataNascimento.getTime());\r\n\r\n\t}", "public String getFormatedDate(Date date) {\r\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd/mm/yyyy\");\r\n\t\treturn sdf.format(date);\r\n\t}", "public static Date parseDate(String date)\n {\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date dt = null;\n try {\n dt = format.parse(date);\n } \n catch (ParseException ex) \n {\n System.out.println(\"Unexpected error during the conversion - \" + ex);\n }\n return dt;\n }", "private String changeDateFormat (String oldDate) throws ParseException {\n // Source: https://stackoverflow.com/questions/3469507/how-can-i-change-the-date-format-in-java\n final String OLD_FORMAT = \"MM/dd/yyyy\";\n final String NEW_FORMAT = \"yyyyMMdd\";\n String newDateString;\n SimpleDateFormat sdf = new SimpleDateFormat(OLD_FORMAT);\n Date d = sdf.parse(oldDate);\n sdf.applyPattern(NEW_FORMAT);\n newDateString = sdf.format(d);\n return newDateString;\n }", "private static String toDateTime(String dateSubmitted) {\n\t\tString[] extracted = dateSubmitted.split(\" \");\n\t\t\n\t\tString[] date = extracted[0].split(\"/\");\n\t\t\n\t\tif(date[0].length() == 1)\n\t\t\tdate[0] = \"0\" + date[0];\n\t\tif(date[1].length() == 1)\n\t\t\tdate[1] = \"0\" + date[1];\n\t\t\n\t\treturn date[2] + \"-\" + date[0] + \"-\" + date[1] + \" \" + extracted[1];\n\t}", "public DateCell(String value) // constructs the date\n\t{\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"mm/dd/yyyy\"); // creates date format\n date = format.parse(value,new ParsePosition(0)); // creates date \n String dateCompare = format.format(date); // puts date into a string\n //below is used for comparing dates\n String[] dateCompareOps = dateCompare.split(\"/\"); // splits values at the /\n month = Integer.parseInt(dateCompareOps[0]); // gets value for month\n day = Integer.parseInt(dateCompareOps[1]); // gets value for day\n year = Integer.parseInt(dateCompareOps[2]); // gets value for year\n\t}", "public static String convertDateToStandardFormat(String inComingDateformat, String date)\r\n\t{\r\n\t\tString cmName = \"DateFormatterManaager.convertDateToStandardFormat(String,String)\";\r\n\t\tString returnDate = \"\";\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif (date != null && !date.trim().equals(\"\"))\r\n\t\t\t{\r\n\t\t\t\tif (inComingDateformat != null && !inComingDateformat.trim().equals(\"\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(inComingDateformat);\r\n\t\t\t\t\tDate parsedDate = sdf.parse(date);\r\n\t\t\t\t\tSimpleDateFormat standardsdf = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t\t\t\treturnDate = standardsdf.format(parsedDate);\r\n\t\t\t\t} else\r\n\t\t\t\t{\r\n\t\t\t\t\treturnDate = date;\r\n\t\t\t\t\tlogger.cterror(\"CTBAS00113\", cmName, date);\r\n\t\t\t\t}\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\tlogger.ctdebug(\"CTBAS00114\", cmName);\r\n\t\t\t}\r\n\t\t} catch (ParseException pe) // just in case any runtime exception occurred just return input datestr as it is\r\n\t\t{\r\n\t\t\treturnDate = date;\r\n\t\t\tlogger.cterror(\"CTBAS00115\", pe, cmName, date, inComingDateformat);\r\n\t\t}\r\n\t\treturn returnDate;\r\n\t}", "public static String formartDate(String mDate) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"mm/dd/yyyy\");\n\t\t\t SimpleDateFormat outSDF = new SimpleDateFormat(\"yyyy-mm-dd\");\n\n\t\t\t \n\t\t\t String outDate = \"\";\n\t\t\t \n\t\t\t if (mDate != null) {\n\t\t\t try {\n\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t outDate = outSDF.format(date);\n\t\t\t \n\t\t\t \n\t\t\t } catch (Exception ex){ \n\t\t\t \tex.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t return outDate;\n\t\t}", "public static String formatarDataAAAAMMDD(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public String formatDate(Object valor) {\r\n\t\tString aux = valor.toString();\r\n\t\tif (!aux.equalsIgnoreCase(\"&nbsp;\") && !aux.equalsIgnoreCase(\"\")) {\r\n\t\t\tString anio = aux.substring(0, 4);\r\n\t\t\tString mes = aux.substring(4, 6);\r\n\t\t\tString dia = aux.substring(6);\r\n\t\t\treturn dia + \"/\" + mes + \"/\" + anio;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn aux;\r\n\t}", "private String convertDateVN(String date) {\r\n String arrDate[] = date.split(\"-\");\r\n date = arrDate[2] + \"/\" + arrDate[1] + \"/\" + arrDate[0];\r\n return date;\r\n }", "public static String dateToString(Date date){\r\n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n return df.format(date);\r\n }", "@Override\n\tpublic Date convert(String source) {\n\t\tif (StringUtils.isValid(source)) {\n\t\t\tDateFormat dateFormat;\n\t\t\tif (source.indexOf(\":\") != -1) {\n\t\t\t\tdateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t} else {\n\t\t\t\tdateFormat = new SimpleDateFormat(\"yyyy-MM-dd\"); \n\t\t\t}\n\t\t\t//日期转换为严格模式\n\t\t dateFormat.setLenient(false); \n\t try {\n\t\t\t\treturn dateFormat.parse(source);\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\t\treturn null;\n\t}", "private String toDate(Date appDate) throws ParseException {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(appDate);\n\t\tString formatedDate = cal.get(Calendar.DATE) + \"/\" + (cal.get(Calendar.MONTH) + 1) + \"/\" + cal.get(Calendar.YEAR);\n\t\tSystem.out.println(\"formatedDate : \" + formatedDate); \n\t\treturn formatedDate;\n\t}", "public java.sql.Date format(String date) {\n int i = 0;\n int dateAttr[];\n dateAttr = new int[3];\n for(String v : date.split(\"/\")) {\n dateAttr[i] = Integer.parseInt(v);\n i++;\n }\n\n GregorianCalendar gcalendar = new GregorianCalendar();\n gcalendar.set(dateAttr[2], dateAttr[0]-1, dateAttr[1]); // Year,Month,Day Of Month\n java.sql.Date sdate = new java.sql.Date(gcalendar.getTimeInMillis());\n return sdate;\n }", "private String convertDateToCron(Date date) {\n if (date == null)\n return \"\";\n Calendar calendar = java.util.Calendar.getInstance();\n calendar.setTime(date);\n\n String hours = String.valueOf(calendar.get(Calendar.HOUR_OF_DAY));\n\n String mins = String.valueOf(calendar.get(Calendar.MINUTE));\n\n String days = String.valueOf(calendar.get(Calendar.DAY_OF_MONTH));\n\n String months = new java.text.SimpleDateFormat(\"MM\").format(calendar.getTime());\n\n String years = String.valueOf(calendar.get(Calendar.YEAR));\n\n return \"0 \" + mins+ \" \" + hours + \" \" + days + \" \" + months + \" ? \" + years;\n }", "private static String convertDate(String dateString) {\n String date = null;\n\n try {\n //Parse the string into a date variable\n Date parsedDate = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\").parse(dateString);\n\n //Now reformat it using desired display pattern:\n date = new SimpleDateFormat(DATE_FORMAT).format(parsedDate);\n\n } catch (ParseException e) {\n Log.e(TAG, \"getDate: Error parsing date\", e);\n e.printStackTrace();\n }\n\n return date;\n }", "public static Date stringToDate(String dateAsString){\r\n try { \r\n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\"); \r\n return df.parse(dateAsString);\r\n } catch (ParseException ex) {\r\n ex.printStackTrace();\r\n return null;\r\n }\r\n }", "public static String formatarData(String data) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tif (data != null && !data.equals(\"\") && data.trim().length() == 8) {\r\n\r\n\t\t\tretorno = data.substring(6, 8) + \"/\" + data.substring(4, 6) + \"/\" + data.substring(0, 4);\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "public static String formatarDataSemBarra(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "private Date convertirStringEnFecha(String dia, String hora)\n {\n String fecha = dia + \" \" + hora;\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy hh:mm\");\n Date fecha_conv = new Date();\n try\n {\n fecha_conv = format.parse(fecha);\n }catch (ParseException e)\n {\n Log.e(TAG, e.toString());\n }\n return fecha_conv;\n }", "public String formataDataNascimento(String dataNascimentoInserida) {\n String dataNascimentoString;\n SimpleDateFormat formatadorDataNascimento = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date dataNascimento = new Date();\n try {\n dataNascimento = formatadorDataNascimento.parse((dataNascimentoInserida));\n } catch (ParseException ex) {\n this.telaFuncionario.mensagemErroDataNascimento();\n dataNascimentoString = cadastraDataNascimento();\n return dataNascimentoString;\n }\n dataNascimentoString = formatadorDataNascimento.format(dataNascimento);\n dataNascimentoString = controlaConfirmacaoCadastroDataNascimento(dataNascimentoString);\n return dataNascimentoString;\n }", "public String dateFormatter(String fromDate) {\n\t\tString newDateString=\"\";\n\t\ttry {\n\t\t\tfinal String oldFormat = \"yyyy/MM/dd\";\n\t\t\tfinal String newFormat = \"yyyy-MM-dd\";\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(oldFormat);\n\t\t\tDate d = sdf.parse(fromDate);\n\t\t\tsdf.applyPattern(newFormat);\n\t\t\tnewDateString = sdf.format(d);\n\t\t} catch(Exception exp) {\n\t\t\tthrow ExceptionUtil.getYFSException(ExceptionLiterals.ERRORCODE_INVALID_DATE, exp);\n\t\t}\n\t\treturn newDateString;\n\t}", "private String leerFecha() {\n\t\ttry {\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"YYYY/MM/dd\");\n\t\t\treturn sdf.format(txtFecha.getDate());\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(this, \"Seleccione una fecha válida\", \"Aviso\", 2);\n\t\t\treturn null;\n\t\t}\n\t}", "public static String formatarDataComTracoAAAAMMDD(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\t\t\tdataBD.append(\"-\");\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\t\t\tdataBD.append(\"-\");\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public static void main(String[] args) throws Exception{\n\t\t\t Date currentTime = new Date(95,7,6);\n\t\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MMM/YYYY\");\n\t\t\t String dateString = formatter.format(currentTime);\n\t\t\t System.out.println(dateString);\n\t\t\t \n\t\t}", "public static String convertDateToSend(String gotdate){\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(Long.parseLong(gotdate));\n SimpleDateFormat inputFormat = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n SimpleDateFormat outputFormat = new SimpleDateFormat(\"dd MMM yyyy\");\n /*Date parsedDate = null;\n try {\n parsedDate = inputFormat.parse(gotdate);\n } catch (ParseException e) {\n e.printStackTrace();\n }*/\n String formattedDate = outputFormat.format(calendar.getTime());\n return formattedDate;\n }", "private String YYYYMMDD(String str) {\n\t\tString[] s = str.split(\"/\");\n\t\treturn s[0] + parseToTwoInteger(Integer.parseInt(s[1].trim())) + parseToTwoInteger(Integer.parseInt(s[2].trim()));\n\t}", "private void updateDatedeparture() {\n String myFormat = \"MM/dd/yy\";\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.FRANCE);\n\n departureDate.setText(sdf.format(myCalendar.getTime()));\n }", "public final String obtenerFechaFormateada() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MMM/yyyy\");\n return fechaDeLaVisita.get().format(formatter);\n }", "public Date getConvertedDate(String dateToBeConverted) {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yy hh:mm:ss\");\n\t\ttry{\n\t\t\tbookedDate = sdf.parse(dateToBeConverted);\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn bookedDate;\n\t}", "@TypeConverter\n public static Date toDate(String value) {\n if (value == null) return null;\n\n try {\n return df.parse(value);\n } catch (ParseException e) {\n e.printStackTrace();\n return null;\n }\n }", "public static String formatDate(Date d) {\n\t\tint month = d.getMonth() + 1;\n\t\tint dayOfMonth = d.getDate();\n\t\tint year = d.getYear() + 1900;\n\t\tString y = \"\" + year;\n\t\tString m = \"\" + month;\n\t\tString dom = \"\" + dayOfMonth;\n\t\tif (month < 10) {\n\t\t\tm = \"0\" + m;\n\t\t}\n\t\tif (dayOfMonth < 10) {\n\t\t\tdom = \"0\" + dom;\n\t\t}\n\t\treturn m + \"/\" + dom + \"/\" + y.substring(2);\n\t}", "public static String formatDate(java.util.Date uDate) {\n\t\tif (uDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\treturn dateFormat.format(uDate);\n\t\t}\n\t}", "public Date datePickerConverter(DatePicker datePicker) throws ParseException, DateTimeException {\n DatePicker newDatePicker = new DatePicker(datePicker.getConverter().fromString(datePicker.getEditor().getText()));\n\n String formatted = newDatePicker.getValue().format((DateTimeFormatter.ofPattern(\"dd/MM/yyyy\")));\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n return sdf.parse(formatted);\n }", "public static String formatDate(String date){\n String formatedDate = date;\n if (!date.matches(\"[0-9]{2}-[0-9]{2}-[0-9]{4}\")){\n if (date.matches(\"[0-9]{1,2}/[0-9]{1,2}/([0-9]{2}|[0-9]{4})\"))\n formatedDate = date.replace('/', '-');\n if (date.matches(\"[0-9]{1,2}.[0-9]{1,2}.([0-9]{2}|[0-9]{4})\")){\n if (formatedDate.matches(\"[0-9]{1}.[0-9]{1,2}.([0-9]{2}|[0-9]{4})\"))\n formatedDate = \"0\" + formatedDate;\n if (formatedDate.matches(\"[0-9]{2}.[0-9]{1}.([0-9]{2}|[0-9]{4})\"))\n formatedDate = formatedDate.substring(0, 3) + \"0\" + \n formatedDate.substring(3);\n if (formatedDate.matches(\"[0-9]{2}.[0-9]{2}.[0-9]{2}\")){\n String thisYear = String.valueOf(LocalDate.now().getYear());\n String century = thisYear.substring(0,2);\n /* If the last two digits of the date are larger than the two last digits of \n * the current date, then we can suppose that the year corresponds to the last \n * century.\n */ \n if (Integer.valueOf(formatedDate.substring(6)) > Integer.valueOf(thisYear.substring(2)))\n century = String.valueOf(Integer.valueOf(century) - 1);\n formatedDate = formatedDate.substring(0, 6) + century +\n formatedDate.substring(6); \n }\n }\n }\n return formatedDate;\n }", "java.lang.String getToDate();", "public String toDate(Date date) {\n DateFormat df = DateFormat.getDateInstance();\r\n String fecha = df.format(date);\r\n return fecha;\r\n }", "public String getDateConvert() {\n SimpleDateFormat dateFormat1 = new SimpleDateFormat(\"MMM dd yyyy - hh:mm\");\n SimpleDateFormat dateFormat2 = new SimpleDateFormat(\"a\");\n String date = dateFormat1.format(this.timePost) + dateFormat2.format(this.timePost).toLowerCase();\n return date;\n }", "static String localDate(String date){\n Date d = changeDateFormat(date, \"dd/MM/yyyy\");\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.FULL, Locale.getDefault());\n return dateFormat.format(d);\n }", "private void configDate(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n tvDateLost.setText(dateFormat.format(date));\n }", "private static String convertDate(String date) {\n\t\tlong dateL = Long.valueOf(date);\n\t\tDate dateTo = new Date(dateL);\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tString formatted = format.format(dateTo);\n\t\tSystem.out.println(\"Date formatted: \" + formatted);\n\t\treturn formatted;\n\t}", "public String getDate(){\n String d=\"\";\n String m=\"\";\n if(day<10){\n d=0+(String.valueOf(day));\n }\n else{\n d=String.valueOf(day);\n }\n\n if(month<10){\n m=0+(String.valueOf(month));\n }\n else{\n m=String.valueOf(month);\n }\n //returning day/month/year\n return (d+\"/\"+m+\"/\"+String.valueOf(year));\n }", "protected final void normalise()\n {\n // yyyy, mm, dd must be set at this point\n if ( isValid(yyyy,mm,dd) ) return;\n else if ( mm > 12 )\n {\n yyyy += (mm-1) / 12;\n mm = ((mm-1) % 12) + 1;\n if ( isValid(yyyy,mm,dd) ) return;\n }\n else if ( mm <= 0 )\n {\n // Java's definition of modulus means we need to handle negatives as a special case.\n yyyy -= -mm / 12 + 1;\n mm = 12 - (-mm % 12);\n if ( isValid(yyyy,mm,dd) ) return;\n }\n if ( isValid(yyyy,mm,01) )\n {\n int olddd = dd;\n dd = 1;\n toOrdinal();\n ordinal += olddd - 1;\n toGregorian();\n if ( isValid(yyyy,mm,dd) ) return;\n }\n\n throw new IllegalArgumentException(\"date cannot be normalised: \"\n + yyyy + \"/\" + mm + \"/\" + dd);\n\n }", "public String convierteFormatoFecha(String fecha) {\n\t\tString resultado = \"\";\n\t\tresultado = fecha.substring(6,8)+\"/\"+fecha.substring(4,6)+\"/\"+fecha.substring(0, 4);\n\t\treturn resultado;\n\t}", "public static String formatDateToString(Date d, String formatoData) {\n\t\tfinal String OLD_FORMAT = \"yyyy-MM-dd\";\r\n\r\n\t\tString newDateString;\r\n\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(OLD_FORMAT);\r\n\t\tsdf.applyPattern(formatoData);\r\n\t\tnewDateString = sdf.format(d);\r\n\t\t\r\n\t\treturn newDateString;\r\n\t}", "private String formatDate(final Date date) {\r\n\t\tfinal Calendar calendar = Calendar.getInstance();\r\n\t\tcalendar.setTime(date);\r\n\r\n\t\tfinal String dayOfMonth = formatDayOfMonth(calendar);\r\n\t\tfinal String month = formatMonth(calendar);\r\n\t\tfinal String year = String.valueOf(calendar.get(Calendar.YEAR));\r\n\r\n\t\treturn String.format(\"%s/%s/%s\", year, month, dayOfMonth);\r\n\t}", "public static String formartDateYOB(String mDate) {\n\t\t\t\t\n\t\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"dd/mm/yyyy\");\n\t\t\t\t SimpleDateFormat outSDF = new SimpleDateFormat(\"yyyy-mm-dd\");\n\n\t\t\t\t \n\t\t\t\t String outDate = \"\";\n\t\t\t\t \n\t\t\t\t if (mDate != null) {\n\t\t\t\t try {\n\t\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t\t outDate = outSDF.format(date);\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t } catch (Exception ex){ \n\t\t\t\t \tex.printStackTrace();\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t return outDate;\n\t\t\t}", "public void setDataNascimentoString(String dataNascimento) {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tjava.util.Date date = new SimpleDateFormat(\"dd/MM/yyyy\").parse(dataNascimento);\r\n\t\t\tCalendar dataCalendar = Calendar.getInstance();\r\n\t\t\tdataCalendar.setTime(date);\r\n\t\t\t\r\n\t\t\tthis.dataNascimento = dataCalendar;\r\n\t\t\t\r\n\t\t} catch (ParseException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "public String formatoCortoDeFecha(Date fecha){\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n return format.format(fecha);\n }", "public String getDateString() {\n int year = date.get(Calendar.YEAR);\n int month = date.get(Calendar.MONTH); // month is stored from 0-11 so adjust +1 for final display\n int day_of_month = date.get(Calendar.DAY_OF_MONTH);\n return String.valueOf(month + 1) + '/' + String.valueOf(day_of_month) + '/' + year;\n }", "public String format (Date date , String dateFormat) ;", "@Override\n\tpublic String toString() {\n\t\ttry {\n\t\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\t\tDate date = formatter.parse(month + \"/\" + day + \"/\" + year);\n\n\t\t\treturn formatter.format(date);\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "private LocalDate parse(String format) {\r\n\t\tString lista[] = format.split(\"/\"); // DD - MM - YYYY\r\n\t\tint dia = Integer.parseInt(lista[0]);\r\n\t\tint mes = Integer.parseInt(lista[1]);\r\n\t\tint ano = Integer.parseInt(lista[2]);\r\n\t\tLocalDate date = LocalDate.of(ano, mes, dia);\r\n\t\treturn date;\r\n\t}", "static String getReadableDate(LocalDate date){\r\n\t\tString readableDate = null;\r\n\t\t//convert only if non-null\r\n\t\tif(null != date){\r\n\t\t\t//convert date to readable form\r\n\t\t\treadableDate = date.toString(\"MM/dd/yyyy\");\r\n\t\t}\r\n\t\t\r\n\t\treturn readableDate;\r\n\t}", "public static String convertToFrenshFormat(String date){\n Date d = null;\n if(String.valueOf(Locale.getDefault()).contains(\"en\")){\n d = changeDateFormat(date, \"MM/dd/yyyy\");\n Locale locale = Locale.FRENCH;\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT, locale);\n return dateFormat.format(d);\n }\n else {\n return date;\n }\n }", "private String formatDate(String date)\n\t{\n\t\tif(date == null || date.isEmpty())\n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString[] dateSplit = date.split(\"/\");\n\t\t\tif(dateSplit.length != 3)\n\t\t\t{\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn getMonthName(dateSplit[0]) + \" \"+ dateSplit[1]+\", \"+ dateSplit[2];\n\t\t\t}\n\t\t}\n\t}", "private static Date getDate(String sdate)\n\t{\n\t\tDate date = null;\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\ttry {\n\t\t\tdate = formatter.parse(sdate);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn date;\n\t}", "public String getFechatxt(Date d){\n \n try {\n String formato = selectorfecha.getDateFormatString();\n //Formato\n \n SimpleDateFormat sdf = new SimpleDateFormat(formato);\n String txtfechap = sdf.format(d);\n return txtfechap;\n } catch (NullPointerException ex) {\n JOptionPane.showMessageDialog(this, \"Al menos selecciona una fecha válida!\", \"Error!\", JOptionPane.INFORMATION_MESSAGE);\n return null;\n\n }\n\n\n \n }", "public static String convertStringToSqlString(String input) throws ParseException{\r\n\t\tSimpleDateFormat fromUser = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\tSimpleDateFormat myFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\r\n\t\ttry {\r\n\r\n\t\t String reformattedStr = myFormat.format(fromUser.parse(input));\r\n\t\t return reformattedStr;\r\n\t\t} catch (ParseException e) {\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t \r\n\t\t/* Date dtJava;\r\n\t\tDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n dtJava = (java.util.Date)formatter.parse(input);\r\n\t\t\r\n\t\tjava.sql.Date date = new java.sql.Date(dtJava.getTime());\r\n\t\t\r\n\t\tString dtSql = (String)date.toString();\r\n\t\t\r\n\t\treturn dtSql;*/\r\n\t}", "public static Date parseDate(String val) {\n\n\t\tDate d = null;\n\n\t\tif (val != null && !val.equals(\"0\")) {\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"MMM/dd/yyyy\");\n\t\t\ttry {\n\t\t\t\td = format.parse(val);\n\t\t\t} catch (ParseException e) {\n\t\t\t}\n\t\t}\n\n\t\treturn d;\n\n\t}", "private java.sql.Date convert(Date datet) {\n\t\treturn null;\n\t}", "private String ObtenerFechaActual() {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/mm/yyyy\");\n Calendar calendar = GregorianCalendar.getInstance();\n return String.valueOf(simpleDateFormat.format(calendar.getTime()));\n }", "private static void formatDate (XmlDoc.Element date) throws Throwable {\n\t\tString in = date.value();\n\t\tString out = DateUtil.convertDateString(in, \"dd-MMM-yyyy\", \"yyyy-MM-dd\");\n\t\tdate.setValue(out);\n\t}", "public String toStringDateOfBirth() {\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\treturn dateofbirth.format(format);\n\t}", "private String getFormattedDate(String date) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(getString(R.string.received_import_date_format));\n SimpleDateFormat desiredDateFormat = new SimpleDateFormat(getString(R.string.desired_import_date_format));\n Date parsedDate;\n try {\n parsedDate = dateFormat.parse(date);\n return desiredDateFormat.format(parsedDate);\n } catch (ParseException e) {\n // Return an empty string in case of issues parsing the date string received.\n e.printStackTrace();\n return \"\";\n }\n }", "public static String formatSdf(Date data) {\n if (data == null) {\n return null;\n }\n return new SimpleDateFormat(SDF_DATE_FORMAT).format(data);\n }", "public static String date_d(String sourceDate,String format) throws ParseException {\n SimpleDateFormat sdf_ = new SimpleDateFormat(\"yyyy-MM-dd\");\n SimpleDateFormat sdfNew_ = new SimpleDateFormat(format);\n return sdfNew_.format(sdf_.parse(sourceDate));\n }", "public static void main(String[] args) {\n\t\tDateTimeFormatter formatter=DateTimeFormatter.ofPattern(\"yy/MM/dd\");\n\t\tString input=\"19/12/09\";//user can give input any format of date\n\t\t\n\t\tLocalDate date=LocalDate.parse(input,formatter);\n\t\tSystem.out.println(date);\n\t\t\n\t\n\t}", "private void updateLabel(EditText view) {\n String myFormat = \"MM/dd/yyyy\"; //In which you need put here\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.US);\n\n view.setText(sdf.format(myCalendar.getTime()));\n }", "public void dataPadrao() {\n Calendar c = Calendar.getInstance();\n SimpleDateFormat s = new SimpleDateFormat(\"dd/MM/yyyy\");\n String dataAtual = s.format(c.getTime());\n c.add(c.MONTH, 1);\n String dataAtualMaisUm = s.format(c.getTime());\n dataInicial.setText(dataAtual);\n dataFinal.setText(dataAtualMaisUm);\n }", "public String toString() {\n\treturn String.format(\"%d/%d/%d\", year, month, day);\t\r\n\t}", "public static Date StringToDate(String strFecha) throws ParseException {\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\r\n return simpleDateFormat.parse(strFecha);\r\n }", "public static java.util.Date parseStringToDate(String data, String pattern) {\r\n\t\tjava.util.Date retorno = null;\r\n\r\n\t\tif (data != null && pattern != null) {\r\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(pattern);\r\n\t\t\tformat.setLenient(false);\r\n\t\t\ttry {\r\n\t\t\t\tretorno = format.parse(data);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}" ]
[ "0.68533653", "0.68177164", "0.67937165", "0.6736387", "0.6692191", "0.6647075", "0.66450644", "0.6639052", "0.6545675", "0.6527255", "0.64911854", "0.6447495", "0.6392455", "0.6367739", "0.63600105", "0.63495415", "0.6331369", "0.62786263", "0.6230152", "0.6200547", "0.61813706", "0.61654854", "0.61504275", "0.610703", "0.6007013", "0.59953284", "0.5992561", "0.597408", "0.59380305", "0.5930965", "0.5888791", "0.5865515", "0.58573306", "0.5852329", "0.58468705", "0.58380157", "0.5801467", "0.5786991", "0.5740237", "0.57314175", "0.57116187", "0.5707699", "0.57061833", "0.56620926", "0.56582016", "0.56580454", "0.56449896", "0.5642322", "0.56256515", "0.5616125", "0.56144935", "0.5601945", "0.55925417", "0.5585734", "0.55798304", "0.5559711", "0.5530907", "0.55267155", "0.5523474", "0.5512204", "0.5504989", "0.5500496", "0.5478987", "0.546792", "0.54658884", "0.5460864", "0.5457828", "0.5454656", "0.5452685", "0.5451676", "0.54424334", "0.54399174", "0.54386497", "0.5435608", "0.543054", "0.54209626", "0.5419227", "0.54167956", "0.5415004", "0.5414414", "0.54129165", "0.541038", "0.539063", "0.53882015", "0.5384884", "0.53843075", "0.5363965", "0.5360434", "0.5356769", "0.53542626", "0.5343722", "0.53407896", "0.53277576", "0.53239614", "0.53183657", "0.53181183", "0.531147", "0.53108525", "0.5308084", "0.5304704", "0.52983177" ]
0.0
-1
Compara dois objetos no formato anoMesReferencia de acordo com o sinal logico passado.
public static boolean compararAnoMesReferencia(Integer anoMesReferencia1, Integer anoMesReferencia2, String sinal) { boolean retorno = true; // Separando os valores de mês e ano para realizar a comparação String mesReferencia1 = String.valueOf(anoMesReferencia1.intValue()).substring(4, 6); String anoReferencia1 = String.valueOf(anoMesReferencia1.intValue()).substring(0, 4); String mesReferencia2 = String.valueOf(anoMesReferencia2.intValue()).substring(4, 6); String anoReferencia2 = String.valueOf(anoMesReferencia2.intValue()).substring(0, 4); if (sinal.equalsIgnoreCase("=")) { if (!Integer.valueOf(anoReferencia1).equals(Integer.valueOf(anoReferencia2))) { retorno = false; } else if (!Integer.valueOf(mesReferencia1).equals(Integer.valueOf(mesReferencia2))) { retorno = false; } } else if (sinal.equalsIgnoreCase(">")) { if (Integer.valueOf(anoReferencia1).intValue() < Integer.valueOf(anoReferencia2).intValue()) { retorno = false; } else if (Integer.valueOf(anoReferencia1).equals(Integer.valueOf(anoReferencia2)) && Integer.valueOf(mesReferencia1).intValue() <= Integer.valueOf(mesReferencia2).intValue()) { retorno = false; } } else { if (Integer.valueOf(anoReferencia2).intValue() < Integer.valueOf(anoReferencia1).intValue()) { retorno = false; } else if (Integer.valueOf(anoReferencia2).equals(Integer.valueOf(anoReferencia1)) && Integer.valueOf(mesReferencia2).intValue() <= Integer.valueOf(mesReferencia1).intValue()) { retorno = false; } } return retorno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean compararAnoMesReferencia(String anoMesReferencia1, String anoMesReferencia2, String sinal) {\r\n\t\tboolean retorno = true;\r\n\r\n\t\t// Separando os valores de mês e ano para realizar a comparação\r\n\t\tString mesReferencia1 = String.valueOf(anoMesReferencia1).substring(4, 6);\r\n\t\tString anoReferencia1 = String.valueOf(anoMesReferencia1).substring(0, 4);\r\n\r\n\t\tString mesReferencia2 = String.valueOf(anoMesReferencia2).substring(4, 6);\r\n\t\tString anoReferencia2 = String.valueOf(anoMesReferencia2).substring(0, 4);\r\n\r\n\t\tif (sinal.equalsIgnoreCase(\"=\")) {\r\n\t\t\tif (!Integer.valueOf(anoReferencia1).equals(Integer.valueOf(anoReferencia2))) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t} else if (!Integer.valueOf(mesReferencia1).equals(Integer.valueOf(mesReferencia2))) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t}\r\n\t\t} else if (sinal.equalsIgnoreCase(\">\")) {\r\n\t\t\tif (Integer.valueOf(anoReferencia1).intValue() < Integer.valueOf(anoReferencia2).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t} else if (Integer.valueOf(anoReferencia1).equals(Integer.valueOf(anoReferencia2))\r\n\t\t\t\t\t&& Integer.valueOf(mesReferencia1).intValue() <= Integer.valueOf(mesReferencia2).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (Integer.valueOf(anoReferencia2).intValue() < Integer.valueOf(anoReferencia1).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t} else if (Integer.valueOf(anoReferencia2).equals(Integer.valueOf(anoReferencia1))\r\n\t\t\t\t\t&& Integer.valueOf(mesReferencia2).intValue() <= Integer.valueOf(mesReferencia1).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "public boolean validaDataFaturamentoIncompativelInferior(\r\n\t\t\tString anoMesReferencia, String anoMesAnterior) {\r\n\t\tboolean retorno = true;\r\n\r\n\t\tString anoMesReferenciaMenosUmMes = \"\"\r\n\t\t\t\t+ Util.subtrairMesDoAnoMes(new Integer(anoMesReferencia), 2);\r\n\r\n\t\t// Comparando a data anterior faturada no form com o ano\r\n\t\t// mês\r\n\t\t// referência e com o ano mês anterior\r\n\t\tif (!((Util.compararAnoMesReferencia(new Integer(anoMesReferencia),\r\n\t\t\t\tnew Integer(anoMesAnterior), \"=\"))\r\n\t\t\t\t|| (Util.compararAnoMesReferencia(new Integer(\r\n\t\t\t\t\t\tanoMesReferenciaMenosUmMes),\r\n\t\t\t\t\t\tnew Integer(anoMesAnterior), \"=\")) || (Util\r\n\t\t\t\t.compararAnoMesReferencia(new Integer(anoMesReferencia),\r\n\t\t\t\t\t\tnew Integer(Util.somaMesAnoMesReferencia(new Integer(\r\n\t\t\t\t\t\t\t\tanoMesAnterior), 1)), \"=\")))) {\r\n\r\n\t\t\tretorno = false;\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public Set<MReferencia> mReferenciasYaUsadas(Concepto referenciante,Concepto referenciado,List<Referencia> referencias){\r\n\t\tSet<MReferencia> mReferencias=new HashSet<MReferencia>();\r\n\t\tfor (Referencia ref : referencias) {\r\n\t\t\tif( (ref.getReferenciante().equals(referenciante)) &&\r\n\t\t\t\t(ref.getReferenciado().equals(referenciado))) \r\n\t\t\t\t\t{\r\n\t\t\t\tmReferencias.add(ref.getmReferencia());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn mReferencias;\r\n\t}", "public boolean equals(Object obj){\r\n\t\tif (!(obj instanceof ResumoArrecadacaoCreditoHelper)){\r\n\t\t\treturn false;\t\t\t\r\n\t\t} else {\r\n\t\t\tResumoArrecadacaoCreditoHelper resumoTemp = (ResumoArrecadacaoCreditoHelper) obj;\r\n\t\t \r\n\t\t // Verificamos se todas as propriedades que identificam o objeto sao iguais\r\n\t\t\treturn\r\n\t\t\t\tpropriedadesIguais(this.idCreditoOrigem, resumoTemp.idCreditoOrigem) &&\r\n\t\t\t\tpropriedadesIguais(this.idLancamentoItemContabil, resumoTemp.idLancamentoItemContabil);\r\n\t\t}\t\r\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ComprobantesDetalle)) {\n return false;\n }\n ComprobantesDetalle other = (ComprobantesDetalle) object;\n if ((this.identificador == null && other.identificador != null) || (this.identificador != null && !this.identificador.equals(other.identificador))) {\n return false;\n }\n return true;\n }", "public boolean buscar(String referencia){\n Nodo aux = inicio;\r\n // Bandera para indicar si el valor existe.\r\n boolean encontrado = false;\r\n // Recorre la lista hasta encontrar el elemento o hasta \r\n // llegar al final de la lista.\r\n while(aux != null && encontrado != true){\r\n // Consulta si el valor del nodo es igual al de referencia.\r\n if (referencia == aux.getValor()){\r\n // Canbia el valor de la bandera.\r\n encontrado = true;\r\n }\r\n else{\r\n // Avansa al siguiente. nodo.\r\n aux = aux.getSiguiente();\r\n }\r\n }\r\n // Retorna el resultado de la bandera.\r\n return encontrado;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof prDetallePrestamos)) {\r\n return false;\r\n }\r\n prDetallePrestamos other = (prDetallePrestamos) object;\r\n if ((this.idDetPrestamo == null && other.idDetPrestamo != null) || (this.idDetPrestamo != null && !this.idDetPrestamo.equals(other.idDetPrestamo))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean equals(Object object) {\n\t\tif (!(object instanceof EmpleadoReferencia)) {\n\t\t\treturn false;\n\t\t}\n\t\tEmpleadoReferencia other = (EmpleadoReferencia) object;\n\t\tif ((this.referenciaid == null && other.referenciaid != null)\n\t\t\t\t|| (this.referenciaid != null && !this.referenciaid.equals(other.referenciaid))) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "protected boolean equals(URL paramURL1, URL paramURL2) {\n/* 336 */ String str1 = paramURL1.getRef();\n/* 337 */ String str2 = paramURL2.getRef();\n/* 338 */ return ((str1 == str2 || (str1 != null && str1.equals(str2))) && \n/* 339 */ sameFile(paramURL1, paramURL2));\n/* */ }", "private double compararOrientacion(Map<String, Object> anuncio1, Map<String , Object> anuncio2){\n\n Integer idOrientacion1 = anuncio1.containsKey(\"Id Orientacion\") ? ((Double) anuncio1.get(\"Id Orientacion\")).intValue() : null;\n Integer idOrientacion2 = anuncio2.containsKey(\"Id Orientacion\") ? ((Double) anuncio2.get(\"Id Orientacion\")).intValue() : null;\n\n double base = 0;\n boolean continuar = true;\n\n if (idOrientacion1 == null || idOrientacion2 == null){\n base = 1;\n continuar = false;\n }\n\n if (idOrientacion1 == idOrientacion2){\n base = 1;\n continuar = false;\n }\n\n if (continuar){\n int diferencia = Math.abs(idOrientacion1 - idOrientacion2);\n\n if (diferencia == 7){\n diferencia = 1;\n }\n\n base = diferencia == 1 ? 0.5 : 0;\n }\n\n return base * Constantes.PESOS_F1.get(\"Orientacion\");\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof DespesasMeses)) {\n return false;\n }\n DespesasMeses other = (DespesasMeses) object;\n if ((this.idDespesaMes == null && other.idDespesaMes != null) || (this.idDespesaMes != null && !this.idDespesaMes.equals(other.idDespesaMes))) {\n return false;\n }\n return true;\n }", "private void cargarContrarreferencia() {\r\n\t\tif (admision_seleccionada != null\r\n\t\t\t\t&& !admision_seleccionada.getAtendida()) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_CONTRAREFERENCIA,\r\n\t\t\t\t\tIRutas_historia.LABEL_CONTRAREFERENCIA, parametros);\r\n\t\t}\r\n\r\n\t}", "public String guardarsalidatransferencia( List<ListviewGenerico> existencias, List<ListviewGenerico> salidatransferencia, String clavemobil, String observacion){\n\t\tint size = existencias.size();\n\t\tfor (int i = 0; i < size; i++){\n\t\t Double existencia =existencias.get(i).getexistencia();\n\t\t int idmaterial =existencias.get(i).getidmaterial();\n\t\t int idalmacen =existencias.get(i).getidalmacen();\n\t\t updateexistencia(existencia,idmaterial,idalmacen);\t\t \n\t\t}\n\t\t\n\t\tString cadenaimprimir=\"\";\n\t\tsize =salidatransferencia.size();\n\t\tVector vector=new Vector();\n\t\tfor (int i = 0; i < size; i++){\t\t\n\t\t\tint cont=0;\n\t\t\tfor (int j=0; j<vector.size(); j++){\n\t\t\t\tif(vector.elementAt(j).equals(salidatransferencia.get(i).getnombrealmacne()))\n\t\t\t\t\tcont++;\t\n\t\t\t}\n\t\t\tif(cont==0)\n\t\t\t\tvector.add(salidatransferencia.get(i).getnombrealmacne());\t\t\t\n\t\t}\n\t\tcadenaimprimir+=\"SALIDA TRANSFERECIA\\n\";\n\t\tfor (int j=0; j<vector.size(); j++) {\n\t\t\tLog.e(\"obra-concepto\",vector.elementAt(j)+\"\");\t\t\t\n\t\t\tcadenaimprimir+=\"--------------------------------------------\\n\";\n\t\t\tcadenaimprimir+=vector.elementAt(j).toString()+\"\\n\";\n\t\t\tcadenaimprimir+=\"--------------------------------------------\\n\";\n\t\t\tfor (int i = 0; i < size; i++){\n\t\t\t\t\tif(vector.elementAt(j).equals(salidatransferencia.get(i).getnombrealmacne())){\n\t\t\t\t\t\tLog.e(\"concepto\",\" \"+salidatransferencia.get(i).getexistencia()+\" - \"+salidatransferencia.get(i).getunidad()+\"\\n \"+salidatransferencia.get(i).getdescripcion());\n\t\t\t\t\t\tcadenaimprimir+=\" \"+salidatransferencia.get(i).getexistencia()+\" - \"+salidatransferencia.get(i).getunidad()+\"\\n \"+salidatransferencia.get(i).getdescripcion()+\"\\n\";\n\t\t\t\t\t\tif(salidatransferencia.get(i).getidcontratista()>0){\n\t\t\t\t\t\t\tcadenaimprimir+=\" Entregado a: \"+salidatransferencia.get(i).getnombrecontratista()+\"\";\t\n\t\t\t\t\t\t\tLog.e(\"material\",\" \"+salidatransferencia.get(i).getnombrecontratista());\n\t\t\t\t\t\t\tif(salidatransferencia.get(i).getconcargo()>0){\n\t\t\t\t\t\t\t\tcadenaimprimir+=\"(Con cargo)\\n\";\n\t\t\t\t\t\t\t\tLog.e(\"material\",\" -> Con cargo\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tcadenaimprimir+=\"\\n\\nObservaciones: \"+observacion;\n\t\t\n\t\tfor (int i = 0; i < size; i++){\n\t\t\t Double existencia =salidatransferencia.get(i).getexistencia();\n\t\t\t int idmaterial =salidatransferencia.get(i).getidmaterial();\n\t\t\t int idalmacen =salidatransferencia.get(i).getidalmacen();\n\t\t\t String unidad=salidatransferencia.get(i).getunidad();\t\n\t\t\t int idcontratista=salidatransferencia.get(i).getidcontratista();\t\n\t\t\t int concargo=salidatransferencia.get(i).getconcargo();\n\t\t\t \n\t\t\t salidatrasferenciapartidas(existencia, idmaterial, unidad, idalmacen, clavemobil, idcontratista, concargo);\n\t\t}\n\t\treturn cadenaimprimir;\n\t\t\n\t}", "public int validarMesAnoReferencia(SituacaoEspecialFaturamentoHelper situacaoEspecialFaturamentoHelper)\r\n\t\t\tthrows ControladorException {\r\n\t\ttry {\r\n\t\t\treturn this.repositorioImovel.validarMesAnoReferencia(situacaoEspecialFaturamentoHelper);\r\n\t\t} catch (ErroRepositorioException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\tthrow new ControladorException(\"erro.sistema\", ex);\r\n\t\t}\r\n\t}", "private boolean compararFechasConDate(String fechaMenor, String fecha2, String fechaComparar) {\n try {\n /**\n * Obtenemos las fechas enviadas en el formato a comparar\n */\n SimpleDateFormat formateador = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date fechaDateMenor = formateador.parse(fechaMenor);\n Date fechaDateMayor = formateador.parse(fecha2);\n Date fechaDateComparar = formateador.parse(fechaComparar);\n if (fechaDateMenor.before(fechaDateComparar) && fechaDateComparar.before(fechaDateMayor)) {\n return true;\n } else {\n return false;\n }\n } catch (ParseException e) {\n System.out.println(\"Se Produjo un Error!!! \" + e.getMessage());\n return false;\n }\n }", "public boolean hasEqualMapping(ViewDetallesPagos valueObject) {\r\n\r\n if (valueObject.getIDCUENTACONTABLE() != this.IDCUENTACONTABLE) {\r\n return(false);\r\n }\r\n if (this.DECOMPARENDO == null) {\r\n if (valueObject.getDECOMPARENDO() != null)\r\n return(false);\r\n } else if (!this.DECOMPARENDO.equals(valueObject.getDECOMPARENDO())) {\r\n return(false);\r\n }\r\n if (this.CODIGOCUENTA == null) {\r\n if (valueObject.getCODIGOCUENTA() != null)\r\n return(false);\r\n } else if (!this.CODIGOCUENTA.equals(valueObject.getCODIGOCUENTA())) {\r\n return(false);\r\n }\r\n if (this.NOMBRECUENTA == null) {\r\n if (valueObject.getNOMBRECUENTA() != null)\r\n return(false);\r\n } else if (!this.NOMBRECUENTA.equals(valueObject.getNOMBRECUENTA())) {\r\n return(false);\r\n }\r\n if (valueObject.getVIGENCIAINICIAL() != this.VIGENCIAINICIAL) {\r\n return(false);\r\n }\r\n if (valueObject.getVIGENCIAFINAL() != this.VIGENCIAFINAL) {\r\n return(false);\r\n }\r\n if (this.FILTROPORFECHAS == null) {\r\n if (valueObject.getFILTROPORFECHAS() != null)\r\n return(false);\r\n } else if (!this.FILTROPORFECHAS.equals(valueObject.getFILTROPORFECHAS())) {\r\n return(false);\r\n }\r\n if (valueObject.getIDTARIFA() != this.IDTARIFA) {\r\n return(false);\r\n }\r\n if (valueObject.getIDCONCEPTO() != this.IDCONCEPTO) {\r\n return(false);\r\n }\r\n if (this.NOMBRECONCEPTO == null) {\r\n if (valueObject.getNOMBRECONCEPTO() != null)\r\n return(false);\r\n } else if (!this.NOMBRECONCEPTO.equals(valueObject.getNOMBRECONCEPTO())) {\r\n return(false);\r\n }\r\n if (valueObject.getIDITEM() != this.IDITEM) {\r\n return(false);\r\n }\r\n if (valueObject.getVALORPAGO() != this.VALORPAGO) {\r\n return(false);\r\n }\r\n if (this.FECHAPAGO == null) {\r\n if (valueObject.getFECHAPAGO() != null)\r\n return(false);\r\n } else if (!this.FECHAPAGO.equals(valueObject.getFECHAPAGO())) {\r\n return(false);\r\n }\r\n if (valueObject.getVIGENCIA() != this.VIGENCIA) {\r\n return(false);\r\n }\r\n\r\n return true;\r\n }", "private boolean existeMatrizReferencial(ConcursoPuestoAgr concursoPuestoAgr) {\r\n\t\tString query =\r\n\t\t\t\" SELECT * FROM seleccion.matriz_ref_conf \" + \" where id_concurso_puesto_agr = \"\r\n\t\t\t\t+ concursoPuestoAgr.getIdConcursoPuestoAgr() + \" and tipo = 'GRUPO' \";\r\n\t\treturn seleccionUtilFormController.existeNative(query);\r\n\t}", "private void verificaUnicitaAccertamento() {\n\t\t\n\t\t//chiamo il servizio ricerca accertamento per chiave\n\t\tRicercaAccertamentoPerChiave request = model.creaRequestRicercaAccertamento();\n\t\tRicercaAccertamentoPerChiaveResponse response = movimentoGestioneService.ricercaAccertamentoPerChiave(request);\n\t\tlogServiceResponse(response);\n\t\t// Controllo gli errori\n\t\tif(response.hasErrori()) {\n\t\t\t//si sono verificati degli errori: esco.\n\t\t\taddErrori(response);\n\t\t} else {\n\t\t\t//non si sono verificatui errori, ma devo comunque controllare di aver trovato un accertamento su db\n\t\t\tcheckCondition(response.getAccertamento() != null, ErroreCore.ENTITA_NON_TROVATA.getErrore(\"Movimento Anno e numero\", \"L'impegno indicato\"));\n\t\t\tmodel.setAccertamento(response.getAccertamento());\n\t\t}\n\t}", "@Override\n public boolean equals(Object obj) {\n if (obj instanceof Pasajero) {\n final Pasajero pasajero = (Pasajero) obj;\n return identificacion.equals(pasajero.getIdentificacion());\n } else {\n return false;\n }\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof HistoriaClinicaMedicamentos)) {\n return false;\n }\n HistoriaClinicaMedicamentos other = (HistoriaClinicaMedicamentos) object;\n if ((this.idHistoriaClinicaMedicamentos == null && other.idHistoriaClinicaMedicamentos != null) || (this.idHistoriaClinicaMedicamentos != null && !this.idHistoriaClinicaMedicamentos.equals(other.idHistoriaClinicaMedicamentos))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof LetrasPagoCanje)) {\n return false;\n }\n LetrasPagoCanje other = (LetrasPagoCanje) object;\n if ((this.idLetrasPagoCanje == null && other.idLetrasPagoCanje != null) || (this.idLetrasPagoCanje != null && !this.idLetrasPagoCanje.equals(other.idLetrasPagoCanje))) {\n return false;\n }\n return true;\n }", "public Object[] pesquisarArquivoTextoRoteiroEmpresa(Integer idRota, Integer anoMesReferencia)\n\t\t\tthrows ErroRepositorioException ;", "public RecordSet obtieneActividadReferencia (Long act, Long idioma) throws MareException {\n UtilidadesLog.info(\"DAOMatrizDias.obtieneActividadReferencia (Long act, Long idioma):Entrada\");\n StringBuffer query = new StringBuffer();\n\n query.append(\" SELECT \");\n query.append(\" actividad.oid_acti as oid, \");\n query.append(\" actividad.cact_oid_acti as origen, \");\n query.append(\" actividad.num_dias_desp as dias, \");\n query.append(\" IActi.VAL_I18N as textoActividad, \");\n query.append(\" actividad.cod_acti as codigoActividad, \");\n /*inicio enozigli 16/11/2007 COL-CRA-001*/\n query.append(\" actividad.clac_oid_clas_acti as claseActividad, \"); \n query.append(\" DECODE (actividad.cod_tipo_acti, \");\n query.append(\" 0, 'Fija', \");\n query.append(\" DECODE (actividad.cod_tipo_acti, \");\n query.append(\" 1, 'con Origen', \");\n query.append(\" 'Ref. Otra Camp.' \");\n query.append(\" ) \");\n query.append(\" ) AS desc_tipo, \");\n query.append(\" actividad.NUM_CAMP_REFE as camp_despla, \");\n query.append(\" (select iactiorig.VAL_I18N \");\n query.append(\" from cra_activ origen, v_gen_i18n_sicc iactiorig \");\n query.append(\" where origen.OID_ACTI = actividad.CACT_OID_ACTI \");\n query.append(\" AND iactiorig.attr_enti = 'CRA_ACTIV' \");\n query.append(\" AND iactiorig.idio_oid_idio = \"+idioma+\" \");\n query.append(\" AND iactiorig.val_oid = origen.oid_acti \");\n query.append(\" AND iactiorig.attr_num_atri = 1) as actividadorigen \");\n /*fin enozigli 16/11/2007 COL-CRA-001*/\n query.append(\" FROM cra_activ actividad, v_gen_i18n_sicc IActi \");\n query.append(\" WHERE actividad.oid_acti = \"+act+ \" \");\n query.append(\" AND IActi.attr_enti = 'CRA_ACTIV' \");\n query.append(\" AND IActi.idio_oid_idio = \"+idioma+\" \");\n query.append(\" AND IActi.val_oid = actividad.OID_ACTI \");\n query.append(\" AND IActi.attr_num_atri = 1 \");\n\n RecordSet rs = new RecordSet();\n\n try {\n rs = (RecordSet) getBelcorpService().dbService.executeStaticQuery(query.toString());\n } catch (MareException me) {\n UtilidadesLog.error(me);\n throw me;\n } catch (Exception e) {\n UtilidadesLog.error(e); \n throw new MareException(e,UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n UtilidadesLog.info(\"DAOMatrizDias.obtieneActividadReferencia (Long act, Long idioma):Salida\");\n return rs;\n \n }", "public Cliente[] findWhereReferenciaEquals(String referencia) throws ClienteDaoException;", "public void testEqualsObject() {\n\t\t\tTipoNodoLeisure tipo1 = new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.0\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo2= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.1\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo3= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.2\")); //$NON-NLS-1$\n\t\t\tif (tipo1 != tipo1)\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.3\")); //$NON-NLS-1$\n\t\t\tif (!tipo1.equals(tipo2))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.4\"));\t\t\t //$NON-NLS-1$\n\t\t\tif (tipo1.equals(tipo3))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.5\"));\t //$NON-NLS-1$\n\t\t}", "@Override\n public boolean equals(Object obj) {\n PlanningSalle plaS;\n if (obj ==null || obj.getClass()!=this.getClass()){\n return false;\n }\n\n else {\n plaS =(PlanningSalle)obj;\n if(\n plaS.getDateDebutR().equals(getDateDebutR()) //vu que type primitif == pas equals\n & plaS.getDateFinR().equals(getDateFinR())) { \n {\n return true;\n }\n }\n\n else {\n return false;\n }\n }\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Campeonatos)) {\r\n return false;\r\n }\r\n Campeonatos other = (Campeonatos) object;\r\n if ((this.idcampeonato == null && other.idcampeonato != null) || (this.idcampeonato != null && !this.idcampeonato.equals(other.idcampeonato))) {\r\n return false;\r\n }\r\n return true;\r\n }", "private boolean compararFechaActualCon(String fecha_obtenida) {\n boolean fecha_valida = false;\n\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n Date date = new Date();\n String fecha_actual = dateFormat.format(date);\n\n try {\n Date date2 = dateFormat.parse(fecha_obtenida);\n Date date1 = dateFormat.parse(fecha_actual);\n\n Log.i(\"COMPARANDO FECHAS\", \"F_ACTUAL: \" + date1 + \", F_OBTENIDA: \" + date2);\n\n if (date2.after(date1) ) {\n fecha_valida = true;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: TRUE\");\n } else {\n fecha_valida = false;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: FALSE\");\n\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return fecha_valida;\n }", "private boolean compararFechaActualCon(String fecha_obtenida) {\n boolean fecha_valida = false;\n\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n Date date = new Date();\n String fecha_actual = dateFormat.format(date);\n\n try {\n Date date2 = dateFormat.parse(fecha_obtenida);\n Date date1 = dateFormat.parse(fecha_actual);\n\n Log.i(\"COMPARANDO FECHAS\", \"F_ACTUAL: \" + date1 + \", F_OBTENIDA: \" + date2);\n\n if (date2.after(date1) ) {\n fecha_valida = true;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: TRUE\");\n } else {\n fecha_valida = false;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: FALSE\");\n\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return fecha_valida;\n }", "public List<DadosDiariosVO> validaSelecionaAcumuladoDadosDiarios(String ano) {\n\n\t\tList<DadosDiariosVO> listaDadosDiarios = validaSelecionaDetalhesDadosDiarios(ano);\n\n\t\tList<DadosDiariosVO> listaFiltradaDadosDiarios = new ArrayList<DadosDiariosVO>();\n\t\tList<DadosDiariosVO> listaFaturamentoDiario = new ArrayList<DadosDiariosVO>();\n\t\tList<DadosDiariosVO> listaFaturamentoAcumulado = new ArrayList<DadosDiariosVO>();\n\n\t\t/* Ordena a lista em EMITIDOS;EMITIDOS CANCELADOS;EMITIDOS RESTITUIDOS */\n\n\t\tfor (int i = 0; i < listaDadosDiarios.size(); i++) {\n\t\t\tString dataParaComparacao = listaDadosDiarios.get(i).getAnoMesDia();\n\n\t\t\tfor (int j = 0; j < listaDadosDiarios.size(); j++) {\n\n\t\t\t\tif (dataParaComparacao.equals(listaDadosDiarios.get(j).getAnoMesDia())) {\n\t\t\t\t\tDadosDiariosVO dados = new DadosDiariosVO();\n\t\t\t\t\tdados.setAnoMesDia(listaDadosDiarios.get(j).getAnoMesDia());\n\t\t\t\t\tdados.setProduto(listaDadosDiarios.get(j).getProduto());\n\t\t\t\t\tdados.setTipo(listaDadosDiarios.get(j).getTipo());\n\t\t\t\t\tdados.setValorDoDia(listaDadosDiarios.get(j).getValorDoDia());\n\n\t\t\t\t\tlistaFiltradaDadosDiarios.add(dados);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\touter: for (int i = listaFiltradaDadosDiarios.size() - 1; i >= 0; i--) {\n\t\t\tfor (int j = 0; j < listaFiltradaDadosDiarios.size(); j++) {\n\t\t\t\tif (listaFiltradaDadosDiarios.get(i).getAnoMesDia()\n\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getAnoMesDia())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getProduto()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getProduto())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getTipo()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getTipo())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getValorDoDia()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getValorDoDia())) {\n\t\t\t\t\tif (i != j) {\n\n\t\t\t\t\t\tlistaFiltradaDadosDiarios.remove(i);\n\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* Ordena por data */\n\t\tCollections.sort(listaFiltradaDadosDiarios, DadosDiariosVO.anoMesDiaCoparator);\n\n\t\tString dataTemp = \"\";\n\t\tBigDecimal somaAcumulada = new BigDecimal(\"0.0\");\n\n\t\t/* abaixo a visao da faturamento de cada dia */\n\t\tDadosDiariosVO faturamentoDiario = new DadosDiariosVO();\n\n\t\ttry {\n\n\t\t\tfor (int i = 0; i <= listaFiltradaDadosDiarios.size(); i++) {\n\n\t\t\t\tif (i == 0) {\n\t\t\t\t\tdataTemp = listaFiltradaDadosDiarios.get(i).getAnoMesDia();\n\n\t\t\t\t\tfaturamentoDiario.setAnoMesDia(listaFiltradaDadosDiarios.get(i).getAnoMesDia());\n\t\t\t\t\tfaturamentoDiario.setProduto(listaFiltradaDadosDiarios.get(i).getProduto());\n\t\t\t\t\tfaturamentoDiario.setTipo(\"FATURAMENTO\");\n\t\t\t\t}\n\n\t\t\t\tif ((i != listaFiltradaDadosDiarios.size())\n\t\t\t\t\t\t&& dataTemp.equals(listaFiltradaDadosDiarios.get(i).getAnoMesDia())) {\n\n\t\t\t\t\tsomaAcumulada = new BigDecimal(listaFiltradaDadosDiarios.get(i).getValorDoDia()).add(somaAcumulada);\n\n\t\t\t\t} else {\n\t\t\t\t\tif (listaFiltradaDadosDiarios.size() == i) {\n\t\t\t\t\t\tfaturamentoDiario.setValorDoDia(somaAcumulada.toString());\n\t\t\t\t\t\tlistaFaturamentoDiario.add(faturamentoDiario);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfaturamentoDiario.setValorDoDia(somaAcumulada.toString());\n\t\t\t\t\t\tlistaFaturamentoDiario.add(faturamentoDiario);\n\t\t\t\t\t}\n\n\t\t\t\t\tdataTemp = listaFiltradaDadosDiarios.get(i).getAnoMesDia();\n\t\t\t\t\tsomaAcumulada = new BigDecimal(listaFiltradaDadosDiarios.get(i).getValorDoDia());\n\n\t\t\t\t\tfaturamentoDiario = new DadosDiariosVO();\n\t\t\t\t\tfaturamentoDiario.setAnoMesDia(listaFiltradaDadosDiarios.get(i).getAnoMesDia());\n\t\t\t\t\tfaturamentoDiario.setProduto(listaFiltradaDadosDiarios.get(i).getProduto());\n\t\t\t\t\tfaturamentoDiario.setTipo(\"FATURAMENTO\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IndexOutOfBoundsException ioobe) {\n\t\t\tSystem.err.println(\n\t\t\t\t\t\"VisãoExecutiva_Diaria_BO - método validaSelecionaAcumuladoDadosDiarios - adicionando dados fictícios...\");\n\t\t\tDadosDiariosVO dados = new DadosDiariosVO();\n\t\t\tdados.setAnoMesDia(\"2015-10-02\");\n\t\t\tdados.setProduto(\"TESTE\");\n\t\t\tdados.setTipo(\"FATURAMENTO\");\n\t\t\tdados.setValorDoDia(\"0.0\");\n\t\t\tlistaFaturamentoDiario.add(dados);\n\t\t\tSystem.err.println(\"... dados inseridos\");\n\t\t}\n\n\t\t/* abaixo construimos a visao acumulada */\n\t\tBigDecimal somaAnterior = new BigDecimal(\"0.0\");\n\t\tint quantidadeDias = 0;\n\t\tfor (int i = 0; i < listaFaturamentoDiario.size(); i++) {\n\n\t\t\tDadosDiariosVO faturamentoDiarioAcumulado = new DadosDiariosVO();\n\t\t\tif (i == 0) {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoDiario.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoDiario.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(listaFaturamentoDiario.get(i).getTipo());\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(listaFaturamentoDiario.get(i).getValorDoDia());\n\n\t\t\t\tsomaAnterior = somaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia()));\n\t\t\t\tquantidadeDias++;\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\n\t\t\t} else {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoDiario.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoDiario.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(listaFaturamentoDiario.get(i).getTipo());\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(\n\t\t\t\t\t\tsomaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia())).toString());\n\n\t\t\t\tsomaAnterior = somaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia()));\n\t\t\t\tquantidadeDias++;\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\t\t\t}\n\t\t}\n\n\t\tUteis uteis = new Uteis();\n\t\tString dataAtualSistema = new SimpleDateFormat(\"dd/MM/yyyy\").format(new Date(System.currentTimeMillis()));\n\t\tString dataCut[] = dataAtualSistema.split(\"/\");\n\t\tString mes_SO;\n\t\tmes_SO = dataCut[1];\n\n\t\t/* BP */\n\t\tList<FaturamentoVO> listaBP = dadosFaturamentoDetalhado;\n\t\tint mes_SO_int = Integer.parseInt(mes_SO);\n\t\tString bpMes = listaBP.get(0).getMeses()[mes_SO_int - 1];\n\t\tint diasUteis = uteis.retornaDiasUteisMes(mes_SO_int - 1);\n\t\tBigDecimal bpPorDia = new BigDecimal(bpMes).divide(new BigDecimal(diasUteis), 6, RoundingMode.HALF_DOWN);\n\n\t\tBigDecimal somaAnteriorBp = new BigDecimal(\"0.0\");\n\t\tfor (int i = 0; i < quantidadeDias; i++) {\n\t\t\tDadosDiariosVO faturamentoDiarioAcumulado = new DadosDiariosVO();\n\t\t\tif (i == 0) {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoAcumulado.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoAcumulado.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(\"BP\");\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(bpPorDia.toString());\n\n\t\t\t\tsomaAnteriorBp = somaAnteriorBp.add(bpPorDia);\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\n\t\t\t} else {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoAcumulado.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoAcumulado.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(\"BP\");\n\n\t\t\t\tsomaAnteriorBp = somaAnteriorBp.add(bpPorDia);\n\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(somaAnteriorBp.toString());\n\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\t\t\t}\n\t\t}\n\n\t\treturn listaFaturamentoAcumulado;\n\t}", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Asignatura)) {\r\n return false;\r\n }\r\n Asignatura other = (Asignatura) object;\r\n if ((this.asignaturaID == null && other.asignaturaID != null) || (this.asignaturaID != null && !this.asignaturaID.equals(other.asignaturaID))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n protected boolean doEquals(Object obj) {\n if (obj instanceof BsAccessResultDiff) {\n BsAccessResultDiff other = (BsAccessResultDiff)obj;\n if (!xSV(_id, other._id)) { return false; }\n if (!xSV(_sessionId, other._sessionId)) { return false; }\n if (!xSV(_ruleId, other._ruleId)) { return false; }\n if (!xSV(_url, other._url)) { return false; }\n if (!xSV(_parentUrl, other._parentUrl)) { return false; }\n if (!xSV(_status, other._status)) { return false; }\n if (!xSV(_httpStatusCode, other._httpStatusCode)) { return false; }\n if (!xSV(_method, other._method)) { return false; }\n if (!xSV(_mimeType, other._mimeType)) { return false; }\n if (!xSV(_contentLength, other._contentLength)) { return false; }\n if (!xSV(_executionTime, other._executionTime)) { return false; }\n if (!xSV(_createTime, other._createTime)) { return false; }\n return true;\n } else {\n return false;\n }\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof InformeBatallahasRecursoPK)) {\n return false;\n }\n InformeBatallahasRecursoPK other = (InformeBatallahasRecursoPK) object;\n if (this.informeBatallaidBatalla != other.informeBatallaidBatalla) {\n return false;\n }\n if ((this.recursoname == null && other.recursoname != null) || (this.recursoname != null && !this.recursoname.equals(other.recursoname))) {\n return false;\n }\n if ((this.recursoInstalacionname == null && other.recursoInstalacionname != null) || (this.recursoInstalacionname != null && !this.recursoInstalacionname.equals(other.recursoInstalacionname))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Comprobanteislref)) {\r\n return false;\r\n }\r\n Comprobanteislref other = (Comprobanteislref) object;\r\n if ((this.idcomprobanteislref == null && other.idcomprobanteislref != null) || (this.idcomprobanteislref != null && !this.idcomprobanteislref.equals(other.idcomprobanteislref))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean equals(Object objetox) {\n\t\t//con el instanceof nos permite averiguar si el objeto pasado por parametro es una instancia de \n\t\t//la clase Cliente.\n\t\tif(objetox instanceof Cliente) {\n\t\t\tCliente aComparar = (Cliente)objetox;\n\t\t\tif(this.saldo == aComparar.saldo) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private boolean haveTwoObjsSameFields(Class classObjects, Object obj1, Object obj2, ArrayList<String> fieldsToExcludeFromCompare) {\n log.info(\"TEST: comparing two objects of class \"+classObjects.getName());\n if (obj1.getClass() != obj2.getClass()) {\n log.error(\"TEST: The two objects are instances of different classes, thus different\");\n return false;\n }\n\n try {\n PropertyDescriptor[] pds= Introspector.getBeanInfo(classObjects).getPropertyDescriptors();\n for(PropertyDescriptor pd: pds) {\n log.info(pd.getDisplayName());\n String methodName=pd.getReadMethod().getName();\n String fieldName = methodName.substring(3, methodName.length());\n\n if(fieldsToExcludeFromCompare.contains(fieldName)==true) {\n continue;\n }\n\n boolean areEqual=false;\n try {\n Object objReturned1 = pd.getReadMethod().invoke(obj1);\n Object objReturned2 =pd.getReadMethod().invoke(obj2);\n if(objReturned1!=null && objReturned2!=null) {\n areEqual=objReturned1.equals(objReturned2);\n if(objReturned1 instanceof List<?> && ((List) objReturned1).size()>0 && ((List) objReturned1).size()>0 && ((List) objReturned1).get(0) instanceof String) {\n String str1=String.valueOf(objReturned1);\n String str2=String.valueOf(objReturned2);\n areEqual=str1.equals(str2);\n\n }\n }\n else if(objReturned1==null && objReturned2==null) {\n log.info(\"TEST: Field with name \"+fieldName+\" null in both objects.\");\n areEqual=true;\n }\n else {\n //log.info(\"One of two objects is null\");\n //log.info(\"{}\",objReturned1);\n //log.info(\"{}\",objReturned2);\n }\n if(areEqual==false) {\n log.info(\"TEST: field with name \"+fieldName+\" has different values in objects. \");\n return false;\n }\n else{\n log.info(\"TEST: field with name \"+fieldName+\" has same value in both objects. \");\n }\n } catch (IllegalAccessException e) {\n\n e.printStackTrace();\n return false;\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n return false;\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n return false;\n }\n }\n } catch (IntrospectionException e) {\n e.printStackTrace();\n }\n return true;\n }", "public Integer obterQuantidadeMovimentoRoteiroPorGrupoAnoMes(Integer idFaturamentoGrupo, Integer anoMesReferencia)\n\t\t\t\t\tthrows ErroRepositorioException;", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Recibos)) {\n return false;\n }\n Recibos other = (Recibos) object;\n if ((this.codRecibo == null && other.codRecibo != null) || (this.codRecibo != null && !this.codRecibo.equals(other.codRecibo))) {\n return false;\n }\n return true;\n }", "private boolean propriedadesIguais( Integer pro1, Integer pro2 ){\r\n\t if ( pro2 != null ){\r\n\t\t if ( !pro2.equals( pro1 ) ){\r\n\t\t\t return false;\r\n\t\t }\r\n\t } else if ( pro1 != null ){\r\n\t\t return false;\r\n\t }\r\n\t \r\n\t // Se chegou ate aqui quer dizer que as propriedades sao iguais\r\n\t return true;\r\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Mes)) {\n return false;\n }\n Mes other = (Mes) object;\n if ((super.id == null && other.id != null) || (super.id != null && !super.id.equals(super.id))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof DetalhesCrediario)) {\r\n return false;\r\n }\r\n DetalhesCrediario other = (DetalhesCrediario) object;\r\n if ((this.idDetalhesCrediario == null && other.idDetalhesCrediario != null) || (this.idDetalhesCrediario != null && !this.idDetalhesCrediario.equals(other.idDetalhesCrediario))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof DetalleCompras)) {\r\n return false;\r\n }\r\n DetalleCompras other = (DetalleCompras) object;\r\n if ((this.detalleComprasPK == null && other.detalleComprasPK != null) || (this.detalleComprasPK != null && !this.detalleComprasPK.equals(other.detalleComprasPK))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof FacturaDetallada)) {\r\n return false;\r\n }\r\n FacturaDetallada other = (FacturaDetallada) object;\r\n if ((this.nFactura == null && other.nFactura != null) || (this.nFactura != null && !this.nFactura.equals(other.nFactura))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Docentetrabajoanterior)) {\r\n return false;\r\n }\r\n Docentetrabajoanterior other = (Docentetrabajoanterior) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Miembro)) {\r\n return false;\r\n }\r\n Miembro other = (Miembro) object;\r\n if ((this.dni == null && other.dni != null) || (this.dni != null && !this.dni.equals(other.dni))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Datosestudiosmedicos)) {\n return false;\n }\n Datosestudiosmedicos other = (Datosestudiosmedicos) object;\n if ((this.idDatosEstudiosMedicos == null && other.idDatosEstudiosMedicos != null) || (this.idDatosEstudiosMedicos != null && !this.idDatosEstudiosMedicos.equals(other.idDatosEstudiosMedicos))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof DisponibilidadResultadosPK)) {\n return false;\n }\n DisponibilidadResultadosPK other = (DisponibilidadResultadosPK) object;\n if ((this.anio == null && other.anio != null) || (this.anio != null && !this.anio.equals(other.anio))) {\n return false;\n }\n if ((this.codigoResultado == null && other.codigoResultado != null) || (this.codigoResultado != null && !this.codigoResultado.equals(other.codigoResultado))) {\n return false;\n }\n if ((this.codigoCompetencia == null && other.codigoCompetencia != null) || (this.codigoCompetencia != null && !this.codigoCompetencia.equals(other.codigoCompetencia))) {\n return false;\n }\n if ((this.progamaCodigo == null && other.progamaCodigo != null) || (this.progamaCodigo != null && !this.progamaCodigo.equals(other.progamaCodigo))) {\n return false;\n }\n if ((this.programaVersion == null && other.programaVersion != null) || (this.programaVersion != null && !this.programaVersion.equals(other.programaVersion))) {\n return false;\n }\n if ((this.tipoDocumento == null && other.tipoDocumento != null) || (this.tipoDocumento != null && !this.tipoDocumento.equals(other.tipoDocumento))) {\n return false;\n }\n if ((this.numeroDocumento == null && other.numeroDocumento != null) || (this.numeroDocumento != null && !this.numeroDocumento.equals(other.numeroDocumento))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Importador)) {\r\n return false;\r\n }\r\n Importador other = (Importador) object;\r\n if ((this.codigo == null && other.codigo != null) || (this.codigo != null && !this.codigo.equals(other.codigo))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean equals(MacchinaStatiFiniti altra)\r\n\t{\r\n\t\t//consideraimo le macchine uguali se hanno lo stesso nome.\r\n\t\tif (altra==null)\r\n\t\t\treturn false;\r\n\t\telse \r\n\t\t\treturn altra.getNome().equals(this.nome);\r\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof TblServiciosEnfermeria)) {\n return false;\n }\n TblServiciosEnfermeria other = (TblServiciosEnfermeria) object;\n if ((this.numSerEnfermeria == null && other.numSerEnfermeria != null) || (this.numSerEnfermeria != null && !this.numSerEnfermeria.equals(other.numSerEnfermeria))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Vehiculo)) {\n return false;\n }\n Vehiculo other = (Vehiculo) object;\n if ((this.matricula == null && other.matricula != null) || (this.matricula != null && !this.matricula.equals(other.matricula))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n final Libro other = (Libro) obj;\n if (this.descargable != other.descargable) {\n return false;\n }\n if (!Objects.equals(this.titulo, other.titulo)) {\n return false;\n }\n if (!Objects.equals(this.autor, other.autor)) {\n return false;\n }\n if (!Objects.equals(this.editorial, other.editorial)) {\n return false;\n }\n if (!Objects.equals(this.genero, other.genero)) {\n return false;\n }\n if (!Objects.equals(this.linkDescarga, other.linkDescarga)) {\n return false;\n }\n if (!Objects.equals(this.idLibro, other.idLibro)) {\n return false;\n }\n if (!Objects.equals(this.isbn, other.isbn)) {\n return false;\n }\n if (!Objects.equals(this.cantidadTotal, other.cantidadTotal)) {\n return false;\n }\n if (!Objects.equals(this.cantidadDisponible, other.cantidadDisponible)) {\n return false;\n }\n if (!Objects.equals(this.bibliotecario, other.bibliotecario)) {\n return false;\n }\n return true;\n }", "@Override\r\n\tpublic String toString() {\r\n\t\tString _infoReferencia = String.format(\"INFORMACIÓN DE REFERENCIA:\\n--------------------------------------\\n\"\r\n\t\t\t\t\t\t\t\t\t\t\t + \"Código de referencias: %s\\n\", this._codigoReferencia);\r\n\t\t\r\n\t\treturn _infoReferencia + super.toString();\r\n\t}", "void compareExposantHex(int exposant, String mantisse) {\n \t\tif(exposant < -126) {\n \t\t\tthrow new InvalidFloatSmall(this,getInputStream());\n \t\t}\n \t\t// si l'exposant == 126 OK\n \t\t//if(exposant == -126) { \n \t\t//\tcompareMantisseMinHex(mantisse);\n \t\t//}\n\n \t\tif (exposant == 127) {\n \t\t\tcompareMantisseMaxHex(mantisse);\n \t\t}\n\n \t\tif (exposant >127) {\n \t\t\tthrow new InvalidFloatBig(this,getInputStream());\n \t\t}\n\n \t}", "private void validarhorarioconotroshorariosactivos(HorarioAsignado horarioasignado, List<HorarioAsignado> horarios) throws LogicaException, ParseException, DatoException {\nGregorianCalendar startasignado=new GregorianCalendar();\nDate startdateasignado= new Date(horarioasignado.getValidezinicio().getTime());\nstartasignado.setTime(startdateasignado);\nGregorianCalendar endasignado=new GregorianCalendar();\nDate enddateasignado= new Date(horarioasignado.getValidezfin().getTime());\nendasignado.setTime(enddateasignado);\n\nint tempfrecasignado = horarioasignado.getHorario().getIdfrecuenciaasignacion().intValue();\nList<Integer> diadelasemanaasignado = diadelasemana(tempfrecasignado);\nList<HashMap<String, Object>> dataasignado = Util.diferenciaEnDiasconFrecuencia(startasignado, endasignado,diadelasemanaasignado,tempfrecasignado);\n\n\n\n\nfor(HorarioAsignado ho:horarios){\n\t\t\tif(ho.getIdhorarioasignado().equals(horarioasignado.getIdhorarioasignado())){\n\t\t\t\n\t\t\t}else{\n\t\t\tif(ho.getIdhorario()==horarioasignado.getIdhorario()){\n\t\t\t\n\t\t\t/*//cedulasconhorarios.add(em);\n\t\t\tif (horarioasignado.getValidezinicio().after(ho.getValidezinicio()) && horarioasignado.getValidezinicio().before(ho.getValidezfin())){\n\t\t\tthrow new LogicaException(\"este contrato ya tiene asociado ese horario\"\n\t\t\t+ \" entre las fechas \"+ho.getValidezinicio()+\" y \"+ ho.getValidezfin());\n\t\t\t\n\t\t\t}*/\n\t\t\t\n\t\t\t}else{\n\t\t\t\n\t\t\t}\n\n\t\tContrato contrato = contratoEJB.getContratosporId(ho.getIdcontrato());\n\t\tEmpleadoBean empleado = empleadoEJB.buscarEmpleadosporId(contrato.getIdempleado());\t\n\tGregorianCalendar start=new GregorianCalendar();\n\tDate startdate= new Date(ho.getValidezinicio().getTime());\n\tstart.setTime(startdate);\n\tGregorianCalendar end=new GregorianCalendar();\n\tDate enddate= new Date(ho.getValidezfin().getTime());\n\tend.setTime(enddate);\n\t\n\tint tempfrec = ho.getHorario().getIdfrecuenciaasignacion().intValue();\n\tList<Integer> diadelasemana = diadelasemana(tempfrec);\n\tList<HashMap<String, Object>> data = Util.diferenciaEnDiasconFrecuencia(start, end,diadelasemana,tempfrec);\n\t\n\t\t\t\t\tfor(HashMap<String, Object> diadehorario:data){\n\t\t\t\tHashMap<String, Object> horariofechas=new HashMap<String, Object>();\n\t\t\t\tGregorianCalendar fecha = (GregorianCalendar)diadehorario.get(\"fecha\");\n\t\t\t\tDate fechadat =fecha.getTime();\n\t\t\t\tGregorianCalendar fechafin = (GregorianCalendar)diadehorario.get(\"fechafin\");\n\t\t\t\tDate fechafindat = fechafin.getTime();\n\t\t\t\tfor(HashMap<String, Object> diaasignado:dataasignado){\n\t\t\t\t\t\tHashMap<String, Object> horariofechasasignadas=new HashMap<String, Object>();\n\t\t\t\t\t\tGregorianCalendar fechaasignada = (GregorianCalendar)diaasignado.get(\"fecha\");\n\t\t\t\t\t\tDate fechaasignadadat =fechaasignada.getTime();\n\t\t\t\t\t\tGregorianCalendar fechafinasignada = (GregorianCalendar)diaasignado.get(\"fechafin\");\n\t\t\t\t\t\tDate fechafinasignadadat = fechafinasignada.getTime();\n\t\t\t\t\t\t\t\t\tif(fechaasignada.after(fechafin)){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif((fechaasignada.getTime().after(fecha.getTime())||fechaasignada.getTime().equals(fecha.getTime())) && fechaasignada.getTime().before(fechafin.getTime()) ){\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//\tif((fechaasignada.getTime().after(fecha.getTime()) && fechaasignada.getTime().before(fechafin.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\") +\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\t\tif((fechafinasignada.getTime().after(fecha.getTime())||fechafinasignada.getTime().equals(fecha.getTime())) && fechafinasignada.getTime().before(fechafin.getTime()) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif((fecha.getTime().after(fechaasignada.getTime() ) && fecha.getTime().before(fechafinasignada.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\t\tif((fechafin.getTime().after(fechaasignada.getTime() ) && fechafin.getTime().before(fechafinasignada.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\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\n}\n\n\n}\n\n\n/////////////////////////fin validacion/\n}", "private void checkIntentInformation() {\n Bundle extras = getIntent().getExtras();\n Gson gson = new Gson();\n if (extras != null) {\n Curso aux;\n aux = (Curso) getIntent().getSerializableExtra(\"addCurso\");\n if (aux == null) {\n aux = (Curso) getIntent().getSerializableExtra(\"editCurso\");\n if (aux != null) {//Accion de actualizar\n //found an item that can be updated\n String cursoU = \"\";\n cursoU = gson.toJson(aux);\n\n apiUrlTemp = apiUrlAcciones+\"acc=updateC\" +\"&cursoU=\"+cursoU +\"&profesor_id=\"+aux.getProfesor().getCedula();\n MyAsyncTasksCursoOperaciones myAsyncTasksOp = new MyAsyncTasksCursoOperaciones();\n myAsyncTasksOp.execute();\n }\n } else {//Accion de agregar\n //found a new Curso Object\n String cursoA = \"\";\n cursoA = gson.toJson(aux);\n\n apiUrlTemp = apiUrlAcciones+\"acc=addC\" +\"&cursoA=\"+cursoA +\"&profesor_id=\"+aux.getProfesor().getCedula();\n MyAsyncTasksCursoOperaciones myAsyncTasksOp = new MyAsyncTasksCursoOperaciones();\n myAsyncTasksOp.execute();\n }\n }\n }", "@Override\n\tpublic boolean equals(Object object) {\n\t\tif (!(object instanceof ActividadDetallePagoBean)) {\n\t\t\treturn false;\n\t\t}\n\t\tActividadDetallePagoBean other = (ActividadDetallePagoBean) object;\n\t\tif ((this.actividadDetallePagoID == null && other.actividadDetallePagoID != null)\n\t\t\t\t|| (this.actividadDetallePagoID != null && !this.actividadDetallePagoID\n\t\t\t\t\t\t.equals(other.actividadDetallePagoID))) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof MesaPK)) {\n return false;\n }\n MesaPK other = (MesaPK) object;\n if (this.numeroOrden != other.numeroOrden) {\n return false;\n }\n if ((this.fechaOrden == null && other.fechaOrden != null) || (this.fechaOrden != null && !this.fechaOrden.equals(other.fechaOrden))) {\n return false;\n }\n return true;\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tPaziente paziente = (Paziente) obj;\n\t\treturn this.getCodiceFiscale().equals(paziente.getCodiceFiscale());\n\t}", "@Override\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n final Parametro other = (Parametro) obj;\n if ((this.nombre == null) ? (other.nombre != null) : !this.nombre.equals(other.nombre)) {\n return false;\n }\n if ((this.unidad == null) ? (other.unidad != null) : !this.unidad.equals(other.unidad)) {\n return false;\n }\n return true;\n }", "private void calcularOtrosIngresos(Ingreso ingreso)throws Exception{\n\t\tfor(IngresoDetalle ingresoDetalle : ingreso.getListaIngresoDetalle()){\r\n\t\t\tif(ingresoDetalle.getIntPersPersonaGirado().equals(ingreso.getBancoFondo().getIntPersonabancoPk())\r\n\t\t\t&& ingresoDetalle.getBdAjusteDeposito()==null){\r\n\t\t\t\tbdOtrosIngresos = ingresoDetalle.getBdMontoAbono();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void guarda(DTOAcreditacionGafetes acreGafete) throws Exception ;", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof MotivoBaja)) {\r\n return false;\r\n }\r\n MotivoBaja other = (MotivoBaja) object;\r\n if ((this.idMotivoBaja == null && other.idMotivoBaja != null) || (this.idMotivoBaja != null && !this.idMotivoBaja.equals(other.idMotivoBaja))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public void compareAddress()\n {\n Address a = new Address(\"Amapolas\",1500,\"Providencia\",\"Santiago\");\n Address b = new Address(\"amapolas\",1500, \"providencia\",\"santiago\");\n Address c = new Address(\"Hernando Aguirre\",1133,\"Providencia\", \"Santiago\");\n \n boolean d = a.equals(b); \n }", "public Integer contarFaturamentoImediatoAjuste(String anoMesReferencia, String faturamentoGrupo, \n\t\t\tString imovelId, String rotaId) throws ErroRepositorioException;", "public void publicarPropuestas() {\n try {\n //SISTEMA VERIFICA QUE LOS COMPROMISOS PARA EL PERIODO HAYAN SIDO INGRESADO\n if (this.listaCompromiso == null || this.listaCompromiso.isEmpty()) {\n //MUESTRA MENSAJE: 'DEBE INGRESAR LOS COMPROMISOS PARA PODER PUBLICAR ', NO ES POSIBLE PUBLICAR LOS RESULTADOS \n addErrorMessage(keyPropertiesFactory.value(\"cu_ne_6_lbl_mensaje_add_comprimiso_faltantes\"));\n return;\n }\n String mensajeValidacion = validarCompromisosPeriodoByPropuestaNacesidad(this.propuestaSeleccionada);\n if (mensajeValidacion != null) {\n addErrorMessage(keyPropertiesFactory.value(mensajeValidacion));\n return;\n }\n if (IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_PRE_APROBADA.compareTo(this.propuestaSeleccionada.getConstantes().getIdConstantes()) != 0) {\n addErrorMessage(\"La propuesta debe estar en estado Pre-Aprobado\");\n return;\n }\n /*byte[] bitesPdf;\n //GENERAMOS EL REPORTE - CREADOR DE REPORTES\n try {\n HashMap mapa = new HashMap();\n mapa.put(\"p_id_periodo\", periodoSeleccionado.getIdPeriodo().intValue());\n bitesPdf = GeneradorReportesServicio.getInstancia().generarReporte(mapa, \"reporte15.jasper\");\n } catch (Exception e) {\n adicionaMensajeError(\"ERROR, Se presentaron errores al general el reporte JASPER\");\n Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, \"CU-NE-06(publicarPropuestas)\", e);\n return;\n }*/\n String iniciaCodigoVic = keyPropertiesFactory.value(\"cu_ne_6_codigo_proyecto_inicia_generacion\");\n if (iniciaCodigoVic.contains(\"-----NOT FOUND-----\")) {\n addErrorMessage(keyPropertiesFactory.value(\"cu_ne_6_error_no_existe_codigo_proyecto_inicia_generacion\"));\n return;\n }\n //EL SISTEMA CAMBIA EL ESTADO DE TODAS LAS PROPUESTAS DEL LISTADO DE ''PRE-APROBADA ' A 'APROBADA' \n //Y LOS DE ESTADO 'REVISADA' A 'NO APROBADA' \n List<SieduPropuestaAsignada> lstPropuestaasignada = this.servicePropuestaAsignada.findByVigencia(this.propuestaSeleccionada);\n List<Long> lstLong = new ArrayList<>();\n for (SieduPropuestaAsignada s : lstPropuestaasignada) {\n lstLong.add(s.getPropuestaNecesidad().getIdPropuestaNecesidad());\n }\n Proyecto proyecto = new Proyecto();\n int contarProyecto = iProyectoLocal.contarProyectoByVigencia(lstLong);\n Constantes constantes = iConstantesLocal.getConstantesPorIdConstante(IConstantes.DURACION_PROYECTOS_INSTITUCIONALES);\n int numeroMesesEstimacionProyecto = Integer.parseInt(constantes.getValor());\n UsuarioRol usuarioRol = new UsuarioRol(loginFaces.getPerfilUsuarioDTO().getRolUsuarioPorIdRolDTO(IConstantesRole.EVALUADOR_DE_PROPUESTAS_DE_NECESIDADES_EN_LA_VICIN).getIdUsuarioRol());\n if (this.propuestaSeleccionada.getConstantes().getIdConstantes().equals(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_PRE_APROBADA)) {\n EjecutorNecesidad ejecutorNecesidadResponsable = iEjecutorNecesidadLocal.getEjecutorNecesidadPorPropuestaNecesidadYRolResponsable(this.propuestaSeleccionada.getIdPropuestaNecesidad());\n if (ejecutorNecesidadResponsable == null || ejecutorNecesidadResponsable.getUnidadPolicial() == null || ejecutorNecesidadResponsable.getUnidadPolicial().getSiglaFisica() == null) {\n addErrorMessage(\"Error, Verifique la sigla física de la Unidad Policial asociada a la propuesta: \" + this.propuestaSeleccionada.getTema());\n return;\n }\n\n this.propuestaSeleccionada.setConstantes(new Constantes(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_APROBADA));\n //POR CADA PROPROPUESTA APROBADA SE CREA UN PROYECTO\n //CREA UN PROYECTO DE INVESTIGACIÓN POR CADA PROPUESTA CON EL ESTADO 'APROBADA', \n //ASIGNÁNDOLE EL CÓDIGO DE INVESTIGACIÓN DE ACUERDO AL MÉTODO ESTABLECIDO(VER REQUERIMIENTOS ESPECIALES), \n //ASIGNÁNDOLE EL ÁREA Y LA LÍNEA DE INVESTIGACIÓN Y EL TEMA PROPUESTO COMO TITULO PROPUESTO\n //VIC - [Consecutivo de proyectos en el periodo][Año]- [Código interno de la Unidad Policial o Escuela]\n String codigoInternoUnidad = ejecutorNecesidadResponsable.getUnidadPolicial().getSiglaFisica();\n String codigoProyecto = iniciaCodigoVic.concat(\"-\");//VIC \n contarProyecto += 1;\n codigoProyecto = codigoProyecto.concat(String.valueOf(contarProyecto));//[Consecutivo de proyectos en el periodo]\n codigoProyecto = codigoProyecto.concat(String.valueOf(lstPropuestaasignada.get(0).getSieduPropuestaAsignadaPK().getVigencia()));//[Año]\n codigoProyecto = codigoProyecto.concat(\"-\");\n codigoProyecto = codigoProyecto.concat(codigoInternoUnidad);//[Código interno de la Unidad Policial o Escuela]\n Date fechaHoy = new Date();\n proyecto.setCodigoProyecto(codigoProyecto);\n proyecto.setLinea(this.propuestaSeleccionada.getLinea());\n proyecto.setTituloPropuesto(this.propuestaSeleccionada.getTema());\n proyecto.setTema(this.propuestaSeleccionada.getTema());\n proyecto.setPeriodo(this.propuestaSeleccionada.getPeriodo());\n proyecto.setUsuarioRol(usuarioRol);\n proyecto.setEstado(new Constantes(IConstantes.TIPO_ESTADO_PROYECTO_EN_EJECUCION));\n proyecto.setUnidadPolicial(ejecutorNecesidadResponsable.getUnidadPolicial());\n proyecto.setPropuestaNecesidad(this.propuestaSeleccionada);\n proyecto.setFechaEstimadaInicio(fechaHoy);\n Calendar fechaFinalEstimadaProyecto = Calendar.getInstance();\n fechaFinalEstimadaProyecto.setTime(fechaHoy);\n fechaFinalEstimadaProyecto.add(Calendar.MONTH, numeroMesesEstimacionProyecto);\n proyecto.setFechaEstimadaFinalizacion(fechaFinalEstimadaProyecto.getTime());\n proyecto.setFechaActualizacion(fechaHoy);\n //CREAMOS LOS COMPROMISOS PROYECTOS\n List<CompromisoProyecto> listaCompromisosProyecto = new ArrayList<CompromisoProyecto>();\n //CONSULTAMOS LOS COMPROMISOS DE ESTE PERIODO\n List<CompromisoPeriodo> listaComprimiso = iCompromisoPeriodoLocal.buscarCompromisoPeriodoByIdPropuestaNecesidad(this.propuestaSeleccionada);\n for (CompromisoPeriodo unCompromisoPeriodo : listaComprimiso) {\n CompromisoProyecto compromisoProyecto = new CompromisoProyecto();\n compromisoProyecto.setCompromisoPeriodo(unCompromisoPeriodo);\n compromisoProyecto.setProyecto(proyecto);\n compromisoProyecto.setEstado(new Constantes(IConstantes.ESTADO_COMPROMISO_PROYECTO_PENDIENTE));\n compromisoProyecto.setFechaCreacion(new Date());\n compromisoProyecto.setMaquina(loginFaces.getPerfilUsuarioDTO().getMaquinaDTO().getIpLoginRemotoUsuario());\n compromisoProyecto.setUsuarioRegistro(loginFaces.getPerfilUsuarioDTO().getIdentificacion());\n compromisoProyecto.setUsuarioRolRegistra(usuarioRol);\n listaCompromisosProyecto.add(compromisoProyecto);\n }\n //CREAMOS LAS UNIDADES EJECUTORAS PARA EL PROYECTO\n List<EjecutorNecesidadDTO> listadoEjecutorNecesidadDTOPropuesta = iEjecutorNecesidadLocal.getEjecutorNecesidadDTOPorPropuestaNecesidad(this.propuestaSeleccionada.getIdPropuestaNecesidad());\n List<EjecutorNecesidad> listaEjecutorNecesidadProyecto = new ArrayList<EjecutorNecesidad>();\n for (EjecutorNecesidadDTO unaEjecutorNecesidadDTO : listadoEjecutorNecesidadDTOPropuesta) {\n EjecutorNecesidad ejecutorNecesidadLocal = new EjecutorNecesidad();\n ejecutorNecesidadLocal.setPropuestaNecesidad(new PropuestaNecesidad(this.propuestaSeleccionada.getIdPropuestaNecesidad()));\n ejecutorNecesidadLocal.setProyecto(proyecto);\n ejecutorNecesidadLocal.setRol(new Constantes(unaEjecutorNecesidadDTO.getIdRol()));\n ejecutorNecesidadLocal.setUnidadPolicial(this.iUnidadPolicialLocal.obtenerUnidadPolicialPorId(unaEjecutorNecesidadDTO.getIdUnidadPolicial()));\n listaEjecutorNecesidadProyecto.add(ejecutorNecesidadLocal);\n }\n proyecto.setEjecutorNecesidadList(listaEjecutorNecesidadProyecto);\n proyecto.setCompromisoProyectoList(listaCompromisosProyecto);\n\n } else if (this.propuestaSeleccionada.getConstantes().getIdConstantes().equals(\n IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_REVISADA)) {\n this.propuestaSeleccionada.setConstantes(new Constantes(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_NO_APROBADA));\n }\n\n //ACTUALIZAMOS EL CAMPO ROL_ACTUAL\n //CON EL OBJETIVO SE SABER EN DONDE SE ENCUENTRA LA PROPUESTA\n //ESTO SE REALIZA PARA CORREGIR \n //LA INCIDENCIA #0002754: Mientras no se publiquen los resultados de las necesidades, el estado debe ser 'Enviada a VICIN'.\n this.propuestaSeleccionada.setRolActual(IConstantes.PROPUESTA_NECESIDAD_PUBLICADA_JEFE_UNIDAD);\n /* \n\n //GENERAMOS EL NOMBRE DEL ARCHIVO DEL REPORTE\n String nombreReporteUnico = \"PROP_NECES_PERIODO\".concat(\"_\").concat(String.valueOf(System.currentTimeMillis())).concat(\".pdf\");\n String nombreReporte = \"PROP_NECES_PERIODO_\" + (periodoSeleccionado.getAnio() == null ? periodoSeleccionado.getIdPeriodo().toString() : periodoSeleccionado.getAnio().toString()) + \".pdf\";\n */\n //SE ACTUALIZAN LAS PROPUESTAS DE NECESIDAD\n servicePropuestaNecesidad.guardarPropuestaYgenerarProyecto(\n this.propuestaSeleccionada,\n proyecto);\n\n addInfoMessage(keyPropertiesFactory.value(\"cu_ne_6_lbl_mensaje_propuestas_actualizadas_ok_publicar\"));\n\n navigationFaces.redirectFacesCuNe01();\n\n } catch (Exception e) {\n\n addErrorMessage(keyPropertiesFactory.value(\"general_mensaje_error_exception\"));\n Logger.getLogger(this.getClass().getName()).log(Level.SEVERE,\n \"CU-NE-06 Evaluar propuestas de necesidades de investigación - (publicarPropuestas)\", e);\n\n }\n\n }", "public static void main(String[] args) {\n\t\n\tConta conta = new Conta();\t\n\n\t//Colocando valores no conta\n\tconta.titular = \"Duke\";\n\tconta.saldo = 1000000.0;\n\tconta.numero = 12345;\n\tconta.agencia = 54321;\n\tconta.dataAniversario = \"1985/01/12\";\n\n\tconta.saca(100.0);\n\tconta.deposita(1000.0);\n\n\tSystem.out.println(\"Saldo atual: \" + conta.saldo);\n\tSystem.out.println(\"Rendimento atual: \" + conta.calculaRendimento());\n\tSystem.out.println(\"Saldo atual depois do rendimento: \" + conta.saldo);\n\tSystem.out.println(\"Cliente: \" + conta.recuperaDados());\n\n\n\tConta c1 = new Conta();\n\tConta c2 = new Conta();\t\n\n\t//Colocando valores na nova conta (cria um objeto novo na memoria com outro registro de memoria)\n\tc1.titular = \"Flavio\";\n\tc1.saldo = 10000.0;\n\tc1.numero = 54321;\n\tc1.agencia = 12345;\n\tc1.dataAniversario = \"1900/01/12\";\n\n\t//Colocando valores na nova conta (cria um objeto novo na memoria com outro registro de memoria)\n\tc2.titular = \"Flavio\";\n\tc2.saldo = 10000.0;\n\tc2.numero = 54321;\n\tc2.agencia = 12345;\n\tc2.dataAniversario = \"1900/01/12\";\n\n\n\tif (c1.titular == c2.titular) {\n\t\tSystem.out.println(\"Iguais\");\t\t\n\t} else {\n\t\tSystem.out.println(\"Diferentes\");\n\t}\t\n\n\tconta.transfere(100000,c1);\n\n\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof DetallePlanAcademico)) {\n return false;\n }\n DetallePlanAcademico other = (DetallePlanAcademico) object;\n if ((this.idDetalle == null && other.idDetalle != null) || (this.idDetalle != null && !this.idDetalle.equals(other.idDetalle))) {\n return false;\n }\n return true;\n }", "public void modifica(DTOAcreditacionGafetes acreGafete) throws Exception ;", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof RelacionesPapel)) {\r\n return false;\r\n }\r\n RelacionesPapel other = (RelacionesPapel) object;\r\n if ((this.idRelacion == null && other.idRelacion != null) || (this.idRelacion != null && !this.idRelacion.equals(other.idRelacion))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Formapagamento)) {\n return false;\n }\n Formapagamento other = (Formapagamento) object;\n if ((this.idformaPagamento == null && other.idformaPagamento != null) || (this.idformaPagamento != null && !this.idformaPagamento.equals(other.idformaPagamento))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof ExamenDetallePK)) {\r\n return false;\r\n }\r\n ExamenDetallePK other = (ExamenDetallePK) object;\r\n if (this.codExamen != other.codExamen) {\r\n return false;\r\n }\r\n if (this.codPregunta != other.codPregunta) {\r\n return false;\r\n }\r\n return true;\r\n }", "public List<EntradaDeMaterial> buscarEntradasDisponibles(Almacen a);", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof NombrecomunTb)) {\r\n return false;\r\n }\r\n NombrecomunTb other = (NombrecomunTb) object;\r\n if ((this.eIdnombrecomun == null && other.eIdnombrecomun != null) || (this.eIdnombrecomun != null && !this.eIdnombrecomun.equals(other.eIdnombrecomun))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean equals(Object obj) {\r\n if (obj == null) {\r\n return false;\r\n }\r\n if (getClass() != obj.getClass()) {\r\n return false;\r\n }\r\n PrestitiAbstractSearch other = (PrestitiAbstractSearch) obj;\r\n if (soggetti == null) {\r\n if (other.getSoggetti() != null) {\r\n return false;\r\n }\r\n } else if (!soggetti.equals(other.getSoggetti())) {\r\n return false;\r\n }\r\n if (soggetti_username == null) {\r\n if (other.getSoggetti_username() != null) {\r\n return false;\r\n }\r\n } else if (!soggetti_username.equals(other.getSoggetti_username())) {\r\n return false;\r\n }\r\n if (dataPrestitoFrom == null) {\r\n if (other.getDataPrestitoFrom() != null) {\r\n return false;\r\n }\r\n } else if (!dataPrestitoFrom.equals(other.getDataPrestitoFrom())) {\r\n return false;\r\n }\r\n if (dataPrestitoTo == null) {\r\n if (other.getDataPrestitoTo() != null) {\r\n return false;\r\n }\r\n } else if (!dataPrestitoTo.equals(other.getDataPrestitoTo())) {\r\n return false;\r\n }\r\n if (scadenzaPrestitoFrom == null) {\r\n if (other.getScadenzaPrestitoFrom() != null) {\r\n return false;\r\n }\r\n } else if (!scadenzaPrestitoFrom.equals(other.getScadenzaPrestitoFrom())) {\r\n return false;\r\n }\r\n if (scadenzaPrestitoTo == null) {\r\n if (other.getScadenzaPrestitoTo() != null) {\r\n return false;\r\n }\r\n } else if (!scadenzaPrestitoTo.equals(other.getScadenzaPrestitoTo())) {\r\n return false;\r\n }\r\n if (oggetti == null) {\r\n if (other.getOggetti() != null) {\r\n return false;\r\n }\r\n } else if (!oggetti.equals(other.getOggetti())) {\r\n return false;\r\n }\r\n if (oggetti_id == null) {\r\n if (other.getOggetti_id() != null) {\r\n return false;\r\n }\r\n } else if (!oggetti_id.equals(other.getOggetti_id())) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Formularios)) {\r\n return false;\r\n }\r\n Formularios other = (Formularios) object;\r\n if ((this.idFormulario == null && other.idFormulario != null) || (this.idFormulario != null && !this.idFormulario.equals(other.idFormulario))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean isTheSame(String titolo, String autore, String desc, String prezzo, String editore, String url, String nCopie){\n return (current.getTitolo().equals(titolo) && current.getAutore().equals(autore) && current.getDescrizione().equals(desc)\n && current.getPrezzo().equals(Double.parseDouble(prezzo)) && current.getEditore().equals(editore) && url.equals(current.getUrl()) && Integer.parseInt(nCopie) == (current.getCopie()));\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Autos)) {\r\n return false;\r\n }\r\n Autos other = (Autos) object;\r\n if ((this.matricula == null && other.matricula != null) || (this.matricula != null && !this.matricula.equals(other.matricula))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ResAtencion)) {\n return false;\n }\n ResAtencion other = (ResAtencion) object;\n if ((this.idResultadoAtencion == null && other.idResultadoAtencion != null) || (this.idResultadoAtencion != null && !this.idResultadoAtencion.equals(other.idResultadoAtencion))) {\n return false;\n }\n return true;\n }", "public void bugActualizarReferenciaActual(PagosAutorizados pagosautorizados,PagosAutorizados pagosautorizadosAux) throws Exception {\n\t\tthis.setCamposBaseDesdeOriginalPagosAutorizados(pagosautorizados);\r\n\t\t\t\t\t\r\n\t\t//POR BUG: EL OBJETO ACTUAL SE PERDIA, POR LO QUE SE GUARDA TAMBIEN VALORES EN AUX Y LUEGO DESPUES DEL MENSAJE SE HACE REFERENCIA EL OBJETO ACTUAL AL AUX\r\n\t\tpagosautorizadosAux.setId(pagosautorizados.getId());\r\n\t\tpagosautorizadosAux.setVersionRow(pagosautorizados.getVersionRow());\t\t\t\t\t\r\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof PghDocumentoAdjunto)) {\n return false;\n }\n PghDocumentoAdjunto other = (PghDocumentoAdjunto) object;\n if ((this.idDocumentoAdjunto == null && other.idDocumentoAdjunto != null) || (this.idDocumentoAdjunto != null && !this.idDocumentoAdjunto.equals(other.idDocumentoAdjunto))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ObservacionGeneral)) {\n return false;\n }\n ObservacionGeneral other = (ObservacionGeneral) object;\n if ((this.idObservacionGral == null && other.idObservacionGral != null) || (this.idObservacionGral != null && !this.idObservacionGral.equals(other.idObservacionGral))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof ParametrosMedicion)) {\r\n return false;\r\n }\r\n ParametrosMedicion other = (ParametrosMedicion) object;\r\n if ((this.idPARAMETROSMEDICION == null && other.idPARAMETROSMEDICION != null) || (this.idPARAMETROSMEDICION != null && !this.idPARAMETROSMEDICION.equals(other.idPARAMETROSMEDICION))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof CargaUbicacion)) {\n return false;\n }\n CargaUbicacion other = (CargaUbicacion) object;\n if ((this.idCargaUbicacion == null && other.idCargaUbicacion != null) || (this.idCargaUbicacion != null && !this.idCargaUbicacion.equals(other.idCargaUbicacion))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof CurAsignaturaExt)) {\n return false;\n }\n CurAsignaturaExt other = (CurAsignaturaExt) object;\n if ((this.idAsignatura == null && other.idAsignatura != null) || (this.idAsignatura != null && !this.idAsignatura.equals(other.idAsignatura))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Receta)) {\n return false;\n }\n Receta other = (Receta) object;\n if ((this.idReceta == null && other.idReceta != null) || (this.idReceta != null && !this.idReceta.equals(other.idReceta))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof AnalisisAmenazas)) {\r\n return false;\r\n }\r\n AnalisisAmenazas other = (AnalisisAmenazas) object;\r\n if ((this.codAnalisisAmenaza == null && other.codAnalisisAmenaza != null) || (this.codAnalisisAmenaza != null && !this.codAnalisisAmenaza.equals(other.codAnalisisAmenaza))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public static Integer subtrairAnoAnoMesReferencia(Integer anoMesReferencia, int qtdAnos) {\r\n\r\n\t\tint mes = obterMes(anoMesReferencia.intValue());\r\n\t\tint ano = obterAno(anoMesReferencia.intValue());\r\n\t\tString anoMes = \"\";\r\n\t\tano = ano - qtdAnos;\r\n\t\tif (mes < 10) {\r\n\t\t\tanoMes = \"\" + ano + \"0\" + mes;\r\n\t\t} else {\r\n\t\t\tanoMes = \"\" + ano + mes;\r\n\t\t}\r\n\t\treturn Integer.parseInt(anoMes);\r\n\t}", "public Object[] pesquisarContaGerarArquivoTextoFaturamento(Integer idImovel,\n\t\t\tInteger anoMesReferencia,Integer idFaturamentoGrupo) throws ErroRepositorioException ;", "public boolean equals(Object objeto){\n\t\tif (objeto instanceof ObservadorDeposito){\n\t\t\tObservadorDeposito observadordeposito = (ObservadorDeposito) objeto ;\n\t\t\treturn (observadordeposito.getAlmacenador().equals(getAlmacenador()) \n\t\t\t\t\t&& observadordeposito.getNivelDeposito() == getNivelDeposito()\n\t\t\t\t\t&& observadordeposito.getGastoMedio() == getGastoMedio()) ; \n\t\t}\n\t\t\n\t\treturn false ;\n\t}", "private boolean cursoAsignado(Curso curso, Curso[] cursoAsignado) {\n\n for (int i = 0; i < cursoAsignado.length; i++) {\n\n if (cursoAsignado[i] != null) {\n if (curso.getNombre().equals(cursoAsignado[i].getNombre())) {\n return true;\n }\n }\n }\n return false;\n }", "@Override\n public boolean equals(Object autre) {\n AcideAmine inter = (AcideAmine) autre;\n return ( acideAmine.equals(inter.acideAmine));\n \n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj)\n\t\t\treturn true;\n\t\tif (obj == null)\n\t\t\treturn false;\n\t\tif (getClass() != obj.getClass())\n\t\t\treturn false;\n\t\tTipoDocumento other = (TipoDocumento) obj;\n\t\tif (codigo == null) {\n\t\t\tif (other.codigo != null)\n\t\t\t\treturn false;\n\t\t} else if (!codigo.equals(other.codigo))\n\t\t\treturn false;\n\t\tif (codigoPais == null) {\n\t\t\tif (other.codigoPais != null)\n\t\t\t\treturn false;\n\t\t} else if (!codigoPais.equals(other.codigoPais))\n\t\t\treturn false;\n\t\tif (estado == null) {\n\t\t\tif (other.estado != null)\n\t\t\t\treturn false;\n\t\t} else if (!estado.equals(other.estado))\n\t\t\treturn false;\n\t\tif (oidTipoDoc == null) {\n\t\t\tif (other.oidTipoDoc != null)\n\t\t\t\treturn false;\n\t\t} else if (!oidTipoDoc.equals(other.oidTipoDoc))\n\t\t\treturn false;\n\t\tif (descripcion == null) {\n\t\t\tif (other.descripcion != null)\n\t\t\t\treturn false;\n\t\t} else if (!descripcion.equals(other.descripcion))\n\t\t\treturn false;\n\t\tif (obligatorio == null) {\n\t\t\tif (other.obligatorio != null)\n\t\t\t\treturn false;\n\t\t} else if (!obligatorio.equals(other.obligatorio))\n\t\t\treturn false;\n\t\tif (siglas == null) {\n\t\t\tif (other.siglas != null)\n\t\t\t\treturn false;\n\t\t} else if (!siglas.equals(other.siglas))\n\t\t\treturn false;\n\t\tif (longitud == null) {\n\t\t\tif (other.longitud != null)\n\t\t\t\treturn false;\n\t\t} else if (!longitud.equals(other.longitud))\n\t\t\treturn false;\n\t\tif (dni == null) {\n\t\t\tif (other.dni != null)\n\t\t\t\treturn false;\n\t\t} else if (!dni.equals(other.dni))\n\t\t\treturn false;\n\t\tif (fiscal == null) {\n\t\t\tif (other.fiscal != null)\n\t\t\t\treturn false;\n\t\t} else if (!fiscal.equals(other.fiscal))\n\t\t\treturn false;\n\t\tif (tipoDocu == null) {\n\t\t\tif (other.tipoDocu != null)\n\t\t\t\treturn false;\n\t\t} else if (!tipoDocu.equals(other.tipoDocu))\n\t\t\treturn false;\n\t\treturn true;\n\n\t}", "private void validarObligaciones(TituloPropiedad pTitulo, Persona pPersonaAnterior, Persona pPersonaNueva) {\n\t\tList<ObligacionRfr> locListaObligacionesParcela = Criterio.getInstance(entityManager, DocHabEspecializadoRfr.class)\n\t\t\t\t.add(Restriccion.IGUAL(\"parcela\", ((TituloPropiedadParcelario) pTitulo).getParcela())).setProyeccion(Proyeccion.PROP(\"obligacion\")).list();\n\t\tif(!locListaObligacionesParcela.isEmpty()) {\n\t\t\t// ID = 0 significa que es una persona temporal, usada en la\n\t\t\t// migración, y no debería generar actualización de deudas,\n\t\t\t// solo cambiar el titular.\n\t\t\t// if (pPersonaAnterior.getIdPersona() == 0) {\n\t\t\tfor(ObligacionRfr cadaObligacion : locListaObligacionesParcela) {\n\t\t\t\tcadaObligacion.setPersona(pPersonaNueva);\n\t\t\t}\n\t\t\t// }\n\t\t}\n\t}", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof SgcAutoevaluacionRef)) {\r\n return false;\r\n }\r\n SgcAutoevaluacionRef other = (SgcAutoevaluacionRef) object;\r\n if ((this.idAutref == null && other.idAutref != null) || (this.idAutref != null && !this.idAutref.equals(other.idAutref))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public static void main(String[] args) {\n\t\tObject[] referencias1 = new Object[5];\n\t\t\n\t\tSystem.out.println(referencias1.length);\n\t\t\n\t\tContaCorrente cc1 = new ContaCorrente(22, 11);\n\t\treferencias1[0] = cc1;\n\t\t\n\t\tContaPoupanca cc2 = new ContaPoupanca(22, 22);\n\t\treferencias1[1] = cc2;\t\n\t\t\n\t\tCliente cliente = new Cliente();\n\t\treferencias1[2] = cliente;\n\t\t\n\t\t//System.out.println(cc2.getNumero());\n\t\t\n//\t\tObject referenciaGenerica = contas[1];\n//\t\t\n//\t\tSystem.out.println( referenciaGenerica.getNumero() );\n\t\t\n\t\tContaPoupanca ref = (ContaPoupanca) referencias1[1];//type cast\n\t\tSystem.out.println(cc2.getNumero());\n\t\tSystem.out.println(ref.getNumero());\n\t\t\n\t}", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Compras)) {\r\n return false;\r\n }\r\n Compras other = (Compras) object;\r\n if ((this.idCompras == null && other.idCompras != null) || (this.idCompras != null && !this.idCompras.equals(other.idCompras))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public Collection<ConsumoHistorico> pesquisarConsumoFaturadoMes(\n\t\t\tString idImovel, int anoMesReferencia)\n\t\t\tthrows ErroRepositorioException;", "public ArrayList<String> Info_Disc_Mus_Compras_usu(String genero, String usuario) {\r\n ArrayList<String> Lista_nombre = Info_Disco_Mus_Rep1(genero);\r\n ArrayList<String> Lista_datos_compras = new ArrayList();\r\n String line;\r\n try (BufferedReader br = new BufferedReader(new FileReader(\"src/Archivos/Compra_Musica.txt\"))) {\r\n while ((line = br.readLine()) != null) {\r\n String[] info_disco_compra = line.split(\";\");\r\n for (int s = 0; s < Lista_nombre.size(); s++) {\r\n if (Lista_nombre.get(s).equals(info_disco_compra[3]) & info_disco_compra[0].equals(usuario)) {\r\n Lista_datos_compras.add(info_disco_compra[3]);\r\n Lista_datos_compras.add(info_disco_compra[5]);\r\n }\r\n }\r\n }\r\n } catch (IOException ex) {\r\n System.out.println(ex);\r\n }\r\n return Lista_datos_compras;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof LaudoIntervencao)) {\r\n return false;\r\n }\r\n LaudoIntervencao other = (LaudoIntervencao) object;\r\n if ((this.laudoIntervencaoId == null && other.laudoIntervencaoId != null) || (this.laudoIntervencaoId != null && !this.laudoIntervencaoId.equals(other.laudoIntervencaoId))) {\r\n return false;\r\n }\r\n return true;\r\n }" ]
[ "0.7091149", "0.61047477", "0.54451805", "0.542602", "0.54226327", "0.5352793", "0.5343877", "0.5341359", "0.52775145", "0.52313715", "0.519092", "0.51696426", "0.5160727", "0.5159831", "0.5133825", "0.51238334", "0.511348", "0.51054424", "0.5091849", "0.50883883", "0.5086397", "0.507664", "0.5075818", "0.5070778", "0.5069736", "0.5064412", "0.5060415", "0.5058078", "0.5058078", "0.5053168", "0.50356156", "0.50239104", "0.5020417", "0.5017543", "0.5013134", "0.5012925", "0.5007753", "0.5007454", "0.5004248", "0.49911672", "0.4989097", "0.4984359", "0.49792835", "0.49762526", "0.49721146", "0.4968288", "0.49650016", "0.49640843", "0.4953554", "0.49529156", "0.4948517", "0.49370834", "0.49269268", "0.49149987", "0.49123725", "0.4909219", "0.4907958", "0.4903217", "0.49006617", "0.48993066", "0.48958123", "0.48846203", "0.48835132", "0.48799077", "0.48759672", "0.48756757", "0.48739067", "0.48676693", "0.48640326", "0.48639157", "0.48599955", "0.48577243", "0.48528782", "0.48497242", "0.4845701", "0.48446998", "0.48437372", "0.48434848", "0.48406172", "0.48314914", "0.48252055", "0.48243597", "0.48218244", "0.48198822", "0.4817008", "0.48143655", "0.48096007", "0.48057273", "0.4805637", "0.48018226", "0.4799959", "0.47978678", "0.47957566", "0.47953448", "0.4789615", "0.47818303", "0.4781738", "0.4776135", "0.47708488", "0.4769701" ]
0.7080521
1
Compara dois objetos no formato anoMesReferencia de acordo com o sinal logico passado.
public static boolean compararAnoMesReferencia(String anoMesReferencia1, String anoMesReferencia2, String sinal) { boolean retorno = true; // Separando os valores de mês e ano para realizar a comparação String mesReferencia1 = String.valueOf(anoMesReferencia1).substring(4, 6); String anoReferencia1 = String.valueOf(anoMesReferencia1).substring(0, 4); String mesReferencia2 = String.valueOf(anoMesReferencia2).substring(4, 6); String anoReferencia2 = String.valueOf(anoMesReferencia2).substring(0, 4); if (sinal.equalsIgnoreCase("=")) { if (!Integer.valueOf(anoReferencia1).equals(Integer.valueOf(anoReferencia2))) { retorno = false; } else if (!Integer.valueOf(mesReferencia1).equals(Integer.valueOf(mesReferencia2))) { retorno = false; } } else if (sinal.equalsIgnoreCase(">")) { if (Integer.valueOf(anoReferencia1).intValue() < Integer.valueOf(anoReferencia2).intValue()) { retorno = false; } else if (Integer.valueOf(anoReferencia1).equals(Integer.valueOf(anoReferencia2)) && Integer.valueOf(mesReferencia1).intValue() <= Integer.valueOf(mesReferencia2).intValue()) { retorno = false; } } else { if (Integer.valueOf(anoReferencia2).intValue() < Integer.valueOf(anoReferencia1).intValue()) { retorno = false; } else if (Integer.valueOf(anoReferencia2).equals(Integer.valueOf(anoReferencia1)) && Integer.valueOf(mesReferencia2).intValue() <= Integer.valueOf(mesReferencia1).intValue()) { retorno = false; } } return retorno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean compararAnoMesReferencia(Integer anoMesReferencia1, Integer anoMesReferencia2, String sinal) {\r\n\t\tboolean retorno = true;\r\n\r\n\t\t// Separando os valores de mês e ano para realizar a comparação\r\n\t\tString mesReferencia1 = String.valueOf(anoMesReferencia1.intValue()).substring(4, 6);\r\n\t\tString anoReferencia1 = String.valueOf(anoMesReferencia1.intValue()).substring(0, 4);\r\n\r\n\t\tString mesReferencia2 = String.valueOf(anoMesReferencia2.intValue()).substring(4, 6);\r\n\t\tString anoReferencia2 = String.valueOf(anoMesReferencia2.intValue()).substring(0, 4);\r\n\r\n\t\tif (sinal.equalsIgnoreCase(\"=\")) {\r\n\t\t\tif (!Integer.valueOf(anoReferencia1).equals(Integer.valueOf(anoReferencia2))) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t} else if (!Integer.valueOf(mesReferencia1).equals(Integer.valueOf(mesReferencia2))) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t}\r\n\t\t} else if (sinal.equalsIgnoreCase(\">\")) {\r\n\t\t\tif (Integer.valueOf(anoReferencia1).intValue() < Integer.valueOf(anoReferencia2).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t} else if (Integer.valueOf(anoReferencia1).equals(Integer.valueOf(anoReferencia2))\r\n\t\t\t\t\t&& Integer.valueOf(mesReferencia1).intValue() <= Integer.valueOf(mesReferencia2).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (Integer.valueOf(anoReferencia2).intValue() < Integer.valueOf(anoReferencia1).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t} else if (Integer.valueOf(anoReferencia2).equals(Integer.valueOf(anoReferencia1))\r\n\t\t\t\t\t&& Integer.valueOf(mesReferencia2).intValue() <= Integer.valueOf(mesReferencia1).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "public boolean validaDataFaturamentoIncompativelInferior(\r\n\t\t\tString anoMesReferencia, String anoMesAnterior) {\r\n\t\tboolean retorno = true;\r\n\r\n\t\tString anoMesReferenciaMenosUmMes = \"\"\r\n\t\t\t\t+ Util.subtrairMesDoAnoMes(new Integer(anoMesReferencia), 2);\r\n\r\n\t\t// Comparando a data anterior faturada no form com o ano\r\n\t\t// mês\r\n\t\t// referência e com o ano mês anterior\r\n\t\tif (!((Util.compararAnoMesReferencia(new Integer(anoMesReferencia),\r\n\t\t\t\tnew Integer(anoMesAnterior), \"=\"))\r\n\t\t\t\t|| (Util.compararAnoMesReferencia(new Integer(\r\n\t\t\t\t\t\tanoMesReferenciaMenosUmMes),\r\n\t\t\t\t\t\tnew Integer(anoMesAnterior), \"=\")) || (Util\r\n\t\t\t\t.compararAnoMesReferencia(new Integer(anoMesReferencia),\r\n\t\t\t\t\t\tnew Integer(Util.somaMesAnoMesReferencia(new Integer(\r\n\t\t\t\t\t\t\t\tanoMesAnterior), 1)), \"=\")))) {\r\n\r\n\t\t\tretorno = false;\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public Set<MReferencia> mReferenciasYaUsadas(Concepto referenciante,Concepto referenciado,List<Referencia> referencias){\r\n\t\tSet<MReferencia> mReferencias=new HashSet<MReferencia>();\r\n\t\tfor (Referencia ref : referencias) {\r\n\t\t\tif( (ref.getReferenciante().equals(referenciante)) &&\r\n\t\t\t\t(ref.getReferenciado().equals(referenciado))) \r\n\t\t\t\t\t{\r\n\t\t\t\tmReferencias.add(ref.getmReferencia());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn mReferencias;\r\n\t}", "public boolean equals(Object obj){\r\n\t\tif (!(obj instanceof ResumoArrecadacaoCreditoHelper)){\r\n\t\t\treturn false;\t\t\t\r\n\t\t} else {\r\n\t\t\tResumoArrecadacaoCreditoHelper resumoTemp = (ResumoArrecadacaoCreditoHelper) obj;\r\n\t\t \r\n\t\t // Verificamos se todas as propriedades que identificam o objeto sao iguais\r\n\t\t\treturn\r\n\t\t\t\tpropriedadesIguais(this.idCreditoOrigem, resumoTemp.idCreditoOrigem) &&\r\n\t\t\t\tpropriedadesIguais(this.idLancamentoItemContabil, resumoTemp.idLancamentoItemContabil);\r\n\t\t}\t\r\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ComprobantesDetalle)) {\n return false;\n }\n ComprobantesDetalle other = (ComprobantesDetalle) object;\n if ((this.identificador == null && other.identificador != null) || (this.identificador != null && !this.identificador.equals(other.identificador))) {\n return false;\n }\n return true;\n }", "public boolean buscar(String referencia){\n Nodo aux = inicio;\r\n // Bandera para indicar si el valor existe.\r\n boolean encontrado = false;\r\n // Recorre la lista hasta encontrar el elemento o hasta \r\n // llegar al final de la lista.\r\n while(aux != null && encontrado != true){\r\n // Consulta si el valor del nodo es igual al de referencia.\r\n if (referencia == aux.getValor()){\r\n // Canbia el valor de la bandera.\r\n encontrado = true;\r\n }\r\n else{\r\n // Avansa al siguiente. nodo.\r\n aux = aux.getSiguiente();\r\n }\r\n }\r\n // Retorna el resultado de la bandera.\r\n return encontrado;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof prDetallePrestamos)) {\r\n return false;\r\n }\r\n prDetallePrestamos other = (prDetallePrestamos) object;\r\n if ((this.idDetPrestamo == null && other.idDetPrestamo != null) || (this.idDetPrestamo != null && !this.idDetPrestamo.equals(other.idDetPrestamo))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean equals(Object object) {\n\t\tif (!(object instanceof EmpleadoReferencia)) {\n\t\t\treturn false;\n\t\t}\n\t\tEmpleadoReferencia other = (EmpleadoReferencia) object;\n\t\tif ((this.referenciaid == null && other.referenciaid != null)\n\t\t\t\t|| (this.referenciaid != null && !this.referenciaid.equals(other.referenciaid))) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "protected boolean equals(URL paramURL1, URL paramURL2) {\n/* 336 */ String str1 = paramURL1.getRef();\n/* 337 */ String str2 = paramURL2.getRef();\n/* 338 */ return ((str1 == str2 || (str1 != null && str1.equals(str2))) && \n/* 339 */ sameFile(paramURL1, paramURL2));\n/* */ }", "private double compararOrientacion(Map<String, Object> anuncio1, Map<String , Object> anuncio2){\n\n Integer idOrientacion1 = anuncio1.containsKey(\"Id Orientacion\") ? ((Double) anuncio1.get(\"Id Orientacion\")).intValue() : null;\n Integer idOrientacion2 = anuncio2.containsKey(\"Id Orientacion\") ? ((Double) anuncio2.get(\"Id Orientacion\")).intValue() : null;\n\n double base = 0;\n boolean continuar = true;\n\n if (idOrientacion1 == null || idOrientacion2 == null){\n base = 1;\n continuar = false;\n }\n\n if (idOrientacion1 == idOrientacion2){\n base = 1;\n continuar = false;\n }\n\n if (continuar){\n int diferencia = Math.abs(idOrientacion1 - idOrientacion2);\n\n if (diferencia == 7){\n diferencia = 1;\n }\n\n base = diferencia == 1 ? 0.5 : 0;\n }\n\n return base * Constantes.PESOS_F1.get(\"Orientacion\");\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof DespesasMeses)) {\n return false;\n }\n DespesasMeses other = (DespesasMeses) object;\n if ((this.idDespesaMes == null && other.idDespesaMes != null) || (this.idDespesaMes != null && !this.idDespesaMes.equals(other.idDespesaMes))) {\n return false;\n }\n return true;\n }", "private void cargarContrarreferencia() {\r\n\t\tif (admision_seleccionada != null\r\n\t\t\t\t&& !admision_seleccionada.getAtendida()) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_CONTRAREFERENCIA,\r\n\t\t\t\t\tIRutas_historia.LABEL_CONTRAREFERENCIA, parametros);\r\n\t\t}\r\n\r\n\t}", "public String guardarsalidatransferencia( List<ListviewGenerico> existencias, List<ListviewGenerico> salidatransferencia, String clavemobil, String observacion){\n\t\tint size = existencias.size();\n\t\tfor (int i = 0; i < size; i++){\n\t\t Double existencia =existencias.get(i).getexistencia();\n\t\t int idmaterial =existencias.get(i).getidmaterial();\n\t\t int idalmacen =existencias.get(i).getidalmacen();\n\t\t updateexistencia(existencia,idmaterial,idalmacen);\t\t \n\t\t}\n\t\t\n\t\tString cadenaimprimir=\"\";\n\t\tsize =salidatransferencia.size();\n\t\tVector vector=new Vector();\n\t\tfor (int i = 0; i < size; i++){\t\t\n\t\t\tint cont=0;\n\t\t\tfor (int j=0; j<vector.size(); j++){\n\t\t\t\tif(vector.elementAt(j).equals(salidatransferencia.get(i).getnombrealmacne()))\n\t\t\t\t\tcont++;\t\n\t\t\t}\n\t\t\tif(cont==0)\n\t\t\t\tvector.add(salidatransferencia.get(i).getnombrealmacne());\t\t\t\n\t\t}\n\t\tcadenaimprimir+=\"SALIDA TRANSFERECIA\\n\";\n\t\tfor (int j=0; j<vector.size(); j++) {\n\t\t\tLog.e(\"obra-concepto\",vector.elementAt(j)+\"\");\t\t\t\n\t\t\tcadenaimprimir+=\"--------------------------------------------\\n\";\n\t\t\tcadenaimprimir+=vector.elementAt(j).toString()+\"\\n\";\n\t\t\tcadenaimprimir+=\"--------------------------------------------\\n\";\n\t\t\tfor (int i = 0; i < size; i++){\n\t\t\t\t\tif(vector.elementAt(j).equals(salidatransferencia.get(i).getnombrealmacne())){\n\t\t\t\t\t\tLog.e(\"concepto\",\" \"+salidatransferencia.get(i).getexistencia()+\" - \"+salidatransferencia.get(i).getunidad()+\"\\n \"+salidatransferencia.get(i).getdescripcion());\n\t\t\t\t\t\tcadenaimprimir+=\" \"+salidatransferencia.get(i).getexistencia()+\" - \"+salidatransferencia.get(i).getunidad()+\"\\n \"+salidatransferencia.get(i).getdescripcion()+\"\\n\";\n\t\t\t\t\t\tif(salidatransferencia.get(i).getidcontratista()>0){\n\t\t\t\t\t\t\tcadenaimprimir+=\" Entregado a: \"+salidatransferencia.get(i).getnombrecontratista()+\"\";\t\n\t\t\t\t\t\t\tLog.e(\"material\",\" \"+salidatransferencia.get(i).getnombrecontratista());\n\t\t\t\t\t\t\tif(salidatransferencia.get(i).getconcargo()>0){\n\t\t\t\t\t\t\t\tcadenaimprimir+=\"(Con cargo)\\n\";\n\t\t\t\t\t\t\t\tLog.e(\"material\",\" -> Con cargo\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tcadenaimprimir+=\"\\n\\nObservaciones: \"+observacion;\n\t\t\n\t\tfor (int i = 0; i < size; i++){\n\t\t\t Double existencia =salidatransferencia.get(i).getexistencia();\n\t\t\t int idmaterial =salidatransferencia.get(i).getidmaterial();\n\t\t\t int idalmacen =salidatransferencia.get(i).getidalmacen();\n\t\t\t String unidad=salidatransferencia.get(i).getunidad();\t\n\t\t\t int idcontratista=salidatransferencia.get(i).getidcontratista();\t\n\t\t\t int concargo=salidatransferencia.get(i).getconcargo();\n\t\t\t \n\t\t\t salidatrasferenciapartidas(existencia, idmaterial, unidad, idalmacen, clavemobil, idcontratista, concargo);\n\t\t}\n\t\treturn cadenaimprimir;\n\t\t\n\t}", "public int validarMesAnoReferencia(SituacaoEspecialFaturamentoHelper situacaoEspecialFaturamentoHelper)\r\n\t\t\tthrows ControladorException {\r\n\t\ttry {\r\n\t\t\treturn this.repositorioImovel.validarMesAnoReferencia(situacaoEspecialFaturamentoHelper);\r\n\t\t} catch (ErroRepositorioException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\tthrow new ControladorException(\"erro.sistema\", ex);\r\n\t\t}\r\n\t}", "private boolean compararFechasConDate(String fechaMenor, String fecha2, String fechaComparar) {\n try {\n /**\n * Obtenemos las fechas enviadas en el formato a comparar\n */\n SimpleDateFormat formateador = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date fechaDateMenor = formateador.parse(fechaMenor);\n Date fechaDateMayor = formateador.parse(fecha2);\n Date fechaDateComparar = formateador.parse(fechaComparar);\n if (fechaDateMenor.before(fechaDateComparar) && fechaDateComparar.before(fechaDateMayor)) {\n return true;\n } else {\n return false;\n }\n } catch (ParseException e) {\n System.out.println(\"Se Produjo un Error!!! \" + e.getMessage());\n return false;\n }\n }", "public boolean hasEqualMapping(ViewDetallesPagos valueObject) {\r\n\r\n if (valueObject.getIDCUENTACONTABLE() != this.IDCUENTACONTABLE) {\r\n return(false);\r\n }\r\n if (this.DECOMPARENDO == null) {\r\n if (valueObject.getDECOMPARENDO() != null)\r\n return(false);\r\n } else if (!this.DECOMPARENDO.equals(valueObject.getDECOMPARENDO())) {\r\n return(false);\r\n }\r\n if (this.CODIGOCUENTA == null) {\r\n if (valueObject.getCODIGOCUENTA() != null)\r\n return(false);\r\n } else if (!this.CODIGOCUENTA.equals(valueObject.getCODIGOCUENTA())) {\r\n return(false);\r\n }\r\n if (this.NOMBRECUENTA == null) {\r\n if (valueObject.getNOMBRECUENTA() != null)\r\n return(false);\r\n } else if (!this.NOMBRECUENTA.equals(valueObject.getNOMBRECUENTA())) {\r\n return(false);\r\n }\r\n if (valueObject.getVIGENCIAINICIAL() != this.VIGENCIAINICIAL) {\r\n return(false);\r\n }\r\n if (valueObject.getVIGENCIAFINAL() != this.VIGENCIAFINAL) {\r\n return(false);\r\n }\r\n if (this.FILTROPORFECHAS == null) {\r\n if (valueObject.getFILTROPORFECHAS() != null)\r\n return(false);\r\n } else if (!this.FILTROPORFECHAS.equals(valueObject.getFILTROPORFECHAS())) {\r\n return(false);\r\n }\r\n if (valueObject.getIDTARIFA() != this.IDTARIFA) {\r\n return(false);\r\n }\r\n if (valueObject.getIDCONCEPTO() != this.IDCONCEPTO) {\r\n return(false);\r\n }\r\n if (this.NOMBRECONCEPTO == null) {\r\n if (valueObject.getNOMBRECONCEPTO() != null)\r\n return(false);\r\n } else if (!this.NOMBRECONCEPTO.equals(valueObject.getNOMBRECONCEPTO())) {\r\n return(false);\r\n }\r\n if (valueObject.getIDITEM() != this.IDITEM) {\r\n return(false);\r\n }\r\n if (valueObject.getVALORPAGO() != this.VALORPAGO) {\r\n return(false);\r\n }\r\n if (this.FECHAPAGO == null) {\r\n if (valueObject.getFECHAPAGO() != null)\r\n return(false);\r\n } else if (!this.FECHAPAGO.equals(valueObject.getFECHAPAGO())) {\r\n return(false);\r\n }\r\n if (valueObject.getVIGENCIA() != this.VIGENCIA) {\r\n return(false);\r\n }\r\n\r\n return true;\r\n }", "private boolean existeMatrizReferencial(ConcursoPuestoAgr concursoPuestoAgr) {\r\n\t\tString query =\r\n\t\t\t\" SELECT * FROM seleccion.matriz_ref_conf \" + \" where id_concurso_puesto_agr = \"\r\n\t\t\t\t+ concursoPuestoAgr.getIdConcursoPuestoAgr() + \" and tipo = 'GRUPO' \";\r\n\t\treturn seleccionUtilFormController.existeNative(query);\r\n\t}", "private void verificaUnicitaAccertamento() {\n\t\t\n\t\t//chiamo il servizio ricerca accertamento per chiave\n\t\tRicercaAccertamentoPerChiave request = model.creaRequestRicercaAccertamento();\n\t\tRicercaAccertamentoPerChiaveResponse response = movimentoGestioneService.ricercaAccertamentoPerChiave(request);\n\t\tlogServiceResponse(response);\n\t\t// Controllo gli errori\n\t\tif(response.hasErrori()) {\n\t\t\t//si sono verificati degli errori: esco.\n\t\t\taddErrori(response);\n\t\t} else {\n\t\t\t//non si sono verificatui errori, ma devo comunque controllare di aver trovato un accertamento su db\n\t\t\tcheckCondition(response.getAccertamento() != null, ErroreCore.ENTITA_NON_TROVATA.getErrore(\"Movimento Anno e numero\", \"L'impegno indicato\"));\n\t\t\tmodel.setAccertamento(response.getAccertamento());\n\t\t}\n\t}", "@Override\n public boolean equals(Object obj) {\n if (obj instanceof Pasajero) {\n final Pasajero pasajero = (Pasajero) obj;\n return identificacion.equals(pasajero.getIdentificacion());\n } else {\n return false;\n }\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof HistoriaClinicaMedicamentos)) {\n return false;\n }\n HistoriaClinicaMedicamentos other = (HistoriaClinicaMedicamentos) object;\n if ((this.idHistoriaClinicaMedicamentos == null && other.idHistoriaClinicaMedicamentos != null) || (this.idHistoriaClinicaMedicamentos != null && !this.idHistoriaClinicaMedicamentos.equals(other.idHistoriaClinicaMedicamentos))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof LetrasPagoCanje)) {\n return false;\n }\n LetrasPagoCanje other = (LetrasPagoCanje) object;\n if ((this.idLetrasPagoCanje == null && other.idLetrasPagoCanje != null) || (this.idLetrasPagoCanje != null && !this.idLetrasPagoCanje.equals(other.idLetrasPagoCanje))) {\n return false;\n }\n return true;\n }", "public Object[] pesquisarArquivoTextoRoteiroEmpresa(Integer idRota, Integer anoMesReferencia)\n\t\t\tthrows ErroRepositorioException ;", "public RecordSet obtieneActividadReferencia (Long act, Long idioma) throws MareException {\n UtilidadesLog.info(\"DAOMatrizDias.obtieneActividadReferencia (Long act, Long idioma):Entrada\");\n StringBuffer query = new StringBuffer();\n\n query.append(\" SELECT \");\n query.append(\" actividad.oid_acti as oid, \");\n query.append(\" actividad.cact_oid_acti as origen, \");\n query.append(\" actividad.num_dias_desp as dias, \");\n query.append(\" IActi.VAL_I18N as textoActividad, \");\n query.append(\" actividad.cod_acti as codigoActividad, \");\n /*inicio enozigli 16/11/2007 COL-CRA-001*/\n query.append(\" actividad.clac_oid_clas_acti as claseActividad, \"); \n query.append(\" DECODE (actividad.cod_tipo_acti, \");\n query.append(\" 0, 'Fija', \");\n query.append(\" DECODE (actividad.cod_tipo_acti, \");\n query.append(\" 1, 'con Origen', \");\n query.append(\" 'Ref. Otra Camp.' \");\n query.append(\" ) \");\n query.append(\" ) AS desc_tipo, \");\n query.append(\" actividad.NUM_CAMP_REFE as camp_despla, \");\n query.append(\" (select iactiorig.VAL_I18N \");\n query.append(\" from cra_activ origen, v_gen_i18n_sicc iactiorig \");\n query.append(\" where origen.OID_ACTI = actividad.CACT_OID_ACTI \");\n query.append(\" AND iactiorig.attr_enti = 'CRA_ACTIV' \");\n query.append(\" AND iactiorig.idio_oid_idio = \"+idioma+\" \");\n query.append(\" AND iactiorig.val_oid = origen.oid_acti \");\n query.append(\" AND iactiorig.attr_num_atri = 1) as actividadorigen \");\n /*fin enozigli 16/11/2007 COL-CRA-001*/\n query.append(\" FROM cra_activ actividad, v_gen_i18n_sicc IActi \");\n query.append(\" WHERE actividad.oid_acti = \"+act+ \" \");\n query.append(\" AND IActi.attr_enti = 'CRA_ACTIV' \");\n query.append(\" AND IActi.idio_oid_idio = \"+idioma+\" \");\n query.append(\" AND IActi.val_oid = actividad.OID_ACTI \");\n query.append(\" AND IActi.attr_num_atri = 1 \");\n\n RecordSet rs = new RecordSet();\n\n try {\n rs = (RecordSet) getBelcorpService().dbService.executeStaticQuery(query.toString());\n } catch (MareException me) {\n UtilidadesLog.error(me);\n throw me;\n } catch (Exception e) {\n UtilidadesLog.error(e); \n throw new MareException(e,UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n UtilidadesLog.info(\"DAOMatrizDias.obtieneActividadReferencia (Long act, Long idioma):Salida\");\n return rs;\n \n }", "public void testEqualsObject() {\n\t\t\tTipoNodoLeisure tipo1 = new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.0\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo2= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.1\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo3= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.2\")); //$NON-NLS-1$\n\t\t\tif (tipo1 != tipo1)\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.3\")); //$NON-NLS-1$\n\t\t\tif (!tipo1.equals(tipo2))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.4\"));\t\t\t //$NON-NLS-1$\n\t\t\tif (tipo1.equals(tipo3))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.5\"));\t //$NON-NLS-1$\n\t\t}", "public Cliente[] findWhereReferenciaEquals(String referencia) throws ClienteDaoException;", "@Override\n public boolean equals(Object obj) {\n PlanningSalle plaS;\n if (obj ==null || obj.getClass()!=this.getClass()){\n return false;\n }\n\n else {\n plaS =(PlanningSalle)obj;\n if(\n plaS.getDateDebutR().equals(getDateDebutR()) //vu que type primitif == pas equals\n & plaS.getDateFinR().equals(getDateFinR())) { \n {\n return true;\n }\n }\n\n else {\n return false;\n }\n }\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Campeonatos)) {\r\n return false;\r\n }\r\n Campeonatos other = (Campeonatos) object;\r\n if ((this.idcampeonato == null && other.idcampeonato != null) || (this.idcampeonato != null && !this.idcampeonato.equals(other.idcampeonato))) {\r\n return false;\r\n }\r\n return true;\r\n }", "private boolean compararFechaActualCon(String fecha_obtenida) {\n boolean fecha_valida = false;\n\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n Date date = new Date();\n String fecha_actual = dateFormat.format(date);\n\n try {\n Date date2 = dateFormat.parse(fecha_obtenida);\n Date date1 = dateFormat.parse(fecha_actual);\n\n Log.i(\"COMPARANDO FECHAS\", \"F_ACTUAL: \" + date1 + \", F_OBTENIDA: \" + date2);\n\n if (date2.after(date1) ) {\n fecha_valida = true;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: TRUE\");\n } else {\n fecha_valida = false;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: FALSE\");\n\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return fecha_valida;\n }", "private boolean compararFechaActualCon(String fecha_obtenida) {\n boolean fecha_valida = false;\n\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n Date date = new Date();\n String fecha_actual = dateFormat.format(date);\n\n try {\n Date date2 = dateFormat.parse(fecha_obtenida);\n Date date1 = dateFormat.parse(fecha_actual);\n\n Log.i(\"COMPARANDO FECHAS\", \"F_ACTUAL: \" + date1 + \", F_OBTENIDA: \" + date2);\n\n if (date2.after(date1) ) {\n fecha_valida = true;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: TRUE\");\n } else {\n fecha_valida = false;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: FALSE\");\n\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return fecha_valida;\n }", "public List<DadosDiariosVO> validaSelecionaAcumuladoDadosDiarios(String ano) {\n\n\t\tList<DadosDiariosVO> listaDadosDiarios = validaSelecionaDetalhesDadosDiarios(ano);\n\n\t\tList<DadosDiariosVO> listaFiltradaDadosDiarios = new ArrayList<DadosDiariosVO>();\n\t\tList<DadosDiariosVO> listaFaturamentoDiario = new ArrayList<DadosDiariosVO>();\n\t\tList<DadosDiariosVO> listaFaturamentoAcumulado = new ArrayList<DadosDiariosVO>();\n\n\t\t/* Ordena a lista em EMITIDOS;EMITIDOS CANCELADOS;EMITIDOS RESTITUIDOS */\n\n\t\tfor (int i = 0; i < listaDadosDiarios.size(); i++) {\n\t\t\tString dataParaComparacao = listaDadosDiarios.get(i).getAnoMesDia();\n\n\t\t\tfor (int j = 0; j < listaDadosDiarios.size(); j++) {\n\n\t\t\t\tif (dataParaComparacao.equals(listaDadosDiarios.get(j).getAnoMesDia())) {\n\t\t\t\t\tDadosDiariosVO dados = new DadosDiariosVO();\n\t\t\t\t\tdados.setAnoMesDia(listaDadosDiarios.get(j).getAnoMesDia());\n\t\t\t\t\tdados.setProduto(listaDadosDiarios.get(j).getProduto());\n\t\t\t\t\tdados.setTipo(listaDadosDiarios.get(j).getTipo());\n\t\t\t\t\tdados.setValorDoDia(listaDadosDiarios.get(j).getValorDoDia());\n\n\t\t\t\t\tlistaFiltradaDadosDiarios.add(dados);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\touter: for (int i = listaFiltradaDadosDiarios.size() - 1; i >= 0; i--) {\n\t\t\tfor (int j = 0; j < listaFiltradaDadosDiarios.size(); j++) {\n\t\t\t\tif (listaFiltradaDadosDiarios.get(i).getAnoMesDia()\n\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getAnoMesDia())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getProduto()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getProduto())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getTipo()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getTipo())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getValorDoDia()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getValorDoDia())) {\n\t\t\t\t\tif (i != j) {\n\n\t\t\t\t\t\tlistaFiltradaDadosDiarios.remove(i);\n\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* Ordena por data */\n\t\tCollections.sort(listaFiltradaDadosDiarios, DadosDiariosVO.anoMesDiaCoparator);\n\n\t\tString dataTemp = \"\";\n\t\tBigDecimal somaAcumulada = new BigDecimal(\"0.0\");\n\n\t\t/* abaixo a visao da faturamento de cada dia */\n\t\tDadosDiariosVO faturamentoDiario = new DadosDiariosVO();\n\n\t\ttry {\n\n\t\t\tfor (int i = 0; i <= listaFiltradaDadosDiarios.size(); i++) {\n\n\t\t\t\tif (i == 0) {\n\t\t\t\t\tdataTemp = listaFiltradaDadosDiarios.get(i).getAnoMesDia();\n\n\t\t\t\t\tfaturamentoDiario.setAnoMesDia(listaFiltradaDadosDiarios.get(i).getAnoMesDia());\n\t\t\t\t\tfaturamentoDiario.setProduto(listaFiltradaDadosDiarios.get(i).getProduto());\n\t\t\t\t\tfaturamentoDiario.setTipo(\"FATURAMENTO\");\n\t\t\t\t}\n\n\t\t\t\tif ((i != listaFiltradaDadosDiarios.size())\n\t\t\t\t\t\t&& dataTemp.equals(listaFiltradaDadosDiarios.get(i).getAnoMesDia())) {\n\n\t\t\t\t\tsomaAcumulada = new BigDecimal(listaFiltradaDadosDiarios.get(i).getValorDoDia()).add(somaAcumulada);\n\n\t\t\t\t} else {\n\t\t\t\t\tif (listaFiltradaDadosDiarios.size() == i) {\n\t\t\t\t\t\tfaturamentoDiario.setValorDoDia(somaAcumulada.toString());\n\t\t\t\t\t\tlistaFaturamentoDiario.add(faturamentoDiario);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfaturamentoDiario.setValorDoDia(somaAcumulada.toString());\n\t\t\t\t\t\tlistaFaturamentoDiario.add(faturamentoDiario);\n\t\t\t\t\t}\n\n\t\t\t\t\tdataTemp = listaFiltradaDadosDiarios.get(i).getAnoMesDia();\n\t\t\t\t\tsomaAcumulada = new BigDecimal(listaFiltradaDadosDiarios.get(i).getValorDoDia());\n\n\t\t\t\t\tfaturamentoDiario = new DadosDiariosVO();\n\t\t\t\t\tfaturamentoDiario.setAnoMesDia(listaFiltradaDadosDiarios.get(i).getAnoMesDia());\n\t\t\t\t\tfaturamentoDiario.setProduto(listaFiltradaDadosDiarios.get(i).getProduto());\n\t\t\t\t\tfaturamentoDiario.setTipo(\"FATURAMENTO\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IndexOutOfBoundsException ioobe) {\n\t\t\tSystem.err.println(\n\t\t\t\t\t\"VisãoExecutiva_Diaria_BO - método validaSelecionaAcumuladoDadosDiarios - adicionando dados fictícios...\");\n\t\t\tDadosDiariosVO dados = new DadosDiariosVO();\n\t\t\tdados.setAnoMesDia(\"2015-10-02\");\n\t\t\tdados.setProduto(\"TESTE\");\n\t\t\tdados.setTipo(\"FATURAMENTO\");\n\t\t\tdados.setValorDoDia(\"0.0\");\n\t\t\tlistaFaturamentoDiario.add(dados);\n\t\t\tSystem.err.println(\"... dados inseridos\");\n\t\t}\n\n\t\t/* abaixo construimos a visao acumulada */\n\t\tBigDecimal somaAnterior = new BigDecimal(\"0.0\");\n\t\tint quantidadeDias = 0;\n\t\tfor (int i = 0; i < listaFaturamentoDiario.size(); i++) {\n\n\t\t\tDadosDiariosVO faturamentoDiarioAcumulado = new DadosDiariosVO();\n\t\t\tif (i == 0) {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoDiario.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoDiario.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(listaFaturamentoDiario.get(i).getTipo());\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(listaFaturamentoDiario.get(i).getValorDoDia());\n\n\t\t\t\tsomaAnterior = somaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia()));\n\t\t\t\tquantidadeDias++;\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\n\t\t\t} else {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoDiario.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoDiario.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(listaFaturamentoDiario.get(i).getTipo());\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(\n\t\t\t\t\t\tsomaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia())).toString());\n\n\t\t\t\tsomaAnterior = somaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia()));\n\t\t\t\tquantidadeDias++;\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\t\t\t}\n\t\t}\n\n\t\tUteis uteis = new Uteis();\n\t\tString dataAtualSistema = new SimpleDateFormat(\"dd/MM/yyyy\").format(new Date(System.currentTimeMillis()));\n\t\tString dataCut[] = dataAtualSistema.split(\"/\");\n\t\tString mes_SO;\n\t\tmes_SO = dataCut[1];\n\n\t\t/* BP */\n\t\tList<FaturamentoVO> listaBP = dadosFaturamentoDetalhado;\n\t\tint mes_SO_int = Integer.parseInt(mes_SO);\n\t\tString bpMes = listaBP.get(0).getMeses()[mes_SO_int - 1];\n\t\tint diasUteis = uteis.retornaDiasUteisMes(mes_SO_int - 1);\n\t\tBigDecimal bpPorDia = new BigDecimal(bpMes).divide(new BigDecimal(diasUteis), 6, RoundingMode.HALF_DOWN);\n\n\t\tBigDecimal somaAnteriorBp = new BigDecimal(\"0.0\");\n\t\tfor (int i = 0; i < quantidadeDias; i++) {\n\t\t\tDadosDiariosVO faturamentoDiarioAcumulado = new DadosDiariosVO();\n\t\t\tif (i == 0) {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoAcumulado.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoAcumulado.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(\"BP\");\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(bpPorDia.toString());\n\n\t\t\t\tsomaAnteriorBp = somaAnteriorBp.add(bpPorDia);\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\n\t\t\t} else {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoAcumulado.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoAcumulado.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(\"BP\");\n\n\t\t\t\tsomaAnteriorBp = somaAnteriorBp.add(bpPorDia);\n\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(somaAnteriorBp.toString());\n\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\t\t\t}\n\t\t}\n\n\t\treturn listaFaturamentoAcumulado;\n\t}", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Asignatura)) {\r\n return false;\r\n }\r\n Asignatura other = (Asignatura) object;\r\n if ((this.asignaturaID == null && other.asignaturaID != null) || (this.asignaturaID != null && !this.asignaturaID.equals(other.asignaturaID))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n protected boolean doEquals(Object obj) {\n if (obj instanceof BsAccessResultDiff) {\n BsAccessResultDiff other = (BsAccessResultDiff)obj;\n if (!xSV(_id, other._id)) { return false; }\n if (!xSV(_sessionId, other._sessionId)) { return false; }\n if (!xSV(_ruleId, other._ruleId)) { return false; }\n if (!xSV(_url, other._url)) { return false; }\n if (!xSV(_parentUrl, other._parentUrl)) { return false; }\n if (!xSV(_status, other._status)) { return false; }\n if (!xSV(_httpStatusCode, other._httpStatusCode)) { return false; }\n if (!xSV(_method, other._method)) { return false; }\n if (!xSV(_mimeType, other._mimeType)) { return false; }\n if (!xSV(_contentLength, other._contentLength)) { return false; }\n if (!xSV(_executionTime, other._executionTime)) { return false; }\n if (!xSV(_createTime, other._createTime)) { return false; }\n return true;\n } else {\n return false;\n }\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof InformeBatallahasRecursoPK)) {\n return false;\n }\n InformeBatallahasRecursoPK other = (InformeBatallahasRecursoPK) object;\n if (this.informeBatallaidBatalla != other.informeBatallaidBatalla) {\n return false;\n }\n if ((this.recursoname == null && other.recursoname != null) || (this.recursoname != null && !this.recursoname.equals(other.recursoname))) {\n return false;\n }\n if ((this.recursoInstalacionname == null && other.recursoInstalacionname != null) || (this.recursoInstalacionname != null && !this.recursoInstalacionname.equals(other.recursoInstalacionname))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Comprobanteislref)) {\r\n return false;\r\n }\r\n Comprobanteislref other = (Comprobanteislref) object;\r\n if ((this.idcomprobanteislref == null && other.idcomprobanteislref != null) || (this.idcomprobanteislref != null && !this.idcomprobanteislref.equals(other.idcomprobanteislref))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean equals(Object objetox) {\n\t\t//con el instanceof nos permite averiguar si el objeto pasado por parametro es una instancia de \n\t\t//la clase Cliente.\n\t\tif(objetox instanceof Cliente) {\n\t\t\tCliente aComparar = (Cliente)objetox;\n\t\t\tif(this.saldo == aComparar.saldo) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private boolean haveTwoObjsSameFields(Class classObjects, Object obj1, Object obj2, ArrayList<String> fieldsToExcludeFromCompare) {\n log.info(\"TEST: comparing two objects of class \"+classObjects.getName());\n if (obj1.getClass() != obj2.getClass()) {\n log.error(\"TEST: The two objects are instances of different classes, thus different\");\n return false;\n }\n\n try {\n PropertyDescriptor[] pds= Introspector.getBeanInfo(classObjects).getPropertyDescriptors();\n for(PropertyDescriptor pd: pds) {\n log.info(pd.getDisplayName());\n String methodName=pd.getReadMethod().getName();\n String fieldName = methodName.substring(3, methodName.length());\n\n if(fieldsToExcludeFromCompare.contains(fieldName)==true) {\n continue;\n }\n\n boolean areEqual=false;\n try {\n Object objReturned1 = pd.getReadMethod().invoke(obj1);\n Object objReturned2 =pd.getReadMethod().invoke(obj2);\n if(objReturned1!=null && objReturned2!=null) {\n areEqual=objReturned1.equals(objReturned2);\n if(objReturned1 instanceof List<?> && ((List) objReturned1).size()>0 && ((List) objReturned1).size()>0 && ((List) objReturned1).get(0) instanceof String) {\n String str1=String.valueOf(objReturned1);\n String str2=String.valueOf(objReturned2);\n areEqual=str1.equals(str2);\n\n }\n }\n else if(objReturned1==null && objReturned2==null) {\n log.info(\"TEST: Field with name \"+fieldName+\" null in both objects.\");\n areEqual=true;\n }\n else {\n //log.info(\"One of two objects is null\");\n //log.info(\"{}\",objReturned1);\n //log.info(\"{}\",objReturned2);\n }\n if(areEqual==false) {\n log.info(\"TEST: field with name \"+fieldName+\" has different values in objects. \");\n return false;\n }\n else{\n log.info(\"TEST: field with name \"+fieldName+\" has same value in both objects. \");\n }\n } catch (IllegalAccessException e) {\n\n e.printStackTrace();\n return false;\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n return false;\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n return false;\n }\n }\n } catch (IntrospectionException e) {\n e.printStackTrace();\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Recibos)) {\n return false;\n }\n Recibos other = (Recibos) object;\n if ((this.codRecibo == null && other.codRecibo != null) || (this.codRecibo != null && !this.codRecibo.equals(other.codRecibo))) {\n return false;\n }\n return true;\n }", "public Integer obterQuantidadeMovimentoRoteiroPorGrupoAnoMes(Integer idFaturamentoGrupo, Integer anoMesReferencia)\n\t\t\t\t\tthrows ErroRepositorioException;", "private boolean propriedadesIguais( Integer pro1, Integer pro2 ){\r\n\t if ( pro2 != null ){\r\n\t\t if ( !pro2.equals( pro1 ) ){\r\n\t\t\t return false;\r\n\t\t }\r\n\t } else if ( pro1 != null ){\r\n\t\t return false;\r\n\t }\r\n\t \r\n\t // Se chegou ate aqui quer dizer que as propriedades sao iguais\r\n\t return true;\r\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Mes)) {\n return false;\n }\n Mes other = (Mes) object;\n if ((super.id == null && other.id != null) || (super.id != null && !super.id.equals(super.id))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof DetalhesCrediario)) {\r\n return false;\r\n }\r\n DetalhesCrediario other = (DetalhesCrediario) object;\r\n if ((this.idDetalhesCrediario == null && other.idDetalhesCrediario != null) || (this.idDetalhesCrediario != null && !this.idDetalhesCrediario.equals(other.idDetalhesCrediario))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof DetalleCompras)) {\r\n return false;\r\n }\r\n DetalleCompras other = (DetalleCompras) object;\r\n if ((this.detalleComprasPK == null && other.detalleComprasPK != null) || (this.detalleComprasPK != null && !this.detalleComprasPK.equals(other.detalleComprasPK))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof FacturaDetallada)) {\r\n return false;\r\n }\r\n FacturaDetallada other = (FacturaDetallada) object;\r\n if ((this.nFactura == null && other.nFactura != null) || (this.nFactura != null && !this.nFactura.equals(other.nFactura))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Docentetrabajoanterior)) {\r\n return false;\r\n }\r\n Docentetrabajoanterior other = (Docentetrabajoanterior) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Miembro)) {\r\n return false;\r\n }\r\n Miembro other = (Miembro) object;\r\n if ((this.dni == null && other.dni != null) || (this.dni != null && !this.dni.equals(other.dni))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Datosestudiosmedicos)) {\n return false;\n }\n Datosestudiosmedicos other = (Datosestudiosmedicos) object;\n if ((this.idDatosEstudiosMedicos == null && other.idDatosEstudiosMedicos != null) || (this.idDatosEstudiosMedicos != null && !this.idDatosEstudiosMedicos.equals(other.idDatosEstudiosMedicos))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof DisponibilidadResultadosPK)) {\n return false;\n }\n DisponibilidadResultadosPK other = (DisponibilidadResultadosPK) object;\n if ((this.anio == null && other.anio != null) || (this.anio != null && !this.anio.equals(other.anio))) {\n return false;\n }\n if ((this.codigoResultado == null && other.codigoResultado != null) || (this.codigoResultado != null && !this.codigoResultado.equals(other.codigoResultado))) {\n return false;\n }\n if ((this.codigoCompetencia == null && other.codigoCompetencia != null) || (this.codigoCompetencia != null && !this.codigoCompetencia.equals(other.codigoCompetencia))) {\n return false;\n }\n if ((this.progamaCodigo == null && other.progamaCodigo != null) || (this.progamaCodigo != null && !this.progamaCodigo.equals(other.progamaCodigo))) {\n return false;\n }\n if ((this.programaVersion == null && other.programaVersion != null) || (this.programaVersion != null && !this.programaVersion.equals(other.programaVersion))) {\n return false;\n }\n if ((this.tipoDocumento == null && other.tipoDocumento != null) || (this.tipoDocumento != null && !this.tipoDocumento.equals(other.tipoDocumento))) {\n return false;\n }\n if ((this.numeroDocumento == null && other.numeroDocumento != null) || (this.numeroDocumento != null && !this.numeroDocumento.equals(other.numeroDocumento))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Importador)) {\r\n return false;\r\n }\r\n Importador other = (Importador) object;\r\n if ((this.codigo == null && other.codigo != null) || (this.codigo != null && !this.codigo.equals(other.codigo))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean equals(MacchinaStatiFiniti altra)\r\n\t{\r\n\t\t//consideraimo le macchine uguali se hanno lo stesso nome.\r\n\t\tif (altra==null)\r\n\t\t\treturn false;\r\n\t\telse \r\n\t\t\treturn altra.getNome().equals(this.nome);\r\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof TblServiciosEnfermeria)) {\n return false;\n }\n TblServiciosEnfermeria other = (TblServiciosEnfermeria) object;\n if ((this.numSerEnfermeria == null && other.numSerEnfermeria != null) || (this.numSerEnfermeria != null && !this.numSerEnfermeria.equals(other.numSerEnfermeria))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Vehiculo)) {\n return false;\n }\n Vehiculo other = (Vehiculo) object;\n if ((this.matricula == null && other.matricula != null) || (this.matricula != null && !this.matricula.equals(other.matricula))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n final Libro other = (Libro) obj;\n if (this.descargable != other.descargable) {\n return false;\n }\n if (!Objects.equals(this.titulo, other.titulo)) {\n return false;\n }\n if (!Objects.equals(this.autor, other.autor)) {\n return false;\n }\n if (!Objects.equals(this.editorial, other.editorial)) {\n return false;\n }\n if (!Objects.equals(this.genero, other.genero)) {\n return false;\n }\n if (!Objects.equals(this.linkDescarga, other.linkDescarga)) {\n return false;\n }\n if (!Objects.equals(this.idLibro, other.idLibro)) {\n return false;\n }\n if (!Objects.equals(this.isbn, other.isbn)) {\n return false;\n }\n if (!Objects.equals(this.cantidadTotal, other.cantidadTotal)) {\n return false;\n }\n if (!Objects.equals(this.cantidadDisponible, other.cantidadDisponible)) {\n return false;\n }\n if (!Objects.equals(this.bibliotecario, other.bibliotecario)) {\n return false;\n }\n return true;\n }", "@Override\r\n\tpublic String toString() {\r\n\t\tString _infoReferencia = String.format(\"INFORMACIÓN DE REFERENCIA:\\n--------------------------------------\\n\"\r\n\t\t\t\t\t\t\t\t\t\t\t + \"Código de referencias: %s\\n\", this._codigoReferencia);\r\n\t\t\r\n\t\treturn _infoReferencia + super.toString();\r\n\t}", "void compareExposantHex(int exposant, String mantisse) {\n \t\tif(exposant < -126) {\n \t\t\tthrow new InvalidFloatSmall(this,getInputStream());\n \t\t}\n \t\t// si l'exposant == 126 OK\n \t\t//if(exposant == -126) { \n \t\t//\tcompareMantisseMinHex(mantisse);\n \t\t//}\n\n \t\tif (exposant == 127) {\n \t\t\tcompareMantisseMaxHex(mantisse);\n \t\t}\n\n \t\tif (exposant >127) {\n \t\t\tthrow new InvalidFloatBig(this,getInputStream());\n \t\t}\n\n \t}", "private void validarhorarioconotroshorariosactivos(HorarioAsignado horarioasignado, List<HorarioAsignado> horarios) throws LogicaException, ParseException, DatoException {\nGregorianCalendar startasignado=new GregorianCalendar();\nDate startdateasignado= new Date(horarioasignado.getValidezinicio().getTime());\nstartasignado.setTime(startdateasignado);\nGregorianCalendar endasignado=new GregorianCalendar();\nDate enddateasignado= new Date(horarioasignado.getValidezfin().getTime());\nendasignado.setTime(enddateasignado);\n\nint tempfrecasignado = horarioasignado.getHorario().getIdfrecuenciaasignacion().intValue();\nList<Integer> diadelasemanaasignado = diadelasemana(tempfrecasignado);\nList<HashMap<String, Object>> dataasignado = Util.diferenciaEnDiasconFrecuencia(startasignado, endasignado,diadelasemanaasignado,tempfrecasignado);\n\n\n\n\nfor(HorarioAsignado ho:horarios){\n\t\t\tif(ho.getIdhorarioasignado().equals(horarioasignado.getIdhorarioasignado())){\n\t\t\t\n\t\t\t}else{\n\t\t\tif(ho.getIdhorario()==horarioasignado.getIdhorario()){\n\t\t\t\n\t\t\t/*//cedulasconhorarios.add(em);\n\t\t\tif (horarioasignado.getValidezinicio().after(ho.getValidezinicio()) && horarioasignado.getValidezinicio().before(ho.getValidezfin())){\n\t\t\tthrow new LogicaException(\"este contrato ya tiene asociado ese horario\"\n\t\t\t+ \" entre las fechas \"+ho.getValidezinicio()+\" y \"+ ho.getValidezfin());\n\t\t\t\n\t\t\t}*/\n\t\t\t\n\t\t\t}else{\n\t\t\t\n\t\t\t}\n\n\t\tContrato contrato = contratoEJB.getContratosporId(ho.getIdcontrato());\n\t\tEmpleadoBean empleado = empleadoEJB.buscarEmpleadosporId(contrato.getIdempleado());\t\n\tGregorianCalendar start=new GregorianCalendar();\n\tDate startdate= new Date(ho.getValidezinicio().getTime());\n\tstart.setTime(startdate);\n\tGregorianCalendar end=new GregorianCalendar();\n\tDate enddate= new Date(ho.getValidezfin().getTime());\n\tend.setTime(enddate);\n\t\n\tint tempfrec = ho.getHorario().getIdfrecuenciaasignacion().intValue();\n\tList<Integer> diadelasemana = diadelasemana(tempfrec);\n\tList<HashMap<String, Object>> data = Util.diferenciaEnDiasconFrecuencia(start, end,diadelasemana,tempfrec);\n\t\n\t\t\t\t\tfor(HashMap<String, Object> diadehorario:data){\n\t\t\t\tHashMap<String, Object> horariofechas=new HashMap<String, Object>();\n\t\t\t\tGregorianCalendar fecha = (GregorianCalendar)diadehorario.get(\"fecha\");\n\t\t\t\tDate fechadat =fecha.getTime();\n\t\t\t\tGregorianCalendar fechafin = (GregorianCalendar)diadehorario.get(\"fechafin\");\n\t\t\t\tDate fechafindat = fechafin.getTime();\n\t\t\t\tfor(HashMap<String, Object> diaasignado:dataasignado){\n\t\t\t\t\t\tHashMap<String, Object> horariofechasasignadas=new HashMap<String, Object>();\n\t\t\t\t\t\tGregorianCalendar fechaasignada = (GregorianCalendar)diaasignado.get(\"fecha\");\n\t\t\t\t\t\tDate fechaasignadadat =fechaasignada.getTime();\n\t\t\t\t\t\tGregorianCalendar fechafinasignada = (GregorianCalendar)diaasignado.get(\"fechafin\");\n\t\t\t\t\t\tDate fechafinasignadadat = fechafinasignada.getTime();\n\t\t\t\t\t\t\t\t\tif(fechaasignada.after(fechafin)){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif((fechaasignada.getTime().after(fecha.getTime())||fechaasignada.getTime().equals(fecha.getTime())) && fechaasignada.getTime().before(fechafin.getTime()) ){\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//\tif((fechaasignada.getTime().after(fecha.getTime()) && fechaasignada.getTime().before(fechafin.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\") +\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\t\tif((fechafinasignada.getTime().after(fecha.getTime())||fechafinasignada.getTime().equals(fecha.getTime())) && fechafinasignada.getTime().before(fechafin.getTime()) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif((fecha.getTime().after(fechaasignada.getTime() ) && fecha.getTime().before(fechafinasignada.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\t\tif((fechafin.getTime().after(fechaasignada.getTime() ) && fechafin.getTime().before(fechafinasignada.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\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\n}\n\n\n}\n\n\n/////////////////////////fin validacion/\n}", "private void checkIntentInformation() {\n Bundle extras = getIntent().getExtras();\n Gson gson = new Gson();\n if (extras != null) {\n Curso aux;\n aux = (Curso) getIntent().getSerializableExtra(\"addCurso\");\n if (aux == null) {\n aux = (Curso) getIntent().getSerializableExtra(\"editCurso\");\n if (aux != null) {//Accion de actualizar\n //found an item that can be updated\n String cursoU = \"\";\n cursoU = gson.toJson(aux);\n\n apiUrlTemp = apiUrlAcciones+\"acc=updateC\" +\"&cursoU=\"+cursoU +\"&profesor_id=\"+aux.getProfesor().getCedula();\n MyAsyncTasksCursoOperaciones myAsyncTasksOp = new MyAsyncTasksCursoOperaciones();\n myAsyncTasksOp.execute();\n }\n } else {//Accion de agregar\n //found a new Curso Object\n String cursoA = \"\";\n cursoA = gson.toJson(aux);\n\n apiUrlTemp = apiUrlAcciones+\"acc=addC\" +\"&cursoA=\"+cursoA +\"&profesor_id=\"+aux.getProfesor().getCedula();\n MyAsyncTasksCursoOperaciones myAsyncTasksOp = new MyAsyncTasksCursoOperaciones();\n myAsyncTasksOp.execute();\n }\n }\n }", "@Override\n\tpublic boolean equals(Object object) {\n\t\tif (!(object instanceof ActividadDetallePagoBean)) {\n\t\t\treturn false;\n\t\t}\n\t\tActividadDetallePagoBean other = (ActividadDetallePagoBean) object;\n\t\tif ((this.actividadDetallePagoID == null && other.actividadDetallePagoID != null)\n\t\t\t\t|| (this.actividadDetallePagoID != null && !this.actividadDetallePagoID\n\t\t\t\t\t\t.equals(other.actividadDetallePagoID))) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof MesaPK)) {\n return false;\n }\n MesaPK other = (MesaPK) object;\n if (this.numeroOrden != other.numeroOrden) {\n return false;\n }\n if ((this.fechaOrden == null && other.fechaOrden != null) || (this.fechaOrden != null && !this.fechaOrden.equals(other.fechaOrden))) {\n return false;\n }\n return true;\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tPaziente paziente = (Paziente) obj;\n\t\treturn this.getCodiceFiscale().equals(paziente.getCodiceFiscale());\n\t}", "@Override\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n final Parametro other = (Parametro) obj;\n if ((this.nombre == null) ? (other.nombre != null) : !this.nombre.equals(other.nombre)) {\n return false;\n }\n if ((this.unidad == null) ? (other.unidad != null) : !this.unidad.equals(other.unidad)) {\n return false;\n }\n return true;\n }", "private void calcularOtrosIngresos(Ingreso ingreso)throws Exception{\n\t\tfor(IngresoDetalle ingresoDetalle : ingreso.getListaIngresoDetalle()){\r\n\t\t\tif(ingresoDetalle.getIntPersPersonaGirado().equals(ingreso.getBancoFondo().getIntPersonabancoPk())\r\n\t\t\t&& ingresoDetalle.getBdAjusteDeposito()==null){\r\n\t\t\t\tbdOtrosIngresos = ingresoDetalle.getBdMontoAbono();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof MotivoBaja)) {\r\n return false;\r\n }\r\n MotivoBaja other = (MotivoBaja) object;\r\n if ((this.idMotivoBaja == null && other.idMotivoBaja != null) || (this.idMotivoBaja != null && !this.idMotivoBaja.equals(other.idMotivoBaja))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public void guarda(DTOAcreditacionGafetes acreGafete) throws Exception ;", "public void compareAddress()\n {\n Address a = new Address(\"Amapolas\",1500,\"Providencia\",\"Santiago\");\n Address b = new Address(\"amapolas\",1500, \"providencia\",\"santiago\");\n Address c = new Address(\"Hernando Aguirre\",1133,\"Providencia\", \"Santiago\");\n \n boolean d = a.equals(b); \n }", "public Integer contarFaturamentoImediatoAjuste(String anoMesReferencia, String faturamentoGrupo, \n\t\t\tString imovelId, String rotaId) throws ErroRepositorioException;", "public void publicarPropuestas() {\n try {\n //SISTEMA VERIFICA QUE LOS COMPROMISOS PARA EL PERIODO HAYAN SIDO INGRESADO\n if (this.listaCompromiso == null || this.listaCompromiso.isEmpty()) {\n //MUESTRA MENSAJE: 'DEBE INGRESAR LOS COMPROMISOS PARA PODER PUBLICAR ', NO ES POSIBLE PUBLICAR LOS RESULTADOS \n addErrorMessage(keyPropertiesFactory.value(\"cu_ne_6_lbl_mensaje_add_comprimiso_faltantes\"));\n return;\n }\n String mensajeValidacion = validarCompromisosPeriodoByPropuestaNacesidad(this.propuestaSeleccionada);\n if (mensajeValidacion != null) {\n addErrorMessage(keyPropertiesFactory.value(mensajeValidacion));\n return;\n }\n if (IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_PRE_APROBADA.compareTo(this.propuestaSeleccionada.getConstantes().getIdConstantes()) != 0) {\n addErrorMessage(\"La propuesta debe estar en estado Pre-Aprobado\");\n return;\n }\n /*byte[] bitesPdf;\n //GENERAMOS EL REPORTE - CREADOR DE REPORTES\n try {\n HashMap mapa = new HashMap();\n mapa.put(\"p_id_periodo\", periodoSeleccionado.getIdPeriodo().intValue());\n bitesPdf = GeneradorReportesServicio.getInstancia().generarReporte(mapa, \"reporte15.jasper\");\n } catch (Exception e) {\n adicionaMensajeError(\"ERROR, Se presentaron errores al general el reporte JASPER\");\n Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, \"CU-NE-06(publicarPropuestas)\", e);\n return;\n }*/\n String iniciaCodigoVic = keyPropertiesFactory.value(\"cu_ne_6_codigo_proyecto_inicia_generacion\");\n if (iniciaCodigoVic.contains(\"-----NOT FOUND-----\")) {\n addErrorMessage(keyPropertiesFactory.value(\"cu_ne_6_error_no_existe_codigo_proyecto_inicia_generacion\"));\n return;\n }\n //EL SISTEMA CAMBIA EL ESTADO DE TODAS LAS PROPUESTAS DEL LISTADO DE ''PRE-APROBADA ' A 'APROBADA' \n //Y LOS DE ESTADO 'REVISADA' A 'NO APROBADA' \n List<SieduPropuestaAsignada> lstPropuestaasignada = this.servicePropuestaAsignada.findByVigencia(this.propuestaSeleccionada);\n List<Long> lstLong = new ArrayList<>();\n for (SieduPropuestaAsignada s : lstPropuestaasignada) {\n lstLong.add(s.getPropuestaNecesidad().getIdPropuestaNecesidad());\n }\n Proyecto proyecto = new Proyecto();\n int contarProyecto = iProyectoLocal.contarProyectoByVigencia(lstLong);\n Constantes constantes = iConstantesLocal.getConstantesPorIdConstante(IConstantes.DURACION_PROYECTOS_INSTITUCIONALES);\n int numeroMesesEstimacionProyecto = Integer.parseInt(constantes.getValor());\n UsuarioRol usuarioRol = new UsuarioRol(loginFaces.getPerfilUsuarioDTO().getRolUsuarioPorIdRolDTO(IConstantesRole.EVALUADOR_DE_PROPUESTAS_DE_NECESIDADES_EN_LA_VICIN).getIdUsuarioRol());\n if (this.propuestaSeleccionada.getConstantes().getIdConstantes().equals(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_PRE_APROBADA)) {\n EjecutorNecesidad ejecutorNecesidadResponsable = iEjecutorNecesidadLocal.getEjecutorNecesidadPorPropuestaNecesidadYRolResponsable(this.propuestaSeleccionada.getIdPropuestaNecesidad());\n if (ejecutorNecesidadResponsable == null || ejecutorNecesidadResponsable.getUnidadPolicial() == null || ejecutorNecesidadResponsable.getUnidadPolicial().getSiglaFisica() == null) {\n addErrorMessage(\"Error, Verifique la sigla física de la Unidad Policial asociada a la propuesta: \" + this.propuestaSeleccionada.getTema());\n return;\n }\n\n this.propuestaSeleccionada.setConstantes(new Constantes(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_APROBADA));\n //POR CADA PROPROPUESTA APROBADA SE CREA UN PROYECTO\n //CREA UN PROYECTO DE INVESTIGACIÓN POR CADA PROPUESTA CON EL ESTADO 'APROBADA', \n //ASIGNÁNDOLE EL CÓDIGO DE INVESTIGACIÓN DE ACUERDO AL MÉTODO ESTABLECIDO(VER REQUERIMIENTOS ESPECIALES), \n //ASIGNÁNDOLE EL ÁREA Y LA LÍNEA DE INVESTIGACIÓN Y EL TEMA PROPUESTO COMO TITULO PROPUESTO\n //VIC - [Consecutivo de proyectos en el periodo][Año]- [Código interno de la Unidad Policial o Escuela]\n String codigoInternoUnidad = ejecutorNecesidadResponsable.getUnidadPolicial().getSiglaFisica();\n String codigoProyecto = iniciaCodigoVic.concat(\"-\");//VIC \n contarProyecto += 1;\n codigoProyecto = codigoProyecto.concat(String.valueOf(contarProyecto));//[Consecutivo de proyectos en el periodo]\n codigoProyecto = codigoProyecto.concat(String.valueOf(lstPropuestaasignada.get(0).getSieduPropuestaAsignadaPK().getVigencia()));//[Año]\n codigoProyecto = codigoProyecto.concat(\"-\");\n codigoProyecto = codigoProyecto.concat(codigoInternoUnidad);//[Código interno de la Unidad Policial o Escuela]\n Date fechaHoy = new Date();\n proyecto.setCodigoProyecto(codigoProyecto);\n proyecto.setLinea(this.propuestaSeleccionada.getLinea());\n proyecto.setTituloPropuesto(this.propuestaSeleccionada.getTema());\n proyecto.setTema(this.propuestaSeleccionada.getTema());\n proyecto.setPeriodo(this.propuestaSeleccionada.getPeriodo());\n proyecto.setUsuarioRol(usuarioRol);\n proyecto.setEstado(new Constantes(IConstantes.TIPO_ESTADO_PROYECTO_EN_EJECUCION));\n proyecto.setUnidadPolicial(ejecutorNecesidadResponsable.getUnidadPolicial());\n proyecto.setPropuestaNecesidad(this.propuestaSeleccionada);\n proyecto.setFechaEstimadaInicio(fechaHoy);\n Calendar fechaFinalEstimadaProyecto = Calendar.getInstance();\n fechaFinalEstimadaProyecto.setTime(fechaHoy);\n fechaFinalEstimadaProyecto.add(Calendar.MONTH, numeroMesesEstimacionProyecto);\n proyecto.setFechaEstimadaFinalizacion(fechaFinalEstimadaProyecto.getTime());\n proyecto.setFechaActualizacion(fechaHoy);\n //CREAMOS LOS COMPROMISOS PROYECTOS\n List<CompromisoProyecto> listaCompromisosProyecto = new ArrayList<CompromisoProyecto>();\n //CONSULTAMOS LOS COMPROMISOS DE ESTE PERIODO\n List<CompromisoPeriodo> listaComprimiso = iCompromisoPeriodoLocal.buscarCompromisoPeriodoByIdPropuestaNecesidad(this.propuestaSeleccionada);\n for (CompromisoPeriodo unCompromisoPeriodo : listaComprimiso) {\n CompromisoProyecto compromisoProyecto = new CompromisoProyecto();\n compromisoProyecto.setCompromisoPeriodo(unCompromisoPeriodo);\n compromisoProyecto.setProyecto(proyecto);\n compromisoProyecto.setEstado(new Constantes(IConstantes.ESTADO_COMPROMISO_PROYECTO_PENDIENTE));\n compromisoProyecto.setFechaCreacion(new Date());\n compromisoProyecto.setMaquina(loginFaces.getPerfilUsuarioDTO().getMaquinaDTO().getIpLoginRemotoUsuario());\n compromisoProyecto.setUsuarioRegistro(loginFaces.getPerfilUsuarioDTO().getIdentificacion());\n compromisoProyecto.setUsuarioRolRegistra(usuarioRol);\n listaCompromisosProyecto.add(compromisoProyecto);\n }\n //CREAMOS LAS UNIDADES EJECUTORAS PARA EL PROYECTO\n List<EjecutorNecesidadDTO> listadoEjecutorNecesidadDTOPropuesta = iEjecutorNecesidadLocal.getEjecutorNecesidadDTOPorPropuestaNecesidad(this.propuestaSeleccionada.getIdPropuestaNecesidad());\n List<EjecutorNecesidad> listaEjecutorNecesidadProyecto = new ArrayList<EjecutorNecesidad>();\n for (EjecutorNecesidadDTO unaEjecutorNecesidadDTO : listadoEjecutorNecesidadDTOPropuesta) {\n EjecutorNecesidad ejecutorNecesidadLocal = new EjecutorNecesidad();\n ejecutorNecesidadLocal.setPropuestaNecesidad(new PropuestaNecesidad(this.propuestaSeleccionada.getIdPropuestaNecesidad()));\n ejecutorNecesidadLocal.setProyecto(proyecto);\n ejecutorNecesidadLocal.setRol(new Constantes(unaEjecutorNecesidadDTO.getIdRol()));\n ejecutorNecesidadLocal.setUnidadPolicial(this.iUnidadPolicialLocal.obtenerUnidadPolicialPorId(unaEjecutorNecesidadDTO.getIdUnidadPolicial()));\n listaEjecutorNecesidadProyecto.add(ejecutorNecesidadLocal);\n }\n proyecto.setEjecutorNecesidadList(listaEjecutorNecesidadProyecto);\n proyecto.setCompromisoProyectoList(listaCompromisosProyecto);\n\n } else if (this.propuestaSeleccionada.getConstantes().getIdConstantes().equals(\n IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_REVISADA)) {\n this.propuestaSeleccionada.setConstantes(new Constantes(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_NO_APROBADA));\n }\n\n //ACTUALIZAMOS EL CAMPO ROL_ACTUAL\n //CON EL OBJETIVO SE SABER EN DONDE SE ENCUENTRA LA PROPUESTA\n //ESTO SE REALIZA PARA CORREGIR \n //LA INCIDENCIA #0002754: Mientras no se publiquen los resultados de las necesidades, el estado debe ser 'Enviada a VICIN'.\n this.propuestaSeleccionada.setRolActual(IConstantes.PROPUESTA_NECESIDAD_PUBLICADA_JEFE_UNIDAD);\n /* \n\n //GENERAMOS EL NOMBRE DEL ARCHIVO DEL REPORTE\n String nombreReporteUnico = \"PROP_NECES_PERIODO\".concat(\"_\").concat(String.valueOf(System.currentTimeMillis())).concat(\".pdf\");\n String nombreReporte = \"PROP_NECES_PERIODO_\" + (periodoSeleccionado.getAnio() == null ? periodoSeleccionado.getIdPeriodo().toString() : periodoSeleccionado.getAnio().toString()) + \".pdf\";\n */\n //SE ACTUALIZAN LAS PROPUESTAS DE NECESIDAD\n servicePropuestaNecesidad.guardarPropuestaYgenerarProyecto(\n this.propuestaSeleccionada,\n proyecto);\n\n addInfoMessage(keyPropertiesFactory.value(\"cu_ne_6_lbl_mensaje_propuestas_actualizadas_ok_publicar\"));\n\n navigationFaces.redirectFacesCuNe01();\n\n } catch (Exception e) {\n\n addErrorMessage(keyPropertiesFactory.value(\"general_mensaje_error_exception\"));\n Logger.getLogger(this.getClass().getName()).log(Level.SEVERE,\n \"CU-NE-06 Evaluar propuestas de necesidades de investigación - (publicarPropuestas)\", e);\n\n }\n\n }", "public static void main(String[] args) {\n\t\n\tConta conta = new Conta();\t\n\n\t//Colocando valores no conta\n\tconta.titular = \"Duke\";\n\tconta.saldo = 1000000.0;\n\tconta.numero = 12345;\n\tconta.agencia = 54321;\n\tconta.dataAniversario = \"1985/01/12\";\n\n\tconta.saca(100.0);\n\tconta.deposita(1000.0);\n\n\tSystem.out.println(\"Saldo atual: \" + conta.saldo);\n\tSystem.out.println(\"Rendimento atual: \" + conta.calculaRendimento());\n\tSystem.out.println(\"Saldo atual depois do rendimento: \" + conta.saldo);\n\tSystem.out.println(\"Cliente: \" + conta.recuperaDados());\n\n\n\tConta c1 = new Conta();\n\tConta c2 = new Conta();\t\n\n\t//Colocando valores na nova conta (cria um objeto novo na memoria com outro registro de memoria)\n\tc1.titular = \"Flavio\";\n\tc1.saldo = 10000.0;\n\tc1.numero = 54321;\n\tc1.agencia = 12345;\n\tc1.dataAniversario = \"1900/01/12\";\n\n\t//Colocando valores na nova conta (cria um objeto novo na memoria com outro registro de memoria)\n\tc2.titular = \"Flavio\";\n\tc2.saldo = 10000.0;\n\tc2.numero = 54321;\n\tc2.agencia = 12345;\n\tc2.dataAniversario = \"1900/01/12\";\n\n\n\tif (c1.titular == c2.titular) {\n\t\tSystem.out.println(\"Iguais\");\t\t\n\t} else {\n\t\tSystem.out.println(\"Diferentes\");\n\t}\t\n\n\tconta.transfere(100000,c1);\n\n\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof DetallePlanAcademico)) {\n return false;\n }\n DetallePlanAcademico other = (DetallePlanAcademico) object;\n if ((this.idDetalle == null && other.idDetalle != null) || (this.idDetalle != null && !this.idDetalle.equals(other.idDetalle))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof RelacionesPapel)) {\r\n return false;\r\n }\r\n RelacionesPapel other = (RelacionesPapel) object;\r\n if ((this.idRelacion == null && other.idRelacion != null) || (this.idRelacion != null && !this.idRelacion.equals(other.idRelacion))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public void modifica(DTOAcreditacionGafetes acreGafete) throws Exception ;", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Formapagamento)) {\n return false;\n }\n Formapagamento other = (Formapagamento) object;\n if ((this.idformaPagamento == null && other.idformaPagamento != null) || (this.idformaPagamento != null && !this.idformaPagamento.equals(other.idformaPagamento))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof ExamenDetallePK)) {\r\n return false;\r\n }\r\n ExamenDetallePK other = (ExamenDetallePK) object;\r\n if (this.codExamen != other.codExamen) {\r\n return false;\r\n }\r\n if (this.codPregunta != other.codPregunta) {\r\n return false;\r\n }\r\n return true;\r\n }", "public List<EntradaDeMaterial> buscarEntradasDisponibles(Almacen a);", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof NombrecomunTb)) {\r\n return false;\r\n }\r\n NombrecomunTb other = (NombrecomunTb) object;\r\n if ((this.eIdnombrecomun == null && other.eIdnombrecomun != null) || (this.eIdnombrecomun != null && !this.eIdnombrecomun.equals(other.eIdnombrecomun))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean equals(Object obj) {\r\n if (obj == null) {\r\n return false;\r\n }\r\n if (getClass() != obj.getClass()) {\r\n return false;\r\n }\r\n PrestitiAbstractSearch other = (PrestitiAbstractSearch) obj;\r\n if (soggetti == null) {\r\n if (other.getSoggetti() != null) {\r\n return false;\r\n }\r\n } else if (!soggetti.equals(other.getSoggetti())) {\r\n return false;\r\n }\r\n if (soggetti_username == null) {\r\n if (other.getSoggetti_username() != null) {\r\n return false;\r\n }\r\n } else if (!soggetti_username.equals(other.getSoggetti_username())) {\r\n return false;\r\n }\r\n if (dataPrestitoFrom == null) {\r\n if (other.getDataPrestitoFrom() != null) {\r\n return false;\r\n }\r\n } else if (!dataPrestitoFrom.equals(other.getDataPrestitoFrom())) {\r\n return false;\r\n }\r\n if (dataPrestitoTo == null) {\r\n if (other.getDataPrestitoTo() != null) {\r\n return false;\r\n }\r\n } else if (!dataPrestitoTo.equals(other.getDataPrestitoTo())) {\r\n return false;\r\n }\r\n if (scadenzaPrestitoFrom == null) {\r\n if (other.getScadenzaPrestitoFrom() != null) {\r\n return false;\r\n }\r\n } else if (!scadenzaPrestitoFrom.equals(other.getScadenzaPrestitoFrom())) {\r\n return false;\r\n }\r\n if (scadenzaPrestitoTo == null) {\r\n if (other.getScadenzaPrestitoTo() != null) {\r\n return false;\r\n }\r\n } else if (!scadenzaPrestitoTo.equals(other.getScadenzaPrestitoTo())) {\r\n return false;\r\n }\r\n if (oggetti == null) {\r\n if (other.getOggetti() != null) {\r\n return false;\r\n }\r\n } else if (!oggetti.equals(other.getOggetti())) {\r\n return false;\r\n }\r\n if (oggetti_id == null) {\r\n if (other.getOggetti_id() != null) {\r\n return false;\r\n }\r\n } else if (!oggetti_id.equals(other.getOggetti_id())) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Formularios)) {\r\n return false;\r\n }\r\n Formularios other = (Formularios) object;\r\n if ((this.idFormulario == null && other.idFormulario != null) || (this.idFormulario != null && !this.idFormulario.equals(other.idFormulario))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Autos)) {\r\n return false;\r\n }\r\n Autos other = (Autos) object;\r\n if ((this.matricula == null && other.matricula != null) || (this.matricula != null && !this.matricula.equals(other.matricula))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean isTheSame(String titolo, String autore, String desc, String prezzo, String editore, String url, String nCopie){\n return (current.getTitolo().equals(titolo) && current.getAutore().equals(autore) && current.getDescrizione().equals(desc)\n && current.getPrezzo().equals(Double.parseDouble(prezzo)) && current.getEditore().equals(editore) && url.equals(current.getUrl()) && Integer.parseInt(nCopie) == (current.getCopie()));\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ResAtencion)) {\n return false;\n }\n ResAtencion other = (ResAtencion) object;\n if ((this.idResultadoAtencion == null && other.idResultadoAtencion != null) || (this.idResultadoAtencion != null && !this.idResultadoAtencion.equals(other.idResultadoAtencion))) {\n return false;\n }\n return true;\n }", "public void bugActualizarReferenciaActual(PagosAutorizados pagosautorizados,PagosAutorizados pagosautorizadosAux) throws Exception {\n\t\tthis.setCamposBaseDesdeOriginalPagosAutorizados(pagosautorizados);\r\n\t\t\t\t\t\r\n\t\t//POR BUG: EL OBJETO ACTUAL SE PERDIA, POR LO QUE SE GUARDA TAMBIEN VALORES EN AUX Y LUEGO DESPUES DEL MENSAJE SE HACE REFERENCIA EL OBJETO ACTUAL AL AUX\r\n\t\tpagosautorizadosAux.setId(pagosautorizados.getId());\r\n\t\tpagosautorizadosAux.setVersionRow(pagosautorizados.getVersionRow());\t\t\t\t\t\r\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof PghDocumentoAdjunto)) {\n return false;\n }\n PghDocumentoAdjunto other = (PghDocumentoAdjunto) object;\n if ((this.idDocumentoAdjunto == null && other.idDocumentoAdjunto != null) || (this.idDocumentoAdjunto != null && !this.idDocumentoAdjunto.equals(other.idDocumentoAdjunto))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ObservacionGeneral)) {\n return false;\n }\n ObservacionGeneral other = (ObservacionGeneral) object;\n if ((this.idObservacionGral == null && other.idObservacionGral != null) || (this.idObservacionGral != null && !this.idObservacionGral.equals(other.idObservacionGral))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof ParametrosMedicion)) {\r\n return false;\r\n }\r\n ParametrosMedicion other = (ParametrosMedicion) object;\r\n if ((this.idPARAMETROSMEDICION == null && other.idPARAMETROSMEDICION != null) || (this.idPARAMETROSMEDICION != null && !this.idPARAMETROSMEDICION.equals(other.idPARAMETROSMEDICION))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof CargaUbicacion)) {\n return false;\n }\n CargaUbicacion other = (CargaUbicacion) object;\n if ((this.idCargaUbicacion == null && other.idCargaUbicacion != null) || (this.idCargaUbicacion != null && !this.idCargaUbicacion.equals(other.idCargaUbicacion))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof CurAsignaturaExt)) {\n return false;\n }\n CurAsignaturaExt other = (CurAsignaturaExt) object;\n if ((this.idAsignatura == null && other.idAsignatura != null) || (this.idAsignatura != null && !this.idAsignatura.equals(other.idAsignatura))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Receta)) {\n return false;\n }\n Receta other = (Receta) object;\n if ((this.idReceta == null && other.idReceta != null) || (this.idReceta != null && !this.idReceta.equals(other.idReceta))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof AnalisisAmenazas)) {\r\n return false;\r\n }\r\n AnalisisAmenazas other = (AnalisisAmenazas) object;\r\n if ((this.codAnalisisAmenaza == null && other.codAnalisisAmenaza != null) || (this.codAnalisisAmenaza != null && !this.codAnalisisAmenaza.equals(other.codAnalisisAmenaza))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public static Integer subtrairAnoAnoMesReferencia(Integer anoMesReferencia, int qtdAnos) {\r\n\r\n\t\tint mes = obterMes(anoMesReferencia.intValue());\r\n\t\tint ano = obterAno(anoMesReferencia.intValue());\r\n\t\tString anoMes = \"\";\r\n\t\tano = ano - qtdAnos;\r\n\t\tif (mes < 10) {\r\n\t\t\tanoMes = \"\" + ano + \"0\" + mes;\r\n\t\t} else {\r\n\t\t\tanoMes = \"\" + ano + mes;\r\n\t\t}\r\n\t\treturn Integer.parseInt(anoMes);\r\n\t}", "public Object[] pesquisarContaGerarArquivoTextoFaturamento(Integer idImovel,\n\t\t\tInteger anoMesReferencia,Integer idFaturamentoGrupo) throws ErroRepositorioException ;", "public boolean equals(Object objeto){\n\t\tif (objeto instanceof ObservadorDeposito){\n\t\t\tObservadorDeposito observadordeposito = (ObservadorDeposito) objeto ;\n\t\t\treturn (observadordeposito.getAlmacenador().equals(getAlmacenador()) \n\t\t\t\t\t&& observadordeposito.getNivelDeposito() == getNivelDeposito()\n\t\t\t\t\t&& observadordeposito.getGastoMedio() == getGastoMedio()) ; \n\t\t}\n\t\t\n\t\treturn false ;\n\t}", "private boolean cursoAsignado(Curso curso, Curso[] cursoAsignado) {\n\n for (int i = 0; i < cursoAsignado.length; i++) {\n\n if (cursoAsignado[i] != null) {\n if (curso.getNombre().equals(cursoAsignado[i].getNombre())) {\n return true;\n }\n }\n }\n return false;\n }", "@Override\n public boolean equals(Object autre) {\n AcideAmine inter = (AcideAmine) autre;\n return ( acideAmine.equals(inter.acideAmine));\n \n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj)\n\t\t\treturn true;\n\t\tif (obj == null)\n\t\t\treturn false;\n\t\tif (getClass() != obj.getClass())\n\t\t\treturn false;\n\t\tTipoDocumento other = (TipoDocumento) obj;\n\t\tif (codigo == null) {\n\t\t\tif (other.codigo != null)\n\t\t\t\treturn false;\n\t\t} else if (!codigo.equals(other.codigo))\n\t\t\treturn false;\n\t\tif (codigoPais == null) {\n\t\t\tif (other.codigoPais != null)\n\t\t\t\treturn false;\n\t\t} else if (!codigoPais.equals(other.codigoPais))\n\t\t\treturn false;\n\t\tif (estado == null) {\n\t\t\tif (other.estado != null)\n\t\t\t\treturn false;\n\t\t} else if (!estado.equals(other.estado))\n\t\t\treturn false;\n\t\tif (oidTipoDoc == null) {\n\t\t\tif (other.oidTipoDoc != null)\n\t\t\t\treturn false;\n\t\t} else if (!oidTipoDoc.equals(other.oidTipoDoc))\n\t\t\treturn false;\n\t\tif (descripcion == null) {\n\t\t\tif (other.descripcion != null)\n\t\t\t\treturn false;\n\t\t} else if (!descripcion.equals(other.descripcion))\n\t\t\treturn false;\n\t\tif (obligatorio == null) {\n\t\t\tif (other.obligatorio != null)\n\t\t\t\treturn false;\n\t\t} else if (!obligatorio.equals(other.obligatorio))\n\t\t\treturn false;\n\t\tif (siglas == null) {\n\t\t\tif (other.siglas != null)\n\t\t\t\treturn false;\n\t\t} else if (!siglas.equals(other.siglas))\n\t\t\treturn false;\n\t\tif (longitud == null) {\n\t\t\tif (other.longitud != null)\n\t\t\t\treturn false;\n\t\t} else if (!longitud.equals(other.longitud))\n\t\t\treturn false;\n\t\tif (dni == null) {\n\t\t\tif (other.dni != null)\n\t\t\t\treturn false;\n\t\t} else if (!dni.equals(other.dni))\n\t\t\treturn false;\n\t\tif (fiscal == null) {\n\t\t\tif (other.fiscal != null)\n\t\t\t\treturn false;\n\t\t} else if (!fiscal.equals(other.fiscal))\n\t\t\treturn false;\n\t\tif (tipoDocu == null) {\n\t\t\tif (other.tipoDocu != null)\n\t\t\t\treturn false;\n\t\t} else if (!tipoDocu.equals(other.tipoDocu))\n\t\t\treturn false;\n\t\treturn true;\n\n\t}", "private void validarObligaciones(TituloPropiedad pTitulo, Persona pPersonaAnterior, Persona pPersonaNueva) {\n\t\tList<ObligacionRfr> locListaObligacionesParcela = Criterio.getInstance(entityManager, DocHabEspecializadoRfr.class)\n\t\t\t\t.add(Restriccion.IGUAL(\"parcela\", ((TituloPropiedadParcelario) pTitulo).getParcela())).setProyeccion(Proyeccion.PROP(\"obligacion\")).list();\n\t\tif(!locListaObligacionesParcela.isEmpty()) {\n\t\t\t// ID = 0 significa que es una persona temporal, usada en la\n\t\t\t// migración, y no debería generar actualización de deudas,\n\t\t\t// solo cambiar el titular.\n\t\t\t// if (pPersonaAnterior.getIdPersona() == 0) {\n\t\t\tfor(ObligacionRfr cadaObligacion : locListaObligacionesParcela) {\n\t\t\t\tcadaObligacion.setPersona(pPersonaNueva);\n\t\t\t}\n\t\t\t// }\n\t\t}\n\t}", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof SgcAutoevaluacionRef)) {\r\n return false;\r\n }\r\n SgcAutoevaluacionRef other = (SgcAutoevaluacionRef) object;\r\n if ((this.idAutref == null && other.idAutref != null) || (this.idAutref != null && !this.idAutref.equals(other.idAutref))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Compras)) {\r\n return false;\r\n }\r\n Compras other = (Compras) object;\r\n if ((this.idCompras == null && other.idCompras != null) || (this.idCompras != null && !this.idCompras.equals(other.idCompras))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public static void main(String[] args) {\n\t\tObject[] referencias1 = new Object[5];\n\t\t\n\t\tSystem.out.println(referencias1.length);\n\t\t\n\t\tContaCorrente cc1 = new ContaCorrente(22, 11);\n\t\treferencias1[0] = cc1;\n\t\t\n\t\tContaPoupanca cc2 = new ContaPoupanca(22, 22);\n\t\treferencias1[1] = cc2;\t\n\t\t\n\t\tCliente cliente = new Cliente();\n\t\treferencias1[2] = cliente;\n\t\t\n\t\t//System.out.println(cc2.getNumero());\n\t\t\n//\t\tObject referenciaGenerica = contas[1];\n//\t\t\n//\t\tSystem.out.println( referenciaGenerica.getNumero() );\n\t\t\n\t\tContaPoupanca ref = (ContaPoupanca) referencias1[1];//type cast\n\t\tSystem.out.println(cc2.getNumero());\n\t\tSystem.out.println(ref.getNumero());\n\t\t\n\t}", "public Collection<ConsumoHistorico> pesquisarConsumoFaturadoMes(\n\t\t\tString idImovel, int anoMesReferencia)\n\t\t\tthrows ErroRepositorioException;", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof LaudoIntervencao)) {\r\n return false;\r\n }\r\n LaudoIntervencao other = (LaudoIntervencao) object;\r\n if ((this.laudoIntervencaoId == null && other.laudoIntervencaoId != null) || (this.laudoIntervencaoId != null && !this.laudoIntervencaoId.equals(other.laudoIntervencaoId))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public ArrayList<String> Info_Disc_Mus_Compras_usu(String genero, String usuario) {\r\n ArrayList<String> Lista_nombre = Info_Disco_Mus_Rep1(genero);\r\n ArrayList<String> Lista_datos_compras = new ArrayList();\r\n String line;\r\n try (BufferedReader br = new BufferedReader(new FileReader(\"src/Archivos/Compra_Musica.txt\"))) {\r\n while ((line = br.readLine()) != null) {\r\n String[] info_disco_compra = line.split(\";\");\r\n for (int s = 0; s < Lista_nombre.size(); s++) {\r\n if (Lista_nombre.get(s).equals(info_disco_compra[3]) & info_disco_compra[0].equals(usuario)) {\r\n Lista_datos_compras.add(info_disco_compra[3]);\r\n Lista_datos_compras.add(info_disco_compra[5]);\r\n }\r\n }\r\n }\r\n } catch (IOException ex) {\r\n System.out.println(ex);\r\n }\r\n return Lista_datos_compras;\r\n }" ]
[ "0.7081158", "0.6104309", "0.54426515", "0.54280454", "0.5423207", "0.5351462", "0.53454304", "0.5341388", "0.52785987", "0.5232746", "0.5191997", "0.5166984", "0.51600885", "0.5158919", "0.5135662", "0.5125524", "0.51134926", "0.5105654", "0.50934684", "0.5090635", "0.5088054", "0.5075384", "0.50751084", "0.5072465", "0.5069047", "0.5067044", "0.50622874", "0.5060586", "0.5060586", "0.5053226", "0.5037735", "0.5026554", "0.50222915", "0.50191647", "0.5014577", "0.5014223", "0.5008958", "0.50074315", "0.50061274", "0.49934298", "0.49898753", "0.49861234", "0.49799797", "0.49776772", "0.49736568", "0.49702355", "0.49673384", "0.49655458", "0.4955728", "0.49540296", "0.49504843", "0.49383017", "0.49247643", "0.49150145", "0.49131486", "0.49101883", "0.49095157", "0.49059272", "0.49021155", "0.49011135", "0.4896694", "0.48859134", "0.48836672", "0.4883051", "0.4875791", "0.4875162", "0.48733777", "0.4869223", "0.48649254", "0.48628017", "0.48626548", "0.48596907", "0.4853272", "0.48507577", "0.4847216", "0.48457602", "0.48449636", "0.48442465", "0.48421052", "0.48313648", "0.48266757", "0.48256433", "0.48237628", "0.4821327", "0.48189119", "0.48156205", "0.48127258", "0.4804621", "0.48043138", "0.48039398", "0.4800965", "0.48001915", "0.4796526", "0.47964466", "0.478993", "0.47837767", "0.47805798", "0.477637", "0.47717512", "0.4769085" ]
0.7091652
0
Compara dois objetos no formato HH:MM de acordo com o sinal logico passado.
public static boolean compararHoraMinuto(String horaMinuto1, String horaMinuto2, String sinal) { boolean retorno = true; // Separando os valores de hora e minuto para realizar a comparação String hora1 = horaMinuto1.substring(0, 2); String minuto1 = horaMinuto1.substring(3, 5); String hora2 = horaMinuto2.substring(0, 2); String minuto2 = horaMinuto2.substring(3, 5); if (sinal.equalsIgnoreCase("=")) { if (!Integer.valueOf(hora1).equals(Integer.valueOf(hora2))) { retorno = false; } else if (!Integer.valueOf(minuto1).equals(Integer.valueOf(minuto2))) { retorno = false; } } else if (sinal.equalsIgnoreCase(">")) { if (Integer.valueOf(hora1).intValue() < Integer.valueOf(hora2).intValue()) { retorno = false; } else if (Integer.valueOf(hora1).equals(Integer.valueOf(hora2)) && Integer.valueOf(minuto1).intValue() <= Integer.valueOf(minuto2).intValue()) { retorno = false; } } else { if (Integer.valueOf(hora2).intValue() < Integer.valueOf(hora1).intValue()) { retorno = false; } else if (Integer.valueOf(hora2).equals(Integer.valueOf(hora1)) && Integer.valueOf(minuto2).intValue() <= Integer.valueOf(minuto1).intValue()) { retorno = false; } } return retorno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void CompararTiempo(String HoraInicio, String HoraFin){\n String[] TiempoInicial = HoraInicio.split(\":\");\n int horaI = Integer.valueOf(TiempoInicial[0]);\n int minuteI = Integer.valueOf(TiempoInicial[1]);\n\n String[] TiempoFinal = HoraFin.split(\":\");\n int horaF = Integer.valueOf(TiempoFinal[0]);\n int minuteF = Integer.valueOf(TiempoFinal[1]);\n\n if (horaF >= horaI){\n if (horaF == horaI && minuteF<=minuteI) {\n Toast.makeText(getApplicationContext(), \"La Hora de finalizacion no puede ser menor a la Hora de Inicio.\", Toast.LENGTH_SHORT).show();\n }\n else{\n etHoraFin.setText(HoraFin);\n }\n\n }else{\n Toast.makeText(getApplicationContext(), \"La Hora de finalizacion no puede ser menor a la Hora de Inicio.\", Toast.LENGTH_SHORT).show();\n }\n\n }", "private int compareTimes(String time1, String time2) {\n \n String[] timeOneSplit = time1.trim().split(\":\");\n String[] timeTwoSplit = time2.trim().split(\":\");\n \n \n if (timeOneSplit.length == 2 && timeTwoSplit.length == 2) {\n \n String[] minutesAmPmSplitOne = new String[2];\n minutesAmPmSplitOne[1] = timeOneSplit[1].trim().substring(0, timeOneSplit[1].length() - 2);\n minutesAmPmSplitOne[1] = timeOneSplit[1].trim().substring(timeOneSplit[1].length() - 2, timeOneSplit[1].length());\n\n String[] minutesAmPmSplitTwo = new String[2];\n minutesAmPmSplitTwo[1] = timeTwoSplit[1].trim().substring(0, timeTwoSplit[1].length() - 2);\n minutesAmPmSplitTwo[1] = timeTwoSplit[1].trim().substring(timeTwoSplit[1].length() - 2, timeTwoSplit[1].length());\n \n int hourOne = Integer.parseInt(timeOneSplit[0]);\n int hourTwo = Integer.parseInt(timeTwoSplit[0]);\n \n //increment hours depending on am or pm\n if (minutesAmPmSplitOne[1].trim().equalsIgnoreCase(\"pm\")) {\n hourOne += 12;\n }\n if (minutesAmPmSplitTwo[1].trim().equalsIgnoreCase(\"pm\")) {\n hourTwo += 12;\n }\n \n if (hourOne < hourTwo) {\n \n return -1;\n }\n else if (hourOne > hourTwo) {\n \n return 1;\n }\n else {\n \n int minutesOne = Integer.parseInt(minutesAmPmSplitOne[0]);\n int minutesTwo = Integer.parseInt(minutesAmPmSplitTwo[0]);\n \n if (minutesOne < minutesTwo) {\n \n return -1;\n }\n else if (minutesOne > minutesTwo) {\n \n return 1;\n }\n else {\n \n return 0;\n }\n }\n }\n //time1 exists, time 2 doesn't, time 1 comes first!\n else if (timeOneSplit.length == 2 && timeTwoSplit.length != 2) {\n return -1;\n }\n else {\n return 1;\n }\n }", "public static boolean isPassOneHour(String pass)\n {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n Date date = new Date();\n String current = dateFormat.format(date);\n\n //Extract current data time all values\n\n int current_year = Integer.parseInt(current.substring(0, 4));\n int current_month = Integer.parseInt(current.substring(5,7))-1;\n int current_day = Integer.parseInt(current.substring(8,10));\n\n int current_hour = Integer.parseInt(current.substring(11,13));\n int current_minute = Integer.parseInt(current.substring(14,16));\n int current_seconds = Integer.parseInt(current.substring(17));\n\n //String pass = \"2016-10-05 10:14:00\";\n\n //Extract last update data (pass from parameter\n\n int year = Integer.parseInt(pass.substring(0, 4));\n int month = Integer.parseInt(pass.substring(5,7))-1;\n int day = Integer.parseInt(pass.substring(8,10));\n\n int hour = Integer.parseInt(pass.substring(11,13));\n int minute = Integer.parseInt(pass.substring(14,16));\n int seconds = Integer.parseInt(pass.substring(17));\n\n\n System.out.println(\"CURRENT: \" + current_year+\"/\"+current_month+\"/\"+current_day+\" \"+current_hour+\":\"+current_minute+\":\"+current_seconds);\n\n System.out.println(\"PASS: \" + year+\"/\"+month+\"/\"+day+\" \"+hour+\":\"+minute+\":\"+seconds);\n\n if (current_year == year)\n {\n if (current_month == month)\n {\n if (current_day == day)\n {\n if (current_hour > hour)\n {\n if ((current_hour - hour > 1))\n {\n //Bi ordu gutxienez\n System.out.println(\"Bi ordu gutxienez: \" + (current_hour) + \" / \" + hour);\n return true;\n }\n else\n {\n if (((current_minute + 60) - minute ) < 60)\n {\n //Ordu barruan dago\n System.out.println(\"Ordu barruan nago ez delako 60 minutu pasa: \" + ((current_minute + 60) - minute ));\n return false;\n }\n else\n {\n //Refresh\n System.out.println(\"Eguneratu, ordu bat pasa da gutxienez: \" + ((current_minute + 60) - minute ));\n return true;\n }\n }\n\n }\n }\n }\n }\n return false;\n }", "public static int compareTime(String time1, String time2)\r\n/* 83: */ {\r\n/* 84:110 */ String[] timeArr1 = (String[])null;\r\n/* 85:111 */ String[] timeArr2 = (String[])null;\r\n/* 86:112 */ timeArr1 = time1.split(\":\");\r\n/* 87:113 */ timeArr2 = time2.split(\":\");\r\n/* 88:114 */ int minute1 = Integer.valueOf(timeArr1[0]).intValue() * 60 + \r\n/* 89:115 */ Integer.valueOf(timeArr1[1]).intValue();\r\n/* 90:116 */ int minute2 = Integer.valueOf(timeArr2[0]).intValue() * 60 + \r\n/* 91:117 */ Integer.valueOf(timeArr2[1]).intValue();\r\n/* 92:118 */ return minute1 - minute2;\r\n/* 93: */ }", "public int compareHours(String hora1, String hora2) {\n \tString[] strph1=hora1.split(\":\");\n \tString[] strph2=hora2.split(\":\");\n \tInteger[] ph1= new Integer[3];\n \tInteger[] ph2= new Integer[3];\n\n \tfor(int i=0;i<strph1.length;i++) {\n \t\tph1[i]=Integer.parseInt(strph1[i]);\n \t}\n \tfor(int i=0;i<strph2.length;i++) {\n \t\tph2[i]=Integer.parseInt(strph2[i]);\n \t}\n\n \tif(ph1[0]>ph2[0]) {\n \t\treturn 1;\n \t}\n \telse if(ph1[0]<ph2[0]) {\n \t\treturn -1;\n \t}\n \telse{//si las horas son iguales\n \t\tif(ph1[1]>ph2[1]) {\n \t\t\treturn 1; \n \t\t}\n \t\telse if(ph1[1]<ph2[1]) {\n \t\t\treturn -1;\n \t\t}\n \t\telse{//si los minutos son iguales\n \t\t\tif(ph1[2]>ph2[2]) {\n \t\t\t\treturn 1;\n \t\t\t}\n \t\t\telse if(ph1[1]<ph2[1]) {\n \t\t\t\treturn -1;\n \t\t\t}\n \t\t\telse {\n \t\t\t\treturn 0;\n \t\t\t}\n \t\t}\n \t}\n\n }", "private void checkCombinationWhenHrAreEqual(TimeBean obj, List<String> listTimeComb ) {\r\n\t\tif(( obj.getStartMin()==0 ) && (obj.getStartHr() <= obj.getEndSec() ) ) {\r\n\t\t\tlistTimeComb.add(obj.getEndHr()+\":00:\"+obj.getEndHr());\r\n\t\t}\r\n\t\t\r\n\t\tif((obj.getEndHr() < obj.getEndMin()) ||( obj.getEndHr() == obj.getEndMin() && obj.getStartSec() == 0)) {\r\n\t\t\tlistTimeComb.add(obj.getEndHr()+\":\"+obj.getEndHr()+\":00\");\r\n\t\t}\r\n\r\n\t\tif((obj.getEndHr() < obj.getEndMin()) || (obj.getEndHr() == obj.getEndMin() && obj.getStartSec() <= obj.getEndMin() && obj.getStartSec() <= obj.getEndSec())) {\r\n\t\t\tlistTimeComb.add(obj.getEndHr()+\":\"+obj.getEndHr()+\":\"+obj.getEndHr());\r\n\t\t}\r\n\t}", "public boolean validateTimes() {\n if (!allDay) {\n // Convert the time strings to ints\n int startTimeInt = parseTime(startTime);\n int endTimeInt = parseTime(endTime);\n\n if (startTimeInt > endTimeInt) {\n return false;\n }\n }\n return true;\n }", "private boolean splitTime(String timeString) throws Exception {\n\t\tif (timeSet)\n\t\t\tthrow new Exception(\"Double time \" + timeString);\n\t\tStringTokenizer st = new StringTokenizer(timeString, \":\");\n\t\tif (st.countTokens() == 3) {\n\t\t\thour = Integer.valueOf(st.nextToken()).intValue();\n\t\t\tminute = Integer.valueOf(st.nextToken()).intValue();\n\t\t\tsecond = Integer.valueOf(st.nextToken()).intValue();\n\t\t}\n\t\telse if (st.countTokens() == 2) {\n\t\t\thour = Integer.valueOf(st.nextToken()).intValue();\n\t\t\tminute = Integer.valueOf(st.nextToken()).intValue();\n\t\t}\n\t\telse\n\t\t\tthrow new Exception(\"Wrong number of arguments\" + timeString);\n\t\tif ((hour < 0)\n\t\t|| (hour > 23)\n\t\t|| (minute < 0)\n\t\t|| (minute > 59)\n\t\t|| (second < 0)\n\t\t|| (second > 59)) {\n\t\t\tthrow new Exception(\"Not a valid time \" + timeString);\n\t\t}\n\t\thour = hour % 24;\n\t\tminute = minute % 60;\n\t\tsecond = second % 60;\n\t\tdate = new Date((year - 1900)\n\t\t\t , (month - 1)\n\t\t\t\t , day\n\t\t\t , hour\n\t\t\t\t , minute\n\t\t\t\t , second);\n\t\ttimeSet = true;\n\t\treturn true;\n }", "protected int compareTime(Date first, Date second) {\n\t\treturn first.compareTo(second);\n\t}", "private void check_this_minute() {\n controlNow = false;\n for (DTimeStamp dayControl : plan) {\n if (dayControl.point == clockTime.point) {\n controlNow = true;\n break;\n }\n }\n for (DTimeStamp simControl : extra) {\n if (simControl.equals(clockTime)) {\n controlNow = true;\n break;\n }\n }\n }", "public static boolean timecomparison(String ftime, String stime) {\n\t\t\r\n\t\tint fYear = Integer.parseInt(ftime.substring(0,4));\r\n\t\tint sYear = Integer.parseInt(stime.substring(0,4));\r\n\t\t\r\n\t\tint fMonth = Integer.parseInt(ftime.substring(5,7));\r\n\t\tint sMonth = Integer.parseInt(stime.substring(5,7));\r\n\t\t\r\n\t\tint fDay = Integer.parseInt(ftime.substring(8,10));\r\n\t\tint sDay = Integer.parseInt(stime.substring(8,10));\r\n\t\t\r\n\t\tint fHour = Integer.parseInt(ftime.substring(11,13));\r\n\t\tint sHour = Integer.parseInt(stime.substring(11,13));\r\n\t\t\r\n\t\tint fMin = Integer.parseInt(ftime.substring(14,16));\r\n\t\tint sMin = Integer.parseInt(stime.substring(14,16));\r\n\t\t\r\n\t\tint fSec = Integer.parseInt(ftime.substring(17,19));\r\n\t\tint sSec = Integer.parseInt(stime.substring(17,19));\r\n\t\t\r\n\t\tdouble difference = (fYear-sYear)*262800*60 + (fMonth-sMonth)*720*60 + (fDay-sDay)*24*60+ (fHour-sHour)*60 + ((fMin-sMin));\r\n\t\t\r\n\t\t//might need to change the = depending on the order of checks\r\n\t\tif(difference <= 0) {\r\n\t\t\treturn true; \r\n\t\t}\r\n\t\telse return false; \r\n\t}", "public boolean equals(CustomTime that) {\n return this.hour == that.hour\n && this.minute == that.minute\n && this.second == that.second;\n }", "private boolean compararFechaActualCon(String fecha_obtenida) {\n boolean fecha_valida = false;\n\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n Date date = new Date();\n String fecha_actual = dateFormat.format(date);\n\n try {\n Date date2 = dateFormat.parse(fecha_obtenida);\n Date date1 = dateFormat.parse(fecha_actual);\n\n Log.i(\"COMPARANDO FECHAS\", \"F_ACTUAL: \" + date1 + \", F_OBTENIDA: \" + date2);\n\n if (date2.after(date1) ) {\n fecha_valida = true;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: TRUE\");\n } else {\n fecha_valida = false;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: FALSE\");\n\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return fecha_valida;\n }", "private boolean compararFechaActualCon(String fecha_obtenida) {\n boolean fecha_valida = false;\n\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n Date date = new Date();\n String fecha_actual = dateFormat.format(date);\n\n try {\n Date date2 = dateFormat.parse(fecha_obtenida);\n Date date1 = dateFormat.parse(fecha_actual);\n\n Log.i(\"COMPARANDO FECHAS\", \"F_ACTUAL: \" + date1 + \", F_OBTENIDA: \" + date2);\n\n if (date2.after(date1) ) {\n fecha_valida = true;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: TRUE\");\n } else {\n fecha_valida = false;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: FALSE\");\n\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return fecha_valida;\n }", "public static void main(String[] args) {\n\t\tint[] time1 = new int[2];// 0,0 by default\n\t\tint[] time2 = new int[2];// 0,0 by default\n\n\t\t// System.out.println(time1[0]); //0\n\n\t\ttime1[0] = 19;\n\t\ttime1[1] = 10;\n\n\t\ttime2[0] = 11;\n\t\ttime2[1] = 18;\n\n\t\t// Before comparing, check if both arrays have\n\t\t// valid hour/minute;\n\n\t\tif (time1[0] < 0 || time1[1] > 23) {\n\t\t\tSystem.out.println(\"Time1 has invalid hour\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (time1[1] < 0 || time1[1] > 59) {\n\t\t\tSystem.out.println(\"Time1 has invalid minute\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (time2[0] < 0 || time2[1] > 23) {\n\t\t\tSystem.out.println(\"Time2 has invalid hour\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (time2[1] < 0 || time2[1] > 59) {\n\t\t\tSystem.out.println(\"Time2 has invalid minute\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"*****COMPARE ARRAYS*****\");\n\t\t\n\t\t//COMPARE ARRAYS and tell which one is earlier\n\t\t\n\t\tif (time1[0] < time2[0]) {\n\t\t\tSystem.out.println(\"Time1 is earlier\");\n\t\t}else if (time2[0] < time1[0]) {\n\t\t\tSystem.out.println(\"Time2 is earlier\");\n\t\t}else { //hours are equal. check minutes\n\t\t\tif (time1[1] < time2[1]) {\n\t\t\t\tSystem.out.println(\"Time1 is earlier\");\n\t\t\t} else if (time2[1] < time1[1]) {\n\t\t\t\tSystem.out.println(\"Time2 is earlier\");\n\t\t\t}else { //minutes are equal\n\t\t\t\tSystem.out.println(\"Same time!\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void calculateHours(String time1, String time2) {\n Date date1, date2;\n int days, hours, min;\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"hh:mm aa\", Locale.US);\n try {\n date1 = simpleDateFormat.parse(time1);\n date2 = simpleDateFormat.parse(time2);\n\n long difference = date2.getTime() - date1.getTime();\n days = (int) (difference / (1000 * 60 * 60 * 24));\n hours = (int) ((difference - (1000 * 60 * 60 * 24 * days)) / (1000 * 60 * 60));\n min = (int) (difference - (1000 * 60 * 60 * 24 * days) - (1000 * 60 * 60 * hours)) / (1000 * 60);\n hours = (hours < 0 ? -hours : hours);\n SessionHour = hours;\n SessionMinit = min;\n Log.i(\"======= Hours\", \" :: \" + hours + \":\" + min);\n\n if (SessionMinit > 0) {\n if (SessionMinit < 10) {\n SessionDuration = SessionHour + \":\" + \"0\" + SessionMinit + \" hrs\";\n } else {\n SessionDuration = SessionHour + \":\" + SessionMinit + \" hrs\";\n }\n } else {\n SessionDuration = SessionHour + \":\" + \"00\" + \" hrs\";\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private Boolean TimeInRange(String time){\n \n String[] t = time.split(\":\");\n \n int hours = Integer.parseInt(t[0]);\n int minutes = Integer.parseInt(t[1]);\n int seconds = Integer.parseInt(t[2]);\n \n if(hours == 11 && minutes == 59 && (seconds >= 55)){\n return true;\n }\n \n return false;\n \n }", "public static void main(String[] args) {\n\t\tString n = \"수 10:00~18:30/목,토 09:00~13:00\";\n\t\t\n\t\tSystem.out.println(isTimePatternIn(n));\n\t}", "private boolean timeValidation(String time){\n if(! time.matches(\"(?:[0-1][0-9]|2[0-4]):[0-5]\\\\d\")){\n return false;\n }\n return true;\n }", "private void validateTime()\n {\n List<Object> collisions = validateCollisions();\n\n for (Object object : collisions)\n {\n if (DietTreatmentBO.class.isAssignableFrom(object.getClass()))\n {\n _errors.add(String\n .format(\"Die Diätbehandlung '%s' überschneidet sich mit der Diätbehandlung '%s'\",\n _dietTreatment.getDisplayText(),\n ((DietTreatmentBO) object).getName()));\n }\n }\n }", "static String timeCount_1(List<String> Arr){\n int timeHH = 0;\n int timeMI = 0;\n int timeSS = 0;\n \n String r_hh = \"\";\n String r_mi = \"\";\n String r_ss = \"\";\n\n for(int i = 0; i < Arr.size(); i++ ){\n \n if (Pattern.matches(\"\\\\d{2}:\\\\d{2}:\\\\d{2}\", Arr.get(i))){\n \n String[] s = Arr.get(i).split(\":\");\n int hh = Integer.parseInt(s[0]);\n int mi = Integer.parseInt(s[1]);\n int ss = Integer.parseInt(s[2]);\n \n timeHH += hh;\n timeMI += mi;\n timeSS += ss;\n \n }\n else{\n continue;\n }\n }\n \n timeMI += timeSS / 60;\n timeSS %= 60;\n \n timeHH += timeMI / 60;\n timeMI %= 60; \n\n \n if (timeHH < 10){\n r_hh = \"0\" + timeHH;\n }\n else{\n r_hh = Integer.toString(timeHH);\n }\n \n if (timeMI < 10){\n r_mi = \"0\" + timeMI;\n }\n else{\n r_mi = Integer.toString(timeMI);\n }\n \n if (timeSS < 10){\n r_ss = \"0\" + timeSS;\n }\n else{\n r_ss = Integer.toString(timeSS);\n }\n \n \n \n String result = r_hh + \":\" + r_mi + \":\" + r_ss;\n //String result = timeHH + \":\" + timeMI + \":\" + timeSS;\n \n return result;\n }", "@Test\n\tpublic void test() throws InterruptedException {\n\t\tString firstTime = Time.main();\n\t\tString[] splitFirst = firstTime.split(\":\");\n\t\tThread.sleep(5000);\n\t\tString secondTime = Time.main();\n\t\tString[] splitSecond = secondTime.split(\":\");\n\t\t\n\t\t\n\t\tif(Integer.parseInt(splitFirst[2])>=55) //if first time was >= 55 seconds\n\t\t{\n\t\t\tassertEquals(Integer.parseInt(splitSecond[2]),(Integer.parseInt(splitFirst[2])+5)%60); //seconds should increase by 5 mod 60\n\n\t\t\tif(Integer.parseInt(splitFirst[1])==59) //if first time was 59 minutes\n\t\t\t{ \n\t\t\t\tassertTrue(splitFirst[1].equals(\"00\")); //reset to zero minutes\n\t\t\t\t\n\t\t\t\tif(Integer.parseInt(splitFirst[0])==23) //if first time was 23 hours\n\t\t\t\t\tassertTrue(splitFirst[0].equals(\"00\")); //reset to zero hours\n\t\t\t\telse //if first time is not 23 hours\n\t\t\t\t\tassertEquals(Integer.parseInt(splitFirst[0])+1, Integer.parseInt(splitSecond[0])); //hours should increase by 1\n\t\t\t}\n\t\t\telse //if first time was not 59 minutes\n\t\t\t{\n\t\t\t\tassertEquals(Integer.parseInt(splitFirst[1])+1, Integer.parseInt(splitSecond[1])); //minutes should increase by 1\n\t\t\t\tassertTrue(splitFirst[0].equals(splitSecond[0])); //hours should not change\n\t\t\t}\n\t\t}\n\t\telse //if first time was <= 55 seconds\n\t\t{\n\t\t\tassertEquals(Integer.parseInt(splitSecond[2]),(Integer.parseInt(splitFirst[2])+5)); //seconds should increase by 5\n\t\t\tassertTrue(splitFirst[1].equals(splitSecond[1])); //minutes should not change\n\t\t\tassertTrue(splitFirst[0].equals(splitSecond[0])); //hours should not change\n\t\t\t\n\t\t}\n\t\t\n\t}", "public static boolean isTime24HourFormat( Activity act ) {\r\n\t\tContentResolver cr = act.getContentResolver();\r\n\t\tString v = Settings.System.getString( cr, android.provider.Settings.System.TIME_12_24 );\r\n\t\tif ( v == null || v.isEmpty() || v.equals( \"12\" ) ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private void checkCombinationWhenHrNotEqual(TimeBean obj, List<String> listTimeComb ) {\r\n\t\tif(obj.getStartHr() !=0 && obj.getStartMin()==0 && obj.getStartSec()==0) {\r\n\t\t\tlistTimeComb.add(obj.getStartHr()+\":00:\"+obj.getStartHr());\r\n\t\t}\r\n\t\t\r\n\t\tif(obj.getStartHr() >= obj.getStartMin() && obj.getStartSec()>=0) {\r\n\t\t\tlistTimeComb.add(obj.getStartHr()+\":\"+obj.getStartHr()+\":00\");\r\n\t\t}\r\n\t\t\r\n\t\tif(obj.getStartHr() >= obj.getStartMin() && obj.getStartHr() >= obj.getStartSec()) {\r\n\t\t\tlistTimeComb.add(obj.getStartHr()+\":\"+obj.getStartHr()+\":\"+obj.getStartHr());\r\n\t\t}\r\n\t\tTimeUtil.incrementHr(obj);\r\n\t}", "public void formatoTiempo() {\n String segundos, minutos, hora;\n\n hora = hrs < 10 ? String.valueOf(\"0\" + hrs) : String.valueOf(hrs);\n\n minutos = min < 10 ? String.valueOf(\"0\" + min) : String.valueOf(min);\n\n jLabel3.setText(hora + \" : \" + minutos + \" \" + tarde);\n }", "public boolean equals(Object o) {\n\t\tif (o instanceof TimeSpan) {\n\t\t\tTimeSpan other = (TimeSpan) o;\n\t\t\treturn hours == other.hours && minutes == other.minutes;\n\t\t} else { // not a TimeSpan object\n\t\t\treturn false;\n\t\t}\n\t}", "public int getMatchTime() {\n return getIntegerProperty(\"Time\");\n }", "public static void main(String[] args) {\n\t\tCTime a = new CTime(2013,15,28,13,24,56);\n\t\tCTime b = new CTime(2013,0,28,13,24,55);\n\t\ta.getTimeVerbose();\n\t\ta.getTime();\n\t\ta.compare(b);\n\t\ta.setTime(2014,8,16,13,24,55);\n\t\ta.getTime();\n\t}", "private boolean checkValidTime(String inputTime) {\n int hour = Integer.parseInt(inputTime.substring(0,2));\n int minute = Integer.parseInt(inputTime.substring(2,4));\n \n if ((hour >= 0 && hour <= 23) && (minute >= 0 && minute <= 59)) {\n return true;\n } else {\n return false;\n }\n }", "private boolean checkTime(int hour, int minutes) {\n\tboolean check = true;\n\t\tif((hour < 0) || (hour > 23) || (minutes < 0) || (minutes > 59)) {\n\t\t\tcheck = false;\n\t\t}\n\t\telse {\n\t\t\tcheck = true;\n\t\t}\n\treturn check;\n\t}", "private boolean validateArrivingTime(StopPoint currentSP) {\n\t\ttry {\n\t\t\tint time = Integer.valueOf(hourComboBox.getValue()) * 60;\n\t\t\ttime += Integer.valueOf(minuteComboBox.getValue());\n\t\t\ttime += timeIndicatorComboBox.getValue().equals(\"PM\") ? 12 * 60 : 0;\n\t\t\tfor (StopPoint stopPoint : stopPoints) {\n\t\t\t\tif (stopPoint.getTime() != null && !stopPoint.getTime().equals(\"\") && stopPoint != currentSP) {\n\t\t\t\t\tString[] spTimeString = stopPoint.getTime().split(\"[ :]+\");\n\t\t\t\t\tint spTime = Integer.valueOf(spTimeString[0]) * 60;\n\t\t\t\t\tspTime += Integer.valueOf(spTimeString[1]);\n\t\t\t\t\tspTime += spTimeString[2].equals(\"PM\") ? 12 * 60 : 0;\n\n\t\t\t\t\tif (time <= spTime + 5 && time >= spTime - 5) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n public boolean isEqualAt(UnitTime ut) {\n return ((LongUnitTime)ut).getValue()==this.getValue();\n }", "private String findMaximumValidTime1(int a, int b, int c, int d) {\n int[] arr = {a,b,c,d};\n int maxHr = -1;\n int hr_i = 0, hr_j = 0;\n\n //Find maximum HR\n for(int i=0; i < arr.length; i++){\n for(int j=i+1; j < arr.length; j++){\n int value1 = arr[i] * 10 + arr[j];\n int value2 = arr[j] * 10 + arr[i];\n if(value1 < 24 && value2 < 24){\n if(value1 > value2 && value1 > maxHr) {\n maxHr = value1;\n hr_i = i;\n hr_j = j;\n }else if(value2 > value1 && value2 > maxHr){\n maxHr = value2;\n hr_i = i;\n hr_j = j;\n }\n }else if(value1 < 24 && value2 > 24 && value1 > maxHr){\n maxHr = value1;\n hr_i = i;\n hr_j = j;\n }else if(value2 < 24 && value1 > 24 && value2 > maxHr){\n maxHr = value2;\n hr_i = i;\n hr_j = j;\n }\n\n }\n }\n System.out.println(maxHr);\n\n //Find maximum MM\n int[] mArr = new int[2]; //minutes array\n int k=0;\n for(int i=0; i < arr.length; i++){\n if(i != hr_i && i != hr_j){\n mArr[k++] = arr[i];\n }\n }\n\n System.out.println(Arrays.toString(mArr));\n int maxMin = -1;\n int val1 = mArr[0] * 10 + mArr[1];\n int val2 = mArr[1] * 10 + mArr[0];\n\n if(val1 < 60 && val2 < 60){\n maxMin = Math.max(val1,val2);\n }else if(val1 < 60 && val2 > 60) {\n maxMin = val1;\n }else if(val2 < 60 && val1 > 60){\n maxMin = val2;\n }\n System.out.println(maxMin);\n\n //Create answer\n StringBuilder sb = new StringBuilder();\n if(maxHr == -1 || maxMin == -1){\n return \"Not Possible\";\n }\n\n if(Integer.toString(maxHr).length() < 2){ //HR\n sb.append(\"0\"+maxHr+\":\");\n }else {\n sb.append(maxHr+\":\");\n }\n\n if(Integer.toString(maxMin).length() < 2){ //MM\n sb.append(\"0\"+maxMin);\n }else {\n sb.append(maxMin);\n }\n\n return sb.toString();\n }", "@Override\n\tpublic int compareTo(FlightTime fT) {\n\t\tint comparison = 0;\n\t\tif(!timeType.equals(fT.timeType)) {\n\t\t\tif(timeType.equals(AM) && fT.timeType.equals(PM))\n\t\t\t\tcomparison = -1;\n\t\t\telse\n\t\t\t\tcomparison = 1;\n\t\t}\n\t\telse if(hour != fT.hour)\n\t\t\tcomparison = hour - fT.hour;\n\t\telse\n\t\t\tcomparison = minute - fT.minute;\n\t\treturn comparison;\n\t}", "private boolean checkTime(){\n\t\treturn false;\r\n\t}", "private void checkAlarm() {\n\t\tif(this.alarmHour==this.currHour && this.alarmMin==Integer.valueOf(this.currMin)) {\n\t\t\ttimer.cancel();\n\t\t\tSystem.out.println(this.alarmMsg+\"\\nThe time is \"+this.currHour+\":\"+this.currMin);\n\t\t\tString time;\n\t\t\tif(String.valueOf(alarmHour).length()==1) {\n\t\t\t\ttime= \"0\"+alarmHour+\":\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttime=alarmHour+\":\";\n\t\t\t}\n\t\t\tif(String.valueOf(alarmMin).length()==1) {\n\t\t\t\ttime+=\"0\"+alarmMin;\n\t\t\t}else {\n\t\t\t\ttime+=alarmMin;\n\t\t\t}\n\t\t\tJOptionPane.showMessageDialog(null, alarmMsg + \" - \"+ time+\"\\n\"+\"The time is \"+ time);\n\t\t}\n\t}", "private String formatTime(Date dateObject) {\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat timeFormat = new SimpleDateFormat(\"h:mm a\");\n return timeFormat.format(dateObject);\n }", "static String timeCount_2(List<String> Arr){\n int timeHH = 0;\n int timeMI = 0;\n int timeSS = 0;\n \n int timeSum_second = 0;\n \n String r_hh = \"\";\n String r_mi = \"\";\n String r_ss = \"\";\n\n for(int i = 0; i < Arr.size(); i++ ){\n \n if (Pattern.matches(\"\\\\d{2}:\\\\d{2}:\\\\d{2}\", Arr.get(i))){\n \n String[] s = Arr.get(i).split(\":\");\n int hh = Integer.parseInt(s[0]);\n int mi = Integer.parseInt(s[1]);\n int ss = Integer.parseInt(s[2]);\n\n timeSum_second += hh*60*60 + mi*60 + ss;\n \n }\n else{\n continue;\n }\n }\n \n timeHH = timeSum_second/60/60;\n timeMI = (timeSum_second%(60*60))/60;\n timeSS = timeSum_second%60;\n \n if (timeHH < 10){\n r_hh = \"0\" + timeHH;\n }\n else{\n r_hh = Integer.toString(timeHH);\n }\n \n if (timeMI < 10){\n r_mi = \"0\" + timeMI;\n }\n else{\n r_mi = Integer.toString(timeMI);\n }\n \n if (timeSS < 10){\n r_ss = \"0\" + timeSS;\n }\n else{\n r_ss = Integer.toString(timeSS);\n }\n \n String result = r_hh + \":\" + r_mi + \":\" + r_ss;\n \n return result;\n }", "if (payDateTime == adhocTicket.getPaidDateTime()) {\n System.out.println(\"Paid Date Time is passed\");\n }", "private static boolean isTime(final Object obj) {\n return timeClass != null && timeClass.isAssignableFrom(obj.getClass());\n }", "public ArrayList<String> StringArrayListTimeCheck() {\n String temp = null;\n ArrayList<String> newStringList = new ArrayList();\n Calendar cal = Calendar.getInstance();\n for (int i = 0; i < 11; i++) {\n cal.add(Calendar.HOUR, 2);\n SimpleDateFormat sdf = new SimpleDateFormat(\"ha\");\n temp = sdf.format(cal.getTime()).toLowerCase();\n newStringList.add(temp);\n\n }\n return newStringList;\n\n }", "public static int compararDataTime(Date data1, Date data2) {\r\n\t\tlong dataTime1 = data1.getTime();\r\n\t\tlong dataTime2 = data2.getTime();\r\n\t\tint result;\r\n\t\tif (dataTime1 == dataTime2) {\r\n\t\t\tresult = 0;\r\n\t\t} else if (dataTime1 < dataTime2) {\r\n\t\t\tresult = -1;\r\n\t\t} else {\r\n\t\t\tresult = 1;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public String getTime(){\n String mt=\"\";\n String hr=\"\";\n if(minute<10){\n mt=0+(String.valueOf(minute));\n }\n\n else{\n mt=String.valueOf(minute);\n }\n\n if(hour<10){\n hr=0+(String.valueOf(hour));\n }\n else{\n hr=String.valueOf(hour);\n }\n //return hour:minute\n return (hr+\":\"+mt);\n }", "public boolean isTimeBetweenTwoTime(String shift, String loc) throws ParseException {\n String locale = loc.substring(0, 1);\n boolean valid = false;\n\n //Time variables\n Calendar cal = Calendar.getInstance();\n int currentDay = cal.get(Calendar.DAY_OF_MONTH);\n\n DateFormat df = new SimpleDateFormat(\"HH:mm:ss\");\n String argCurrentTime = df.format(new Date());\n String argStartTime=\"\";\n String argEndTime=\"\";\n\n //Set start & end timings for shift patterns (Stations & Depots)\n //30 minutes extra time for updating attendance of the shift\n switch(shift){\n case \"A\":\n //Station Shift A Timing\n if(locale.equalsIgnoreCase(\"E\") || locale.equalsIgnoreCase(\"N\")) {\n argStartTime = \"04:00:00\";\n argEndTime = \"12:00:00\";\n }\n //Depot Shift A Timing\n else if(locale.equalsIgnoreCase(\"D\")) {\n argStartTime = \"04:00:00\";\n argEndTime = \"13:00:00\";\n }\n break;\n case \"B\":\n //Station Shift B Timing\n if(locale.equalsIgnoreCase(\"E\") || locale.equalsIgnoreCase(\"N\")) {\n argStartTime = \"11:00:00\";\n argEndTime = \"19:00:00\";\n }\n //Depot Shift B Timing\n else if(locale.equalsIgnoreCase(\"D\")) {\n argStartTime = \"12:00:00\";\n argEndTime = \"21:00:00\";\n }\n break;\n case \"C\":\n //Station Shift C Timing\n if(locale.equalsIgnoreCase(\"E\") || locale.equalsIgnoreCase(\"N\")) {\n argStartTime = \"18:00:00\";\n argEndTime = \"02:00:00\";\n }\n //Depot Shift C Timing\n else if(locale.equalsIgnoreCase(\"D\")) {\n argStartTime = \"20:00:00\";\n argEndTime = \"05:00:00\";\n }\n break;\n }\n\n if (shift.equalsIgnoreCase(\"A\") || shift.equalsIgnoreCase(\"B\") || shift.equalsIgnoreCase(\"C\")) {\n // Start Time\n Date startTime = new SimpleDateFormat(\"HH:mm:ss\").parse(argStartTime);\n Calendar startCalendar = Calendar.getInstance();\n startCalendar.setTime(startTime);\n\n // Current Time\n Date currentTime = new SimpleDateFormat(\"HH:mm:ss\").parse(argCurrentTime);\n Calendar currentCalendar = Calendar.getInstance();\n currentCalendar.setTime(currentTime);\n\n // End Time\n Date endTime = new SimpleDateFormat(\"HH:mm:ss\").parse(argEndTime);\n Calendar endCalendar = Calendar.getInstance();\n endCalendar.setTime(endTime);\n\n //\n if (currentTime.compareTo(endTime) < 0) {\n currentCalendar.add(Calendar.DATE, 1);\n currentTime = currentCalendar.getTime();\n }\n\n if (startTime.compareTo(endTime) < 0) {\n startCalendar.add(Calendar.DATE, 1);\n startTime = startCalendar.getTime();\n }\n\n //\n if (currentTime.before(startTime)) {\n valid = false;\n } else {\n if (currentTime.after(endTime)) {\n endCalendar.add(Calendar.DATE, 1);\n endTime = endCalendar.getTime();\n }\n\n if (currentTime.before(endTime)) {\n valid = true;\n } else {\n valid = false;\n }\n }\n }\n\n return valid;\n }", "@Override\n\tpublic int compare(Player o1, Player o2) {\n\t\treturn (int) (o1.getTime() - o2.getTime());\t\t\t\t\t\t\t\t\t\t//returns the time difference, if big, then player two is better \n\t}", "public int verifierHoraire(String chaine){\r\n\t\t//System.out.println(\"chaine : \"+chaine);\r\n\t\tString tabHoraire[] = chaine.split(\":\");\r\n\t\t\r\n\t\tif((Integer.parseInt(tabHoraire[0]) < AUTO_ECOLE_OUVERTURE ) || (Integer.parseInt(tabHoraire[0])> AUTO_ECOLE_FERMETURE)){\r\n\t\t\treturn -6;\r\n\t\t}\r\n\t\tif((Integer.parseInt(tabHoraire[1]) < 0 ) || (Integer.parseInt(tabHoraire[1]) >= 60 )){\r\n\t\t\treturn -7;\r\n\t\t}\r\n\t\t\r\n\t\t return 0;\r\n\t}", "public static boolean verificaOraInserita (String ora){\r\n\t\t\r\n\t\tif(Pattern.matches(\"(0[0-9]|1[0-9]|2[0123])[\\\\:]([0-5][0-9]|60)\", ora)) return true;\r\n\t\treturn false;\r\n\t\t\r\n\t}", "public static String getHHMM()\r\n/* 74: */ {\r\n/* 75: 94 */ String nowTime = \"\";\r\n/* 76: 95 */ Date now = new Date();\r\n/* 77: 96 */ SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm\");\r\n/* 78: 97 */ nowTime = formatter.format(now);\r\n/* 79: 98 */ return nowTime;\r\n/* 80: */ }", "@Override\n\t\tpublic int compareTo(pair2 o) {\n\t\t\tif (this.time == o.time) {\n\t\t\t\treturn o.status - this.status;\n\t\t\t} else {\n\t\t\t\treturn this.time - o.time;\n\t\t\t}\n\t\t}", "public static boolean isValidTime(String time) throws NumberFormatException {\n\n int timeInt = Integer.parseInt(time); //throws NumberFormatException if \"time\" contains non-digit characters\n\n if (time.length() != 4) {\n return false;\n }\n\n char[] timeArray = time.toCharArray();\n int hour = Integer.parseInt(new String(timeArray, 0, 2));\n\n int minute = 10 * Integer.parseInt(Character.toString(timeArray[2]))\n + Integer.parseInt(Character.toString(timeArray[3]));\n\n return hour >= 0 && hour < 24 && minute >= 0 && minute < 60;\n\n }", "if (exitDateTime == adhocTicket.getExitDateTime()) {\n System.out.println(\"Exit Date Time is passed\");\n }", "@Override\n public int hashCode() {\n int result = 17;\n result = 31 * result + (isPM ? 1 : 0);\n result = 31 * result + minute;\n result = 31 * result + hour;\n return result;\n }", "private String getTimeDifference(long actualTime) {\n\t\tlong seconds = actualTime % (1000 * 60);\n\t\tlong minutes = actualTime / (1000 * 60);\n\n\t\tString result = null;\n\n\t\tif (minutes < 10) {\n\t\t\tresult = \"0\" + minutes + \":\";\n\t\t} else {\n\t\t\tresult = minutes + \":\";\n\t\t}\n\n\t\tif (seconds < 10) {\n\t\t\tresult += \"0\" + seconds;\n\t\t} else {\n\t\t\tString sec = seconds + \"\";\n\t\t\tresult += sec.substring(0, 2);\n\t\t}\n\n\t\treturn result;\n\t}", "@Override\n public int compareTo(Booking other) {\n // Push new on top\n other.updateNewQuestion(); // update NEW button\n this.updateNewQuestion();\n\n\n String[] arr1 = other.time.split(\":\");\n String[] arr2 = this.time.split(\":\");\n// Date thisDate = new Date(this.getCalendarYear(), this.getCalendarMonth(), this.getCalendarDay(), Integer.getInteger(arr2[0]), Integer.getInteger(arr2[1]));\n// if (this.newQuestion != other.newQuestion) {\n// return this.newQuestion ? 1 : -1; // this is the winner\n// }\n\n\n if (this.calendarYear == other.calendarYear) {\n if (this.calendarMonth == other.calendarMonth) {\n if (this.calendarDay == other.calendarDay) {\n if (Integer.parseInt(arr2[0]) == Integer.parseInt(arr1[0])) { // hour\n if (Integer.parseInt(arr2[1]) == Integer.parseInt(arr1[1])) { // minute\n return 0;\n } else {\n return Integer.parseInt(arr1[1]) > Integer.parseInt(arr2[1]) ? -1 : 1;\n }\n } else {\n return Integer.parseInt(arr1[0]) > Integer.parseInt(arr2[0]) ? -1 : 1;\n }\n }\n else\n return other.calendarDay > this.calendarDay ? -1 : 1;\n }\n else\n return other.calendarMonth > this.calendarMonth ? -1 : 1;\n }\n else\n return other.calendarYear > this.calendarYear ? -1 : 1;\n\n\n// if (this.echo == other.echo) {\n// if (other.calendarMonth == this.calendarMonth) {\n// return 0;\n// }\n// return other.calendarMonth > this.calendarMonth ? -1 : 1;\n// }\n// return this.echo - other.echo;\n }", "private String formatTime(String dateObject){\n\n SimpleDateFormat input = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\"); // format kita \"HARUS SAMA TIDAK BOLEH FORMATNYA BEDA BAHKAN 1 CHAR PUN\n SimpleDateFormat output= new SimpleDateFormat(\"h:mm a\");\n Date jam = null;\n try {\n jam = input.parse(dateObject);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return output.format(jam);\n }", "@Override\r\n\t\t\t\tpublic int compare(Comparendo o1, Comparendo o2) \r\n\t\t\t\t{\n\t\t\t\t\treturn o1.fechaHora.compareTo(o2.fechaHora);\r\n\t\t\t\t}", "public boolean equals(Object obj)\n {\n if (!(obj instanceof Date))\n {\n return false;\n }\n\n Date other = (Date) obj;\n\n return day == other.day && month == other.month && year == other.year\n && hour == other.hour && minute == other.minute;\n }", "private static String getPrettyTimeDiffInMinutes(Calendar c1, Calendar c2) {\n\t\tif (c1.getTimeZone() == null || c2.getTimeZone() == null \n\t\t\t\t|| c1.getTimeZone().getRawOffset() != c2.getTimeZone().getRawOffset()) {\n\t\t\treturn \"N.A.\";\n\t\t}\n\t\telse {\n\t\t\t//Log.d(TAG, \"c2: \" + c2 + \", c1: \" + c1);\n\t\t\tlong diff = c2.getTimeInMillis() - c1.getTimeInMillis();\n\t\t\t\n\t\t\tif (diff / Utils.DAY_SCALE != 0) {\n\t\t\t\treturn \"many days ago\";\n\t\t\t}\n\t\t\telse if (diff / Utils.HOUR_SCALE != 0) {\n\t\t\t\treturn \"many hours ago\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn (diff / Utils.MINUTE_SCALE) + \" min(s) ago\";\n\t\t\t}\n\t\t}\n\t}", "public String formatTime() {\n if ((myGameTicks / 16) + 1 != myOldGameTicks) {\n myTimeString = \"\";\n myOldGameTicks = (myGameTicks / 16) + 1;\n int smallPart = myOldGameTicks % 60;\n int bigPart = myOldGameTicks / 60;\n myTimeString += bigPart + \":\";\n if (smallPart / 10 < 1) {\n myTimeString += \"0\";\n }\n myTimeString += smallPart;\n }\n return (myTimeString);\n }", "private String formatTime(Date dateObject) {\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"h:mm a\", Locale.getDefault());\n return timeFormat.format(dateObject);\n }", "public String tiempoRestanteHMS(Integer segundos) {\n\t\tint hor = segundos / 3600;\n\t\tint min = (segundos - (3600 * hor)) / 60;\n\t\tint seg = segundos - ((hor * 3600) + (min * 60));\n\t\treturn String.format(\"%02d\", hor) + \" : \" + String.format(\"%02d\", min)\n\t\t\t\t+ \" : \" + String.format(\"%02d\", seg);\n\t}", "private String readableTime(Integer minutes) {\r\n String time = \"\";\r\n if (minutes / 60.0 > 1) {\r\n time = (minutes / 60) + \" hrs, \"\r\n + (minutes % 60) + \" min\";\r\n } else {\r\n time = minutes + \" min\";\r\n }\r\n return time;\r\n }", "public String getInTime2() {\n\treturn inTime2;\n }", "public String selectStartMinutes(String object, String data) {\n\t\tlogger.debug(\"Entering start Minutes\");\n\t\ttry {\n\n\t\t\tString allObjs[] = object.split(Constants.DATA_SPLIT);\n\t\t\tobject = allObjs[0];\n\t\t\tString hr = allObjs[1];\n\t\t\tString FinalNum = \"\";\n\t\t\tint num = 0;\n\t\t\tDate date = new Date();\n\t\t\tSimpleDateFormat timeFormat = new SimpleDateFormat(\"mm\");\n\t\t\ttimeFormat.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t\t\tString Min = timeFormat.format(date.getTime());\n\t\t\tlogger.debug(Min);\n\t\t\tint Minutes = Integer.parseInt(Min);\n\t\t\tlogger.debug(\"Minutes=\" + Minutes);\n\t\t\tif ((Minutes % 5) == 0) {\n\t\t\t\tnum = Minutes + 5;\n\t\t\t\tif (num == 5) {\n\t\t\t\t\tString num3 = Constants.VALUE_0 + num;\n\t\t\t\t\tselectList(object, num3);\n\t\t\t\t\tlogger.debug(\"when num==5:--\" + num3);\n\t\t\t\t\treturn Constants.KEYWORD_PASS + \" Start Minutes has been Entered.. \";\n\n\t\t\t\t}\n\t\t\t\tif (num >= 60) {\n\t\t\t\t\tdata = String.valueOf(num);\n\t\t\t\t\tdata = \":\" + data;\n\t\t\t\t\tselectStartorDueHours(hr, data);\n\t\t\t\t\tif (!(data.equals(Constants.VALUE_12))) {\n\t\t\t\t\t\tFinalNum = Constants.VALUE_DOUBLE_ZERO;\n\t\t\t\t\t\tselectList(object, FinalNum);\n\t\t\t\t\t\treturn Constants.KEYWORD_PASS + \" Start Minutes has been Entered.. \";\n\t\t\t\t\t}\n\n\t\t\t\t\treturn Constants.KEYWORD_PASS + \" Start Minutes has been Entered.. \";\n\t\t\t\t}\n\t\t\t\tFinalNum = String.valueOf(num);\n\t\t\t\tFinalNum = \":\" + FinalNum;\n\t\t\t\tselectList(object, FinalNum);\n\t\t\t\treturn Constants.KEYWORD_PASS + \" Start Minutes has been Entered.. \";\n\t\t\t} else {\n\t\t\t\tint unitdigit = Minutes % 10;\n\t\t\t\tlogger.debug(\"Unitdigit=\" + unitdigit);\n\t\t\t\tnum = Minutes - unitdigit;\n\t\t\t\tlogger.debug(\"num=\" + num);\n\t\t\t\tif (unitdigit > 0 && unitdigit < 4) {\n\t\t\t\t\tnum = num + 5;\n\t\t\t\t\tif (num == 5) {\n\t\t\t\t\t\tString num3 = Constants.VALUE_0 + num;\n\t\t\t\t\t\tselectList(object, String.valueOf(num3));\n\t\t\t\t\t\tlogger.debug(\"when num==5:--\" + num3);\n\t\t\t\t\t\treturn Constants.KEYWORD_PASS + \" Start Minutes has been Entered.. \";\n\t\t\t\t\t} else {\n\t\t\t\t\t\tString num3 = \":\" + num;\n\t\t\t\t\t\tselectList(object, String.valueOf(num3));\n\t\t\t\t\t\treturn Constants.KEYWORD_PASS + \" Start Minutes has been Entered.. \";\n\t\t\t\t\t}\n\t\t\t\t} else if (unitdigit == 4) {\n\t\t\t\t\tnum = num + 10;\n\t\t\t\t\tif (num >= 60) {\n\t\t\t\t\t\tdata = String.valueOf(num);\n\t\t\t\t\t\tdata = \":\" + data;\n\t\t\t\t\t\tselectStartorDueHours(hr, data);\n\t\t\t\t\t\tFinalNum = Constants.VALUE_DOUBLE_ZERO;\n\t\t\t\t\t\tselectList(object, FinalNum);\n\t\t\t\t\t\treturn Constants.KEYWORD_PASS + \" Start Minutes has been Entered.. \";\n\t\t\t\t\t}\n\t\t\t\t\tdata = String.valueOf(num);\n\t\t\t\t\tdata = \":\" + data;\n\t\t\t\t\tselectStartorDueHours(hr, data);\n\t\t\t\t\tString num8 = \":\" + num;\n\t\t\t\t\tselectList(object, String.valueOf(num8));\n\t\t\t\t\treturn Constants.KEYWORD_PASS + \" Start Minutes has been Entered.. \";\n\t\t\t\t} else if (unitdigit > 5 && unitdigit < 9) {\n\t\t\t\t\tnum = num + 10;\n\t\t\t\t\tif (num >= 60) {\n\t\t\t\t\t\tdata = String.valueOf(num);\n\t\t\t\t\t\tdata = \":\" + data;\n\t\t\t\t\t\tselectStartorDueHours(hr, data);\n\t\t\t\t\t\tFinalNum = Constants.VALUE_DOUBLE_ZERO;\n\t\t\t\t\t\tselectList(object, FinalNum);\n\t\t\t\t\t\treturn Constants.KEYWORD_PASS + \" Start Minutes has been Entered.. \";\n\t\t\t\t\t}\n\t\t\t\t} else if (unitdigit == 9) {\n\t\t\t\t\tnum = num + 15;\n\t\t\t\t\tif (num >= 60) {\n\t\t\t\t\t\tdata = String.valueOf(num);\n\t\t\t\t\t\tdata = \":\" + data;\n\t\t\t\t\t\tselectStartorDueHours(hr, data);\n\t\t\t\t\t\tnum = num - 60;\n\t\t\t\t\t\tif (num == 5) {\n\t\t\t\t\t\t\tString num3 = Constants.VALUE_0 + num;\n\t\t\t\t\t\t\tselectList(object, num3);\n\t\t\t\t\t\t\treturn Constants.KEYWORD_PASS + \" Start Minutes has been Entered.. \";\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\tString num4 = String.valueOf(num);\n\t\t\t\t\t\tnum4 = \":\" + num4;\n\t\t\t\t\t\tselectList(object, num4);\n\t\t\t\t\t\treturn Constants.KEYWORD_PASS + \" Start Minutes has been Entered.. \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tFinalNum = String.valueOf(num);\n\t\t\t\tFinalNum = \":\" + FinalNum;\n\t\t\t\tselectList(object, FinalNum);\n\t\t\t\treturn Constants.KEYWORD_PASS + \" Start Minutes has been Entered.. \";\n\t\t\t}\n\t\t} catch (Exception e) {\n\n\t\t\treturn Constants.KEYWORD_FAIL + e.getMessage();\n\t\t}\n\t}", "private String formatTime(Date dateObject) {\r\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"h:mm a\");\r\n return timeFormat.format(dateObject);\r\n }", "public static boolean isBetweenTimes(String time1, String time2, String time) {\n if (time1.compareTo(time2) <= 0) {\n return time.compareTo(time1) >= 0 && time.compareTo(time2) < 0;\n } else {\n return time.compareTo(time1) >= 0 || time.compareTo(time2) < 0;\n }\n }", "public static void main(String[] args){\n\t\tCalendar now = Calendar.getInstance(); // Gets the current date and time\n\t\tint year = now.get(Calendar.YEAR); \n\t\tint moth = now.get(Calendar.MONTH);\n\t\tint date = now.get(Calendar.DATE); \n\t\tDate d = now.getTime();\n\t\tTime t = ServletFunctions.getNowTime();\n\t\tSystem.out.println(t);\n\t\tSystem.out.println(year+\"-\"+moth+\"-\"+date);\n\t\t\n\t\tSystem.out.println(moth);\n\t\tSystem.out.println(date);\n\t\tSystem.out.println(d);\n\n\t\tDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tString ti = \"22:12:22\";\n\t\ttry {\n\t\t\tjava.sql.Time timeValue = new java.sql.Time(formatter.parse(ti).getTime());\n\t\t\tSystem.out.println(timeValue);\n\t\t} catch (ParseException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tDateTimeFormatter formatterr = DateTimeFormatter.ofPattern(\"HH:mm:ss\");\n\t\tString str = \"12:22:10\";\n\t\tLocalTime time = LocalTime.parse(str, formatterr);\n\t\tSystem.out.println(time);\n\t\t\n\t\tTime tt = ServletFunctions.strToTime(\"08:10:12\");\n\t\tSystem.out.println(tt);\n\t}", "public int compare(Object o1, Object o2)\r\n/* 237: */ {\r\n/* 238:196 */ DisgustingMoebiusTranslator.ThingTimeTriple x = (DisgustingMoebiusTranslator.ThingTimeTriple)o1;\r\n/* 239:197 */ DisgustingMoebiusTranslator.ThingTimeTriple y = (DisgustingMoebiusTranslator.ThingTimeTriple)o2;\r\n/* 240:198 */ if (DisgustingMoebiusTranslator.this.mode == DisgustingMoebiusTranslator.this.stop)\r\n/* 241: */ {\r\n/* 242:199 */ if (x.to > y.to) {\r\n/* 243:200 */ return 1;\r\n/* 244: */ }\r\n/* 245:203 */ return -1;\r\n/* 246: */ }\r\n/* 247:206 */ if (DisgustingMoebiusTranslator.this.mode == DisgustingMoebiusTranslator.this.start)\r\n/* 248: */ {\r\n/* 249:207 */ if (x.from > y.from) {\r\n/* 250:208 */ return 1;\r\n/* 251: */ }\r\n/* 252:211 */ return -1;\r\n/* 253: */ }\r\n/* 254:214 */ return 0;\r\n/* 255: */ }", "public void setInTime2(String inTime2) {\n\tthis.inTime2 = inTime2;\n }", "private String getMinutesInTime(int time) {\n String hour = String.valueOf(time / 60);\n String minutes = String.valueOf(time % 60);\n\n if(minutes.length() < 2) {\n minutes = \"0\" + minutes;\n }\n\n return hour + \":\" + minutes;\n\n }", "private void updateTime() \r\n\t {\r\n\t\t \r\n\t\t \tif(Hours.getValue() < 12)\r\n\t\t \t{\r\n\t\t \t\tdisplayString = Hours.getDisplayValue() + \":\" + Minutes.getDisplayValue() + \":\" + Seconds.getDisplayValue() + \" am\";\r\n\t\t System.out.println(displayString);\r\n\t\t \t}\r\n\t\t \t\r\n\t\t \telse if (Hours.getValue() > 12 && Hours.getValue() < 24 )\r\n\t\t \t{\r\n\t\t \t\tdisplayString = Hours.getDisplayValue() + \":\" + Minutes.getDisplayValue() + \":\" + Seconds.getDisplayValue() + \" pm\";\r\n\t\t System.out.println(displayString);\r\n\t\t \t}\r\n\t }", "@Test\n public void testEqual () {\n CountDownTimer s1 = new CountDownTimer(5, 59, 00);\n CountDownTimer s2 = new CountDownTimer(6, 01, 00);\n CountDownTimer s3 = new CountDownTimer(6, 01, 00);\n CountDownTimer s4 = new CountDownTimer(\"5:59:00\");\n\n assertFalse(s1.equals(s2));\n assertTrue(s1.equals(s4));\n assertFalse(CountDownTimer.equals(s1,s3));\n assertTrue(CountDownTimer.equals(s2, s3));\n }", "int main()\n{\n cin>>a.h>>a.m>>a.s>>b.h>>b.m>>b.s;\n int x=a.s-b.s;\n int y=a.m-b.m;\n int z=a.h-b.h;\n if(y<0){\n y+=60;\n z--;\n }\n if(x<0){\n x+=60;\n y--;\n }\n cout<<z<<\":\"<<y<<\":\"<<x;\n}", "@Override\r\n public void validate(FacesContext fc, UIComponent uic, Object o) throws ValidatorException {\n SimpleDateFormat sdft = new SimpleDateFormat(\"HH:mm:ss\");\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n HorarioDao horarioDao = new HorarioDao();\r\n Horario_TO horario = new Horario_TO();\r\n\r\n //Obtenemos los valores de cada variable desde el contexto de la vista\r\n horario.setHorario((String) o); \r\n try {//Formateamos las fechas segun lo necesitemos\r\n fechaRecogida = sdf.parse(sdf.format((Date) uic.getAttributes().get(\"fechaRecogida\")));\r\n horaRecogida = sdft.parse(horarioDao.consultarHorario(horario).getHoraInicio());\r\n fechaActual = sdf.parse(sdf.format(fechaHoraActual));\r\n horaActual = sdft.parse(sdft.format(fechaHoraActual));\r\n } catch (ParseException e) {\r\n e.getMessage();\r\n }\r\n\r\n if (fechaRecogida.equals(fechaActual)) {\r\n if (horaRecogida.before(horaActual)) {\r\n FacesMessage fmsg = new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Error\", \"La hora de recogida del pedido es menor a la hora actual\");\r\n throw new ValidatorException(fmsg);\r\n }\r\n }\r\n\r\n }", "public static long TimeInformationToSeconds(String info){\n\t\tif(info.indexOf(':') > 0){\n\t\t\tString[] data = info.split(\":\");\n\t\t\tlong hours = Long.parseLong(data[0]);\n\t\t\tlong minutes = Long.parseLong(data[1]);\n\t\t\tlong seconds = Long.parseLong(data[2].split(\"[.]\")[0]);\n\t\t\tlong milliseconds = Long.parseLong(data[2].split(\"[.]\")[1]);\n\t\t\treturn (hours * 3600000) + (minutes * 60000) + (seconds * 1000) + milliseconds;\n\t\t}else{\n\t\t\n\t\t/*\n\t\tSystem.out.println(info.substring(0, info.indexOf(\"day\")));\n\t\tSystem.out.println(info.substring(0, info.indexOf(\"day\")));\n\t\tSystem.out.println(info.substring(info.indexOf(\" \"), info.indexOf(\":\")));\n\t\tSystem.out.println(info.substring(info.indexOf(':'), info.lastIndexOf(':')));\n\t\tSystem.out.println(info.substring(info.lastIndexOf(':'), info.indexOf('.')));\n\t\tSystem.out.println(info.substring(info.indexOf('.')));\n/*\t\tlong days = Long.parseLong(info.substring(0, info.indexOf(\"day\")));\n\t\tlong hours = Long.parseLong(info.substring(info.indexOf(\" \"), info.indexOf(\":\")));\n\t\tlong minutes = Long.parseLong(info.substring(info.indexOf(':'), info.lastIndexOf(':')));\n\t\tlong seconds = Long.parseLong(info.substring(info.lastIndexOf(':'), info.indexOf('.')));\n\t\tlong milliseconds = Long.parseLong(info.substring(info.indexOf('.')));\n\t*/\t\n\t\t}\n\t\treturn 1;//(days * 86400000) + (hours * 3600000) + (minutes * 60000) + (seconds * 1000) + milliseconds;\n\t}", "private String parseTime(TimePicker start){\n String time = \"\";\n if (start.getHour() < 10){\n time += \"0\" + start.getHour() + \":\";\n } else {\n time += start.getHour() + \":\";\n }\n if (start.getMinute() < 10){\n time += \"0\" + start.getMinute();\n } else {\n time += start.getMinute();\n }\n return time;\n }", "public static String[] validateHours(String hours) {\n\tString[] hourString=new String[2];\r\n\tStringTokenizer st=new StringTokenizer(hours,\"-\");\r\n\ttry{\r\n\t\thourString[0]=st.nextToken();\r\n\t\thourString[1]=st.nextToken();\r\n\t}\r\n\tcatch(Exception e){\r\n\t\tSystem.out.println(\"Hours are not proper:\");\r\n\t\thourString[0]=null;\r\n\t\treturn hourString;\r\n\t}\r\n\tboolean validHour=validInteger(hourString[0]);\r\n\tif(!validHour || hourString[0].length()!=4){\r\n\t\tSystem.out.println(\"Invalid Start Time\");\r\n\t\thourString[0]=null;\r\n\t\treturn hourString;\r\n\t}\r\n\tvalidHour=validInteger(hourString[1]);\r\n\tif(!validHour || hourString[1].length()!=4){\r\n\t\tSystem.out.println(\"Invalid End Time Time\");\r\n\t\thourString[0]=null;\r\n\t\treturn hourString;\r\n\t}\r\n\tString time=hourString[0].substring(0, 2)+\":\"+hourString[0].substring(2, 4);\r\n\thourString[0]=time;\r\n\tSystem.out.println(\"Start Time : \"+time);\r\n\ttime=null;\r\n\ttime=hourString[1].substring(0, 2)+\":\"+hourString[1].substring(2, 4);\r\n\thourString[1]=time;\r\n\treturn hourString;\r\n}", "@Override\n\tpublic boolean isNextMessage(User from, Vector comparison){\n\n\t\tfor (Object o1 : comparison.getClock().entrySet()) {\n\t\t\tHashMap.Entry pair = (HashMap.Entry) o1;\n\n\t\t\tif(this.clock.containsKey(pair.getKey())){\n\n\t\t\t\tLong reVal = (Long)pair.getValue();\n\t\t\t\tLong myVal = this.clock.get(pair.getKey());\n\t\t\t\tUser userKey = (User)pair.getKey();\n\n\t\t\t\tif(!(userKey.equals(from) && reVal.equals(myVal+1L)) ) {\n\t\t\t\t\tif(! (!userKey.equals(from) && 0 <= myVal.compareTo(reVal) ) ){\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(!pair.getValue().equals(1L)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (Object o1 : this.clock.entrySet()) {\n\t\t\tHashMap.Entry pair = (HashMap.Entry) o1;\n\n\t\t\tif(comparison.getClock().containsKey(pair.getKey())){\n\n\t\t\t\tLong myVal = (Long)pair.getValue();\n\t\t\t\tLong reVal = comparison.getClock().get(pair.getKey());\n\t\t\t\tUser userKey = (User)pair.getKey();\n\n\t\t\t\tif(!(userKey.equals(from) && reVal.equals(myVal + 1L)) ) {\n\t\t\t\t\tif(! (!userKey.equals(from) && 0 <= myVal.compareTo(reVal) ) ){\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean validateTime(){\n if(startSpinner.getValue().isAfter(endSpinner.getValue())){\n showError(true, \"The start time can not be greater than the end time.\");\n return false;\n }\n if(startSpinner.getValue().equals(endSpinner.getValue())){\n showError(true, \"The start time can not be the same as the end time.\");\n return false;\n }\n startLDT = convertToTimeObject(startSpinner.getValue());\n endLDT = convertToTimeObject(endSpinner.getValue());\n startZDT = convertToSystemZonedDateTime(startLDT);\n endZDT = convertToSystemZonedDateTime(endLDT);\n\n if (!validateZonedDateTimeBusiness(startZDT)){\n return false;\n }\n if (!validateZonedDateTimeBusiness(endZDT)){\n return false;\n };\n return true;\n }", "@Test\n public void testCompareTo () {\n CountDownTimer s1 = new CountDownTimer(5, 59, 00);\n CountDownTimer s2 = new CountDownTimer(6, 01, 00);\n CountDownTimer s3 = new CountDownTimer(5, 50, 20);\n CountDownTimer s4 = new CountDownTimer(\"5:59:00\");\n\n assertTrue(s2.compareTo(s1) > 0);\n assertTrue(s3.compareTo(s1) < 0);\n assertTrue(s1.compareTo(s4) == 0);\n assertTrue(CountDownTimer.compareTo(s2, s4) > 0);\n assertTrue(CountDownTimer.compareTo(s3, s1) < 0);\n assertTrue(CountDownTimer.compareTo(s1, s4) == 0);\n }", "private String doValidTimeCheck(String pDateTime) {\n String aDateTime = pDateTime;\n\n if (pDateTime.length() > 0) {\n String aTime = pDateTime.substring(8);\n if (aTime.matches(\"240000\")) {\n aDateTime = pDateTime.substring(0,8) + \"235900\";\n }\n }\n return aDateTime;\n }", "public boolean isEqual(ShowTime st){\n \tif(st.getDateTime().isEqual(this.dateTime) && st.movie.getTitle().equals(this.movie.getTitle())){\n \t\treturn true;\n\t\t}\n \treturn false;\n\t}", "@Test\n\tpublic void convertToTimeTest(){\n\t\tDjikstrasMap m = new DjikstrasMap();\t//Creates new DjikstrasMap object\n\t\tdouble time = 1.85;\t\t\n\t\tassertEquals(\"2 hour and .51 minutes\", m.convertToTime(time));\t//Checks that the convertToTime method formats the time correctly\n\t}", "public int compare(TimeInterval ti) {\r\n\t\tlong diff = 0;\r\n\t\tfor (int field = 8; field >= 1; field--) {\r\n\t\t\tdiff += (getNumberOfIntervals(field) - ti\r\n\t\t\t\t\t.getNumberOfIntervals(field))\r\n\t\t\t\t\t* getMaximumNumberOfMinutesInField(field);\r\n\t\t}\r\n\t\tif (diff == 0)\r\n\t\t\treturn 0;\r\n\t\telse if (diff > 0)\r\n\t\t\treturn 1;\r\n\t\telse\r\n\t\t\treturn -1;\r\n\t}", "public static double getAttHour(String time1, String time2)\r\n/* 178: */ throws ParseException\r\n/* 179: */ {\r\n/* 180:258 */ double hour = 0.0D;\r\n/* 181:259 */ DateFormat fulDate = new SimpleDateFormat(\"HH:mm\");\r\n/* 182:260 */ long t12 = fulDate.parse(\"12:00\").getTime();\r\n/* 183:261 */ long t13 = fulDate.parse(\"13:00\").getTime();\r\n/* 184:262 */ long t1 = fulDate.parse(time1).getTime();\r\n/* 185:263 */ long PERHOUR = 3600000L;\r\n/* 186:264 */ if (time2 == null)\r\n/* 187: */ {\r\n/* 188:265 */ if (t12 - t1 > 0L) {\r\n/* 189:266 */ hour = (t12 - t1) / PERHOUR;\r\n/* 190: */ }\r\n/* 191: */ }\r\n/* 192: */ else\r\n/* 193: */ {\r\n/* 194:269 */ long t2 = fulDate.parse(time2).getTime();\r\n/* 195:270 */ if ((t1 <= t12) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 196:271 */ hour = (t12 - t1) / PERHOUR;\r\n/* 197:272 */ } else if ((t1 <= t12) && (t2 >= t13)) {\r\n/* 198:273 */ hour = (t2 - t1) / PERHOUR - 1.0D;\r\n/* 199:274 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 200:275 */ hour = 0.0D;\r\n/* 201:276 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t13)) {\r\n/* 202:277 */ hour = (t2 - t13) / PERHOUR;\r\n/* 203: */ } else {\r\n/* 204:279 */ hour = (t2 - t1) / PERHOUR;\r\n/* 205: */ }\r\n/* 206: */ }\r\n/* 207:282 */ DecimalFormat df = new DecimalFormat(\"#.0\");\r\n/* 208:283 */ return Double.parseDouble(df.format(hour));\r\n/* 209: */ }", "public void setTesto(){\n \n if(sec < 10){\n this.testo = min + \":0\" + sec + \":\" + deci;\n }\n else{\n this.testo = min + \":\" + sec + \":\" + deci;\n }\n \n }", "static String timeConversion1(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2);\n\n int hour = Integer.parseInt(hours);\n\n int differential = 0;\n if (\"PM\".equals(ampm) && hour != 12) {\n differential = 12;\n }\n\n\n hour += differential;\n hour = hour % 24;\n\n hours = String.format(\"%02d\", hour);\n\n return hours + \":\" + minutes + \":\" + seconds;\n\n }", "public void verifyTime(@NonNull final LocalDateTime date) {\n onView(viewMatcher).check(ViewAssertions.matches(withText(date.format(timeFormat))));\n }", "public String dar_hora(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n return dateFormat.format(date).toString();\n }", "@Override\n\tpublic List<ControlDiarioAlertaDto> convertEntityMenorH(int mes, int year, int diaI, int diaF) {\n\n\t\tList<ControlDiarioAlertaDto> controlAlertas = new ArrayList<ControlDiarioAlertaDto>();\n\n\t\ttry {\n\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"hh:mm\"); // if 24 hour format\n\t\t\tDate d1;\n\t\t\tTime ppstime;\n\n\t\t\td1 = (java.util.Date) format.parse(\"09:00:00\");\n\n\t\t\tppstime = new java.sql.Time(d1.getTime());\n\n\t\t\t// System.out.println(d1);\n\t\t\t// System.out.println(ppstime);\n\n\t\t\t// Llamado al metodo que me trae todos los datos de la tabla tblcontrol_diario\n\t\t\t// de acuerdo al rango (mes, anio, dia inicial , dia final)\n\t\t\tList<ControlDiario> controlD = getControlDiarioService().findAllRange(mes, year, diaI, diaF);\n\n\t\t\tString alerta = \"\";\n\n\t\t\tControlDiarioAlertaDto controlDA = null;\n\t\t\tfor (ControlDiario controlDiario : controlD) {\n\t\t\t\tif (controlDiario.getTiempo().getHours() < prop.getHorasLaboradas()) {\n\t\t\t\t\talerta = \"EL USUARIO NO CUMPLE CON LAS 9 HORAS ESTABLECIDAS\";\n\t\t\t\t\t// System.out.println(\"EL usuario :\" + controlDiario.getNombre() + \" no cumplio\n\t\t\t\t\t// las 9 horas correspondietes\");\n\n\t\t\t\t\t// se carga el DTO solo si el usuario no cumple con las horas establecidas\n\t\t\t\t\tcontrolDA = new ControlDiarioAlertaDto(controlDiario.getFecha().toString(),\n\t\t\t\t\t\t\tString.valueOf(controlDiario.getCodigoUsuario()), controlDiario.getNombre(),\n\t\t\t\t\t\t\tcontrolDiario.getEntrada().toString(), controlDiario.getSalida().toString(),\n\t\t\t\t\t\t\tcontrolDiario.getTiempo().toString(), alerta);\n\n\t\t\t\t\t// Se agrega a la lista de controlDiarioalertaDTO para returnarlo para generar\n\t\t\t\t\t// el reporte\n\t\t\t\t\tcontrolAlertas.add(controlDA);\n\n\t\t\t\t} else {\n\t\t\t\t\talerta = \"\";\n\t\t\t\t}\n\n\t\t\t\t// System.out.println(controlDA.toString());\n\n\t\t\t}\n\n\t\t\treturn controlAlertas;\n\n\t\t} catch (Exception e) {\n\n\t\t\tSystem.out.println(e);\n\n\t\t}\n\n\t\treturn controlAlertas;\n\t}", "boolean hasTime();", "boolean hasTime();", "public int compare(TimeEntry t1, TimeEntry t2) {\n\t\t\t\t\treturn t1.getTime().compareTo(t2.getTime());\n\t\t\t\t//return 1;\n\t\t\t }", "private void normalGmtStringToMinutes() {\n int i = Integer.parseInt(gmtString.substring(4, 6));\n offsetMinutes = i * 60;\n i = Integer.parseInt(gmtString.substring(7));\n offsetMinutes += i;\n if (gmtString.charAt(3) == MINUS) {\n offsetMinutes *= -1;\n }\n }", "public static void main(String[] args) throws ParseException {\n String beginWorkDate = \"8:00:00\";//上班时间\n String endWorkDate = \"12:00:00\";//下班时间\n SimpleDateFormat sdf = new SimpleDateFormat(TimeUtil.DF_ZH_HMS);\n long a = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(endWorkDate));\n System.out.println(a/30);\n\n String beginRestDate = \"8:30:00\";//休息时间\n String endRestDate = \"9:00:00\";\n long e = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(beginRestDate));\n long f = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(endRestDate));\n\n String beginVactionDate = \"10:00:00\";//请假时间\n String endVactionDate = \"11:00:00\";\n long b= TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(beginVactionDate));\n long c= TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(endVactionDate));\n\n String time = \"9:00:00\";//被别人预约的\n long d = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(time));\n List<Integer> num = new ArrayList<>();\n num.add((int) (d/30));\n\n String myTime = \"11:30:00\";//我约的\n long g = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(myTime));\n List<Integer> mynum = new ArrayList<>();\n mynum.add((int) (g/30));\n\n\n List<Date> yes = new ArrayList<>();//能约\n List<Date> no = new ArrayList<>();//不能约\n List<Date> my = new ArrayList<>();//我约的\n for (int i = 0; i < a/30; i ++) {\n Date times = TimeUtil.movDateForMinute(sdf.parse(beginWorkDate), i * 30);\n System.out.println(sdf.format(times));\n yes.add(times);\n if ((i >= e / 30 && i < f / 30) || (i >= b / 30 && i < c / 30)) {\n //休息时间,请假时间\n no.add(times);\n yes.remove(times);\n continue;\n }\n for (Integer n : num) {\n if (i == n) {\n //被预约时间\n no.add(times);\n yes.remove(times);\n }\n }\n for (Integer n : mynum) {\n if (i == n) {\n //被预约时间\n my.add(times);\n }\n }\n }\n }", "public boolean checkTime(Calendar from,Calendar to,Calendar time)\n {\n if(time.after(from) && time.before(to))\n {\n return true;\n }\n return false;\n }", "public int compareTimes(String rhsTime, String lhsTime) {\n Date rhsDate = parseDate_stringToTime(rhsTime);\n Date lhsDate = parseDate_stringToTime(lhsTime);\n\n if (rhsDate.getHours() == lhsDate.getHours()) {\n if (rhsDate.getMinutes() == lhsDate.getMinutes()) {\n return 0;\n } else return rhsDate.getMinutes() - lhsDate.getMinutes();\n } else {\n return rhsDate.getHours() - lhsDate.getHours();\n }\n }", "public static String getNowTimeHHMM() {\n\t\tSimpleDateFormat timeFormat = new SimpleDateFormat(\"HH:mm\");\n\t\treturn timeFormat.format(new Date());\n\t}", "public String toString() {\n return hour+\" \"+minute;\r\n }", "@Override\r\n\tpublic int connectingTime() {\r\n\t\tint totalTime = 0;\r\n\t\tfor (int i = 0; i < flights.size()-1; i++) {\r\n\t\t\tString time1 = \"\" + flights.get(i).getData().getArrivalTime();\r\n\t\t\tif (time1.length() < 3)\r\n\t\t\t\ttime1 = \"00\" + time1;\r\n\t\t\tif (time1.length() < 4)\r\n\t\t\t\ttime1 = \"0\" + time1;\r\n\t\t\t\r\n\t\t\tString time2 = \"\" + flights.get(i+1).getData().getDepartureTime();\r\n\t\t\tif (time1.length() < 3)\r\n\t\t\t\ttime1 = \"00\" + time1;\r\n\t\t\tif (time2.length() < 4)\r\n\t\t\t\ttime2 = \"0\" + time2;\r\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"HHmm\");\r\n\t\t\tDate date1 = null;\r\n\t\t\tDate date2 = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tdate1 = format.parse(time1);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tdate2 = format.parse(time2);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tlong difference = 0;\r\n\t\t\tdifference = date2.getTime() - date1.getTime();\r\n\t\t\tif(difference < 0) {\r\n\t\t\t\tdifference += 24*60*60*1000;\r\n\t\t\t}\r\n\t\t\ttotalTime += difference;\r\n\t\t}\r\n\t\treturn totalTime;\r\n\t}" ]
[ "0.6954963", "0.6325497", "0.6200974", "0.6118351", "0.5689943", "0.55654293", "0.55533576", "0.5495154", "0.5464385", "0.5438692", "0.5382784", "0.53681475", "0.53586704", "0.53586704", "0.53303134", "0.5320557", "0.5319286", "0.52443296", "0.52192885", "0.52093595", "0.51547027", "0.51500535", "0.51333946", "0.5120101", "0.51198435", "0.51154953", "0.5081325", "0.5075039", "0.50678617", "0.5065568", "0.5052843", "0.50497174", "0.504565", "0.5043223", "0.5037173", "0.5035696", "0.50309", "0.5022058", "0.50172246", "0.5009263", "0.5009171", "0.5003461", "0.499401", "0.49936944", "0.49827725", "0.49748066", "0.49740064", "0.49718085", "0.49691716", "0.49685574", "0.49593997", "0.49590117", "0.49566972", "0.49551207", "0.49526873", "0.49369693", "0.49301788", "0.4927291", "0.49204934", "0.4917847", "0.49076515", "0.49045944", "0.49024108", "0.49023002", "0.49013376", "0.48927736", "0.48889711", "0.48825613", "0.48767588", "0.48734277", "0.48724267", "0.48693407", "0.48682496", "0.4859482", "0.48497543", "0.48481372", "0.4848037", "0.48426637", "0.48415497", "0.48338833", "0.48286656", "0.4821836", "0.48204428", "0.48144442", "0.47987363", "0.4795166", "0.47935763", "0.4789008", "0.4788438", "0.4787913", "0.47720832", "0.47720832", "0.47680828", "0.47618377", "0.4754559", "0.47320104", "0.47276995", "0.47273657", "0.47241914", "0.4723334" ]
0.56190014
5
Verifica se eh dia util (Verifica por feriado nacional,municipal e se final de semana) Auhtor: Rafael Pinto Data: 23/08/2007
@SuppressWarnings("rawtypes") public static boolean ehDiaUtil(Date dataAnalisada, Collection<NacionalFeriado> colecaoNacionalFeriado, Collection<MunicipioFeriado> colecaoMunicipioFeriado) { boolean ehDiaUtil = true; Calendar calendar = new GregorianCalendar(); calendar.setTime(dataAnalisada); int diaDaSemana = calendar.get(Calendar.DAY_OF_WEEK); // Verifica se eh Sabado ou Domingo if (diaDaSemana == Calendar.SATURDAY || diaDaSemana == Calendar.SUNDAY) { ehDiaUtil = false; // Verifica se eh Feriado } else { if (colecaoNacionalFeriado != null && !colecaoNacionalFeriado.isEmpty()) { Iterator itera = colecaoNacionalFeriado.iterator(); while (itera.hasNext()) { NacionalFeriado nacionalFeriado = (NacionalFeriado) itera.next(); if (nacionalFeriado.getData().compareTo(dataAnalisada) == 0) { ehDiaUtil = false; break; } } } if (ehDiaUtil) { if (colecaoMunicipioFeriado != null && !colecaoMunicipioFeriado.isEmpty()) { Iterator itera = colecaoMunicipioFeriado.iterator(); while (itera.hasNext()) { MunicipioFeriado municipioFeriado = (MunicipioFeriado) itera.next(); if (municipioFeriado.getDataFeriado().compareTo(dataAnalisada) == 0) { ehDiaUtil = false; break; } } } } }// fim do if diaSemana return ehDiaUtil; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean fechaVigente(String fechafinal, String horafinal)\r\n\t{\r\n\t\tboolean vigente = true;\r\n\t\tGregorianCalendar calendario = new GregorianCalendar();\r\n\t\tint añoactual = calendario.get(Calendar.YEAR);\r\n\t\tint mesactual = (calendario.get(Calendar.MONTH)+1);\r\n\t\tint diaactual = calendario.get(Calendar.DAY_OF_MONTH);\r\n\t\tString fechaactual = añoactual+\"-\"+mesactual+\"-\"+diaactual;\r\n\t\tint horasactuales = calendario.get(Calendar.HOUR_OF_DAY);\r\n\t\tint minutosactuales = calendario.get(Calendar.MINUTE);\r\n\t\tint segundosactuales = calendario.get(Calendar.SECOND);\r\n\t\tString horaactual = horasactuales+\":\"+minutosactuales+\":\"+segundosactuales;\r\n\t\t\r\n\t\tint añofinal = 0;\r\n\t\tint mesfinal = 0;\r\n\t\tint diafinal = 0;\r\n\t\t\r\n\t\tint horasfinales = 0;\r\n\t\tint minutosfinales = 0;\r\n\t\tint segundosfinales = 0;\r\n\r\n\t\tString numerofecha = \"\";\r\n\t\tfor (int i = 0; i < (fechafinal.length()); i++) \r\n\t\t{\r\n\t\t\tchar digito = fechafinal.charAt(i);\r\n\t\t\tif(digito == '0' || digito == '1' || digito == '2' || digito == '3' || digito == '4' || digito == '5' || digito == '6' || digito == '7' || digito == '8' || digito == '9')\r\n\t\t\t{\r\n\t\t\t\tnumerofecha += digito;\r\n\t\t\t\tif((i+1) == (fechafinal.length()))\r\n\t\t\t\t{\r\n\t\t\t\t\tif(añofinal == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tañofinal = Integer.parseInt(numerofecha);\r\n\t\t\t\t\t\tnumerofecha = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(mesfinal == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmesfinal = Integer.parseInt(numerofecha);\r\n\t\t\t\t\t\tnumerofecha = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(diafinal == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdiafinal = Integer.parseInt(numerofecha);\r\n\t\t\t\t\t\tnumerofecha = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tif(añofinal == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tañofinal = Integer.parseInt(numerofecha);\r\n\t\t\t\t\tnumerofecha = \"\";\r\n\t\t\t\t}\r\n\t\t\t\telse if(mesfinal == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tmesfinal = Integer.parseInt(numerofecha);\r\n\t\t\t\t\tnumerofecha = \"\";\r\n\t\t\t\t}\r\n\t\t\t\telse if(diafinal == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tdiafinal = Integer.parseInt(numerofecha);\r\n\t\t\t\t\tnumerofecha = \"\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tString numerohora = \"\";\r\n\t\tfor (int i = 0; i < (horafinal.length()); i++) \r\n\t\t{\r\n\t\t\tchar digito = horafinal.charAt(i);\r\n\t\t\tif(digito == '0' || digito == '1' || digito == '2' || digito == '3' || digito == '4' || digito == '5' || digito == '6' || digito == '7' || digito == '8' || digito == '9')\r\n\t\t\t{\r\n\t\t\t\tnumerohora += digito;\r\n\t\t\t\tif((i+1) == (horafinal.length()))\r\n\t\t\t\t{\r\n\t\t\t\t\tif(horasfinales == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\thorasfinales = Integer.parseInt(numerohora);\r\n\t\t\t\t\t\tnumerohora = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(minutosfinales == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tminutosfinales = Integer.parseInt(numerohora);\r\n\t\t\t\t\t\tnumerohora = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(segundosfinales == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsegundosfinales = Integer.parseInt(numerohora);\r\n\t\t\t\t\t\tnumerohora = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tif(horasfinales == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\thorasfinales = Integer.parseInt(numerohora);\r\n\t\t\t\t\tnumerohora = \"\";\r\n\t\t\t\t}\r\n\t\t\t\telse if(minutosfinales == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tminutosfinales = Integer.parseInt(numerohora);\r\n\t\t\t\t\tnumerohora = \"\";\r\n\t\t\t\t}\r\n\t\t\t\telse if(segundosfinales == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tsegundosfinales = Integer.parseInt(numerohora);\r\n\t\t\t\t\tnumerohora = \"\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tString fechafinal2 = añofinal+\"-\"+mesfinal+\"-\"+diafinal;\r\n\t\tString horafinal2 = horasfinales+\":\"+minutosfinales+\":\"+segundosfinales;\r\n\t\tif(añoactual >= añofinal)\r\n\t\t{\r\n\t\t\tif(mesactual >= mesfinal)\r\n\t\t\t{\r\n\t\t\t\tif(diaactual >= diafinal)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(horasactuales >= horasfinales)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(minutosactuales >= minutosfinales)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tvigente = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn vigente;\r\n\t}", "public static boolean validarFecha(String fecha)\n\t{\n\t\tCalendar calendario = Calendar.getInstance();\n\t \tint hora,minutos,segundos,dia,mes,ano;\n\t \thora =calendario.get(Calendar.HOUR_OF_DAY);\n\t \tminutos = calendario.get(Calendar.MINUTE);\n\t \tsegundos = calendario.get(Calendar.SECOND);\t \t\n\t \t\n\t \tdia = calendario.get(Calendar.DAY_OF_MONTH);\n\t \tmes = calendario.get(Calendar.MONTH);\n\t \tmes=mes+1;\n\t\tano = calendario.get(Calendar.YEAR);\t\t\n\t\tString diaFecha;\n\t\tString mesFecha;\n\t\tString anoFecha = null;\n\t\t\n\t\tint pos = 0;\n\t\tpos = fecha.indexOf('/');\n\t\tSystem.out.println(\"la posicion del primer slash es: \"+pos);\n\t\tdiaFecha = fecha.substring(0,pos);\n\t\tString resto = fecha.substring(pos+1,fecha.length());\n\t\tint pos2 = 0;\n\t\tpos2 = resto.indexOf('/');\n\t\tmesFecha = resto.substring(0,pos2);\n\t\tString resto2 = resto.substring(pos2+1,resto.length());//resto 3 es el ano\t\t\n\t\tSystem.out.println(\"la fecha es:\"+diaFecha+\",\"+mesFecha+\",\"+resto2);\t\t\n\t\tint diaInt,mesInt,anoInt;\n\t\tdiaInt=Integer.parseInt(diaFecha);\n\t\tmesInt=Integer.parseInt(mesFecha);\n\t\tanoInt=Integer.parseInt(resto2);\t\t\n\t\tSystem.out.println(\"fechaSistema:\"+dia+\"/\"+mes+\"/\"+ano);\n\t\tSystem.out.println(\"fechaEntrada:\"+diaInt+\"/\"+mesInt+\"/\"+anoInt);\n\t\tif ((anoInt<ano))\n\t\t{\n\t\t\tSystem.out.println(\"fecha de entrada es menor\");\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (mesInt<mes)\n\t\t\t{\t\t\t\t\n\t\t\t\tSystem.out.println(\"fecha de entrada es menor\");\n\t\t\t\treturn true;\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (diaInt < dia)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"fecha de entrada es menor\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n \t\n\t}", "public boolean esMayorDeEdad(){\r\n \t\tboolean mayor=false;\r\n \t\tif (obtenerAnios()>=18){\r\n\t\t\tmayor=true;\r\n\t\t}\r\n\t\treturn mayor;\r\n\t}", "private boolean diaHabilDomingoPlacaA(int diaActual){\n\t\treturn diaActual == DOMINGO;\n\t}", "private boolean validarDados(String dados) throws ParseException, SQLException {\n\t\ttry {\r\n\t\t\tString licencaFull = SystemManager.getProperty(\"licenca.sistema\");\r\n\t\t\tlicencaFull = Criptografia.newInstance(SystemManager.getProperty(Constants.Parameters.Licenca.LICENCA_KEY)).decripto(licencaFull);\r\n\t\t\tif (licencaFull != null && licencaFull.equals(\"ENTERPRISE EDITION\")) {\r\n\t\t\t\twrite(\"ok\");\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\tCalendar dataAtual = Calendar.getInstance();\r\n\t\t\r\n\t\t// Checa os dados\r\n\t\tString dataStr = dados.substring(0, 10);\r\n\t\tCalendar data = Calendar.getInstance(); \r\n\t\tdata.setTime(sdf.parse(dataStr));\r\n\t\t\r\n\t\t// Verifica se já está vencido...\r\n\t\tif (data.before(dataAtual)) {\r\n\t\t\t// o campo fieldname indica se podera ou nao fechar a janela\r\n\t\t\tint diasAtual = (dataAtual.get(Calendar.YEAR) * 365) + dataAtual.get(Calendar.DAY_OF_YEAR); \r\n\t\t\tint dias = (data.get(Calendar.YEAR) * 365) + data.get(Calendar.DAY_OF_YEAR);\r\n\t\t\tint diferenca = diasAtual - dias;\r\n\t\t\twriteErrorMessage(\"Sistema vencido à \" + diferenca + \" dias!\", diferenca>30?\"N\":\"S\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Verifica o CNPJ da loja\r\n\t\tString cnpj = dados.substring(11, 25);\r\n\t\tif (!cnpj.equals(lojasessao.getCNPJLoja())) {\r\n\t\t\twriteErrorMessage(\"Cnpj da licença difere do Cnpj desta loja!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tint quantidadeUsuariosLicenca = Integer.parseInt(dados.substring(26, 31));\r\n\t\t\r\n\t\t// Verifica numero de usuarios\r\n\t\tUsuarioDAO usuDao = new UsuarioDAO();\r\n\t\tList<UsuarioVO> list = usuDao.getList();\r\n\t\t\r\n\t\t// Verifica quantos estao ativos\r\n\t\tint quantidadeAtivos = 0;\r\n\t\tfor (UsuarioVO usuario : list) {\r\n\t\t\tif (usuario.isAtivo()) {\r\n\t\t\t\tquantidadeAtivos++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (quantidadeUsuariosLicenca < quantidadeAtivos) {\r\n\t\t\twriteErrorMessage(\"Licença inválida para a quantidade de usuários ativos no sistema!\", \"N\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Salva a data de hoje\r\n\t\tParametroLojaVO parmData = new ParametroLojaVO();\r\n\t\tparmData.setChaveParametro(Constants.Parameters.Licenca.DATA_SISTEMA);\r\n\t\tparmData.setCodigoEmpresa(empresasessao.getCodigoEmpresa());\r\n\t\tparmData.setCodigoLoja(lojasessao.getCodigoLoja());\r\n\t\t\r\n\t\tParametroLojaDAO dao = new ParametroLojaDAO();\r\n\t\tparmData = dao .get(parmData);\r\n\t\t\r\n\t\tif (parmData == null) {\r\n\t\t\tparmData = new ParametroLojaVO();\r\n\t\t\tparmData.setChaveParametro(Constants.Parameters.Licenca.DATA_SISTEMA);\r\n\t\t\tparmData.setCodigoEmpresa(empresasessao.getCodigoEmpresa());\r\n\t\t\tparmData.setCodigoLoja(lojasessao.getCodigoLoja());\r\n\t\t\tparmData.setNewRecord(true);\r\n\t\t}\r\n\t\t\r\n\t\tString dataHojeStr = sdf.format(Utils.getToday());\r\n\t\t\r\n\t\ttry {\r\n\t\t\tdataHojeStr = Criptografia.newInstance(SystemManager.getProperty(Constants.Parameters.Licenca.LICENCA_KEY)).cripto(dataHojeStr);\r\n\t\t} catch (Exception e) { }\r\n\t\t\r\n\t\tparmData.setValorParametro(dataHojeStr);\r\n\t\tdao.persist(parmData);\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public static boolean isMaggiorenne(Date dataDiNascita) {\r\n if (dataDiNascita != null) {\r\n Calendar cal = GregorianCalendar.getInstance(TimeZone.getTimeZone(\"Europe/Rome\"));\r\n cal.set(Calendar.YEAR, cal.get(Calendar.YEAR) - 18);\r\n return cal.getTime().after(dataDiNascita);\r\n }\r\n return false;\r\n }", "private boolean validaFechasPrimerDiaLaboral(int indice,boolean isSol, int CodEmp, int CodLoc){\n boolean blnRes=false;\n try{\n if(objTblMod.getValueAt(indice, INT_TBL_DAT_EST_FAC_PRI_DIA_LAB).toString().equals(\"S\")){\n if(isSol){\n if(getFechaLab(CodEmp,CodLoc).equals(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL).toString())){\n blnRes=true;\n }\n //strFechaSol=objUti.formatearFecha(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL).toString(),\"dd/MM/yyyy\",objParSis.getFormatoFechaBaseDatos());\n }\n else{\n if(getFechaLab(CodEmp,CodLoc).equals(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL_FAC_AUT).toString())){\n blnRes=true;\n }\n //strFechaSol=objUti.formatearFecha(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL_FAC_AUT).toString(),\"dd/MM/yyyy\",objParSis.getFormatoFechaBaseDatos());\n }\n }\n else{\n blnRes=true;\n }\n \n } \n catch(Exception e){\n objUti.mostrarMsgErr_F1(null, e);\n blnRes=false;\n }\n return blnRes;\n }", "private boolean evaluarEntrada(Date fechaPoliza, AnalisisDeFlete det) {\r\n\t\treturn true;\r\n\t}", "public boolean fechaSesionAnterior(String fechasesion)\r\n\t{\r\n\t\tboolean anterior = false;\r\n\t\tGregorianCalendar calendario = new GregorianCalendar();\r\n\t\tint añoactual = calendario.get(Calendar.YEAR);\r\n\t\tint mesactual = (calendario.get(Calendar.MONTH)+1);\r\n\t\tint diaactual = calendario.get(Calendar.DAY_OF_MONTH);\r\n\t\tString fechaactual = añoactual+\"-\"+mesactual+\"-\"+diaactual;\r\n\t\t\r\n\t\tint añosesion = 0;\r\n\t\tint messesion = 0;\r\n\t\tint diasesion = 0;\r\n\t\t\r\n\t\tString numerofecha = \"\";\r\n\t\tfor (int i = 0; i < (fechasesion.length()); i++) \r\n\t\t{\r\n\t\t\tchar digito = fechasesion.charAt(i);\r\n\t\t\tif(digito == '0' || digito == '1' || digito == '2' || digito == '3' || digito == '4' || digito == '5' || digito == '6' || digito == '7' || digito == '8' || digito == '9')\r\n\t\t\t{\r\n\t\t\t\tnumerofecha += digito;\r\n\t\t\t\tif((i+1) == (fechasesion.length()))\r\n\t\t\t\t{\r\n\t\t\t\t\tif(añosesion == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tañosesion = Integer.parseInt(numerofecha);\r\n\t\t\t\t\t\tnumerofecha = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(messesion == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmessesion = Integer.parseInt(numerofecha);\r\n\t\t\t\t\t\tnumerofecha = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(diasesion == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdiasesion = Integer.parseInt(numerofecha);\r\n\t\t\t\t\t\tnumerofecha = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tif(añosesion == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tañosesion = Integer.parseInt(numerofecha);\r\n\t\t\t\t\tnumerofecha = \"\";\r\n\t\t\t\t}\r\n\t\t\t\telse if(messesion == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tmessesion = Integer.parseInt(numerofecha);\r\n\t\t\t\t\tnumerofecha = \"\";\r\n\t\t\t\t}\r\n\t\t\t\telse if(diasesion == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tdiasesion = Integer.parseInt(numerofecha);\r\n\t\t\t\t\tnumerofecha = \"\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif((añosesion) <= añoactual)\r\n\t\t{\r\n\t\t\tif((messesion) <= mesactual)\r\n\t\t\t{\r\n\t\t\t\tif((diasesion+3) <= diaactual)\r\n\t\t\t\t{\r\n\t\t\t\t\tanterior = true;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\treturn anterior;\r\n\t}", "private void affichageDateFin() {\r\n\t\tif (dateFinComptage!=null){\r\n\t\t\tSystem.out.println(\"Le comptage est clos depuis le \"+ DateUtils.format(dateFinComptage));\r\n\t\t\tif (nbElements==0){\r\n\t\t\t\tSystem.out.println(\"Le comptage est clos mais n'a pas d'éléments. Le comptage est en anomalie.\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"Le comptage est clos et est OK.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Le compte est actif.\");\r\n\t\t}\r\n\t}", "private boolean validacionesSolicitarReserva(int indice, int CodEmp, int CodLoc, int CodCot, boolean isSol){\n boolean blnRes=true;\n try{\n if(!validaItemsServicio(CodEmp, CodLoc, CodCot)){\n blnRes=false;\n MensajeInf(\"La cotizacion contiene Items de Servicio o Transporte, los cuales no deben ser reservados.\");\n }\n\n if(!validaFechasMAX(indice, tblDat.getValueAt(indice,INT_TBL_DAT_STR_TIP_RES_INV).toString(),isSol)){\n blnRes=false;\n MensajeInf(\"La Fecha solicitada es mayor a la permitida, revise la Fecha y vuelva a intentarlo\");\n }\n \n if(!validaTerminalesLSSegunEmpresaLocal(CodEmp,CodLoc,CodCot)){\n blnRes=false;\n MensajeInf(\"No puede solicitar reserva de codigos L/S en este local, debe reservarlo por el local que puede ser facturado\");\n }\n \n if(!validaFechasPrimerDiaLaboral(indice,isSol,CodEmp,CodLoc)){\n blnRes=false;\n MensajeInf(\"La Fecha solicitada, no corresponde al primer dia laboral registrado\");\n } \n \n if(tblDat.getValueAt(indice,INT_TBL_DAT_STR_TIP_RES_INV).toString().equals(\"R\")){\n if(!validaTerminalesLReservaLocal(CodEmp,CodLoc,CodCot)){\n blnRes=false;\n MensajeInf(\"No puede solicitar Reserva en Empresa de Codigos L \");\n }\n }\n }\n catch(Exception e){\n objUti.mostrarMsgErr_F1(null, e);\n blnRes=false;\n }\n return blnRes;\n }", "private boolean es_delDia(Lote unLote) {\n boolean ok = false;\n\n if (unLote != null) {\n Calendar hoy = Calendar.getInstance();\n Calendar fechaLote = Calendar.getInstance();\n fechaLote.setTime(unLote.getFechaLote());\n if (hoy.get(Calendar.DAY_OF_YEAR) == fechaLote.get(Calendar.DAY_OF_YEAR)) {\n ok = true;\n }\n }\n return ok;\n }", "public void verificarMatriculado() {\r\n\t\ttry {\r\n\t\t\tif (periodo == null)\r\n\t\t\t\tMensaje.crearMensajeERROR(\"ERROR AL BUSCAR PERIODO HABILITADO\");\r\n\t\t\telse {\r\n\t\t\t\tif (mngRes.buscarNegadoPeriodo(getDniEstudiante(), periodo.getPrdId()))\r\n\t\t\t\t\tMensaje.crearMensajeWARN(\r\n\t\t\t\t\t\t\t\"Usted no puede realizar una reserva. Para más información diríjase a las oficinas de Bienestar Estudiantil.\");\r\n\t\t\t\telse {\r\n\t\t\t\t\testudiante = mngRes.buscarMatriculadoPeriodo(getDniEstudiante(), periodo.getPrdId());\r\n\t\t\t\t\tif (estudiante == null) {\r\n\t\t\t\t\t\tMensaje.crearMensajeWARN(\r\n\t\t\t\t\t\t\t\t\"Usted no esta registrado. Para más información diríjase a las oficinas de Bienestar Universitario.\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tmngRes.generarEnviarToken(getEstudiante());\r\n\t\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('dlgtoken').show();\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tMensaje.crearMensajeERROR(\"Error verificar matrícula: \" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\r\n\t\tScanner teclado = new Scanner(System.in);\r\n\r\n\t\tfinal int DIA_ACTUAL = 9, MES_ACTUAL = 11, AÑO_ACTUAL = 2018;\r\n\r\n\t\tint dia = 0, año = 0, mes_numerico = 0, años_totales = 0;\r\n\r\n\t\tString mes = \" \";\r\n\r\n\t\tboolean bisiesto = false;\r\n\r\n\t\tSystem.out.println(\"Introduzca un mes valido \");\r\n\t\tmes = teclado.nextLine();\r\n\r\n\t\tSystem.out.println(\"Introduzca un dia valido \");\r\n\t\tdia = teclado.nextInt();\r\n\r\n\t\tSystem.out.println(\"Introduzca un año \");\r\n\t\taño = teclado.nextInt();\r\n\r\n\t\tif ((año % 4 == 0) && (año % 100 != 0) || (año % 400 == 0)) {\r\n\r\n\t\t\tbisiesto = true;\r\n\t\t}\r\n\r\n\t\tswitch (mes) {\r\n\r\n\t\tcase \"enero\":\r\n\r\n\t\t\tmes_numerico = 1;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"febrero\":\r\n\r\n\t\t\tmes_numerico = 2;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"marzo\":\r\n\r\n\t\t\tmes_numerico = 3;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"abril\":\r\n\r\n\t\t\tmes_numerico = 4;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"mayo\":\r\n\r\n\t\t\tmes_numerico = 5;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"junio\":\r\n\r\n\t\t\tmes_numerico = 6;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"julio\":\r\n\r\n\t\t\tmes_numerico = 7;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"agosto\":\r\n\r\n\t\t\tmes_numerico = 8;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"septiembre\":\r\n\r\n\t\t\tmes_numerico = 9;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"octubre\":\r\n\r\n\t\t\tmes_numerico = 10;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"noviembre\":\r\n\r\n\t\t\tmes_numerico = 11;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"diciembre\":\r\n\r\n\t\t\tmes_numerico = 12;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\r\n\t\t\tSystem.out.println(\"Introduzca un mes correcto \");\r\n\t\t\tmes = teclado.nextLine();\r\n\r\n\t\t\tbreak;\r\n\r\n\t\t}\r\n\r\n\t\taños_totales = AÑO_ACTUAL - año;\r\n\r\n\t\tif ((mes_numerico == 1 || mes_numerico == 3 || mes_numerico == 5 || mes_numerico == 7 || mes_numerico == 8\r\n\t\t\t\t|| mes_numerico == 10 || mes_numerico == 12) && (dia <= 31)) {\r\n\r\n\t\t\tif ((mes_numerico > MES_ACTUAL) || (MES_ACTUAL == mes_numerico && dia > DIA_ACTUAL)) {\r\n\r\n\t\t\t\taños_totales--;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Tu cantidad de años es \" + años_totales);\r\n\r\n\t\t} else if ((mes_numerico == 4 || mes_numerico == 6 || mes_numerico == 9 || mes_numerico == 11) && (dia <= 30)) {\r\n\r\n\t\t\tif ((mes_numerico > MES_ACTUAL) || (MES_ACTUAL == mes_numerico && dia > DIA_ACTUAL)) {\r\n\r\n\t\t\t\taños_totales--;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Tu cantidad de años es \" + años_totales);\r\n\r\n\t\t} else if ((mes_numerico == 2 && bisiesto) && (dia <= 29)) {\r\n\r\n\t\t\tif ((mes_numerico > MES_ACTUAL) || (MES_ACTUAL == mes_numerico && dia > DIA_ACTUAL)) {\r\n\r\n\t\t\t\taños_totales--;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Tu cantidad de años es \" + años_totales);\r\n\r\n\t\t} else if ((mes_numerico == 2 && !bisiesto) && (dia <= 28)) {\r\n\r\n\t\t\tif ((mes_numerico > MES_ACTUAL) || (MES_ACTUAL == mes_numerico && dia > DIA_ACTUAL)) {\r\n\r\n\t\t\t\taños_totales--;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Tu cantidad de años es \" + años_totales);\r\n\r\n\t\t} else {\r\n\r\n\t\t\tSystem.out.println(\"La fecha introducida no es correcta \");\r\n\t\t}\r\n\r\n\t\tteclado.close();\r\n\r\n\t}", "private boolean verificaAppuntamento(Appuntamento a) {\r\n\t\tPattern p;\r\n\t\tMatcher m;\r\n\t\t\r\n\t\tif(\ta.getNome() \t\t== null ||\r\n\t\t\ta.getCognome() \t\t== null ||\r\n\t\t\ta.getData() \t\t== null ||\r\n\t\t\ta.getOra() \t\t\t== null ||\r\n\t\t\ta.getDescrizione() \t== null ||\r\n\t\t\ta.getContatto() \t== null) {\r\n\t\t\tSystem.err.println(\"AppuntamentoManager.verificaAppuntmanto() - campi nulli non ammessi\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tp = Pattern.compile(\"[a-zA-Z]{3,30}\");\r\n\t\tm = p.matcher(a.getNome());\r\n\t\tif(!m.matches()) {\r\n\t\t\tSystem.err.println(\"AppuntamentoManager.verificaAppuntamento - fallita validazione nome: \" + a.getNome());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tp = Pattern.compile(\"[a-zA-Z]{3,30}\");\r\n\t\tm = p.matcher(a.getCognome());\r\n\t\tif(!m.matches()) {\r\n\t\t\tSystem.err.println(\"AppuntamentoManager.verificaAppuntamento - fallita validazione cognome: \" + a.getCognome());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tp = Pattern.compile(\"^(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[012])/(19|20)[0-9]{2}$\");\r\n\t\tm = p.matcher(a.getData());\r\n\t\tif(!m.matches()) {\r\n\t\t\tSystem.err.println(\"AppuntamentoManager.verificaAppuntamento - fallita validazione data: \" + a.getData());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tp = Pattern.compile(\"^([0-1][0-9]|2[0-3]):([0-5][0-9])$\");\r\n\t\tm = p.matcher(a.getOra());\r\n\t\tif(!m.matches()) {\r\n\t\t\tSystem.err.println(\"AppuntamentoManager.verificaAppuntamento - fallita validazione ora: \" + a.getOra());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tp = Pattern.compile(\"[a-zA-Z0-9 ]*\");\r\n\t\tm = p.matcher(a.getDescrizione());\r\n\t\tif(!m.matches()) {\r\n\t\t\tSystem.err.println(\"AppuntamentoManager.verificaAppuntamento - fallita validazione descrizione: \" + a.getDescrizione());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tp = Pattern.compile(\"[a-zA-Z0-9.@,:;\\\"'-_ ]*\");\r\n\t\tm = p.matcher(a.getContatto());\r\n\t\tif(!m.matches()) {\r\n\t\t\tSystem.err.println(\"AppuntamentoManager.verificaAppuntamento - fallita validazione contatto: \" + a.getContatto());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif((a.getStato() < 0) || (a.getStato() > 2)) {\r\n\t\t\tSystem.err.println(\"AppuntamentoManager.verificaAppuntamento - fallita validazione stato: \" + a.getStato());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "private boolean isPosicaoEstatal(int posicao) {\n\n boolean estatal = false;\n if (posicao == 12 || posicao == 28) {\n return true;\n } else {\n return false;\n }\n }", "public static String DiaActual(){\n java.util.Date fecha = new Date();\n int dia = fecha.getDay();\n String myDia=null;\n switch (dia){\n case 1:\n myDia=\"LUNES\";\n break;\n case 2:\n myDia=\"MARTES\";\n break;\n case 3:\n myDia=\"MIERCOLES\";\n break;\n case 4:\n myDia=\"JUEVES\";\n break;\n case 5:\n myDia=\"VIERNES\";\n break;\n case 6:\n myDia=\"SABADO\";\n break;\n case 7:\n myDia=\"DOMINGO\";\n break; \n }\n return myDia;\n }", "public void validar(Date fechaDesde, Date fechaHasta, int idOrganizacion)\r\n/* 43: */ throws ExcepcionAS2Financiero\r\n/* 44: */ {\r\n/* 45: 86 */ this.periodoDao.validar(fechaDesde, fechaHasta, idOrganizacion);\r\n/* 46: */ }", "public static void main(String[] args) {\n byte month=0;\n boolean days28 = month ==2;\n boolean days30 = month==4||month==6||month==9||month==11;\n boolean days31 = days28==false&&days30==false;\n if (days28){\n System.out.println(\"it has 28 days\");\n }\n if (days30){\n System.out.println(\"it has 30 days\");\n }\n if (days31){\n System.out.println(\"it has 31 days\");\n }\n\n }", "public boolean puedeEnviar(){\n\t\tDate hoy = new Date();\n\t\tint transcurridos = 0;\n\t\tif(fechaUltimaModificacion != null){\n\t\t\ttranscurridos = obtener_dias_entre_2_fechas(fechaUltimaModificacion, hoy);\n\t\t\tif(transcurridos > 3)\n\t\t\t\treturn false;\n\t\t}else if(fechaCreacion != null){\n\t\t\ttranscurridos = obtener_dias_entre_2_fechas(fechaCreacion, hoy);\n\t\t\tif(transcurridos > 3)\n\t\t\t\treturn false;\n\t\t} \n\t\treturn true;\t\n\t}", "private int verificarRemocao(No no){\n if(no.getDireita()==null && no.getEsquerda()==null)\n return 1;\n if((no.getDireita()==null && no.getEsquerda()!=null) || (no.getDireita()!=null && no.getEsquerda()==null))\n return 2;\n if(no.getDireita() != null && no.getEsquerda() != null)\n return 3;\n else return -1;\n }", "@SuppressWarnings(\"SuspiciousMethodCalls\")\n private int houve_estouro()\n {\n int retorno = 0;\n boolean checar = false;\n for (Map.Entry i: janela.entrySet())\n {\n if (janela.get(i.getKey()).isEstouro())\n {\n janela.get(i.getKey()).setEstouro(false);\n retorno =(int) i.getKey();\n checar = true;\n break;\n }\n }\n for(Map.Entry i2: janela.entrySet()) janela.get(i2.getKey()).setEstouro(false);\n if(checar) return retorno;\n else return -69;\n }", "@Test\n\tpublic void testRespondible4(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(20));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}", "@Test\n\tpublic void testRespondible3(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(20));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}", "public static void main(String[] args) throws ParseException {\t\t\n\t int mes, ano, diaDaSemana, primeiroDiaDoMes, numeroDeSemana = 1;\n\t Date data;\n\t \n\t //Converter texto em data e data em texto\n\t SimpleDateFormat sdf\t = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t //Prover o calendario\n\t GregorianCalendar gc\t = new GregorianCalendar();\n\t \n\t String mesesCalendario[] = new String[12];\n\t\tString mesesNome[]\t\t = {\"Janeiro\", \"Fevereiro\", \"Marco\", \"Abri\", \"Maio\", \"Junho\", \"Julho\", \"Agosto\", \"Setembro\", \"Outubro\", \"Novembro\", \"Dezembro\"};\n\t\tint mesesDia[]\t\t\t = {31,28,31,30,31,30,31,31,30,31,30,31};\n\t\t\n\t\t//Errado? e pra receber apenas o \"dia da semana\" do \"primeiro dia do mes\" na questao\n\t //Recebendo mes e ano\n\t mes = Entrada.Int(\"Digite o mes:\", \"Entrada de dados\");\n\t ano = Entrada.Int(\"Digite o ano:\", \"Entrada de dados\");\n\t \n\t //Errado? e pra ser o dia inicial do mes na questao\n\t // Dia inicial do ano\n data = sdf.parse(\"01/01/\" + ano);\n gc.setTime(data);\n diaDaSemana = gc.get(GregorianCalendar.DAY_OF_WEEK);\n \n //Nao sei se e necessario por causa da questao\n //*Alteracao feita||| Ano bissexto tem +1 dia em fevereiro\n if(ano % 4 == 0) {\n \tmesesDia[1] = 29;\n \tmesesNome[1] = \"Ano Bissexto - Fevereiro\";\n }\n \n \n //Meses \n for(int mesAtual = 0; mesAtual < 12; mesAtual++) {\n\t int diasDoMes\t= 0;\n\t String nomeMesAtual = \"\";\n\n\n\t nomeMesAtual = mesesNome[mesAtual]; \n diasDoMes\t = mesesDia[mesAtual]; \n\n\n mesesCalendario[mesAtual] = \"\\n \" + nomeMesAtual + \" de \" + ano + \"\\n\";\n mesesCalendario[mesAtual] += \"---------------------------------------------------------------------|\\n\";\n mesesCalendario[mesAtual] += \" Dom Seg Ter Qua Qui Sex Sab | Semanas\\n\";\n mesesCalendario[mesAtual] += \"---------------------------------------------------------------------|\\n \";\n\t\n\t \n\t // Primeira semana comeca em\n\t data = sdf.parse( \"01/\" + (mesAtual+1) + \"/\" + ano );\n gc.setTime(data);\n primeiroDiaDoMes = gc.get(GregorianCalendar.DAY_OF_WEEK);\n\t for (int space = 1; space < primeiroDiaDoMes; space++) {\n\t \tmesesCalendario[mesAtual] += \" \";\n\t }\n\t \n\t //Dias\t \n\t for (int diaAtual = 1; diaAtual <= diasDoMes; diaAtual++)\n\t {\n\t \t// Trata espaco do dia\n\t \t\t//Transforma o diaAtuel em String\n\t String diaTratado = Integer.toString(diaAtual);\n\t if (diaTratado.length() == 1)\n\t \tdiaTratado = \" \" + diaAtual + \" \";\n\t else\n\t \tdiaTratado = \" \" + diaAtual + \" \";\n\t \n\t // dia\n\t mesesCalendario[mesAtual] += diaTratado;\n\t \t\n\t \t// Pula Linha no final da semana\n\t data = sdf.parse( diaAtual + \"/\" + (mesAtual+1) + \"/\" + ano );\n\t gc.setTime(data);\n\t diaDaSemana = gc.get(GregorianCalendar.DAY_OF_WEEK);\n\t if (diaDaSemana == 7) {\n\t \tmesesCalendario[mesAtual] += (\"| \" + numeroDeSemana++);\n\t \tmesesCalendario[mesAtual] += \"\\n |\";\n\t \tmesesCalendario[mesAtual] += \"\\n \";\n\t }\n\t }\n\t mesesCalendario[mesAtual] += \"\\n\\n\\n\\n\";\n\t }\n\t \n //Imprime mes desejado\n\t System.out.println(mesesCalendario[mes-1]);\n\n\t}", "private boolean poseeSaldoAnterior() {\n boolean retorno = false;\n if(saldoAnterior !=null){\n retorno = true;\n }\n return retorno;\n }", "public boolean Victoria(){\n boolean respuesta=false;\n if(!(this.palabra.contains(\"-\"))&& this.oportunidades>0 && !(this.palabra.isEmpty())){\n this.heGanado=true;\n respuesta=true;\n }\n return respuesta;\n }", "public int valoreGiornoSettimana(){\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTimeZone(italia);\n\t\tcal.setTime(new Date());\n\t\treturn cal.get(Calendar.DAY_OF_WEEK);\n\t}", "public String estadoAlum() {\n String informacion = \"\";\n if (getProm() >= 60) {\n setCad(\"USTED APRUEBA CON TOTAL EXITO\");\n } else {\n if (getProm() <= 59) {\n setCad(\"REPROBADO\");\n }\n }\n return getCad();\n }", "private boolean verificarMascota(Perro perro, int edad){\n //Propiedades del perro a evaluar\n String raza = perro.getRaza();\n String tamano = perro.getTamano();\n\n boolean bandera = false;\n\n //Si hay un niño pequeño, y se le asigna un perro con tamaño pequeño y no es raza peligrosa\n if (edad < 10 && tamano.equals(\"pequeno\") && verificarRaza(raza))\n bandera = true;\n \n //Si hay un niño grande y se le asigna un perro con tamaño pequeño o mediano y no es raza peligrosa\n else if (18 > edad && edad > 10 && (tamano.equals(\"pequeno\") || tamano.equals(\"mediano\")) && verificarRaza(raza))\n bandera = true;\n\n //Si no hay niños \n else if (edad > 18)\n bandera = true;\n\n //Si la familia no es apta\n else\n bandera = false;\n\n return bandera;\n }", "public int verificaRelatorioAcesso(String usuario, String qtdDias, String dataIni, String dataFim, \n\t\t\tint pg, boolean group)\n\t{\n\t\tint dias = 0;\n //se a quantidade de dias estiver preenchida, ela é subtraida da data atual e a data resultante\n\t\t//é passada como periodo inicial\n\t\tif(qtdDias != null && qtdDias != \"\")\n\t\t{\n\t\t\tdias = Integer.parseInt(qtdDias);\n\t\t\tGregorianCalendar gc = new GregorianCalendar();\n\t\t gc.add(GregorianCalendar.DATE, (-1)*dias);\n\t\t int mes = gc.get(GregorianCalendar.MONTH)+1;//adiciona um ao mes por conta de comecar do zero. ex: janeiro = mes 0\n\t\t dataIni = gc.get(GregorianCalendar.YEAR)+\"-\"+mes+\"-\"+ gc.get(GregorianCalendar.DAY_OF_MONTH)+\" 00:00\";\t\t \n\t\t}\n\n\t\tString relatorioAcessoHTML = buscaRelatorioAcesso(usuario,dataIni,dataFim,pg,group);\n\t\tif(relatorioAcessoHTML != null)\n\t\t\treturn COM_DADOS;\n\t\treturn SEM_DADOS;\n\t}", "public boolean vacio() {\r\n return (tamaño == 0);\r\n }", "@Test\n\tpublic void testResponderEjercicio3(){\n\t\tPlataforma.setFechaActual(Plataforma.getFechaActual().plusDays(20));\n\t\tassertFalse(ej1.responderEjercicio(nacho, array));\n\t\tassertTrue(nacho.getEstadisticas().isEmpty());\n\t}", "public String procesarPrestamo(int carneEstudiante, String codigoLibro, Date fechaPrestamo, boolean validarCantidadCopias) {\n //PASO 1----------------------------------------------------------------------------------------------------\n if (!buscarEstudiante(carneEstudiante)) {\n return \"El estudiante no se encuentra registrado en el sistema\";\n } \n //PASO 2----------------------------------------------------------------------------------------------------\n else {\n if (comprobarLibrosPrestados(estudiante)) {\n return \"Se ha llegado al limite de prestamos por estudiante\";\n }\n //PASO 3---------------------------------------------------------------------------------------------------- \n else {\n if (!buscarLibro(codigoLibro)) {\n return \"El libro no se encuentra registrado en el sistema\";\n }\n //PASO 4---------------------------------------------------------------------------------------------------- \n else {\n if(validarCantidadCopias){\n \n if (!comprobarExistencias(libro)) {\n return \"Se han agotado las existencias del libro solicitado\"; \n }\n }\n //PASO 5---------------------------------------------------------------------------------------------------- \n fechaLimitePrestamo = manejadorFechas.sumarDias(fechaPrestamo,2); \n prestamo = new Prestamo(0,libro.getCodigo(), estudiante.getCarne(), fechaPrestamo, fechaLimitePrestamo,true, 0,0);\n guardarPrestamo(prestamo);\n agregarListado(estudiante, prestamo);\n if(validarCantidadCopias){\n disminuirCantidad(libro);\n }\n return \"Prestamo Realizado Exitosamente\"; \n } \n }\n }\n }", "private boolean diaHabilLunesPlacaA(int diaActual){\n\t\treturn diaActual == LUNES;\t\t\n\t}", "public int jogadorAtual() {\n return vez;\n }", "public static boolean testDaoLireUnRapportVisite() {\n boolean ok = true;\n RapportVisite unRapportVisite = null;\n try {\n unRapportVisite = daoRapportVisite.getOne(3);\n unRapportVisite.DateToString();\n } catch (Exception ex) {\n ok = false;\n }\n \n System.out.println(\"le rapport de visite:\");\n System.out.println(unRapportVisite);\n \n return ok;\n }", "private void verificaNome() {\r\n\t\thasErroNome(nome.getText());\r\n\t\tisCanSave();\r\n\t}", "public TelaInicial() {\n\n boolean expirou = false;\n if(new Date().after(new Date(2020 - 1900, Calendar.JULY, 31))){\n JOptionPane.showMessageDialog(this, \"Periodo de teste acabou.\");\n expirou = true;\n }\n initComponents(expirou);\n }", "public boolean validarFechaNac() {\n\t\treturn fecha_nac != null;\n\t}", "private void actualizaUsuario() {\n\t\t\n\t\tInteger edad=miCoordinador.validarEdad(campoEdad.getText().trim());\n\t\t\n\t\tif (edad!=null) {\n\t\t\t\n\t\t\tUsuarioVo miUsuarioVo=new UsuarioVo();\n\t\t\t//se asigna cada dato... el metodo trim() del final, permite eliminar espacios al inicio y al final, en caso de que se ingresen datos con espacio\n\t\t\tmiUsuarioVo.setDocumento(campoDocumento.getText().trim());\n\t\t\tmiUsuarioVo.setNombre(campoNombre.getText().trim());\n\t\t\tmiUsuarioVo.setEdad(Integer.parseInt(campoEdad.getText().trim()));\n\t\t\tmiUsuarioVo.setProfesion(campoProfesion.getText().trim());\n\t\t\tmiUsuarioVo.setTelefono(campoTelefono.getText().trim());\n\t\t\tmiUsuarioVo.setDireccion(campoDireccion.getText().trim());\n\t\t\t\n\t\t\tString actualiza=\"\";\n\t\t\t//se llama al metodo validarCampos(), este retorna true o false, dependiendo de eso ingresa a una de las opciones\n\t\t\tif (miCoordinador.validarCampos(miUsuarioVo)) {\n\t\t\t\t//si se retornó true es porque todo está correcto y se llama a actualizar\n\t\t\t\tactualiza=miCoordinador.actualizaUsuario(miUsuarioVo);//en registro se almacena ok o error, dependiendo de lo que retorne el metodo\n\t\t\t}else{\n\t\t\t\tactualiza=\"mas_datos\";//si validarCampos() retorna false, entonces se guarda la palabra mas_datos para indicar que hace falta diligenciar los campos obligatorios\n\t\t\t}\n\t\t\t\n\t\t\t//si el registro es exitoso muestra un mensaje en pantalla, sino, se valida si necesita mas datos o hay algun error\n\t\t\tif (actualiza.equals(\"ok\")) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \" Se ha Modificado Correctamente \",\"Confirmación\",JOptionPane.INFORMATION_MESSAGE);\t\t\t\n\t\t\t}else{\n\t\t\t\tif (actualiza.equals(\"mas_datos\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Debe Ingresar los campos obligatorios\",\"Faltan Datos\",JOptionPane.WARNING_MESSAGE);\t\t\t\n\t\t\t\t}else{\n\t\t JOptionPane.showMessageDialog(null, \"Error al Modificar\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\n\t\t\t\n\t\t}else{\n\t\t\tJOptionPane.showMessageDialog(null, \"Debe ingresar una edad Valida!!!\",\"Advertencia\",JOptionPane.ERROR_MESSAGE);\n\t\t}\n\n\t\t\t\t\n\t}", "public void testDecisionDeDarLaVueltaSiNoHaySalida(){\r\n\t\tdireccionActual = Direccion.ARRIBA;\r\n\t\tDireccion futura = cazar.haciaDondeIrDesdeUnaPosicionHastaOtraConDireccionActual(destino, uno, direccionActual);\r\n\t\tassertEquals(Direccion.ABAJO, futura);\r\n\r\n\t\tdireccionActual = Direccion.DERECHA;\r\n\t\tfutura= cazar.haciaDondeIrDesdeUnaPosicionHastaOtraConDireccionActual(destino, siete, direccionActual);\r\n\t\tassertEquals(Direccion.IZQUIERDA, futura);\r\n\t}", "@Test\r\n\tpublic void CT06ConsultarUsuarioPorDados() {\r\n\t\t// cenario\r\n\t\tUsuario usuario = ObtemUsuario.comDadosValidos();\r\n\t\t// acao\r\n\t\ttry {\r\n\t\t\tSystem.out.println(usuario.getRa());\r\n\t\t\tSystem.out.println(usuario.getNome());\r\n\t\t} catch (Exception e) {\r\n\t\t\tassertEquals(\"Dados inválidos\", e.getMessage());\r\n\t\t}\r\n\t}", "public boolean isPermisoAgendaPersonal() {\n for(Rolpermiso rp : LoginController.getUsuarioLogged().getRol1().getRolpermisoList()){\n if(rp.getPermiso().getDescripcion().equals(\"AAgenda\")){\n return true;\n }\n }\n return false;\n }", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Введите день, месяц, год рождения\");\n\t\tint day;\n\t\tint month;\n\t\tint year;\n\t\tdo {\n\t\t\tSystem.out.println(\"Количество дней в месяце от 1 до 31\");\n\t\t\tday = scan.nextInt();\n\t\t}while((day > 31) || (day <= 0));\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"Месяц равен от 1 до 12\");\n\t\t\tmonth = scan.nextInt();\n\t\t}while(month <1 || month > 12);\n\t\tint i;\n\t\tint n;\n\t\tdo {\n\t\t\ti = 0;\n\t\t\tSystem.out.println(\"Год - четырехзначное число\");\n\t\t\tyear = scan.nextInt();\n\t\t\tn = year;\n\t\t\twhile (n > 0) {\n\t\t\t n = n/10;\n\t\t\t i += 1;\n\t\t\t }\n\t\t}while(i != 4);\n\t\t\n\t\tSystem.out.println(day + \" \" + month + \" \" + year);\n\t\tString znakZodiak;\n\t\tString animalYear;\n\t\t\t\n\t\tif ((month == 3 && day >= 21) || (month == 4 && day <= 20))\n\t\t\tznakZodiak = \"Овен\";\n\t\telse if ((month == 4 && day >= 21) || (month == 5 && day <= 21))\n\t\t\tznakZodiak = \"Телец\";\n\t\telse if ((month == 5 && day >= 22) || (month == 6 && day <= 21))\n\t\t\tznakZodiak = \"Близнецы\";\n\t\telse if ((month == 6 && day >= 22) || (month == 7 && day <= 22))\n\t\t\tznakZodiak = \"Рак\";\n\t\telse if ((month == 7 && day >= 23) || (month == 8 && day <= 22))\n\t\t\tznakZodiak = \"Лев\";\n\t\telse if ((month == 8 && day >= 23) || (month == 9 && day <= 23))\n\t\t\tznakZodiak = \"Дева\";\n\t\telse if ((month == 9 && day >= 24) || (month == 10 && day <= 23))\n\t\t\tznakZodiak = \"Весы\";\n\t\telse if ((month == 10 && day >= 24) || (month == 11 && day <= 21))\n\t\t\tznakZodiak = \"Скорпион\";\n\t\telse if ((month == 11 && day >= 22) || (month == 12 && day <= 21))\n\t\t\tznakZodiak = \"Стрелец\";\n\t\telse if ((month == 12 && day >= 22) || (month == 1 && day <= 21))\n\t\t\tznakZodiak = \"Козерог\";\n\t\telse if ((month == 1 && day >= 22) || (month == 2 && day <= 19))\n\t\t\tznakZodiak = \"Водолей\";\n\t\telse if ((month == 2 && day >= 20) || (month == 3 && day <= 20))\n\t\t\tznakZodiak = \"Рыбы\";\n\t\telse\n\t\t\tznakZodiak = \"Введенный месяц не соответствует ни одному значению знака задиака. Месяц должен быть от 1 до 124\";\n\t\tswitch(year % 12) {\n\t\tcase 0: \n\t\t\tanimalYear = \"Год обезьяны\";\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tanimalYear = \"Год петуха\";\n\t\t\tbreak;\n\t\tcase 2: \n\t\t\tanimalYear = \"Год собаки\";\n\t\t\tbreak;\n\t\tcase 3: \n\t\t\tanimalYear = \"Год свиньи\";\n\t\t\tbreak;\n\t\tcase 4: \n\t\t\tanimalYear = \"Год крысы\";\n\t\t\tbreak;\n\t\tcase 5: \n\t\t\tanimalYear = \"Год коровы\";\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tanimalYear = \"Год тигра\";\n\t\t\tbreak;\n\t\tcase 7: \n\t\t\tanimalYear = \"Год зайца\";\n\t\t\tbreak;\n\t\tcase 8: \n\t\t\tanimalYear = \"Год дракона\";\n\t\t\tbreak;\n\t\tcase 9: \n\t\t\tanimalYear = \"Год змеи\";\n\t\t\tbreak;\n\t\tcase 10: \n\t\t\tanimalYear = \"Год лошади\";\n\t\t\tbreak;\n\t\tcase 11: \n\t\t\tanimalYear = \"Год овцы\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tanimalYear = \"Что-то пошло не так\";\n\t\t}\n\t\tSystem.out.println(\"Знак: \" + znakZodiak);\n\t\tSystem.out.println(\"Знак: \" + animalYear);\n\t\tscan.close();\n\t}", "public void verifyDate(){\n\n // currentDateandTime dataSingleton.getDay().getDate();\n\n }", "private void verificaVencedor(){\n\n // Metodo para verificar o vencedor da partida\n\n if(numJogadas > 4) {\n\n String vencedor = tabuleiro.verificaVencedor();\n\n vencedor = (numJogadas == tabuleiro.TAM_TABULEIRO && vencedor == null) ? \"Deu Velha!\" : vencedor;\n\n if (vencedor != null) {\n\n mostraVencedor(vencedor);\n temVencedor = true;\n\n }\n\n }\n\n }", "public boolean tieneRepresentacionGrafica();", "public boolean HayFlorEnLaEsquina(int avenida, int calle);", "public boolean validarIngresosUsuario_interno(JTextField motivoTF, JTextField detalleTF,\n\t\t\tJTextField montoTF){\n\t\t\n\t\tif(!validarDouble(montoTF.getText())) return false;\n\t\tif(montoTF.getText().length() >30) return false;\n\t\tif(!validarInt(motivoTF.getText())) return false;\n\t\tif(motivoTF.getText().length() >30) return false;\n\t\tif(detalleTF.getText().equals(\"\")) return false;\n\t\tif(detalleTF.getText().length() >100) return false;\n\t\t//if(numero < 0) return false;\n\t\tif(numero_double < 0) return false;\n\t\n\t\treturn true;\n\t}", "private boolean checkListino() {\n /* variabili e costanti locali di lavoro */\n boolean ok = false;\n Date dataInizio;\n Date dataFine;\n AddebitoFissoPannello panServizi;\n\n try { // prova ad eseguire il codice\n dataInizio = this.getDataInizio();\n dataFine = this.getDataFine();\n panServizi = this.getPanServizi();\n ok = panServizi.checkListino(dataInizio, dataFine);\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return ok;\n }", "private void verificaIdade() {\r\n\t\thasErroIdade(idade.getText());\r\n\t\tisCanSave();\r\n\t}", "public static Fecha IngresarFecha(){\n int diaIngreso, mesIngreso,anioIngreso;\r\n Fecha fechaIngreso = null;\r\n boolean condicion=false;\r\n \r\n do {\r\n System.out.println(\"Ingrese una fecha.\\n\"\r\n + \"Ingrese Dia: \");\r\n diaIngreso = TecladoIn.readInt();\r\n System.out.println(\"Ingrese el Mes: \");\r\n mesIngreso = TecladoIn.readLineInt();\r\n System.out.println(\"Ingrese el año: \");\r\n anioIngreso = TecladoIn.readInt();\r\n if (Validaciones.esValidoDatosFecha(diaIngreso, mesIngreso, anioIngreso)) {\r\n fechaIngreso = new Fecha(diaIngreso, mesIngreso, anioIngreso);\r\n \r\n condicion = true;\r\n } else {\r\n System.out.println(\"...........................................\");\r\n System.out.println(\"Ingrese Una Fecha Correcta: Dia/Mes/Año\");\r\n System.out.println(\"...........................................\");\r\n }\r\n } while (condicion != true);\r\n \r\n return fechaIngreso;}", "public static boolean cumpleEdadMinima(String tipoLicencia, int edad) {\n boolean cumple = false;\n switch(tipoLicencia){\n case \"Clase A\": \n if(edad >= 17)\n { \n cumple = true;\n }\n else\n {\n cumple = false;\n }\n break;\n case \"Clase B\": if(edad >= 17)\n { \n cumple = true;\n }\n else\n {\n cumple = false;\n }\n break;\n case \"Clase C\": if(edad >= 21)\n { \n cumple = true;\n }\n else\n {\n cumple = false;\n }\n break;\n case \"Clase D\": if(edad >= 21)\n { \n cumple = true;\n }\n else\n {\n cumple = false;\n }\n break;\n case \"Clase E\": if(edad >= 21)\n { \n cumple = true;\n }\n else\n {\n cumple = false;\n }\n break;\n case \"Clase F\": if(edad >= 17)\n { \n cumple = true;\n }\n else\n {\n cumple = false;\n }\n break;\n case \"Clase G\": if(edad >= 17)\n { \n cumple = true;\n }\n else\n {\n cumple = false;\n }\n break;\n } \n return cumple;\n }", "public static void main(String[] args) {\n\n String str=\"22/2020\";\n String monath=str.substring(0,2);\n\n int monatI=Integer.valueOf(monath);\n if (monatI>=0 && monatI<=12){\n System.out.println(\"doğru\");\n }\n else\n System.out.println(\"yanlış\");\n }", "public void actualizarExistencias(int year, int mes);", "public boolean existenTrasladosAsociadosDepositoByFecha(Long idDiposit, Boolean valid, Date fecha,Long idEstablecimientoOrigen) throws InfrastructureException {\r\n\t\tList traslado;\r\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\tString fechaAccion = df.format(fecha);\r\n\t\ttry {\r\n\t\t\tlogger.debug(\"existenTrasladosAsociadosDeposito ini\");\r\n\t\t\tString q = \"select count(dip.id) from Diposit dip \" +\r\n\t\t\t\"where dip.id = \" + idDiposit + \" and \" +\r\n\t\t\t\"dip in (select elements(tdi.diposits) from Trasllat tdi where tdi.dataAlta >= '\"+fechaAccion+\"' and tdi.establimentByTdiCodeor.id = \"+idEstablecimientoOrigen;\r\n\t\t\tq += \" and (tdi.acceptatTrasllat = true or tdi.acceptatTrasllat is null) \";\r\n\t\t\tq += \" and tdi.esDiposit = true \";\r\n\t\t\tif (valid != null && valid.booleanValue()) q += \" and tdi.valid = true \";\r\n\t\t\tif (valid != null && !valid.booleanValue()) q += \" and tdi.valid = false \";\r\n\t\t\tq += \")\";\r\n\t\t\t\r\n\t\t\ttraslado = getHibernateTemplate().find(q);\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tlogger.error(\"existenTrasladosAsociadosDeposito failed\", ex);\r\n\t\t\tthrow new InfrastructureException(ex);\r\n\t\t}\r\n\t\tif (traslado != null && traslado.size()> 0 && ((Long)traslado.get(0)).intValue() > 0) {\r\n\t\t\tlogger.debug(\"existenTrasladosAsociadosDeposito fin\");\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tlogger.debug(\"existenTrasladosAsociadosDeposito fin\");\r\n\t\treturn false;\r\n\t}", "public boolean esmenor(){\n //este metodo no aplica en la resolución del caso de uso planteado\n //sólo sirve para determinar si el participante es menor de edad para \n //poner como obligatorio el campo nombreTutor de acuerdo a las reglas\n //del negocio.\n return false;\n }", "public static boolean verificaDataInserita (String data){\r\n\t\t\r\n\t\t//if (!(Pattern.matches(\"(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[-/.](19|20)\\\\d\\\\d\", data))) {\r\n\r\n\t\tif (!(Pattern.matches(\"(19|20)\\\\d\\\\d[\\\\-.](0[1-9]|1[012])[\\\\-.](0[1-9]|[12][0-9]|3[01])\", data))) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"La data Inserita deve essere di tipo aaaa-mm-gg\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public void testDecisionEnPasillosSeguirDerecho(){\r\n\t\tdireccionActual = Direccion.ABAJO;\r\n\t\tDireccion futura = cazar.haciaDondeIrDesdeUnaPosicionHastaOtraConDireccionActual(destino, uno, direccionActual);\r\n\t\tassertEquals(futura,Direccion.ABAJO);\r\n\r\n\t\tdireccionActual = Direccion.ARRIBA;\r\n\t\tfutura = cazar.haciaDondeIrDesdeUnaPosicionHastaOtraConDireccionActual(destino, cuatro, direccionActual);\r\n\t\tassertEquals(futura,Direccion.ARRIBA);\r\n\r\n\t\tdireccionActual = Direccion.IZQUIERDA;\r\n\t\tfutura = cazar.haciaDondeIrDesdeUnaPosicionHastaOtraConDireccionActual(destino, nueve, direccionActual);\r\n\t\tassertEquals(Direccion.IZQUIERDA,futura);\t\t\r\n\t}", "@Test\n public void testconvertDateYearsLongueurPasValide() {\n FieldVerifier projet = new FieldVerifier();\n boolean longueurInvalideTest = projet.isValidDate(\"01/05/102\");\n assertEquals(false, longueurInvalideTest);\n }", "boolean puedoEdificarCasa(Casilla casilla){\n boolean puedoEdificar = false;\n \n //Se comprueba si el jugador es propietario de la casilla.\n boolean esMia = this.esDeMipropiedad(casilla);\n \n if(esMia){\n //Se obtiene el precio de edificación.\n int costeEdificarCasa = casilla.getPrecioEdificar();\n \n //Se comprueba que el jugador tiene saldo para llevar a cabo la edificación.\n boolean tengoSaldo = this.tengoSaldo(costeEdificarCasa);\n \n if(tengoSaldo){\n puedoEdificar = true;\n } \n }\n return puedoEdificar; \n }", "static boolean is_gregorian(String fecha) {\n\t\tString linea[] = fecha.split(\" \");\n\t\tint d = Integer.parseInt(linea[1]);\n\t\tint m = index_of(linea[2],m_name);\n\t\tint codigo_m;\n\t\tif (m == 0) {\n\t\t\tif (is_leap_gregorian(Integer.parseInt(linea[3]))) {\n\t\t\t\tcodigo_m = 6;\n\t\t\t} else codigo_m = 0;\n\t\t} \n\t\telse if (m == 1) {\n\t\t\tif (is_leap_gregorian(Integer.parseInt(linea[3]))) {\n\t\t\t\tcodigo_m = 2;\n\t\t\t} else codigo_m = 3;\n\t\t} \n\t\telse \tcodigo_m = codigo_mes[m];\n\t\tint a = Integer.parseInt(linea[3])%100;\n\t\tint a_4 = a/4;\n\t\tint s = (Integer.parseInt(linea[3])-1600)/100;\n\t\tint suma = d + codigo_m + a + a_4 + codigo_siglo[s];\n\t\tsuma %= 7;\n\t\tif (linea[0].equals(days[suma])) return true;\n\t\treturn false;\n\n\t}", "public boolean verificaNumero() {\n if (contemSomenteNumeros(jTextFieldDeposita.getText()) || contemSomenteNumeros(jTextFieldSaca.getText())\n || contemSomenteNumeros(jTextFieldTransfere.getText())) {\n return true;\n } else {\n JOptionPane.showMessageDialog(this, \"Digite somente números, por favor. \", \"Atenção !!\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n }", "@Test\r\n public void testVerificaPossibilidade() {\r\n usucapiao.setAnimusDomini(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "public String validarAsociacion(String nombre, String dpi, String codigo_cuenta, String codigo_cliente) {\n String mensaje = \"\";\n DM_Cliente dmcli = new DM_Cliente();\n DM_Solicitud dmsol = new DM_Solicitud();\n try {\n Cliente cliente = dmcli.validarCliente(nombre, dpi);\n PreparedStatement PrSt;\n ResultSet rs = null;\n String Query = \"SELECT * FROM Cuenta WHERE Codigo = ?\";\n PrSt = conexion.prepareStatement(Query);\n PrSt.setString(1, codigo_cuenta);\n if (cliente != null) {\n rs = PrSt.executeQuery();\n if (rs.next()) {\n java.util.Date d = new java.util.Date();\n java.sql.Date fecha = new java.sql.Date(d.getTime());\n Solicitud solicitud = new Solicitud();\n solicitud.setEmisor(codigo_cliente);\n solicitud.setReceptor(cliente.getCodigo());\n solicitud.setCodigo_cuenta(codigo_cuenta);\n solicitud.setEstado(\"Pendiente\");\n solicitud.setFecha(fecha);\n mensaje = dmsol.agregarSolicitud(solicitud);\n } else {\n mensaje = \"La cuenta no existe\";\n }\n } else {\n mensaje = \"El dueño de la cuenta no existe\";\n }\n PrSt.close();\n rs.close();\n } catch (SQLException e) {\n System.out.println(e.toString());\n }\n return mensaje;\n }", "public boolean baterPonto(Date dataHora) {\n\t\tSystem.out\n\t\t\t\t.println(\"Vou bater o ponto do Diretor de matricula: \" + this.matricula + \"-\" + dataHora.toString());\n\t\treturn true;\n\t}", "public boolean estaVacia(){\n if(darTamanio==0){\n return true;\n } \n else{\n return false;\n }\n}", "@Test\n\tpublic void testResponderEjercicio4(){\n\t\tAlumno oscar = Alumno.CreaAlumno(\"2\", \"Oscar\", \"Password\", \"[email protected]\");\n\t\tPlataforma.setFechaActual(Plataforma.getFechaActual().plusDays(1));\n\t\tassertFalse(ej1.responderEjercicio(oscar, array));\n\t\tassertTrue(oscar.getEstadisticas().isEmpty());\n\t}", "public static void main(String[] args) \n\t\n\t{\n\t\tScanner leia = new Scanner(System.in);\n\t\tint anoNasc,idade;\n\t\tchar sexo, chefe;\n\t\tString nome;\n\t\t\n\t\tSystem.out.print(\"Digite seu nome: \\n\");\n\t\tnome = leia.next();\n\t\tSystem.out.print(\"Digite seu ano de Nascimento: \\n\");\n\t\tanoNasc = leia.nextInt();\n\t\tSystem.out.print(\"Digite seu sexo Masculino ou Feminino: M ou F \\n\");\n\t\tsexo = leia.next().toUpperCase().charAt(0);\n\t\tSystem.out.print(\"Você é chefe(a) de família: S ou N\\n\");\n\t\tchefe = leia.next().toUpperCase().charAt(0);\n\t\tidade = 2020-anoNasc;\n\t\t\t\t\n\t\tif((sexo == 'M' || sexo == 'm') && (idade >= 18) && (chefe == 'S' || chefe == 's') ){\n\t\t\tSystem.out.printf(\"\\nOlá %s, sua idade é de %d você é do sexo Masculino e chefe de familia;\\nEntão você tem direito aos R$ 600,00 mensais.\\n\", nome, idade); \n\t\t\t\t\t\t;\n\t\t}else if( sexo == 'F' || sexo == 'f' && (idade >= 18) && (chefe == 'S' || chefe == 's') ){\n\t\t\tSystem.out.printf(\"\\nOlá %s, sua idade é de %d você é do sexo feminino e chefa de familia;\\nEntão você tem direito aos R$ 1.200,00 mensais.\\n\", nome, idade);\n\t\t}\n\t\t\n\t\telse { System.out.println(\"\\nEntão você não tem direito...\");}\n\t\t\n\t\t\n\t}", "private boolean checkTravel(int month, int day) throws SQLException {\n\t\tcheckTravelStatement.clearParameters();\n\t\tcheckTravelStatement.setInt(1, month);\n\t\tcheckTravelStatement.setInt(2, day);\n\t\tcheckTravelStatement.setString(3, this.username);\n\t\tResultSet result = checkTravelStatement.executeQuery();\n\t\tresult.next();\n\t\tboolean out = result.getInt(1) == 1;\n\t\tif (DEBUG) {\n\t\t\tSystem.out.println(\"checkTravel: \"+result.getInt(1)+\"\\n\");\n\t\t}\n\t\tresult.close();\n\t\treturn out;\n\t}", "private static Boolean checkYear(){\r\n try{\r\n int year = Integer.parseInt(yearField.getText().trim());\r\n int now = LocalDate.now().getYear();\r\n \r\n if(LocalDate.now().getMonth().compareTo(Month.SEPTEMBER) < 0){\r\n now--;\r\n }\r\n //SIS stores the schedule for last 3 years only \r\n if(year <= now && year >= now - 3 ){\r\n return true;\r\n }\r\n }\r\n catch(Exception e){\r\n Logger.getLogger(\"Year checker\").log(Level.WARNING, \"Exception while resolving the year \", e);\r\n }\r\n return false;\r\n }", "public static int diasParaFecha(Date fechafin) {\n try {\n System.out.println(\"Fecha = \" + fechafin + \" / \");\n GregorianCalendar fin = new GregorianCalendar();\n fin.setTime(fechafin);\n System.out.println(\"fin=\" + CalendarToString(fin, \"dd/MM/yyyy\"));\n GregorianCalendar hoy = new GregorianCalendar();\n System.out.println(\"hoy=\" + CalendarToString(hoy, \"dd/MM/yyyy\"));\n\n if (fin.get(Calendar.YEAR) == hoy.get(Calendar.YEAR)) {\n System.out.println(\"Valor de Resta simple: \"\n + String.valueOf(fin.get(Calendar.DAY_OF_YEAR)\n - hoy.get(Calendar.DAY_OF_YEAR)));\n return fin.get(Calendar.DAY_OF_YEAR)\n - hoy.get(Calendar.DAY_OF_YEAR);\n } else {\n int diasAnyo = hoy.isLeapYear(hoy.get(Calendar.YEAR)) ? 366\n : 365;\n int rangoAnyos = fin.get(Calendar.YEAR)\n - hoy.get(Calendar.YEAR);\n int rango = (rangoAnyos * diasAnyo)\n + (fin.get(Calendar.DAY_OF_YEAR) - hoy\n .get(Calendar.DAY_OF_YEAR));\n System.out.println(\"dias restantes: \" + rango);\n return rango;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return 0;\n }", "boolean isAfuerMayorDentro(char dentro, char afuera){\n return peso(afuera)>peso(dentro);\r\n }", "public static String getUltimaFiesta() {\n Map<String, DiaFiestaMeta> diasFiestas;\n Iterator<String> itDiasFiestasMeta;\n SimpleDateFormat formatoDelTexto ;\n Map<String, Date> mapFiestaDia = new HashMap<>(); // \"uidFiesta:tituloDiaFiestaFormateado\"\n HashSet<Fiestas> fiestas;\n Date fechaMasReciente;\n String uidFiestaMasReciente;\n Iterator<String> itmapFiestaDia;\n\n Date date = new Date();\n formatoDelTexto = new SimpleDateFormat(\"dd MMMM yyyy\",new Locale(\"es\",\"ES\"));\n String strDate =formatoDelTexto.format(date);\n uidFiestaMasReciente =\"\";\n try {\n fechaMasReciente = formatoDelTexto.parse(\"15 Junio 1980\");\n } catch (ParseException e) {\n fechaMasReciente = new Date();\n e.printStackTrace();\n }\n fiestas = (HashSet) baseDatos.get(Tablas.Fiestas.name());\n for (Fiestas fiesta : fiestas){\n diasFiestas = fiesta.getDiasFiestas();\n itDiasFiestasMeta = diasFiestas.keySet().iterator();\n while (itDiasFiestasMeta.hasNext()){\n String keyDia = itDiasFiestasMeta.next();\n DiaFiestaMeta diaFiestaMeta = diasFiestas.get(keyDia);\n mapFiestaDia.put(fiesta.getUidFiestas(), formatearDia(diaFiestaMeta.getTituloDiaFiesta(), fiesta.getUidFiestas()));\n }\n }\n\n itmapFiestaDia = mapFiestaDia.keySet().iterator();\n while (itmapFiestaDia.hasNext()) {\n String key = itmapFiestaDia.next();\n Date fechaI = mapFiestaDia.get(key);\n if (fechaI.after(fechaMasReciente)) {\n uidFiestaMasReciente = key;\n fechaMasReciente = fechaI;\n }\n }\n return uidFiestaMasReciente;\n }", "public void menuprecoperiodo(String username) {\n Scanner s=new Scanner(System.in);\n LogTransportadora t=b_dados.getTrasnportadoras().get(username);\n double count=0;\n try {\n ArrayList<Historico> hist = b_dados.buscaHistoricoTransportadora(t.getCodEmpresa());\n System.out.println(\"Indique o ano:\");\n int ano=s.nextInt();\n System.out.println(\"Indique o mês\");\n int mes=s.nextInt();\n System.out.println(\"Indique o dia\");\n int dia=s.nextInt();\n for(Historico h: hist){\n LocalDateTime date=h.getDate();\n if(date.getYear()==ano && date.getMonthValue()==mes && date.getDayOfMonth()==dia){\n count+=h.getKmspercorridos()*t.getPrecokm();\n }\n }\n System.out.println(\"O total fatorado nesse dia foi de \" + count +\"€\");\n }\n catch (TransportadoraNaoExisteException e){\n System.out.println(e.getMessage());\n }\n }", "public void validar(View v) {\r\n //Compruebo que se hayan insertado todos los datos\r\n SimpleDateFormat formatoFecha = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n if(!nombre.getText().toString().equals(\"\")\r\n &&!mail.getText().toString().equals(\"\")\r\n &&!fecha.getText().toString().equals(\"\")) {\r\n //Si se han introducido todos los datos compruebo la edad\r\n fNac = null;\r\n fActual = null;\r\n\r\n try {\r\n fNac = formatoFecha.parse(fecha.getText().toString());\r\n fActual = new Date();\r\n edad = (int) ((fActual.getTime() - fNac.getTime()) / 1000 / 60 / 60 / 24 / 360);//Calculo la edad\r\n //Compruebo si es mayor de edad\r\n if (edad < 18)\r\n //Error si es menor de edad\r\n Toast.makeText(getApplicationContext(), R.string.menorDeEdad, Toast.LENGTH_LONG).show();\r\n else {//Si todo es correcto devuelve los datos introcucidos a la pantalla principal.\r\n Toast.makeText(getApplicationContext(), R.string.registroCompletado, Toast.LENGTH_LONG).show();\r\n Intent i = new Intent();\r\n i.putExtra(\"REGISTRADO\", true);\r\n i.putExtra(\"NOMBRE\", nombre.getText().toString());\r\n i.putExtra(\"MAIL\", mail.getText().toString());\r\n i.putExtra(\"FECHA\", fecha.getText().toString());\r\n setResult(RESULT_OK,i);\r\n finish();\r\n }\r\n } catch (Exception e) {\r\n Toast.makeText(getApplicationContext(), \"Error\", Toast.LENGTH_LONG).show();//Si no se ha introducido ninguna fecha\r\n }\r\n }else\r\n Toast.makeText(getApplicationContext(), R.string.toastFaltanDatos, Toast.LENGTH_LONG).show();\r\n }", "public static void main(String[] args) {\n LocalDateTime termino = LocalDateTime.now();\n if (termino.getHour() >= 17) {\n if(termino.getMinute() >= 31){\n System.out.println(\"Ar-Condicionado Ligado + produto.getSala()\");\n }\n }\n if(termino.getDayOfWeek().getValue() != 7){\n //depois de consultar no banco e dar o alerta, mudar o atributo leituraAlerta no banco para true\n \n }\n \n }", "public boolean crearSede(String nombre, String direccion, String municipio) {\n\t\t\n\t\tclickButtonLink(btnMenu);\n\t\tclickButtonLink(opcionSedes);\n\t\tclickButtonLink(pestanaSedes);\n\t\tsendText(cajaTextoNombreSede, nombre);\n\t\tsendText(cajaTextoDireccion, direccion);\n\t\tselectDropdownVisibleText(listaMunicipios, municipio);\n\t\t//selectDropdownValue(listaMunicipios, municipio);\n\t\t//lesperar(2);\n\t\t\n\t\tclickButtonLink(btnGrabarSede);\n\t\t//esperar(1);\n\n\t\treturn true;\n\t}", "private boolean isPentecost(final Calendar date) {\n Calendar paquesMonday = getEasterDate(date.get(Calendar.YEAR));\n paquesMonday.add(Calendar.DAY_OF_YEAR, 50);\n return date.get(Calendar.DAY_OF_YEAR) == paquesMonday\n .get(Calendar.DAY_OF_YEAR)\n && date.get(Calendar.MONTH) == paquesMonday.get(Calendar.MONTH);\n }", "boolean esMovimientoLegal(Jugada jugada) throws CeldasFueraTableroException;", "private static long getQtdDias(String dataAniversario){\n DateTimeFormatter data = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n LocalDateTime now = LocalDateTime.now();\n String dataHoje = data.format(now);\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\", Locale.ENGLISH);\n try {\n Date dtAniversario = sdf.parse(dataAniversario);\n Date hoje = sdf.parse(dataHoje);\n //Date hoje = sdf.parse(\"51515/55454\");\n long diferenca = Math.abs(hoje.getTime() - dtAniversario.getTime());\n long qtdDias = TimeUnit.DAYS.convert(diferenca, TimeUnit.MILLISECONDS);\n return qtdDias;\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return 0;\n }", "public int usaAtaque() {\n\t\treturn dano;\n\t}", "public static boolean esFecha (int tipoSQL) {\n\t \n\t switch (tipoSQL) {\n\t \tcase Types.DATE :\n\t \tcase Types.TIME :\n\t \tcase Types.TIMESTAMP :\n\t \t return true;\n\t }\n\t return false;\n\t}", "@Test\n\tpublic void testResponderEjercicio2(){\n\t\tPlataforma.setFechaActual(Plataforma.getFechaActual().plusDays(0));\n\t\tassertFalse(ej1.responderEjercicio(nacho, array));\n\t\tassertTrue(nacho.getEstadisticas().isEmpty());\n\t}", "public boolean verificarFechaEspecifica(Date fecha){\n if(fecha==null|| fecha.equals(\"\")){\n return false;\n }else{\n return true;\n }\n }", "@Override\r\n\tpublic String calculerDonnee() {\n\t\tif (this.quest.getIdPersonne() == null) {\r\n\t\t\tSystem.err\r\n\t\t\t\t\t.println(\"Il n'y a pas de personne associé qu questionnaire, comment voulez vous calculer son age?\");\r\n\t\t\treturn \"-1 idPersonne inconnu\";\r\n\t\t} else {\r\n\t\t\tString[] donnee = GestionDonnee.getInfoPersonne(this.quest\r\n\t\t\t\t\t.getIdPersonne());\r\n\t\t\t// System.err.println(\"donnée : \"+donnee[0]+\" : \"+donnee[1]+\" : \"+donnee[2]);\r\n\r\n\t\t\tDate datenaissance = new Date(donnee[2]);\r\n\t\t\t// System.out.println(\"date actuelle : \"+new\r\n\t\t\t// java.sql.Date(System.currentTimeMillis()).toString());\r\n\t\t\tString temp[] = new java.sql.Date(System.currentTimeMillis())\r\n\t\t\t\t\t.toString().split(\"-\");\r\n\t\t\tDate dateActuelle = new Date(Integer.parseInt(temp[2]),\r\n\t\t\t\t\tInteger.parseInt(temp[1]), Integer.parseInt(temp[0]));\r\n\t\t\t// System.out.println(dateActuelle.annee);\r\n\t\t\t// System.out.println(\"age : \"+datenaissance.calculerAge(dateActuelle)+\"------------------------------------\");\r\n\t\t\treturn datenaissance.calculerAge(dateActuelle).toString();\r\n\r\n\t\t}\r\n\r\n\t}", "public boolean validarIngresosUsuario_sueldo(JTextField empleadoTF, JTextField montoTF){\n\t\t\tif(!validarDouble(montoTF.getText())) return false;\n\t\t\tif(montoTF.getText().length() >30) return false;\n\t\t\tif(!validarInt(empleadoTF.getText())) return false;\n\t\t\tif(numero==33) return false; //codigo halcones\n\t\t\tif(empleadoTF.getText().length() >30) return false;\n\t\t\t//if(numero < 0) return false;\n\t\t\tif(numero_double < 0) return false;\n\t\t\n\t\t\treturn true;\n\t}", "public abstract java.lang.String getFecha_inicio();", "public boolean esDiaFestivo(int idOrganizacion, Date fecha)\r\n/* 68: */ {\r\n/* 69:74 */ String sql = \"SELECT d FROM DiaFestivo d WHERE d.idOrganizacion=:idOrganizacion AND d.fecha=:fecha AND d.activo = TRUE \";\r\n/* 70:75 */ Query query = this.em.createQuery(sql);\r\n/* 71:76 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 72:77 */ query.setParameter(\"fecha\", fecha, TemporalType.DATE);\r\n/* 73: */ try\r\n/* 74: */ {\r\n/* 75:80 */ query.getSingleResult();\r\n/* 76:81 */ return true;\r\n/* 77: */ }\r\n/* 78: */ catch (NoResultException e) {}\r\n/* 79:83 */ return false;\r\n/* 80: */ }", "public boolean isAccepted_tou();", "private boolean validaSituacao() {\r\n\t\treturn Validacao.validaSituacao((String) this.situacao.getSelectedItem()) != 0;\r\n\t}", "public void verificarExistenciaIPTU(Collection imoveisEconomia, Imovel imovel, String numeroIptu,\r\n\t\t\tDate dataUltimaAlteracao) throws ControladorException {\r\n\r\n\t\t// Cria Filtros\r\n\t\tFiltroImovel filtroImovel = new FiltroImovel();\r\n\r\n\t\tfiltroImovel.adicionarParametro(new ParametroSimples(FiltroImovel.SETOR_COMERCIAL_MUNICIPIO_ID,\r\n\t\t\t\timovel.getSetorComercial().getMunicipio().getId()));\r\n\t\tfiltroImovel.adicionarParametro(new ParametroSimples(FiltroImovel.IPTU, numeroIptu));\r\n\r\n\t\tCollection imoveis = getControladorUtil().pesquisar(filtroImovel, Imovel.class.getName());\r\n\r\n\t\tif (imoveis != null && !imoveis.isEmpty()) {\r\n\t\t\tString idMatricula = \"\" + ((Imovel) ((List) imoveis).get(0)).getId();\r\n\r\n\t\t\tsessionContext.setRollbackOnly();\r\n\t\t\tthrow new ControladorException(\"atencao.imovel.iptu_jacadastrado\", null, idMatricula);\r\n\t\t}\r\n\r\n\t\t// comparando com a data diferente de null\r\n\t\tif (dataUltimaAlteracao != null) {\r\n\r\n\t\t\tFiltroImovelEconomia filtroImovelEconomia = new FiltroImovelEconomia();\r\n\r\n\t\t\tfiltroImovelEconomia\r\n\t\t\t\t\t.adicionarParametro(new ParametroSimples(FiltroImovelEconomia.IMOVEL_ID, imovel.getId()));\r\n\t\t\tfiltroImovelEconomia.adicionarParametro(new ParametroSimples(FiltroImovelEconomia.MUNICIPIO_ID,\r\n\t\t\t\t\timovel.getSetorComercial().getMunicipio().getId()));\r\n\t\t\tfiltroImovelEconomia.adicionarParametro(new ParametroSimples(FiltroImovelEconomia.IPTU, numeroIptu));\r\n\r\n\t\t\tfiltroImovelEconomia.adicionarCaminhoParaCarregamentoEntidade(\"imovelSubcategoria.comp_id.imovel\");\r\n\r\n\t\t\tCollection imoveisEconomiaPesquisadas = getControladorUtil().pesquisar(filtroImovelEconomia,\r\n\t\t\t\t\tImovelEconomia.class.getName());\r\n\r\n\t\t\tif (!imoveisEconomiaPesquisadas.isEmpty()) {\r\n\t\t\t\tImovelEconomia imovelEconomia = (ImovelEconomia) ((List) imoveisEconomiaPesquisadas).get(0);\r\n\r\n\t\t\t\tif (imovelEconomia.getUltimaAlteracao().getTime() != dataUltimaAlteracao.getTime()) {\r\n\t\t\t\t\tString idMatricula = \"\" + imovelEconomia.getImovelSubcategoria().getComp_id().getImovel().getId();\r\n\r\n\t\t\t\t\tsessionContext.setRollbackOnly();\r\n\t\t\t\t\tthrow new ControladorException(\"atencao.imovel.iptu_jacadastrado\", null, idMatricula);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (imoveisEconomia != null) {\r\n\t\t\tIterator imovelEconomiaIterator = imoveisEconomia.iterator();\r\n\r\n\t\t\twhile (imovelEconomiaIterator.hasNext()) {\r\n\r\n\t\t\t\tImovelEconomia imovelEconomia = (ImovelEconomia) imovelEconomiaIterator.next();\r\n\r\n\t\t\t\t// caso seja o mesmo imovel economia n�o fa�a a verifica��o\r\n\t\t\t\tif (imovelEconomia.getUltimaAlteracao().getTime() != dataUltimaAlteracao.getTime()) {\r\n\t\t\t\t\t// verifica se o numero da iptu que veio do imovel economia\r\n\t\t\t\t\t// �\r\n\t\t\t\t\t// diferente de nulo.\r\n\t\t\t\t\tif (imovelEconomia.getNumeroIptu() != null && !imovelEconomia.getNumeroIptu().equals(\"\")) {\r\n\r\n\t\t\t\t\t\t// se o numero da iptu do imovel economia for diferente\r\n\t\t\t\t\t\t// de\r\n\t\t\t\t\t\t// nulo ent�o � verificado se o numero da iptu\r\n\t\t\t\t\t\t// que o veio do form � igual ao do objeto imovel\r\n\t\t\t\t\t\t// economia\r\n\t\t\t\t\t\t// cadastrado.\r\n\t\t\t\t\t\tif (imovelEconomia.getNumeroIptu().equals(new BigDecimal(numeroIptu))) {\r\n\r\n\t\t\t\t\t\t\tsessionContext.setRollbackOnly();\r\n\t\t\t\t\t\t\tthrow new ControladorException(\"atencao.imovel.iptu_jacadastrado\", null,\r\n\t\t\t\t\t\t\t\t\timovelEconomia.getImovelSubcategoria().getComp_id().getImovel().getId().toString());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// caso o imvel economia\r\n\t\t\t}\r\n\t\t} else {\r\n\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic int canalMais() {\n\t\treturn 0;\n\t}", "public void TemperaturaDentroDoPermitido() {\n\t\tSystem.out.println(\"Temperatura: \" + temperaturaAtual);\n\t\t// verifica se a temperatua esta abaixo do permitido\n\t\tif (temperaturaAtual < temperaturaMinimaPermitida) {\n\t\t\tSystem.out.println(\"Temperatura abaixo do permitido, Alerta!!\");\n\t\t}\n\t\t// verifica se a temperatura esta acima do permitido\n\t\telse if (temperaturaAtual > temperaturaMaximaPermitida) {\n\t\t\tSystem.out.println(\"Temperatura acima do permitido, Alerta!!\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Temperatura OK!!\");\n\t\t}\n\t}", "private boolean jogadorTerminouAVez() {\n return this.terminouVez;\n }", "public Map<String, MonthDay> dataFeriadosNacionais(int ano);", "public boolean verificarUsuario(){\n boolean estado = false;\n try{\n this.usuarioBean = (Dr_siseg_usuarioBean) this.manejoFacesContext.obtenerObjetoSession(\"usuario\");\n if(this.usuarioBean != null){\n estado = true;\n if (this.usuarioBean.getRoll().equals(\"GRP_SERVAGTMII_ADMIN\")){\n modoAdministrador=true;\n// this.usuarioRoll=\"ADMIN\";\n// this.disableBotonFinalizar=\"false\";\n// this.visibleImprimirComprobanteEncargado=\"true\";\n// this.visibleImprimirComprobanteEstudiante=\"true\";\n \n\n }else{\n if (this.usuarioBean.getRoll().equals(\"GRP_SERVAGTMII_PF1\")){\n modoAdministrador=true;\n// this.usuarioRoll=\"PF1\";\n// this.disableBotonFinalizar=\"true\";\n// this.visibleImprimirComprobanteEncargado=\"false\";\n// this.visibleImprimirComprobanteEstudiante=\"true\";\n \n }\n }\n\n }else{\n this.manejoFacesContext.redireccionarFlujoWeb(\"/WebAppSLATE/LogoutServlet\" );\n }\n }catch(Exception ex){\n this.manejoFacesContext.redireccionarFlujoWeb(\"/WebAppSLATE/LogoutServlet\" );\n // this.manejoFacesContext.redireccionarFlujoWeb(\"/WebAppMADEB/cr.ac.una.reg.info.contenido/moduloFuncionario/estudiante/e_editarDireccion.jspx\");\n }//\n return estado;\n }", "private int cantFantasmasRestantes() {\n // TODO implement here\n return 0;\n }", "@Test\n\tpublic void testRespondible2(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.minusDays(2));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}" ]
[ "0.65655845", "0.6368316", "0.63430446", "0.6258147", "0.62424237", "0.6200302", "0.61664414", "0.6073511", "0.60496724", "0.6031771", "0.5999928", "0.5933556", "0.588587", "0.58780617", "0.58690417", "0.58216524", "0.5817455", "0.5793195", "0.576816", "0.57668436", "0.5709767", "0.57073265", "0.56886727", "0.5685924", "0.56830394", "0.56804466", "0.56725025", "0.5671274", "0.56638306", "0.5646556", "0.56323415", "0.5631044", "0.5614831", "0.56138813", "0.5613657", "0.5611245", "0.5609279", "0.56087685", "0.5607497", "0.56001395", "0.5595524", "0.55943614", "0.5587621", "0.55836624", "0.5581286", "0.5580339", "0.5576686", "0.55753607", "0.5565226", "0.5564012", "0.5559222", "0.555613", "0.55499375", "0.55474615", "0.55445826", "0.5535151", "0.5524638", "0.5523687", "0.5523462", "0.55165267", "0.5516299", "0.55138355", "0.54993796", "0.5494214", "0.54917455", "0.5488498", "0.5480407", "0.5477686", "0.5459602", "0.5453451", "0.54529357", "0.5438158", "0.54267883", "0.5418971", "0.54137605", "0.5407298", "0.5406681", "0.5394824", "0.53943205", "0.5390389", "0.5385251", "0.5378408", "0.5378337", "0.53755075", "0.5369053", "0.5367611", "0.5364108", "0.53570175", "0.53548175", "0.5354038", "0.5353846", "0.5349339", "0.5348928", "0.5347422", "0.534516", "0.5342885", "0.53415036", "0.53409034", "0.53387797", "0.5335314" ]
0.6895158
0
Complementa a string passada com asteriscos a esquerda
public static String completaStringComAsteriscos(String str, int tamanhoMaximo) { // Tamanho da string informada int tamanhoString = 0; if (str != null) { tamanhoString = str.length(); } else { tamanhoString = 0; } // Calcula a quantidade de asteriscos necessários int quantidadeAsteriscos = tamanhoMaximo - tamanhoString; if (quantidadeAsteriscos < 0) { quantidadeAsteriscos = tamanhoMaximo; } // Cria um array de caracteres de asteriscos char[] tempCharAsteriscos = new char[quantidadeAsteriscos]; Arrays.fill(tempCharAsteriscos, '*'); // Cria uma string temporaria com os asteriscos String temp = new String(tempCharAsteriscos); // Cria uma strinBuilder para armazenar a string StringBuilder stringBuilder = new StringBuilder(temp); // Caso o tamanho da string informada seja maior que o tamanho máximo da // string // trunca a string informada if (tamanhoString > tamanhoMaximo) { String strTruncado = str.substring(0, tamanhoMaximo); stringBuilder.append(strTruncado); } else { stringBuilder.append(str); } // Retorna a string informada com asteriscos a esquerda // totalizando o tamanho máximo informado return stringBuilder.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String negation(String s) {\r\n \tif(s.charAt(0) == '~') s = s.substring(1);\r\n\t\telse s = \"~\"+ s;\r\n \treturn s;\r\n }", "public static ArthurString minus(ArthurString one, ArthurString two) {\n return new ArthurString(one.str.replace(two.str, \"\"));\n }", "private static String removeSoftHyphens(String in) {\n String result = in.replaceAll(\"\\u00AD\", \"\");\n return result.length() == 0 ? \"-\" : result;\n }", "public static String excludeSignBitMinus(String value)\n\t{\n\t\treturn excludeSignBit(value, SIGN_MINUS);\n\t}", "public static String removeNonLetters(String input)\n\t{\n\t\tchar[] nonLetters \t= { '-', ' ' };\n\t\tString result \t\t= \"\";\n\t\tboolean willAdd \t= false;\n\n\t\t/* when it's a single hyphen */\n\t\tif( input.length() < 2 )\n\t\t{\n\t\t\treturn input;\n\t\t}\n\n\t\tfor( int i = 0; i < input.length(); i++ )\n\t\t{\n\n\t\t\tfor( int j = 0; j < nonLetters.length; j++)\n\t\t\t{\n\t\t\t\tif( input.charAt(i) != nonLetters[j]) {\n\t\t\t\t\twillAdd = true;\n\t\t\t\t} else {\n\t\t\t\t\twillAdd = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif( willAdd ) {\n\t\t\t\tresult = result + input.charAt(i);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "public static String negate(String s){\n if(s.isEmpty()){\n return \"\";\n }else if(s.length() == 1){\n if(s.charAt(0) == '1'){\n return \"0\";\n }else if(s.charAt(0) == '0'){\n return \"1\";\n }else{\n return s;\n }\n }else{\n return negate(\"\" + s.charAt(0)) + negate( s.substring(1, s.length()));\n }\n }", "private static String RemoveSpecialCharacter (String s1) {\n String tempResult=\"\";\n for (int i=0;i<s1.length();i++) {\n if (s1.charAt(i)>64 && s1.charAt(i)<=122){\n tempResult=tempResult+s1.charAt(i);\n }\n }\n return tempResult;\n }", "private final static String stripDash( String s ) {\n\n StringTokenizer tokDash = new StringTokenizer(s, \"-\");\n\n if (tokDash.countTokens() > 1) {\n return tokDash.nextToken();\n } else {\n return s;\n }\n\n }", "private String removeSpecialCharacters(String word)\n\t{\n\t\tString newString = \"\";\n\n\t\tfor (int i = 0; i < word.length(); i++)\n\t\t{\n\t\t\tif (word.charAt(i) != '?' && word.charAt(i) != '!' && word.charAt(i) != '\"' && word.charAt(i) != '\\''\n\t\t\t\t\t&& word.charAt(i) != '#' && word.charAt(i) != '(' && word.charAt(i) != ')' && word.charAt(i) != '$'\n\t\t\t\t\t&& word.charAt(i) != '%' && word.charAt(i) != ',' && word.charAt(i) != '&')\n\t\t\t{\n\t\t\t\tnewString += word.charAt(i);\n\t\t\t}\n\t\t}\n\n\t\treturn newString;\n\t}", "private static String removeChars(String reg, int ind, int count) {\n reg = reg.substring(0, ind) + reg.substring(ind + count);\n return reg;\n }", "private String RemoveCharacter(String strName) {\r\n String strRemover = \"( - )|( · )\";\r\n String[] strTemp = strName.split(strRemover);\r\n if (strTemp.length >= 2) {\r\n strName = strTemp[0].trim() + \" - \" + strTemp[1].trim();\r\n }\r\n\r\n strName = strName.replace(\"–\", \"-\");\r\n strName = strName.replace(\"’\", \"'\");\r\n strName = strName.replace(\":\", \",\");\r\n\r\n strName = strName.replace(\"VA - \", \"\");\r\n strName = strName.replace(\"FLAC\", \"\");\r\n return strName;\r\n }", "public static void main(String[] args) {\n\n String str = \"Angelsa MIilovski\";\n StringBuilder bulid = new StringBuilder(str);\n bulid.deleteCharAt(6); // Shift the positions front.\n bulid.deleteCharAt(6 - 1);\n bulid.deleteCharAt(8 - 1);\n System.out.println(\"Name is : \" + bulid);\n\n// StringBuffer buffer = new StringBuffer(str);\n// buffer.replace(1, 2, \"\"); // Shift the positions front.\n// buffer.replace(7, 8, \"\");\n// buffer.replace(13, 14, \"\");\n// System.out.println(\"Buffer : \"+buffer);\n\n// char[] c = str.toCharArray();\n// String new_Str = \"\";\n// for (int i = 0; i < c.length; i++) {\n// if (!(i == 1 || i == 8 || i == 15))\n// new_Str += c[i];\n// }\n// System.out.println(\"Char Array : \"+new_Str);\n\n// public String removeChar(String str, Integer n) {\n// String front = str.substring(0, n);\n// String back = str.substring(n+1, str.length());\n// return front + back;\n// }\n\n// String str = \"Angel%Milovski\";\n// str = str.replaceFirst(String.valueOf(str.charAt(5)), \" \");//'l' will replace with \"\"\n// System.out.println(str);//output: wecome\n\n }", "public static String excludeSignBit(String value)\n\t{\n\t\treturn excludeSignBit(value, null);\n\t}", "private static String removegivenChar(String str,int pos) {\n\t\treturn str.substring(0,pos) + str.substring(pos+1);\r\n\t}", "@Test\n public void reverseComplement() {\n ReverseComplementor r = new ReverseComplementor();\n String x = r.reverseComplement(\"AATGATACGGCGACCACCGAGATCTACACTCTTTCCCTACACGACGCTCTTCCGATCT\");\n assertEquals(\"AGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGTAGATCTCGGTGGTCGCCGTATCATT\", x);\n }", "private String stripWildcardChars(String value)\n\t{\n\t\tString updValue = value;\n\t\t// if the string ends with a *, strip it\n\t\tif(updValue.trim().endsWith(ASTERICK_WILDCARD))\n\t\t{\n\t\t\tupdValue = updValue.substring(0, updValue.trim().length() - 1);\n\t\t} // end if\n\t\t// return the value minus the wildcard\n\t\treturn updValue;\n\t}", "static private String stripPlusIfPresent( String value ){\n String strippedPlus = value;\n \n if ( value.length() >= 2 && value.charAt(0) == '+' && value.charAt(1) != '-' ) {\n strippedPlus = value.substring(1);\n }\n return strippedPlus;\n }", "public static String unalter(String saInput) {\r\n\t\tif (null == saInput) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tString slInputTmp = saInput;\r\n\t\t\tint specialLen = specialChars.length;\r\n\t\t\tfor (int ilCounter = 0; ilCounter < specialLen; ilCounter++) {\r\n\t\t\t\tslInputTmp = replaceAllOccurrences(slInputTmp, replacement[ilCounter], specialChars[ilCounter]);\r\n\t\t\t}\r\n\r\n\t\t\treturn slInputTmp;\r\n\t\t} catch (Exception e) {\r\n\t\t\tLOGGER.info(\"Exception:\" + e);\r\n\t\t\t// LOGGER.error(e);\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "public static ArthurString minus(ArthurString one, ArthurNumber two) {\n String t = \"\" + two.val;\n return minus(one, new ArthurString(t));\n }", "private static String excludeSignBit(String value, String signCharToRemove)\n\t{\n\t\tif(StringUtil.isValidString(value))\n\t\t{\n\t\t\tString firstChar = String.valueOf(value.charAt(0));\n\t\t\t\n\t\t\tif(GlobalUtil.isValidSign(firstChar))\n\t\t\t{\n\t\t\t\t/* If signCharToRemove is valid, its for specific sign */\n\t\t\t\tif(StringUtil.isValidString(signCharToRemove))\n\t\t\t\t{\n\t\t\t\t\t/* Exclude the sign char only if it matches */\n\t\t\t\t\tif(firstChar.equalsIgnoreCase(signCharToRemove))\n\t\t\t\t\t{\n\t\t\t\t\t\tvalue = value.substring(1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/* If signCharToRemove is null/invalid, generic */\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tvalue = value.substring(1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn value;\n\t}", "public static String removeAnything(String s, String remove){\n\t\ts=\"1a2b3c\";\n\t\tremove=\"abc\";\n\t\tString copy=\"\";\n\t\tfor(int i=0; i<s.length(); i++){\n\t\t\tString letter=s.substring(i, i+1);\n\t\t\tif (remove.indexOf(letter) ==1)\n\t\t\t\tcopy=copy+letter;\n\t\t}\n\t\treturn copy;\n\t}", "public static String remove(String s, String exception) {\n\t\tint i;\n\t\twhile((i = s.indexOf(exception)) > -1)\n\t\t\ts = (i == 0) ? s.substring(i + 1) : s.substring(0, i) + s.substring(i + 1);\n\t\treturn s;\n\t}", "public static void main(String[] args) {\n\n\t\t\n\t\tString s = \"平仮�??stringabc片仮�??numbers 123漢字gh%^&*#$1@):\";\n\t\t\n\t\t//Regular Expression: [^a-zA-Z0-9]\n\t\t\n\t\ts = s.replaceAll(\"[^a-zA-Z0-9]\", \"-\"); // ^ symbol is used for not/except\n\t\tSystem.out.println(s);\n\t}", "private String composeCharacterString(String string) {\n return null;\r\n }", "public String withoutX(String str) {\r\n if (str.length() > 0 && str.charAt(0) == 'x') {\r\n str = str.substring(1);\r\n }\r\n\r\n if (str.length() > 0 && str.charAt(str.length() - 1) == 'x') {\r\n str = str.substring(0, str.length() - 1);\r\n }\r\n return str;\r\n }", "public static String excludeSignBitPlus(String value)\n\t{\n\t\treturn excludeSignBit(value, SIGN_PLUS);\n\t}", "private String fjernSkilleTegn (String inputString) {\n\t\t\tfor (int i = 0; i < skilleTegn.length; i++) {\n\t\t\t\tinputString = inputString.replace(Character.toString(skilleTegn[i]), \"\");\n\t\t\t}\n\t\t\treturn inputString;\n\t}", "private String removeOutsides(String in){\n\t\t\n\t\tStringBuilder str = new StringBuilder();\n\t\tint firstQuote = in.indexOf(\"\\\"\");\n\t\tint secondQuote = in.indexOf(\"\\\"\", firstQuote + 1);\n\t\tfor(int i = firstQuote + 1; i < secondQuote; i++){\n\t\t\tstr.append(in.charAt(i));\n\t\t}\n\n\t\treturn str.toString();\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tStringUtils.removeInvalidCharacteres(\"alzheimer\\\\\");\n\t}", "protected static String removeBannedCharacters(String st) {\n return st.replaceAll(\"[^A-Za-z]\", \"\");\n }", "public String deFront(String str) {\r\n if (!str.isEmpty()) {\r\n if (str.length() > 1) {\r\n if (str.charAt(0) == 'a' && str.charAt(1) != 'b') {\r\n\r\n return \"a\" + str.substring(2);\r\n } else if (str.charAt(0) != 'a' && str.charAt(1) == 'b') {\r\n\r\n return str.substring(1);\r\n } else if (str.charAt(1) != 'b') {\r\n\r\n return str.substring(2);\r\n }\r\n }\r\n if (str.length() == 1) {\r\n if (str.charAt(0) != 'a') {\r\n\r\n return \"\";\r\n }\r\n }\r\n }\r\n\r\n return str;\r\n }", "static String hideString(String input) {\n if (input == null || input.isEmpty()) {\n return input;\n }\n if (input.length() <= 2) {\n return Strings.repeat(\"X\", input.length());\n }\n\n return new StringBuilder(input).replace(1, input.length() - 1,\n Strings.repeat(\"X\", input.length() - 2))\n .toString();\n }", "public String nonStart(String a, String b) {\r\n String shortA = a.length() > 0 ? a.substring(1) : a;\r\n String shortB = b.length() > 0 ? b.substring(1) : b;\r\n\r\n return shortA + shortB;\r\n }", "@Override\n public CharMatcher negate() {\n return new Negated(this);\n }", "String remEscapes(String str){\n StringBuilder retval = new StringBuilder();\n\n // remove leading/trailing \" or '\r\n int start = 1, end = str.length() - 1;\n\n if ((str.startsWith(SQ3) && str.endsWith(SQ3)) ||\n (str.startsWith(SSQ3) && str.endsWith(SSQ3))){\n // remove leading/trailing \"\"\" or '''\r\n start = 3;\n end = str.length() - 3;\n }\n\n for (int i = start; i < end; i++) {\n\n if (str.charAt(i) == '\\\\' && i+1 < str.length()){\n i += 1;\n switch (str.charAt(i)){\n\n case 'b':\n retval.append('\\b');\n continue;\n case 't':\n retval.append('\\t');\n continue;\n case 'n':\n retval.append('\\n');\n continue;\n case 'f':\n retval.append('\\f');\n continue;\n case 'r':\n retval.append('\\r');\n continue;\n case '\"':\n retval.append('\\\"');\n continue;\n case '\\'':\n retval.append('\\'');\n continue;\n case '\\\\':\n retval.append('\\\\');\n continue;\n }\n\n }\n else {\n retval.append(str.charAt(i));\n }\n }\n\n return retval.toString();\n }", "private String redact(String str)\n\t{\n\t\tStringBuilder r = new StringBuilder();\n\t\tfor(int i = 0; i < str.length(); i++)\n\t\t\tr.append(\"*\");\n\t\tString redacted = r.toString();\n\t\treturn redacted;\n\t}", "public static String removeNonWord(String message)\r\n {\r\n int start = getLetterIndex(message, head); //get the fist index that contain English letter\r\n int end = getLetterIndex(message, tail); //get the last index that contain English letter\r\n if (start == end) // if only contain one letter\r\n return String.valueOf(message.charAt(start)); // return the letter\r\n return message.substring(start, end + 1); // return the content that contain English letter\r\n }", "public void removeJunkOrUnwantedCharFromString() {\n\t\tString str = \"hello@#4kjk122\";\n\t\tstr = str.replaceAll(\"[^a-zA-z0-9]\", \"\");\n\t\t// if we don't put ^ in above statement it will remove a to z charac and numbers\n\t\tSystem.out.println(str);\n\t}", "private String quitarCaracteresNoImprimibles(String mensaje) {\n String newMensaje = \"\";\n int codigoLetra = 0;\n for (char letra : mensaje.toCharArray()) {\n codigoLetra = (int) letra;\n if (codigoLetra >= 32 && codigoLetra <= 128) {\n newMensaje += letra;\n }\n }\n return newMensaje;\n }", "public static String secretWord(String s) {\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\ts = s.replace(s.charAt(i), '*');\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "public static String removeInvalidCharacteres(String string) {\n\t\tString corretString = string;\n\t\tif (containsInvalidCharacterInLogin(string)) {\n\t\t\tString regex = \"[|\\\"&*=+'@#$%\\\\/?{}?:;~<>,\\u00C0\\u00C1\\u00C2\\u00C3\\u00C4\\u00C5\\u00C6\\u00C7\\u00C8\\u00C9\\u00CA\\u00CB\\u00CC\\u00CD\\u00CE\\u00CF\\u00D0\\u00D1\\u00D2\\u00D3\\u00D4\\u00D5\\u00D6\\u00D8\\u0152\\u00DE\\u00D9\\u00DA\\u00DB\\u00DC\\u00DD\\u0178\\u00E0\\u00E1\\u00E2\\u00E3\\u00E4\\u00E5\\u00E6\\u00E7\\u00E8\\u00E9\\u00EA\\u00EB\\u00EC\\u00ED\\u00EE\\u00EF\\u00F0\\u00F1\\u00F2\\u00F3\\u00F4\\u00F5\\u00F6\\u00F8\\u0153\\u00DF\\u00FE\\u00F9\\u00FA\\u00FB\\u00FC\\u00FD\\u00FF]\";\n\t\t\tPattern p = Pattern.compile(regex);\n\t\t\tMatcher m = p.matcher(string);\n\t\t\tcorretString = m.replaceAll(\"\");\n\t\t\t//System.out.println(corretString);\n\t\t}\n\t\t\n\t\tcorretString = corretString.replace(\"\\\\\", \"\");\n\t\t\n\t\treturn corretString;\n\t}", "void unsetString();", "public static String reverseComplement(final CharSequence seq)\n\t{\n\tfinal StringBuilder b=new StringBuilder(seq.length());\n\tfor(int i=0;i< seq.length();++i)\n\t\t{\n\t\tb.append(complement(seq.charAt((seq.length()-1)-i)));\n\t\t}\n\treturn b.toString();\n\t}", "public static String removeBuailte(String s) {\n String out = \"\";\n char[] ca = s.toCharArray();\n for(int i = 0; i < ca.length; i++) {\n char undotted = removeDot(ca[i]);\n if(undotted == ca[i]) {\n out += ca[i];\n } else {\n if(Character.isLowerCase(ca[i])) {\n out += undotted;\n out += 'h';\n } else {\n if((i == 0 && ca.length == 1)\n || (ca.length > (i + 1) && Character.isUpperCase(ca[i + 1]))\n || ((i > 0) && (i == ca.length - 1) && Character.isUpperCase(ca[i - 1]))) {\n out += undotted;\n out += 'H';\n } else {\n out += undotted;\n out += 'h';\n }\n }\n }\n }\n return out;\n }", "public static String b(String paramString)\r\n/* 690: */ {\r\n/* 691:682 */ String str = \"\";\r\n/* 692:683 */ int i1 = -1;\r\n/* 693:684 */ int i2 = paramString.length();\r\n/* 694:686 */ while ((i1 = paramString.indexOf('§', i1 + 1)) != -1) {\r\n/* 695:687 */ if (i1 < i2 - 1)\r\n/* 696: */ {\r\n/* 697:688 */ char c1 = paramString.charAt(i1 + 1);\r\n/* 698:690 */ if (c(c1)) {\r\n/* 699:691 */ str = \"§\" + c1;\r\n/* 700:692 */ } else if (d(c1)) {\r\n/* 701:693 */ str = str + \"§\" + c1;\r\n/* 702: */ }\r\n/* 703: */ }\r\n/* 704: */ }\r\n/* 705:698 */ return str;\r\n/* 706: */ }", "public String tweakFront(String str) {\n\n if(str.substring(0, 1).equalsIgnoreCase(\"a\")){\n\n if(!str.substring(1, 2).equalsIgnoreCase(\"b\")){\n str = str.substring(0, 1) + str.substring(2,str.length());\n }\n \n }else{\n str = str.substring(1);\n \n if(str.substring(0, 1).equalsIgnoreCase(\"b\")){\n \n }else{\n str = str.substring(1);\n }\n }\n \n \n \n return str;\n \n}", "public String removeA(String string) {\n\t\tString result=\"\";\n\t\tint length=string.length();\n\t\tif(length==1)\n\t\t{\n\t\t\tif(string.charAt(0)!='A')\n\t\t\t\tresult=string;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tchar firstchar=string.charAt(0);\n\t\t char secondchar=string.charAt(1);\n\t\t if(string.contains(\"A\") && (firstchar=='A' || secondchar=='A'))\n\t\t\t{\n\t\t\t\tString rest_of_string=string.substring(2, length);\n\t\t\t\tif(firstchar=='A' && secondchar=='A')\n\t\t\t\t{\n\t\t\t\t\tresult=rest_of_string;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tif(firstchar=='A')\n\t\t\t\t\t{\n\t\t\t\t\t\tresult=secondchar+rest_of_string;\n\t\t\t\t\t}\n\t\t\t\t\telse if(secondchar=='A')\n\t\t\t\t\t{\n\t\t\t\t\t\tresult=firstchar+rest_of_string;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tresult=string;\n\t\t}\n\t\treturn result;\n\t}", "public static void main(String[] args) {\nScanner s=new Scanner(System.in);\r\nSystem.out.println(\"Enter the string\");\r\nString input=s.nextLine();\r\nSystem.out.println(\"Enter the mask\");\r\nString mask=s.nextLine();\r\ns.close();\r\nfor(int i=0;i<mask.length();i++){\r\n\tfor(int j=0;j<input.length();j++){\r\n\t\t//System.out.println(input.charAt(j));\r\n\t\tif(mask.charAt(i)==input.charAt(j)){\r\n\t\t\t//System.out.println(input.charAt(j));\r\n\t\t\tinput=input.replace(input.charAt(j)+\"\", \"\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n}\r\nSystem.out.println(input);\r\n\t}", "public void setComplemento(String complemento) {this.complemento = complemento;}", "private static void subStringNonrepchars(String input) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString s =\"\";\n\n\t\tint j=0,max=0,len=0, i=0;\n\t\tboolean[] flag = new boolean[256];\n\t\tfor(i=0;i<input.length();i++){\n\t\t\tif(!flag[input.charAt(i)]){\n\t\t\t\tSystem.out.println(\"char: \"+input.charAt(i)+\" bool: \"+!flag[input.charAt(i)]);\n\t\t\t\tlen++;\n\t\t\t}else{\n\t\t\t\t//System.out.println(\"coming to else\");\n\t\t\t\tif(len>max){\n\t\t\t\t\tmax= len;len=1;\n\t\t\t\t\tSystem.out.println(j+\" j \"+max +\" :max substring: \"+input.substring(j,i));\n\t\t\t\t}\n\t\t\t\tj = i;\n\t\t\t\tSystem.out.println(\"max len is: \"+max+\" j: \"+j);\n\t\t\t\tflag = new boolean[256];\n\t\t\t}\n\t\t\tflag[input.charAt(i)] = true;\n\n\t\t}\n\t\tif(len>max){\n\t\t\tmax=len;\n\t\t\tj=i;\n\t\t}\n\t\tif(max>j)\n\t\t\tSystem.out.println(input.substring(max-j,max+1));\n\t\telse{\n\t\t\tSystem.out.println(input.substring(j-max,max+1));\n\t\t}\n\n\n\n\t}", "private String remove(String in, char toBeRemoved){\n\t\tStringBuilder str = new StringBuilder();\n\t\tfor(int i = 0; i < in.length(); i++){\n\t\t\tif(in.charAt(i) != toBeRemoved){\n\t\t\t\tstr.append(in.charAt(i));\n\t\t\t}\n\t\t}\n\t\treturn str.toString();\n\t}", "public static String starOut(String str) {\r\n\t\t StringBuilder sb = new StringBuilder(\"\");\r\n\t\t for(int i = 0; i < str.length(); i++) {\r\n\t\t int left = (i >= 1) ? i - 1 : i;\r\n\t\t int right = (i < str.length() - 1) ? i + 1 : i;\r\n\t\t if(str.charAt(left) != '*' && str.charAt(right) != '*' && str.charAt(i) != '*') {\r\n\t\t sb.append(str.charAt(i));\r\n\t\t }\r\n\t\t }\r\n\t\t return sb.toString();\r\n\t\t}", "private String updateUnaryMinus(String expression) {\n String previous = expression.substring(0, 1);\n if (previous.equals(\"-\")) {\n expression = \"(0\" + expression + \")\";\n previous = \"0\";\n }\n if (expression.length() > 1) {\n for (int i = 1; i < expression.length(); i++) {\n if (expression.substring(i, i + 1).equals(\"-\") && !isNumber(previous)) {\n expression = expression.substring(0, i) + \"0\" + expression.substring(i, expression.length());\n previous = \"-\";\n i = i + 1;\n System.out.println(expression);\n } else previous = expression.substring(i, i + 1);\n }\n }\n return expression;\n }", "private static String removeChars(String input, String rmv){\n\t\t// in case checked with question asker the char possibility is ASCII\n\t\tboolean[] flags=new boolean[128];\n\t\t// using Arrays.fill to set all flase\n\t\tArrays.fill(flags, false);\n\t\t\n\t\tfor(int i=0;i<rmv.length();i++){\n\t\tflags[(int)rmv.charAt(i)]=true;\t\n\t\t}\n\t\t\n\t\t\n\t\t// here is another trick,\n\t\t// instead of arbitrially loop the array\n\t\t// use self-incremental end pointer\n\t\tint src=0,dst=0;\n\t\tint len=input.length(); \n\t\tchar[] s=input.toCharArray();\n\t\t//save the origional length now, as input array will be updated later, the length maybe changed.\n\t\twhile(src<len){\n\t\t\tif(!flags[(int)s[src]]){\n\t\t\t\ts[dst++]=s[src];\n\t\t\t}\n\t\t\tsrc++;\n\t\t}\n\t\treturn new String(s,0,dst);\n\t}", "public boolean isDeActivationString(String word);", "public char[] twosComplementNegate(char[] binaryStr) {\n\t\t// TODO: Implement this method.\n\t\treturn null;\n\t}", "private static boolean containsIllegals(String toExamine) {\n Pattern pattern = Pattern.compile(\"[+]\");\n Matcher matcher = pattern.matcher(toExamine);\n return matcher.find();\n }", "private static void abs(String word2) {\n\n\t}", "public static String removeSpace(String a){\n String b = \" \"; //STRING TO MAKE PALINDROME TEST\n for(int i =0; i<a.length();i++){ //WORK FOR MORE CASES\n if((int)a.charAt(i)==(int)b.charAt(0))\n a=a.substring(0,i)+a.substring(i+1);\n }\n return a;\n }", "public static String rest(String s) {\n\treturn s.substring(1);\n\t}", "private String eliminarComaSi(String str) {\n\t\tString result = null;\r\n\t\tif (str.charAt(str.length() - 1) == ',' && (str != null) && (str.length() > 0)) {\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t result = str.substring(0, str.length() - 1);\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t}\r\n\t\treturn result;\r\n\t\t}", "private static String cleanAlias(String alias) {\r\n char[] chars = alias.toCharArray();\r\n\r\n // short cut check...\r\n if (!Character.isLetter(chars[0])) {\r\n for (int i = 1; i < chars.length; i++) {\r\n // as soon as we encounter our first letter, return the substring\r\n // from that position\r\n if (Character.isLetter(chars[i])) {\r\n return alias.substring(i);\r\n }\r\n }\r\n }\r\n\r\n return alias;\r\n }", "public static String ungroupify(String text){\r\n return text.replaceAll(\"[\\\\sx]\", \"\");\r\n}", "public String filter(final String in)\n {\n if (in == null)\n {\n return null;\n }\n\n for (int i = 0; i < patterns.length; i++)\n {\n int ipos = in.indexOf(patterns[i]);\n if (ipos >= 1)\n {\n return in.substring(0, ipos)\n + replacements[i]\n + in.substring(ipos + patterns[i].length());\n }\n }\n return in;\n }", "String checkString(String str) {\n\t\tString output = \"\";\n\t\tfor (int index = str.length() - 1; index >= 0; index--) {\n\t\t\toutput = output + str.charAt(index);\n\t\t}\n\t\treturn output;\n\t}", "private String stripNoneWordChars(String uncleanString) {\n return uncleanString.replace(\".\", \" \").replace(\":\", \" \").replace(\"@\", \" \").replace(\"-\", \" \").replace(\"_\", \" \").replace(\"<\", \" \").replace(\">\", \" \");\n\n }", "private static String removeInvalid(String str){\n char[] chrArr = str.toCharArray();\n int val = 0;\n for(int i = 0; i < chrArr.length; i++){\n if(chrArr[i] == '(') val ++;\n else if(chrArr[i] == ')') val --;\n if(val < 0) {\n chrArr[i] = '#';\n val = 0;\n }\n }\n val = 0;\n for(int i = chrArr.length - 1; i >= 0; i--){\n if(chrArr[i] == ')') val ++;\n else if(chrArr[i] == '(') val --;\n if(val < 0){\n chrArr[i] = '#';\n val = 0;\n }\n }\n StringBuilder sb = new StringBuilder();\n for(int i = 0; i < chrArr.length; i++){\n if(chrArr[i] != '#') sb.append(chrArr[i]);\n }\n return sb.toString();\n}", "public String withoutX2(String str) {\r\n if (str.length() == 1 && str.charAt(0) == 'x') {\r\n return \"\";\r\n }\r\n if (str.length() >= 2) {\r\n if (str.charAt(0) == 'x' && str.charAt(1) != 'x') {\r\n return str.substring(1);\r\n } else if (str.charAt(0) != 'x' && str.charAt(1) == 'x') {\r\n return str.charAt(0) + str.substring(2);\r\n } else if (str.charAt(0) == 'x') {\r\n return str.substring(2);\r\n }\r\n }\r\n return str;\r\n }", "public static String removeEscapeChar(String string)\t{\n\t\tint lastIndex = 0;\n\t\twhile (string.contains(\"&#\"))\n\t\t{\n\t\t\t//Get the escape character index\n\t\t\tint startIndex = string.indexOf(\"&#\", lastIndex);\n\t\t\tint endIndex = string.indexOf(\";\", startIndex);\n\n\t\t\t//and rip the sucker out of the string\n\t\t\tString escapeChar = string.substring(startIndex, endIndex);\n\n\t\t\t//Get the unicode representation and replace all occurrences in the string\n\t\t\tString replacementChar = convertEscapeChar(escapeChar);\n\t\t\tstring = string.replaceAll(escapeChar + \";\", replacementChar);\t\t\t\n\t\t\tlastIndex = endIndex;\n\t\t}\n\t\treturn string;\n\t}", "public static String cutOut(String mainStr, String subStr){\n if (mainStr.contains(subStr))\n {\n String front = mainStr.substring(0, (mainStr.indexOf(subStr))); //from beginning of mainStr to before subStr\n String back = mainStr.substring((mainStr.indexOf(subStr)+subStr.length())); //the string in mainStr after the subStr\n return front + back;\n }\n else // if subStr isn't in the mainStr it just returns mainStr\n {\n return mainStr;\n }\n }", "default IDnaStrand cutAndSplice(String enzyme, String splicee) {\n\t\tint pos = 0;\n\t\tint start = 0;\n\t\tString search = this.toString();\n\t\tboolean first = true;\n\t\tIDnaStrand ret = null;\n\n\t\twhile ((pos = search.indexOf(enzyme, start)) >= 0) {\n\t\t\tif (first) {\n\t\t\t\tret = getInstance(search.substring(start, pos));\n\t\t\t\tfirst = false;\n\t\t\t} else {\n\t\t\t\tret.append(search.substring(start, pos));\n\n\t\t\t}\n\t\t\tstart = pos + enzyme.length();\n\t\t\tret.append(splicee);\n\t\t}\n\n\t\tif (start < search.length()) {\n\t\t\t// NOTE: This is an important special case! If the enzyme\n\t\t\t// is never found, return an empty String.\n\t\t\tif (ret == null) {\n\t\t\t\tret = getInstance(\"\");\n\t\t\t} else {\n\t\t\t\tret.append(search.substring(start));\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public static void main(String[] args) {\n\n String s = \"a2b5c7a9f0dafa2s6a8d5a\";\n String a =\"\";\n String rest = \"\";\n\n for (int i = 0; i<s.length(); i++) {\n\n if (s.charAt(i)=='a') {\n a+=s.charAt(i);\n } else {\n rest+=s.charAt(i);\n }\n\n\n }\n System.out.println(a+rest);\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "private final static String remZeroS( String s ) {\n\n char[] ca = s.toCharArray();\n char[] ca2 = new char [ca.length - 1];\n\n\n for ( int i=0; i<ca2.length; i++ ) {\n ca2[i] = ca[i+1];\n } // end for\n\n return new String (ca2);\n\n }", "public boolean notParenth(String str) {\n \n for (char op: notPar) {\n if (str.equals(op + \"\")) {\n return true;\n }\n }\n return false;\n }", "public static String clean(String string) {\n\t\tif(!Character.isLetter(string.charAt(string.length() - 1))){\n\t\t\tString str = \"\";\n\t\t\tfor(int i = 0; i < string.length() - 1; i++){\n\t\t\t\tstr += string.charAt(i);\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t\treturn string;\n\t}", "public String extraFront(String str) {\r\n String base = str.length() > 2 ? str.substring(0, 2) : str;\r\n\r\n return base + base + base;\r\n }", "public static String disemvowel(String originStr){\r\n return originStr.replaceAll(\"[AaEeIiOoUu]\",\"\");\r\n }", "private boolean esDelimitador(char c){\n if ((\"+-/*^=%()\".indexOf (c) != -1)){\n return true;\n }else{\n return false;\n }\n }", "public static String RemoveCharacters(String sentence){\n\t\tString keyCharacters[] = {\"<\",\">\",\"SERVICE\",\"{\",\"}\",\"(\",\")\",\"-\"};\n\t\tString resturnString = sentence;\n\t\tfor(int i=0;i<keyCharacters.length;i++) {\n\t\t\tresturnString = resturnString.replace(keyCharacters[i],\"\");\n\t\t}\n\t\t\n\t\treturn resturnString;\n\t}", "private static String removeHelper(String s, int index) {\r\n \tif (index == 0) {\r\n \t\treturn s;\r\n \t}\r\n \telse {\r\n \t\tchar cur = s.charAt(index);\r\n \t\tchar prev = s.charAt(index - 1);\r\n \t\tString result = s.substring(0, index);\r\n \t\tif (cur == prev) {\r\n \t\t\treturn removeHelper(result, index - 1);\r\n \t\t}\r\n \t\telse {\r\n \t\t\treturn removeHelper(result, index - 1) + cur;\r\n \t\t}\r\n \t}\r\n }", "public String puncRemoved(String payment){\n String result = \"\";\n for(int i = 0; i < payment.length(); i++){\n if(payment.charAt(i) != ','){\n result = result + payment.charAt(i);\n }\n }\n return result;\n }", "public String backAround(String str) {\n char last = str.charAt(str.length()-1);\n return last + str + last;\n}", "private String escape(String str) {\n String result = null; // replace(str, \"&\", \"&amp;\");\n\n while (str.indexOf(\"&\") != -1) {\n str = replace(str, \"&\", \"&amp;\");\n }\n result = str;\n while (result.indexOf(\"-\") != -1) {\n result = replace(result, \"-\", \"\");\n }\n return result;\n }", "public String removeCharacter(int idx)\r\n\t{\r\n\t\tif(expression.length() == 0)\r\n\t\t\treturn \"\";\r\n\t\tString result = expression.substring(idx, idx + 1);\r\n\t\tif(idx == expression.length() - 1)\r\n\t\t\texpression = expression.substring(0, idx);\r\n\t\telse\r\n\t\t\texpression = expression.substring(0, idx) + expression.substring(idx + 1);\r\n\t\treturn result;\r\n\t}", "public String removeSeparadorData(String data) {\r\n if(data.contains(\"/\")) {\r\n data = data.replaceAll(\"/\", \"\");\r\n \r\n } else if(data.contains(\"-\")) {\r\n data = data.replace(\"-\", \"\");\r\n }\r\n return data;\r\n }", "public static String rest(String s) {\n return s.substring(1);\n }", "private final static String stripA( String s ) {\n\n char[] ca = s.toCharArray();\n char[] ca2 = new char [ca.length - 1];\n\n\n for ( int i=0; i<ca2.length; i++ ) {\n ca2[i] = ca[i];\n } // end for\n\n return new String (ca2);\n\n }", "public String ocultarPalabra(String palabra){\n String resultado=\"\";\n for(int i=0;i<palabra.length();i++){\n resultado+=\"-\";\n }\n return resultado;\n }", "public static String removeJunk(String str){\n StringBuilder strnew = new StringBuilder(str);\n for(int i=0;i<strnew.length();i++){\n if(!Character.isLetter(strnew.charAt(i)))\n strnew.delete(i, i+1);\n }\n return strnew.toString();\n }", "public String stripInput(String input) {\n return input.replaceAll(\"[.#$\\\\[\\\\]]\", \"\").replaceAll(\"/\", \" \");\n }", "private String cleanName(String name) {\n int pt = name.indexOf('<');\n if (pt >= 0) name = name.substring(0,pt);\n name = name.replace(\"-\", \"\");\n if (name.startsWith(\".\")) name = name.substring(1);\n if (name.endsWith(\".\")) name = name.substring(0,name.length()-1);\n return name;\n }", "public static String decryptPassword(String s)\n {\n String pass = \"\";\n int i = 0;\n while (i < s.length() - 1)\n {\n char ch = s.charAt(i);\n char ch2 = s.charAt(i + 1);\n if (Character.isLowerCase(ch2) && Character.isUpperCase(ch) && Character.isSpecia;) {\n pass = pass + ch2 + ch + \"*\";\n i = i + 2;\n }\n if (Character.isDigit(ch)) {\n pass = \"0\"+pass;\n i = i + 1;\n } else {\n pass = pass + ch;\n i = i + 1;\n }\n }\n return pass;\n }", "public String reFormatStringForURL(String string) {\n\t\t string = string.toLowerCase().replaceAll(\" \", \"-\").replaceAll(\"--\", \"-\");\n\t\t if(string.endsWith(\"-\")) { string = string.substring(0, (string.length() - 1)); }\n\t\t return string;\n\t\t }", "static String invert (String s) {return power(s,-1);}", "public String escapeSpetialCharecters(String string)\r\n {\r\n return string.replaceAll(\"(?=[]\\\\[+&|!(){}^\\\"~*?:\\\\\\\\-])\", \"\\\\\\\\\");\r\n }", "String filter(String v);", "public static void main(String[] args) {\n\n\t\tString input=\"hello world!\";\n\t\tString remove=\"eod\";\n\t\tSystem.out.println(\" === after remove ====:\"+removeChars(input, remove));\n\t\t// output is : === after remove ====:hll wrl!\n\t}", "public void remove(String str);", "@Override\n\tprotected void minus(char c, InterimResult ir)\n\t{\n\t\tNegateAction Negate = new NegateAction();\n\t\tNegate.execute(ir, c);\t\t\n\t}", "public static String removeAdjacentDuplicateChars(String s) {\r\n \tif (s.length() == 0) {\r\n \t\treturn \"\";\r\n \t}\r\n \telse {\r\n \t\tint len = s.length();\r\n \t\tString result = removeHelper(s, len - 1);\r\n \t\treturn result;\r\n \t}\r\n }", "private String affirmCall(String string, Call call)\n {\n if(string.contains(\"in(\"+call.callString+\"),\"))\n {\n string = string.replace(\"in(\"+call.callString+\"),\",\"\");\n }\n else if(string.contains(\"in(\"+call.callString+\")\"))\n {\n string = string.replace(\"in(\"+call.callString+\")\",\"\");\n }\n else if(string.contains(call.callString+\",\"))\n {\n string = string.replace(call.callString+\",\",\"\");\n }\n else if(string.contains(call.callString))\n {\n string = string.replace(call.callString,\"\");\n }\n string = string.replace(\":-.\",\".\");\n string = string.replace(\",.\",\".\");\n return string;\n }" ]
[ "0.65322983", "0.6044682", "0.5887391", "0.5821475", "0.56062454", "0.5586544", "0.55759966", "0.5560572", "0.55436766", "0.5543137", "0.5517561", "0.5507526", "0.5500589", "0.549783", "0.548954", "0.5455932", "0.5402828", "0.5399722", "0.53994274", "0.5392797", "0.53840595", "0.53785384", "0.5369966", "0.5329391", "0.53193146", "0.5314341", "0.5309423", "0.53048766", "0.5281369", "0.52613413", "0.52568936", "0.52565765", "0.5255682", "0.52440137", "0.52383256", "0.52185214", "0.5202754", "0.520151", "0.5162677", "0.51532155", "0.51508445", "0.5145156", "0.51400226", "0.51237994", "0.5116776", "0.5111569", "0.51083523", "0.510743", "0.5097687", "0.5090363", "0.5078002", "0.5071312", "0.5070836", "0.5070833", "0.5046401", "0.50378805", "0.50376546", "0.50339615", "0.5031683", "0.5019538", "0.5019167", "0.50067854", "0.499173", "0.49908718", "0.49766013", "0.4975775", "0.49729514", "0.49685112", "0.49671945", "0.4956458", "0.49561375", "0.4953061", "0.49518055", "0.49473563", "0.49470958", "0.4941604", "0.493969", "0.49394768", "0.4934563", "0.49324644", "0.4931677", "0.4931339", "0.49263895", "0.49260026", "0.49251977", "0.49242258", "0.4923471", "0.49150944", "0.49129856", "0.49123546", "0.4907123", "0.49004596", "0.4896519", "0.4893063", "0.489232", "0.48906144", "0.48729977", "0.48651716", "0.48516312", "0.48479262", "0.48460564" ]
0.0
-1
Subtrair ano ao anoMesReferencia subitrairAnoAnoMesReferencia
public static Integer subtrairAnoAnoMesReferencia(Integer anoMesReferencia, int qtdAnos) { int mes = obterMes(anoMesReferencia.intValue()); int ano = obterAno(anoMesReferencia.intValue()); String anoMes = ""; ano = ano - qtdAnos; if (mes < 10) { anoMes = "" + ano + "0" + mes; } else { anoMes = "" + ano + mes; } return Integer.parseInt(anoMes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removerPorReferencia(int referencia){\n if (buscar(referencia)) {\n // Consulta si el nodo a eliminar es el pirmero\n if (inicio.getEmpleado().getId() == referencia) {\n // El primer nodo apunta al siguiente.\n inicio = inicio.getSiguiente();\n // Apuntamos con el ultimo nodo de la lista al inicio.\n ultimo.setSiguiente(inicio);\n } else{\n // Crea ua copia de la lista.\n NodoEmpleado aux = inicio;\n // Recorre la lista hasta llegar al nodo anterior\n // al de referencia.\n while(aux.getSiguiente().getEmpleado().getId() != referencia){\n aux = aux.getSiguiente();\n }\n if (aux.getSiguiente() == ultimo) {\n aux.setSiguiente(inicio);\n ultimo = aux;\n } else {\n // Guarda el nodo siguiente del nodo a eliminar.\n NodoEmpleado siguiente = aux.getSiguiente();\n // Enlaza el nodo anterior al de eliminar con el\n // sguiente despues de el.\n aux.setSiguiente(siguiente.getSiguiente());\n // Actualizamos el puntero del ultimo nodo\n }\n }\n // Disminuye el contador de tama�o de la lista.\n size--;\n }\n }", "private void cargarContrarreferencia() {\r\n\t\tif (admision_seleccionada != null\r\n\t\t\t\t&& !admision_seleccionada.getAtendida()) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_CONTRAREFERENCIA,\r\n\t\t\t\t\tIRutas_historia.LABEL_CONTRAREFERENCIA, parametros);\r\n\t\t}\r\n\r\n\t}", "public void removerPorReferencia(String referencia){\n if (buscar(referencia)) {\r\n // Consulta si el nodo a eliminar es el pirmero\r\n if (inicio.getValor() == referencia) {\r\n // El primer nodo apunta al siguiente.\r\n inicio = inicio.getSiguiente();\r\n } else{\r\n // Crea ua copia de la lista.\r\n Nodo aux = inicio;\r\n // Recorre la lista hasta llegar al nodo anterior \r\n // al de referencia.\r\n while(aux.getSiguiente().getValor() != referencia){\r\n aux = aux.getSiguiente();\r\n }\r\n // Guarda el nodo siguiente del nodo a eliminar.\r\n Nodo siguiente = aux.getSiguiente().getSiguiente();\r\n // Enlaza el nodo anterior al de eliminar con el \r\n // sguiente despues de el.\r\n aux.setSiguiente(siguiente); \r\n }\r\n // Disminuye el contador de tamaño de la lista.\r\n tamanio--;\r\n }\r\n }", "public void excluirConta(Integer idFaturamentoGrupo , Integer anoMesReferencia) throws ErroRepositorioException ;", "public void gerarTabelaAuxiliarAPartirDaSelecaoDeContasExcluidas(Integer idFaturamentoGrupo, Integer anoMesReferenciaConta) throws ErroRepositorioException;", "public void atualizarContaGeral(Integer idFaturamentoGrupo, Integer anoMesReferencia) throws ErroRepositorioException ;", "public void editarPorReferencia(String referencia, String valor){\r\n // Consulta si el valor existe en la lista.\r\n if (buscar(referencia)) {\r\n // Crea ua copia de la lista.\r\n Nodo aux = inicio;\r\n // Recorre la lista hasta llegar al nodo de referencia.\r\n while(aux.getValor() != referencia){\r\n aux = aux.getSiguiente();\r\n }\r\n // Actualizamos el valor del nodo\r\n aux.setValor(valor);\r\n }\r\n }", "public String eliminaSubAccertamento(){\n\t\t//informazioni per debug:\n\t\tsetMethodName(\"eliminaSubAccertamento\");\n\t\tdebug(methodName, \"uid da annullare--> \"+getUidSubDaEliminare());\n\t\t\n\t\tif(null!=model.getListaSubaccertamenti() && !model.getListaSubaccertamenti().isEmpty()){\n\t\t\t\n\t\t\t//itero la lista dei sub\n\t\t\tfor (int i = 0; i < model.getListaSubaccertamenti().size(); i++) {\n\t\t\t\tSubAccertamento sub = model.getListaSubaccertamenti().get(i);\n\t\t\t\t//se trovo il sub in questione:\n\t\t\t\tif(sub.getUid() == Integer.valueOf(getUidSubDaEliminare())){\n\t\t\t\t\t//lo rimuovo\n\t\t\t\t\tmodel.getListaSubaccertamenti().remove(i);\n\t\t\t\t} \t \n\t\t\t}\n\t\t\t//setto la nuova lista con il sub rimosso:\n\t\t\tmodel.setListaSubaccertamenti(model.getListaSubaccertamenti());\n\t\t\t\n\t\t\t//Fix per SIOPE JIRA SIAC-3913:\n\t\t\tAggiornaAccertamento requestAggiorna = convertiModelPerChiamataServizioAggiornaAccertamenti(true);\n\t\t\trequestAggiorna.getAccertamento().setCodSiope(model.getAccertamentoInAggiornamento().getCodSiope());\n\t\t\t//\n\t\t\t\n\t\t\t//chiamo il servizio di aggiorna che non avendo piu' quel sub in lista lo eliminera':\n\t\t\tAggiornaAccertamentoResponse response =\tmovimentoGestionService.aggiornaAccertamento(requestAggiorna);\n\t\t\t\n\t\t\t//analizzo l'esito del servizio:\n\t\t\tif(!response.isFallimento() && response.getAccertamento()!= null ){\n\t\t\t\t//Ottimizzazione richiamo ai servizi\n\t\t\t\tmodel.setAccertamentoRicaricatoDopoInsOAgg(response.getAccertamento());\n\t\t\t}else{\n\t\t\t\taddErrori(response.getErrori());\n\t\t\t\treturn INPUT;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//ricarico i dati:\n\t\tricaricaSubAccertamenti(true);\n\t\treturn SUCCESS;\n\t}", "public void excluirContaCategoriaConsumoFaixa(Integer idFaturamentoGrupo , Integer anoMesReferencia) throws ErroRepositorioException ;", "public void excluirClienteConta(Integer idFaturamentoGrupo , Integer anoMesReferencia) throws ErroRepositorioException ;", "public void excluirContaImopostosDeduzidos(Integer idFaturamentoGrupo , Integer anoMesReferencia) throws ErroRepositorioException;", "public void excluirContasTabelaAuxiliar(Integer idFaturamentoGrupo , Integer anoMesReferencia) throws ErroRepositorioException ;", "private void ricaricaSubAccertamenti(boolean flagPostAggiorna) {\n\t\tif(model.getAccertamentoRicaricatoDopoInsOAgg()!= null){\n\t\t\t\n\t\t\t//travaso alcuni dati:\n\t\t\tmodel.setListaSubaccertamenti(model.getAccertamentoRicaricatoDopoInsOAgg().getElencoSubAccertamenti());\n\t\t\tmodel.setDisponibilitaSubImpegnare(model.getAccertamentoRicaricatoDopoInsOAgg().getDisponibilitaSubAccertare());\n\t\t\tmodel.setTotaleSubImpegno(model.getAccertamentoRicaricatoDopoInsOAgg().getTotaleSubAccertamenti());\n\t\t\tmodel.setAccertamentoInAggiornamento(model.getAccertamentoRicaricatoDopoInsOAgg());\n\t\t\tsetAccertamentoToUpdate(model.getAccertamentoRicaricatoDopoInsOAgg());\n\t\t\t\n\t\t\t//flagPostAggiorna serve ad indicare al metodo caricaDatiAccertamento\n\t\t\t//se deve ricaricare i dati da servizio oppure basarsi su quelli presenti nel model:\n\t\t\tcaricaDatiAccertamento(flagPostAggiorna);\n\t\t\t\n\t\t\t//setto a null AccertamentoRicaricatoDopoInsOAgg\n\t\t\tmodel.setAccertamentoRicaricatoDopoInsOAgg(null);\n\t\t}\n\t}", "public String annullaSubAccertamento(){\n\t\t//informazioni per debug:\n\t\tsetMethodName(\"annullaSubAccertamento\");\n\t\tdebug(methodName, \"uid da annullare--> \"+getUidSubDaAnnullare());\n\t\t\n\t\t//compongo la request per il servizio di annulla:\n\t\tAnnullaMovimentoEntrata reqAnnulla = convertiModelPerChiamataServizioAnnulla(getUidSubDaAnnullare());\n\t\t\n\t\t//richiamo il servizio di annulla:\n\t\tAnnullaMovimentoEntrataResponse response = movimentoGestionService.annullaMovimentoEntrata(reqAnnulla);\n\n\t\t//analizzo la risposta del servizio:\n\t\tif(!response.isFallimento()){\n\t\t\t// RICARICO L'ACCERTAMENTO EVITANDO LA MEGA QUERY\n\t\t\tif(response.getAccertamento()!= null){\n\t\t\t\tmodel.setAccertamentoRicaricatoDopoInsOAgg(response.getAccertamento());\n\t\t\t}\n\t\t\t\n\t\t\t//richiamo il metodo di caricamento passandogli flagPostAggiorna a true:\n\t\t\tricaricaSubAccertamenti(true);\n\t\t\t\n\t\t\t//setto il messaggio di esito positivo:\n\t\t\taddActionMessage(ErroreFin.OPERAZIONE_EFFETTUATA_CORRETTAMENTE.getCodice() + \" \" + ErroreFin.OPERAZIONE_EFFETTUATA_CORRETTAMENTE.getErrore(\"\").getDescrizione());\n\t\t}else{\n\t\t\t//presenza errori\n\t\t\taddErrori(response.getErrori());\n\t\t\treturn INPUT;\n\t\t}\n\t\t\n\t\treturn SUCCESS;\n\t}", "public void setReferencia(int value) {\n this.referencia = value;\n }", "@Override\n public DatosIntercambio subirFichero(String nombreFichero,int idSesionCliente) throws RemoteException, MalformedURLException, NotBoundException {\n\n \t//AQUI HACE FALTA CONOCER LA IP PUERTO DEL ALMACEN\n \t//Enviamos los datos para que el servicio Datos almacene los metadatos \n \tdatos = (ServicioDatosInterface) Naming.lookup(\"rmi://\"+ direccion + \":\" + puerto + \"/almacen\");\n \t\n \t//aqui deberiamos haber combropado un mensaje de error si idCliente < 0 podriamos saber que ha habido error\n int idCliente = datos.almacenarFichero(nombreFichero,idSesionCliente);\n int idSesionRepo = datos.dimeRepositorio(idCliente);//sesion del repositorio\n Interfaz.imprime(\"Se ha agregado el fichero \" + nombreFichero + \" en el almacen de Datos\"); \n \n //Devolvemos la URL del servicioClOperador con la carpeta donde se guardara el tema\n DatosIntercambio di = new DatosIntercambio(idCliente , \"rmi://\" + direccionServicioClOperador + \":\" + puertoServicioClOperador + \"/cloperador/\"+ idSesionRepo);\n return di;\n }", "public boolean buscar(String referencia){\n Nodo aux = inicio;\r\n // Bandera para indicar si el valor existe.\r\n boolean encontrado = false;\r\n // Recorre la lista hasta encontrar el elemento o hasta \r\n // llegar al final de la lista.\r\n while(aux != null && encontrado != true){\r\n // Consulta si el valor del nodo es igual al de referencia.\r\n if (referencia == aux.getValor()){\r\n // Canbia el valor de la bandera.\r\n encontrado = true;\r\n }\r\n else{\r\n // Avansa al siguiente. nodo.\r\n aux = aux.getSiguiente();\r\n }\r\n }\r\n // Retorna el resultado de la bandera.\r\n return encontrado;\r\n }", "public void excluirContaCategoria(Integer idFaturamentoGrupo , Integer anoMesReferencia) throws ErroRepositorioException ;", "public void aumentarReproducidas() {\n\t\tsuper.aumentarReproducidas();\n\n\t}", "public void gerarReceitaLiquidaIndiretaDeAgua() \n\t\t\tthrows ErroRepositorioException;", "public void deletarResumoFaturamentoSimulacaoDetalheCredito(Integer idFaturamentoGrupo,\n\t\t\tInteger anoMesReferencia, Integer idRota)\n\t\t\tthrows ErroRepositorioException;", "public void acionarInadimplencia(CestaGarantiasDO cesta);", "private void EliminarAristaNodo (NodoGrafo nodo ,int v){\n\t\tNodoArista aux = nodo.arista;\n\t\tif (aux != null) {\n\t\t\t// Si la arista a eliminar es la primera en\n\t\t\t// la lista de nodos adyacentes\n\t\t\tif (aux.nodoDestino.nodo == v){\n\t\t\t\tnodo.arista = aux.sigArista;\n\t\t\t}\n\t\t\telse {\n\t\t\t\twhile (aux.sigArista!= null && aux.sigArista.nodoDestino.nodo != v){\n\t\t\t\t\taux = aux.sigArista;\n\t\t\t\t}\n\t\t\t\tif (aux.sigArista!= null) {\n\t\t\t\t\t// Quita la referencia a la arista hacia v\n\t\t\t\t\taux.sigArista = aux.sigArista.sigArista;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public Integer pesquisarLigacaoAguaSituacaoConta(Integer idImovel,\n\t\t\tInteger anoMesReferencia) throws ErroRepositorioException ;", "public void deletarResumoFaturamentoSimulacaoDetalheDebito(Integer idFaturamentoGrupo,\n\t\t\tInteger anoMesReferencia, Integer idRota)\n\t\t\tthrows ErroRepositorioException;", "public NodoA desconectar(NodoA t){\n if(t != cabeza){\n t.getLigaDer().setLigaIzq(t.getLigaIzq());\n System.out.println(\"Direccion:\"+t+\" izquierdo:\"+t.getLigaIzq()+\" derecho:\"+t.getLigaDer());\n t.getLigaIzq().setLigaDer(t.getLigaDer());\n return t;\n }\n return null;\n }", "public void imprimirSubdominios(String dominio,Pila pila){\n\t\t\tmodCons.imprimirSubdominios(dominio,pila);\n\t}", "public void bugActualizarReferenciaActual(AnalisisTransaCliente analisistransacliente,AnalisisTransaCliente analisistransaclienteAux) throws Exception {\n\t\tthis.setCamposBaseDesdeOriginalAnalisisTransaCliente(analisistransacliente);\r\n\t\t\t\t\t\r\n\t\t//POR BUG: EL OBJETO ACTUAL SE PERDIA, POR LO QUE SE GUARDA TAMBIEN VALORES EN AUX Y LUEGO DESPUES DEL MENSAJE SE HACE REFERENCIA EL OBJETO ACTUAL AL AUX\r\n\t\tanalisistransaclienteAux.setId(analisistransacliente.getId());\r\n\t\tanalisistransaclienteAux.setVersionRow(analisistransacliente.getVersionRow());\t\t\t\t\t\r\n\t}", "public int getPosicion(String referencia) throws Exception{\n if (buscar(referencia)) {\r\n // Crea una copia de la lista.\r\n Nodo aux = inicio;\r\n // COntado para almacenar la posición del nodo.\r\n int cont = 0;\r\n // Recoore la lista hasta llegar al nodo de referencia.\r\n while(referencia != aux.getValor()){\r\n // Incrementa el contador.\r\n cont ++;\r\n // Avansa al siguiente. nodo.\r\n aux = aux.getSiguiente();\r\n }\r\n // Retorna el valor del contador.\r\n return cont;\r\n // Crea una excepción de Valor inexistente en la lista.\r\n } else {\r\n throw new Exception(\"Valor inexistente en la lista.\");\r\n }\r\n }", "public void gerarReceitaLiquidaIndiretaDeEsgoto() \n\t\t\tthrows ErroRepositorioException;", "public HiloCalcularSubredes(InfoRed info, int[] direccionIP, int numeroBitsAUsar,String claseRed,int numeroDeSubredes) {\n this.info = info;\n this.direccionIP = direccionIP;\n this.numeroBitsAUsar = numeroBitsAUsar;\n this.claseRed = claseRed;\n this.numeroDeSubredes = numeroDeSubredes;\n subredFinal = new int[4];\n listaSubredes = new ArrayList<>();\n \n }", "public void bugActualizarReferenciaActual(TipoDireccion tipodireccion,TipoDireccion tipodireccionAux) throws Exception {\n\t\tthis.setCamposBaseDesdeOriginalTipoDireccion(tipodireccion);\r\n\t\t\t\t\t\r\n\t\t//POR BUG: EL OBJETO ACTUAL SE PERDIA, POR LO QUE SE GUARDA TAMBIEN VALORES EN AUX Y LUEGO DESPUES DEL MENSAJE SE HACE REFERENCIA EL OBJETO ACTUAL AL AUX\r\n\t\ttipodireccionAux.setId(tipodireccion.getId());\r\n\t\ttipodireccionAux.setVersionRow(tipodireccion.getVersionRow());\t\t\t\t\t\r\n\t}", "public void cancelarContaReferenciaContabilMenorSistemaParametro(\n\t\t\tConta conta, Integer debitoCreditoSituacaoAnterior)\n\t\t\tthrows ErroRepositorioException;", "@Override\n\tpublic void RecevoireRequete(Requete requete) {\n\t\tSystem.out.println(\"from \" + requete.getExpediteur().getNom() + \" to \" + requete.getDestinataire());\n\t}", "public void resetReferenciado();", "public static void main(String[] args) {\n\t\tObject[] referencias1 = new Object[5];\n\t\t\n\t\tSystem.out.println(referencias1.length);\n\t\t\n\t\tContaCorrente cc1 = new ContaCorrente(22, 11);\n\t\treferencias1[0] = cc1;\n\t\t\n\t\tContaPoupanca cc2 = new ContaPoupanca(22, 22);\n\t\treferencias1[1] = cc2;\t\n\t\t\n\t\tCliente cliente = new Cliente();\n\t\treferencias1[2] = cliente;\n\t\t\n\t\t//System.out.println(cc2.getNumero());\n\t\t\n//\t\tObject referenciaGenerica = contas[1];\n//\t\t\n//\t\tSystem.out.println( referenciaGenerica.getNumero() );\n\t\t\n\t\tContaPoupanca ref = (ContaPoupanca) referencias1[1];//type cast\n\t\tSystem.out.println(cc2.getNumero());\n\t\tSystem.out.println(ref.getNumero());\n\t\t\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tString _infoReferencia = String.format(\"INFORMACIÓN DE REFERENCIA:\\n--------------------------------------\\n\"\r\n\t\t\t\t\t\t\t\t\t\t\t + \"Código de referencias: %s\\n\", this._codigoReferencia);\r\n\t\t\r\n\t\treturn _infoReferencia + super.toString();\r\n\t}", "public int getReferencia() {\n return referencia;\n }", "public void reabrirContrato() {\n int i;\n if (hospedesCadastrados.isEmpty()) {\n System.err.println(\"Nao existe hospedes cadastrados\\n\");\n } else {\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//hospede\n if (hospedesCadastrados.get(i).getContrato().isSituacao()) {//verifica se o contrato já estpa aberto\n System.err.println(\"O contrado desse hospede já encontra-se aberto\");\n\n } else {//caso o contrato encontre-se fechado\n hospedesCadastrados.get(i).getContrato().setSituacao(true);\n System.err.println(\"Contrato reaberto, agora voce pode reusufruir de nossos servicos!\");\n }\n }\n }\n }\n }", "public void refrescarForeignKeysDescripcionesCierreCaja() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tCierreCajaConstantesFunciones.refrescarForeignKeysDescripcionesCierreCaja(this.cierrecajaLogic.getCierreCajas());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tCierreCajaConstantesFunciones.refrescarForeignKeysDescripcionesCierreCaja(this.cierrecajas);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\tclasses.add(new Classe(Empresa.class));\r\n\t\tclasses.add(new Classe(Sucursal.class));\r\n\t\tclasses.add(new Classe(Usuario.class));\r\n\t\tclasses.add(new Classe(TipoFormaPago.class));\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//cierrecajaLogic.setCierreCajas(this.cierrecajas);\r\n\t\t\tcierrecajaLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}", "public void bugActualizarReferenciaActual(CierreCaja cierrecaja,CierreCaja cierrecajaAux) throws Exception {\n\t\tthis.setCamposBaseDesdeOriginalCierreCaja(cierrecaja);\r\n\t\t\t\t\t\r\n\t\t//POR BUG: EL OBJETO ACTUAL SE PERDIA, POR LO QUE SE GUARDA TAMBIEN VALORES EN AUX Y LUEGO DESPUES DEL MENSAJE SE HACE REFERENCIA EL OBJETO ACTUAL AL AUX\r\n\t\tcierrecajaAux.setId(cierrecaja.getId());\r\n\t\tcierrecajaAux.setVersionRow(cierrecaja.getVersionRow());\t\t\t\t\t\r\n\t}", "public void ImprimirRelatorio(Iterator<Despesa> listaDespesa) {\n\t\t\n\t\tfloat totalGasto = 0.0f;\n\t\tString conteudo = \"\";\n\t\tImpressora imp;\n\t\ttotalGasto = calculadora.calcularDespesa(listaDespesa);\n\t\tconteudo = criarConteudo(totalGasto);\n\t\tso.imprimir(conteudo);\n\t}", "public void refrescarForeignKeysDescripcionesAnalisisTransaCliente() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tAnalisisTransaClienteConstantesFunciones.refrescarForeignKeysDescripcionesAnalisisTransaCliente(this.analisistransaclienteLogic.getAnalisisTransaClientes());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tAnalisisTransaClienteConstantesFunciones.refrescarForeignKeysDescripcionesAnalisisTransaCliente(this.analisistransaclientes);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\tclasses.add(new Classe(Empresa.class));\r\n\t\tclasses.add(new Classe(Modulo.class));\r\n\t\tclasses.add(new Classe(Transaccion.class));\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//analisistransaclienteLogic.setAnalisisTransaClientes(this.analisistransaclientes);\r\n\t\t\tanalisistransaclienteLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}", "public void setReferenciado(java.lang.String referenciado);", "public Set<MReferencia> mReferenciasYaUsadas(Concepto referenciante,Concepto referenciado,List<Referencia> referencias){\r\n\t\tSet<MReferencia> mReferencias=new HashSet<MReferencia>();\r\n\t\tfor (Referencia ref : referencias) {\r\n\t\t\tif( (ref.getReferenciante().equals(referenciante)) &&\r\n\t\t\t\t(ref.getReferenciado().equals(referenciado))) \r\n\t\t\t\t\t{\r\n\t\t\t\tmReferencias.add(ref.getmReferencia());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn mReferencias;\r\n\t}", "public java.lang.String getReferenciado();", "private void escoger(){\n partida.escoger(ficha1,ficha2);\n ficha1=null;\n ficha2=null;\n this.ok=partida.ok;\n }", "public void bugActualizarReferenciaActual(TipoDetalleMovimientoInventario tipodetallemovimientoinventario,TipoDetalleMovimientoInventario tipodetallemovimientoinventarioAux) throws Exception {\n\t\tthis.setCamposBaseDesdeOriginalTipoDetalleMovimientoInventario(tipodetallemovimientoinventario);\r\n\t\t\t\t\t\r\n\t\t//POR BUG: EL OBJETO ACTUAL SE PERDIA, POR LO QUE SE GUARDA TAMBIEN VALORES EN AUX Y LUEGO DESPUES DEL MENSAJE SE HACE REFERENCIA EL OBJETO ACTUAL AL AUX\r\n\t\ttipodetallemovimientoinventarioAux.setId(tipodetallemovimientoinventario.getId());\r\n\t\ttipodetallemovimientoinventarioAux.setVersionRow(tipodetallemovimientoinventario.getVersionRow());\t\t\t\t\t\r\n\t}", "public int eliminardelInicio(){\n int elemento = inicio.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n inicio = inicio.sig;\n inicio.ant = null;\n }\n return elemento;\n \n \n }", "public Object[] pesquisarArquivoTextoRoteiroEmpresa(Integer idRota, Integer anoMesReferencia)\n\t\t\tthrows ErroRepositorioException ;", "public void cancelarContaReferenciaContabilMaiorIgualSistemaParametro(\n\t\t\tConta conta) throws ErroRepositorioException;", "private void iniciaReferencia(int qtdLinha){\n referenciaFrequencia = new int[qtdConjunto][];\n referenciaTempo = new int[qtdConjunto][];\n for (int i = 0; i < referenciaFrequencia.length; i++) {\n \treferenciaFrequencia[i] = new int[qtdLinha];\n \treferenciaTempo[i] = new int[qtdLinha];\n for (int j = 0; j < referenciaFrequencia[i].length; j++) {\n\t\t\t\treferenciaFrequencia[i][j] = 0;\n\t\t\t\treferenciaTempo[i][j] = 0;\n\t\t\t}\n }\n }", "public void setImagenReferencia(byte[] imagenReferencia) {\n\t\tthis.imagenReferencia = imagenReferencia;\n\t}", "public Integer pesquisarContaRetificada(Integer idImovel,\n\t\t\tint anoMesReferenciaConta) throws ErroRepositorioException;", "public void refrescarForeignKeysDescripcionesTipoDetalleMovimientoInventario() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.refrescarForeignKeysDescripcionesTipoDetalleMovimientoInventario(this.tipodetallemovimientoinventarioLogic.getTipoDetalleMovimientoInventarios());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.refrescarForeignKeysDescripcionesTipoDetalleMovimientoInventario(this.tipodetallemovimientoinventarios);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//tipodetallemovimientoinventarioLogic.setTipoDetalleMovimientoInventarios(this.tipodetallemovimientoinventarios);\r\n\t\t\ttipodetallemovimientoinventarioLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}", "public void add(T conteudo){\n No<T> novoNo = new No(conteudo);\n if( this.isEmpty() ){\n this.referenciaEntrada = novoNo;\n }else {\n No<T> noAuxiliar = referenciaEntrada;\n for (int i = 0; i < this.size() - 1; i++) {\n noAuxiliar = noAuxiliar.getProximoNo();\n }\n noAuxiliar.setProximoNo(novoNo);\n }\n }", "public void bugActualizarReferenciaActual(PlantillaFactura plantillafactura,PlantillaFactura plantillafacturaAux) throws Exception {\n\t\tthis.setCamposBaseDesdeOriginalPlantillaFactura(plantillafactura);\r\n\t\t\t\t\t\r\n\t\t//POR BUG: EL OBJETO ACTUAL SE PERDIA, POR LO QUE SE GUARDA TAMBIEN VALORES EN AUX Y LUEGO DESPUES DEL MENSAJE SE HACE REFERENCIA EL OBJETO ACTUAL AL AUX\r\n\t\tplantillafacturaAux.setId(plantillafactura.getId());\r\n\t\tplantillafacturaAux.setVersionRow(plantillafactura.getVersionRow());\t\t\t\t\t\r\n\t}", "public Integer pesquisarIdContaRetificada(Integer idImovel,\tint anoMesReferenciaConta) throws ErroRepositorioException;", "private Nodo cambiar (Nodo aux) {\n\t\tNodo n = aux;\r\n\t\tNodo m = aux.getHijoIzq(); \r\n\t\twhile (m.getHijoDer() != null) {//el while sirve para recorrer el lado derecho para encotrar el dato mayor. \r\n\t\t\tn = m; // se guarda el nodo.\r\n\t\t\tm = m.getHijoDer();\r\n\t\t}\r\n\t\taux.setDato(m.getDato()); // se establece el dato del nodo mayor para que de ese nodo se hagan los cambios. \r\n\t\tif(n == aux) { // Si el nodo igual a aux entonces el dato y nodo que se van a eliminar por lo tanto se hacen los comabios. \r\n\t\t\tn.setHijoIzq(m.getHijoIzq());\r\n\t\t}else {\r\n\t\t\tn.setHijoDer(m.getHijoIzq());\r\n\t\t}\r\n\t\treturn n;\r\n\t}", "public void alterarLeituristaMovimentoRoteiroEmpresa( Integer idRota, Integer anoMes, Integer idLeituristaNovo ) throws ErroRepositorioException;", "public Arista(Vertice<T> refDestino) {\n\t\tthis(refDestino,-1);\n\t}", "private void grabarIndividuoPCO(final ProyectoCarreraOferta proyectoCarreraOferta) {\r\n /**\r\n * PERIODO ACADEMICO ONTOLOGÍA\r\n */\r\n OfertaAcademica ofertaAcademica = ofertaAcademicaService.find(proyectoCarreraOferta.getOfertaAcademicaId());\r\n PeriodoAcademico periodoAcademico = ofertaAcademica.getPeriodoAcademicoId();\r\n PeriodoAcademicoOntDTO periodoAcademicoOntDTO = new PeriodoAcademicoOntDTO(periodoAcademico.getId(), \"S/N\",\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaInicio(), \"yyyy-MM-dd\"),\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaFin(), \"yyyy-MM-dd\"));\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().write(periodoAcademicoOntDTO);\r\n /**\r\n * OFERTA ACADEMICA ONTOLOGÍA\r\n */\r\n OfertaAcademicaOntDTO ofertaAcademicaOntDTO = new OfertaAcademicaOntDTO(ofertaAcademica.getId(), ofertaAcademica.getNombre(),\r\n cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaInicio(),\r\n \"yyyy-MM-dd\"), cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaFin(), \"yyyy-MM-dd\"),\r\n periodoAcademicoOntDTO);\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().write(ofertaAcademicaOntDTO);\r\n\r\n /**\r\n * NIVEL ACADEMICO ONTOLOGIA\r\n */\r\n Carrera carrera = carreraService.find(proyectoCarreraOferta.getCarreraId());\r\n Nivel nivel = carrera.getNivelId();\r\n NivelAcademicoOntDTO nivelAcademicoOntDTO = new NivelAcademicoOntDTO(nivel.getId(), nivel.getNombre(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"nivel_academico\"));\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().write(nivelAcademicoOntDTO);\r\n /**\r\n * AREA ACADEMICA ONTOLOGIA\r\n */\r\n AreaAcademicaOntDTO areaAcademicaOntDTO = new AreaAcademicaOntDTO(carrera.getAreaId().getId(), \"UNIVERSIDAD NACIONAL DE LOJA\",\r\n carrera.getAreaId().getNombre(), carrera.getAreaId().getSigla(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"area_academica\"));\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().write(areaAcademicaOntDTO);\r\n /**\r\n * CARRERA ONTOLOGÍA\r\n */\r\n CarreraOntDTO carreraOntDTO = new CarreraOntDTO(carrera.getId(), carrera.getNombre(), carrera.getSigla(), nivelAcademicoOntDTO,\r\n areaAcademicaOntDTO);\r\n cabeceraController.getOntologyService().getCarreraOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getCarreraOntService().write(carreraOntDTO);\r\n /**\r\n * PROYECTO CARRERA OFERTA ONTOLOGY\r\n */\r\n \r\n ProyectoCarreraOfertaOntDTO proyectoCarreraOfertaOntDTO = new ProyectoCarreraOfertaOntDTO(proyectoCarreraOferta.getId(),\r\n ofertaAcademicaOntDTO, sessionProyecto.getProyectoOntDTO(), carreraOntDTO);\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().write(proyectoCarreraOfertaOntDTO);\r\n }", "public void incluirRecusouInformar(BemDTO dto) throws BancoobException {\n\t\tgetServico().incluirRecusouInformar(dto);\n\t}", "private void persistirDemessaDocumentoAB() throws AppException {\n if (this.remessaDocumento == null || this.remessaDocumento.getId() == null) { \n this.remessaDocumento.setCodigoRemessa(sequencialRemessaService.generate(remessa.getUnidadeSolicitante()));\n this.remessaDocumento.setCodigoUsuarioUltimaAlteracao(this.usuario.getNuMatricula());\n this.remessaDocumento.setRemessa(this.remessa);\n this.remessaDocumento.setDocumento(this.documento);\n this.remessaDocumento.setDataUltimaAlteracao(new Date());\n this.remessaDocumento.setIcAlteracaoValida(SituacaoAlteracaoRemessaEnum.PADRAO);\n this.remessaDocumento = remessaDocumentoService.salvar(this.remessaDocumento);\n this.salvarCamposDinamicos(this.remessaDocumento);\n this.remessaDocumento = remessaDocumentoService.salvar(this.remessaDocumento);\n } else {\n this.remessaDocumento.setCodigoUsuarioUltimaAlteracao(this.usuario.getNuMatricula());\n this.remessaDocumento.setDataUltimaAlteracao(new Date());\n this.remessaDocumento = remessaDocumentoService.salvar(this.remessaDocumento);\n this.salvarCamposDinamicos(this.remessaDocumento);\n this.remessaDocumento = remessaDocumentoService.salvar(this.remessaDocumento);\n }\n }", "public Object[] pesquisarContaGerarArquivoTextoFaturamento(Integer idImovel,\n\t\t\tInteger anoMesReferencia,Integer idFaturamentoGrupo) throws ErroRepositorioException ;", "public RecordSet obtieneActividadReferencia (Long act, Long idioma) throws MareException {\n UtilidadesLog.info(\"DAOMatrizDias.obtieneActividadReferencia (Long act, Long idioma):Entrada\");\n StringBuffer query = new StringBuffer();\n\n query.append(\" SELECT \");\n query.append(\" actividad.oid_acti as oid, \");\n query.append(\" actividad.cact_oid_acti as origen, \");\n query.append(\" actividad.num_dias_desp as dias, \");\n query.append(\" IActi.VAL_I18N as textoActividad, \");\n query.append(\" actividad.cod_acti as codigoActividad, \");\n /*inicio enozigli 16/11/2007 COL-CRA-001*/\n query.append(\" actividad.clac_oid_clas_acti as claseActividad, \"); \n query.append(\" DECODE (actividad.cod_tipo_acti, \");\n query.append(\" 0, 'Fija', \");\n query.append(\" DECODE (actividad.cod_tipo_acti, \");\n query.append(\" 1, 'con Origen', \");\n query.append(\" 'Ref. Otra Camp.' \");\n query.append(\" ) \");\n query.append(\" ) AS desc_tipo, \");\n query.append(\" actividad.NUM_CAMP_REFE as camp_despla, \");\n query.append(\" (select iactiorig.VAL_I18N \");\n query.append(\" from cra_activ origen, v_gen_i18n_sicc iactiorig \");\n query.append(\" where origen.OID_ACTI = actividad.CACT_OID_ACTI \");\n query.append(\" AND iactiorig.attr_enti = 'CRA_ACTIV' \");\n query.append(\" AND iactiorig.idio_oid_idio = \"+idioma+\" \");\n query.append(\" AND iactiorig.val_oid = origen.oid_acti \");\n query.append(\" AND iactiorig.attr_num_atri = 1) as actividadorigen \");\n /*fin enozigli 16/11/2007 COL-CRA-001*/\n query.append(\" FROM cra_activ actividad, v_gen_i18n_sicc IActi \");\n query.append(\" WHERE actividad.oid_acti = \"+act+ \" \");\n query.append(\" AND IActi.attr_enti = 'CRA_ACTIV' \");\n query.append(\" AND IActi.idio_oid_idio = \"+idioma+\" \");\n query.append(\" AND IActi.val_oid = actividad.OID_ACTI \");\n query.append(\" AND IActi.attr_num_atri = 1 \");\n\n RecordSet rs = new RecordSet();\n\n try {\n rs = (RecordSet) getBelcorpService().dbService.executeStaticQuery(query.toString());\n } catch (MareException me) {\n UtilidadesLog.error(me);\n throw me;\n } catch (Exception e) {\n UtilidadesLog.error(e); \n throw new MareException(e,UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n UtilidadesLog.info(\"DAOMatrizDias.obtieneActividadReferencia (Long act, Long idioma):Salida\");\n return rs;\n \n }", "public int eleminardelInicio(){\n int elemento=inicio.dato;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n inicio=inicio.siguiente;\n inicio.anterior=null; \n }\n return elemento;\n }", "public Correo(String aliasRemitente,String asunto,String passRemitente,String remitente,String urlTemplate)\n {\n this.aliasRemitente = aliasRemitente;\n this.asunto = asunto;\n this.passRemitente = passRemitente;\n this.remitente = remitente;\n this.urlTemplate = urlTemplate;\n \n \n relDestinatariosList = new ArrayList<>();\n }", "public Collection<Conta> pesquisarContasDoImovelPorMesAnoReferencia(\n\t\t\tint anoMesReferencia, String idImovel)\n\t\t\tthrows ErroRepositorioException;", "private List<Node<T>> auxiliarRecorridoIn(Node<T> nodo, List<Node<T>> lista, Node<T> raiz) {\r\n\t\t\r\n\t\tif (nodo.getChildren() != null) {\r\n\t\t\tList<Node<T>> hijos = nodo.getChildren();\r\n\t\t\tfor (int i = 1; i <= hijos.size(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tauxiliarRecorridoIn(hijos.get(i), lista, raiz);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "public Collection verificarExtratoQuitacaoAnual(Integer idImovel, Integer amReferenciaConta) throws ErroRepositorioException;", "public void bugActualizarReferenciaActual(TablaAmortiDetalle tablaamortidetalle,TablaAmortiDetalle tablaamortidetalleAux) throws Exception {\n\t\tthis.setCamposBaseDesdeOriginalTablaAmortiDetalle(tablaamortidetalle);\r\n\t\t\t\t\t\r\n\t\t//POR BUG: EL OBJETO ACTUAL SE PERDIA, POR LO QUE SE GUARDA TAMBIEN VALORES EN AUX Y LUEGO DESPUES DEL MENSAJE SE HACE REFERENCIA EL OBJETO ACTUAL AL AUX\r\n\t\ttablaamortidetalleAux.setId(tablaamortidetalle.getId());\r\n\t\ttablaamortidetalleAux.setVersionRow(tablaamortidetalle.getVersionRow());\t\t\t\t\t\r\n\t}", "@Override\n public void vaciar() {\n this.raiz = NodoBinario.nodoVacio();\n }", "public void abrirCerradura(){\n cerradura.abrir();\r\n }", "private void dibujarRuta(Aeropuerto origen, Aeropuerto destino, List<Aeropuerto> mundoA,List<Ruta> mundoR) {\n\t\tList<Ruta> rutaAerolineas = new ArrayList<Ruta>();\n\t\t\n\t\tfor (int i=0;i<mundoR.size();i++){\n\t\t\tif (mundoR.get(i).getIdOrigen().equals(origen.getId()) && mundoR.get(i).getIdDestino().equals(destino.getId())){ \n\t\t\t\t//System.out.println(mundoR.get(i).getAerolinea());\n\t\t\t\trutaAerolineas.add(mundoR.get(i));\n\t\t\t\tNode nodoOrigen = Display.graph.getNode(origen.getId());\n\t\t\t\tNode nodoDestino = Display.graph.getNode(destino.getId());\n\t\t\t\t \n\t\t\t\t//Eliminar todos los nodos y agregar exclusivamente el seleccionado. \n\t\t\t\tfor (int j = 0; j <mundoR.size(); j++){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tDisplay.graph.removeEdge(mundoR.get(j).getId());\n\t\t\t\t\t} catch(Exception e) {};\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\tDisplay.graph.addEdge(mundoR.get(i).getId(), nodoOrigen, nodoDestino);\n\t\t\t\tDisplay.graph.addAttribute(\"ui.stylesheet\", \n\t\t\t\t\t\t\t\t\"\t\t node {shape: circle;\" + \n\t\t\t\t\t\t \t\t\" size: 2px;\" + \n\t\t\t\t\n\t\t\t\t\t\t \t\t\" fill-color: rgba(3, 166, 120,200);}\" + \n\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t \t\t\" edge { shape: cubic-curve;\" +\n\t\t\t\t\t\t \t\t\" fill-mode: gradient-horizontal;\" + \n\t\t\t\t\t\t \t\t\"\t\t fill-color: rgba(250,190,88,250);\"+\t\n\t\t\t\t\t\t \t\t\" z-index: 100;\" + \n\t\t\t\t\t\t \t\t\"\t\t arrow-size: 10px;}\" +\n\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t \t\t\" graph {fill-color: #2C3E50;}\"\n\t\t\t\t);\n\t\t\t\t\n\t\t\t}\n\t\t }\n\t\t\n\t\t\n\t\tif (rutaAerolineas.size() == 0){\n\t\t\tSystem.out.println(\"No hay ruta directa\");\n\t\t\tDijkstraAlgorithm dijkstra = new DijkstraAlgorithm();\n\t\t\tdijkstra.shortestPath(origen, destino, mundoR);\n\t\t\t\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tViewer viewer = Display.graph.display();\n\t\t\tView view = viewer.getDefaultView();\n\t\t\t //view.getCamera().setViewPercent(1.7);\n\t\t\tviewer.disableAutoLayout(); \n\t\t}\n\t}", "@Override\r\n\tpublic void cargarSubMenuPersona() {\n\t\t\r\n\t}", "public void cambiarNombreDepartamento(String NombreAntiguo, String NombreNuevo) {\r\n\t\t// TODO Auto-generated method stub\r\n//se modifica el nombre del Dpto. en las 3 tablas de Departamentos\r\n\t\t\r\n//\t\tthis.controlador.cambiaNombreDpto(NombreAntiguo, NombreNuevo);\r\n//\t\t//this.controlador.cambiaNombreDepartamentoUsuario(NombreAntiguo, NombreNuevo);\r\n//\t\t//this.controlador.cambiaNombreNumerosDEPARTAMENTOs(NombreAntiguo, NombreNuevo);\r\n\t\tboolean esta=false;\r\n\t\tArrayList <String> aux=new ArrayList<String>();//Aqui meto los dos nombres que necesito, de esta forma no hace falta \r\n\t\taux.add(NombreAntiguo);\r\n\t\taux.add(NombreNuevo);\r\n\t\tint i=0;\r\n\t\twhile (i<departamentosJefe.size() && !esta){\r\n\t\t\tif (departamentosJefe.get(i).getNombreDepartamento().equals(NombreAntiguo)){\r\n\t\t\t\tdepartamentosJefe.get(i).setNombreDepartamento(NombreNuevo);\r\n\t\t\t\tmodifyCache(aux,\"NombreDepartamento\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tif (getEmpleadoActual().getRango() == 0){\r\n\t\t\tcontrolador.cambiaNombreDpto(NombreAntiguo, NombreNuevo);\r\n\t\t}\r\n\t}", "public void cargarPantalla() throws Exception {\n Long oidCabeceraMF = (Long)conectorParametroSesion(\"oidCabeceraMF\");\n\t\tthis.pagina(\"contenido_matriz_facturacion_consultar\");\n\n DTOOID dto = new DTOOID();\n dto.setOid(oidCabeceraMF);\n dto.setOidPais(UtilidadesSession.getPais(this));\n dto.setOidIdioma(UtilidadesSession.getIdioma(this));\n MareBusinessID id = new MareBusinessID(\"PRECargarPantallaConsultarMF\"); \n Vector parametros = new Vector();\n \t\tparametros.add(dto);\n parametros.add(id);\n \t\tDruidaConector conector = conectar(\"ConectorCargarPantallaConsultarMF\", parametros);\n if (oidCabeceraMF!=null)\n asignarAtributo(\"VAR\",\"varOidCabeceraMF\",\"valor\",oidCabeceraMF.toString());\n\t\t asignar(\"COMBO\", \"cbTiposOferta\", conector, \"dtoSalida.resultado_ROWSET\");\n\t\t///* [1]\n\n\n\n\t\ttraza(\" >>>>cargarEstrategia \");\n\t\t//this.pagina(\"contenido_catalogo_seleccion\"); \n\t\t \n\t\tComposerViewElementList cv = crearParametrosEntrada();\n\t\tConectorComposerView conectorV = new ConectorComposerView(cv, this.getRequest());\n\t\tconectorV.ejecucion();\n\t\ttraza(\" >>>Se ejecuto el conector \");\n\t\tDruidaConector resultados = conectorV.getConector();\n\t\tasignar(\"COMBO\", \"cbEstrategia\", resultados, \"PRECargarEstrategias\");\n\t\ttraza(\" >>>Se asignaron los valores \");\n\t\t// */ [1]\n\t\t\n\n }", "public void fecharConta() {\n\t\tcliente.setConta(new Conta());\r\n\t\tRepositorioCliente repositorioCliente = new FabricaRepositorio().getRepCliente();\r\n\t\trepositorioCliente.editar((ClienteIndividual)cliente);\r\n//\t\tGerenciadorContaImpl contaImpl = new GerenciadorContaImpl();\r\n//\t\ttry {\r\n//\t\t\tcontaImpl.fecharConta(cliente);\r\n//\t\t} catch (OperacaoInvalidaException e) {\r\n//\t\t\te.printStackTrace();\r\n//\t\t}\r\n\t}", "public String dettaglioSubPopUp(){\n\t\tsetMethodName(\"dettaglioSubPopUp\");\n\t\t//individuiamo il sub in questione:\n\t\tSubAccertamento sub = model.getListaSubaccertamenti().get(Integer.valueOf(getUidPerDettaglioSub()));\n\n\t\t//settiamone i dati nel model:\n\t\tMovimentoConsulta mc = new MovimentoConsulta();\n\t\tmc.setTipoMovimento(MovimentoConsulta.ACCERTAMENTO);\n\t\t// movimento\n\t\tmc.setAnno(String.valueOf(sub.getAnnoMovimento()));\n\t\tmc.setNumero(String.valueOf(sub.getNumero()));\n//\t mc.setBloccoRagioneria( ((sub.getAttoAmministrativo().getBloccoRagioneria()==true ? \"SI\" : (sub.getBloccoRagioneria()==false) ? \"NO\" : \"N/A\")));\n\t \n\t \n\t \n\t\tmc.setDescrizione(sub.getDescrizione());\n\t mc.setImporto(sub.getImportoAttuale());\n\t mc.setImportoIniziale(sub.getImportoIniziale());\n\t if (sub.getUtenteCreazione() != null) \tmc.setUtenteCreazione(sub.getUtenteCreazione());\n\t if (sub.getUtenteModifica() != null) \tmc.setUtenteModifica(sub.getUtenteModifica());\n\t mc.setDataInserimento(sub.getDataEmissioneSupport());\n\t mc.setDataModifica(sub.getDataModifica());\n\t mc.setStatoOperativo(sub.getDescrizioneStatoOperativoMovimentoGestioneEntrata());\n\t mc.setDataStatoOperativo(sub.getDataStatoOperativoMovimentoGestioneEntrata());\n\t if (sub.getTipoImpegno() != null)\t\tmc.setTipo(sub.getTipoImpegno().getDescrizione());\n\t if (sub.getDataScadenza() != null)\t mc.setDataScadenza(sub.getDataScadenza());\n if (sub.getProgetto() != null)\t\t\tmc.setProgetto(sub.getProgetto().getCodice());\n\n // descrizione impegno del subaccertamento\n Accertamento accertamento = model.getAccertamentoInAggiornamento();\n if(accertamento.getDescrizione()== null){\n \taccertamento.setDescrizione(\"\");\n }\n \n //compongo la descrizione:\n\t\tString descAccertamento = accertamento.getAnnoMovimento() + \"/\" + accertamento.getNumero() + \n\t\t\t\" - \" + accertamento.getDescrizione() +\n\t\t\t\" - \" + convertiBigDecimalToImporto(accertamento.getImportoAttuale()) + \n\t\t\t\" (\" + accertamento.getDescrizioneStatoOperativoMovimentoGestioneEntrata() + \" dal \" + convertDateToString(accertamento.getDataStatoOperativoMovimentoGestioneEntrata()) + \")\";\t\n\t\tmc.setDescSuper(descAccertamento);\n\n\t // disponibilita\n\t mc.setDisponibilitaSub(sub.getDisponibilitaSubAccertare());\n\t mc.setTotaleSub(sub.getTotaleSubAccertamenti());\n\t \n\t // provvedimento\n\t if (sub.getAttoAmministrativo() != null) {\n\t \tmc.getProvvedimento().setAnno(String.valueOf(sub.getAttoAmministrativo().getAnno()));\n\t \tmc.getProvvedimento().setNumero(String.valueOf(sub.getAttoAmministrativo().getNumero()));\n\t \tmc.getProvvedimento().setOggetto(sub.getAttoAmministrativo().getOggetto());\n\t \tif (sub.getAttoAmministrativo().getTipoAtto() != null) {\n\t \t\tmc.getProvvedimento().setTipo(sub.getAttoAmministrativo().getTipoAtto().getDescrizione());\n\t \t}\n\t \tif (sub.getAttoAmministrativo().getStrutturaAmmContabile() != null) {\n\t \t\tmc.getProvvedimento().setStruttura(sub.getAttoAmministrativo().getStrutturaAmmContabile().getCodice());\n\t \t}\n\t \t//6929\n\t \tif (sub.getAttoAmministrativo().getBloccoRagioneria()!= null ) {\n\t \t\tmc.getProvvedimento().setBloccoRagioneria(((sub.getAttoAmministrativo().getBloccoRagioneria()==true) ? \"SI\" : \"NO\" ));\n\t \t}else {\n\t \t\tmc.getProvvedimento().setBloccoRagioneria(\"N/A\");\n\t \t}\n\t \tmc.getProvvedimento().setStato(sub.getAttoAmministrativo().getStatoOperativo());\n\t \n\t }\n\t \n\t // soggetto\n\t if ((sub.getSoggetto() != null) && (sub.getSoggetto().getUid() != 0)) {\n\t\t mc.getSoggetto().setCodice(sub.getSoggetto().getCodiceSoggetto());\n\t\t mc.getSoggetto().setDenominazione(sub.getSoggetto().getDenominazione());\n\t\t mc.getSoggetto().setCodiceFiscale(sub.getSoggetto().getCodiceFiscale());\n\t\t mc.getSoggetto().setPartitaIva(sub.getSoggetto().getPartitaIva());\n\t } else if (sub.getClasseSoggetto() != null) {\n\t \tmc.getSoggetto().setClasseSoggettoCodice(sub.getClasseSoggetto().getCodice());\n\t \tmc.getSoggetto().setClasseSoggettoDescrizione(sub.getClasseSoggetto().getDescrizione());\n\t }\n \n // riaccertamento\n if (sub.isFlagDaRiaccertamento()){\n \tmc.setDaRiaccertamento(WebAppConstants.MSG_SI + \" \" + sub.getAnnoRiaccertato() + \" / \" + sub.getNumeroRiaccertato());\n } else {\n \tmc.setDaRiaccertamento(WebAppConstants.MSG_NO);\n }\n \t\n \n // disponibilita\n\t mc.setDisponibilitaIncassare(sub.getDisponibilitaIncassare());\n\t\t\n\t //setto l'oggetto appena popolato nel model:\n\t\tmodel.setSubDettaglio(mc);\n\n\t\treturn \"dettaglioSubPopUp\";\n\t}", "@Override\n\tpublic String detalheEleicao(Eleicao eleicao) throws RemoteException {\n\t\tString resultado = \"\";\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy:MM:dd hh:mm\");\n\t\tdataEleicao data_atual = textEditor.dataStringToData(dateFormat.format(new Date()));\n\t\tif (!data_atual.maior_data(textEditor.dataStringToData(eleicao.getDataInicio()))) {\n\t\t\tresultado += \"\\nTítulo eleição: \"+eleicao.getTitulo()+\" - Data início: \"+eleicao.getDataInicio()+\" - Data fim: \"+ eleicao.getDataFim();\n\t\t\tresultado += \"\\nEleição ainda não iniciada.\";\n\t\t\tfor(Candidatos candTemp: eleicao.getCandidatos()) {\n\t\t\t\tif(candTemp.getTipo().equalsIgnoreCase(\"lista\")) {\n\t\t\t\t\tLista lista = (Lista) candTemp;\n\t\t\t\t\tresultado += \"\\nNúmero candidato: \"+lista.getId()+\" - Nome lista: \"+lista.getNome()+\" Membros: \"+lista.getLista_pessoas();\n\t\t\t\t\tfor(PessoaLista pessoalista : lista.getLista_pessoas()) {\n\t\t\t\t\t\tresultado += \"\\n\\tCC: \"+pessoalista.getPessoa().getNcc()+\" - Cargo: \"+pessoalista.getCargo()+ \" - Nome: \"+pessoalista.getPessoa().getNome();\n\t\t\t\t\t}\n\t\t\t\t\tresultado += \"\\n\";\n\t\t\t\t}else {\n\t\t\t\t\tCandidatoIndividual cand = (CandidatoIndividual) candTemp;\n\t\t\t\t\tresultado += \"\\nNúmero candidato: \"+cand.getId()+\" - Nome: \"+cand.getPessoa().getNome()+\" - CC: \"+cand.getPessoa().getNcc();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (data_atual.maior_data(textEditor.dataStringToData(eleicao.getDataFim()))) {\n\t\t\t\tresultado += \"\\nTítulo eleição: \"+eleicao.getTitulo()+\" - Data início: \"+eleicao.getDataInicio()+\" - Data fim: \"+ eleicao.getDataFim();\n\t\t\t\tresultado += \"\\nEleição terminada.\";\n\t\t\t\tresultado += \"\\nVotos em branco/nulos: \"+eleicao.getnVotoBNA();\n\t\t\t\tfor(Candidatos candTemp: eleicao.getCandidatos()) {\n\t\t\t\t\tif(candTemp.getTipo().equalsIgnoreCase(\"lista\")) {\n\t\t\t\t\t\tLista lista = (Lista) candTemp;\n\t\t\t\t\t\tresultado += \"\\nNúmero candidato: \"+lista.getId()+\" - Nome lista: \"+lista.getNome()+\" Membros: \"+lista.getLista_pessoas()+\"Votos: \"+lista.getnVotos();\n\t\t\t\t\t\tresultado += \"\\n\";\n\t\t\t\t\t}else {\n\t\t\t\t\t\tCandidatoIndividual cand = (CandidatoIndividual) candTemp;\n\t\t\t\t\t\tresultado += \"\\nNúmero candidato: \"+cand.getId()+\" - Nome: \"+cand.getPessoa().getNome()+\" - CC: \"+cand.getPessoa().getNcc()+\" - Votos: \"+cand.getnVotos();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(eleicao.getDataInicio()+\"-\"+eleicao.getDataFim()+\": A decorrer\");\n\t\t\t}\n\t\t}\n\t\treturn resultado;\n\t\n\t}", "public Integer obterQuantidadeMovimentoRoteiroPorGrupoAnoMes(Integer idFaturamentoGrupo, Integer anoMesReferencia)\n\t\t\t\t\tthrows ErroRepositorioException;", "public void pop() {\n if (cabeza!= null) {\n //SI CABEZA.SIGUENTE ES DISTINTO A NULO\n if (cabeza.siguiente==null) {\n //CABEZA SERA NULO\n cabeza=null; \n //SE IRAN RESTANDO LOS NODOS\n longitud--;\n } else {\n //DE LO CONTRARIO EL PUNTERO SERA IGUAL A CABEZA\n Nodo puntero=cabeza;\n //MIENTRTAS EL PUNTERO SEA DISITINTO A NULO \n while (puntero.siguiente.siguiente!=null) { \n //PUNTYERO SERA IGUAL A LA DIRECCION DEL SIGUIENTE NODO\n puntero=puntero.siguiente;\n }\n puntero.siguiente=null;\n longitud--;\n }\n }\n }", "public NavigatoreRisultati(Modulo unModulo) {\n /* rimanda al costruttore della superclasse */\n super(unModulo);\n\n try { // prova ad eseguire il codice\n /* regolazioni iniziali di riferimenti e variabili */\n this.inizia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "public void peleaEn(int idPeleador,int idEmpresa){\n\t\t\n\t}", "public void cargarConceptoRetencion()\r\n/* 393: */ {\r\n/* 394: */ try\r\n/* 395: */ {\r\n/* 396:387 */ this.listaConceptoRetencionSRI = this.servicioConceptoRetencionSRI.getConceptoListaRetencionPorFecha(this.facturaProveedorSRI.getFechaRegistro());\r\n/* 397: */ }\r\n/* 398: */ catch (Exception e)\r\n/* 399: */ {\r\n/* 400:390 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_cargar_datos\"));\r\n/* 401: */ }\r\n/* 402: */ }", "private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }", "public void aumentarReproducciones() {\n\t\treproducciones++;\n\t}", "@Override\r\n\tpublic void dibujar(Entorno unEntorno, Casilla casilla) {\n\t\t\r\n\t}", "public void refrescarForeignKeysDescripcionesTablaAmortiDetalle() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tTablaAmortiDetalleConstantesFunciones.refrescarForeignKeysDescripcionesTablaAmortiDetalle(this.tablaamortidetalleLogic.getTablaAmortiDetalles());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tTablaAmortiDetalleConstantesFunciones.refrescarForeignKeysDescripcionesTablaAmortiDetalle(this.tablaamortidetalles);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\tclasses.add(new Classe(Empresa.class));\r\n\t\tclasses.add(new Classe(Sucursal.class));\r\n\t\tclasses.add(new Classe(Ejercicio.class));\r\n\t\tclasses.add(new Classe(Periodo.class));\r\n\t\tclasses.add(new Classe(Tasa.class));\r\n\t\tclasses.add(new Classe(Factura.class));\r\n\t\tclasses.add(new Classe(TipoIntervalo.class));\r\n\t\tclasses.add(new Classe(Anio.class));\r\n\t\tclasses.add(new Classe(Mes.class));\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//tablaamortidetalleLogic.setTablaAmortiDetalles(this.tablaamortidetalles);\r\n\t\t\ttablaamortidetalleLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}", "public void supprimer() {\n origine.aretes_sortantes.supprimer(this);\n destination.aretes_entrantes.supprimer(this);\n origine.successeurs.supprimer(destination);\n destination.predecesseurs.supprimer(origine);\n position.supprimerElement();\n }", "public void esperarRecogidaIngrediente(){\n enter();\n if ( ingredienteact != -1 )\n estanquero.await();\n leave();\n }", "void suplantarIdUsuer(String nombre) throws Exception {\n\t\tLibro[] librosPres = new Libro[Const.MAXLIBROSPRES];\n\t\tint bpn = busquedaPrimerNulo();\n\t\tUsuario[] vu = ArrayObject.listadoUsuarios();\n\n\t\tMiObjectInputStream oi = null;\n\n\t\ttry { // comprueba que el archivo FUSUARIOS existe antes de leerlo\n\t\t\toi = new MiObjectInputStream(new FileInputStream(Const.FUSUARIOS));\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Archivo no encontrado - suplantarIdUsuer - \" + e.toString());\n\t\t}\n\n\t\t// busca donde se encuentra el primer usuario null del archivo para crear un\n\t\t// usuario nuevo en ese mismo lugar para obtener un id ordenado. Del mismo modo\n\t\t// la primera vez que esto se ustiliza llena el archivode usuarios de nulos pero\n\t\t// no elimna los usuarios que se encuentran por debajo\n\t\tUsuario u = (Usuario) oi.readObject();\n\t\tu = new Usuario(bpn, nombre, librosPres);\n\t\tvu[bpn] = u;\n\n\t\ttry {\n\t\t\tFileOutputStream fo = new FileOutputStream(Const.FUSUARIOSAUX, true);\n\t\t\tMiObjectOutputStream oo = new MiObjectOutputStream(fo);\n\t\t\tint i = 0;\n\t\t\twhile (i < vu.length) {\n\t\t\t\tu = vu[i];\n\t\t\t\too.writeObject(u);\n\t\t\t\ti++;\n\t\t\t} // finaliza el while para la lectura\n\t\t\too.close();\n\n\t\t} catch (Exception e) { // encaso de encontrar el archivos pero no puede leerlo\n\t\t\tSystem.out.println(\"Problemas al leer el archivo - suplantarIdUsuer - \" + e.toString());\n\t\t}\n\t\toi.close();\n\t}", "public Integer pesquisarMovimentoContaPrefaturadaArquivoTextoFaturamento(Integer idImovelMacro, Integer anoMesReferencia)\n\t\t\tthrows ErroRepositorioException ;", "public void reiniciar() {\r\n\t\tauxiliar = primeira;//auxiliar recebe a primeira\r\n\t}", "public void cargarEConcepto() {\n\tevidenciaConcepto = true;\n\tif (conceptoSeleccionado.getOrigen().equals(\n\t OrigenInformacionEnum.CONVENIOS.getValor())) {\n\t idEvidencia = convenioVigenteDTO.getId();\n\t nombreFichero = iesDTO.getCodigo() + \"_\"\n\t\t + convenioVigenteDTO.getId();\n\t}\n\n\ttry {\n\t listaEvidenciaConcepto = institutosServicio\n\t\t .obtenerEvidenciasDeIesPorIdConceptoEIdTabla(\n\t\t iesDTO.getId(), conceptoSeleccionado.getId(),\n\t\t idEvidencia, conceptoSeleccionado.getOrigen());\n\n\t} catch (ServicioException e) {\n\t LOG.log(Level.SEVERE, e.getMessage(), e);\n\t}\n }", "public void brazoSubir( int presicion )\n {\n brazo.brazoSubir( presicion );\n }", "public void rodar(){\n\t\tmeuConjuntoDePneus.rodar();\r\n\t}", "public void recorrer(){\r\n \r\n NodoJugador temporal = primero;\r\n while(temporal != null){\r\n System.out.println(temporal.getDato());\r\n temporal = temporal.getSiguiente();\r\n \r\n }\r\n \r\n }", "public Receta(int idReceta, String diagnostico, String medicamentos, int idPaciente) {\r\n this.idReceta = idReceta;\r\n this.diagnostico = diagnostico;\r\n this.medicamentos = medicamentos;\r\n this.idPaciente = idPaciente;\r\n }" ]
[ "0.6525081", "0.64515716", "0.6359064", "0.612474", "0.6121437", "0.60571456", "0.59436804", "0.59357107", "0.5906672", "0.59052163", "0.59021294", "0.589299", "0.585985", "0.57325613", "0.5704639", "0.56990695", "0.5661133", "0.5606265", "0.5558632", "0.54838187", "0.54791343", "0.5463247", "0.54610234", "0.54407275", "0.5380897", "0.53684515", "0.5339405", "0.5337895", "0.532655", "0.5323396", "0.5319943", "0.5306375", "0.5288824", "0.528721", "0.5286228", "0.52711964", "0.5263447", "0.5261446", "0.5247191", "0.5242762", "0.5235663", "0.5230142", "0.52286047", "0.52273434", "0.52272403", "0.5221601", "0.5214428", "0.51852137", "0.5152244", "0.5151417", "0.5135926", "0.5094688", "0.5075588", "0.5074539", "0.5070802", "0.5069819", "0.5067721", "0.50531906", "0.5051643", "0.50430816", "0.50365615", "0.50311357", "0.50293094", "0.50214064", "0.50158656", "0.50139844", "0.5010317", "0.50096196", "0.5008382", "0.5007238", "0.50072044", "0.5006276", "0.5004932", "0.50047576", "0.5000678", "0.49981397", "0.49973252", "0.4995066", "0.49921513", "0.49861243", "0.49829176", "0.49805585", "0.49789733", "0.49732974", "0.49714103", "0.4968724", "0.49665534", "0.49640566", "0.49623525", "0.49596605", "0.49513218", "0.49472046", "0.4945436", "0.4944613", "0.4944444", "0.49326834", "0.49299583", "0.49296582", "0.4926087", "0.49258956" ]
0.6213213
3
Calcular Percentual a funcao recebe dois valores, pega o primeiro valor(valor1) multiplica por 100 e divide pelo segundo valor(valor2)
public static String calcularPercentual(String valor1, String valor2) { BigDecimal bigValor1 = new BigDecimal(valor1); BigDecimal bigValor2 = new BigDecimal(valor2 != null ? valor2 : "1"); BigDecimal numeroCem = new BigDecimal("100"); BigDecimal primeiroNumero = bigValor1.multiply(numeroCem); BigDecimal resultado = primeiroNumero.divide(bigValor2, 2, BigDecimal.ROUND_HALF_UP); return (resultado + ""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double percent(double firstNumber, double secondNumber) {\n\t\tdouble result = firstNumber*(secondNumber/100);\n\t\treturn result;\n\t}", "public static BigDecimal calcularPercentualBigDecimal(BigDecimal bigValor1, BigDecimal bigValor2) {\r\n\r\n\t\tBigDecimal resultado = new BigDecimal(\"0.0\");\r\n\r\n\t\tif (bigValor2.compareTo(new BigDecimal(\"0.0\")) != 0) {\r\n\r\n\t\t\tBigDecimal numeroCem = new BigDecimal(\"100\");\r\n\r\n\t\t\tBigDecimal primeiroNumero = bigValor1.multiply(numeroCem);\r\n\r\n\t\t\tresultado = primeiroNumero.divide(bigValor2, 2, BigDecimal.ROUND_HALF_UP);\r\n\t\t}\r\n\t\treturn resultado;\r\n\t}", "public static BigDecimal calcularPercentualBigDecimal(String valor1, String valor2) {\r\n\r\n\t\tBigDecimal bigValor1 = new BigDecimal(valor1);\r\n\t\tBigDecimal bigValor2 = new BigDecimal(valor2 != null ? valor2 : \"1\");\r\n\r\n\t\treturn calcularPercentualBigDecimal(bigValor1, bigValor2);\r\n\t}", "public void percentualGordura(){\n\n s0 = 4.95 / denscorp;\n s1 = s0 - 4.50;\n percentgord = s1 * 100;\n\n }", "public double percentage(double value) {\n return basicCalculation(value, 100, Operator.DIVIDE);\n }", "public double divisao (double numero1, double numero2){\n\t}", "public static double calculateValueInPercentage(double value) {\r\n return value * 0.01;\r\n }", "java.lang.String getPercentage();", "public static void main(String[] args) {\n \tdouble num1 = 7.15;\n \tdouble num2 = 10.0;\n\t\t// 创建一个数值格式化对象\n\t\tNumberFormat numberFormat = NumberFormat.getInstance();\n\t\tDecimalFormat decimalFormat = new DecimalFormat(\"#.00\");\n\t\t// 设置精确到小数点后2位\n\t\tnumberFormat.setMaximumFractionDigits(2);\n\t\tString result = numberFormat.format((num1 / num2 * 100));\n\t\tSystem.out.println(\"num1和num2的百分比为:\" + result + \"%\");\n\t\tSystem.out.println(\"num1和num2的百分比为:\" + decimalFormat.format(Double.valueOf(result)) + \"%\");\n\t}", "public BigDecimal getPercentageProfitPStd();", "public double permutasi(double num1, double num2){\n if (num1<num2||(num1<0&&num2<0)) {\n System.out.println(\"bilangan tidak benar\");\n return 0;\n }\n return faktorial(num1)/faktorial(num1-num2);\n }", "public Double getProgressPercent();", "public BigDecimal getPercentageProfitPLimit();", "private float getPercentage(int count, int total) {\n return ((float) count / total) * 100;\n }", "int getPercentageHeated();", "@Override\n\t\tpublic Double fazCalculo(Double num1, Double num2) {\n\t\t\treturn num1 / num2;\n\t\t}", "static int valDiv2 (){\n return val/2;\n }", "public static float div(int value1, int value2){\r\n return (float) value1 / value2;\r\n }", "@Override\n\tpublic int calculation(int a, int b) {\n\t\treturn b/a;\n\t}", "public static Object divide(Object val1, Object val2) {\n\n\t\tif (isFloat(val1)) {\n\t\t\tdouble doubleVal1 = ((BigDecimal) val1).doubleValue();\n\n\t\t\tif (isFloat(val2)) {\n\t\t\t\treturn new BigDecimal(doubleVal1\n\t\t\t\t\t\t/ ((BigDecimal) val2).doubleValue());\n\t\t\t} else if (isInt(val2)) {\n\t\t\t\treturn new BigDecimal(doubleVal1\n\t\t\t\t\t\t/ ((BigInteger) val2).intValue());\n\t\t\t}\n\n\t\t}\n\t\tif (isFloat(val2)) {\n\t\t\tdouble doubleVal2 = ((BigDecimal) val2).doubleValue();\n\n\t\t\tif (isFloat(val1)) {\n\t\t\t\treturn new BigDecimal(((BigDecimal) val1).doubleValue()\n\t\t\t\t\t\t/ doubleVal2);\n\t\t\t} else if (isInt(val1)) {\n\t\t\t\treturn new BigDecimal(((BigInteger) val1).intValue()\n\t\t\t\t\t\t/ doubleVal2);\n\t\t\t}\n\t\t}\n\t\tif (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).divide((BigInteger) val2);\n\t\t}\n\n\t\tthrow new OrccRuntimeException(\"type mismatch in divide\");\n\t}", "public static String calculaPercentual(double valor, double total) {\n\n\t\tDecimalFormat fmt = new DecimalFormat(\"0.00\");\n\n\t\ttry {\n\n\t\t\treturn fmt.format((valor * 100) / total);\n\t\t} \n\t\tcatch (Exception e) {\n\n\t\t\treturn \"0,00\";\n\t\t}\n\t}", "@Override\n\tpublic double percentualeGruppiCompletati () throws DAOException{\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tdouble numeroGruppiCompletati = 0.0;\n\t\ttry {\n\t\t\tconnection = DataSource.getInstance().getConnection();\n\t\t\tstatement = connection.prepareStatement(\"SELECT COUNT (GRUPPO.ID)*100/(SELECT COUNT(ID) FROM GRUPPO) FROM GRUPPO WHERE COMPLETO = 1 GROUP BY(GRUPPO.COMPLETO)\");\n\t\t\tresultSet = statement.executeQuery();\n\t\t\tif (resultSet.next()) {\n\t\t\t\tnumeroGruppiCompletati = BigDecimal.valueOf(resultSet.getDouble(1)).setScale(2, RoundingMode.HALF_UP).doubleValue();\n\t\t\t}\n\t\t} catch (SQLException | DAOException e) {\n\t\t\tthrow new DAOException(\"ERRORE percentualeGruppiCompletati utenteAdmin\" + e.getMessage(), e);\n\t\t} finally {\n\t\t\tDataSource.getInstance().close(resultSet);\n\t\t\tDataSource.getInstance().close(statement);\n\t\t\tDataSource.getInstance().close(connection);\n\t\t}\n\t\treturn numeroGruppiCompletati;\n\t}", "private static void computePercentage(int numberOfA[], int numberOfB[], int percentageOfB[]) {\n\t\tfor ( int i = 0; i < percentageOfB.length; i++ )\n\t\t\tpercentageOfB[i] = (int) Math.round( numberOfB[i] * 100.0 / ( numberOfB[i] + numberOfA[i] ));\n\t}", "private double calculatePercentProgress(BigDecimal projectId) {\r\n log.debug(\"calculatePercentProgress.START\");\r\n ModuleDao moduleDao = new ModuleDao();\r\n LanguageDao languageDao = new LanguageDao();\r\n List<Module> modules = moduleDao.getModuleByProject(projectId);\r\n double totalCurrentLoc = 0;\r\n double totalCurrentPage = 0;\r\n double totalCurrentTestCase = 0;\r\n double totalCurrentSheet = 0;\r\n\r\n double totalPlannedLoc = 0;\r\n double totalPlannedPage = 0;\r\n double totalPlannedTestCase = 0;\r\n double totalPlannedSheet = 0;\r\n for (int i = 0; i < modules.size(); i++) {\r\n Language language = languageDao.getLanguageById(modules.get(i).getPlannedSizeUnitId());\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.LOC.toUpperCase())) {\r\n totalCurrentLoc += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedLoc += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.TESTCASE.toUpperCase())) {\r\n totalCurrentTestCase += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedTestCase += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.PAGE_WORD.toUpperCase())) {\r\n totalCurrentPage += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedPage += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.SHEET_EXCEL.toUpperCase())) {\r\n totalCurrentSheet += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedSheet += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n\r\n }\r\n\r\n double percentProgress = ((totalCurrentLoc * Constant.LOC_WEIGHT)\r\n + (totalCurrentTestCase * Constant.TESTCASE_WEIGHT) + (totalCurrentPage * Constant.PAGE_WEIGHT) + (totalCurrentSheet * Constant.PAGE_WEIGHT))\r\n / ((totalPlannedLoc * Constant.LOC_WEIGHT) + (totalPlannedTestCase * Constant.TESTCASE_WEIGHT)\r\n + (totalPlannedPage * Constant.PAGE_WEIGHT) + (totalPlannedSheet * Constant.PAGE_WEIGHT)) * 100;\r\n\r\n return Math.round(percentProgress * 100.0) / 100.0;\r\n }", "private void percent()\n\t{\n\t\tDouble percent;\t\t//holds the right value percentage of the left value\n\t\tString newText = \"\";//Holds the updated text \n\t\tif(calc.getLeftValue ( ) != 0.0 && Fun != null)\n\t\t{\n\t\t\tsetRightValue();\n\t\t\tpercent = calc.getRightValue() * 0.01 * calc.getLeftValue();\n\t\t\tleftValue = calc.getLeftValue();\n\t\t\tnewText += leftValue;\n\t\t\tswitch (Fun)\n\t\t\t{\n\t\t\t\tcase ADD:\n\t\t\t\t\tnewText += \" + \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase SUBTRACT:\n\t\t\t\t\tnewText += \" - \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase DIVIDE:\n\t\t\t\t\tnewText += \" / \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase MULTIPLY:\n\t\t\t\t\tnewText += \" * \";\n\t\t\t\t\tbreak;\n\t\t\t}//end switch\n\t\t\t\n\t\t\tnewText += \" \" + percent;\n\t\t\tentry.setText(newText);\n\t\t\t\n\t\t}//end if\n\t\t\n\t}", "public Double retornaSubTotal(Double totalGeral,Double desconto){\n return totalGeral - (totalGeral*(desconto/100));\n}", "int getRemainderPercent();", "double updateValue(double value, double percentage){\n\t\treturn value+=(value*(.01*percentage));\r\n\t}", "public static int p_div(){\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"please put the first number that you want to divide:\");\n int v_div_number_1 = keyboard.nextInt();\n System.out.println(\"please put the second number that you want to divide:\");\n int v_div_number_2 = keyboard.nextInt();\n int v_total_div= v_div_number_1/v_div_number_2;\n return v_total_div;\n }", "public void MOD( ){\n String tipo1 = pilhaVerificacaoTipos.pop().toString();\n String tipo2 = pilhaVerificacaoTipos.pop().toString();\n String val1 = dads.pop().toString();\n float fresult = -1;\n String val2 = dads.pop().toString();\n if(val1 != null && val2 != null){\n if (tipo1 != null && tipo2 != null){\n if(tipo1 == \"inteiro\" && tipo2 == \"real\"){\n if(Float.parseFloat(val2) != 0){\n fresult = Integer.parseInt(val1) % Float.parseFloat(val2);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"real\" && tipo2 ==\"inteiro\"){\n if(Float.parseFloat(val1) != 0){\n fresult = Integer.parseInt(val2) % Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"real\" && tipo2 ==\"real\"){\n if(Float.parseFloat(val1) != 0){\n fresult = Float.parseFloat(val2) % Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"inteiro\" && tipo2 ==\"inteiro\"){\n if(Integer.parseInt(val1) != 0){\n fresult = Integer.parseInt(val2) % Integer.parseInt(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n return;\n }\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(1): essa instrução é válida apenas para valores inteiros ou reais.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(2): não foi possível executar a instrução, tipo null encontrado.\";\n numErrVM += 1;\n return;\n }\n }else {\n mensagensErrosVM += \"\\nRUNTIME ERROR(3): não foi possível executar a instrução, valor null encontrado.\";\n numErrVM += 1;\n return;\n }\n\n\n topo += -1;\n ponteiro += 1;\n }", "@Override\n\tpublic Double calcular(Produto produto) {\n\t\treturn (produto.getValorUnitario()) - (produto.getValorUnitario() * 0.25);\n\t}", "public double getValueAsPercentInPage(double fltValueAsPercentInTimeline) {\n double fltTimeLineRangeInRmsFrames = intPageAmount * intPageSizeInRmsFrames;\n double fltPageHorStartPositionInTimeline = ((pageValue.fltPageNum - 1) * intPageSizeInRmsFrames);\n double fltPageHorEndPositionInTimeline = (pageValue.fltPageNum * intPageSizeInRmsFrames);\n double fltItemPositionInTimeline = (fltValueAsPercentInTimeline/100.0f) * fltTimeLineRangeInRmsFrames;\n\n double fltValue = 0;\n if ((fltItemPositionInTimeline >= fltPageHorStartPositionInTimeline) && (fltItemPositionInTimeline <= fltPageHorEndPositionInTimeline)) {\n // Selected position is inside display page\n fltValue = ((fltItemPositionInTimeline - fltPageHorStartPositionInTimeline) * 100.0f)/intPageSizeInRmsFrames;\n } else if (fltItemPositionInTimeline < fltPageHorStartPositionInTimeline){\n // Selected position is outside on left of page\n fltValue = 0;\n } else if (fltItemPositionInTimeline > fltPageHorEndPositionInTimeline){\n // Selected position is outside on right of page\n fltValue = 100;\n }\n return fltValue;\n }", "public static float calculatePercent(float numOfSpecificTrees, float totalTrees){\n\t\tfloat percent= numOfSpecificTrees/totalTrees*100;\n\t\treturn percent;\n\t\t\n\t}", "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 static void promedio(int [] Grado1, int NNEstudent){\nint aux=0;\nfor(int i=0;i<NNEstudent;i++){\naux=Grado1[i]+aux;}\nint promedio;\npromedio=aux/NNEstudent;\nSystem.out.println(aux);\nSystem.out.println(\"el promedio de las edades es:\");\nSystem.out.println(promedio);\n}", "public int percent() {\n\t\tdouble meters = meters();\n\t\tif (meters < MIN_METERS) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn (int) (Math.pow((meters - MIN_METERS)\n\t\t\t\t/ (MAX_METERS - MIN_METERS) * Math.pow(100, CURVE),\n\t\t\t\t1.000d / CURVE));\n\t}", "void div(double val) {\r\n\t\tresult = result / val;\r\n\t}", "public float carga(){\n return (this.capacidade/this.tamanho);\n }", "public void increasePrice(int percentage);", "public double getPercentRem(){\n return ((double)freeSpace / (double)totalSpace) * 100d;\n }", "public double calculateHpPercent();", "private double computeDifferentialPCT(double currentValue, double average) {\n return average <= Double.MIN_VALUE ? 0.0 : (currentValue / average - 1) * 100.0;\n }", "@Override\r\n\tpublic double calculate() {\n\t\treturn n1 / n2;\r\n\t}", "double greenPercentage();", "static void diviser() throws IOException {\n\t Scanner clavier = new Scanner(System.in);\n\tdouble nb1, nb2, resultat;\n\tnb1 = lireNombreEntier();\n\tnb2 = lireNombreEntier();\n\tif (nb2 != 0) {\n\tresultat = nb1 / nb2;\n\tSystem.out.println(\"\\n\\t\" + nb1 + \" / \" + nb2 + \" = \" +\n\tresultat);\n\t} else\n\tSystem.out.println(\"\\n\\t le nombre 2 est nul, devision par 0 est impossible \");\n\t}", "private void calcularResultado() {\r\n\tdouble dinero=0;\r\n\tdinero=Double.parseDouble(pantalla.getText());\r\n\tresultado=dinero/18.5;\r\n\t\tpantalla.setText(\"\" + resultado);\r\n\t\toperacion = \"\";\r\n\t}", "public static double divide(double num1,double num2){\n\n // return num1/num2 ;\n\n if(num2==0){\n return 0 ;\n } else {\n return num1/num2 ;\n }\n }", "private double calcScorePercent() {\n\t\tdouble adjustedLab = totalPP * labWeight;\n\t\tdouble adjustedProj = totalPP * projWeight;\n\t\tdouble adjustedExam = totalPP * examWeight;\n\t\tdouble adjustedCodeLab = totalPP * codeLabWeight;\n\t\tdouble adjustedFinal = totalPP * finalWeight;\n\n\t\tlabScore = (labScore / labPP) * adjustedLab;\n\t\tprojScore = (projScore / projPP) * adjustedProj;\n\t\texamScore = (examScore / examPP) * adjustedExam;\n\t\tcodeLabScore = (codeLabScore / codeLabPP) * adjustedCodeLab;\n\t\tfinalExamScore = (finalExamScore / finalExamPP) * adjustedFinal;\n\n//\t\tdouble labPercent = labScore / adjustedLab;\n//\t\tdouble projPercent = projScore / adjustedProj;\n//\t\tdouble examPercent = examScore / adjustedExam;\n//\t\tdouble codeLabPercent = codeLabScore / adjustedCodeLab;\n//\t\tdouble finalPercent = finalExamScore / adjustedFinal;\n\n\t\tdouble totalPercent = (labScore + projScore + examScore + codeLabScore + finalExamScore) / totalPP;\n\t\t\n\t\tscorePercent = totalPercent;\n\t\t\n\t\treturn totalPercent;\n\t}", "double redPercentage();", "public double toPercent(double x){\n\t\treturn x/ 100;\n\t}", "@Override\n\tprotected double calcularImpuestoVehiculo() {\n\t\treturn this.getValor() * 0.003;\n\t}", "@Override\n\tpublic double percentualeUtentiAbilitati () throws DAOException{\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tdouble numeroUtenti = 0.0;\n\t\ttry {\n\t\t\tconnection = DataSource.getInstance().getConnection();\n\t\t\tstatement = connection.prepareStatement(\" SELECT COUNT (UTENTE.ID)*100/(SELECT COUNT(ID) FROM UTENTE) FROM UTENTE WHERE ABILITATO = 1 GROUP BY(UTENTE.ABILITATO) \");\n\t\t\tresultSet = statement.executeQuery();\n\t\t\tif (resultSet.next()) {\n\t\t\t\tnumeroUtenti = BigDecimal.valueOf(resultSet.getDouble(1)).setScale(2, RoundingMode.HALF_UP).doubleValue();\n\t\t\t}\n\t\t} catch (SQLException | DAOException e) {\n\t\t\tthrow new DAOException(\"ERRORE percentualeUtentiAbilitati utenteAdmin\" + e.getMessage(), e);\n\t\t} finally {\n\t\t\tDataSource.getInstance().close(resultSet);\n\t\t\tDataSource.getInstance().close(statement);\n\t\t\tDataSource.getInstance().close(connection);\n\t\t}\n\t\treturn numeroUtenti;\n\t}", "public double kombinasi(double num1, double num2){\n if (num1<num2||(num1<0&&num2<0)) {\n System.out.println(\"bilangan tidak benar\");\n return 0;\n }\n return permutasi(num1,num2)/faktorial(num2);\n }", "@SuppressLint(\"SetTextI18n\")\n @Override\n protected void onProgressUpdate(Integer... values) {\n\n //Le pasamos el parametro, es un array y esta en la posicion 0\n progressBar1.setProgress(values[0]);\n //Le sumamos 1 pork y 1mpieza en 0\n textView.setText(values[0]+1 + \" %\");\n }", "private float valOf(SeekBar bar) {\n return (float) bar.getProgress() / bar.getMax();\n }", "@Override\n\tpublic int div(int val1, int val2) throws ZeroDiv {\n\t\tif (val2 == 0){\n\t\t\tZeroDiv e = new ZeroDiv(\"probleme\");\n\t\t\tthrow e;\n\t\t}\n\t\telse\n\t\t\treturn val1/val2;\n\t}", "public static void main(String[] args) {\n\n\t\tint i = 80;\n\t\tint j = 20;\n\t\t\n\t\tdouble b = (double)(j)/(double)(i);\n\t\tdouble b_1 = b*100;\n\t\tSystem.out.println(b_1+\"%\");\n\t\t\n\t\tdouble b_2 = (double)(j)/(double)(i)*100;\n\t\tSystem.out.println(b_2+\"%\");\n\t\t\n\t\tdouble b_3 = (double)j/i;\n\t\tSystem.out.println(b_3);\n\t\tdouble b_4 =(double) b_3*100;\n\t\tSystem.out.println(b_4+\"%\");\n\t}", "private void peso(){\r\n if(getPeso()>80){\r\n precioBase+=100;\r\n }\r\n else if ((getPeso()<=79)&&(getPeso()>=50)){\r\n precioBase+=80;\r\n }\r\n else if ((getPeso()<=49)&&(getPeso()>=20)){\r\n precioBase+=50;\r\n }\r\n else if ((getPeso()<=19)&&(getPeso()>=0)){\r\n precioBase+=10;\r\n }\r\n }", "public abstract float perimetro();", "public void divide(MyDouble val) {\n this.setValue(this.getValue() / val.getValue());\n }", "public BigDecimal getPercentageProfitPList();", "public int division(){\r\n return Math.round(x/y);\r\n }", "public String percentageProgress(float goalSavings, float currGoalPrice) {\n float percentageProgress = (goalSavings / currGoalPrice) * 100;\n DecimalFormat df = new DecimalFormat(\"#.##\");\n df.setRoundingMode(RoundingMode.CEILING);\n return \"[\" + df.format(percentageProgress) + \"%]\";\n }", "@Override\n public double calculate(double input)\n {\n return input/getValue();\n }", "public void calcularEntropia(){\n //Verificamos si será con la misma probabilida o con probabilidad\n //especifica\n if(contadorEstados == 0){\n //Significa que será con la misma probabilidad por lo que nosotros\n //calcularemos las probabilidades individuales\n for(int i = 0; i < numEstados; i++){\n probabilidadEstados[i] = 1.0 / numEstados;\n }\n }\n for(int i = 0; i < numEstados; i++){\n double logEstado = Math.log10(probabilidadEstados[i]);\n logEstado = logEstado * (-1);\n double logDos = Math.log10(2);\n double divisionLog = logEstado / logDos;\n double entropiaTmp = probabilidadEstados[i] * divisionLog;\n resultado += entropiaTmp;\n }\n }", "public double getMainPercentage(){return mainPercentage;}", "private double getPercent(int here, int days, int d, int end, double dest, int[][] villages) {\n if (days==d){\n// System.out.println(here+ \" \"+end);\n if (here==end) {\n// System.out.println(\"dest=\"+dest);\n return dest;\n }\n return 0;\n }\n double ans = 0;\n for (int next = 0; next < villages[here].length; next++) {\n int there = villages[here][next];\n if (there==1){\n// System.out.println(degree[here]+\" des=\"+(dest/degree[here]));\n ans += getPercent(next,days+1,d,end,dest/degree[here],villages);\n }\n }\n return ans;\n }", "public double ValorDePertenencia(double valor) {\n // Caso 1: al exterior del intervalo del conjunto difuo\n if (valor < min || valor > max || puntos.size() < 2) {\n return 0;\n }\n\n Punto2D ptAntes = puntos.get(0);\n Punto2D ptDespues = puntos.get(1);\n int index = 0;\n while (valor >= ptDespues.x) {\n index++;\n ptAntes = ptDespues;\n ptDespues = puntos.get(index);\n }\n\n if (ptAntes.x == valor) {\n // Tenemos un punto en este valor\n return ptAntes.y;\n } else {\n // Se aplica la interpolación\n return ((ptAntes.y - ptDespues.y) * (ptDespues.x - valor) / (ptDespues.x - ptAntes.x) + ptDespues.y);\n }\n }", "@FloatRange(from = 0, to = 1) float getProgress();", "public Double getProm(ArrayList<Evaluations> evaluations, int periods) {\n Double total = 0.0;\n Double sum = 0.0;\n ArrayList<Double> grades = new ArrayList<>();\n Double percentage = 0.0;\n for (int e = 0; e < evaluations.size(); e++) {\n if (Integer.parseInt(evaluations.get(e).getPeriods()) == periods) {\n percentage += Double.parseDouble(evaluations.get(e).getPercentage());\n }\n }\n Log.e(\"Porcentage\", String.valueOf(percentage));\n if (percentage == 100) {\n for (int i = 0; i < evaluations.size(); i++) {\n Double eva1 = 0.0;\n if (Integer.parseInt(evaluations.get(i).getPeriods()) == periods) {\n eva1 = Double.parseDouble(evaluations.get(i).getEvaluations()) * Double.parseDouble(evaluations.get(i).getPercentage()) / 100;\n Log.e(\"Nota\", String.valueOf(eva1));\n grades.add(eva1);\n }\n\n }\n for (Double grade : grades) {\n sum += grade;\n }\n\n total = sum;\n }\n\n return total;\n }", "public Comissioning withPercentValue(final String valor) {\n\t\tthis.percentValue = valor;\n\t\treturn this;\n\t}", "private static void displayProgression(int progressionType, double firstElement,\n double commonDifOrRatio, int memberCount) {\n if (progressionType == 0) {\n System.out.print(\"\\nArithmetic progression:\");\n printIntOrDouble(firstElement);\n for (int i = 2; i <= memberCount; i++) {\n double curElement = firstElement + commonDifOrRatio * (i - 1);\n printIntOrDouble(curElement);\n }\n } else if (progressionType == 1) {\n System.out.print(\"\\nGeometric progression:\");\n printIntOrDouble(firstElement);\n double curElement = firstElement;\n for (int i = 2; i <= memberCount; i++) {\n curElement *= commonDifOrRatio;\n printIntOrDouble(curElement);\n }\n }\n }", "@Override\n public double getResult(Map<String, Double> values) {\n List<Node> nodes = getChildNodes();\n double result = nodes.get(0).getResult(values);\n if (nodes.size() > 1) {\n for (int i = 1; i < nodes.size(); i++) {\n result = result / nodes.get(i).getResult(values);\n }\n }\n return result;\n }", "public float getPercentage(int n, int total) {\n\n float proportion = ((float) n) / ((float) total);\n\n return proportion * 100;\n }", "public double periculosidade(double salario) {\n\t\t\tsalario = salario * 0.3;\r\n\t\t\t// atribui o valor de 30% ao salario e somando eles.\r\n\t\t\t// salarioTotal = salario + salarioTotal;\r\n\r\n\t\t\treturn salario; // So atribuir esse valor no salario\r\n\t\t\r\n\t}", "public void modulo(MyDouble val) {\n this.setValue(this.getValue() % val.getValue());\n }", "public static Percentage calculate(double num, double den) throws IllegalArgumentException {\n if (num * den < 0) {\n throw new IllegalArgumentException(\"Numerator and denominator must have same sign\");\n } else {\n return new Percentage((int) Math.round(num / den * 100));\n }\n }", "public double Dividir(double operador_1, double operador_2){\n return DivisionC(operador_1, operador_2);\n }", "@Test\n void totalPercentageOneProduct() {\n allProducts.add(new Product(null, 1, \"productTest\", 10.0, null, null, null,null));\n allOrderLines.add(new OrderLine(new Product(1), null, 2, 10.0));\n\n ArrayList<ProductIncome> productIncomes = productBusiness.computeProductsIncome(allProducts, allOrderLines);\n productIncomes.get(0).calculPercentage();\n assertEquals(100.0, productIncomes.get(0).getPercentage(), 0);\n }", "@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}", "public static int percent(int nom, int den) {\r\n\t\treturn (int) Math.round(100 * ((double) nom / den));\r\n\t}", "@Test\n public void testDivisao() {\n System.out.println(\"divisao\");\n float num1 = 0;\n float num2 = 0;\n float expResult = 0;\n float result = Calculadora_teste.divisao(num1, num2);\n assertEquals(expResult, result, 0);\n }", "public T div(T first, T second);", "@Override\n\tpublic double divide(double a, double b) {\n\t\treturn (a/b);\n\t}", "public void generatePercentage(Breakdown breakdown, double total) {\n\n ArrayList<HashMap<String, Breakdown>> list1 = breakdown.getBreakdown();\n for (HashMap<String, Breakdown> map : list1) {\n\n int count = Integer.parseInt(map.get(\"count\").getMessage());\n int percent = (int) Math.round((count * 100) / total);\n map.put(\"percent\", new Breakdown(\"\" + percent));\n\n }\n\n }", "public int getPercentage() {\r\n return Percentage;\r\n }", "public static void main(String[] args) {\n\n String result = NumberFormat.getPercentInstance().format(0.1);// method chaining\n System.out.println(result);\n }", "private double fillPercent() {\n\t\tdouble percent = 0;\n\t\t\n\t\tfor (LinkedList<WordCode<K, V>> ll : myBuckets) {\n\t\t\tif (ll.size() != 0) percent++;\n\t\t}\n\t\treturn (percent / myBuckets.size()) * 100;\n\t}", "public static void main(String[] args) {\n\n int div, num1 = 50, num2 = 3;\n div = num1/num2;\n System.out.println(\"Total \" + div );\n\n }", "private float calculateTip( float amount, int percent, int totalPeople ) {\n\t\tfloat result = (float) ((amount * (percent / 100.0 )) / totalPeople);\n\t\treturn result;\n\t}", "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 }", "private void calculateEachDivision(int division) {\n DataController.setCurrentDivisionForWriting(division);\r\n percentageSlid = (division / (float) DIVISIONS_OF_VALUE_SLIDER);\r\n newCurrentValue = minValueNumeric + (percentageSlid * deltaValueNumeric);\r\n dataController.setValueAsFloat(currentSliderKey, newCurrentValue);\r\n CalculatedVariables.crunchCalculation();\r\n }", "public float calcularPerimetro(){\n return baseMayor+baseMenor+(medidaLado*2);\n }", "public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }", "int div(int num1, int num2) {\n\t\treturn num1/num2;\n\t}", "public double getVentureChecklistPercent(Member member1) {\n\t\tdouble mapSubclassCount;\r\n\t\tdouble mySubclassCount;\r\n\t\tdouble percentCount;\r\n\t\tSl1 = \"SELECT COUNT(*) AS count FROM map_subclass WHERE mapClassID=?\";\r\n\t\ttry {\r\n\t\t\tconn = dataSource.getConnection();\r\n\t\t\tsmt = conn.prepareStatement(Sl1);\r\n\t\t\tsmt.setString(1, member1.getSetPercent());\r\n\t\t\tSystem.out.println(\"getSetPercent()=\"+member1.getSetPercent());\r\n\t\t\trs1 = smt.executeQuery();\r\n\t\t\tif(rs1.next()){\t\r\n\t\t\t\tmapSubclassCount=rs1.getInt(\"count\");\r\n\t\t\t\tSystem.out.println(\"mapSubclassCount=\"+mapSubclassCount);\t\t\t\t\r\n\t\t\t\tSl2 = \"SELECT COUNT(*) AS count FROM venture_checklist WHERE mapClassID=? AND memberAccount =? \";\r\n\t\t\t\tsmt = conn.prepareStatement(Sl2);\r\n\t\t\t\tsmt.setString(1, member1.getSetPercent());\r\n\t\t\t\tsmt.setString(2, member1.getAccount());\r\n\t\t\t\trs2 = smt.executeQuery();\r\n\t\t\t\tif(rs2.next()){\t\r\n\t\t\t\t\tmySubclassCount=rs2.getInt(\"count\");\r\n\t\t\t\t\t//System.out.println(\"mySubclassCount=\"+mySubclassCount);\t\r\n\t\t\t\t\tpercentCount = mySubclassCount/mapSubclassCount;\r\n\t\t\t\t\t//System.out.println(\"percentCount=\"+(mySubclassCount/mapSubclassCount));\r\n\t\t\t\t\treturn percentCount;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsmt.executeQuery();\r\n\t\t\trs1.close();\r\n\t\t\trs2.close();\r\n\t\t\tsmt.close();\r\n \r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n \r\n\t\t} finally {\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException e) {}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public void onclickpercent(View v){\n Button b = (Button) v;\n String temp;\n double t;\n String y;\n displayscreen = screen.getText().toString();\n displayscreen2 = screen2.getText().toString();\n if (displayscreen.equals(\"\") && displayscreen2.equals(\"\")) //handle if display is empty\n return;\n else if (displayscreen.equals(\"\") && !displayscreen2.equals(\"\")) {\n temp = screen2.getText().toString();\n if (temp.contains(\"+\") || temp.contains(\"-\") || temp.contains(\"x\") || temp.contains(\"÷\")){ //handle if user inserts only operators\n return;}\n t = Double.valueOf(temp) /100.0;\n y=df2.format(t);\n screen.setText(y);\n String z=\"%\";\n screen2.setText(temp+z);\n }\n else\n {\n temp = screen.getText().toString();\n t = Double.valueOf(temp) /100.0;\n y=df2.format(t);\n screen.setText(y);\n String z=\"%\";\n screen2.setText(temp+z);\n }\n }", "public int division(int a, int b) {\n return a / b;\n }", "double getPerimetro();", "public float perimetro() {\n return (lado * 2 + base);\r\n }" ]
[ "0.6993547", "0.6943287", "0.6927301", "0.6692882", "0.6599301", "0.6545149", "0.64814365", "0.6437924", "0.6413798", "0.63392055", "0.63320297", "0.6309827", "0.62593025", "0.6223118", "0.6218661", "0.6200694", "0.6174941", "0.61699104", "0.61499286", "0.61327666", "0.61171806", "0.6098398", "0.6087496", "0.6077306", "0.60550743", "0.60503954", "0.60354376", "0.6014066", "0.5996767", "0.59923816", "0.59604484", "0.59408873", "0.59408456", "0.59325147", "0.59118116", "0.5897819", "0.5885842", "0.58820355", "0.58741987", "0.5860468", "0.5818156", "0.58109117", "0.57951415", "0.57763535", "0.5771312", "0.57710254", "0.5766598", "0.576239", "0.57474333", "0.57373303", "0.5725286", "0.5722292", "0.5721917", "0.57211274", "0.57160884", "0.57153386", "0.5713899", "0.5711534", "0.5706765", "0.57052857", "0.56881785", "0.56723505", "0.5660165", "0.5646651", "0.5634389", "0.5633424", "0.5628908", "0.5627524", "0.56209695", "0.56146955", "0.5610425", "0.5608999", "0.55998945", "0.5594276", "0.5585008", "0.5584858", "0.55846953", "0.5584315", "0.55743945", "0.55739146", "0.5572875", "0.5569249", "0.5564066", "0.5559535", "0.5547148", "0.55454344", "0.55401707", "0.55388546", "0.5531068", "0.5528809", "0.5517092", "0.5500919", "0.55008173", "0.5490906", "0.5489627", "0.5485369", "0.5482163", "0.54767525", "0.54696447", "0.5460684" ]
0.82584965
0
Calcular Percentual a funcao recebe dois valores, pega o primeiro valor(valor1) multiplica por 100 e divide pelo segundo valor(valor2)
public static BigDecimal calcularPercentualBigDecimal(String valor1, String valor2) { BigDecimal bigValor1 = new BigDecimal(valor1); BigDecimal bigValor2 = new BigDecimal(valor2 != null ? valor2 : "1"); return calcularPercentualBigDecimal(bigValor1, bigValor2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String calcularPercentual(String valor1, String valor2) {\r\n\r\n\t\tBigDecimal bigValor1 = new BigDecimal(valor1);\r\n\t\tBigDecimal bigValor2 = new BigDecimal(valor2 != null ? valor2 : \"1\");\r\n\r\n\t\tBigDecimal numeroCem = new BigDecimal(\"100\");\r\n\r\n\t\tBigDecimal primeiroNumero = bigValor1.multiply(numeroCem);\r\n\r\n\t\tBigDecimal resultado = primeiroNumero.divide(bigValor2, 2, BigDecimal.ROUND_HALF_UP);\r\n\r\n\t\treturn (resultado + \"\");\r\n\t}", "public double percent(double firstNumber, double secondNumber) {\n\t\tdouble result = firstNumber*(secondNumber/100);\n\t\treturn result;\n\t}", "public static BigDecimal calcularPercentualBigDecimal(BigDecimal bigValor1, BigDecimal bigValor2) {\r\n\r\n\t\tBigDecimal resultado = new BigDecimal(\"0.0\");\r\n\r\n\t\tif (bigValor2.compareTo(new BigDecimal(\"0.0\")) != 0) {\r\n\r\n\t\t\tBigDecimal numeroCem = new BigDecimal(\"100\");\r\n\r\n\t\t\tBigDecimal primeiroNumero = bigValor1.multiply(numeroCem);\r\n\r\n\t\t\tresultado = primeiroNumero.divide(bigValor2, 2, BigDecimal.ROUND_HALF_UP);\r\n\t\t}\r\n\t\treturn resultado;\r\n\t}", "public void percentualGordura(){\n\n s0 = 4.95 / denscorp;\n s1 = s0 - 4.50;\n percentgord = s1 * 100;\n\n }", "public double percentage(double value) {\n return basicCalculation(value, 100, Operator.DIVIDE);\n }", "public double divisao (double numero1, double numero2){\n\t}", "public static double calculateValueInPercentage(double value) {\r\n return value * 0.01;\r\n }", "java.lang.String getPercentage();", "public static void main(String[] args) {\n \tdouble num1 = 7.15;\n \tdouble num2 = 10.0;\n\t\t// 创建一个数值格式化对象\n\t\tNumberFormat numberFormat = NumberFormat.getInstance();\n\t\tDecimalFormat decimalFormat = new DecimalFormat(\"#.00\");\n\t\t// 设置精确到小数点后2位\n\t\tnumberFormat.setMaximumFractionDigits(2);\n\t\tString result = numberFormat.format((num1 / num2 * 100));\n\t\tSystem.out.println(\"num1和num2的百分比为:\" + result + \"%\");\n\t\tSystem.out.println(\"num1和num2的百分比为:\" + decimalFormat.format(Double.valueOf(result)) + \"%\");\n\t}", "public BigDecimal getPercentageProfitPStd();", "public double permutasi(double num1, double num2){\n if (num1<num2||(num1<0&&num2<0)) {\n System.out.println(\"bilangan tidak benar\");\n return 0;\n }\n return faktorial(num1)/faktorial(num1-num2);\n }", "public Double getProgressPercent();", "public BigDecimal getPercentageProfitPLimit();", "private float getPercentage(int count, int total) {\n return ((float) count / total) * 100;\n }", "int getPercentageHeated();", "@Override\n\t\tpublic Double fazCalculo(Double num1, Double num2) {\n\t\t\treturn num1 / num2;\n\t\t}", "static int valDiv2 (){\n return val/2;\n }", "public static float div(int value1, int value2){\r\n return (float) value1 / value2;\r\n }", "@Override\n\tpublic int calculation(int a, int b) {\n\t\treturn b/a;\n\t}", "public static Object divide(Object val1, Object val2) {\n\n\t\tif (isFloat(val1)) {\n\t\t\tdouble doubleVal1 = ((BigDecimal) val1).doubleValue();\n\n\t\t\tif (isFloat(val2)) {\n\t\t\t\treturn new BigDecimal(doubleVal1\n\t\t\t\t\t\t/ ((BigDecimal) val2).doubleValue());\n\t\t\t} else if (isInt(val2)) {\n\t\t\t\treturn new BigDecimal(doubleVal1\n\t\t\t\t\t\t/ ((BigInteger) val2).intValue());\n\t\t\t}\n\n\t\t}\n\t\tif (isFloat(val2)) {\n\t\t\tdouble doubleVal2 = ((BigDecimal) val2).doubleValue();\n\n\t\t\tif (isFloat(val1)) {\n\t\t\t\treturn new BigDecimal(((BigDecimal) val1).doubleValue()\n\t\t\t\t\t\t/ doubleVal2);\n\t\t\t} else if (isInt(val1)) {\n\t\t\t\treturn new BigDecimal(((BigInteger) val1).intValue()\n\t\t\t\t\t\t/ doubleVal2);\n\t\t\t}\n\t\t}\n\t\tif (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).divide((BigInteger) val2);\n\t\t}\n\n\t\tthrow new OrccRuntimeException(\"type mismatch in divide\");\n\t}", "public static String calculaPercentual(double valor, double total) {\n\n\t\tDecimalFormat fmt = new DecimalFormat(\"0.00\");\n\n\t\ttry {\n\n\t\t\treturn fmt.format((valor * 100) / total);\n\t\t} \n\t\tcatch (Exception e) {\n\n\t\t\treturn \"0,00\";\n\t\t}\n\t}", "@Override\n\tpublic double percentualeGruppiCompletati () throws DAOException{\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tdouble numeroGruppiCompletati = 0.0;\n\t\ttry {\n\t\t\tconnection = DataSource.getInstance().getConnection();\n\t\t\tstatement = connection.prepareStatement(\"SELECT COUNT (GRUPPO.ID)*100/(SELECT COUNT(ID) FROM GRUPPO) FROM GRUPPO WHERE COMPLETO = 1 GROUP BY(GRUPPO.COMPLETO)\");\n\t\t\tresultSet = statement.executeQuery();\n\t\t\tif (resultSet.next()) {\n\t\t\t\tnumeroGruppiCompletati = BigDecimal.valueOf(resultSet.getDouble(1)).setScale(2, RoundingMode.HALF_UP).doubleValue();\n\t\t\t}\n\t\t} catch (SQLException | DAOException e) {\n\t\t\tthrow new DAOException(\"ERRORE percentualeGruppiCompletati utenteAdmin\" + e.getMessage(), e);\n\t\t} finally {\n\t\t\tDataSource.getInstance().close(resultSet);\n\t\t\tDataSource.getInstance().close(statement);\n\t\t\tDataSource.getInstance().close(connection);\n\t\t}\n\t\treturn numeroGruppiCompletati;\n\t}", "private static void computePercentage(int numberOfA[], int numberOfB[], int percentageOfB[]) {\n\t\tfor ( int i = 0; i < percentageOfB.length; i++ )\n\t\t\tpercentageOfB[i] = (int) Math.round( numberOfB[i] * 100.0 / ( numberOfB[i] + numberOfA[i] ));\n\t}", "private double calculatePercentProgress(BigDecimal projectId) {\r\n log.debug(\"calculatePercentProgress.START\");\r\n ModuleDao moduleDao = new ModuleDao();\r\n LanguageDao languageDao = new LanguageDao();\r\n List<Module> modules = moduleDao.getModuleByProject(projectId);\r\n double totalCurrentLoc = 0;\r\n double totalCurrentPage = 0;\r\n double totalCurrentTestCase = 0;\r\n double totalCurrentSheet = 0;\r\n\r\n double totalPlannedLoc = 0;\r\n double totalPlannedPage = 0;\r\n double totalPlannedTestCase = 0;\r\n double totalPlannedSheet = 0;\r\n for (int i = 0; i < modules.size(); i++) {\r\n Language language = languageDao.getLanguageById(modules.get(i).getPlannedSizeUnitId());\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.LOC.toUpperCase())) {\r\n totalCurrentLoc += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedLoc += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.TESTCASE.toUpperCase())) {\r\n totalCurrentTestCase += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedTestCase += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.PAGE_WORD.toUpperCase())) {\r\n totalCurrentPage += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedPage += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.SHEET_EXCEL.toUpperCase())) {\r\n totalCurrentSheet += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedSheet += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n\r\n }\r\n\r\n double percentProgress = ((totalCurrentLoc * Constant.LOC_WEIGHT)\r\n + (totalCurrentTestCase * Constant.TESTCASE_WEIGHT) + (totalCurrentPage * Constant.PAGE_WEIGHT) + (totalCurrentSheet * Constant.PAGE_WEIGHT))\r\n / ((totalPlannedLoc * Constant.LOC_WEIGHT) + (totalPlannedTestCase * Constant.TESTCASE_WEIGHT)\r\n + (totalPlannedPage * Constant.PAGE_WEIGHT) + (totalPlannedSheet * Constant.PAGE_WEIGHT)) * 100;\r\n\r\n return Math.round(percentProgress * 100.0) / 100.0;\r\n }", "private void percent()\n\t{\n\t\tDouble percent;\t\t//holds the right value percentage of the left value\n\t\tString newText = \"\";//Holds the updated text \n\t\tif(calc.getLeftValue ( ) != 0.0 && Fun != null)\n\t\t{\n\t\t\tsetRightValue();\n\t\t\tpercent = calc.getRightValue() * 0.01 * calc.getLeftValue();\n\t\t\tleftValue = calc.getLeftValue();\n\t\t\tnewText += leftValue;\n\t\t\tswitch (Fun)\n\t\t\t{\n\t\t\t\tcase ADD:\n\t\t\t\t\tnewText += \" + \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase SUBTRACT:\n\t\t\t\t\tnewText += \" - \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase DIVIDE:\n\t\t\t\t\tnewText += \" / \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase MULTIPLY:\n\t\t\t\t\tnewText += \" * \";\n\t\t\t\t\tbreak;\n\t\t\t}//end switch\n\t\t\t\n\t\t\tnewText += \" \" + percent;\n\t\t\tentry.setText(newText);\n\t\t\t\n\t\t}//end if\n\t\t\n\t}", "public Double retornaSubTotal(Double totalGeral,Double desconto){\n return totalGeral - (totalGeral*(desconto/100));\n}", "int getRemainderPercent();", "double updateValue(double value, double percentage){\n\t\treturn value+=(value*(.01*percentage));\r\n\t}", "public static int p_div(){\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"please put the first number that you want to divide:\");\n int v_div_number_1 = keyboard.nextInt();\n System.out.println(\"please put the second number that you want to divide:\");\n int v_div_number_2 = keyboard.nextInt();\n int v_total_div= v_div_number_1/v_div_number_2;\n return v_total_div;\n }", "public void MOD( ){\n String tipo1 = pilhaVerificacaoTipos.pop().toString();\n String tipo2 = pilhaVerificacaoTipos.pop().toString();\n String val1 = dads.pop().toString();\n float fresult = -1;\n String val2 = dads.pop().toString();\n if(val1 != null && val2 != null){\n if (tipo1 != null && tipo2 != null){\n if(tipo1 == \"inteiro\" && tipo2 == \"real\"){\n if(Float.parseFloat(val2) != 0){\n fresult = Integer.parseInt(val1) % Float.parseFloat(val2);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"real\" && tipo2 ==\"inteiro\"){\n if(Float.parseFloat(val1) != 0){\n fresult = Integer.parseInt(val2) % Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"real\" && tipo2 ==\"real\"){\n if(Float.parseFloat(val1) != 0){\n fresult = Float.parseFloat(val2) % Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"inteiro\" && tipo2 ==\"inteiro\"){\n if(Integer.parseInt(val1) != 0){\n fresult = Integer.parseInt(val2) % Integer.parseInt(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n return;\n }\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(1): essa instrução é válida apenas para valores inteiros ou reais.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(2): não foi possível executar a instrução, tipo null encontrado.\";\n numErrVM += 1;\n return;\n }\n }else {\n mensagensErrosVM += \"\\nRUNTIME ERROR(3): não foi possível executar a instrução, valor null encontrado.\";\n numErrVM += 1;\n return;\n }\n\n\n topo += -1;\n ponteiro += 1;\n }", "@Override\n\tpublic Double calcular(Produto produto) {\n\t\treturn (produto.getValorUnitario()) - (produto.getValorUnitario() * 0.25);\n\t}", "public double getValueAsPercentInPage(double fltValueAsPercentInTimeline) {\n double fltTimeLineRangeInRmsFrames = intPageAmount * intPageSizeInRmsFrames;\n double fltPageHorStartPositionInTimeline = ((pageValue.fltPageNum - 1) * intPageSizeInRmsFrames);\n double fltPageHorEndPositionInTimeline = (pageValue.fltPageNum * intPageSizeInRmsFrames);\n double fltItemPositionInTimeline = (fltValueAsPercentInTimeline/100.0f) * fltTimeLineRangeInRmsFrames;\n\n double fltValue = 0;\n if ((fltItemPositionInTimeline >= fltPageHorStartPositionInTimeline) && (fltItemPositionInTimeline <= fltPageHorEndPositionInTimeline)) {\n // Selected position is inside display page\n fltValue = ((fltItemPositionInTimeline - fltPageHorStartPositionInTimeline) * 100.0f)/intPageSizeInRmsFrames;\n } else if (fltItemPositionInTimeline < fltPageHorStartPositionInTimeline){\n // Selected position is outside on left of page\n fltValue = 0;\n } else if (fltItemPositionInTimeline > fltPageHorEndPositionInTimeline){\n // Selected position is outside on right of page\n fltValue = 100;\n }\n return fltValue;\n }", "public static float calculatePercent(float numOfSpecificTrees, float totalTrees){\n\t\tfloat percent= numOfSpecificTrees/totalTrees*100;\n\t\treturn percent;\n\t\t\n\t}", "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 static void promedio(int [] Grado1, int NNEstudent){\nint aux=0;\nfor(int i=0;i<NNEstudent;i++){\naux=Grado1[i]+aux;}\nint promedio;\npromedio=aux/NNEstudent;\nSystem.out.println(aux);\nSystem.out.println(\"el promedio de las edades es:\");\nSystem.out.println(promedio);\n}", "public int percent() {\n\t\tdouble meters = meters();\n\t\tif (meters < MIN_METERS) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn (int) (Math.pow((meters - MIN_METERS)\n\t\t\t\t/ (MAX_METERS - MIN_METERS) * Math.pow(100, CURVE),\n\t\t\t\t1.000d / CURVE));\n\t}", "void div(double val) {\r\n\t\tresult = result / val;\r\n\t}", "public float carga(){\n return (this.capacidade/this.tamanho);\n }", "public void increasePrice(int percentage);", "public double getPercentRem(){\n return ((double)freeSpace / (double)totalSpace) * 100d;\n }", "public double calculateHpPercent();", "private double computeDifferentialPCT(double currentValue, double average) {\n return average <= Double.MIN_VALUE ? 0.0 : (currentValue / average - 1) * 100.0;\n }", "@Override\r\n\tpublic double calculate() {\n\t\treturn n1 / n2;\r\n\t}", "double greenPercentage();", "static void diviser() throws IOException {\n\t Scanner clavier = new Scanner(System.in);\n\tdouble nb1, nb2, resultat;\n\tnb1 = lireNombreEntier();\n\tnb2 = lireNombreEntier();\n\tif (nb2 != 0) {\n\tresultat = nb1 / nb2;\n\tSystem.out.println(\"\\n\\t\" + nb1 + \" / \" + nb2 + \" = \" +\n\tresultat);\n\t} else\n\tSystem.out.println(\"\\n\\t le nombre 2 est nul, devision par 0 est impossible \");\n\t}", "private void calcularResultado() {\r\n\tdouble dinero=0;\r\n\tdinero=Double.parseDouble(pantalla.getText());\r\n\tresultado=dinero/18.5;\r\n\t\tpantalla.setText(\"\" + resultado);\r\n\t\toperacion = \"\";\r\n\t}", "public static double divide(double num1,double num2){\n\n // return num1/num2 ;\n\n if(num2==0){\n return 0 ;\n } else {\n return num1/num2 ;\n }\n }", "private double calcScorePercent() {\n\t\tdouble adjustedLab = totalPP * labWeight;\n\t\tdouble adjustedProj = totalPP * projWeight;\n\t\tdouble adjustedExam = totalPP * examWeight;\n\t\tdouble adjustedCodeLab = totalPP * codeLabWeight;\n\t\tdouble adjustedFinal = totalPP * finalWeight;\n\n\t\tlabScore = (labScore / labPP) * adjustedLab;\n\t\tprojScore = (projScore / projPP) * adjustedProj;\n\t\texamScore = (examScore / examPP) * adjustedExam;\n\t\tcodeLabScore = (codeLabScore / codeLabPP) * adjustedCodeLab;\n\t\tfinalExamScore = (finalExamScore / finalExamPP) * adjustedFinal;\n\n//\t\tdouble labPercent = labScore / adjustedLab;\n//\t\tdouble projPercent = projScore / adjustedProj;\n//\t\tdouble examPercent = examScore / adjustedExam;\n//\t\tdouble codeLabPercent = codeLabScore / adjustedCodeLab;\n//\t\tdouble finalPercent = finalExamScore / adjustedFinal;\n\n\t\tdouble totalPercent = (labScore + projScore + examScore + codeLabScore + finalExamScore) / totalPP;\n\t\t\n\t\tscorePercent = totalPercent;\n\t\t\n\t\treturn totalPercent;\n\t}", "double redPercentage();", "public double toPercent(double x){\n\t\treturn x/ 100;\n\t}", "@Override\n\tprotected double calcularImpuestoVehiculo() {\n\t\treturn this.getValor() * 0.003;\n\t}", "@SuppressLint(\"SetTextI18n\")\n @Override\n protected void onProgressUpdate(Integer... values) {\n\n //Le pasamos el parametro, es un array y esta en la posicion 0\n progressBar1.setProgress(values[0]);\n //Le sumamos 1 pork y 1mpieza en 0\n textView.setText(values[0]+1 + \" %\");\n }", "public double kombinasi(double num1, double num2){\n if (num1<num2||(num1<0&&num2<0)) {\n System.out.println(\"bilangan tidak benar\");\n return 0;\n }\n return permutasi(num1,num2)/faktorial(num2);\n }", "@Override\n\tpublic double percentualeUtentiAbilitati () throws DAOException{\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tdouble numeroUtenti = 0.0;\n\t\ttry {\n\t\t\tconnection = DataSource.getInstance().getConnection();\n\t\t\tstatement = connection.prepareStatement(\" SELECT COUNT (UTENTE.ID)*100/(SELECT COUNT(ID) FROM UTENTE) FROM UTENTE WHERE ABILITATO = 1 GROUP BY(UTENTE.ABILITATO) \");\n\t\t\tresultSet = statement.executeQuery();\n\t\t\tif (resultSet.next()) {\n\t\t\t\tnumeroUtenti = BigDecimal.valueOf(resultSet.getDouble(1)).setScale(2, RoundingMode.HALF_UP).doubleValue();\n\t\t\t}\n\t\t} catch (SQLException | DAOException e) {\n\t\t\tthrow new DAOException(\"ERRORE percentualeUtentiAbilitati utenteAdmin\" + e.getMessage(), e);\n\t\t} finally {\n\t\t\tDataSource.getInstance().close(resultSet);\n\t\t\tDataSource.getInstance().close(statement);\n\t\t\tDataSource.getInstance().close(connection);\n\t\t}\n\t\treturn numeroUtenti;\n\t}", "@Override\n\tpublic int div(int val1, int val2) throws ZeroDiv {\n\t\tif (val2 == 0){\n\t\t\tZeroDiv e = new ZeroDiv(\"probleme\");\n\t\t\tthrow e;\n\t\t}\n\t\telse\n\t\t\treturn val1/val2;\n\t}", "private float valOf(SeekBar bar) {\n return (float) bar.getProgress() / bar.getMax();\n }", "public static void main(String[] args) {\n\n\t\tint i = 80;\n\t\tint j = 20;\n\t\t\n\t\tdouble b = (double)(j)/(double)(i);\n\t\tdouble b_1 = b*100;\n\t\tSystem.out.println(b_1+\"%\");\n\t\t\n\t\tdouble b_2 = (double)(j)/(double)(i)*100;\n\t\tSystem.out.println(b_2+\"%\");\n\t\t\n\t\tdouble b_3 = (double)j/i;\n\t\tSystem.out.println(b_3);\n\t\tdouble b_4 =(double) b_3*100;\n\t\tSystem.out.println(b_4+\"%\");\n\t}", "private void peso(){\r\n if(getPeso()>80){\r\n precioBase+=100;\r\n }\r\n else if ((getPeso()<=79)&&(getPeso()>=50)){\r\n precioBase+=80;\r\n }\r\n else if ((getPeso()<=49)&&(getPeso()>=20)){\r\n precioBase+=50;\r\n }\r\n else if ((getPeso()<=19)&&(getPeso()>=0)){\r\n precioBase+=10;\r\n }\r\n }", "public void divide(MyDouble val) {\n this.setValue(this.getValue() / val.getValue());\n }", "public abstract float perimetro();", "public BigDecimal getPercentageProfitPList();", "public int division(){\r\n return Math.round(x/y);\r\n }", "public String percentageProgress(float goalSavings, float currGoalPrice) {\n float percentageProgress = (goalSavings / currGoalPrice) * 100;\n DecimalFormat df = new DecimalFormat(\"#.##\");\n df.setRoundingMode(RoundingMode.CEILING);\n return \"[\" + df.format(percentageProgress) + \"%]\";\n }", "@Override\n public double calculate(double input)\n {\n return input/getValue();\n }", "public void calcularEntropia(){\n //Verificamos si será con la misma probabilida o con probabilidad\n //especifica\n if(contadorEstados == 0){\n //Significa que será con la misma probabilidad por lo que nosotros\n //calcularemos las probabilidades individuales\n for(int i = 0; i < numEstados; i++){\n probabilidadEstados[i] = 1.0 / numEstados;\n }\n }\n for(int i = 0; i < numEstados; i++){\n double logEstado = Math.log10(probabilidadEstados[i]);\n logEstado = logEstado * (-1);\n double logDos = Math.log10(2);\n double divisionLog = logEstado / logDos;\n double entropiaTmp = probabilidadEstados[i] * divisionLog;\n resultado += entropiaTmp;\n }\n }", "public double getMainPercentage(){return mainPercentage;}", "public double ValorDePertenencia(double valor) {\n // Caso 1: al exterior del intervalo del conjunto difuo\n if (valor < min || valor > max || puntos.size() < 2) {\n return 0;\n }\n\n Punto2D ptAntes = puntos.get(0);\n Punto2D ptDespues = puntos.get(1);\n int index = 0;\n while (valor >= ptDespues.x) {\n index++;\n ptAntes = ptDespues;\n ptDespues = puntos.get(index);\n }\n\n if (ptAntes.x == valor) {\n // Tenemos un punto en este valor\n return ptAntes.y;\n } else {\n // Se aplica la interpolación\n return ((ptAntes.y - ptDespues.y) * (ptDespues.x - valor) / (ptDespues.x - ptAntes.x) + ptDespues.y);\n }\n }", "private double getPercent(int here, int days, int d, int end, double dest, int[][] villages) {\n if (days==d){\n// System.out.println(here+ \" \"+end);\n if (here==end) {\n// System.out.println(\"dest=\"+dest);\n return dest;\n }\n return 0;\n }\n double ans = 0;\n for (int next = 0; next < villages[here].length; next++) {\n int there = villages[here][next];\n if (there==1){\n// System.out.println(degree[here]+\" des=\"+(dest/degree[here]));\n ans += getPercent(next,days+1,d,end,dest/degree[here],villages);\n }\n }\n return ans;\n }", "@FloatRange(from = 0, to = 1) float getProgress();", "public Double getProm(ArrayList<Evaluations> evaluations, int periods) {\n Double total = 0.0;\n Double sum = 0.0;\n ArrayList<Double> grades = new ArrayList<>();\n Double percentage = 0.0;\n for (int e = 0; e < evaluations.size(); e++) {\n if (Integer.parseInt(evaluations.get(e).getPeriods()) == periods) {\n percentage += Double.parseDouble(evaluations.get(e).getPercentage());\n }\n }\n Log.e(\"Porcentage\", String.valueOf(percentage));\n if (percentage == 100) {\n for (int i = 0; i < evaluations.size(); i++) {\n Double eva1 = 0.0;\n if (Integer.parseInt(evaluations.get(i).getPeriods()) == periods) {\n eva1 = Double.parseDouble(evaluations.get(i).getEvaluations()) * Double.parseDouble(evaluations.get(i).getPercentage()) / 100;\n Log.e(\"Nota\", String.valueOf(eva1));\n grades.add(eva1);\n }\n\n }\n for (Double grade : grades) {\n sum += grade;\n }\n\n total = sum;\n }\n\n return total;\n }", "public Comissioning withPercentValue(final String valor) {\n\t\tthis.percentValue = valor;\n\t\treturn this;\n\t}", "private static void displayProgression(int progressionType, double firstElement,\n double commonDifOrRatio, int memberCount) {\n if (progressionType == 0) {\n System.out.print(\"\\nArithmetic progression:\");\n printIntOrDouble(firstElement);\n for (int i = 2; i <= memberCount; i++) {\n double curElement = firstElement + commonDifOrRatio * (i - 1);\n printIntOrDouble(curElement);\n }\n } else if (progressionType == 1) {\n System.out.print(\"\\nGeometric progression:\");\n printIntOrDouble(firstElement);\n double curElement = firstElement;\n for (int i = 2; i <= memberCount; i++) {\n curElement *= commonDifOrRatio;\n printIntOrDouble(curElement);\n }\n }\n }", "@Override\n public double getResult(Map<String, Double> values) {\n List<Node> nodes = getChildNodes();\n double result = nodes.get(0).getResult(values);\n if (nodes.size() > 1) {\n for (int i = 1; i < nodes.size(); i++) {\n result = result / nodes.get(i).getResult(values);\n }\n }\n return result;\n }", "public float getPercentage(int n, int total) {\n\n float proportion = ((float) n) / ((float) total);\n\n return proportion * 100;\n }", "public void modulo(MyDouble val) {\n this.setValue(this.getValue() % val.getValue());\n }", "public double Dividir(double operador_1, double operador_2){\n return DivisionC(operador_1, operador_2);\n }", "public static Percentage calculate(double num, double den) throws IllegalArgumentException {\n if (num * den < 0) {\n throw new IllegalArgumentException(\"Numerator and denominator must have same sign\");\n } else {\n return new Percentage((int) Math.round(num / den * 100));\n }\n }", "public double periculosidade(double salario) {\n\t\t\tsalario = salario * 0.3;\r\n\t\t\t// atribui o valor de 30% ao salario e somando eles.\r\n\t\t\t// salarioTotal = salario + salarioTotal;\r\n\r\n\t\t\treturn salario; // So atribuir esse valor no salario\r\n\t\t\r\n\t}", "@Test\n void totalPercentageOneProduct() {\n allProducts.add(new Product(null, 1, \"productTest\", 10.0, null, null, null,null));\n allOrderLines.add(new OrderLine(new Product(1), null, 2, 10.0));\n\n ArrayList<ProductIncome> productIncomes = productBusiness.computeProductsIncome(allProducts, allOrderLines);\n productIncomes.get(0).calculPercentage();\n assertEquals(100.0, productIncomes.get(0).getPercentage(), 0);\n }", "@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}", "public static int percent(int nom, int den) {\r\n\t\treturn (int) Math.round(100 * ((double) nom / den));\r\n\t}", "@Test\n public void testDivisao() {\n System.out.println(\"divisao\");\n float num1 = 0;\n float num2 = 0;\n float expResult = 0;\n float result = Calculadora_teste.divisao(num1, num2);\n assertEquals(expResult, result, 0);\n }", "public T div(T first, T second);", "@Override\n\tpublic double divide(double a, double b) {\n\t\treturn (a/b);\n\t}", "public void generatePercentage(Breakdown breakdown, double total) {\n\n ArrayList<HashMap<String, Breakdown>> list1 = breakdown.getBreakdown();\n for (HashMap<String, Breakdown> map : list1) {\n\n int count = Integer.parseInt(map.get(\"count\").getMessage());\n int percent = (int) Math.round((count * 100) / total);\n map.put(\"percent\", new Breakdown(\"\" + percent));\n\n }\n\n }", "public int getPercentage() {\r\n return Percentage;\r\n }", "public static void main(String[] args) {\n\n String result = NumberFormat.getPercentInstance().format(0.1);// method chaining\n System.out.println(result);\n }", "private double fillPercent() {\n\t\tdouble percent = 0;\n\t\t\n\t\tfor (LinkedList<WordCode<K, V>> ll : myBuckets) {\n\t\t\tif (ll.size() != 0) percent++;\n\t\t}\n\t\treturn (percent / myBuckets.size()) * 100;\n\t}", "public static void main(String[] args) {\n\n int div, num1 = 50, num2 = 3;\n div = num1/num2;\n System.out.println(\"Total \" + div );\n\n }", "private float calculateTip( float amount, int percent, int totalPeople ) {\n\t\tfloat result = (float) ((amount * (percent / 100.0 )) / totalPeople);\n\t\treturn result;\n\t}", "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 }", "private void calculateEachDivision(int division) {\n DataController.setCurrentDivisionForWriting(division);\r\n percentageSlid = (division / (float) DIVISIONS_OF_VALUE_SLIDER);\r\n newCurrentValue = minValueNumeric + (percentageSlid * deltaValueNumeric);\r\n dataController.setValueAsFloat(currentSliderKey, newCurrentValue);\r\n CalculatedVariables.crunchCalculation();\r\n }", "public float calcularPerimetro(){\n return baseMayor+baseMenor+(medidaLado*2);\n }", "public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }", "int div(int num1, int num2) {\n\t\treturn num1/num2;\n\t}", "public double getVentureChecklistPercent(Member member1) {\n\t\tdouble mapSubclassCount;\r\n\t\tdouble mySubclassCount;\r\n\t\tdouble percentCount;\r\n\t\tSl1 = \"SELECT COUNT(*) AS count FROM map_subclass WHERE mapClassID=?\";\r\n\t\ttry {\r\n\t\t\tconn = dataSource.getConnection();\r\n\t\t\tsmt = conn.prepareStatement(Sl1);\r\n\t\t\tsmt.setString(1, member1.getSetPercent());\r\n\t\t\tSystem.out.println(\"getSetPercent()=\"+member1.getSetPercent());\r\n\t\t\trs1 = smt.executeQuery();\r\n\t\t\tif(rs1.next()){\t\r\n\t\t\t\tmapSubclassCount=rs1.getInt(\"count\");\r\n\t\t\t\tSystem.out.println(\"mapSubclassCount=\"+mapSubclassCount);\t\t\t\t\r\n\t\t\t\tSl2 = \"SELECT COUNT(*) AS count FROM venture_checklist WHERE mapClassID=? AND memberAccount =? \";\r\n\t\t\t\tsmt = conn.prepareStatement(Sl2);\r\n\t\t\t\tsmt.setString(1, member1.getSetPercent());\r\n\t\t\t\tsmt.setString(2, member1.getAccount());\r\n\t\t\t\trs2 = smt.executeQuery();\r\n\t\t\t\tif(rs2.next()){\t\r\n\t\t\t\t\tmySubclassCount=rs2.getInt(\"count\");\r\n\t\t\t\t\t//System.out.println(\"mySubclassCount=\"+mySubclassCount);\t\r\n\t\t\t\t\tpercentCount = mySubclassCount/mapSubclassCount;\r\n\t\t\t\t\t//System.out.println(\"percentCount=\"+(mySubclassCount/mapSubclassCount));\r\n\t\t\t\t\treturn percentCount;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsmt.executeQuery();\r\n\t\t\trs1.close();\r\n\t\t\trs2.close();\r\n\t\t\tsmt.close();\r\n \r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n \r\n\t\t} finally {\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException e) {}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public void onclickpercent(View v){\n Button b = (Button) v;\n String temp;\n double t;\n String y;\n displayscreen = screen.getText().toString();\n displayscreen2 = screen2.getText().toString();\n if (displayscreen.equals(\"\") && displayscreen2.equals(\"\")) //handle if display is empty\n return;\n else if (displayscreen.equals(\"\") && !displayscreen2.equals(\"\")) {\n temp = screen2.getText().toString();\n if (temp.contains(\"+\") || temp.contains(\"-\") || temp.contains(\"x\") || temp.contains(\"÷\")){ //handle if user inserts only operators\n return;}\n t = Double.valueOf(temp) /100.0;\n y=df2.format(t);\n screen.setText(y);\n String z=\"%\";\n screen2.setText(temp+z);\n }\n else\n {\n temp = screen.getText().toString();\n t = Double.valueOf(temp) /100.0;\n y=df2.format(t);\n screen.setText(y);\n String z=\"%\";\n screen2.setText(temp+z);\n }\n }", "public int division(int a, int b) {\n return a / b;\n }", "double getPerimetro();", "public void setPercentageProfitPStd (BigDecimal PercentageProfitPStd);" ]
[ "0.82583576", "0.69925416", "0.69428533", "0.66922355", "0.65974844", "0.65454286", "0.647957", "0.6436367", "0.6413267", "0.63376886", "0.6331572", "0.63085383", "0.625772", "0.62211955", "0.6216767", "0.6200117", "0.617429", "0.6170283", "0.6149457", "0.6133728", "0.6115808", "0.60977066", "0.60872406", "0.6076314", "0.6053724", "0.6048578", "0.603375", "0.60121083", "0.59976494", "0.5993322", "0.5959216", "0.5940868", "0.59402454", "0.593176", "0.5912317", "0.5896172", "0.58854455", "0.5880541", "0.587183", "0.5858465", "0.5816064", "0.58085567", "0.5794786", "0.5774132", "0.577244", "0.5771154", "0.5766582", "0.5760969", "0.57450074", "0.57353413", "0.57245857", "0.57219666", "0.5721744", "0.5721357", "0.57163584", "0.5715261", "0.5713473", "0.57105744", "0.57054883", "0.57052505", "0.56874037", "0.56713927", "0.5658706", "0.5645468", "0.56349623", "0.5631913", "0.562798", "0.56276464", "0.5620329", "0.5615623", "0.5610543", "0.56087136", "0.56006145", "0.5592969", "0.5584443", "0.5584422", "0.5583773", "0.55835205", "0.5574413", "0.5573781", "0.5571365", "0.55697435", "0.5564626", "0.5559387", "0.55460894", "0.5544545", "0.5539108", "0.5537196", "0.553149", "0.55267596", "0.5517951", "0.5502399", "0.54993105", "0.5490368", "0.5489988", "0.54851604", "0.54816264", "0.547676", "0.5468158", "0.5460324" ]
0.69276184
3
Calcular Percentual a funcao recebe dois valores, pega o primeiro valor(valor1) multiplica por 100 e divide pelo segundo valor(valor2)
public static BigDecimal calcularPercentualBigDecimal(BigDecimal bigValor1, BigDecimal bigValor2) { BigDecimal resultado = new BigDecimal("0.0"); if (bigValor2.compareTo(new BigDecimal("0.0")) != 0) { BigDecimal numeroCem = new BigDecimal("100"); BigDecimal primeiroNumero = bigValor1.multiply(numeroCem); resultado = primeiroNumero.divide(bigValor2, 2, BigDecimal.ROUND_HALF_UP); } return resultado; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String calcularPercentual(String valor1, String valor2) {\r\n\r\n\t\tBigDecimal bigValor1 = new BigDecimal(valor1);\r\n\t\tBigDecimal bigValor2 = new BigDecimal(valor2 != null ? valor2 : \"1\");\r\n\r\n\t\tBigDecimal numeroCem = new BigDecimal(\"100\");\r\n\r\n\t\tBigDecimal primeiroNumero = bigValor1.multiply(numeroCem);\r\n\r\n\t\tBigDecimal resultado = primeiroNumero.divide(bigValor2, 2, BigDecimal.ROUND_HALF_UP);\r\n\r\n\t\treturn (resultado + \"\");\r\n\t}", "public double percent(double firstNumber, double secondNumber) {\n\t\tdouble result = firstNumber*(secondNumber/100);\n\t\treturn result;\n\t}", "public static BigDecimal calcularPercentualBigDecimal(String valor1, String valor2) {\r\n\r\n\t\tBigDecimal bigValor1 = new BigDecimal(valor1);\r\n\t\tBigDecimal bigValor2 = new BigDecimal(valor2 != null ? valor2 : \"1\");\r\n\r\n\t\treturn calcularPercentualBigDecimal(bigValor1, bigValor2);\r\n\t}", "public void percentualGordura(){\n\n s0 = 4.95 / denscorp;\n s1 = s0 - 4.50;\n percentgord = s1 * 100;\n\n }", "public double percentage(double value) {\n return basicCalculation(value, 100, Operator.DIVIDE);\n }", "public double divisao (double numero1, double numero2){\n\t}", "public static double calculateValueInPercentage(double value) {\r\n return value * 0.01;\r\n }", "java.lang.String getPercentage();", "public static void main(String[] args) {\n \tdouble num1 = 7.15;\n \tdouble num2 = 10.0;\n\t\t// 创建一个数值格式化对象\n\t\tNumberFormat numberFormat = NumberFormat.getInstance();\n\t\tDecimalFormat decimalFormat = new DecimalFormat(\"#.00\");\n\t\t// 设置精确到小数点后2位\n\t\tnumberFormat.setMaximumFractionDigits(2);\n\t\tString result = numberFormat.format((num1 / num2 * 100));\n\t\tSystem.out.println(\"num1和num2的百分比为:\" + result + \"%\");\n\t\tSystem.out.println(\"num1和num2的百分比为:\" + decimalFormat.format(Double.valueOf(result)) + \"%\");\n\t}", "public BigDecimal getPercentageProfitPStd();", "public double permutasi(double num1, double num2){\n if (num1<num2||(num1<0&&num2<0)) {\n System.out.println(\"bilangan tidak benar\");\n return 0;\n }\n return faktorial(num1)/faktorial(num1-num2);\n }", "public Double getProgressPercent();", "public BigDecimal getPercentageProfitPLimit();", "private float getPercentage(int count, int total) {\n return ((float) count / total) * 100;\n }", "int getPercentageHeated();", "@Override\n\t\tpublic Double fazCalculo(Double num1, Double num2) {\n\t\t\treturn num1 / num2;\n\t\t}", "static int valDiv2 (){\n return val/2;\n }", "public static float div(int value1, int value2){\r\n return (float) value1 / value2;\r\n }", "@Override\n\tpublic int calculation(int a, int b) {\n\t\treturn b/a;\n\t}", "public static Object divide(Object val1, Object val2) {\n\n\t\tif (isFloat(val1)) {\n\t\t\tdouble doubleVal1 = ((BigDecimal) val1).doubleValue();\n\n\t\t\tif (isFloat(val2)) {\n\t\t\t\treturn new BigDecimal(doubleVal1\n\t\t\t\t\t\t/ ((BigDecimal) val2).doubleValue());\n\t\t\t} else if (isInt(val2)) {\n\t\t\t\treturn new BigDecimal(doubleVal1\n\t\t\t\t\t\t/ ((BigInteger) val2).intValue());\n\t\t\t}\n\n\t\t}\n\t\tif (isFloat(val2)) {\n\t\t\tdouble doubleVal2 = ((BigDecimal) val2).doubleValue();\n\n\t\t\tif (isFloat(val1)) {\n\t\t\t\treturn new BigDecimal(((BigDecimal) val1).doubleValue()\n\t\t\t\t\t\t/ doubleVal2);\n\t\t\t} else if (isInt(val1)) {\n\t\t\t\treturn new BigDecimal(((BigInteger) val1).intValue()\n\t\t\t\t\t\t/ doubleVal2);\n\t\t\t}\n\t\t}\n\t\tif (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).divide((BigInteger) val2);\n\t\t}\n\n\t\tthrow new OrccRuntimeException(\"type mismatch in divide\");\n\t}", "public static String calculaPercentual(double valor, double total) {\n\n\t\tDecimalFormat fmt = new DecimalFormat(\"0.00\");\n\n\t\ttry {\n\n\t\t\treturn fmt.format((valor * 100) / total);\n\t\t} \n\t\tcatch (Exception e) {\n\n\t\t\treturn \"0,00\";\n\t\t}\n\t}", "@Override\n\tpublic double percentualeGruppiCompletati () throws DAOException{\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tdouble numeroGruppiCompletati = 0.0;\n\t\ttry {\n\t\t\tconnection = DataSource.getInstance().getConnection();\n\t\t\tstatement = connection.prepareStatement(\"SELECT COUNT (GRUPPO.ID)*100/(SELECT COUNT(ID) FROM GRUPPO) FROM GRUPPO WHERE COMPLETO = 1 GROUP BY(GRUPPO.COMPLETO)\");\n\t\t\tresultSet = statement.executeQuery();\n\t\t\tif (resultSet.next()) {\n\t\t\t\tnumeroGruppiCompletati = BigDecimal.valueOf(resultSet.getDouble(1)).setScale(2, RoundingMode.HALF_UP).doubleValue();\n\t\t\t}\n\t\t} catch (SQLException | DAOException e) {\n\t\t\tthrow new DAOException(\"ERRORE percentualeGruppiCompletati utenteAdmin\" + e.getMessage(), e);\n\t\t} finally {\n\t\t\tDataSource.getInstance().close(resultSet);\n\t\t\tDataSource.getInstance().close(statement);\n\t\t\tDataSource.getInstance().close(connection);\n\t\t}\n\t\treturn numeroGruppiCompletati;\n\t}", "private static void computePercentage(int numberOfA[], int numberOfB[], int percentageOfB[]) {\n\t\tfor ( int i = 0; i < percentageOfB.length; i++ )\n\t\t\tpercentageOfB[i] = (int) Math.round( numberOfB[i] * 100.0 / ( numberOfB[i] + numberOfA[i] ));\n\t}", "private double calculatePercentProgress(BigDecimal projectId) {\r\n log.debug(\"calculatePercentProgress.START\");\r\n ModuleDao moduleDao = new ModuleDao();\r\n LanguageDao languageDao = new LanguageDao();\r\n List<Module> modules = moduleDao.getModuleByProject(projectId);\r\n double totalCurrentLoc = 0;\r\n double totalCurrentPage = 0;\r\n double totalCurrentTestCase = 0;\r\n double totalCurrentSheet = 0;\r\n\r\n double totalPlannedLoc = 0;\r\n double totalPlannedPage = 0;\r\n double totalPlannedTestCase = 0;\r\n double totalPlannedSheet = 0;\r\n for (int i = 0; i < modules.size(); i++) {\r\n Language language = languageDao.getLanguageById(modules.get(i).getPlannedSizeUnitId());\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.LOC.toUpperCase())) {\r\n totalCurrentLoc += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedLoc += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.TESTCASE.toUpperCase())) {\r\n totalCurrentTestCase += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedTestCase += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.PAGE_WORD.toUpperCase())) {\r\n totalCurrentPage += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedPage += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.SHEET_EXCEL.toUpperCase())) {\r\n totalCurrentSheet += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedSheet += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n\r\n }\r\n\r\n double percentProgress = ((totalCurrentLoc * Constant.LOC_WEIGHT)\r\n + (totalCurrentTestCase * Constant.TESTCASE_WEIGHT) + (totalCurrentPage * Constant.PAGE_WEIGHT) + (totalCurrentSheet * Constant.PAGE_WEIGHT))\r\n / ((totalPlannedLoc * Constant.LOC_WEIGHT) + (totalPlannedTestCase * Constant.TESTCASE_WEIGHT)\r\n + (totalPlannedPage * Constant.PAGE_WEIGHT) + (totalPlannedSheet * Constant.PAGE_WEIGHT)) * 100;\r\n\r\n return Math.round(percentProgress * 100.0) / 100.0;\r\n }", "private void percent()\n\t{\n\t\tDouble percent;\t\t//holds the right value percentage of the left value\n\t\tString newText = \"\";//Holds the updated text \n\t\tif(calc.getLeftValue ( ) != 0.0 && Fun != null)\n\t\t{\n\t\t\tsetRightValue();\n\t\t\tpercent = calc.getRightValue() * 0.01 * calc.getLeftValue();\n\t\t\tleftValue = calc.getLeftValue();\n\t\t\tnewText += leftValue;\n\t\t\tswitch (Fun)\n\t\t\t{\n\t\t\t\tcase ADD:\n\t\t\t\t\tnewText += \" + \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase SUBTRACT:\n\t\t\t\t\tnewText += \" - \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase DIVIDE:\n\t\t\t\t\tnewText += \" / \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase MULTIPLY:\n\t\t\t\t\tnewText += \" * \";\n\t\t\t\t\tbreak;\n\t\t\t}//end switch\n\t\t\t\n\t\t\tnewText += \" \" + percent;\n\t\t\tentry.setText(newText);\n\t\t\t\n\t\t}//end if\n\t\t\n\t}", "public Double retornaSubTotal(Double totalGeral,Double desconto){\n return totalGeral - (totalGeral*(desconto/100));\n}", "int getRemainderPercent();", "double updateValue(double value, double percentage){\n\t\treturn value+=(value*(.01*percentage));\r\n\t}", "public static int p_div(){\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"please put the first number that you want to divide:\");\n int v_div_number_1 = keyboard.nextInt();\n System.out.println(\"please put the second number that you want to divide:\");\n int v_div_number_2 = keyboard.nextInt();\n int v_total_div= v_div_number_1/v_div_number_2;\n return v_total_div;\n }", "public void MOD( ){\n String tipo1 = pilhaVerificacaoTipos.pop().toString();\n String tipo2 = pilhaVerificacaoTipos.pop().toString();\n String val1 = dads.pop().toString();\n float fresult = -1;\n String val2 = dads.pop().toString();\n if(val1 != null && val2 != null){\n if (tipo1 != null && tipo2 != null){\n if(tipo1 == \"inteiro\" && tipo2 == \"real\"){\n if(Float.parseFloat(val2) != 0){\n fresult = Integer.parseInt(val1) % Float.parseFloat(val2);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"real\" && tipo2 ==\"inteiro\"){\n if(Float.parseFloat(val1) != 0){\n fresult = Integer.parseInt(val2) % Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"real\" && tipo2 ==\"real\"){\n if(Float.parseFloat(val1) != 0){\n fresult = Float.parseFloat(val2) % Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"inteiro\" && tipo2 ==\"inteiro\"){\n if(Integer.parseInt(val1) != 0){\n fresult = Integer.parseInt(val2) % Integer.parseInt(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n return;\n }\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(1): essa instrução é válida apenas para valores inteiros ou reais.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(2): não foi possível executar a instrução, tipo null encontrado.\";\n numErrVM += 1;\n return;\n }\n }else {\n mensagensErrosVM += \"\\nRUNTIME ERROR(3): não foi possível executar a instrução, valor null encontrado.\";\n numErrVM += 1;\n return;\n }\n\n\n topo += -1;\n ponteiro += 1;\n }", "@Override\n\tpublic Double calcular(Produto produto) {\n\t\treturn (produto.getValorUnitario()) - (produto.getValorUnitario() * 0.25);\n\t}", "public double getValueAsPercentInPage(double fltValueAsPercentInTimeline) {\n double fltTimeLineRangeInRmsFrames = intPageAmount * intPageSizeInRmsFrames;\n double fltPageHorStartPositionInTimeline = ((pageValue.fltPageNum - 1) * intPageSizeInRmsFrames);\n double fltPageHorEndPositionInTimeline = (pageValue.fltPageNum * intPageSizeInRmsFrames);\n double fltItemPositionInTimeline = (fltValueAsPercentInTimeline/100.0f) * fltTimeLineRangeInRmsFrames;\n\n double fltValue = 0;\n if ((fltItemPositionInTimeline >= fltPageHorStartPositionInTimeline) && (fltItemPositionInTimeline <= fltPageHorEndPositionInTimeline)) {\n // Selected position is inside display page\n fltValue = ((fltItemPositionInTimeline - fltPageHorStartPositionInTimeline) * 100.0f)/intPageSizeInRmsFrames;\n } else if (fltItemPositionInTimeline < fltPageHorStartPositionInTimeline){\n // Selected position is outside on left of page\n fltValue = 0;\n } else if (fltItemPositionInTimeline > fltPageHorEndPositionInTimeline){\n // Selected position is outside on right of page\n fltValue = 100;\n }\n return fltValue;\n }", "public static float calculatePercent(float numOfSpecificTrees, float totalTrees){\n\t\tfloat percent= numOfSpecificTrees/totalTrees*100;\n\t\treturn percent;\n\t\t\n\t}", "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 static void promedio(int [] Grado1, int NNEstudent){\nint aux=0;\nfor(int i=0;i<NNEstudent;i++){\naux=Grado1[i]+aux;}\nint promedio;\npromedio=aux/NNEstudent;\nSystem.out.println(aux);\nSystem.out.println(\"el promedio de las edades es:\");\nSystem.out.println(promedio);\n}", "public int percent() {\n\t\tdouble meters = meters();\n\t\tif (meters < MIN_METERS) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn (int) (Math.pow((meters - MIN_METERS)\n\t\t\t\t/ (MAX_METERS - MIN_METERS) * Math.pow(100, CURVE),\n\t\t\t\t1.000d / CURVE));\n\t}", "void div(double val) {\r\n\t\tresult = result / val;\r\n\t}", "public float carga(){\n return (this.capacidade/this.tamanho);\n }", "public void increasePrice(int percentage);", "public double getPercentRem(){\n return ((double)freeSpace / (double)totalSpace) * 100d;\n }", "public double calculateHpPercent();", "private double computeDifferentialPCT(double currentValue, double average) {\n return average <= Double.MIN_VALUE ? 0.0 : (currentValue / average - 1) * 100.0;\n }", "@Override\r\n\tpublic double calculate() {\n\t\treturn n1 / n2;\r\n\t}", "double greenPercentage();", "static void diviser() throws IOException {\n\t Scanner clavier = new Scanner(System.in);\n\tdouble nb1, nb2, resultat;\n\tnb1 = lireNombreEntier();\n\tnb2 = lireNombreEntier();\n\tif (nb2 != 0) {\n\tresultat = nb1 / nb2;\n\tSystem.out.println(\"\\n\\t\" + nb1 + \" / \" + nb2 + \" = \" +\n\tresultat);\n\t} else\n\tSystem.out.println(\"\\n\\t le nombre 2 est nul, devision par 0 est impossible \");\n\t}", "private void calcularResultado() {\r\n\tdouble dinero=0;\r\n\tdinero=Double.parseDouble(pantalla.getText());\r\n\tresultado=dinero/18.5;\r\n\t\tpantalla.setText(\"\" + resultado);\r\n\t\toperacion = \"\";\r\n\t}", "public static double divide(double num1,double num2){\n\n // return num1/num2 ;\n\n if(num2==0){\n return 0 ;\n } else {\n return num1/num2 ;\n }\n }", "private double calcScorePercent() {\n\t\tdouble adjustedLab = totalPP * labWeight;\n\t\tdouble adjustedProj = totalPP * projWeight;\n\t\tdouble adjustedExam = totalPP * examWeight;\n\t\tdouble adjustedCodeLab = totalPP * codeLabWeight;\n\t\tdouble adjustedFinal = totalPP * finalWeight;\n\n\t\tlabScore = (labScore / labPP) * adjustedLab;\n\t\tprojScore = (projScore / projPP) * adjustedProj;\n\t\texamScore = (examScore / examPP) * adjustedExam;\n\t\tcodeLabScore = (codeLabScore / codeLabPP) * adjustedCodeLab;\n\t\tfinalExamScore = (finalExamScore / finalExamPP) * adjustedFinal;\n\n//\t\tdouble labPercent = labScore / adjustedLab;\n//\t\tdouble projPercent = projScore / adjustedProj;\n//\t\tdouble examPercent = examScore / adjustedExam;\n//\t\tdouble codeLabPercent = codeLabScore / adjustedCodeLab;\n//\t\tdouble finalPercent = finalExamScore / adjustedFinal;\n\n\t\tdouble totalPercent = (labScore + projScore + examScore + codeLabScore + finalExamScore) / totalPP;\n\t\t\n\t\tscorePercent = totalPercent;\n\t\t\n\t\treturn totalPercent;\n\t}", "double redPercentage();", "public double toPercent(double x){\n\t\treturn x/ 100;\n\t}", "@Override\n\tprotected double calcularImpuestoVehiculo() {\n\t\treturn this.getValor() * 0.003;\n\t}", "public double kombinasi(double num1, double num2){\n if (num1<num2||(num1<0&&num2<0)) {\n System.out.println(\"bilangan tidak benar\");\n return 0;\n }\n return permutasi(num1,num2)/faktorial(num2);\n }", "@Override\n\tpublic double percentualeUtentiAbilitati () throws DAOException{\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tdouble numeroUtenti = 0.0;\n\t\ttry {\n\t\t\tconnection = DataSource.getInstance().getConnection();\n\t\t\tstatement = connection.prepareStatement(\" SELECT COUNT (UTENTE.ID)*100/(SELECT COUNT(ID) FROM UTENTE) FROM UTENTE WHERE ABILITATO = 1 GROUP BY(UTENTE.ABILITATO) \");\n\t\t\tresultSet = statement.executeQuery();\n\t\t\tif (resultSet.next()) {\n\t\t\t\tnumeroUtenti = BigDecimal.valueOf(resultSet.getDouble(1)).setScale(2, RoundingMode.HALF_UP).doubleValue();\n\t\t\t}\n\t\t} catch (SQLException | DAOException e) {\n\t\t\tthrow new DAOException(\"ERRORE percentualeUtentiAbilitati utenteAdmin\" + e.getMessage(), e);\n\t\t} finally {\n\t\t\tDataSource.getInstance().close(resultSet);\n\t\t\tDataSource.getInstance().close(statement);\n\t\t\tDataSource.getInstance().close(connection);\n\t\t}\n\t\treturn numeroUtenti;\n\t}", "@SuppressLint(\"SetTextI18n\")\n @Override\n protected void onProgressUpdate(Integer... values) {\n\n //Le pasamos el parametro, es un array y esta en la posicion 0\n progressBar1.setProgress(values[0]);\n //Le sumamos 1 pork y 1mpieza en 0\n textView.setText(values[0]+1 + \" %\");\n }", "@Override\n\tpublic int div(int val1, int val2) throws ZeroDiv {\n\t\tif (val2 == 0){\n\t\t\tZeroDiv e = new ZeroDiv(\"probleme\");\n\t\t\tthrow e;\n\t\t}\n\t\telse\n\t\t\treturn val1/val2;\n\t}", "private float valOf(SeekBar bar) {\n return (float) bar.getProgress() / bar.getMax();\n }", "public static void main(String[] args) {\n\n\t\tint i = 80;\n\t\tint j = 20;\n\t\t\n\t\tdouble b = (double)(j)/(double)(i);\n\t\tdouble b_1 = b*100;\n\t\tSystem.out.println(b_1+\"%\");\n\t\t\n\t\tdouble b_2 = (double)(j)/(double)(i)*100;\n\t\tSystem.out.println(b_2+\"%\");\n\t\t\n\t\tdouble b_3 = (double)j/i;\n\t\tSystem.out.println(b_3);\n\t\tdouble b_4 =(double) b_3*100;\n\t\tSystem.out.println(b_4+\"%\");\n\t}", "private void peso(){\r\n if(getPeso()>80){\r\n precioBase+=100;\r\n }\r\n else if ((getPeso()<=79)&&(getPeso()>=50)){\r\n precioBase+=80;\r\n }\r\n else if ((getPeso()<=49)&&(getPeso()>=20)){\r\n precioBase+=50;\r\n }\r\n else if ((getPeso()<=19)&&(getPeso()>=0)){\r\n precioBase+=10;\r\n }\r\n }", "public void divide(MyDouble val) {\n this.setValue(this.getValue() / val.getValue());\n }", "public abstract float perimetro();", "public BigDecimal getPercentageProfitPList();", "public int division(){\r\n return Math.round(x/y);\r\n }", "public String percentageProgress(float goalSavings, float currGoalPrice) {\n float percentageProgress = (goalSavings / currGoalPrice) * 100;\n DecimalFormat df = new DecimalFormat(\"#.##\");\n df.setRoundingMode(RoundingMode.CEILING);\n return \"[\" + df.format(percentageProgress) + \"%]\";\n }", "@Override\n public double calculate(double input)\n {\n return input/getValue();\n }", "public void calcularEntropia(){\n //Verificamos si será con la misma probabilida o con probabilidad\n //especifica\n if(contadorEstados == 0){\n //Significa que será con la misma probabilidad por lo que nosotros\n //calcularemos las probabilidades individuales\n for(int i = 0; i < numEstados; i++){\n probabilidadEstados[i] = 1.0 / numEstados;\n }\n }\n for(int i = 0; i < numEstados; i++){\n double logEstado = Math.log10(probabilidadEstados[i]);\n logEstado = logEstado * (-1);\n double logDos = Math.log10(2);\n double divisionLog = logEstado / logDos;\n double entropiaTmp = probabilidadEstados[i] * divisionLog;\n resultado += entropiaTmp;\n }\n }", "public double getMainPercentage(){return mainPercentage;}", "public double ValorDePertenencia(double valor) {\n // Caso 1: al exterior del intervalo del conjunto difuo\n if (valor < min || valor > max || puntos.size() < 2) {\n return 0;\n }\n\n Punto2D ptAntes = puntos.get(0);\n Punto2D ptDespues = puntos.get(1);\n int index = 0;\n while (valor >= ptDespues.x) {\n index++;\n ptAntes = ptDespues;\n ptDespues = puntos.get(index);\n }\n\n if (ptAntes.x == valor) {\n // Tenemos un punto en este valor\n return ptAntes.y;\n } else {\n // Se aplica la interpolación\n return ((ptAntes.y - ptDespues.y) * (ptDespues.x - valor) / (ptDespues.x - ptAntes.x) + ptDespues.y);\n }\n }", "private double getPercent(int here, int days, int d, int end, double dest, int[][] villages) {\n if (days==d){\n// System.out.println(here+ \" \"+end);\n if (here==end) {\n// System.out.println(\"dest=\"+dest);\n return dest;\n }\n return 0;\n }\n double ans = 0;\n for (int next = 0; next < villages[here].length; next++) {\n int there = villages[here][next];\n if (there==1){\n// System.out.println(degree[here]+\" des=\"+(dest/degree[here]));\n ans += getPercent(next,days+1,d,end,dest/degree[here],villages);\n }\n }\n return ans;\n }", "@FloatRange(from = 0, to = 1) float getProgress();", "public Double getProm(ArrayList<Evaluations> evaluations, int periods) {\n Double total = 0.0;\n Double sum = 0.0;\n ArrayList<Double> grades = new ArrayList<>();\n Double percentage = 0.0;\n for (int e = 0; e < evaluations.size(); e++) {\n if (Integer.parseInt(evaluations.get(e).getPeriods()) == periods) {\n percentage += Double.parseDouble(evaluations.get(e).getPercentage());\n }\n }\n Log.e(\"Porcentage\", String.valueOf(percentage));\n if (percentage == 100) {\n for (int i = 0; i < evaluations.size(); i++) {\n Double eva1 = 0.0;\n if (Integer.parseInt(evaluations.get(i).getPeriods()) == periods) {\n eva1 = Double.parseDouble(evaluations.get(i).getEvaluations()) * Double.parseDouble(evaluations.get(i).getPercentage()) / 100;\n Log.e(\"Nota\", String.valueOf(eva1));\n grades.add(eva1);\n }\n\n }\n for (Double grade : grades) {\n sum += grade;\n }\n\n total = sum;\n }\n\n return total;\n }", "public Comissioning withPercentValue(final String valor) {\n\t\tthis.percentValue = valor;\n\t\treturn this;\n\t}", "private static void displayProgression(int progressionType, double firstElement,\n double commonDifOrRatio, int memberCount) {\n if (progressionType == 0) {\n System.out.print(\"\\nArithmetic progression:\");\n printIntOrDouble(firstElement);\n for (int i = 2; i <= memberCount; i++) {\n double curElement = firstElement + commonDifOrRatio * (i - 1);\n printIntOrDouble(curElement);\n }\n } else if (progressionType == 1) {\n System.out.print(\"\\nGeometric progression:\");\n printIntOrDouble(firstElement);\n double curElement = firstElement;\n for (int i = 2; i <= memberCount; i++) {\n curElement *= commonDifOrRatio;\n printIntOrDouble(curElement);\n }\n }\n }", "@Override\n public double getResult(Map<String, Double> values) {\n List<Node> nodes = getChildNodes();\n double result = nodes.get(0).getResult(values);\n if (nodes.size() > 1) {\n for (int i = 1; i < nodes.size(); i++) {\n result = result / nodes.get(i).getResult(values);\n }\n }\n return result;\n }", "public float getPercentage(int n, int total) {\n\n float proportion = ((float) n) / ((float) total);\n\n return proportion * 100;\n }", "public void modulo(MyDouble val) {\n this.setValue(this.getValue() % val.getValue());\n }", "public double periculosidade(double salario) {\n\t\t\tsalario = salario * 0.3;\r\n\t\t\t// atribui o valor de 30% ao salario e somando eles.\r\n\t\t\t// salarioTotal = salario + salarioTotal;\r\n\r\n\t\t\treturn salario; // So atribuir esse valor no salario\r\n\t\t\r\n\t}", "public double Dividir(double operador_1, double operador_2){\n return DivisionC(operador_1, operador_2);\n }", "public static Percentage calculate(double num, double den) throws IllegalArgumentException {\n if (num * den < 0) {\n throw new IllegalArgumentException(\"Numerator and denominator must have same sign\");\n } else {\n return new Percentage((int) Math.round(num / den * 100));\n }\n }", "@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}", "@Test\n void totalPercentageOneProduct() {\n allProducts.add(new Product(null, 1, \"productTest\", 10.0, null, null, null,null));\n allOrderLines.add(new OrderLine(new Product(1), null, 2, 10.0));\n\n ArrayList<ProductIncome> productIncomes = productBusiness.computeProductsIncome(allProducts, allOrderLines);\n productIncomes.get(0).calculPercentage();\n assertEquals(100.0, productIncomes.get(0).getPercentage(), 0);\n }", "public static int percent(int nom, int den) {\r\n\t\treturn (int) Math.round(100 * ((double) nom / den));\r\n\t}", "@Test\n public void testDivisao() {\n System.out.println(\"divisao\");\n float num1 = 0;\n float num2 = 0;\n float expResult = 0;\n float result = Calculadora_teste.divisao(num1, num2);\n assertEquals(expResult, result, 0);\n }", "public T div(T first, T second);", "@Override\n\tpublic double divide(double a, double b) {\n\t\treturn (a/b);\n\t}", "public void generatePercentage(Breakdown breakdown, double total) {\n\n ArrayList<HashMap<String, Breakdown>> list1 = breakdown.getBreakdown();\n for (HashMap<String, Breakdown> map : list1) {\n\n int count = Integer.parseInt(map.get(\"count\").getMessage());\n int percent = (int) Math.round((count * 100) / total);\n map.put(\"percent\", new Breakdown(\"\" + percent));\n\n }\n\n }", "public int getPercentage() {\r\n return Percentage;\r\n }", "public static void main(String[] args) {\n\n String result = NumberFormat.getPercentInstance().format(0.1);// method chaining\n System.out.println(result);\n }", "private double fillPercent() {\n\t\tdouble percent = 0;\n\t\t\n\t\tfor (LinkedList<WordCode<K, V>> ll : myBuckets) {\n\t\t\tif (ll.size() != 0) percent++;\n\t\t}\n\t\treturn (percent / myBuckets.size()) * 100;\n\t}", "public static void main(String[] args) {\n\n int div, num1 = 50, num2 = 3;\n div = num1/num2;\n System.out.println(\"Total \" + div );\n\n }", "private float calculateTip( float amount, int percent, int totalPeople ) {\n\t\tfloat result = (float) ((amount * (percent / 100.0 )) / totalPeople);\n\t\treturn result;\n\t}", "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 }", "private void calculateEachDivision(int division) {\n DataController.setCurrentDivisionForWriting(division);\r\n percentageSlid = (division / (float) DIVISIONS_OF_VALUE_SLIDER);\r\n newCurrentValue = minValueNumeric + (percentageSlid * deltaValueNumeric);\r\n dataController.setValueAsFloat(currentSliderKey, newCurrentValue);\r\n CalculatedVariables.crunchCalculation();\r\n }", "public float calcularPerimetro(){\n return baseMayor+baseMenor+(medidaLado*2);\n }", "public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }", "int div(int num1, int num2) {\n\t\treturn num1/num2;\n\t}", "public double getVentureChecklistPercent(Member member1) {\n\t\tdouble mapSubclassCount;\r\n\t\tdouble mySubclassCount;\r\n\t\tdouble percentCount;\r\n\t\tSl1 = \"SELECT COUNT(*) AS count FROM map_subclass WHERE mapClassID=?\";\r\n\t\ttry {\r\n\t\t\tconn = dataSource.getConnection();\r\n\t\t\tsmt = conn.prepareStatement(Sl1);\r\n\t\t\tsmt.setString(1, member1.getSetPercent());\r\n\t\t\tSystem.out.println(\"getSetPercent()=\"+member1.getSetPercent());\r\n\t\t\trs1 = smt.executeQuery();\r\n\t\t\tif(rs1.next()){\t\r\n\t\t\t\tmapSubclassCount=rs1.getInt(\"count\");\r\n\t\t\t\tSystem.out.println(\"mapSubclassCount=\"+mapSubclassCount);\t\t\t\t\r\n\t\t\t\tSl2 = \"SELECT COUNT(*) AS count FROM venture_checklist WHERE mapClassID=? AND memberAccount =? \";\r\n\t\t\t\tsmt = conn.prepareStatement(Sl2);\r\n\t\t\t\tsmt.setString(1, member1.getSetPercent());\r\n\t\t\t\tsmt.setString(2, member1.getAccount());\r\n\t\t\t\trs2 = smt.executeQuery();\r\n\t\t\t\tif(rs2.next()){\t\r\n\t\t\t\t\tmySubclassCount=rs2.getInt(\"count\");\r\n\t\t\t\t\t//System.out.println(\"mySubclassCount=\"+mySubclassCount);\t\r\n\t\t\t\t\tpercentCount = mySubclassCount/mapSubclassCount;\r\n\t\t\t\t\t//System.out.println(\"percentCount=\"+(mySubclassCount/mapSubclassCount));\r\n\t\t\t\t\treturn percentCount;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsmt.executeQuery();\r\n\t\t\trs1.close();\r\n\t\t\trs2.close();\r\n\t\t\tsmt.close();\r\n \r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n \r\n\t\t} finally {\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException e) {}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public void onclickpercent(View v){\n Button b = (Button) v;\n String temp;\n double t;\n String y;\n displayscreen = screen.getText().toString();\n displayscreen2 = screen2.getText().toString();\n if (displayscreen.equals(\"\") && displayscreen2.equals(\"\")) //handle if display is empty\n return;\n else if (displayscreen.equals(\"\") && !displayscreen2.equals(\"\")) {\n temp = screen2.getText().toString();\n if (temp.contains(\"+\") || temp.contains(\"-\") || temp.contains(\"x\") || temp.contains(\"÷\")){ //handle if user inserts only operators\n return;}\n t = Double.valueOf(temp) /100.0;\n y=df2.format(t);\n screen.setText(y);\n String z=\"%\";\n screen2.setText(temp+z);\n }\n else\n {\n temp = screen.getText().toString();\n t = Double.valueOf(temp) /100.0;\n y=df2.format(t);\n screen.setText(y);\n String z=\"%\";\n screen2.setText(temp+z);\n }\n }", "public int division(int a, int b) {\n return a / b;\n }", "double getPerimetro();", "public void setPercentageProfitPStd (BigDecimal PercentageProfitPStd);" ]
[ "0.82575774", "0.6991314", "0.6926363", "0.6691163", "0.65979844", "0.6544814", "0.64800525", "0.64359903", "0.6411789", "0.6336947", "0.63312274", "0.6308069", "0.62571126", "0.622041", "0.6216145", "0.620044", "0.61746186", "0.617035", "0.6148911", "0.6133718", "0.6116195", "0.60970664", "0.6085996", "0.6074911", "0.6053147", "0.60491663", "0.6033372", "0.6012313", "0.5996218", "0.5992109", "0.5959501", "0.5940426", "0.5938276", "0.5932059", "0.59121686", "0.58957446", "0.5886149", "0.5881541", "0.5872164", "0.58588535", "0.5815056", "0.5808843", "0.5793944", "0.57735336", "0.5772371", "0.5771603", "0.57666934", "0.5759166", "0.57454085", "0.57355595", "0.5724764", "0.5721351", "0.57212704", "0.57208085", "0.5716158", "0.57154965", "0.57121027", "0.57105654", "0.57068735", "0.5705133", "0.568628", "0.56714773", "0.5658207", "0.56464773", "0.56346935", "0.5631395", "0.56281567", "0.5627539", "0.5620719", "0.5613975", "0.56100005", "0.5606724", "0.5600696", "0.5591653", "0.55850476", "0.558383", "0.5583772", "0.5583736", "0.55740094", "0.55726796", "0.55715024", "0.5569632", "0.55634266", "0.5559587", "0.55456203", "0.55433065", "0.55380243", "0.55375713", "0.55293393", "0.55254215", "0.5517235", "0.5501265", "0.5499017", "0.549104", "0.5489069", "0.5483206", "0.54806894", "0.5476715", "0.546813", "0.5459132" ]
0.69421554
2
Retorna uma hora no formato HH:MM a partir de um objeto Date
public static String formatarHoraSemSegundos(Date data) { StringBuffer dataBD = new StringBuffer(); if (data != null) { Calendar dataCalendar = new GregorianCalendar(); dataCalendar.setTime(data); if (dataCalendar.get(Calendar.HOUR_OF_DAY) > 9) { dataBD.append(dataCalendar.get(Calendar.HOUR_OF_DAY)); } else { dataBD.append("0" + dataCalendar.get(Calendar.HOUR_OF_DAY)); } dataBD.append(":"); if (dataCalendar.get(Calendar.MINUTE) > 9) { dataBD.append(dataCalendar.get(Calendar.MINUTE)); } else { dataBD.append("0" + dataCalendar.get(Calendar.MINUTE)); } } return dataBD.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String retornaHora(){\n\t\tCalendar calendar = new GregorianCalendar();\n\t\tSimpleDateFormat hora = new SimpleDateFormat(\"HH\");\n\t\tSimpleDateFormat minuto = new SimpleDateFormat(\"mm\");\n\t\tDate date = new Date();\n\t\tcalendar.setTime(date);\n\t\treturn hora.format(calendar.getTime()) + \"h\" + minuto.format(calendar.getTime());\n\t}", "public String getHora() {\n Calendar calendario = new GregorianCalendar();\n SimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n return sdf.format(calendario.getTime());\n }", "public String dar_hora(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n return dateFormat.format(date).toString();\n }", "public static String getHHMM()\r\n/* 74: */ {\r\n/* 75: 94 */ String nowTime = \"\";\r\n/* 76: 95 */ Date now = new Date();\r\n/* 77: 96 */ SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm\");\r\n/* 78: 97 */ nowTime = formatter.format(now);\r\n/* 79: 98 */ return nowTime;\r\n/* 80: */ }", "public static SimpleDateFormat getHourFormat() {\n return new SimpleDateFormat(\"HH:mm\");\n }", "public String getHoraInicial(){\r\n return fechaInicial.get(Calendar.HOUR_OF_DAY)+\":\"+fechaInicial.get(Calendar.MINUTE);\r\n }", "public String getTimeString() {\n DateFormat format = new SimpleDateFormat(\"HH:mm\");\n return format.format(mDate);\n }", "public static String getNowTimeHHMM() {\n\t\tSimpleDateFormat timeFormat = new SimpleDateFormat(\"HH:mm\");\n\t\treturn timeFormat.format(new Date());\n\t}", "private String getDate() {\n\t\tSimpleDateFormat parseFormat = new SimpleDateFormat(\"hh:mm a\");\n\t\tDate date = new Date();\n\t\tString s = parseFormat.format(date);\n\t\treturn s;\n\t}", "public void mostrarHora(String formato){\n Date objDate = new Date();\n SimpleDateFormat objSDF = new SimpleDateFormat(formato);\n //este sera el resultado de la fechas\n fecha=objSDF.format(objDate);\n }", "public String getHoraFinal(){\r\n return fechaFinal.get(Calendar.HOUR_OF_DAY)+\":\"+fechaFinal.get(Calendar.MINUTE);\r\n }", "public static String ShowDate(){\n Date date = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss.SS a\");\n String HH_MM = sdf.format(date);\n return HH_MM;\n }", "public String getCurrentTimeHourMin() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH:mm\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "public static String longToHHMM(long longTime)\r\n/* 150: */ {\r\n/* 151:219 */ SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm\");\r\n/* 152:220 */ Date strtodate = new Date(longTime);\r\n/* 153:221 */ return formatter.format(strtodate);\r\n/* 154: */ }", "public static Date convert_string_time_into_original_time(String hhmmaa) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"HH:mm aa\");\n Date convertedDate = new Date();\n try {\n convertedDate = dateFormat.parse(hhmmaa);\n } catch (ParseException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return convertedDate;\n }", "@RequiresApi(api = Build.VERSION_CODES.O)\n public String obtenerHora(){\n this.hora = java.time.LocalDateTime.now().toString().substring(11,13);\n return this.hora;\n }", "public String getTime(DateTime date) {\n DateTimeFormatter time = DateTimeFormat.forPattern(\"hh:mm a\");\n return date.toString(time);\n }", "public String getTime() {\n boolean pastNoon = hour >= 12;\n if(pastNoon && hour == 12) {\n return hour + \"pm\";\n }\n else if(pastNoon) {\n return (hour - 12) + \"pm\";\n }\n else if(hour == 0) {\n return \"12am\";\n }\n else {\n return hour + \"am\";\n }\n }", "public String calculateHour() {\n\t\tString hora;\n\t\tString min;\n\t\tString seg;\n\t\tString message;\n\t\tCalendar calendario = new GregorianCalendar();\n\t\tDate horaActual = new Date();\n\t\tcalendario.setTime(horaActual);\n\n\t\thora = calendario.get(Calendar.HOUR_OF_DAY) > 9 ? \"\" + calendario.get(Calendar.HOUR_OF_DAY)\n\t\t\t\t: \"0\" + calendario.get(Calendar.HOUR_OF_DAY);\n\t\tmin = calendario.get(Calendar.MINUTE) > 9 ? \"\" + calendario.get(Calendar.MINUTE)\n\t\t\t\t: \"0\" + calendario.get(Calendar.MINUTE);\n\t\tseg = calendario.get(Calendar.SECOND) > 9 ? \"\" + calendario.get(Calendar.SECOND)\n\t\t\t\t: \"0\" + calendario.get(Calendar.SECOND);\n\n\t\tmessage = hora + \":\" + min + \":\" + seg;\n\t\treturn message;\n\n\t}", "public String getCurrentDateTimeHourMin() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "private String formatTime(Date dateObject) {\r\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"h:mm a\");\r\n return timeFormat.format(dateObject);\r\n }", "private String formatTime(Date dateObject) {\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"h:mm a\", Locale.getDefault());\n return timeFormat.format(dateObject);\n }", "private String formatTime(Date dateObject) {\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat timeFormat = new SimpleDateFormat(\"h:mm a\");\n return timeFormat.format(dateObject);\n }", "private String formatTime(Date dateObject)\n {\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"h:mm a\");\n timeFormat.setTimeZone(Calendar.getInstance().getTimeZone());\n return timeFormat.format(dateObject);\n }", "public String getTimeAndDate() {\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd MMM hh:mm\");\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tString dateAndTime = dateFormat.format(cal.getTime());\n\t\t\treturn dateAndTime;\n\t\t}", "public String[] getHora()\r\n\t{\r\n\t\treturn this.reloj.getFormatTime();\r\n\t}", "public String getCurrentTimeHourMinSec() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "public String getTime(){\n String mt=\"\";\n String hr=\"\";\n if(minute<10){\n mt=0+(String.valueOf(minute));\n }\n\n else{\n mt=String.valueOf(minute);\n }\n\n if(hour<10){\n hr=0+(String.valueOf(hour));\n }\n else{\n hr=String.valueOf(hour);\n }\n //return hour:minute\n return (hr+\":\"+mt);\n }", "public static String getHoraMinutoSegundoTimestamp(Timestamp timestamp) {\r\n\t\tLong time = timestamp.getTime();\r\n\r\n\t\tString retorno = new SimpleDateFormat(\"HH:mm:ss\", new Locale(\"pt\", \"BR\")).format(new Date(time));\r\n\r\n\t\treturn retorno;\r\n\t}", "@Override\r\n\tpublic int getHH() {\n\t\treturn HH;\r\n\t}", "public String getCurrentDateTimeHourMinSec() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "public HiResDate getTime();", "public String getCurrentHours() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "public String getTime()\n {\n SimpleDateFormat newDateFormat = new SimpleDateFormat(\"HH:mm\");\n String MySDate = newDateFormat.format(this.dueDate);\n return MySDate;\n }", "DateTime getTime();", "public String convertDateToTime(String date){\n Date test = null;\n if(date !=null) {\n try {\n test = sdf.parse(date);\n } catch (ParseException e) {\n System.out.println(\"Parse not working: \" + e);\n }\n calendar.setTime(test);\n return String.format(\"%02d:%02d\",\n calendar.get(Calendar.HOUR_OF_DAY),\n calendar.get(Calendar.MINUTE)\n );\n }\n return \"n\";\n }", "public LocalTime getHora() {\n\t\treturn hora;\n\t}", "private String formatTime(String dateObject){\n\n SimpleDateFormat input = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\"); // format kita \"HARUS SAMA TIDAK BOLEH FORMATNYA BEDA BAHKAN 1 CHAR PUN\n SimpleDateFormat output= new SimpleDateFormat(\"h:mm a\");\n Date jam = null;\n try {\n jam = input.parse(dateObject);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return output.format(jam);\n }", "public int getHora(){\n return minutosStamina;\n }", "public static String getTime()\n {\n Date time = new Date();\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"HH:mm:ss\");\n return timeFormat.format(time);\n }", "Integer getStartHour();", "public long getHoraEnMilis() {\n Calendar calendario = new GregorianCalendar();\n return calendario.getTimeInMillis();\n }", "public String getDateHourRepresentation()\n\t{\n\t\tchar[] charArr = new char[13];\n\t\tcharArr[2] = charArr[5] = charArr[10] = '/';\n\t\tint day = m_day;\n\t\tint month = m_month;\n\t\tint year = m_year;\n\t\tint hour = m_hour;\n\t\tfor(int i = 0; i < 2; i++)\n\t\t{\n\t\t\tcharArr[1 - i] = Character.forDigit(day % 10, 10);\n\t\t\tcharArr[4 - i] = Character.forDigit(month % 10, 10);\n\t\t\tcharArr[12 - i] = Character.forDigit(hour % 10, 10);\n\t\t\tday /= 10;\n\t\t\tmonth /= 10;\n\t\t\thour /=10;\n \t\t}\n\t\tfor(int i = 0; i < 4; i++)\n\t\t{\n\t\t\tcharArr[9 - i] = Character.forDigit(year % 10, 10);\n\t\t\tyear /= 10;\n\t\t}\n\t\treturn new String(charArr);\n\t}", "public static String getHoraUtilDate(java.util.Date date){\n\t\tif(date==null)\n\t\t\treturn \"\";\n\t\tString strDate=\"\";\n\t\tif(getHora(date)<10)\n\t\t\tstrDate+=\"0\"+getHora(date);\n\t\telse\n\t\t\tstrDate+=getHora(date);\n\t\tif(getMinutos(date)<10)\n\t\t\tstrDate+=\":\"+\"0\"+(getMinutos(date));\n\t\telse\n\t\t\tstrDate+=\":\"+getMinutos(date);\n\t\treturn strDate;\n\t}", "private static String timeFor(Date date)\n\t{\n\t\tDateFormat df = new InternetDateFormat();\n\t\tString theTime = df.format(date);\n\t\treturn theTime;\n\t}", "public static String toHH_MM(String draftDate) {\r\n\t\tif (draftDate == null || draftDate.length() < 19) {\r\n\t\t\treturn draftDate;\r\n\t\t}\r\n\t\treturn draftDate.substring(11, 16);\r\n\t}", "public int getHour() {\n return dateTime.getHour();\n }", "public static String getHHMM(String time)\r\n\t{\r\n\t\tString finalTime = \"00/00 AM/PM\";\r\n\t\tString hh = time.substring(0, 2);\r\n\t\tString mm = time.substring(3, 5);\r\n\r\n\t\tint newHH = Integer.parseInt(hh);\r\n\t\tint newMM = Integer.parseInt(mm);\r\n\r\n\t\tnewMM = newMM % 60;\r\n\r\n\t\tif (newHH == 0)\r\n\t\t{\r\n\t\t\tfinalTime = \"12:\" + newMM + \" PM\";\r\n\t\t} else\r\n\t\t{\r\n\r\n\t\t\tif (newHH > 12)\r\n\t\t\t{\r\n\t\t\t\tnewHH = newHH % 12;\r\n\t\t\t\tfinalTime = newHH + \":\" + newMM + \" PM\";\r\n\t\t\t} else\r\n\t\t\t\tfinalTime = newHH + \":\" + newMM + \" AM\";\r\n\t\t}\r\n\r\n\t\tString HH = finalTime.substring(0, finalTime.indexOf(\":\"));\r\n\t\tString MM = finalTime.substring(finalTime.indexOf(\":\") + 1, finalTime\r\n\t\t\t\t.indexOf(\" \"));\r\n\t\tString AMPM = finalTime.substring(finalTime.indexOf(\" \"), finalTime\r\n\t\t\t\t.length());\r\n\r\n\t\tif (MM.length() == 1)\r\n\t\t\tMM = \"0\" + MM;\r\n\r\n\t\tfinalTime = HH + \":\" + MM /*+ \" \" */+ AMPM;\r\n\r\n\t\treturn (finalTime);\r\n\t}", "public String getTime() {\n String pattern = \"yyyy-MM-dd HH:mm:ss\";\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n\n String date = simpleDateFormat.format(new Date());\n return date;\n }", "public String getTimeString() {\n int hour = date.get(Calendar.HOUR);\n int minute = date.get(Calendar.MINUTE);\n\n String AM_PM = \"PM\";\n if (date.get(Calendar.AM_PM) == Calendar.AM) AM_PM = \"AM\";\n\n String hour_fixed = String.valueOf(hour);\n if (hour == 0) hour_fixed = \"12\";\n\n String minute_fixed = String.valueOf(minute);\n while (minute_fixed.length() < 2) {\n minute_fixed = \"0\" + minute_fixed;\n }\n\n return hour_fixed + \":\" + minute_fixed + ' ' + AM_PM;\n }", "public String getTime() {\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tString time = dateFormat.format(cal.getTime());\n\t\t\treturn time;\n\t\t}", "public static long convertToHours(long time) {\n return time / 3600000;\n }", "Integer getHour();", "private LocalDateTime getStartHour() {\n\t\treturn MoneroHourly.toLocalDateTime(startTimestamp);\r\n\t}", "public static long toTime(String sHora) throws Exception {\n\n if (sHora.indexOf(\"-\") > -1) {\n sHora = sHora.replace(\"-\", \"\");\n }\n\n final SimpleDateFormat simpleDate = new SimpleDateFormat(CalendarParams.FORMATDATEENGFULL, getLocale(CalendarParams.LOCALE_EN));\n final SimpleDateFormat simpleDateAux = new SimpleDateFormat(CalendarParams.FORMATDATEEN, getLocale(CalendarParams.LOCALE_EN));\n\n final StringBuffer dateGerada = new StringBuffer();\n try {\n dateGerada.append(simpleDateAux.format(new Date()));\n dateGerada.append(' ');\n\n dateGerada.append(sHora);\n\n if (sHora.length() == 5) {\n dateGerada.append(\":00\");\n }\n\n return simpleDate.parse(dateGerada.toString()).getTime();\n } catch (ParseException e) {\n throw new Exception(\"Erro ao Converter Time\", e);\n }\n }", "public String getTime(){\r\n\t\tDate date = new GregorianCalendar().getTime();\r\n\r\n\t\tString time= new SimpleDateFormat(\"HH:mm:ss\").format(date.getTime());\r\n\t\t\r\n\t\treturn time;\r\n\t}", "public String getTime() {\n return String.format(\"%02d\", hours) + \":\" + String.format(\"%02d\", minutes);\n }", "public static int getHourOfTime(long time){\n \t//time-=59999;\n \tint retHour=0;\n \tlong edittime=time;\n \twhile (edittime>=60*60*1000){\n \t\tedittime=edittime-60*60*1000;\n \t\tretHour++;\n \t}\n \tretHour = retHour % 12;\n \tif (retHour==0){ retHour=12; }\n \treturn retHour;\n }", "public static String hourOfBetween(final String sFormaTime, final String horaInicial, final String horaFinal,\n final Locale locale) throws Exception {\n final SimpleDateFormat sdf = new SimpleDateFormat(sFormaTime, locale == null ? getLocale(CalendarParams.LOCALE_PT) : locale);\n Date datEntrada;\n Date datSaida;\n final StringBuffer returnHora = new StringBuffer();\n\n try {\n datEntrada = sdf.parse(horaInicial);\n datSaida = sdf.parse(horaFinal);\n\n final long diferencaHoras = (datSaida.getTime() - datEntrada.getTime()) / (1000 * 60 * 60);\n final long diferencaMinutos = (datSaida.getTime() - datEntrada.getTime()) / (1000 * 60);\n final long diferencaSeg = (datSaida.getTime() - datEntrada.getTime()) / (1000);\n\n long difHoraMin = diferencaMinutos % 60;\n long diferencaSegundos = diferencaSeg % 60;\n\n if (difHoraMin < 0 || diferencaSegundos < 0) {\n returnHora.append('-');\n difHoraMin = difHoraMin * -1;\n diferencaSegundos = diferencaSegundos * -1;\n }\n\n if (diferencaHoras <= 9) {\n returnHora.append('0');\n returnHora.append(diferencaHoras);\n } else {\n returnHora.append(String.valueOf(diferencaHoras));\n }\n\n returnHora.append(':');\n\n if (difHoraMin <= 9) {\n returnHora.append('0');\n returnHora.append(String.valueOf(difHoraMin));\n } else {\n returnHora.append(String.valueOf(difHoraMin));\n }\n\n returnHora.append(':');\n\n if (diferencaSegundos <= 9) {\n returnHora.append('0');\n returnHora.append(String.valueOf(diferencaSegundos));\n } else {\n returnHora.append(String.valueOf(diferencaSegundos));\n }\n\n } catch (ParseException e) {\n throw new Exception(\"Erro na Conversao das datas: \", e);\n }\n\n return returnHora.toString();\n\n }", "public static String toHHmmFromScheduleTime(ScheduleTime scheduleTime) {\n if (null != scheduleTime) {\n return toHHmm(scheduleTime.getStartTime());\n }\n return \"\";\n }", "public static String getYYYYMMDDHHMMSS()\r\n/* 56: */ {\r\n/* 57: 68 */ String nowTime = \"\";\r\n/* 58: 69 */ Date now = new Date();\r\n/* 59: 70 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMddHHmmss\");\r\n/* 60: 71 */ nowTime = formatter.format(now);\r\n/* 61: 72 */ return nowTime;\r\n/* 62: */ }", "public static String toHHmm(LocalTime localTime) {\n if (null != localTime) {\n return localTime.format(DateTimeFormatter.ofPattern(Constant.HH_MM));\n }\n return \"\";\n }", "public long getElapsedTimeHour() {\n return running ? ((((System.currentTimeMillis() - startTime) / 1000) / 60 ) / 60) : 0;\n }", "Time getTime();", "public String getFormatedTime() {\n DateFormat displayFormat = new SimpleDateFormat(\"HH:mm\", Locale.GERMAN);\n return displayFormat.format(mEvent.getTime());\n }", "public String formatoCortoDeFecha(Date fecha){\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n return format.format(fecha);\n }", "public String formatTime(Date date) {\n String result = \"\";\n if (date != null) {\n result = DateUtility.simpleFormat(date, MEDIUM_TIME_FORMAT);\n }\n return result;\n }", "public static String getDateAndTime() {\n Calendar JCalendar = Calendar.getInstance();\n String JMonth = JCalendar.getDisplayName(Calendar.MONTH, Calendar.SHORT, Locale.UK);\n String JDate = JCalendar.getDisplayName(Calendar.DATE, Calendar.LONG, Locale.UK);\n String JHour = JCalendar.getDisplayName(Calendar.HOUR, Calendar.LONG, Locale.UK);\n String JSec = JCalendar.getDisplayName(Calendar.SECOND, Calendar.LONG, Locale.UK);\n\n return JDate + \"th \" + JMonth + \"/\" + JHour + \".\" + JSec + \"/24hours\";\n }", "private String getDate()\r\n\t{\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\r\n\t\treturn sdf.format(cal.getTime());\r\n\t}", "static long getHoursPart(Duration d) {\n long u = (d.getSeconds() / 60 / 60) % 24;\n\n return u;\n }", "public MyTime previouseHour(){\n\t\tint second = getSeconds();\n\t\tint minute = getMinute();\n\t\tint hour = getHours();\n\n\t\tif (hour == 0){\n\t\t\thour = 23;\n\t\t}\n\t\telse{\n\t\t\thour--;\n\t\t}\n\n\n\t\treturn new MyTime(hour,minute,second);\n\t}", "public String getHours();", "public int getHour() {\n\t\tthis.hour = this.total % 12;\n\t\treturn this.hour;\n\t}", "public int getHoursOfCurrentTime() {\n SimpleDateFormat formatter = new SimpleDateFormat(\"HH\", Locale.getDefault());\n Date curTime = new Date(System.currentTimeMillis());\n return Integer.parseInt(formatter.format(curTime));\n }", "private String extractHourMinute(String dateTime)\n {\n String[] aux = dateTime.split(\"T\");\n String[] auxTime = aux[1].split(\":\");\n\n return auxTime[0] + \":\" + auxTime[1];\n }", "public int getStartHour() {\n\treturn start.getHour();\n }", "public static Date parseHourMinute(String formattedTime) {\n\t\treturn parseDate(formattedTime, HOUR_MINUTE_FORMAT);\n\t}", "private Calendar modificarHoraReserva(Date horaInicio, int hora) {\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(horaInicio);\n calendar.set(Calendar.HOUR, hora);\n calendar.set(Calendar.MINUTE, 0);\n calendar.set(Calendar.MINUTE, 0);\n return calendar;\n }", "public static String getDisplayTimeFormat(Date val) {\n\n\t\tif (val != null) {\n\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"hh:mm a\");\n\t\t\treturn \"\" + format.format(val);\n\n\t\t} else {\n\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "private String unixToHHMMSS(String unixTime){\r\n\t\tlong unixSeconds = Long.parseLong(unixTime);\r\n\t\tDate date = new Date(unixSeconds*1000L); // convert seconds to milliseconds\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\"); // date format\r\n\r\n\t\tString formattedDate = sdf.format(date);\r\n\t\treturn formattedDate;\r\n\t}", "public static String TimeFormate() {\n\t\tString time;\n\t\tSimpleDateFormat dateFormat1 = new SimpleDateFormat();\n\t dateFormat1.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t Calendar cal = Calendar.getInstance();\n\t cal.add(Calendar.MINUTE, 3);\n String n=dateFormat1.format(cal.getTime());\n //n=\"03/09/20 8:30 AM\";\n System.out.println(\"Full Date = \" +n);\n int colonindex=n.indexOf(\":\");\n //System.out.println(\": placed= \" +colonindex);\n //String tt =n.substring(colonindex, n.length());\n //System.out.println(\"tt= \" +tt);\n String tt1 =n.substring(colonindex-2,colonindex-1);\n System.out.println(\"tt1= \" +tt1);\n if(tt1.equals(\"1\")) {\n \t time=n.substring(colonindex-2, n.length());\n \t System.out.println(\"Time with two digits in hours= \" +time);\n }\n else {\n \t time=n.substring(colonindex-1, n.length());\n \t System.out.println(\"Time with one digit in hours= \" +time);\n }\n return time;\n\t}", "public static int getHours(Date t, Date baseDate) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(baseDate);\n long sl = cal.getTimeInMillis();\n long el, delta;\n cal.setTime(t);\n el = cal.getTimeInMillis();\n delta = el - sl;\n int value = (int) (delta / (60 * 60 * 1000));\n\n return value;\n }", "private String formatDate(Date date){\n SimpleDateFormat format = new SimpleDateFormat(\"dd-MM-yyyy HH:mm\", Locale.getDefault());\n\n return format.format(date);\n }", "public static String longToYYYYMMDDHHMM(long longTime)\r\n/* 157: */ {\r\n/* 158:232 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd HH:mm\");\r\n/* 159:233 */ Date strtodate = new Date(longTime);\r\n/* 160:234 */ return formatter.format(strtodate);\r\n/* 161: */ }", "java.lang.String getTime();", "private static String time() throws Exception {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH-mm-ss \");\n\t\t// get current date time with Date()\n\t\tDate date = new Date();\n\t\t// Now format the date\n\t\tString date1 = dateFormat.format(date);\n\t\t// System.out.println(date1);\n\t\treturn date1;\n\t}", "public int getHour()\n {\n return hour;\n }", "public static String timeToString(Date date)\r\n/* 24: */ {\r\n/* 25: 31 */ return sdfTime.format(date);\r\n/* 26: */ }", "public static String getTimeString() {\n SimpleDateFormat formatter = new SimpleDateFormat(\"EEE MMM dd HH:mm:ss yyyy\");\n return formatter.format(new java.util.Date());\n }", "public static Calendar getFechaHoy(){\n\n Calendar cal = new GregorianCalendar();\n cal.set(Calendar.HOUR_OF_DAY,0);\n cal.set(Calendar.MINUTE, 0);\n cal.set(Calendar.SECOND, 0);\n cal.set(Calendar.MILLISECOND, 0);\n\n return cal;\n }", "public String convertCalendarMillisecondsAsLongToDateTimeHourMin(long fingerprint) {\n\t\t\t\tDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\"); // not \"yyyy-MM-dd HH:mm:ss\"\n\t\t\t\tDate date = new Date(fingerprint);\n\t\t\t\treturn format.format(date);\n\t\t\t}", "public int getHours(){\n return (int) totalSeconds/3600;\n }", "public String parseTimeToTimeDate(String time) {\n Date date = null;\n try {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\", Locale.getDefault());\n String todaysDate = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.getDefault()).format(new Date());\n date = simpleDateFormat.parse(todaysDate + \" \" + time);\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm dd,MMM\", Locale.getDefault());\n //sdf.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n return sdf.format(date);\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return null;\n }", "public void calculateHours(String time1, String time2) {\n Date date1, date2;\n int days, hours, min;\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"hh:mm aa\", Locale.US);\n try {\n date1 = simpleDateFormat.parse(time1);\n date2 = simpleDateFormat.parse(time2);\n\n long difference = date2.getTime() - date1.getTime();\n days = (int) (difference / (1000 * 60 * 60 * 24));\n hours = (int) ((difference - (1000 * 60 * 60 * 24 * days)) / (1000 * 60 * 60));\n min = (int) (difference - (1000 * 60 * 60 * 24 * days) - (1000 * 60 * 60 * hours)) / (1000 * 60);\n hours = (hours < 0 ? -hours : hours);\n SessionHour = hours;\n SessionMinit = min;\n Log.i(\"======= Hours\", \" :: \" + hours + \":\" + min);\n\n if (SessionMinit > 0) {\n if (SessionMinit < 10) {\n SessionDuration = SessionHour + \":\" + \"0\" + SessionMinit + \" hrs\";\n } else {\n SessionDuration = SessionHour + \":\" + SessionMinit + \" hrs\";\n }\n } else {\n SessionDuration = SessionHour + \":\" + \"00\" + \" hrs\";\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "public static Calendar extractTime(int time){\n Calendar c = Calendar.getInstance();\n String d = time+\"\";\n if(d.length() == 3)\n d = \"0\"+d;\n int hour = Integer.parseInt(d.substring(0, 2));\n int min = Integer.parseInt(d.substring(2, 4));\n c.set(Calendar.HOUR_OF_DAY,hour);\n c.set(Calendar.MINUTE,min);\n return c;\n }", "public int getHour() {\n return hour; // returns the appointment's hour in military time\n }", "private String convertToAMPM(Date time) {\r\n\r\n String modifier = \"\";\r\n String dateTime = Util.formateDate(time, \"yyyy-MM-dd HH:mm\");\r\n\r\n\r\n // Get the raw time\r\n String rawTime = dateTime.split(\" \")[1];\r\n // Get the hour as 24 time and minutes\r\n String hour24 = rawTime.split(\":\")[0];\r\n String minutes = rawTime.split(\":\")[1];\r\n // Convert the hour\r\n Integer hour = Integer.parseInt(hour24);\r\n\r\n if (hour != 12 && hour != 0) {\r\n modifier = hour < 12 ? \"am\" : \"pm\";\r\n hour %= 12;\r\n } else {\r\n modifier = (hour == 12 ? \"pm\" : \"am\");\r\n hour = 12;\r\n }\r\n // Concat and return\r\n return hour.toString() + \":\" + minutes + \" \" + modifier;\r\n }", "public int getHour() \n { \n return hour; \n }", "private String getMinutesInTime(int time) {\n String hour = String.valueOf(time / 60);\n String minutes = String.valueOf(time % 60);\n\n if(minutes.length() < 2) {\n minutes = \"0\" + minutes;\n }\n\n return hour + \":\" + minutes;\n\n }", "public int getHour(){\n return hour;\n }" ]
[ "0.7385877", "0.6807696", "0.6764697", "0.67634064", "0.65403324", "0.6336451", "0.61807084", "0.61328477", "0.60658747", "0.6058926", "0.5997155", "0.59806955", "0.5927361", "0.5870158", "0.5842725", "0.58357334", "0.5814527", "0.5797581", "0.57852405", "0.5776829", "0.5730673", "0.57076526", "0.56936", "0.56683135", "0.5661241", "0.5620367", "0.56129056", "0.5558919", "0.55570334", "0.5549733", "0.5531311", "0.5519829", "0.5488468", "0.5477824", "0.5428277", "0.542656", "0.540896", "0.53910583", "0.536421", "0.5362423", "0.53118247", "0.52743155", "0.5272899", "0.5259654", "0.52528614", "0.5251025", "0.52335376", "0.5218426", "0.52076006", "0.5166085", "0.5148172", "0.51472473", "0.5143484", "0.514217", "0.5130653", "0.511061", "0.51066935", "0.5104568", "0.5080244", "0.506984", "0.5063897", "0.50550437", "0.50420463", "0.5039015", "0.503215", "0.50011206", "0.49997735", "0.49980307", "0.49540684", "0.49395192", "0.49386463", "0.4936574", "0.4929182", "0.49037975", "0.48961073", "0.48859653", "0.48794505", "0.4875245", "0.4874963", "0.487124", "0.48696148", "0.48523077", "0.48513228", "0.48415828", "0.48373199", "0.48354697", "0.48303923", "0.48260295", "0.48102412", "0.48080269", "0.47949472", "0.47935522", "0.4786924", "0.47823346", "0.47798592", "0.47547737", "0.47481647", "0.47314686", "0.47255853", "0.47219783" ]
0.47456884
97
Recupera quantidade de horas entre duas datas
public static int obterQtdeHorasEntreDatas(Date dataInicial, Date dataFinal) { Calendar start = Calendar.getInstance(); start.setTime(dataInicial); // Date startTime = start.getTime(); if (!dataInicial.before(dataFinal)) return 0; for (int i = 1;; ++i) { start.add(Calendar.HOUR, 1); if (start.getTime().after(dataFinal)) { start.add(Calendar.HOUR, -1); return (i - 1); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void hora()\n {\n horaTotal = HoraSalida - HoraLlegada;\n\n }", "@Override\n\tpublic int horas_trabajo() {\n\t\treturn 1000;\n\t}", "public String getNbHeures() {\n long duree=0;\n if (listePlages!=null) {\n for(Iterator<PlageHoraire> iter=listePlages.iterator(); iter.hasNext(); ) {\n PlageHoraire p=iter.next();\n duree+=p.getDateFin().getTimeInMillis()-p.getDateDebut().getTimeInMillis();\n }\n duree=duree/1000/60; // duree en minutes\n }\n return \"\"+(duree/60)+\"h\"+(duree%60);\n }", "public static void sueldoTotal(int hora, int sueldo){\n int resultado = 0;\r\n if(hora<=40){\r\n resultado = hora*sueldo;\r\n }\r\n if(hora>40 || hora<48){\r\n resultado = (40*sueldo)+(hora-40)*(sueldo*2);\r\n }\r\n if (hora>=48){\r\n resultado =(40*sueldo)+8*(sueldo*2)+(hora-48)*(sueldo*3);\r\n }\r\n System.out.println(\"El sueldo es de \"+ resultado);//Se muestra el sueldo total\r\n \r\n \r\n \r\n }", "public int probabilidadesHastaAhora(){\n return contadorEstados + 1;\n }", "public int getHoras() {\r\n\t\treturn super.getHoras()*2;\r\n\t}", "@Test\n\tvoid calcularSalarioConMasCuarentaHorasPagoPositivoTest() {\n\t\tEmpleadoPorComision empleadoPorComision = new EmpleadoPorComision(\"Eiichiro oda\", \"p33\", 400000, 500000);\n\t\tdouble salarioEsperado = 425000;\n\t\tdouble salarioEmpleadoPorComision = empleadoPorComision.calcularSalario();\n\t\tassertEquals(salarioEsperado, salarioEmpleadoPorComision);\n\n\t}", "public void calcularCost() {\r\n cost = 0;\r\n int a = 0;\r\n try {\r\n String r = DataR.toString()+ \" \" + horaR;\r\n String d = DataD.toString()+ \" \" + horaD;\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\r\n Date dateR = simpleDateFormat.parse(r);\r\n Date dateD = simpleDateFormat.parse(d);\r\n a = (int) ((dateD.getTime() - dateR.getTime())/(1000*3600));\r\n \r\n \r\n } catch (ParseException ex) {\r\n Logger.getLogger(Reserva.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if(a > 24) {\r\n cost += 15*(a/(24));\r\n a -= (((int)(a/24))*24);\r\n }\r\n if(a%3600 == 0) {\r\n cost += 1;\r\n }\r\n if(a%3600 > 0) {\r\n cost += 1;\r\n }\r\n \r\n }", "public int getHoras() {\n return horas;\n }", "@Override\r\n\tpublic double calcularNominaEmpleado() {\n\t\treturn sueldoPorHora * horas;\r\n\t}", "public int obtenerHoraMasAccesos()\n {\n int numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora = 0;\n int horaConElNumeroDeAccesosMaximo = -1;\n\n if(archivoLog.size() >0){\n for(int horaActual=0; horaActual < 24; horaActual++){\n int totalDeAccesosParaHoraActual = 0;\n //Miramos todos los accesos\n for(Acceso acceso :archivoLog){\n if(horaActual == acceso.getHora()){\n totalDeAccesosParaHoraActual++;\n }\n }\n if(numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora<=totalDeAccesosParaHoraActual){\n numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora =totalDeAccesosParaHoraActual;\n horaConElNumeroDeAccesosMaximo = horaActual;\n }\n }\n }\n else{\n System.out.println(\"No hay datos\");\n }\n return horaConElNumeroDeAccesosMaximo;\n }", "public void calculoSalarioBruto(){\n salarioBruto = hrTrabalhada * valorHr;\n }", "private int sizeForHashTable()\n {\n String compare=\"\";\n int numberOfdates = 0;\n for (int i=0; i <= hourly.size();i++)\n {\n if (i==0)\n {\n numberOfdates +=1;\n compare = data.get(i).getFCTTIME().getPretty();\n }else if(compare != data.get(i).getFCTTIME().getPretty())\n {\n numberOfdates+=1;\n compare = data.get(i).getFCTTIME().getPretty();\n }\n }\n return numberOfdates;\n }", "public int getTotRuptures();", "public double mediaHabitantes() {\r\n\treturn totalHabitantes() / numCiudades();\r\n \r\n }", "private int totalTime()\n\t{\n\t\t//i'm using this varaible enough that I should write a separate method for it\n\t\tint totalTime = 0;\n\t\tfor(int i = 0; i < saveData.size(); i++)//for each index of saveData\n\t\t{\n\t\t\t//get the start time\n\t\t\tString startTime = saveData.get(i).get(\"startTime\");\n\t\t\t//get the end time\n\t\t\tString endTime = saveData.get(i).get(\"endTime\");\n\t\t\t//****CONTINUE\n\t\t\t//total time in minutes\n\t\t}\n\t}", "int getPercentageHeated();", "public int getHours(){\n return (int) totalSeconds/3600;\n }", "public int totalHabitantes() {\r\n\tIterator<Ciudad> it = ciudades.iterator();\r\n\tint totalhab = 0;\r\n\tint i = 0;\r\n\twhile(it.hasNext()) {\r\n\t\ttotalhab += it.next().getHabitantes();\r\n\t\t\r\n\t}\r\n\t return totalhab;\r\n\r\n }", "public double totalHours(){\n return (this._startingHour - this._endingHour);\n }", "public String dimeTuTiempo()\n {\n String cadResultado=\"\";\n if (horas<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+horas;\n cadResultado=cadResultado+\":\";\n if(minutos<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+minutos;\n \n return cadResultado;\n }", "public int quantasEleicoesPeriodoCandidaturaAberta(){\n return this.eleicaoDB.quantasEleicoesPeriodoCandidaturaAberta();\n }", "public int tiempoTotal() {\r\n\r\n\t\tint duracionTotal = 0;\r\n\t\tfor (int i = 0; i < misCanciones.size(); i++) {\r\n\t\t\tduracionTotal = duracionTotal + misCanciones.get(i).getDuracionS();\r\n\t\t}\r\n\t\t\r\n\t\treturn duracionTotal;\r\n\r\n\t}", "public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\n\t}", "public int numeroHojas(){\n\t int N=0, ni=0, nd=0;\n\t Arbol <T> aux=null;\n\t if (!vacio()) {\n\t if ((aux=getHijoIzq())!=null) ni = aux.numeroHojas();\n\t if ((aux=getHijoDer())!=null) nd = aux.numeroHojas();\n\t if ((aux=getHijoDer())==null && (aux=getHijoIzq())==null)N = 1;\n\t else N = ni + nd;\n\t }\n\t\treturn N;\n\t}", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "public int getConvertirHoraMinutosStamina(){\n return totalMinutosStamina;\n }", "double getEndH();", "@Override\n public int tonKho() {\n return getAmount() - amountBorrow;\n }", "public static double hoursSpent()\n\t{\n\t\treturn 7.0;\n\t}", "abstract public int getIncomeSegment( int hhIncomeInDollars );", "Double getTotalSpent();", "public static long CalcularDiferenciaHorasFechas(Date fecha1, Date fecha2){\n Calendar cal1 = Calendar.getInstance();\r\n Calendar cal2 = Calendar.getInstance();\r\n cal1.setTime(fecha1);\r\n cal2.setTime(fecha2);\r\n // conseguir la representacion de la fecha en milisegundos\r\n long milis1 = cal1.getTimeInMillis();\r\n long milis2 = cal2.getTimeInMillis();\r\n // calcular la diferencia en milisengundos\r\n long diff = milis2 - milis1;\r\n // calcular la diferencia en horas\r\n long diffHours = diff / (60 * 60 * 1000);\r\n return diffHours;\r\n }", "public int getHora(){\n return minutosStamina;\n }", "@Override\n\tpublic int getQuantidade() {\n\t\treturn hamburguer.getQuantidade();\n\t}", "public void calcularSalario(){\n // 1% do lucro mensal\n double percentagemLucro = 0.01 * lucroMensal;\n // valor fixo igual ao dobro do dos empregados sem especialização, acrescido\n //de um prémio que corresponde a 1% do lucro mensal nas lojas da região.\n setSalario(1600 + percentagemLucro);\n\n }", "public boolean calcularTotal() {\r\n double dou_debe = 0;\r\n double dou_haber = 0;\r\n for (int i = 0; i < tab_tabla2.getTotalFilas(); i++) {\r\n try {\r\n if (tab_tabla2.getValor(i, \"ide_cnlap\").equals(p_con_lugar_debe)) {\r\n dou_debe += Double.parseDouble(tab_tabla2.getValor(i, \"valor_cndcc\"));\r\n } else if (tab_tabla2.getValor(i, \"ide_cnlap\").equals(p_con_lugar_haber)) {\r\n dou_haber += Double.parseDouble(tab_tabla2.getValor(i, \"valor_cndcc\"));\r\n }\r\n } catch (Exception e) {\r\n }\r\n }\r\n eti_suma_debe.setValue(\"TOTAL DEBE : \" + utilitario.getFormatoNumero(dou_debe));\r\n eti_suma_haber.setValue(\"TOTAL HABER : \" + utilitario.getFormatoNumero(dou_haber));\r\n\r\n double dou_diferencia = Double.parseDouble(utilitario.getFormatoNumero(dou_debe)) - Double.parseDouble(utilitario.getFormatoNumero(dou_haber));\r\n eti_suma_diferencia.setValue(\"DIFERENCIA : \" + utilitario.getFormatoNumero(dou_diferencia));\r\n if (dou_diferencia != 0.0) {\r\n eti_suma_diferencia.setStyle(\"font-size: 14px;font-weight: bold;color:red\");\r\n } else {\r\n eti_suma_diferencia.setStyle(\"font-size: 14px;font-weight: bold\");\r\n return true;\r\n }\r\n return false;\r\n }", "private int calcTotalTime() {\n\t\tint time = 0;\n\t\tfor (Taxi taxi : taxis) {\n\t\t\ttime += taxi.calcTotalTime();\n\t\t}\n\t\treturn time;\n\t}", "public double calculateHpPercent();", "private void populaHorarioAula()\n {\n Calendar hora = Calendar.getInstance();\n hora.set(Calendar.HOUR_OF_DAY, 18);\n hora.set(Calendar.MINUTE, 0);\n HorarioAula h = new HorarioAula(hora, \"Segunda e Quinta\", 1, 3, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Terca e Sexta\", 1, 3, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 15);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 10);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Quarta e Sexta\", 3, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Sexta\", 1, 1, 2);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 19);\n h = new HorarioAula(hora, \"Sexta\", 2, 1, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Segunda\", 3, 6, 4);\n horarioAulaDAO.insert(h);\n\n }", "public final void calcular() {\n long dias = Duration.between(retirada, devolucao).toDays();\n valor = veiculo.getModelo().getCategoria().getDiaria().multiply(new BigDecimal(dias));\n }", "public double getEntreLlegadas() {\r\n return 60.0 / frecuencia;\r\n }", "public int getHourFraction()\n {\n return (int)Math.floor(hours);\n }", "public void convertirHoraMinutosStamina(int Hora, int Minutos){\n horaMinutos = Hora * 60;\n minutosTopStamina = 42 * 60;\n minutosTotales = horaMinutos + Minutos;\n totalMinutosStamina = minutosTopStamina - minutosTotales;\n }", "public int getDineroRecaudadoPorMaquina1()\n {\n return maquina1.getTotal();\n }", "private void Calculation() {\n\t\tint calStd = jetztStunde + schlafStunde;\n\t\tint calMin = jetztMinute + schlafMinute;\n\n\t\ttotalMin = calMin % 60;\n\t\ttotalStunde = calStd % 24 + calMin / 60;\n\n\t}", "private double calculeSalaires() {\n return salaireHoraire * heures;\n }", "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 double calcularPortes() {\n\t\tif (this.pulgadas <= 40) {\n\t\t\tif (this.getPrecioBase() > 500)\n\t\t\t\treturn 0;\n\t\t\telse\n\t\t\t\treturn 35;\n\t\t} else\n\t\t\treturn 35 + (this.pulgadas - 40);\n\t}", "int getChestsAmount();", "private int contabilizaHorasNoLectivas(ArrayList<FichajeRecuentoBean> listaFichajesRecuento, ProfesorBean profesor, boolean guardar, int mes) {\r\n int segundos=0;\r\n for (FichajeRecuentoBean fichajeRecuento : listaFichajesRecuento) {\r\n// System.out.println(fichajeRecuento.getFecha()+\" \"+fichajeRecuento.getHoraEntrada()+\"->\"+fichajeRecuento.getHoraSalida()+\" => \"+UtilsContabilizar.dimeDuracion(fichajeRecuento.getHoraEntrada(),fichajeRecuento.getHoraSalida()));\r\n segundos+=UtilsContabilizar.dimeDuracion(fichajeRecuento.getHoraEntrada(),fichajeRecuento.getHoraSalida());\r\n \r\n DetalleInformeBean detalleInforme=new DetalleInformeBean();\r\n detalleInforme.setIdProfesor(profesor.getIdProfesor());\r\n detalleInforme.setTotalHoras(UtilsContabilizar.dimeDuracion(fichajeRecuento.getHoraEntrada(),fichajeRecuento.getHoraSalida()));\r\n detalleInforme.setFecha(fichajeRecuento.getFecha());\r\n detalleInforme.setHoraIni(fichajeRecuento.getHoraEntrada());\r\n detalleInforme.setHoraFin(fichajeRecuento.getHoraSalida());\r\n detalleInforme.setTipoHora(\"NL\");\r\n if(guardar && detalleInforme.getTotalHoras()>0)GestionDetallesInformesBD.guardaDetalleInforme(detalleInforme, \"contabilizaHorasNoLectivas\", mes);\r\n \r\n }\r\n return segundos;\r\n }", "public int getTotalHours() {\r\n int totalHours = 0;\r\n // For each day of the week\r\n for (int d = 0; d < 5; d++) {\r\n int sectionStart = 0;\r\n // Find first hour that != 0\r\n for (int h = 0; h < 13; h++) {\r\n if (weekData[d][h] != 0) {\r\n sectionStart = h;\r\n break;\r\n }\r\n }\r\n // Iterate in reverse to find the last hour that != 0\r\n for (int h = 12; h >= 0; h--) {\r\n if (weekData[d][h] != 0) {\r\n // Add the difference to the total\r\n totalHours += h-sectionStart+1;\r\n break;\r\n }\r\n }\r\n }\r\n return totalHours;\r\n }", "double getStartH();", "public int getHowManyInPeriod();", "private int obstaculos() {\n\t\treturn this.quadricula.length * this.quadricula[0].length - \n\t\t\t\tthis.ardiveis();\n\t}", "private float horisontalTicker() {\n\t\t\t\treturn (ticker_horisontal += 0.8f);\n\t\t\t}", "public static Total total(Player player) {\r\n Deck hand = player.getHand();\r\n int min, max, value = 0, nbAces = 0;\r\n\r\n // ajout des cartes qui ne sont pas des as et comptage des as\r\n for (int i = 0; i < hand.getSize(); i++) {\r\n if(hand.get(i).isVisible()) {\r\n if(hand.get(i).getHeight() == 1) {\r\n nbAces++;\r\n value += 1;\r\n }\r\n else if(hand.get(i).getHeight() > 9) {\r\n value += 10;\r\n }\r\n else {\r\n value += hand.get(i).getHeight();\r\n }\r\n }\r\n }\r\n\r\n min = value;\r\n\r\n // ajout de dix points si on peut pour avoir le max\r\n if(value <= 11 && nbAces >= 1) {\r\n value += 10;\r\n max = value;\r\n } else {\r\n max = min;\r\n }\r\n\r\n // cas particulier : le joueur a un blackjack\r\n if(hand.getSize() == 2 && max == 21 && min == 11) {\r\n min = max = 32;\r\n }\r\n\r\n return new Total(min, max);\r\n }", "double bucketSize(Rounding.DateTimeUnit unit);", "@Override\n public double calculateSalary(){\n return this.horas_trabajadas*EmployeeByHours.VALOR_HORA;\n }", "public int getDuration( ) {\nreturn numberOfPayments / MONTHS;\n}", "public float totalVentas() {\n float total = 0;\n for (int i = 0; i < posicionActual; i++) {\n total += getValorCompra(i); //Recorre el arreglo y suma toda la informacion el el arreglo de los valores en una variable que luego se retorna \n }\n return total;\n }", "public int getHauteur() {\n return getHeight();\n }", "public double getPerHour() {\r\n return perHour;\r\n }", "public void formatoTiempo() {\n String segundos, minutos, hora;\n\n hora = hrs < 10 ? String.valueOf(\"0\" + hrs) : String.valueOf(hrs);\n\n minutos = min < 10 ? String.valueOf(\"0\" + min) : String.valueOf(min);\n\n jLabel3.setText(hora + \" : \" + minutos + \" \" + tarde);\n }", "public java.lang.Integer getCantHoras() {\n return cantHoras;\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 }", "@Override\n\tpublic double calculaTributos() {\n\t\treturn numeroDePacientes * 10;\n\t}", "public int getSingles() {\n return h-(d+t+hr);\n }", "public float carga(){\n return (this.capacidade/this.tamanho);\n }", "public int AmbosHijos() { //Hecho por mi\n if (this.esArbolVacio()) {\n return 0; //Arbol vacio\n }\n int ambos = 0;\n Queue<NodoBinario<T>> colaDeNodos = new LinkedList<>();\n colaDeNodos.offer(raiz);\n while (!colaDeNodos.isEmpty()) {\n NodoBinario<T> nodoActual = colaDeNodos.poll();\n if (!NodoBinario.esNodoVacio(nodoActual.getHijoIzquierdo())\n && !NodoBinario.esNodoVacio(nodoActual.getHijoDerecho())) {\n ambos++;\n }\n if (!nodoActual.esHijoIzquiedoVacio()) {\n colaDeNodos.offer(nodoActual.getHijoIzquierdo());\n }\n if (!nodoActual.esHijoDerechoVacio()) {\n colaDeNodos.offer(nodoActual.getHijoDerecho());\n }\n }\n return ambos;\n }", "public BigDecimal getValorTotalSemDesconto() {\r\n return valorUnitario.setScale(5, BigDecimal.ROUND_HALF_EVEN).multiply(quantidade.setScale(3, BigDecimal.ROUND_HALF_EVEN)).setScale(3, BigDecimal.ROUND_DOWN);\r\n }", "public int getHats() {\n return totalHats;\n }", "private static long getQtdDias(String dataAniversario){\n DateTimeFormatter data = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n LocalDateTime now = LocalDateTime.now();\n String dataHoje = data.format(now);\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\", Locale.ENGLISH);\n try {\n Date dtAniversario = sdf.parse(dataAniversario);\n Date hoje = sdf.parse(dataHoje);\n //Date hoje = sdf.parse(\"51515/55454\");\n long diferenca = Math.abs(hoje.getTime() - dtAniversario.getTime());\n long qtdDias = TimeUnit.DAYS.convert(diferenca, TimeUnit.MILLISECONDS);\n return qtdDias;\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return 0;\n }", "public int getCantidadAvenidas();", "public double horaExtraFds(double salario, int horasTrabalhadas) {\r\n\t\tdouble salarioDia = salario;\r\n\t\tdouble horaDia = 8; // horas num dia\r\n\r\n\t\tsalarioDia = salario / horaDia;\r\n\t\t// salario 100% * horasTrabalhadas\r\n\t\tsalario = (salarioDia + salarioDia) * horasTrabalhadas;\r\n\t\treturn salario;\r\n\t}", "int getRatioQuantity();", "public double getTotalUnits() {\n double totalUnits = 0;\n for (int i = 0; i < quarters.size(); i++) {\n totalUnits += quarters.get(i).getTotalUnits();\n }\n return totalUnits;\n }", "public int getminutoStamina(){\n return tiempoReal;\n }", "private int calculateTotalHeads() { //kept a separate method with a specific purpose instead of writing code in main\n\t\t//no need to static method, althouth static won't hurt in such a small code\n\t\tint headsCount = 0;\n\t\tfor (int currentCoinNo = 1; currentCoinNo <= noCoins; currentCoinNo++) { \n\t\t\tif(isHead(currentCoinNo)) {\n\t\t\t\theadsCount++;\n\t\t\t}\n\t\t}\n\t\treturn headsCount;\n\t}", "public int numberOfTires() {\n int tires = 4;\n return tires;\n }", "@Test\n\tpublic void totalHires()\n\t{\t\t\n\t\tassertTrue(controller.getReport().getTotalHires() == 4);\n\t}", "public double calcularIncremento(){\n double incremento=0.0;\n \n if (this.edad>=18&&this.edad<50){\n incremento=this.salario*0.05;\n }\n if (this.edad>=50&&this.edad<60){\n incremento=this.salario*0.10;\n }\n if (this.edad>=60){\n incremento=this.salario*0.15;\n }\n return incremento;\n }", "public int calcularHorasCompensaModif(String dbpool, String codPers, String fechaIni, String fechaFin)\n\t\t\tthrows IncompleteConversationalState, RemoteException {\n\n\t\tint numHoras = 0;\n\t\tBeanMensaje beanM = new BeanMensaje();\n\t\ttry {\n\n\t\t\tT01DAO paramDAO = new T01DAO();\n\t\t\tT1270DAO dao = new T1270DAO();\t\t\t\n\t\t\tString fIni = Utiles.toYYYYMMDD(fechaIni);\n\t\t\tString fFin = Utiles.toYYYYMMDD(fechaFin);\n\t\t\tString fAct = fIni;\n\t\t\tString fReal = fechaIni;\n\t\t\t\n\t\t\tboolean contar = true;\n\t\t\tBeanTurnoTrabajo turno = null;\n\t\t\t\n\t\t\twhile (fAct.compareTo(fFin) <= 0) {\t\t\t\t\t\n\t\t\t\tcontar = true;\n\t\t\t\tturno = dao.joinWithT45ByCodFecha(dbpool,codPers,fReal);\t\t\t\t\t\t\n\t\t\t\t//si es operativo\n\t\t\t\tif (turno!=null){\n\t\t\t\t\tif (!turno.isOperativo()){\n\t\t\t\t\t\t//si es fin de semana o feriado\n\t\t\t\t\t\tif (Utiles.isWeekEnd(fReal) || paramDAO.findByFechaFeriado(dbpool,fReal)) {\n\t\t\t\t\t\t\tcontar = false;\n\t\t\t\t\t\t}\t\n\t\t\t\t\t} \n\t\t\t\t\tif (contar) numHoras += 8; //8 horas de recuperacion por cada dia para DL 1057(CAS) Y DL 276-728;\t\t\t\t\t\n\t\t\t\t}\t\t\t\t\n\t\t\t\tfReal = Utiles.dameFechaSiguiente(fReal, 1);\n\t\t\t\tfAct = Utiles.toYYYYMMDD(fReal);\n\t\t\t}\t\t\t\n\t\t\tlog.debug(\"Horas x Compensar : \"+numHoras);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tlog.error(e,e);\n\t\t\tbeanM.setMensajeerror(e.getMessage());\n\t\t\tbeanM.setMensajesol(\"Por favor intente nuevamente.\");\n\t\t\tthrow new IncompleteConversationalState(beanM);\n\t\t}\n\t\treturn numHoras;\n\n\t}", "public int calculatePayDollarsPerHour() {\n int dollarsPerHour = BASE_RATE_DOLLARS_PER_HOUR;\n\n if (getHeight() >= TALL_INCHES && getWeight() < THIN_POUNDS)\n dollarsPerHour += TALL_THIN_BONUS_DOLLARS_PER_HOUR;\n if (isCanTravel())\n dollarsPerHour += TRAVEL_BONUS_DOLLARS_PER_HOUR;\n if (isSmokes())\n dollarsPerHour -= SMOKER_DEDUCTION_DOLLARS_PER_HOUR;\n\n return dollarsPerHour;\n }", "public double getH();", "public void sumValues(){\n\t\tint index = 0;\n\t\tDouble timeIncrement = 2.0;\n\t\tDouble timeValue = time.get(index);\n\t\tDouble packetValue;\n\t\twhile (index < time.size()){\n\t\t\tDouble packetTotal = 0.0;\n\t\t\twhile (timeValue < timeIncrement && index < packets.size()){\n\t\t\t\ttimeValue = time.get(index);\n\t\t\t\tpacketValue = packets.get(index);\n\t\t\t\tpacketTotal= packetTotal + packetValue;\n\t\t\t\tindex = index + 1;\n\t\t\t}\n\t\t\tArrayList<Double> xy = new ArrayList<Double>();\n\t\t\txy.add(timeIncrement);\n\t\t\txy.add(packetTotal);\n\t\t\ttotalIncrements.add(xy);\n\t\t\t// to get max and min need separate arrays\n\t\t\ttimeIncrements.add(timeIncrement);\n\t\t\tbyteIncrements.add(packetTotal);\n\t\t\ttimeIncrement = timeIncrement + 2.0;\t\n\t\t}\n\t\treturn;\n\n\t}", "public float valorTotalItem()\r\n {\r\n float total = (produto.getValor() - (produto.getValor() * desconto)) * quantidade;\r\n return total;\r\n }", "int getRowsAmount();", "@Override\n\tpublic int hitungPemasukan() {\n\t\treturn getHarga() * getPenjualan();\n\t}", "public static void main(String[] args) {\n int horaSalida;\n int minutosSalida;\n int horaLlegada;\n int minutosLlegada;\n //Salida:\n int duracion;\n //condiciones y restricciones: el vuelo puede pasar de medianoche y no dura mas de 24h\n Scanner sc = new Scanner(System.in);\n do {\n System.out.println(\"Ingrese la hora de salida\");\n horaSalida = sc.nextInt();\n System.out.println(\"Ingrese los minutos\");\n minutosSalida = sc.nextInt();\n\n System.out.println(\"Ingrese la hora de llegada\");\n horaLlegada = sc.nextInt();\n System.out.println(\"Ingrese los minutos\");\n minutosLlegada = sc.nextInt();\n if (horaSalida > 24 || horaLlegada > 24 || minutosSalida > 60 || minutosLlegada > 60) {\n System.out.println(\"Los datos no han sido ingresados correctamente, vuelva a intentarlo\");\n }\n } while (horaSalida > 24 || horaLlegada > 24 || minutosSalida > 60 || minutosLlegada > 60);\n\n //Conversion de horas y minutos en solo minutos 19<2\n if (horaSalida > horaLlegada) {//caso 1\n horaLlegada = 24 + horaLlegada;//para poder restarlo a eso las h y m de salida\n }\n if (horaLlegada == horaSalida && (minutosSalida > minutosLlegada || minutosSalida == minutosLlegada)) {//caso 2\n horaLlegada = 24 + horaLlegada;//para poder restarlo a eso las h y m de salida\n }\n duracion = ((horaLlegada * 60) + minutosLlegada) - ((horaSalida * 60) + minutosSalida);\n\n if (duracion >= 1440) {//24*60=1440 si se pasa esto significa que el vuelo dura mas de 24h ex: 3:41 y llego 3:20\n System.out.print(\"El vuelo no puede durar mas de 24 horas \");\n } else {\n System.out.print(\"La duracion del vuelo es \" + duracion + \" minutos o \");\n //CODICIONES PARA EL AFFICHAGE\n if ((duracion / 60) < 10) {\n System.out.print(\"0\");\n }\n System.out.print(duracion / 60 + \"h\");\n\n if ((duracion % 60) < 10) {\n System.out.print(\"0\");\n }\n System.out.print(duracion % 60 + \"m\");\n }\n }", "public double getTotalHdGB () { return n.getResources(RESOURCETYPE_HD).stream().mapToDouble(r->r.getCapacity()).sum (); }", "public int getHealthCost();", "@Override\n public double getCost(int hours) {\n\n if (hours < 2) {\n\n return 30;\n } else if (hours < 4) {\n\n return 70;\n } else if (hours < 24) {\n\n return 100;\n } else {\n\n int days = hours / 24;\n return days * 100;\n }\n }", "public void utilization() {\r\n\t\tfloat fAktuell = this.aktuelleLast;\r\n\t\tfloat fMax = this.raumsonde.getMaxNutzlast();\r\n\t\tfloat prozent = fAktuell / fMax * 100;\r\n\r\n\t\tSystem.out.println(\" \" + fAktuell + \"/\" + fMax + \" (\" + prozent + \"%)\");\r\n\t}", "public static int totalSize_entries_receiveEst() {\n return (176 / 8);\n }", "int getHPPerSecond();", "public float capacidadeTotal() {\r\n float toneladas = 0;\r\n\r\n for (int i = 0; i < numNavios; i++) {\r\n if (navios[i] instanceof Petroleiro) {\r\n Petroleiro petroleiro = (Petroleiro) navios[i];\r\n toneladas = toneladas + petroleiro.getCapacidadeCarga();\r\n } else if (navios[i] instanceof PortaContentores) {\r\n PortaContentores portaContentores = (PortaContentores) navios[i];\r\n toneladas = toneladas + portaContentores.getMaxContentores() * 10;\r\n }\r\n }\r\n return toneladas;\r\n }", "public static int selectTotalWattage() throws Exception {\n Connection connection = DriverManager.getConnection(\"jdbc:postgresql://127.0.0.1:10000/tiana18\", \"tiana18web\", \"<password>\");\n ResultSet result1 = connection.createStatement().executeQuery(\"SELECT ((SELECT SUM(wattage) FROM public.electronics) + \" +\n \"(SELECT (SUM(wattage)) FROM public.switchedelectronics WHERE ison = true)) \" +\n \"AS result;\");\n ResultSet result2 = connection.createStatement().executeQuery(\"select * from public.lights where ison = true;\");\n int i = 0;\n while (result2.next())\n {\n i++;\n }\n connection.close();\n result1.next();\n return result1.getInt(1) + (i * 60);\n }", "@Override\n\tpublic double percentualeUtentiAbilitati () throws DAOException{\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tdouble numeroUtenti = 0.0;\n\t\ttry {\n\t\t\tconnection = DataSource.getInstance().getConnection();\n\t\t\tstatement = connection.prepareStatement(\" SELECT COUNT (UTENTE.ID)*100/(SELECT COUNT(ID) FROM UTENTE) FROM UTENTE WHERE ABILITATO = 1 GROUP BY(UTENTE.ABILITATO) \");\n\t\t\tresultSet = statement.executeQuery();\n\t\t\tif (resultSet.next()) {\n\t\t\t\tnumeroUtenti = BigDecimal.valueOf(resultSet.getDouble(1)).setScale(2, RoundingMode.HALF_UP).doubleValue();\n\t\t\t}\n\t\t} catch (SQLException | DAOException e) {\n\t\t\tthrow new DAOException(\"ERRORE percentualeUtentiAbilitati utenteAdmin\" + e.getMessage(), e);\n\t\t} finally {\n\t\t\tDataSource.getInstance().close(resultSet);\n\t\t\tDataSource.getInstance().close(statement);\n\t\t\tDataSource.getInstance().close(connection);\n\t\t}\n\t\treturn numeroUtenti;\n\t}", "public int getQuantidade();" ]
[ "0.660011", "0.6338249", "0.62449646", "0.61460924", "0.609613", "0.6051594", "0.6049681", "0.5988358", "0.5872953", "0.5850954", "0.5833811", "0.575546", "0.5741975", "0.5740746", "0.5622597", "0.560102", "0.55952287", "0.55712897", "0.55610764", "0.5551493", "0.5549926", "0.55315906", "0.5523579", "0.55159736", "0.5513331", "0.55030286", "0.55017895", "0.54951036", "0.549388", "0.5488289", "0.5472457", "0.54485387", "0.54389966", "0.5415229", "0.5411102", "0.540357", "0.5396864", "0.53907114", "0.5389789", "0.5385032", "0.5374274", "0.53680575", "0.53478956", "0.5347533", "0.5339016", "0.53354067", "0.5334584", "0.5327003", "0.5320259", "0.5319374", "0.5312118", "0.53098494", "0.530764", "0.53071713", "0.53050566", "0.53040296", "0.52944136", "0.5292719", "0.52861637", "0.5280822", "0.5272002", "0.5269844", "0.5268969", "0.52655345", "0.5265444", "0.52602375", "0.52590406", "0.5256755", "0.52481", "0.52385354", "0.5238304", "0.5235499", "0.523145", "0.522982", "0.5228817", "0.522876", "0.5224769", "0.52219915", "0.5220608", "0.52198297", "0.5218988", "0.5214694", "0.52092123", "0.5207242", "0.5206479", "0.5203146", "0.51998293", "0.5193449", "0.5192874", "0.5185223", "0.51810014", "0.5176585", "0.51757735", "0.51739985", "0.51706105", "0.5169157", "0.5168025", "0.5165041", "0.51613134", "0.51574814" ]
0.63075227
2
Compara duas datas sem verificar a hora.
public static int compararData(Date data1, Date data2) { Calendar calendar1; Calendar calendar2; int ano1; int ano2; int mes1; int mes2; int dia1; int dia2; int resultado; calendar1 = Calendar.getInstance(); calendar1.setTime(data1); ano1 = calendar1.get(Calendar.YEAR); mes1 = calendar1.get(Calendar.MONTH); dia1 = calendar1.get(Calendar.DAY_OF_MONTH); calendar2 = Calendar.getInstance(); calendar2.setTime(data2); ano2 = calendar2.get(Calendar.YEAR); mes2 = calendar2.get(Calendar.MONTH); dia2 = calendar2.get(Calendar.DAY_OF_MONTH); if (ano1 == ano2) { if (mes1 == mes2) { if (dia1 == dia2) { resultado = 0; } else if (dia1 < dia2) { resultado = -1; } else { resultado = 1; } } else if (mes1 < mes2) { resultado = -1; } else { resultado = 1; } } else if (ano1 < ano2) { resultado = -1; } else { resultado = 1; } return resultado; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void CompararTiempo(String HoraInicio, String HoraFin){\n String[] TiempoInicial = HoraInicio.split(\":\");\n int horaI = Integer.valueOf(TiempoInicial[0]);\n int minuteI = Integer.valueOf(TiempoInicial[1]);\n\n String[] TiempoFinal = HoraFin.split(\":\");\n int horaF = Integer.valueOf(TiempoFinal[0]);\n int minuteF = Integer.valueOf(TiempoFinal[1]);\n\n if (horaF >= horaI){\n if (horaF == horaI && minuteF<=minuteI) {\n Toast.makeText(getApplicationContext(), \"La Hora de finalizacion no puede ser menor a la Hora de Inicio.\", Toast.LENGTH_SHORT).show();\n }\n else{\n etHoraFin.setText(HoraFin);\n }\n\n }else{\n Toast.makeText(getApplicationContext(), \"La Hora de finalizacion no puede ser menor a la Hora de Inicio.\", Toast.LENGTH_SHORT).show();\n }\n\n }", "public static int compararDataTime(Date data1, Date data2) {\r\n\t\tlong dataTime1 = data1.getTime();\r\n\t\tlong dataTime2 = data2.getTime();\r\n\t\tint result;\r\n\t\tif (dataTime1 == dataTime2) {\r\n\t\t\tresult = 0;\r\n\t\t} else if (dataTime1 < dataTime2) {\r\n\t\t\tresult = -1;\r\n\t\t} else {\r\n\t\t\tresult = 1;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public int compareHours(String hora1, String hora2) {\n \tString[] strph1=hora1.split(\":\");\n \tString[] strph2=hora2.split(\":\");\n \tInteger[] ph1= new Integer[3];\n \tInteger[] ph2= new Integer[3];\n\n \tfor(int i=0;i<strph1.length;i++) {\n \t\tph1[i]=Integer.parseInt(strph1[i]);\n \t}\n \tfor(int i=0;i<strph2.length;i++) {\n \t\tph2[i]=Integer.parseInt(strph2[i]);\n \t}\n\n \tif(ph1[0]>ph2[0]) {\n \t\treturn 1;\n \t}\n \telse if(ph1[0]<ph2[0]) {\n \t\treturn -1;\n \t}\n \telse{//si las horas son iguales\n \t\tif(ph1[1]>ph2[1]) {\n \t\t\treturn 1; \n \t\t}\n \t\telse if(ph1[1]<ph2[1]) {\n \t\t\treturn -1;\n \t\t}\n \t\telse{//si los minutos son iguales\n \t\t\tif(ph1[2]>ph2[2]) {\n \t\t\t\treturn 1;\n \t\t\t}\n \t\t\telse if(ph1[1]<ph2[1]) {\n \t\t\t\treturn -1;\n \t\t\t}\n \t\t\telse {\n \t\t\t\treturn 0;\n \t\t\t}\n \t\t}\n \t}\n\n }", "public static boolean isPassOneHour(String pass)\n {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n Date date = new Date();\n String current = dateFormat.format(date);\n\n //Extract current data time all values\n\n int current_year = Integer.parseInt(current.substring(0, 4));\n int current_month = Integer.parseInt(current.substring(5,7))-1;\n int current_day = Integer.parseInt(current.substring(8,10));\n\n int current_hour = Integer.parseInt(current.substring(11,13));\n int current_minute = Integer.parseInt(current.substring(14,16));\n int current_seconds = Integer.parseInt(current.substring(17));\n\n //String pass = \"2016-10-05 10:14:00\";\n\n //Extract last update data (pass from parameter\n\n int year = Integer.parseInt(pass.substring(0, 4));\n int month = Integer.parseInt(pass.substring(5,7))-1;\n int day = Integer.parseInt(pass.substring(8,10));\n\n int hour = Integer.parseInt(pass.substring(11,13));\n int minute = Integer.parseInt(pass.substring(14,16));\n int seconds = Integer.parseInt(pass.substring(17));\n\n\n System.out.println(\"CURRENT: \" + current_year+\"/\"+current_month+\"/\"+current_day+\" \"+current_hour+\":\"+current_minute+\":\"+current_seconds);\n\n System.out.println(\"PASS: \" + year+\"/\"+month+\"/\"+day+\" \"+hour+\":\"+minute+\":\"+seconds);\n\n if (current_year == year)\n {\n if (current_month == month)\n {\n if (current_day == day)\n {\n if (current_hour > hour)\n {\n if ((current_hour - hour > 1))\n {\n //Bi ordu gutxienez\n System.out.println(\"Bi ordu gutxienez: \" + (current_hour) + \" / \" + hour);\n return true;\n }\n else\n {\n if (((current_minute + 60) - minute ) < 60)\n {\n //Ordu barruan dago\n System.out.println(\"Ordu barruan nago ez delako 60 minutu pasa: \" + ((current_minute + 60) - minute ));\n return false;\n }\n else\n {\n //Refresh\n System.out.println(\"Eguneratu, ordu bat pasa da gutxienez: \" + ((current_minute + 60) - minute ));\n return true;\n }\n }\n\n }\n }\n }\n }\n return false;\n }", "private boolean compararFechasConDate(String fechaMenor, String fecha2, String fechaComparar) {\n try {\n /**\n * Obtenemos las fechas enviadas en el formato a comparar\n */\n SimpleDateFormat formateador = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date fechaDateMenor = formateador.parse(fechaMenor);\n Date fechaDateMayor = formateador.parse(fecha2);\n Date fechaDateComparar = formateador.parse(fechaComparar);\n if (fechaDateMenor.before(fechaDateComparar) && fechaDateComparar.before(fechaDateMayor)) {\n return true;\n } else {\n return false;\n }\n } catch (ParseException e) {\n System.out.println(\"Se Produjo un Error!!! \" + e.getMessage());\n return false;\n }\n }", "@Override\r\n\t\t\t\tpublic int compare(Comparendo o1, Comparendo o2) \r\n\t\t\t\t{\n\t\t\t\t\treturn o1.fechaHora.compareTo(o2.fechaHora);\r\n\t\t\t\t}", "private boolean compararFechaActualCon(String fecha_obtenida) {\n boolean fecha_valida = false;\n\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n Date date = new Date();\n String fecha_actual = dateFormat.format(date);\n\n try {\n Date date2 = dateFormat.parse(fecha_obtenida);\n Date date1 = dateFormat.parse(fecha_actual);\n\n Log.i(\"COMPARANDO FECHAS\", \"F_ACTUAL: \" + date1 + \", F_OBTENIDA: \" + date2);\n\n if (date2.after(date1) ) {\n fecha_valida = true;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: TRUE\");\n } else {\n fecha_valida = false;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: FALSE\");\n\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return fecha_valida;\n }", "private boolean compararFechaActualCon(String fecha_obtenida) {\n boolean fecha_valida = false;\n\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n Date date = new Date();\n String fecha_actual = dateFormat.format(date);\n\n try {\n Date date2 = dateFormat.parse(fecha_obtenida);\n Date date1 = dateFormat.parse(fecha_actual);\n\n Log.i(\"COMPARANDO FECHAS\", \"F_ACTUAL: \" + date1 + \", F_OBTENIDA: \" + date2);\n\n if (date2.after(date1) ) {\n fecha_valida = true;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: TRUE\");\n } else {\n fecha_valida = false;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: FALSE\");\n\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return fecha_valida;\n }", "public int actualizarTiempo(int empresa_id,int idtramite, int usuario_id) throws ParseException {\r\n\t\tint update = 0;\r\n\t\t\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat formateador = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n\t\tString timeNow = formateador.format(date);\r\n\t\tSimpleDateFormat formateador2 = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tString fecha = formateador2.format(date);\r\n\t\tSimpleDateFormat formateador3 = new SimpleDateFormat(\"hh:mm:ss\");\r\n\t\tString hora = formateador3.format(date);\r\n\t\tSystem.out.println(timeNow +\" \"+ fecha+\" \"+hora );\r\n\t\t\r\n\t\t List<Map<String, Object>> rows = listatks(empresa_id, idtramite);\t\r\n\t\t System.out.println(rows);\r\n\t\t if(rows.size() > 0 ) {\r\n\t\t\t String timeCreate = rows.get(0).get(\"TIMECREATE_HEAD\").toString();\r\n\t\t\t System.out.println(\" timeCreate \" +timeCreate+\" timeNow: \"+ timeNow );\r\n\t\t\t Date fechaInicio = formateador.parse(timeCreate); // Date\r\n\t\t\t Date fechaFinalizo = formateador.parse(timeNow); //Date\r\n\t\t\t long horasFechas =(long)((fechaInicio.getTime()- fechaFinalizo.getTime())/3600000);\r\n\t\t\t System.out.println(\" horasFechas \"+ horasFechas);\r\n\t\t\t long diferenciaMils = fechaFinalizo.getTime() - fechaInicio.getTime();\r\n\t\t\t //obtenemos los segundos\r\n\t\t\t long segundos = diferenciaMils / 1000;\t\t\t \r\n\t\t\t //obtenemos las horas\r\n\t\t\t long horas = segundos / 3600;\t\t\t \r\n\t\t\t //restamos las horas para continuar con minutos\r\n\t\t\t segundos -= horas*3600;\t\t\t \r\n\t\t\t //igual que el paso anterior\r\n\t\t\t long minutos = segundos /60;\r\n\t\t\t segundos -= minutos*60;\t\t\t \r\n\t\t\t System.out.println(\" horas \"+ horas +\" min\"+ minutos+ \" seg \"+ segundos );\r\n\t\t\t double tiempoTotal = Double.parseDouble(horas+\".\"+minutos);\r\n\t\t\t // actualizar cabecera \r\n\t\t\t updateHeaderOut( idtramite, fecha, hora, tiempoTotal, usuario_id);\r\n\t\t\t for (Map<?, ?> row : rows) {\r\n\t\t\t\t Map<String, Object> mapa = new HashMap<String, Object>();\r\n\t\t\t\tint idd = Integer.parseInt(row.get(\"IDD\").toString());\r\n\t\t\t\tint idtramite_d = Integer.parseInt(row.get(\"IDTRAMITE\").toString());\r\n\t\t\t\tint cantidaMaletas = Integer.parseInt(row.get(\"CANTIDAD\").toString());\r\n\t\t\t\tdouble precio = Double.parseDouble(row.get(\"PRECIO\").toString());\t\t\t\t\r\n\t\t\t\tdouble subtotal = subtotal(precio, tiempoTotal, cantidaMaletas);\r\n\t\t\t\tString tipoDescuento = \"\";\r\n\t\t\t\tdouble porcDescuento = 0;\r\n\t\t\t\tdouble descuento = descuento(subtotal, porcDescuento);\r\n\t\t\t\tdouble precioNeto = precioNeto(subtotal, descuento);\r\n\t\t\t\tdouble iva = 0;\r\n\t\t\t\tdouble montoIVA = montoIVA(precioNeto, iva);\r\n\t\t\t\tdouble precioFinal = precioFinal(precioNeto, montoIVA);\r\n\t\t\t\t//actualizar detalle\r\n\t\t\t\tupdateBodyOut( idd, idtramite_d, tiempoTotal , subtotal, tipoDescuento, porcDescuento, descuento, precioNeto, iva, montoIVA, precioFinal );\r\n\t\t\t }\r\n\t\t\t \r\n\t\t }\r\n\t\treturn update;\r\n\t}", "public static boolean compararHoraMinuto(String horaMinuto1, String horaMinuto2, String sinal) {\r\n\r\n\t\tboolean retorno = true;\r\n\r\n\t\t// Separando os valores de hora e minuto para realizar a comparação\r\n\t\tString hora1 = horaMinuto1.substring(0, 2);\r\n\t\tString minuto1 = horaMinuto1.substring(3, 5);\r\n\r\n\t\tString hora2 = horaMinuto2.substring(0, 2);\r\n\t\tString minuto2 = horaMinuto2.substring(3, 5);\r\n\r\n\t\tif (sinal.equalsIgnoreCase(\"=\")) {\r\n\t\t\tif (!Integer.valueOf(hora1).equals(Integer.valueOf(hora2))) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t} else if (!Integer.valueOf(minuto1).equals(Integer.valueOf(minuto2))) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t}\r\n\t\t} else if (sinal.equalsIgnoreCase(\">\")) {\r\n\t\t\tif (Integer.valueOf(hora1).intValue() < Integer.valueOf(hora2).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t} else if (Integer.valueOf(hora1).equals(Integer.valueOf(hora2)) && Integer.valueOf(minuto1).intValue() <= Integer.valueOf(minuto2).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (Integer.valueOf(hora2).intValue() < Integer.valueOf(hora1).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t} else if (Integer.valueOf(hora2).equals(Integer.valueOf(hora1)) && Integer.valueOf(minuto2).intValue() <= Integer.valueOf(minuto1).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "public void dayCompare(String day) throws Exception{\n List<Map<String, String>> tycDataList = getTxtTyc(day, \"D:\\\\gitwork\\\\接口\\\\对账\\\\天眼查对账\\\\549-2018.11.txt\");\n List<Map<String, String>> ixnDataList = getMySqlTyc(day);\n\n //writeFile(basePath + fileName + \".error\", errorList);\n writeFile(day + \"-tyc.txt\", tycDataList);\n writeFile(day + \"-ixn.txt\", ixnDataList);\n\n Map<String, Integer> tycKeyWordCount = new HashMap<>();\n for(int i = 0; i < tycDataList.size();i++) {\n String keyword = tycDataList.get(i).get(\"keyWord\");\n tycKeyWordCount.put(keyword, tycKeyWordCount.get(keyword) == null ? 1:tycKeyWordCount.get(keyword)+1);\n }\n\n Map<String, Integer> ixnKeyWordCount = new HashMap<>();\n for(int i = 0; i < ixnDataList.size();i++) {\n String keyword = ixnDataList.get(i).get(\"keyWord\");\n ixnKeyWordCount.put(keyword, ixnKeyWordCount.get(keyword) == null ? 1:ixnKeyWordCount.get(keyword)+1);\n }\n\n\n List<String> unEqualKeyList = new ArrayList<>();\n for(String key : tycKeyWordCount.keySet()) {\n\n if(!ixnKeyWordCount.containsKey(key)) {\n logger.info(\"爱信诺没有这个:{}\", key);\n } else {\n if(tycKeyWordCount.get(key) != ixnKeyWordCount.get(key)) {\n logger.info(\"爱信诺天眼查数量不一致:{},数量:{}\", tycKeyWordCount.get(key) + \"\\t\" + ixnKeyWordCount.get(key), key);\n unEqualKeyList.add(key);\n }\n }\n }\n\n logger.info(\"{}:{}\", tycDataList.size(), ixnDataList.size());\n\n\n for(String key : unEqualKeyList) {\n for(int i = 0; i < tycDataList.size(); i++) {\n if(key.equals(tycDataList.get(i).get(\"keyWord\"))) {\n logger.info(\"tyc:{}\", tycDataList.get(i));\n }\n }\n\n for(int i = 0; i < ixnDataList.size(); i++) {\n if(key.equals(ixnDataList.get(i).get(\"keyWord\"))) {\n logger.info(\"ixn:{}\", ixnDataList.get(i));\n }\n }\n }\n\n }", "private void checking() {\n try {\n ResultSet rs;\n Statement st;\n Connection con = db.getDBCon();\n st = con.createStatement();\n String sql = \"select * from trainset_reservation where train_no='\" + Integer.parseInt(no.getText()) + \"'\";\n rs = st.executeQuery(sql);\n boolean b = false;\n String dat0 = null;\n String dat1 = null;\n\n while (rs.next()) {\n dat0 = rs.getString(\"start_date\");\n dat1 = rs.getString(\"end_date\");\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"E MMM dd HH:mm:ss z yyyy\");\n Date f_dbdate = sdf.parse(dat0);\n Date s_dbdate = sdf.parse(dat1);\n Date f_date = s_date.getDate();\n Date s_date = e_date.getDate();\n if (f_date.getTime() < f_dbdate.getTime() && s_date.getTime() < f_dbdate.getTime()) {\n ava.setText(\"AVAILABLE\");\n }\n if (f_date.getTime() < f_dbdate.getTime() && s_date.getTime() > s_dbdate.getTime()) {\n ava.setText(\"NOT AVAILABLE\");\n break;\n }\n if (f_date.getTime() > f_dbdate.getTime() && s_date.getTime() < s_dbdate.getTime()) {\n ava.setText(\"NOT AVAILABLE\");\n break;\n }\n if (f_date.getTime() > f_dbdate.getTime() && f_date.getTime() < s_dbdate.getTime() && s_date.getTime() > s_dbdate.getTime()) {\n ava.setText(\"NOT AVAILABLE\");\n break;\n }\n if (f_date.getTime() < f_dbdate.getTime() && s_date.getTime() > f_dbdate.getTime() && s_date.getTime() < s_dbdate.getTime()) {\n ava.setText(\"NOT AVAILABLE\");\n break;\n }\n\n if (f_date.getTime() > s_dbdate.getTime() && s_date.getTime() > s_dbdate.getTime()) {\n ava.setText(\"AVAILABLE\");\n }\n\n long diffIn = Math.abs(s_date.getTime() - f_date.getTime());\n long diff = TimeUnit.DAYS.convert(diffIn, TimeUnit.MILLISECONDS);\n // t2.setText(String.valueOf(diff));\n b = true;\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void hora()\n {\n horaTotal = HoraSalida - HoraLlegada;\n\n }", "@Override\n public int compareTo(Booking other) {\n // Push new on top\n other.updateNewQuestion(); // update NEW button\n this.updateNewQuestion();\n\n\n String[] arr1 = other.time.split(\":\");\n String[] arr2 = this.time.split(\":\");\n// Date thisDate = new Date(this.getCalendarYear(), this.getCalendarMonth(), this.getCalendarDay(), Integer.getInteger(arr2[0]), Integer.getInteger(arr2[1]));\n// if (this.newQuestion != other.newQuestion) {\n// return this.newQuestion ? 1 : -1; // this is the winner\n// }\n\n\n if (this.calendarYear == other.calendarYear) {\n if (this.calendarMonth == other.calendarMonth) {\n if (this.calendarDay == other.calendarDay) {\n if (Integer.parseInt(arr2[0]) == Integer.parseInt(arr1[0])) { // hour\n if (Integer.parseInt(arr2[1]) == Integer.parseInt(arr1[1])) { // minute\n return 0;\n } else {\n return Integer.parseInt(arr1[1]) > Integer.parseInt(arr2[1]) ? -1 : 1;\n }\n } else {\n return Integer.parseInt(arr1[0]) > Integer.parseInt(arr2[0]) ? -1 : 1;\n }\n }\n else\n return other.calendarDay > this.calendarDay ? -1 : 1;\n }\n else\n return other.calendarMonth > this.calendarMonth ? -1 : 1;\n }\n else\n return other.calendarYear > this.calendarYear ? -1 : 1;\n\n\n// if (this.echo == other.echo) {\n// if (other.calendarMonth == this.calendarMonth) {\n// return 0;\n// }\n// return other.calendarMonth > this.calendarMonth ? -1 : 1;\n// }\n// return this.echo - other.echo;\n }", "protected void sortCheck() {\n if (m_instances == null) {\n return;\n }\n \n if (m_simpleConfigPanel.isUsingANativeTimeStamp()) {\n String timeStampF = m_simpleConfigPanel.getSelectedTimeStampField();\n Attribute timeStampAtt = m_instances.attribute(timeStampF); \n if (timeStampAtt != null) {\n \n double lastNonMissing = Utils.missingValue();\n boolean ok = true;\n boolean hasMissing = false;\n for (int i = 0; i < m_instances.numInstances(); i++) {\n Instance current = m_instances.instance(i);\n \n if (Utils.isMissingValue(lastNonMissing)) {\n if (!current.isMissing(timeStampAtt)) {\n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n } else {\n if (!current.isMissing(timeStampAtt)) {\n if (current.value(timeStampAtt) - lastNonMissing < 0) {\n ok = false;\n break;\n }\n \n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n }\n }\n \n if (!ok && !hasMissing) {\n // ask if we should sort\n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". Do you want to sort the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Sorting data...\");\n }\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n \n if (!ok && hasMissing) {\n // we can't really proceed in this situation. We can't sort by the timestamp\n // because instances with missing values will be put at the end of the data.\n // The only thing we can do is to remove the instances with missing time\n // stamps but this is likely to screw up the periodicity and majorly impact\n // on results.\n \n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". \\nFurthermore, there are rows with\\n\" +\n \t\t\"missing timestamp values. We can remove these\\n\" +\n \t\t\"rows and then sort the data but this is likely to\\n\" +\n \t\t\"result in degraded performance. It is strongly\\n\" +\n \t\t\"recommended that you fix these issues in the data\\n\" +\n \t\t\"before continuing. Do you want the system to proceed\\n\" +\n \t\t\"anyway by removing rows with missing timestamps and\\n\" +\n \t\t\"then sorting the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Removing rows with missing time stamps and sorting data...\");\n }\n m_instances.deleteWithMissing(timeStampAtt);\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n }\n }\n }", "public void setHoraCompra() {\n LocalTime hora=LocalTime.now();\n this.horaCompra = hora;\n }", "public static void main(String[] args) {\n\t\tint[] time1 = new int[2];// 0,0 by default\n\t\tint[] time2 = new int[2];// 0,0 by default\n\n\t\t// System.out.println(time1[0]); //0\n\n\t\ttime1[0] = 19;\n\t\ttime1[1] = 10;\n\n\t\ttime2[0] = 11;\n\t\ttime2[1] = 18;\n\n\t\t// Before comparing, check if both arrays have\n\t\t// valid hour/minute;\n\n\t\tif (time1[0] < 0 || time1[1] > 23) {\n\t\t\tSystem.out.println(\"Time1 has invalid hour\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (time1[1] < 0 || time1[1] > 59) {\n\t\t\tSystem.out.println(\"Time1 has invalid minute\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (time2[0] < 0 || time2[1] > 23) {\n\t\t\tSystem.out.println(\"Time2 has invalid hour\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (time2[1] < 0 || time2[1] > 59) {\n\t\t\tSystem.out.println(\"Time2 has invalid minute\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"*****COMPARE ARRAYS*****\");\n\t\t\n\t\t//COMPARE ARRAYS and tell which one is earlier\n\t\t\n\t\tif (time1[0] < time2[0]) {\n\t\t\tSystem.out.println(\"Time1 is earlier\");\n\t\t}else if (time2[0] < time1[0]) {\n\t\t\tSystem.out.println(\"Time2 is earlier\");\n\t\t}else { //hours are equal. check minutes\n\t\t\tif (time1[1] < time2[1]) {\n\t\t\t\tSystem.out.println(\"Time1 is earlier\");\n\t\t\t} else if (time2[1] < time1[1]) {\n\t\t\t\tSystem.out.println(\"Time2 is earlier\");\n\t\t\t}else { //minutes are equal\n\t\t\t\tSystem.out.println(\"Same time!\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public boolean baterPonto(Date dataHora) {\n\t\tSystem.out\n\t\t\t\t.println(\"Vou bater o ponto do Diretor de matricula: \" + this.matricula + \"-\" + dataHora.toString());\n\t\treturn true;\n\t}", "public int obtenerHoraMasAccesos()\n {\n int numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora = 0;\n int horaConElNumeroDeAccesosMaximo = -1;\n\n if(archivoLog.size() >0){\n for(int horaActual=0; horaActual < 24; horaActual++){\n int totalDeAccesosParaHoraActual = 0;\n //Miramos todos los accesos\n for(Acceso acceso :archivoLog){\n if(horaActual == acceso.getHora()){\n totalDeAccesosParaHoraActual++;\n }\n }\n if(numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora<=totalDeAccesosParaHoraActual){\n numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora =totalDeAccesosParaHoraActual;\n horaConElNumeroDeAccesosMaximo = horaActual;\n }\n }\n }\n else{\n System.out.println(\"No hay datos\");\n }\n return horaConElNumeroDeAccesosMaximo;\n }", "public static void main(String[] args) {\n Date dt1 = new Date();\n System.out.println(dt1);\n \n //get the milli secs in Long from January 1st 1970 00:00:00 GMT... and then create the date Obj from that\n long millisecs = System.currentTimeMillis();\n System.out.println(millisecs);\n Date dt2 = new Date(millisecs);\n System.out.println(dt2);\n System.out.println(\"=========================\");\n\n millisecs = dt2.getTime();//convert dateObj back to millisecs\n System.out.println(millisecs);\n System.out.println(\"dt2.toString(): \" + dt2.toString());\n System.out.println(\"=========================\");\n\n //check if after?\n System.out.println(dt1.after(dt2)); \n System.out.println(dt2.after(dt1));\n //check if before?\n System.out.println(dt1.before(dt2));\n System.out.println(dt2.before(dt1));\n\n\n\n System.out.println(\"=========================\");\n\n // compare 2 date Objects\n //returns 0 if the obj Date is equal to parameter's Date.\n //returns < 0 if obj Date is before the Date para.\n //returns > 0 if obj Date is after the Date para.\n int result = dt1.compareTo(dt2);\n System.out.println(\"dt1 < dt2: \" + result);\n result = dt2.compareTo(dt1);\n System.out.println(\"dt2 > dt1: \" + result);\n\n System.out.println(\"=========================\");\n\n //return true/false on testing equality\n System.out.println(dt1.equals(dt2));\n System.out.println(dt2.equals(dt1));\n System.out.println(\"=========================\");\n\n\n\n\n\n }", "protected int compareTime(Date first, Date second) {\n\t\treturn first.compareTo(second);\n\t}", "public void initialiserCompte() {\n DateTime dt1 = new DateTime(date1).withTimeAtStartOfDay();\n DateTime dt2 = new DateTime(date2).withEarlierOffsetAtOverlap();\n DateTime dtIt = new DateTime(date1).withTimeAtStartOfDay();\n Interval interval = new Interval(dt1, dt2);\n\n\n\n// while (dtIt.isBefore(dt2)) {\n while (interval.contains(dtIt)) {\n compte.put(dtIt.toDate(), 0);\n dtIt = dtIt.plusDays(1);\n }\n }", "private int sameDateCompare(Deadline other) {\n if (!this.hasTime() && other.hasTime()) {\n return -1;\n } else if (this.hasTime() && !other.hasTime()) {\n return 1;\n } else if (this.hasTime() && other.hasTime()) {\n TimeWrapper thisTimeWrapper = this.getTime();\n TimeWrapper otherTimeWrapper = other.getTime();\n return thisTimeWrapper.compareTo(otherTimeWrapper);\n }\n return 0;\n }", "private int sizeForHashTable()\n {\n String compare=\"\";\n int numberOfdates = 0;\n for (int i=0; i <= hourly.size();i++)\n {\n if (i==0)\n {\n numberOfdates +=1;\n compare = data.get(i).getFCTTIME().getPretty();\n }else if(compare != data.get(i).getFCTTIME().getPretty())\n {\n numberOfdates+=1;\n compare = data.get(i).getFCTTIME().getPretty();\n }\n }\n return numberOfdates;\n }", "private synchronized boolean ProvjeriNoviDatum(Timestamp datum) {\n boolean doKraja = false;\n String datumKraj = konf.getKonfig().dajPostavku(\"preuzimanje.kraj\");\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd.MM.yyyy\");\n Date datumProvjere = new Date(datum.getTime());\n try {\n Date date = formatter.parse(datumKraj);\n if (date.equals(datumProvjere)) {\n doKraja = true;\n }\n } catch (ParseException ex) {\n\n }\n return doKraja;\n }", "public void verifyDate(){\n\n // currentDateandTime dataSingleton.getDay().getDate();\n\n }", "public void consultaTest() throws Exception{\n\t\t\n\t ResultSet rs = statement.executeQuery(\"select * from statistics\");\n\t \n\t \n\t while(rs.next())\n\t {\n\t\t \n\t\t DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss.SSS\");\n\t\t Date date = df.parse(rs.getString(\"timeActual\"));\n\t\t Calendar cal = Calendar.getInstance();\n\t\t cal.setTime(date);\n\t\t \n\t\t String completoDay = cal.get(Calendar.YEAR)+\"-\"+(cal.get(Calendar.MONTH) + 1)+\"-\"+ cal.get(Calendar.DAY_OF_MONTH);\n\t\t \n\t System.out.println(\"id= \" + rs.getInt(\"id\") + \" memory= \" + rs.getInt(\"memory\") + \" cpu= \" \n\t \t+ rs.getInt(\"cpu\") + \" timeActual= \" + completoDay);\n\t }\n\t \n\t if(rs != null)\n\t\t rs.close();\n\t \n\t if(connection != null)\n\t connection.close();\n\t \n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(System.currentTimeMillis()); // Quantos Milisegundos desde data 01/01/1970\n\t\t\n\t\t// Data Atual\n\t\tDate agora = new Date();\n\t\tSystem.out.println(\"Data Atual: \"+agora);\n\t\t\n\t\tDate data = new Date(1_000_000_000_000L);\n\t\tSystem.out.println(\"Data com 1.000.000.000.000ms: \"+data);\n\t\t\n\t\t// METODOS\n\t\tdata.getTime();\n\t\tdata.setTime(1_000_000_000_000L);\n\t\tSystem.out.println(data.compareTo(agora)); // -1 para anterior, 0 para igual, +1 para posterior\n\t\t\n\t\t// GregorianCalendar\n\t\tCalendar c = Calendar.getInstance();\n\t\tc.set(1980, Calendar.FEBRUARY, 12);\n\t\tSystem.out.println(c.getTime());\n\t\tSystem.out.println(c.get(Calendar.YEAR)); // Ano\n\t\tSystem.out.println(c.get(Calendar.MONTH)); // Mes 0 - 11\n\t\tSystem.out.println(c.get(Calendar.DAY_OF_MONTH)); // Dia do mes\n\t\t\n\t\tc.set(Calendar.YEAR,2016); // Altera o Ano\n\t\tc.set(Calendar.MONTH, 10); // Altera o Mes 0 - 11\n\t\tc.set(Calendar.DAY_OF_MONTH, 24); // Altera o Dia do mes\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.clear(Calendar.MINUTE); // limpa minutos\n\t\tc.clear(Calendar.SECOND); // limpa segundos\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.add(Calendar.DAY_OF_MONTH,1); // adiciona dias (avança o mes e ano)\n\t\tc.add(Calendar.YEAR,1); // adiciona o ano \n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.roll(Calendar.DAY_OF_MONTH,20); // adiciona dias (não avança o mes e ano)\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\t// Saudação com Bom dia, Boa arde ou Boa noite\n\t\tCalendar c1 = Calendar.getInstance();\n\t\tint hora = c1.get(Calendar.HOUR_OF_DAY);\n\t\tSystem.out.println(hora);\n\t\tif(hora <= 12){\n\t\t\tSystem.out.println(\"Bom Dia\");\n\t\t} else if(hora > 12 && hora < 18){\n\t\t\tSystem.out.println(\"Boa Tarde\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Boa Noite\");\n\t\t}\n\t\t\n\n\t}", "public boolean comprobarReservaSimultaneaUsuario(String id_usuario, Timestamp horaInicio) {\r\n\t\ttry {\r\n\t\t\tConnection con = conectar();\r\n\t\t\tPreparedStatement ps = con.prepareStatement(\r\n\t\t\t\t\t\"SELECT R.ID_RESERVA FROM RESERVA r WHERE r.ID_USUARIO = ? AND r.HORA_INICIO = ?\");\r\n\t\t\tps.setString(1, id_usuario);\r\n\t\t\tps.setTimestamp(2, horaInicio);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\trs.close();\r\n\t\t\t\tps.close();\r\n\t\t\t\tcon.close();\r\n\t\t\t\treturn false;\r\n\t\t\t} else {\r\n\t\t\t\trs.close();\r\n\t\t\t\tps.close();\r\n\t\t\t\tcon.close();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Test\n public void testFindSinceCreationTime() {\n MeteringDataSec meteringData2 = new MeteringDataSec(new Timestamp(2), new BigDecimal(\"1\"), null, null, 0L);\n meteringDataRepository.save(meteringData2);\n MeteringDataSec meteringData3 = new MeteringDataSec(new Timestamp(3), new BigDecimal(\"2\"), null, null, 0L);\n meteringDataRepository.save(meteringData3);\n\n \tList<MeteringDataSec> list = meteringDataRepository.findSinceCreationTime(new Timestamp(2));\n \tassertNotNull(list);\n \tassertThat(list).hasSize(2);\n }", "public void realTimeUpdate() {\n if ( millis() - lastTime >= 60000 ) {\n // *Load all_hour data\n eqData.init(hourURL);\n eqData.update(hour);\n println( \"all_hour data updated!\" );\n isHour = true;\n lastTime = millis();\n }\n}", "@Override\n public int compareTo(EmailVO emailVO) {\n int result = 0;\n if (data!=null) {\n if (emailVO.getData()!=null) {\n if (this.data.getTime() > emailVO.getData().getTime()) {\n result = 1;\n }\n }\n }\n return result;\n }", "public int VerifierPlagesHorairesUneLiv(Livraison liv) {\r\n\t\t// juste checker si l'horaire d'arrivee fait partie de la ph\r\n\t\t// valeur 0 : pas d'attente et pas tendu --> bleu\r\n\t\t// valeur 1 : pas d'attente et tendu --> orange\r\n\t\t// valeur 2 : attente --> PURPLE\r\n\t\t// valeur 3 : plage horaire violee --> rouge\r\n\r\n\t\tint valeurPH = 0;\r\n\r\n\t\tfor (Livraison l : getListeLivraison()) {\r\n\t\t\tif (l.toString().equals(liv.toString())) {\r\n\t\t\t\tliv = l;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tDate[] tempsPassage = getTempsPassage()[getListeLivraison().indexOf(liv)];\r\n\r\n\t\tboolean attente = true;\r\n\t\tDate horaireArr = tempsPassage[0];\r\n\r\n\t\tif (liv.getDebutPlageHoraire() != null && liv.getFinPlageHoraire() != null) {\r\n\t\t\tDate debutPH = liv.getDebutPlageHoraire();\r\n\t\t\tDate finPH = liv.getFinPlageHoraire();\r\n\t\t\tDate tempsRestantAvantFinPHdate = new Date(finPH.getTime() - horaireArr.getTime());\r\n\t\t\tlong tempsRestantAvantFinPH = tempsRestantAvantFinPHdate.getTime();\r\n\r\n\t\t\t// arrive apres DPH et avant FPH donc n'attend pas\r\n\t\t\tif (horaireArr.getTime() >= debutPH.getTime() && horaireArr.getTime() < finPH.getTime()) {\r\n\t\t\t\tattente = false;\r\n\t\t\t}\r\n\r\n\t\t\tif (attente == false && tempsRestantAvantFinPH > 30 * 60000 + liv.getDuree() * 1000) { // pas\r\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// d'attente\r\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// et\r\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// pas\r\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// tendu\r\n\t\t\t\tvaleurPH = 0;\r\n\t\t\t}\r\n\r\n\t\t\tif (attente == false && tempsRestantAvantFinPH <= 30 * 60000 + liv.getDuree() * 1000) { // pas\r\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// d'attente\r\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// et\r\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// tendu\r\n\t\t\t\tvaleurPH = 1;\r\n\t\t\t}\r\n\r\n\t\t\tif (attente == true && tempsRestantAvantFinPH >= liv.getDuree() * 1000) { // attente\r\n\t\t\t\tvaleurPH = 2;\r\n\t\t\t}\r\n\r\n\t\t\tif (tempsRestantAvantFinPH < liv.getDuree() * 1000) {// plage violee\r\n\t\t\t\tvaleurPH = 3;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tvaleurPH = 0;\r\n\t\t}\r\n\r\n\t\treturn valeurPH;\r\n\r\n\t}", "public int compare(TimeEntry t1, TimeEntry t2) {\n\t\t\t\t\treturn t1.getTime().compareTo(t2.getTime());\n\t\t\t\t//return 1;\n\t\t\t }", "public static int obterQtdeHorasEntreDatas(Date dataInicial, Date dataFinal) {\r\n\t\tCalendar start = Calendar.getInstance();\r\n\t\tstart.setTime(dataInicial);\r\n\t\t// Date startTime = start.getTime();\r\n\t\tif (!dataInicial.before(dataFinal))\r\n\t\t\treturn 0;\r\n\t\tfor (int i = 1;; ++i) {\r\n\t\t\tstart.add(Calendar.HOUR, 1);\r\n\t\t\tif (start.getTime().after(dataFinal)) {\r\n\t\t\t\tstart.add(Calendar.HOUR, -1);\r\n\t\t\t\treturn (i - 1);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public int compare(Hive o1, Hive o2) {\n if ((o1 == null) && (o2 != null))\n return -1;\n else if ((o1 != null) && (o2 == null))\n return 1;\n else if ((o1 == null) && (o2 == null))\n return 0;\n\n long d1 = 0;\n long d2 = 0;\n\n if (o1.getCreationDate() != null)\n d1 = o1.getCreationDate().getTime();\n if (o2.getCreationDate() != null)\n d2 = o2.getCreationDate().getTime();\n\n long res = d2-d1;\n\n return ((res > Integer.MAX_VALUE)?Integer.MAX_VALUE:((res < Integer.MIN_VALUE)?Integer.MIN_VALUE:((res==0)?o1.getNameUrl().compareToIgnoreCase(o2.getNameUrl()):(int)res)));\n }", "public java.sql.ResultSet consultaporhorafecha(String hora,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where phm.horas='\"+hora+\"' and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporhorafecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "private int[] comparaSeAtaqueGanhouNoDado() {\n int size_ataque;\n int size_defesa;\n\n if (dadosAtaque[1] == 0) {\n size_ataque = 1;\n } else if (dadosAtaque[2] == 0) {\n size_ataque = 2;\n } else {\n size_ataque = 3;\n }\n\n if (dadosDefesa[1] == 0) {\n size_defesa = 1;\n } else if (dadosDefesa[2] == 0) {\n size_defesa = 2;\n } else {\n size_defesa = 3;\n }\n\n int[] resultado = new int[Math.max(size_defesa, size_ataque)];\n\n for (int i = resultado.length - 1; i >= 0; i--) {\n\n if (dadosAtaque[i] > 0 && dadosDefesa[i] > 0) {\n if (dadosAtaque[i] > dadosDefesa[i]) {\n resultado[i] = 1;\n } else {\n resultado[i] = 0;\n }\n } else {\n resultado[i] = 2;\n }\n }\n return resultado;\n }", "private int compareTimes(String time1, String time2) {\n \n String[] timeOneSplit = time1.trim().split(\":\");\n String[] timeTwoSplit = time2.trim().split(\":\");\n \n \n if (timeOneSplit.length == 2 && timeTwoSplit.length == 2) {\n \n String[] minutesAmPmSplitOne = new String[2];\n minutesAmPmSplitOne[1] = timeOneSplit[1].trim().substring(0, timeOneSplit[1].length() - 2);\n minutesAmPmSplitOne[1] = timeOneSplit[1].trim().substring(timeOneSplit[1].length() - 2, timeOneSplit[1].length());\n\n String[] minutesAmPmSplitTwo = new String[2];\n minutesAmPmSplitTwo[1] = timeTwoSplit[1].trim().substring(0, timeTwoSplit[1].length() - 2);\n minutesAmPmSplitTwo[1] = timeTwoSplit[1].trim().substring(timeTwoSplit[1].length() - 2, timeTwoSplit[1].length());\n \n int hourOne = Integer.parseInt(timeOneSplit[0]);\n int hourTwo = Integer.parseInt(timeTwoSplit[0]);\n \n //increment hours depending on am or pm\n if (minutesAmPmSplitOne[1].trim().equalsIgnoreCase(\"pm\")) {\n hourOne += 12;\n }\n if (minutesAmPmSplitTwo[1].trim().equalsIgnoreCase(\"pm\")) {\n hourTwo += 12;\n }\n \n if (hourOne < hourTwo) {\n \n return -1;\n }\n else if (hourOne > hourTwo) {\n \n return 1;\n }\n else {\n \n int minutesOne = Integer.parseInt(minutesAmPmSplitOne[0]);\n int minutesTwo = Integer.parseInt(minutesAmPmSplitTwo[0]);\n \n if (minutesOne < minutesTwo) {\n \n return -1;\n }\n else if (minutesOne > minutesTwo) {\n \n return 1;\n }\n else {\n \n return 0;\n }\n }\n }\n //time1 exists, time 2 doesn't, time 1 comes first!\n else if (timeOneSplit.length == 2 && timeTwoSplit.length != 2) {\n return -1;\n }\n else {\n return 1;\n }\n }", "public void ReservaEfetivadas () {\n Date hoje = new Date ();\n for (int z = 0; z < vecReserva.size(); z++) {\n if (((int) ((((entReserva)vecReserva.elementAt(z)).getDatain().getTime() - (hoje.getTime())) / 86400000L)) == 0){// Reserva será relaizada hj\n if (((entReserva)vecReserva.elementAt(z)).getPagamento().getSituacao() == 0){//Cliente fez todo o pagamento e o quarto será\n vecReservaEfetivadas.add(vecReserva.elementAt(z));\n }\n \n }\n }\n }", "private boolean compareMomenta(int[] a, int[] b){\n return ((a[0] == b[0]) &&\n (a[1]) == b[1]) ;\n }", "public void run() {\r\n\t\tDate fechaActual = new Date();\r\n\t\ttry {\r\n\t\t\t// Actual\r\n\t\t\tint horaActual = Integer.parseInt(ManipulacionFechas\r\n\t\t\t\t\t.getHora(fechaActual));\r\n\t\t\tint minutosActual = Integer.parseInt(ManipulacionFechas\r\n\t\t\t\t\t.getMinutos(fechaActual));\r\n\r\n\t\t\tint horaInicialRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"HORA_INICIAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\t\t\tint minutosInicialRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"MINUTOS_INICIAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\r\n\t\t\tint horaFinalRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"HORA_FINAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\t\t\tint minutosFinalRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"MINUTOS_FINAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\r\n\t\t\t// Tiempo Actual en Minutos\r\n\t\t\tint tiempoActual = (horaActual * 60) + minutosActual;\r\n\r\n\t\t\t// Tiempos de Rango de Ejecucion en Minutos\r\n\t\t\tint rangoInicial = (horaInicialRangoEjecucion * 60)\r\n\t\t\t\t\t+ minutosInicialRangoEjecucion;\r\n\t\t\tint rangoFinal = (horaFinalRangoEjecucion * 60)\r\n\t\t\t\t\t+ minutosFinalRangoEjecucion;\r\n\r\n\t\t\t// Pregunta si la hora actual esta dentro del rango de ejecucion de\r\n\t\t\t// la tarea\r\n\t\t\tif ((tiempoActual >= rangoInicial) && (tiempoActual <= rangoFinal)) {\r\n\t\t\t\tDate start = new Date();\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Corriendo proceso automatico Cobro de Ciat Casa Ciat : \"\r\n\t\t\t\t\t\t\t\t+ start + \"----\");\r\n\t\t\t\tnew BillingAccountServiceImpl().CobroCiatCasaCiat();\r\n\r\n\t\t\t\tDate end = new Date();\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Termina proceso Envio de notificaciones automaticas Cobro de Ciat Casa Ciat \"\r\n\t\t\t\t\t\t\t\t+ start + \"----\");\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(end.getTime()\r\n\t\t\t\t\t\t\t\t- start.getTime()\r\n\t\t\t\t\t\t\t\t+ \" total milliseconds en realizar tarea automatica Cobro de Ciat Casa Ciat : \");\r\n\r\n\t\t\t}// Fin if\r\n\t\t\telse {\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Tarea Automatica de notificacion Cobro de Ciat Casa Ciat en espera... \"\r\n\t\t\t\t\t\t\t\t+ new Date() + \" ----\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog\r\n\t\t\t\t\t.error(\"Error RUN Tarea Automatica de notificacion Cobro de Ciat Casa Ciat: \"\r\n\t\t\t\t\t\t\t+ e.getMessage());\r\n\t\t}\r\n\r\n\t\tfechaActual = null;\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tCTime a = new CTime(2013,15,28,13,24,56);\n\t\tCTime b = new CTime(2013,0,28,13,24,55);\n\t\ta.getTimeVerbose();\n\t\ta.getTime();\n\t\ta.compare(b);\n\t\ta.setTime(2014,8,16,13,24,55);\n\t\ta.getTime();\n\t}", "public int verifierHoraire(String chaine){\r\n\t\t//System.out.println(\"chaine : \"+chaine);\r\n\t\tString tabHoraire[] = chaine.split(\":\");\r\n\t\t\r\n\t\tif((Integer.parseInt(tabHoraire[0]) < AUTO_ECOLE_OUVERTURE ) || (Integer.parseInt(tabHoraire[0])> AUTO_ECOLE_FERMETURE)){\r\n\t\t\treturn -6;\r\n\t\t}\r\n\t\tif((Integer.parseInt(tabHoraire[1]) < 0 ) || (Integer.parseInt(tabHoraire[1]) >= 60 )){\r\n\t\t\treturn -7;\r\n\t\t}\r\n\t\t\r\n\t\t return 0;\r\n\t}", "public static void main(String[] args) {\n int horaSalida;\n int minutosSalida;\n int horaLlegada;\n int minutosLlegada;\n //Salida:\n int duracion;\n //condiciones y restricciones: el vuelo puede pasar de medianoche y no dura mas de 24h\n Scanner sc = new Scanner(System.in);\n do {\n System.out.println(\"Ingrese la hora de salida\");\n horaSalida = sc.nextInt();\n System.out.println(\"Ingrese los minutos\");\n minutosSalida = sc.nextInt();\n\n System.out.println(\"Ingrese la hora de llegada\");\n horaLlegada = sc.nextInt();\n System.out.println(\"Ingrese los minutos\");\n minutosLlegada = sc.nextInt();\n if (horaSalida > 24 || horaLlegada > 24 || minutosSalida > 60 || minutosLlegada > 60) {\n System.out.println(\"Los datos no han sido ingresados correctamente, vuelva a intentarlo\");\n }\n } while (horaSalida > 24 || horaLlegada > 24 || minutosSalida > 60 || minutosLlegada > 60);\n\n //Conversion de horas y minutos en solo minutos 19<2\n if (horaSalida > horaLlegada) {//caso 1\n horaLlegada = 24 + horaLlegada;//para poder restarlo a eso las h y m de salida\n }\n if (horaLlegada == horaSalida && (minutosSalida > minutosLlegada || minutosSalida == minutosLlegada)) {//caso 2\n horaLlegada = 24 + horaLlegada;//para poder restarlo a eso las h y m de salida\n }\n duracion = ((horaLlegada * 60) + minutosLlegada) - ((horaSalida * 60) + minutosSalida);\n\n if (duracion >= 1440) {//24*60=1440 si se pasa esto significa que el vuelo dura mas de 24h ex: 3:41 y llego 3:20\n System.out.print(\"El vuelo no puede durar mas de 24 horas \");\n } else {\n System.out.print(\"La duracion del vuelo es \" + duracion + \" minutos o \");\n //CODICIONES PARA EL AFFICHAGE\n if ((duracion / 60) < 10) {\n System.out.print(\"0\");\n }\n System.out.print(duracion / 60 + \"h\");\n\n if ((duracion % 60) < 10) {\n System.out.print(\"0\");\n }\n System.out.print(duracion % 60 + \"m\");\n }\n }", "public boolean compararRut(String dato1, SisCliente sCliente){\r\n for(int i=0; i<sCliente.listaClientes.size(); i++){\r\n if(dato1.equals(sCliente.listaClientes.get(i).getRut())){\r\n System.out.println(\"RUT encontrado\");\r\n existe = true;\r\n break;\r\n }else{\r\n System.out.println(\"RUT no encontrado\");\r\n existe = false;\r\n } \r\n }\r\n return existe;\r\n }", "public void calcularCost() {\r\n cost = 0;\r\n int a = 0;\r\n try {\r\n String r = DataR.toString()+ \" \" + horaR;\r\n String d = DataD.toString()+ \" \" + horaD;\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\r\n Date dateR = simpleDateFormat.parse(r);\r\n Date dateD = simpleDateFormat.parse(d);\r\n a = (int) ((dateD.getTime() - dateR.getTime())/(1000*3600));\r\n \r\n \r\n } catch (ParseException ex) {\r\n Logger.getLogger(Reserva.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if(a > 24) {\r\n cost += 15*(a/(24));\r\n a -= (((int)(a/24))*24);\r\n }\r\n if(a%3600 == 0) {\r\n cost += 1;\r\n }\r\n if(a%3600 > 0) {\r\n cost += 1;\r\n }\r\n \r\n }", "private void validarhorarioconotroshorariosactivos(HorarioAsignado horarioasignado, List<HorarioAsignado> horarios) throws LogicaException, ParseException, DatoException {\nGregorianCalendar startasignado=new GregorianCalendar();\nDate startdateasignado= new Date(horarioasignado.getValidezinicio().getTime());\nstartasignado.setTime(startdateasignado);\nGregorianCalendar endasignado=new GregorianCalendar();\nDate enddateasignado= new Date(horarioasignado.getValidezfin().getTime());\nendasignado.setTime(enddateasignado);\n\nint tempfrecasignado = horarioasignado.getHorario().getIdfrecuenciaasignacion().intValue();\nList<Integer> diadelasemanaasignado = diadelasemana(tempfrecasignado);\nList<HashMap<String, Object>> dataasignado = Util.diferenciaEnDiasconFrecuencia(startasignado, endasignado,diadelasemanaasignado,tempfrecasignado);\n\n\n\n\nfor(HorarioAsignado ho:horarios){\n\t\t\tif(ho.getIdhorarioasignado().equals(horarioasignado.getIdhorarioasignado())){\n\t\t\t\n\t\t\t}else{\n\t\t\tif(ho.getIdhorario()==horarioasignado.getIdhorario()){\n\t\t\t\n\t\t\t/*//cedulasconhorarios.add(em);\n\t\t\tif (horarioasignado.getValidezinicio().after(ho.getValidezinicio()) && horarioasignado.getValidezinicio().before(ho.getValidezfin())){\n\t\t\tthrow new LogicaException(\"este contrato ya tiene asociado ese horario\"\n\t\t\t+ \" entre las fechas \"+ho.getValidezinicio()+\" y \"+ ho.getValidezfin());\n\t\t\t\n\t\t\t}*/\n\t\t\t\n\t\t\t}else{\n\t\t\t\n\t\t\t}\n\n\t\tContrato contrato = contratoEJB.getContratosporId(ho.getIdcontrato());\n\t\tEmpleadoBean empleado = empleadoEJB.buscarEmpleadosporId(contrato.getIdempleado());\t\n\tGregorianCalendar start=new GregorianCalendar();\n\tDate startdate= new Date(ho.getValidezinicio().getTime());\n\tstart.setTime(startdate);\n\tGregorianCalendar end=new GregorianCalendar();\n\tDate enddate= new Date(ho.getValidezfin().getTime());\n\tend.setTime(enddate);\n\t\n\tint tempfrec = ho.getHorario().getIdfrecuenciaasignacion().intValue();\n\tList<Integer> diadelasemana = diadelasemana(tempfrec);\n\tList<HashMap<String, Object>> data = Util.diferenciaEnDiasconFrecuencia(start, end,diadelasemana,tempfrec);\n\t\n\t\t\t\t\tfor(HashMap<String, Object> diadehorario:data){\n\t\t\t\tHashMap<String, Object> horariofechas=new HashMap<String, Object>();\n\t\t\t\tGregorianCalendar fecha = (GregorianCalendar)diadehorario.get(\"fecha\");\n\t\t\t\tDate fechadat =fecha.getTime();\n\t\t\t\tGregorianCalendar fechafin = (GregorianCalendar)diadehorario.get(\"fechafin\");\n\t\t\t\tDate fechafindat = fechafin.getTime();\n\t\t\t\tfor(HashMap<String, Object> diaasignado:dataasignado){\n\t\t\t\t\t\tHashMap<String, Object> horariofechasasignadas=new HashMap<String, Object>();\n\t\t\t\t\t\tGregorianCalendar fechaasignada = (GregorianCalendar)diaasignado.get(\"fecha\");\n\t\t\t\t\t\tDate fechaasignadadat =fechaasignada.getTime();\n\t\t\t\t\t\tGregorianCalendar fechafinasignada = (GregorianCalendar)diaasignado.get(\"fechafin\");\n\t\t\t\t\t\tDate fechafinasignadadat = fechafinasignada.getTime();\n\t\t\t\t\t\t\t\t\tif(fechaasignada.after(fechafin)){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif((fechaasignada.getTime().after(fecha.getTime())||fechaasignada.getTime().equals(fecha.getTime())) && fechaasignada.getTime().before(fechafin.getTime()) ){\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//\tif((fechaasignada.getTime().after(fecha.getTime()) && fechaasignada.getTime().before(fechafin.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\") +\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\t\tif((fechafinasignada.getTime().after(fecha.getTime())||fechafinasignada.getTime().equals(fecha.getTime())) && fechafinasignada.getTime().before(fechafin.getTime()) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif((fecha.getTime().after(fechaasignada.getTime() ) && fecha.getTime().before(fechafinasignada.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\t\tif((fechafin.getTime().after(fechaasignada.getTime() ) && fechafin.getTime().before(fechafinasignada.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\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\n}\n\n\n}\n\n\n/////////////////////////fin validacion/\n}", "boolean wasSooner (int[] date1, int[] date2) {\n\n// loops through year, then month, then day if previous value is the same\n for (int i = 2; i > -1; i--) {\n if (date1[i] > date2[i])\n return false;\n if (date1[i] < date2[i])\n return true;\n }\n return true;\n }", "private static int compareDateTime(XMLGregorianCalendar dt1, XMLGregorianCalendar dt2) {\n // Returns codes are -1/0/1 but also 2 for \"Indeterminate\"\n // which occurs when one has a timezone and one does not\n // and they are less then 14 hours apart.\n\n // F&O has an \"implicit timezone\" - this code implements the XMLSchema\n // compare algorithm.\n\n int x = dt1.compare(dt2) ;\n return convertComparison(x) ;\n }", "public void calculateTimeDifferences() {\n\n findExits();\n\n try {\n\n\n if (accumulate.size() > 0) {\n\n for (int i = 1; i < accumulate.size() - 1; i++) {\n if (accumulate.get(i).value > accumulate.get(i - 1).value\n && timeOfExists.size() > 0) {\n\n double timeOfEntry = accumulate.get(i).timeOfChange;\n double timeOfExit = timeOfExists.get(0);\n\n timeOfExists.remove(timeOfExit);\n timeOfChanges.add(timeOfExit - timeOfEntry);\n }\n\n }\n }\n } catch (IndexOutOfBoundsException exception) {\n LOG_HANDLER.logger.severe(\"calculateTimeDifferences \"\n + \"Method as thrown an OutOfBoundsException: \"\n + exception\n + \"Your timeOfChanges seems to be null\");\n }\n }", "@Override\n\t\t\t\tpublic int compare(StatisticsItemData o1, StatisticsItemData o2) {\n\t\t\t\t\treturn o2.getDate().compareTo(o1.getDate());\n\t\t\t\t}", "public static int compareWithToday(String dat) {\r\n int cmpResult = -11111; // ERROR\r\n try {\r\n HISDate d = HISDate.valueOf(dat);\r\n HISDate today = HISDate.getToday();\r\n cmpResult = d.compare(today);\r\n } catch (Exception e) {\r\n logger.error(\"compareWithToday(): Ungültiges Datum: \" + dat);\r\n cmpResult = -11111;\r\n }\r\n return cmpResult;\r\n }", "private void procurarData() {\n if (jDateIni.getDate() != null && jDateFim.getDate() != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String data = sdf.format(jDateIni.getDate());\n String data2 = sdf.format(jDateFim.getDate());\n carregaTable(id, data, data2);\n JBreg.setEnabled(false);\n }\n }", "private boolean checkTime(){\n\t\treturn false;\r\n\t}", "@Scheduled(fixedRate = 19000)\n public void tesk() {\n\t\tDateFormat df = new SimpleDateFormat(\"MM/dd/yyyy\");\n DateFormat tf =new SimpleDateFormat(\"HH:mm\");\n\t\t// Get the date today using Calendar object.\n\t\tDate today = Calendar.getInstance().getTime(); \n\t\t// Using DateFormat format method we can create a string \n\t\t// representation of a date with the defined format.\n\t\tString reportDate = df.format(today);\n\t\tString repo = tf.format(today);\n\t\tSystem.out.println(\"Report Date: \" + reportDate);\n \n\t\t List<Tacher> tacher= tacherservice.findBydatetime(today, repo);\n\t\t\n\t\t if (tacher!=null){\t \n \t\t for(int i=0; i<tacher.size(); i++) {\n \t\t\t Tacher current = tacher.get(i);\n \t\t\t System.out.println(\"Tacher: \" + current.getId()+\" Statut=\"+current.getStatut()); \n \t\t tacherservice.metajourtacher(current.getId());\n \t\t System.out.println(\"Tacher: \" + current.getId()+\" Statut=\"+current.getStatut());\n \t\t } ///// fermeteur de for \n\t\t }//fermeteur de if\n\t}", "public static int compareDates(String date1, String date2) {\r\n int cmpResult = -11111; // ERROR\r\n try {\r\n HISDate d1 = HISDate.valueOf(date1);\r\n HISDate d2 = HISDate.valueOf(date2);\r\n cmpResult = d1.compare(d2);\r\n } catch (Exception e) {\r\n logger.error(\"compareDates(): Mindestens einer der zwei Datumswerte ist ungueltig: \" + date1 + \", \" + date2);\r\n cmpResult = -11111;\r\n }\r\n return cmpResult;\r\n }", "private int compararEntradas (Entry<K,V> e1, Entry<K,V> e2)\r\n\t{\r\n\t\treturn (comp.compare(e1.getKey(),e2.getKey()));\r\n\t}", "public Schedule Compare(Person user1, Person user2) {\r\n Schedule result = new Schedule();\r\n Schedule schedule1 = user1.getUserSchedule();\r\n Schedule schedule2 = user2.getUserSchedule();\r\n HashMap<Integer, String> monday1 = schedule1.schedule.get(\"Monday\");\r\n HashMap<Integer, String> monday2 = schedule2.schedule.get(\"Monday\");\r\n for (int i = 0; i <= 23; ++i) {\r\n HashMap<Integer, String> mondayCompare = result.schedule.get(\"Monday\");\r\n if (monday1.get(i) != null || monday2.get(i) != null){\r\n mondayCompare.put(i, \"busy\");\r\n }\r\n }\r\n HashMap<Integer, String> tuesday1 = schedule1.schedule.get(\"Tuesday\");\r\n HashMap<Integer, String> tuesday2 = schedule2.schedule.get(\"Tuesday\");\r\n for (int i = 0; i <= 23; ++i) {\r\n HashMap<Integer, String> tuesdayCompare = result.schedule.get(\"Tuesday\");\r\n if (tuesday1.get(i) != null || tuesday2.get(i) != null){\r\n tuesdayCompare.put(i, \"busy\");\r\n }\r\n }\r\n HashMap<Integer, String> wednesday1 = schedule1.schedule.get(\"Wednesday\");\r\n HashMap<Integer, String> wednesday2 = schedule2.schedule.get(\"Wednesday\");\r\n for (int i = 0; i <= 23; ++i) {\r\n HashMap<Integer, String> wednesdayCompare = result.schedule.get(\"Wednesday\");\r\n if (wednesday1.get(i) != null || wednesday2.get(i) != null){\r\n wednesdayCompare.put(i, \"busy\");\r\n }\r\n }\r\n HashMap<Integer, String> thursday1 = schedule1.schedule.get(\"Thursday\");\r\n HashMap<Integer, String> thursday2 = schedule2.schedule.get(\"Thursday\");\r\n for (int i = 0; i <= 23; ++i) {\r\n HashMap<Integer, String> thursdayCompare = result.schedule.get(\"thursday\");\r\n if (thursday1.get(i) != null || thursday2.get(i) != null){\r\n thursdayCompare.put(i, \"busy\");\r\n }\r\n }\r\n HashMap<Integer, String> friday1 = schedule1.schedule.get(\"Friday\");\r\n HashMap<Integer, String> friday2 = schedule2.schedule.get(\"Friday\");\r\n for (int i = 0; i <= 23; ++i) {\r\n HashMap<Integer, String> fridayCompare = result.schedule.get(\"Friday\");\r\n if (friday1.get(i) != null || friday2.get(i) != null){\r\n fridayCompare.put(i, \"busy\");\r\n }\r\n }\r\n HashMap<Integer, String> saturday1 = schedule1.schedule.get(\"Saturday\");\r\n HashMap<Integer, String> saturday2 = schedule2.schedule.get(\"Saturday\");\r\n for (int i = 0; i <= 23; ++i) {\r\n HashMap<Integer, String> saturdayCompare = result.schedule.get(\"Saturday\");\r\n if (saturday1.get(i) != null || saturday2.get(i) != null){\r\n saturdayCompare.put(i, \"busy\");\r\n }\r\n }\r\n HashMap<Integer, String> sunday1 = schedule1.schedule.get(\"Sunday\");\r\n HashMap<Integer, String> sunday2 = schedule2.schedule.get(\"Sunday\");\r\n for (int i = 0; i <= 23; ++i) {\r\n HashMap<Integer, String> sundayCompare = result.schedule.get(\"Sunday\");\r\n if (sunday1.get(i) != null || sunday2.get(i) != null){\r\n sundayCompare.put(i, \"busy\");\r\n }\r\n }\r\n return result;\r\n }", "public void actualiser(){\n try{\n \t\n /* Memo des variables : horaireDepart tableau de string contenant l'heure de depart entree par l'user\n * heure = heure saisie castee en int, minutes = minutes saisie castee en Integer\n * tpsRest = tableau de string contenant la duree du cours en heure entree par l'user\n * minutage = format minutes horaire = format heure, ils servent a formater les deux variables currentTime qui recuperent l'heure en ms\n * tempsrestant = variable calculant le temps restant en minutes, heurerestante = variable calculant le nombre d'heure restantes\n * heureDuree = duree du cours totale en int minutesDuree = duree totale du cours en minute\n * tempsfinal = temps restant reel en prenant en compte la duree du cours\n * angle = temps radian engleu = temps en toDegrees\n */\n String[] horaireDepart = Reader.read(saisie.getText(), this.p, \"\\\\ \");\n \n //on check si le pattern est bon et si l'utilisateur n'est pas un tard\n if(Reader.isHour(horaireDepart)){\n \t\n int heure = Integer.parseInt(horaireDepart[0]);\n int minutes = Integer.parseInt(horaireDepart[2]);\n minutes += (heure*60);\n String[] tpsrest = Reader.read(format.getText(), this.p, \"\\\\ \");\n \n //conversion de la saisie en SimpleDateFormat pour les calculs\n SimpleDateFormat minutage = new SimpleDateFormat (\"mm\");\n SimpleDateFormat Horaire = new SimpleDateFormat (\"HH\");\n \n //recupere l'heure en ms\n Date currentTime_1 = new Date(System.currentTimeMillis());\n Date currentTime_2 = new Date(System.currentTimeMillis());\n \n //cast en int pour les calculs\n int tempsrestant = Integer.parseInt(minutage.format(currentTime_1));\n int heurerestante = Integer.parseInt(Horaire.format(currentTime_2))*60;\n tempsrestant += heurerestante;\n \n //pareil mais pour la duree\n if(Reader.isHour(tpsrest)){\n int heureDuree = Integer.parseInt(tpsrest[0]);\n int minutesDuree = Integer.parseInt(tpsrest[2]);\n minutesDuree += (heureDuree*60);\n tempsrestant -= minutes;\n int tempsfinal = minutesDuree - tempsrestant;\n \n //conversion du temps en angle pour l'afficher \n double angle = ((double)tempsfinal*2/(double)minutesDuree)*Math.PI;\n int engleu = 360 - (int)Math.toDegrees(angle);\n for(int i = 0; i < engleu; i++){\n this.panne.dessineLine(getGraphics(), i);\n }\n \n //conversion du temps en pi radiant pour l'affichage\n if(tempsfinal < minutesDuree){\n tempsfinal *= 2;\n for(int i = minutesDuree; i > 1; i--){\n if(tempsfinal % i == 0 && minutesDuree % i == 0){\n tempsfinal /= i;\n minutesDuree /= i;\n }\n }\n }\n \n //update l'affichage\n this.resultat.setText(tempsfinal + \"/\" + minutesDuree + \"π radiant\");\n this.resultat.update(this.resultat.getGraphics());\n }\n }\n }catch(FormatSaisieException fse){\n this.resultat.setText(fse.errMsg(this.p.toString()));\n }\n }", "public Ruta[] findWhereFhModificaRutaEquals(Date fhModificaRuta) throws RutaDaoException;", "public boolean isEqual(DateTime dt) {\n return Long.parseLong(this.vStamp) == Long.parseLong(dt.getStamp());\r\n }", "@Override\n\tpublic void waitCheck(double hours) {\n\t\t\n\t}", "@Override\n\tpublic void waitCheck(double hours) {\n\t\t\n\t}", "private void verificaData() {\n\t\t\n\t}", "private boolean isSeedsInfoUpdated(String tDate){\n \treturn mSharedPref.getBoolean(tDate,false); \t\n }", "public String dar_hora(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n return dateFormat.format(date).toString();\n }", "public java.sql.ResultSet consultaporhora(String hora){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where phm.horas='\"+hora+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporhora \"+ex);\r\n }\t\r\n return rs;\r\n }", "public static int compareTime(String time1, String time2)\r\n/* 83: */ {\r\n/* 84:110 */ String[] timeArr1 = (String[])null;\r\n/* 85:111 */ String[] timeArr2 = (String[])null;\r\n/* 86:112 */ timeArr1 = time1.split(\":\");\r\n/* 87:113 */ timeArr2 = time2.split(\":\");\r\n/* 88:114 */ int minute1 = Integer.valueOf(timeArr1[0]).intValue() * 60 + \r\n/* 89:115 */ Integer.valueOf(timeArr1[1]).intValue();\r\n/* 90:116 */ int minute2 = Integer.valueOf(timeArr2[0]).intValue() * 60 + \r\n/* 91:117 */ Integer.valueOf(timeArr2[1]).intValue();\r\n/* 92:118 */ return minute1 - minute2;\r\n/* 93: */ }", "private final static void checkInterlachen(Connection con) {\n\n PreparedStatement pstmt = null;\n PreparedStatement pstmt2 = null;\n ResultSet rs = null;\n\n String user = \"\";\n String mtype= \"\";\n String mtypeNew = \"\";\n String mtype1 = \"Jr Ages 6 - 11\";\n String mtype2 = \"Jr Ages 12 - 15\";\n String mtype3 = \"Jr Ages 16 - 24\";\n\n int birth = 0;\n int inact = 0;\n\n //\n // Get current date\n //\n Calendar cal = new GregorianCalendar(); // get todays date\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH)+1;\n int day = cal.get(Calendar.DAY_OF_MONTH);\n\n year = year - 12; // date to determine if < 12 yrs old\n\n int date12 = (year * 10000) + (month * 100) + day;\n\n year = year - 4; // date to determine if < 16 yrs old\n\n int date16 = (year * 10000) + (month * 100) + day;\n\n year = year - 9; // date to determine if < 25 yrs old\n\n int date25 = (year * 10000) + (month * 100) + day;\n\n\n\n //\n // Check each Junior to see if the mtype should be changed\n //\n try {\n\n pstmt = con.prepareStatement (\n \"SELECT username, m-type, birth, inact FROM member2b \" +\n \"WHERE m_type = ? OR m_type = ? OR m_type = ? AND birth != 0 AND inact = 0\");\n\n pstmt.clearParameters();\n pstmt.setString(1, mtype1);\n pstmt.setString(2, mtype2);\n pstmt.setString(3, mtype3);\n rs = pstmt.executeQuery();\n\n while (rs.next()) {\n\n user = rs.getString(1);\n mtype = rs.getString(2);\n birth = rs.getInt(3);\n inact = rs.getInt(4);\n\n mtypeNew = mtype;\n\n if (birth > date12) { // if < 12 yrs old\n\n mtypeNew = mtype1; // 6 - 11\n\n } else {\n\n if (birth > date16) { // if < 16 yrs old\n\n mtypeNew = mtype2; // 12 - 15\n\n } else {\n\n if (birth > date25) { // if < 25 yrs old\n\n mtypeNew = mtype3; // 16 - 24\n\n } else {\n\n inact = 1; // older than 24, set inactive\n }\n }\n }\n\n //\n // Update the record if mtype has changed or we are setting member inactive\n //\n if (!mtypeNew.equals(mtype) || inact == 1) {\n\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET m_type = ?, inact = ? \" +\n \"WHERE username = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt.setString(1, mtypeNew);\n pstmt.setInt(2, inact);\n pstmt.setString(3, user);\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n }\n }\n\n pstmt.close();\n\n }\n catch (Exception exc) {\n }\n\n }", "private boolean CheckAvailableDate(TimePeriod tp)\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query = \"SELECT * FROM Available WHERE available_hid = '\"+hid+\"' AND \"+\n\t\t\t\t\t\t\t\"startDate = '\"+tp.stringStart+\"' AND endDate = '\"+tp.stringEnd+\"'\"; \n\t\t\t\n\t\t\tResultSet rs = con.stmt.executeQuery(query); \n\t\t\t\n\t\t\tcon.closeConnection();\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\treturn true; \n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn false;\n\t}", "public static void main(String[] args) throws ParseException {\n String beginWorkDate = \"8:00:00\";//上班时间\n String endWorkDate = \"12:00:00\";//下班时间\n SimpleDateFormat sdf = new SimpleDateFormat(TimeUtil.DF_ZH_HMS);\n long a = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(endWorkDate));\n System.out.println(a/30);\n\n String beginRestDate = \"8:30:00\";//休息时间\n String endRestDate = \"9:00:00\";\n long e = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(beginRestDate));\n long f = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(endRestDate));\n\n String beginVactionDate = \"10:00:00\";//请假时间\n String endVactionDate = \"11:00:00\";\n long b= TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(beginVactionDate));\n long c= TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(endVactionDate));\n\n String time = \"9:00:00\";//被别人预约的\n long d = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(time));\n List<Integer> num = new ArrayList<>();\n num.add((int) (d/30));\n\n String myTime = \"11:30:00\";//我约的\n long g = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(myTime));\n List<Integer> mynum = new ArrayList<>();\n mynum.add((int) (g/30));\n\n\n List<Date> yes = new ArrayList<>();//能约\n List<Date> no = new ArrayList<>();//不能约\n List<Date> my = new ArrayList<>();//我约的\n for (int i = 0; i < a/30; i ++) {\n Date times = TimeUtil.movDateForMinute(sdf.parse(beginWorkDate), i * 30);\n System.out.println(sdf.format(times));\n yes.add(times);\n if ((i >= e / 30 && i < f / 30) || (i >= b / 30 && i < c / 30)) {\n //休息时间,请假时间\n no.add(times);\n yes.remove(times);\n continue;\n }\n for (Integer n : num) {\n if (i == n) {\n //被预约时间\n no.add(times);\n yes.remove(times);\n }\n }\n for (Integer n : mynum) {\n if (i == n) {\n //被预约时间\n my.add(times);\n }\n }\n }\n }", "public boolean estaAS(T dato){\n if(esVacio())\n return (false);\n super.setRaiz(buscarAS(dato)); \n return (super.getRaiz().getInfo().equals(dato));\n }", "public Cliente[] findWhereFechaUltimaVisitaEquals(Date fechaUltimaVisita) throws ClienteDaoException;", "public void calcularHash() {\n\t\tLocalDateTime agora = LocalDateTime.now();\n\t\t\n\t\t// coverção da string data/hora atual para o formato de 13 digitos\n\t\tDateTimeFormatter formatterData = DateTimeFormatter.ofPattern(\"ddMMuuuuHHmmss\");\n\t\tString dataFormatada = formatterData.format(agora);\n\t\t\n\t\tSystem.out.println(dataFormatada);\n\t\ttimestamp = Long.parseLong(dataFormatada);\n\t\t\n\t\tSystem.out.println(\"Informe o CPF: \");\n\t\tcpf = sc.nextLong();\n\t\t\n\t\t// calculos para gerar o hash\n\t\thash = cpf + (7*89);\n\t\thash = (long) Math.cbrt(hash);\n\t\t\n\t\thash2 = timestamp + (7*89);\n\t\thash2 = (long) Math.cbrt(hash2);\n\t\t\n\t\tsoma_hashs = hash + hash2;\n\t\t// converção para hexadecimal\n\t String str2 = Long.toHexString(soma_hashs);\n\t\t\n\t\tSystem.out.println(\"\\nHash: \"+ hash + \" \\nHash Do Timestamp: \" + hash2 + \"\\nSoma total do Hash: \" + str2);\n\t\t\n\t}", "private void gettime(){\n\t\t String depart_time = view.shpmTable.getSelection()[0].getAttribute(\"DEPART_TIME\");\n\t\t String unload_time = view.panel.getValue(\"UNLOAD_TIME\").toString();\n\t\t if(!DateUtil.isAfter(unload_time, depart_time)){\n\t\t\t\tdoConfirm(view.panel.getValue(\"UNLOAD_TIME\").toString());\n\t\t\t}else {\n\t\t\t\tMSGUtil.sayWarning(\"到货签收时间不能小于实际发货时间!\");\n\t\t\t}\n\t\t /*Util.db_async.getSingleRecord(\"MAX(DEPART_TIME)\", \"V_SHIPMENT_HEADER\", \" WHERE LOAD_NO='\"+load_no+\"'\", null, new AsyncCallback<HashMap<String,String>>() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onSuccess(HashMap<String, String> result) {\n\t\t\t\tString depart_time = result.get(\"MAX(DEPART_TIME)\");\n\t\t\t\tString unload_time = view.panel.getValue(\"UNLOAD_TIME\").toString();\n//\t\t\t\tboolean x =DateUtil.isAfter(unload_time, depart_time);\n\t\t\t\tif(!DateUtil.isAfter(unload_time, depart_time)){\n\t\t\t\t\tdoConfirm(view.panel.getValue(\"UNLOAD_TIME\").toString());\n\t\t\t\t}else {\n\t\t\t\t\tMSGUtil.sayWarning(\"到货签收时间不能小于实际发货时间!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t});*/\n\t}", "private static long getQtdDias(String dataAniversario){\n DateTimeFormatter data = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n LocalDateTime now = LocalDateTime.now();\n String dataHoje = data.format(now);\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\", Locale.ENGLISH);\n try {\n Date dtAniversario = sdf.parse(dataAniversario);\n Date hoje = sdf.parse(dataHoje);\n //Date hoje = sdf.parse(\"51515/55454\");\n long diferenca = Math.abs(hoje.getTime() - dtAniversario.getTime());\n long qtdDias = TimeUnit.DAYS.convert(diferenca, TimeUnit.MILLISECONDS);\n return qtdDias;\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return 0;\n }", "@Test\n public void testDetecterCompteSousMoyenne() {\n// System.out.println(\"detecterAnomalieParrapportAuSeuil\");\n Integer seuil = 30;\n POJOCompteItem instance = genererInstanceTest();\n\n try {\n instance.compte();\n instance.calculerMoyenne(new DateTime(2013, 1, 1, 0, 0).toDate(), new DateTime(2013, 1, 6, 0, 0).toDate());\n } catch (Exception ex) {\n Logger.getLogger(POJOCompteItemTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n// List expResult = null;\n Map<Date, Integer> result = instance.detecterAnomalieParrapportAuSeuil(seuil);\n\n if (result.size() != 3) {\n fail(\"on attend 3 résultats\");\n }\n\n\n try { // On tente de faire le calcul avec une valeur null doit lever une NullPointerException\n instance.detecterAnomalieParrapportAuSeuil(null);\n fail(\"devait lancer une exception\");\n } catch (Exception e) {\n if (!e.getClass().equals(NullPointerException.class)) {\n fail(\"devait lever une NullPointerException\");\n }\n }\n }", "public static void main(String[] args) {\n\t\tLocalDate hoje = LocalDate.now();\n\t\tSystem.out.println(hoje);\n\t\t\n\t\t//Criando nova data\n\t\tLocalDate olimpiadas = LocalDate.of(2016, Month.JUNE, 5);\n\t\tSystem.out.println(olimpiadas);\n\t\t\n\t\t//Calculando diferenca de anos\n\t\tint anos = olimpiadas.getYear() - hoje.getYear();\n\t\tSystem.out.println(anos);\n\n\t\t//Demonstracao de imutabilidade\n\t\tolimpiadas.plusYears(4);\n\t\tSystem.out.println(olimpiadas);\n\t\t\n\t\tLocalDate proximasOlimpiadas = olimpiadas.plusYears(4);\n\t\tSystem.out.println(proximasOlimpiadas);\n\t\t\n\t\t//Periodo entre data de inicio e fim \n\t\tPeriod periodo = Period.between(hoje, olimpiadas);\n\t\tSystem.out.println(periodo);\n\n\t\t//Formata data \n\t\tDateTimeFormatter formataData = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\tSystem.out.println(proximasOlimpiadas.format(formataData));\n\t\t\n\t\t//Craindo data e hora\n\t\tLocalDateTime agora = LocalDateTime.now();\n\t\tSystem.out.println(agora);\n\t\t\n\t\t//Formatando data e hora\n\t\t//Obs.: O formatado de data e hora nao pode ser usado para formata data.\n\t\tDateTimeFormatter formataDataComHoras = DateTimeFormatter.ofPattern(\"dd/MM/yyyy hh:mm\");\n\t\tSystem.out.println(agora.format(formataDataComHoras ));\n\t\t\n\t\tLocalTime intervalo = LocalTime.of(15, 30);\n\t\tSystem.out.println(intervalo);\n\t\t\n\t\t \n\t\t\n\t}", "public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;", "public static long CalcularDiferenciaHorasFechas(Date fecha1, Date fecha2){\n Calendar cal1 = Calendar.getInstance();\r\n Calendar cal2 = Calendar.getInstance();\r\n cal1.setTime(fecha1);\r\n cal2.setTime(fecha2);\r\n // conseguir la representacion de la fecha en milisegundos\r\n long milis1 = cal1.getTimeInMillis();\r\n long milis2 = cal2.getTimeInMillis();\r\n // calcular la diferencia en milisengundos\r\n long diff = milis2 - milis1;\r\n // calcular la diferencia en horas\r\n long diffHours = diff / (60 * 60 * 1000);\r\n return diffHours;\r\n }", "public int compareTo(Date212 other) { //compareTo method\n int result = 00; //intialize int return value.\n Date date1 = new Date(), date2 = new Date(); //initalize\n\nSimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\n try {\n date1 = sdf.parse(full_Date); //The object calling this method.\n date2 = sdf.parse(other.full_Date); //Other date212 object being passed in.\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n //Try-catch block for parsing & formatting dates.\n \n // System.out.println(\"date1 : \" + sdf.format(date1));\n // System.out.println(\"date2 : \" + sdf.format(date2));\n\n Calendar cal1 = Calendar.getInstance(); \n Calendar cal2 = Calendar.getInstance();\n cal1.setTime(date1);\n cal2.setTime(date2);\n /*\n Use of the Calendar library and methods to compare the dates.\n */\n\n\n //cal1 is the object calling this method\n //cal2 is the object passed in.\n if (cal1.after(cal2)) { \n // System.out.println(\"Date1 is after Date2\");\n result = 1;\n }\n\n if (cal1.before(cal2)) {\n // System.out.println(\"Date1 is before Date2\");\n result = -1;\n }\n\n if (cal1.equals(cal2)) {\n System.out.println(\"Date1 is equal Date2\");\n result = 0;\n }\n return result; //Returns what the if blocks made result to be.\n }", "public static ParseQuery consultarNotasDeHoy(){\n\n ParseQuery queryNotasHoy = new ParseQuery(\"Todo\");\n\n Calendar cal = getFechaHoy();\n\n cal.set(Calendar.HOUR, 0);\n cal.set(Calendar.MINUTE,0);\n cal.set(Calendar.SECOND,0);\n\n Date min = cal.getTime();\n\n cal.set(Calendar.HOUR, 23);\n cal.set(Calendar.MINUTE,59);\n cal.set(Calendar.SECOND,59);\n\n Date max= cal.getTime();\n\n queryNotasHoy.whereGreaterThanOrEqualTo(\"Fecha\", min);\n queryNotasHoy.whereLessThan(\"Fecha\", max);\n\n return queryNotasHoy;\n }", "boolean hasTimeBoltDBoltH();", "private boolean equalsDate(Date thisDate, Date otherDate) {\n if (otherDate == null) {\n return false;\n }\n SimpleDateFormat dateFormating = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n String thisDateString = dateFormating.format(thisDate);\n String otherDateString = dateFormating.format(otherDate);\n if (!thisDateString.equals(otherDateString)) {\n return false;\n }\n \n return true;\n }", "public boolean comprobarReservaSala(String codigoSala, Timestamp horaInicio) {\r\n\t\ttry {\r\n\t\t\tConnection con = conectar();\r\n\t\t\tPreparedStatement ps = con.prepareStatement(\r\n\t\t\t\t\t\"SELECT R.ID_RESERVA FROM RESERVA r WHERE r.CODIGO_SALA = ? AND r.HORA_INICIO = ?\");\r\n\t\t\tps.setString(1, codigoSala);\r\n\t\t\tps.setTimestamp(2, horaInicio);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\trs.close();\r\n\t\t\t\tps.close();\r\n\t\t\t\tcon.close();\r\n\t\t\t\treturn false;\r\n\t\t\t} else {\r\n\t\t\t\trs.close();\r\n\t\t\t\tps.close();\r\n\t\t\t\tcon.close();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean pertenece(T dato){\n\t Arbol <T> aux=null;\n\t boolean encontrado=false;\n\t if (!vacio()) {\n\t if (this.datoRaiz.compareTo(dato)==0)\n\t encontrado = true;\n\t else {\n\t if (dato.compareTo(this.datoRaiz)<0)\t//dato < datoRaiz\n\t aux=getHijoIzq();\n\t else\t\t\t\t\t\t\t\t\t//dato > datoRaiz\n\t aux = getHijoDer();\n\t if (aux!=null)\n\t encontrado = aux.pertenece(dato);\n\t }\n\t }\n\t return encontrado;\n\t}", "public int dateSearch(String o1_date, String o1_time, String o2_date, String o2_time) {\n\n int yearStartUser = Integer.valueOf(o1_date.substring(6));\n int monthStartUser = Integer.valueOf(o1_date.substring(3, 5));\n int dayStartUser = Integer.valueOf(o1_date.substring(0, 2));\n\n int yearEnd = Integer.valueOf(o2_date.substring(6));\n int monthEnd = Integer.valueOf(o2_date.substring(3, 5));\n int dayEnd = Integer.valueOf(o2_date.substring(0, 2));\n\n if (yearEnd > yearStartUser)\n return 1;\n if (yearEnd == yearStartUser && monthEnd > monthStartUser)\n return 1;\n if (yearEnd == yearStartUser && monthEnd == monthStartUser && dayEnd > dayStartUser)\n return 1;\n if (yearEnd == yearStartUser && monthEnd == monthStartUser && dayEnd == dayStartUser){\n if (o2_time.compareTo(o1_time)>0)return 1;\n if (o2_time.compareTo(o1_time)==0)return 0;\n\n }\n\n\n\n return -1;\n }", "public static void main(String[] args) \r\n {\n\t Date date = new Date();\r\n\t System.out.println(date);\r\n\t \r\n\t //comparision of dates\r\n\t /*\r\n\t Return\r\n 1. It returns the value 0 if the argument Date is equal to this Date. \r\n 2. It returns a value less than 0 if this Date is before the Date argument.\r\n 3. It returns a value greater than 0 if this Date is after the Date argument.\r\n\t */\r\n\t Date d=new Date(2021,05,31);\r\n\t System.out.println(d.equals(date));\r\n Date d1=new Date(2021,5,26); \r\n int comparison=d.compareTo(d1); \r\n System.out.println();\r\n System.out.println(\"Your comparison value is : \"+comparison); \r\n }", "public boolean checkTimePeriod(String from, String to) throws ParseException{\r\n\t\r\n\tDateFormat df = new SimpleDateFormat (\"yyyy-MM-dd\");\r\n boolean b = true;\r\n // Get Date 1\r\n Date d1 = df.parse(from);\r\n\r\n // Get Date 2\r\n Date d2 = df.parse(to);\r\n\r\n //String relation=\"\";\r\n if (d1.compareTo(d2)<=0){\r\n \t b=true;\r\n // relation = \"the date is less\";\r\n }\r\n else {\r\n b=false;\r\n }\r\n return b;\r\n}", "private int contabilizaHorasNoLectivas(ArrayList<FichajeRecuentoBean> listaFichajesRecuento, ProfesorBean profesor, boolean guardar, int mes) {\r\n int segundos=0;\r\n for (FichajeRecuentoBean fichajeRecuento : listaFichajesRecuento) {\r\n// System.out.println(fichajeRecuento.getFecha()+\" \"+fichajeRecuento.getHoraEntrada()+\"->\"+fichajeRecuento.getHoraSalida()+\" => \"+UtilsContabilizar.dimeDuracion(fichajeRecuento.getHoraEntrada(),fichajeRecuento.getHoraSalida()));\r\n segundos+=UtilsContabilizar.dimeDuracion(fichajeRecuento.getHoraEntrada(),fichajeRecuento.getHoraSalida());\r\n \r\n DetalleInformeBean detalleInforme=new DetalleInformeBean();\r\n detalleInforme.setIdProfesor(profesor.getIdProfesor());\r\n detalleInforme.setTotalHoras(UtilsContabilizar.dimeDuracion(fichajeRecuento.getHoraEntrada(),fichajeRecuento.getHoraSalida()));\r\n detalleInforme.setFecha(fichajeRecuento.getFecha());\r\n detalleInforme.setHoraIni(fichajeRecuento.getHoraEntrada());\r\n detalleInforme.setHoraFin(fichajeRecuento.getHoraSalida());\r\n detalleInforme.setTipoHora(\"NL\");\r\n if(guardar && detalleInforme.getTotalHoras()>0)GestionDetallesInformesBD.guardaDetalleInforme(detalleInforme, \"contabilizaHorasNoLectivas\", mes);\r\n \r\n }\r\n return segundos;\r\n }", "if (exitDateTime == adhocTicket.getExitDateTime()) {\n System.out.println(\"Exit Date Time is passed\");\n }", "public List<ReceiverEntity> obtenerReceiversHora(){\r\n System.out.println(\"Se ejecuta cvapa logica\");\r\n List<ReceiverEntity> receivers = persistence.findByHour();\r\n return receivers;\r\n }", "public static ArrayList <FichajeOperarios> obtenerFichajeOperarios(Date fecha) throws SQLException{\n Connection conexion=null;\n Connection conexion2=null;\n ResultSet resultSet;\n PreparedStatement statement;\n ArrayList <FichajeOperarios> FichajeOperarios=new ArrayList();\n Conexion con=new Conexion();\n\n //java.util.Date fecha = new Date();\n \n //para saber la fecha actual\n Date fechaActual = new Date();\n DateFormat formatoFecha = new SimpleDateFormat(\"dd/MM/yyyy\");\n \n //System.out.println(formatoFecha.format(fechaActual));\n \n try {\n\n conexion = con.connecta();\n\n\n statement=conexion.prepareStatement(\"select codigo,nombre,HORA_ENTRADA,centro from \"\n + \" (SELECT op.codigo,op.nombre,F2.FECHA AS FECHA_ENTRADA,F2.HORA AS HORA_ENTRADA,F2.FECHA+f2.HORA AS FICHA_ENTRADA,centro.DESCRIP as CENTRO,\"\n + \" (select top(1) f22.fecha \"\n + \" from e001_fichajes2 as f22 where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno order by f22.recno) AS FECHA_SALIDA,\"\n + \" (select top(1) f22.hora \"\n + \" from e001_fichajes2 as f22 \"\n + \" where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno \"\n + \" order by f22.recno) AS HORA_SALIDA,\"\n + \" (select top(1) f22.fecha \"\n + \" from e001_fichajes2 as f22 \"\n + \" where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno \"\n + \" order by f22.recno)+\"\n + \" (select top(1) f22.hora \"\n + \" from e001_fichajes2 as f22 \"\n + \" where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno \"\n + \" order by f22.recno) as FICHA_SALIDA \"\n + \" FROM E001_OPERARIO as op left join e001_fichajes2 as f2 on op.codigo=f2.OPERARIO and f2.tipo='E' JOIN E001_centrost as centro on f2.CENTROTRAB=centro.CODIGO \"\n + \" WHERE F2.FECHA='\"+formatoFecha.format(fecha)+\"' and f2.HORA=(select max(hora) from e001_fichajes2 as f22 where f2.operario=f22.operario and f22.tipo='e' and f22.FECHA=f2.FECHA)) as a\"\n + \" where FICHA_SALIDA is null \"\n + \" ORDER BY codigo\");\n \n resultSet = statement.executeQuery();\n while (resultSet.next()) {\n FichajeOperarios fiop=new FichajeOperarios(); \n fiop.setCodigo(resultSet.getString(\"CODIGO\"));\n fiop.setNombre(resultSet.getString(\"NOMBRE\"));\n fiop.setHora_Entrada(resultSet.getString(\"HORA_ENTRADA\"));\n //fiop.setHora_Salida(resultSet.getString(\"HORA_SALIDA\"));\n fiop.setCentro(resultSet.getString(\"CENTRO\"));\n FichajeOperarios.add(fiop);\n }\n \n } catch (SQLException ex) {\n System.out.println(ex);\n \n }\n return FichajeOperarios;\n \n \n }", "public void check_in ( String id,String longitud,String latitud, String id_cliente, String nota){\n this.id = id;\n this.longitud=longitud;\n this.latitud=latitud;\n this.id_cliente = id_cliente;\n this.nota=nota;\n Calendar c = Calendar.getInstance();\n SimpleDateFormat df = new SimpleDateFormat(\"yyyyMMdd HH:mm\");\n fecha= df.format(c.getTime()).toString();\n new ejecuta_checkin().execute();\n\n }", "@Override\n public int compare(Task task1, Task task2) {\n return task1.getDate().compareTo(task2.getDate());\n }", "public int compare(String _id1, String _id2){\n\t\t\tTaskBean task1 = this.tasks.get(_id1);\r\n\t\t\tTaskBean task2 = this.tasks.get(_id2);\r\n\r\n\t\t\t//compare the two creation dates.\r\n\t\t\tDate creation1 = task1.getCreatedTime();\t \r\n\t\t\tDate creation2 = task2.getCreatedTime();\t \r\n\r\n\t\t\treturn creation1.compareTo(creation2);\r\n\t\t}", "private boolean isAvailabilityExist(String day, String startTime, String endTime){\n String full = day + \" at \" + startTime + \" to \" + endTime;\n\n String[] start = startTime.split(\":\");\n String[] end = endTime.split(\":\");\n\n //Set the 2 hours\n int hourStart = Integer.parseInt(start[0]);\n int hourEnd = Integer.parseInt(end[0]);\n\n //Set the minutes\n int minuteStart = Integer.parseInt(start[1]);\n int minuteEnd = Integer.parseInt(end[1]);\n\n int dayID = getDay(day).getDayID();\n\n for(Availability av : availabilities){\n int dayIDAV = av.getDayID();\n if(dayID == dayIDAV){\n //Set the 2 hours\n int hourStartAV = av.getStartHour();\n int hourEndAV = av.getEndHour();\n\n //Set the minutes\n int minuteStartAV = av.getStartMinute();\n int minuteEndAV = av.getEndTimeMinute();\n\n if(hourStart<hourStartAV)\n return(false);\n\n if(hourEnd>hourEndAV)\n return(false);\n\n if(hourEnd == hourEndAV && minuteEnd > minuteEndAV)\n return(false);\n\n if(hourStart == hourStartAV && minuteStart<minuteStartAV)\n return(false);\n }\n }\n return(true);\n }", "public static boolean comprobarOrdenFechas (Date f1, Date f2){\n if(diferenciaFechas(f1,f2) <= 0){\n System.out.println(\"Fecha final es menor que la fecha inicial\");\n return false;\n }else{\n return true;\n }\n }", "private boolean isAppointmentExist(String day, String startTime, String endTime){\n String[] start = startTime.split(\":\");\n String[] end = endTime.split(\":\");\n\n //Set the 2 hours\n int hourStart = Integer.parseInt(start[0]);\n int hourEnd = Integer.parseInt(end[0]);\n\n //Set the minutes\n int minuteStart = Integer.parseInt(start[1]);\n int minuteEnd = Integer.parseInt(end[1]);\n\n int dayID = getDay(day).getDayID();\n\n for(Appointment Appointment: appointments){\n\n int dayIDApp = Appointment.getDay_id();\n\n Log.d(\"BUGDATABASEHANDLER\",\"Day:\" + dayID + \" day 2 : \" + dayIDApp);\n\n //If the same day, make sure it doesnt overlap\n if(dayID == dayIDApp){\n int hourStartApp = Appointment.getStartHour();\n int hourEndApp = Appointment.getEndHour();\n\n int minuteStartApp = Appointment.getStartMinute();\n int minuteEndApp = Appointment.getEndTimeMinute();\n\n if(hourStart == hourStartApp && minuteStart >= minuteStartApp)\n return(false);\n if(hourEnd == hourEndApp && minuteEnd <= minuteEndApp){\n return(false);\n }\n //If the new hour is between the hourStart and hourEnd of existing availability\n if(hourStart < hourEndApp && hourStart > hourStartApp)\n return(false);\n //If the new hour is between the hourStart and hourEnd of existing availability\n if(hourEnd > hourStartApp && hourEnd < hourEndApp)\n return(false);\n //If the new end is the same as the start but the minute overlap\n if(hourEnd == hourStartApp && minuteStartApp <= minuteEnd)\n return(false);\n\n if(hourStart == hourEndApp && minuteEndApp >= minuteStart)\n return(false);\n\n }\n }\n\n return(true);\n }" ]
[ "0.6999113", "0.66064864", "0.61957186", "0.5903292", "0.58856755", "0.58506423", "0.5775062", "0.5775062", "0.56677157", "0.56403536", "0.5577452", "0.55752325", "0.55477035", "0.55089134", "0.54788834", "0.5475428", "0.5460492", "0.5426568", "0.5419656", "0.5412248", "0.5407182", "0.54064316", "0.539771", "0.53652084", "0.53355145", "0.5297455", "0.5295197", "0.52880716", "0.52326053", "0.52259827", "0.5216731", "0.5213686", "0.51770496", "0.51750964", "0.5174155", "0.51662564", "0.5153581", "0.5139112", "0.5132557", "0.5126776", "0.51254374", "0.51252735", "0.5110877", "0.5102826", "0.5101451", "0.50952", "0.5094134", "0.50819284", "0.5080892", "0.50805223", "0.5072902", "0.5072143", "0.5069523", "0.50674635", "0.5058308", "0.50542676", "0.5052375", "0.5050061", "0.5043759", "0.50432944", "0.5039136", "0.50301516", "0.50274014", "0.50274014", "0.5027063", "0.5019816", "0.50094527", "0.5008741", "0.500794", "0.5007154", "0.50071055", "0.5006134", "0.50057054", "0.50013584", "0.50006586", "0.49971703", "0.49930295", "0.49892795", "0.49876338", "0.49822775", "0.49818614", "0.497103", "0.49648857", "0.49635947", "0.49630123", "0.4961255", "0.49558076", "0.49508896", "0.49478003", "0.49451706", "0.49442056", "0.4937649", "0.49330553", "0.49271867", "0.49267218", "0.49244565", "0.49227276", "0.49215087", "0.49087745", "0.49079174" ]
0.6433235
2
Compara duas datas verificando hora, minuto, segundo e milisegundo.
public static int compararDataTime(Date data1, Date data2) { long dataTime1 = data1.getTime(); long dataTime2 = data2.getTime(); int result; if (dataTime1 == dataTime2) { result = 0; } else if (dataTime1 < dataTime2) { result = -1; } else { result = 1; } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void CompararTiempo(String HoraInicio, String HoraFin){\n String[] TiempoInicial = HoraInicio.split(\":\");\n int horaI = Integer.valueOf(TiempoInicial[0]);\n int minuteI = Integer.valueOf(TiempoInicial[1]);\n\n String[] TiempoFinal = HoraFin.split(\":\");\n int horaF = Integer.valueOf(TiempoFinal[0]);\n int minuteF = Integer.valueOf(TiempoFinal[1]);\n\n if (horaF >= horaI){\n if (horaF == horaI && minuteF<=minuteI) {\n Toast.makeText(getApplicationContext(), \"La Hora de finalizacion no puede ser menor a la Hora de Inicio.\", Toast.LENGTH_SHORT).show();\n }\n else{\n etHoraFin.setText(HoraFin);\n }\n\n }else{\n Toast.makeText(getApplicationContext(), \"La Hora de finalizacion no puede ser menor a la Hora de Inicio.\", Toast.LENGTH_SHORT).show();\n }\n\n }", "public static int compararData(Date data1, Date data2) {\r\n\r\n\t\tCalendar calendar1;\r\n\t\tCalendar calendar2;\r\n\r\n\t\tint ano1;\r\n\t\tint ano2;\r\n\t\tint mes1;\r\n\t\tint mes2;\r\n\t\tint dia1;\r\n\t\tint dia2;\r\n\r\n\t\tint resultado;\r\n\r\n\t\tcalendar1 = Calendar.getInstance();\r\n\t\tcalendar1.setTime(data1);\r\n\r\n\t\tano1 = calendar1.get(Calendar.YEAR);\r\n\t\tmes1 = calendar1.get(Calendar.MONTH);\r\n\t\tdia1 = calendar1.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tcalendar2 = Calendar.getInstance();\r\n\t\tcalendar2.setTime(data2);\r\n\r\n\t\tano2 = calendar2.get(Calendar.YEAR);\r\n\t\tmes2 = calendar2.get(Calendar.MONTH);\r\n\t\tdia2 = calendar2.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tif (ano1 == ano2) {\r\n\r\n\t\t\tif (mes1 == mes2) {\r\n\r\n\t\t\t\tif (dia1 == dia2) {\r\n\t\t\t\t\tresultado = 0;\r\n\t\t\t\t} else if (dia1 < dia2) {\r\n\t\t\t\t\tresultado = -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tresultado = 1;\r\n\t\t\t\t}\r\n\t\t\t} else if (mes1 < mes2) {\r\n\t\t\t\tresultado = -1;\r\n\t\t\t} else {\r\n\t\t\t\tresultado = 1;\r\n\t\t\t}\r\n\t\t} else if (ano1 < ano2) {\r\n\t\t\tresultado = -1;\r\n\t\t} else {\r\n\t\t\tresultado = 1;\r\n\t\t}\r\n\t\treturn resultado;\r\n\t}", "public static boolean compararHoraMinuto(String horaMinuto1, String horaMinuto2, String sinal) {\r\n\r\n\t\tboolean retorno = true;\r\n\r\n\t\t// Separando os valores de hora e minuto para realizar a comparação\r\n\t\tString hora1 = horaMinuto1.substring(0, 2);\r\n\t\tString minuto1 = horaMinuto1.substring(3, 5);\r\n\r\n\t\tString hora2 = horaMinuto2.substring(0, 2);\r\n\t\tString minuto2 = horaMinuto2.substring(3, 5);\r\n\r\n\t\tif (sinal.equalsIgnoreCase(\"=\")) {\r\n\t\t\tif (!Integer.valueOf(hora1).equals(Integer.valueOf(hora2))) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t} else if (!Integer.valueOf(minuto1).equals(Integer.valueOf(minuto2))) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t}\r\n\t\t} else if (sinal.equalsIgnoreCase(\">\")) {\r\n\t\t\tif (Integer.valueOf(hora1).intValue() < Integer.valueOf(hora2).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t} else if (Integer.valueOf(hora1).equals(Integer.valueOf(hora2)) && Integer.valueOf(minuto1).intValue() <= Integer.valueOf(minuto2).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (Integer.valueOf(hora2).intValue() < Integer.valueOf(hora1).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t} else if (Integer.valueOf(hora2).equals(Integer.valueOf(hora1)) && Integer.valueOf(minuto2).intValue() <= Integer.valueOf(minuto1).intValue()) {\r\n\t\t\t\tretorno = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "public int compareHours(String hora1, String hora2) {\n \tString[] strph1=hora1.split(\":\");\n \tString[] strph2=hora2.split(\":\");\n \tInteger[] ph1= new Integer[3];\n \tInteger[] ph2= new Integer[3];\n\n \tfor(int i=0;i<strph1.length;i++) {\n \t\tph1[i]=Integer.parseInt(strph1[i]);\n \t}\n \tfor(int i=0;i<strph2.length;i++) {\n \t\tph2[i]=Integer.parseInt(strph2[i]);\n \t}\n\n \tif(ph1[0]>ph2[0]) {\n \t\treturn 1;\n \t}\n \telse if(ph1[0]<ph2[0]) {\n \t\treturn -1;\n \t}\n \telse{//si las horas son iguales\n \t\tif(ph1[1]>ph2[1]) {\n \t\t\treturn 1; \n \t\t}\n \t\telse if(ph1[1]<ph2[1]) {\n \t\t\treturn -1;\n \t\t}\n \t\telse{//si los minutos son iguales\n \t\t\tif(ph1[2]>ph2[2]) {\n \t\t\t\treturn 1;\n \t\t\t}\n \t\t\telse if(ph1[1]<ph2[1]) {\n \t\t\t\treturn -1;\n \t\t\t}\n \t\t\telse {\n \t\t\t\treturn 0;\n \t\t\t}\n \t\t}\n \t}\n\n }", "private boolean compararFechasConDate(String fechaMenor, String fecha2, String fechaComparar) {\n try {\n /**\n * Obtenemos las fechas enviadas en el formato a comparar\n */\n SimpleDateFormat formateador = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date fechaDateMenor = formateador.parse(fechaMenor);\n Date fechaDateMayor = formateador.parse(fecha2);\n Date fechaDateComparar = formateador.parse(fechaComparar);\n if (fechaDateMenor.before(fechaDateComparar) && fechaDateComparar.before(fechaDateMayor)) {\n return true;\n } else {\n return false;\n }\n } catch (ParseException e) {\n System.out.println(\"Se Produjo un Error!!! \" + e.getMessage());\n return false;\n }\n }", "@Override\r\n\t\t\t\tpublic int compare(Comparendo o1, Comparendo o2) \r\n\t\t\t\t{\n\t\t\t\t\treturn o1.fechaHora.compareTo(o2.fechaHora);\r\n\t\t\t\t}", "protected int compareTime(Date first, Date second) {\n\t\treturn first.compareTo(second);\n\t}", "public static int compareTime(String time1, String time2)\r\n/* 83: */ {\r\n/* 84:110 */ String[] timeArr1 = (String[])null;\r\n/* 85:111 */ String[] timeArr2 = (String[])null;\r\n/* 86:112 */ timeArr1 = time1.split(\":\");\r\n/* 87:113 */ timeArr2 = time2.split(\":\");\r\n/* 88:114 */ int minute1 = Integer.valueOf(timeArr1[0]).intValue() * 60 + \r\n/* 89:115 */ Integer.valueOf(timeArr1[1]).intValue();\r\n/* 90:116 */ int minute2 = Integer.valueOf(timeArr2[0]).intValue() * 60 + \r\n/* 91:117 */ Integer.valueOf(timeArr2[1]).intValue();\r\n/* 92:118 */ return minute1 - minute2;\r\n/* 93: */ }", "public static void main(String[] args) {\n\t\tint[] time1 = new int[2];// 0,0 by default\n\t\tint[] time2 = new int[2];// 0,0 by default\n\n\t\t// System.out.println(time1[0]); //0\n\n\t\ttime1[0] = 19;\n\t\ttime1[1] = 10;\n\n\t\ttime2[0] = 11;\n\t\ttime2[1] = 18;\n\n\t\t// Before comparing, check if both arrays have\n\t\t// valid hour/minute;\n\n\t\tif (time1[0] < 0 || time1[1] > 23) {\n\t\t\tSystem.out.println(\"Time1 has invalid hour\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (time1[1] < 0 || time1[1] > 59) {\n\t\t\tSystem.out.println(\"Time1 has invalid minute\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (time2[0] < 0 || time2[1] > 23) {\n\t\t\tSystem.out.println(\"Time2 has invalid hour\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (time2[1] < 0 || time2[1] > 59) {\n\t\t\tSystem.out.println(\"Time2 has invalid minute\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"*****COMPARE ARRAYS*****\");\n\t\t\n\t\t//COMPARE ARRAYS and tell which one is earlier\n\t\t\n\t\tif (time1[0] < time2[0]) {\n\t\t\tSystem.out.println(\"Time1 is earlier\");\n\t\t}else if (time2[0] < time1[0]) {\n\t\t\tSystem.out.println(\"Time2 is earlier\");\n\t\t}else { //hours are equal. check minutes\n\t\t\tif (time1[1] < time2[1]) {\n\t\t\t\tSystem.out.println(\"Time1 is earlier\");\n\t\t\t} else if (time2[1] < time1[1]) {\n\t\t\t\tSystem.out.println(\"Time2 is earlier\");\n\t\t\t}else { //minutes are equal\n\t\t\t\tSystem.out.println(\"Same time!\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Override\n public int compareTo(Booking other) {\n // Push new on top\n other.updateNewQuestion(); // update NEW button\n this.updateNewQuestion();\n\n\n String[] arr1 = other.time.split(\":\");\n String[] arr2 = this.time.split(\":\");\n// Date thisDate = new Date(this.getCalendarYear(), this.getCalendarMonth(), this.getCalendarDay(), Integer.getInteger(arr2[0]), Integer.getInteger(arr2[1]));\n// if (this.newQuestion != other.newQuestion) {\n// return this.newQuestion ? 1 : -1; // this is the winner\n// }\n\n\n if (this.calendarYear == other.calendarYear) {\n if (this.calendarMonth == other.calendarMonth) {\n if (this.calendarDay == other.calendarDay) {\n if (Integer.parseInt(arr2[0]) == Integer.parseInt(arr1[0])) { // hour\n if (Integer.parseInt(arr2[1]) == Integer.parseInt(arr1[1])) { // minute\n return 0;\n } else {\n return Integer.parseInt(arr1[1]) > Integer.parseInt(arr2[1]) ? -1 : 1;\n }\n } else {\n return Integer.parseInt(arr1[0]) > Integer.parseInt(arr2[0]) ? -1 : 1;\n }\n }\n else\n return other.calendarDay > this.calendarDay ? -1 : 1;\n }\n else\n return other.calendarMonth > this.calendarMonth ? -1 : 1;\n }\n else\n return other.calendarYear > this.calendarYear ? -1 : 1;\n\n\n// if (this.echo == other.echo) {\n// if (other.calendarMonth == this.calendarMonth) {\n// return 0;\n// }\n// return other.calendarMonth > this.calendarMonth ? -1 : 1;\n// }\n// return this.echo - other.echo;\n }", "private int compareTimes(String time1, String time2) {\n \n String[] timeOneSplit = time1.trim().split(\":\");\n String[] timeTwoSplit = time2.trim().split(\":\");\n \n \n if (timeOneSplit.length == 2 && timeTwoSplit.length == 2) {\n \n String[] minutesAmPmSplitOne = new String[2];\n minutesAmPmSplitOne[1] = timeOneSplit[1].trim().substring(0, timeOneSplit[1].length() - 2);\n minutesAmPmSplitOne[1] = timeOneSplit[1].trim().substring(timeOneSplit[1].length() - 2, timeOneSplit[1].length());\n\n String[] minutesAmPmSplitTwo = new String[2];\n minutesAmPmSplitTwo[1] = timeTwoSplit[1].trim().substring(0, timeTwoSplit[1].length() - 2);\n minutesAmPmSplitTwo[1] = timeTwoSplit[1].trim().substring(timeTwoSplit[1].length() - 2, timeTwoSplit[1].length());\n \n int hourOne = Integer.parseInt(timeOneSplit[0]);\n int hourTwo = Integer.parseInt(timeTwoSplit[0]);\n \n //increment hours depending on am or pm\n if (minutesAmPmSplitOne[1].trim().equalsIgnoreCase(\"pm\")) {\n hourOne += 12;\n }\n if (minutesAmPmSplitTwo[1].trim().equalsIgnoreCase(\"pm\")) {\n hourTwo += 12;\n }\n \n if (hourOne < hourTwo) {\n \n return -1;\n }\n else if (hourOne > hourTwo) {\n \n return 1;\n }\n else {\n \n int minutesOne = Integer.parseInt(minutesAmPmSplitOne[0]);\n int minutesTwo = Integer.parseInt(minutesAmPmSplitTwo[0]);\n \n if (minutesOne < minutesTwo) {\n \n return -1;\n }\n else if (minutesOne > minutesTwo) {\n \n return 1;\n }\n else {\n \n return 0;\n }\n }\n }\n //time1 exists, time 2 doesn't, time 1 comes first!\n else if (timeOneSplit.length == 2 && timeTwoSplit.length != 2) {\n return -1;\n }\n else {\n return 1;\n }\n }", "private boolean compararFechaActualCon(String fecha_obtenida) {\n boolean fecha_valida = false;\n\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n Date date = new Date();\n String fecha_actual = dateFormat.format(date);\n\n try {\n Date date2 = dateFormat.parse(fecha_obtenida);\n Date date1 = dateFormat.parse(fecha_actual);\n\n Log.i(\"COMPARANDO FECHAS\", \"F_ACTUAL: \" + date1 + \", F_OBTENIDA: \" + date2);\n\n if (date2.after(date1) ) {\n fecha_valida = true;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: TRUE\");\n } else {\n fecha_valida = false;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: FALSE\");\n\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return fecha_valida;\n }", "private boolean compararFechaActualCon(String fecha_obtenida) {\n boolean fecha_valida = false;\n\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n Date date = new Date();\n String fecha_actual = dateFormat.format(date);\n\n try {\n Date date2 = dateFormat.parse(fecha_obtenida);\n Date date1 = dateFormat.parse(fecha_actual);\n\n Log.i(\"COMPARANDO FECHAS\", \"F_ACTUAL: \" + date1 + \", F_OBTENIDA: \" + date2);\n\n if (date2.after(date1) ) {\n fecha_valida = true;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: TRUE\");\n } else {\n fecha_valida = false;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: FALSE\");\n\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return fecha_valida;\n }", "public static void main(String[] args) {\n int horaSalida;\n int minutosSalida;\n int horaLlegada;\n int minutosLlegada;\n //Salida:\n int duracion;\n //condiciones y restricciones: el vuelo puede pasar de medianoche y no dura mas de 24h\n Scanner sc = new Scanner(System.in);\n do {\n System.out.println(\"Ingrese la hora de salida\");\n horaSalida = sc.nextInt();\n System.out.println(\"Ingrese los minutos\");\n minutosSalida = sc.nextInt();\n\n System.out.println(\"Ingrese la hora de llegada\");\n horaLlegada = sc.nextInt();\n System.out.println(\"Ingrese los minutos\");\n minutosLlegada = sc.nextInt();\n if (horaSalida > 24 || horaLlegada > 24 || minutosSalida > 60 || minutosLlegada > 60) {\n System.out.println(\"Los datos no han sido ingresados correctamente, vuelva a intentarlo\");\n }\n } while (horaSalida > 24 || horaLlegada > 24 || minutosSalida > 60 || minutosLlegada > 60);\n\n //Conversion de horas y minutos en solo minutos 19<2\n if (horaSalida > horaLlegada) {//caso 1\n horaLlegada = 24 + horaLlegada;//para poder restarlo a eso las h y m de salida\n }\n if (horaLlegada == horaSalida && (minutosSalida > minutosLlegada || minutosSalida == minutosLlegada)) {//caso 2\n horaLlegada = 24 + horaLlegada;//para poder restarlo a eso las h y m de salida\n }\n duracion = ((horaLlegada * 60) + minutosLlegada) - ((horaSalida * 60) + minutosSalida);\n\n if (duracion >= 1440) {//24*60=1440 si se pasa esto significa que el vuelo dura mas de 24h ex: 3:41 y llego 3:20\n System.out.print(\"El vuelo no puede durar mas de 24 horas \");\n } else {\n System.out.print(\"La duracion del vuelo es \" + duracion + \" minutos o \");\n //CODICIONES PARA EL AFFICHAGE\n if ((duracion / 60) < 10) {\n System.out.print(\"0\");\n }\n System.out.print(duracion / 60 + \"h\");\n\n if ((duracion % 60) < 10) {\n System.out.print(\"0\");\n }\n System.out.print(duracion % 60 + \"m\");\n }\n }", "public static ParseQuery consultarNotasDeHoy(){\n\n ParseQuery queryNotasHoy = new ParseQuery(\"Todo\");\n\n Calendar cal = getFechaHoy();\n\n cal.set(Calendar.HOUR, 0);\n cal.set(Calendar.MINUTE,0);\n cal.set(Calendar.SECOND,0);\n\n Date min = cal.getTime();\n\n cal.set(Calendar.HOUR, 23);\n cal.set(Calendar.MINUTE,59);\n cal.set(Calendar.SECOND,59);\n\n Date max= cal.getTime();\n\n queryNotasHoy.whereGreaterThanOrEqualTo(\"Fecha\", min);\n queryNotasHoy.whereLessThan(\"Fecha\", max);\n\n return queryNotasHoy;\n }", "private void checking() {\n try {\n ResultSet rs;\n Statement st;\n Connection con = db.getDBCon();\n st = con.createStatement();\n String sql = \"select * from trainset_reservation where train_no='\" + Integer.parseInt(no.getText()) + \"'\";\n rs = st.executeQuery(sql);\n boolean b = false;\n String dat0 = null;\n String dat1 = null;\n\n while (rs.next()) {\n dat0 = rs.getString(\"start_date\");\n dat1 = rs.getString(\"end_date\");\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"E MMM dd HH:mm:ss z yyyy\");\n Date f_dbdate = sdf.parse(dat0);\n Date s_dbdate = sdf.parse(dat1);\n Date f_date = s_date.getDate();\n Date s_date = e_date.getDate();\n if (f_date.getTime() < f_dbdate.getTime() && s_date.getTime() < f_dbdate.getTime()) {\n ava.setText(\"AVAILABLE\");\n }\n if (f_date.getTime() < f_dbdate.getTime() && s_date.getTime() > s_dbdate.getTime()) {\n ava.setText(\"NOT AVAILABLE\");\n break;\n }\n if (f_date.getTime() > f_dbdate.getTime() && s_date.getTime() < s_dbdate.getTime()) {\n ava.setText(\"NOT AVAILABLE\");\n break;\n }\n if (f_date.getTime() > f_dbdate.getTime() && f_date.getTime() < s_dbdate.getTime() && s_date.getTime() > s_dbdate.getTime()) {\n ava.setText(\"NOT AVAILABLE\");\n break;\n }\n if (f_date.getTime() < f_dbdate.getTime() && s_date.getTime() > f_dbdate.getTime() && s_date.getTime() < s_dbdate.getTime()) {\n ava.setText(\"NOT AVAILABLE\");\n break;\n }\n\n if (f_date.getTime() > s_dbdate.getTime() && s_date.getTime() > s_dbdate.getTime()) {\n ava.setText(\"AVAILABLE\");\n }\n\n long diffIn = Math.abs(s_date.getTime() - f_date.getTime());\n long diff = TimeUnit.DAYS.convert(diffIn, TimeUnit.MILLISECONDS);\n // t2.setText(String.valueOf(diff));\n b = true;\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static boolean isPassOneHour(String pass)\n {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n Date date = new Date();\n String current = dateFormat.format(date);\n\n //Extract current data time all values\n\n int current_year = Integer.parseInt(current.substring(0, 4));\n int current_month = Integer.parseInt(current.substring(5,7))-1;\n int current_day = Integer.parseInt(current.substring(8,10));\n\n int current_hour = Integer.parseInt(current.substring(11,13));\n int current_minute = Integer.parseInt(current.substring(14,16));\n int current_seconds = Integer.parseInt(current.substring(17));\n\n //String pass = \"2016-10-05 10:14:00\";\n\n //Extract last update data (pass from parameter\n\n int year = Integer.parseInt(pass.substring(0, 4));\n int month = Integer.parseInt(pass.substring(5,7))-1;\n int day = Integer.parseInt(pass.substring(8,10));\n\n int hour = Integer.parseInt(pass.substring(11,13));\n int minute = Integer.parseInt(pass.substring(14,16));\n int seconds = Integer.parseInt(pass.substring(17));\n\n\n System.out.println(\"CURRENT: \" + current_year+\"/\"+current_month+\"/\"+current_day+\" \"+current_hour+\":\"+current_minute+\":\"+current_seconds);\n\n System.out.println(\"PASS: \" + year+\"/\"+month+\"/\"+day+\" \"+hour+\":\"+minute+\":\"+seconds);\n\n if (current_year == year)\n {\n if (current_month == month)\n {\n if (current_day == day)\n {\n if (current_hour > hour)\n {\n if ((current_hour - hour > 1))\n {\n //Bi ordu gutxienez\n System.out.println(\"Bi ordu gutxienez: \" + (current_hour) + \" / \" + hour);\n return true;\n }\n else\n {\n if (((current_minute + 60) - minute ) < 60)\n {\n //Ordu barruan dago\n System.out.println(\"Ordu barruan nago ez delako 60 minutu pasa: \" + ((current_minute + 60) - minute ));\n return false;\n }\n else\n {\n //Refresh\n System.out.println(\"Eguneratu, ordu bat pasa da gutxienez: \" + ((current_minute + 60) - minute ));\n return true;\n }\n }\n\n }\n }\n }\n }\n return false;\n }", "@Override\n public long minutosOcupados(Integer idEstacion, Date inicio, Date fin) {\n long minutos = 0;\n String sql = \"SELECT eje FROM Recurso rec, Ejecucion eje WHERE rec.idestacion = :idEstacion AND eje.idrecurso = rec.idrecurso AND eje.fechafin >= :inicio AND eje.fechainicio < :fin\";\n List<Ejecucion> ejecuciones = getCurrentSession().createQuery(sql).setParameter(\"idEstacion\", idEstacion).setParameter(\"inicio\", inicio).setParameter(\"fin\", fin).list();\n for (Ejecucion next : ejecuciones) {\n Date inicioEjecucion = next.getFechainicio();\n Date finEjecucion = next.getFechafin();\n if (inicioEjecucion.before(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio y finaliza en el fin de la ejecucion\n minutos = minutos + Math.abs(finEjecucion.getTime() - inicio.getTime())/60000;\n \n } else if (inicioEjecucion.after(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio de la ejecucion y finaliza en el fin de la ejecucion\n minutos = minutos + Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n \n }else if (inicioEjecucion.after(inicio) && finEjecucion.after(fin)){\n //Comienza en inicio de la ejecucion y finaliza en el fin\n minutos = minutos + Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n \n } else if (inicioEjecucion.before(inicio) && finEjecucion.after(fin)) {\n //Comienza en inicio y finaliza en el fin\n minutos = minutos + Math.abs(fin.getTime() - inicio.getTime())/60000;\n }\n }\n return minutos;\n }", "public int actualizarTiempo(int empresa_id,int idtramite, int usuario_id) throws ParseException {\r\n\t\tint update = 0;\r\n\t\t\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat formateador = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n\t\tString timeNow = formateador.format(date);\r\n\t\tSimpleDateFormat formateador2 = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tString fecha = formateador2.format(date);\r\n\t\tSimpleDateFormat formateador3 = new SimpleDateFormat(\"hh:mm:ss\");\r\n\t\tString hora = formateador3.format(date);\r\n\t\tSystem.out.println(timeNow +\" \"+ fecha+\" \"+hora );\r\n\t\t\r\n\t\t List<Map<String, Object>> rows = listatks(empresa_id, idtramite);\t\r\n\t\t System.out.println(rows);\r\n\t\t if(rows.size() > 0 ) {\r\n\t\t\t String timeCreate = rows.get(0).get(\"TIMECREATE_HEAD\").toString();\r\n\t\t\t System.out.println(\" timeCreate \" +timeCreate+\" timeNow: \"+ timeNow );\r\n\t\t\t Date fechaInicio = formateador.parse(timeCreate); // Date\r\n\t\t\t Date fechaFinalizo = formateador.parse(timeNow); //Date\r\n\t\t\t long horasFechas =(long)((fechaInicio.getTime()- fechaFinalizo.getTime())/3600000);\r\n\t\t\t System.out.println(\" horasFechas \"+ horasFechas);\r\n\t\t\t long diferenciaMils = fechaFinalizo.getTime() - fechaInicio.getTime();\r\n\t\t\t //obtenemos los segundos\r\n\t\t\t long segundos = diferenciaMils / 1000;\t\t\t \r\n\t\t\t //obtenemos las horas\r\n\t\t\t long horas = segundos / 3600;\t\t\t \r\n\t\t\t //restamos las horas para continuar con minutos\r\n\t\t\t segundos -= horas*3600;\t\t\t \r\n\t\t\t //igual que el paso anterior\r\n\t\t\t long minutos = segundos /60;\r\n\t\t\t segundos -= minutos*60;\t\t\t \r\n\t\t\t System.out.println(\" horas \"+ horas +\" min\"+ minutos+ \" seg \"+ segundos );\r\n\t\t\t double tiempoTotal = Double.parseDouble(horas+\".\"+minutos);\r\n\t\t\t // actualizar cabecera \r\n\t\t\t updateHeaderOut( idtramite, fecha, hora, tiempoTotal, usuario_id);\r\n\t\t\t for (Map<?, ?> row : rows) {\r\n\t\t\t\t Map<String, Object> mapa = new HashMap<String, Object>();\r\n\t\t\t\tint idd = Integer.parseInt(row.get(\"IDD\").toString());\r\n\t\t\t\tint idtramite_d = Integer.parseInt(row.get(\"IDTRAMITE\").toString());\r\n\t\t\t\tint cantidaMaletas = Integer.parseInt(row.get(\"CANTIDAD\").toString());\r\n\t\t\t\tdouble precio = Double.parseDouble(row.get(\"PRECIO\").toString());\t\t\t\t\r\n\t\t\t\tdouble subtotal = subtotal(precio, tiempoTotal, cantidaMaletas);\r\n\t\t\t\tString tipoDescuento = \"\";\r\n\t\t\t\tdouble porcDescuento = 0;\r\n\t\t\t\tdouble descuento = descuento(subtotal, porcDescuento);\r\n\t\t\t\tdouble precioNeto = precioNeto(subtotal, descuento);\r\n\t\t\t\tdouble iva = 0;\r\n\t\t\t\tdouble montoIVA = montoIVA(precioNeto, iva);\r\n\t\t\t\tdouble precioFinal = precioFinal(precioNeto, montoIVA);\r\n\t\t\t\t//actualizar detalle\r\n\t\t\t\tupdateBodyOut( idd, idtramite_d, tiempoTotal , subtotal, tipoDescuento, porcDescuento, descuento, precioNeto, iva, montoIVA, precioFinal );\r\n\t\t\t }\r\n\t\t\t \r\n\t\t }\r\n\t\treturn update;\r\n\t}", "private boolean compareMomenta(int[] a, int[] b){\n return ((a[0] == b[0]) &&\n (a[1]) == b[1]) ;\n }", "private int[] comparaSeAtaqueGanhouNoDado() {\n int size_ataque;\n int size_defesa;\n\n if (dadosAtaque[1] == 0) {\n size_ataque = 1;\n } else if (dadosAtaque[2] == 0) {\n size_ataque = 2;\n } else {\n size_ataque = 3;\n }\n\n if (dadosDefesa[1] == 0) {\n size_defesa = 1;\n } else if (dadosDefesa[2] == 0) {\n size_defesa = 2;\n } else {\n size_defesa = 3;\n }\n\n int[] resultado = new int[Math.max(size_defesa, size_ataque)];\n\n for (int i = resultado.length - 1; i >= 0; i--) {\n\n if (dadosAtaque[i] > 0 && dadosDefesa[i] > 0) {\n if (dadosAtaque[i] > dadosDefesa[i]) {\n resultado[i] = 1;\n } else {\n resultado[i] = 0;\n }\n } else {\n resultado[i] = 2;\n }\n }\n return resultado;\n }", "public static int obterQtdeHorasEntreDatas(Date dataInicial, Date dataFinal) {\r\n\t\tCalendar start = Calendar.getInstance();\r\n\t\tstart.setTime(dataInicial);\r\n\t\t// Date startTime = start.getTime();\r\n\t\tif (!dataInicial.before(dataFinal))\r\n\t\t\treturn 0;\r\n\t\tfor (int i = 1;; ++i) {\r\n\t\t\tstart.add(Calendar.HOUR, 1);\r\n\t\t\tif (start.getTime().after(dataFinal)) {\r\n\t\t\t\tstart.add(Calendar.HOUR, -1);\r\n\t\t\t\treturn (i - 1);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public int dateSearch(String o1_date, String o1_time, String o2_date, String o2_time) {\n\n int yearStartUser = Integer.valueOf(o1_date.substring(6));\n int monthStartUser = Integer.valueOf(o1_date.substring(3, 5));\n int dayStartUser = Integer.valueOf(o1_date.substring(0, 2));\n\n int yearEnd = Integer.valueOf(o2_date.substring(6));\n int monthEnd = Integer.valueOf(o2_date.substring(3, 5));\n int dayEnd = Integer.valueOf(o2_date.substring(0, 2));\n\n if (yearEnd > yearStartUser)\n return 1;\n if (yearEnd == yearStartUser && monthEnd > monthStartUser)\n return 1;\n if (yearEnd == yearStartUser && monthEnd == monthStartUser && dayEnd > dayStartUser)\n return 1;\n if (yearEnd == yearStartUser && monthEnd == monthStartUser && dayEnd == dayStartUser){\n if (o2_time.compareTo(o1_time)>0)return 1;\n if (o2_time.compareTo(o1_time)==0)return 0;\n\n }\n\n\n\n return -1;\n }", "public int compare(TimeInterval ti) {\r\n\t\tlong diff = 0;\r\n\t\tfor (int field = 8; field >= 1; field--) {\r\n\t\t\tdiff += (getNumberOfIntervals(field) - ti\r\n\t\t\t\t\t.getNumberOfIntervals(field))\r\n\t\t\t\t\t* getMaximumNumberOfMinutesInField(field);\r\n\t\t}\r\n\t\tif (diff == 0)\r\n\t\t\treturn 0;\r\n\t\telse if (diff > 0)\r\n\t\t\treturn 1;\r\n\t\telse\r\n\t\t\treturn -1;\r\n\t}", "public void dayCompare(String day) throws Exception{\n List<Map<String, String>> tycDataList = getTxtTyc(day, \"D:\\\\gitwork\\\\接口\\\\对账\\\\天眼查对账\\\\549-2018.11.txt\");\n List<Map<String, String>> ixnDataList = getMySqlTyc(day);\n\n //writeFile(basePath + fileName + \".error\", errorList);\n writeFile(day + \"-tyc.txt\", tycDataList);\n writeFile(day + \"-ixn.txt\", ixnDataList);\n\n Map<String, Integer> tycKeyWordCount = new HashMap<>();\n for(int i = 0; i < tycDataList.size();i++) {\n String keyword = tycDataList.get(i).get(\"keyWord\");\n tycKeyWordCount.put(keyword, tycKeyWordCount.get(keyword) == null ? 1:tycKeyWordCount.get(keyword)+1);\n }\n\n Map<String, Integer> ixnKeyWordCount = new HashMap<>();\n for(int i = 0; i < ixnDataList.size();i++) {\n String keyword = ixnDataList.get(i).get(\"keyWord\");\n ixnKeyWordCount.put(keyword, ixnKeyWordCount.get(keyword) == null ? 1:ixnKeyWordCount.get(keyword)+1);\n }\n\n\n List<String> unEqualKeyList = new ArrayList<>();\n for(String key : tycKeyWordCount.keySet()) {\n\n if(!ixnKeyWordCount.containsKey(key)) {\n logger.info(\"爱信诺没有这个:{}\", key);\n } else {\n if(tycKeyWordCount.get(key) != ixnKeyWordCount.get(key)) {\n logger.info(\"爱信诺天眼查数量不一致:{},数量:{}\", tycKeyWordCount.get(key) + \"\\t\" + ixnKeyWordCount.get(key), key);\n unEqualKeyList.add(key);\n }\n }\n }\n\n logger.info(\"{}:{}\", tycDataList.size(), ixnDataList.size());\n\n\n for(String key : unEqualKeyList) {\n for(int i = 0; i < tycDataList.size(); i++) {\n if(key.equals(tycDataList.get(i).get(\"keyWord\"))) {\n logger.info(\"tyc:{}\", tycDataList.get(i));\n }\n }\n\n for(int i = 0; i < ixnDataList.size(); i++) {\n if(key.equals(ixnDataList.get(i).get(\"keyWord\"))) {\n logger.info(\"ixn:{}\", ixnDataList.get(i));\n }\n }\n }\n\n }", "public static void main(String[] args) throws ParseException {\n String beginWorkDate = \"8:00:00\";//上班时间\n String endWorkDate = \"12:00:00\";//下班时间\n SimpleDateFormat sdf = new SimpleDateFormat(TimeUtil.DF_ZH_HMS);\n long a = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(endWorkDate));\n System.out.println(a/30);\n\n String beginRestDate = \"8:30:00\";//休息时间\n String endRestDate = \"9:00:00\";\n long e = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(beginRestDate));\n long f = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(endRestDate));\n\n String beginVactionDate = \"10:00:00\";//请假时间\n String endVactionDate = \"11:00:00\";\n long b= TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(beginVactionDate));\n long c= TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(endVactionDate));\n\n String time = \"9:00:00\";//被别人预约的\n long d = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(time));\n List<Integer> num = new ArrayList<>();\n num.add((int) (d/30));\n\n String myTime = \"11:30:00\";//我约的\n long g = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(myTime));\n List<Integer> mynum = new ArrayList<>();\n mynum.add((int) (g/30));\n\n\n List<Date> yes = new ArrayList<>();//能约\n List<Date> no = new ArrayList<>();//不能约\n List<Date> my = new ArrayList<>();//我约的\n for (int i = 0; i < a/30; i ++) {\n Date times = TimeUtil.movDateForMinute(sdf.parse(beginWorkDate), i * 30);\n System.out.println(sdf.format(times));\n yes.add(times);\n if ((i >= e / 30 && i < f / 30) || (i >= b / 30 && i < c / 30)) {\n //休息时间,请假时间\n no.add(times);\n yes.remove(times);\n continue;\n }\n for (Integer n : num) {\n if (i == n) {\n //被预约时间\n no.add(times);\n yes.remove(times);\n }\n }\n for (Integer n : mynum) {\n if (i == n) {\n //被预约时间\n my.add(times);\n }\n }\n }\n }", "public static void main(String[] args) {\n Date dt1 = new Date();\n System.out.println(dt1);\n \n //get the milli secs in Long from January 1st 1970 00:00:00 GMT... and then create the date Obj from that\n long millisecs = System.currentTimeMillis();\n System.out.println(millisecs);\n Date dt2 = new Date(millisecs);\n System.out.println(dt2);\n System.out.println(\"=========================\");\n\n millisecs = dt2.getTime();//convert dateObj back to millisecs\n System.out.println(millisecs);\n System.out.println(\"dt2.toString(): \" + dt2.toString());\n System.out.println(\"=========================\");\n\n //check if after?\n System.out.println(dt1.after(dt2)); \n System.out.println(dt2.after(dt1));\n //check if before?\n System.out.println(dt1.before(dt2));\n System.out.println(dt2.before(dt1));\n\n\n\n System.out.println(\"=========================\");\n\n // compare 2 date Objects\n //returns 0 if the obj Date is equal to parameter's Date.\n //returns < 0 if obj Date is before the Date para.\n //returns > 0 if obj Date is after the Date para.\n int result = dt1.compareTo(dt2);\n System.out.println(\"dt1 < dt2: \" + result);\n result = dt2.compareTo(dt1);\n System.out.println(\"dt2 > dt1: \" + result);\n\n System.out.println(\"=========================\");\n\n //return true/false on testing equality\n System.out.println(dt1.equals(dt2));\n System.out.println(dt2.equals(dt1));\n System.out.println(\"=========================\");\n\n\n\n\n\n }", "public int compare(TimeEntry t1, TimeEntry t2) {\n\t\t\t\t\treturn t1.getTime().compareTo(t2.getTime());\n\t\t\t\t//return 1;\n\t\t\t }", "public int obtenerHoraMasAccesos()\n {\n int numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora = 0;\n int horaConElNumeroDeAccesosMaximo = -1;\n\n if(archivoLog.size() >0){\n for(int horaActual=0; horaActual < 24; horaActual++){\n int totalDeAccesosParaHoraActual = 0;\n //Miramos todos los accesos\n for(Acceso acceso :archivoLog){\n if(horaActual == acceso.getHora()){\n totalDeAccesosParaHoraActual++;\n }\n }\n if(numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora<=totalDeAccesosParaHoraActual){\n numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora =totalDeAccesosParaHoraActual;\n horaConElNumeroDeAccesosMaximo = horaActual;\n }\n }\n }\n else{\n System.out.println(\"No hay datos\");\n }\n return horaConElNumeroDeAccesosMaximo;\n }", "public void initialiserCompte() {\n DateTime dt1 = new DateTime(date1).withTimeAtStartOfDay();\n DateTime dt2 = new DateTime(date2).withEarlierOffsetAtOverlap();\n DateTime dtIt = new DateTime(date1).withTimeAtStartOfDay();\n Interval interval = new Interval(dt1, dt2);\n\n\n\n// while (dtIt.isBefore(dt2)) {\n while (interval.contains(dtIt)) {\n compte.put(dtIt.toDate(), 0);\n dtIt = dtIt.plusDays(1);\n }\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(System.currentTimeMillis()); // Quantos Milisegundos desde data 01/01/1970\n\t\t\n\t\t// Data Atual\n\t\tDate agora = new Date();\n\t\tSystem.out.println(\"Data Atual: \"+agora);\n\t\t\n\t\tDate data = new Date(1_000_000_000_000L);\n\t\tSystem.out.println(\"Data com 1.000.000.000.000ms: \"+data);\n\t\t\n\t\t// METODOS\n\t\tdata.getTime();\n\t\tdata.setTime(1_000_000_000_000L);\n\t\tSystem.out.println(data.compareTo(agora)); // -1 para anterior, 0 para igual, +1 para posterior\n\t\t\n\t\t// GregorianCalendar\n\t\tCalendar c = Calendar.getInstance();\n\t\tc.set(1980, Calendar.FEBRUARY, 12);\n\t\tSystem.out.println(c.getTime());\n\t\tSystem.out.println(c.get(Calendar.YEAR)); // Ano\n\t\tSystem.out.println(c.get(Calendar.MONTH)); // Mes 0 - 11\n\t\tSystem.out.println(c.get(Calendar.DAY_OF_MONTH)); // Dia do mes\n\t\t\n\t\tc.set(Calendar.YEAR,2016); // Altera o Ano\n\t\tc.set(Calendar.MONTH, 10); // Altera o Mes 0 - 11\n\t\tc.set(Calendar.DAY_OF_MONTH, 24); // Altera o Dia do mes\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.clear(Calendar.MINUTE); // limpa minutos\n\t\tc.clear(Calendar.SECOND); // limpa segundos\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.add(Calendar.DAY_OF_MONTH,1); // adiciona dias (avança o mes e ano)\n\t\tc.add(Calendar.YEAR,1); // adiciona o ano \n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.roll(Calendar.DAY_OF_MONTH,20); // adiciona dias (não avança o mes e ano)\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\t// Saudação com Bom dia, Boa arde ou Boa noite\n\t\tCalendar c1 = Calendar.getInstance();\n\t\tint hora = c1.get(Calendar.HOUR_OF_DAY);\n\t\tSystem.out.println(hora);\n\t\tif(hora <= 12){\n\t\t\tSystem.out.println(\"Bom Dia\");\n\t\t} else if(hora > 12 && hora < 18){\n\t\t\tSystem.out.println(\"Boa Tarde\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Boa Noite\");\n\t\t}\n\t\t\n\n\t}", "@Override\n public long minutosLibres(Integer idEstacion, Date inicio, Date fin) {\n long minutos = Math.abs(fin.getTime() - inicio.getTime())/60000;\n List<Ejecucion> ejecuciones = null;\n String sql = \"SELECT eje FROM Recurso rec, Ejecucion eje WHERE rec.estacion.idestaciones = :idEstacion AND eje.recurso.idrecurso = rec.idrecurso AND eje.fechafin >= :inicio AND eje.fechainicio < :fin\";\n ejecuciones = getCurrentSession().createQuery(sql).setParameter(\"idEstacion\", idEstacion).setParameter(\"inicio\", inicio).setParameter(\"fin\", fin).list();\n \n if (ejecuciones != null) {\n for (Ejecucion next : ejecuciones) {\n Date inicioEjecucion = next.getFechainicio();\n Date finEjecucion = next.getFechafin();\n if (inicioEjecucion.before(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio y finaliza en el fin de la ejecucion\n minutos = minutos - Math.abs(finEjecucion.getTime() - inicio.getTime())/60000;\n\n } else if (inicioEjecucion.after(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio de la ejecucion y finaliza en el fin de la ejecucion\n minutos = minutos - Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n\n }else if (inicioEjecucion.after(inicio) && finEjecucion.after(fin)){\n //Comienza en inicio de la ejecucion y finaliza en el fin\n minutos = minutos - Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n\n } else if (inicioEjecucion.before(inicio) && finEjecucion.after(fin)) {\n //Comienza en inicio y finaliza en el fin\n minutos = minutos - Math.abs(fin.getTime() - inicio.getTime())/60000;\n }\n /*if (inicioEjecucion.before(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio y finaliza en el fin de la ejecucion\n minutos = minutos + (fin.getTime() - inicio.getTime())/60000;\n\n } else if (inicioEjecucion.after(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio de la ejecucion y finaliza en el fin de la ejecucion\n minutos = minutos + ((fin.getTime() - inicio.getTime()) + (inicioEjecucion.getTime() - inicio.getTime()))/60000;\n\n }else if (inicioEjecucion.after(inicio) && finEjecucion.after(fin)){\n //Comienza en inicio de la ejecucion y finaliza en el fin\n minutos = minutos + Math.abs(inicioEjecucion.getTime() - inicio.getTime())/60000;\n\n }*/\n }\n }\n return minutos;\n }", "private final static void checkInterlachen(Connection con) {\n\n PreparedStatement pstmt = null;\n PreparedStatement pstmt2 = null;\n ResultSet rs = null;\n\n String user = \"\";\n String mtype= \"\";\n String mtypeNew = \"\";\n String mtype1 = \"Jr Ages 6 - 11\";\n String mtype2 = \"Jr Ages 12 - 15\";\n String mtype3 = \"Jr Ages 16 - 24\";\n\n int birth = 0;\n int inact = 0;\n\n //\n // Get current date\n //\n Calendar cal = new GregorianCalendar(); // get todays date\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH)+1;\n int day = cal.get(Calendar.DAY_OF_MONTH);\n\n year = year - 12; // date to determine if < 12 yrs old\n\n int date12 = (year * 10000) + (month * 100) + day;\n\n year = year - 4; // date to determine if < 16 yrs old\n\n int date16 = (year * 10000) + (month * 100) + day;\n\n year = year - 9; // date to determine if < 25 yrs old\n\n int date25 = (year * 10000) + (month * 100) + day;\n\n\n\n //\n // Check each Junior to see if the mtype should be changed\n //\n try {\n\n pstmt = con.prepareStatement (\n \"SELECT username, m-type, birth, inact FROM member2b \" +\n \"WHERE m_type = ? OR m_type = ? OR m_type = ? AND birth != 0 AND inact = 0\");\n\n pstmt.clearParameters();\n pstmt.setString(1, mtype1);\n pstmt.setString(2, mtype2);\n pstmt.setString(3, mtype3);\n rs = pstmt.executeQuery();\n\n while (rs.next()) {\n\n user = rs.getString(1);\n mtype = rs.getString(2);\n birth = rs.getInt(3);\n inact = rs.getInt(4);\n\n mtypeNew = mtype;\n\n if (birth > date12) { // if < 12 yrs old\n\n mtypeNew = mtype1; // 6 - 11\n\n } else {\n\n if (birth > date16) { // if < 16 yrs old\n\n mtypeNew = mtype2; // 12 - 15\n\n } else {\n\n if (birth > date25) { // if < 25 yrs old\n\n mtypeNew = mtype3; // 16 - 24\n\n } else {\n\n inact = 1; // older than 24, set inactive\n }\n }\n }\n\n //\n // Update the record if mtype has changed or we are setting member inactive\n //\n if (!mtypeNew.equals(mtype) || inact == 1) {\n\n pstmt2 = con.prepareStatement (\n \"UPDATE member2b SET m_type = ?, inact = ? \" +\n \"WHERE username = ?\");\n\n pstmt2.clearParameters(); // clear the parms\n pstmt.setString(1, mtypeNew);\n pstmt.setInt(2, inact);\n pstmt.setString(3, user);\n pstmt2.executeUpdate();\n\n pstmt2.close(); // close the stmt\n }\n }\n\n pstmt.close();\n\n }\n catch (Exception exc) {\n }\n\n }", "public static void main(String[] args) {\n\t\tCTime a = new CTime(2013,15,28,13,24,56);\n\t\tCTime b = new CTime(2013,0,28,13,24,55);\n\t\ta.getTimeVerbose();\n\t\ta.getTime();\n\t\ta.compare(b);\n\t\ta.setTime(2014,8,16,13,24,55);\n\t\ta.getTime();\n\t}", "private int sameDateCompare(Deadline other) {\n if (!this.hasTime() && other.hasTime()) {\n return -1;\n } else if (this.hasTime() && !other.hasTime()) {\n return 1;\n } else if (this.hasTime() && other.hasTime()) {\n TimeWrapper thisTimeWrapper = this.getTime();\n TimeWrapper otherTimeWrapper = other.getTime();\n return thisTimeWrapper.compareTo(otherTimeWrapper);\n }\n return 0;\n }", "public Schedule Compare(Person user1, Person user2) {\r\n Schedule result = new Schedule();\r\n Schedule schedule1 = user1.getUserSchedule();\r\n Schedule schedule2 = user2.getUserSchedule();\r\n HashMap<Integer, String> monday1 = schedule1.schedule.get(\"Monday\");\r\n HashMap<Integer, String> monday2 = schedule2.schedule.get(\"Monday\");\r\n for (int i = 0; i <= 23; ++i) {\r\n HashMap<Integer, String> mondayCompare = result.schedule.get(\"Monday\");\r\n if (monday1.get(i) != null || monday2.get(i) != null){\r\n mondayCompare.put(i, \"busy\");\r\n }\r\n }\r\n HashMap<Integer, String> tuesday1 = schedule1.schedule.get(\"Tuesday\");\r\n HashMap<Integer, String> tuesday2 = schedule2.schedule.get(\"Tuesday\");\r\n for (int i = 0; i <= 23; ++i) {\r\n HashMap<Integer, String> tuesdayCompare = result.schedule.get(\"Tuesday\");\r\n if (tuesday1.get(i) != null || tuesday2.get(i) != null){\r\n tuesdayCompare.put(i, \"busy\");\r\n }\r\n }\r\n HashMap<Integer, String> wednesday1 = schedule1.schedule.get(\"Wednesday\");\r\n HashMap<Integer, String> wednesday2 = schedule2.schedule.get(\"Wednesday\");\r\n for (int i = 0; i <= 23; ++i) {\r\n HashMap<Integer, String> wednesdayCompare = result.schedule.get(\"Wednesday\");\r\n if (wednesday1.get(i) != null || wednesday2.get(i) != null){\r\n wednesdayCompare.put(i, \"busy\");\r\n }\r\n }\r\n HashMap<Integer, String> thursday1 = schedule1.schedule.get(\"Thursday\");\r\n HashMap<Integer, String> thursday2 = schedule2.schedule.get(\"Thursday\");\r\n for (int i = 0; i <= 23; ++i) {\r\n HashMap<Integer, String> thursdayCompare = result.schedule.get(\"thursday\");\r\n if (thursday1.get(i) != null || thursday2.get(i) != null){\r\n thursdayCompare.put(i, \"busy\");\r\n }\r\n }\r\n HashMap<Integer, String> friday1 = schedule1.schedule.get(\"Friday\");\r\n HashMap<Integer, String> friday2 = schedule2.schedule.get(\"Friday\");\r\n for (int i = 0; i <= 23; ++i) {\r\n HashMap<Integer, String> fridayCompare = result.schedule.get(\"Friday\");\r\n if (friday1.get(i) != null || friday2.get(i) != null){\r\n fridayCompare.put(i, \"busy\");\r\n }\r\n }\r\n HashMap<Integer, String> saturday1 = schedule1.schedule.get(\"Saturday\");\r\n HashMap<Integer, String> saturday2 = schedule2.schedule.get(\"Saturday\");\r\n for (int i = 0; i <= 23; ++i) {\r\n HashMap<Integer, String> saturdayCompare = result.schedule.get(\"Saturday\");\r\n if (saturday1.get(i) != null || saturday2.get(i) != null){\r\n saturdayCompare.put(i, \"busy\");\r\n }\r\n }\r\n HashMap<Integer, String> sunday1 = schedule1.schedule.get(\"Sunday\");\r\n HashMap<Integer, String> sunday2 = schedule2.schedule.get(\"Sunday\");\r\n for (int i = 0; i <= 23; ++i) {\r\n HashMap<Integer, String> sundayCompare = result.schedule.get(\"Sunday\");\r\n if (sunday1.get(i) != null || sunday2.get(i) != null){\r\n sundayCompare.put(i, \"busy\");\r\n }\r\n }\r\n return result;\r\n }", "private int contabilizaHorasNoLectivas(ArrayList<FichajeRecuentoBean> listaFichajesRecuento, ProfesorBean profesor, boolean guardar, int mes) {\r\n int segundos=0;\r\n for (FichajeRecuentoBean fichajeRecuento : listaFichajesRecuento) {\r\n// System.out.println(fichajeRecuento.getFecha()+\" \"+fichajeRecuento.getHoraEntrada()+\"->\"+fichajeRecuento.getHoraSalida()+\" => \"+UtilsContabilizar.dimeDuracion(fichajeRecuento.getHoraEntrada(),fichajeRecuento.getHoraSalida()));\r\n segundos+=UtilsContabilizar.dimeDuracion(fichajeRecuento.getHoraEntrada(),fichajeRecuento.getHoraSalida());\r\n \r\n DetalleInformeBean detalleInforme=new DetalleInformeBean();\r\n detalleInforme.setIdProfesor(profesor.getIdProfesor());\r\n detalleInforme.setTotalHoras(UtilsContabilizar.dimeDuracion(fichajeRecuento.getHoraEntrada(),fichajeRecuento.getHoraSalida()));\r\n detalleInforme.setFecha(fichajeRecuento.getFecha());\r\n detalleInforme.setHoraIni(fichajeRecuento.getHoraEntrada());\r\n detalleInforme.setHoraFin(fichajeRecuento.getHoraSalida());\r\n detalleInforme.setTipoHora(\"NL\");\r\n if(guardar && detalleInforme.getTotalHoras()>0)GestionDetallesInformesBD.guardaDetalleInforme(detalleInforme, \"contabilizaHorasNoLectivas\", mes);\r\n \r\n }\r\n return segundos;\r\n }", "public boolean comprobarReservaSimultaneaUsuario(String id_usuario, Timestamp horaInicio) {\r\n\t\ttry {\r\n\t\t\tConnection con = conectar();\r\n\t\t\tPreparedStatement ps = con.prepareStatement(\r\n\t\t\t\t\t\"SELECT R.ID_RESERVA FROM RESERVA r WHERE r.ID_USUARIO = ? AND r.HORA_INICIO = ?\");\r\n\t\t\tps.setString(1, id_usuario);\r\n\t\t\tps.setTimestamp(2, horaInicio);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\trs.close();\r\n\t\t\t\tps.close();\r\n\t\t\t\tcon.close();\r\n\t\t\t\treturn false;\r\n\t\t\t} else {\r\n\t\t\t\trs.close();\r\n\t\t\t\tps.close();\r\n\t\t\t\tcon.close();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static ArrayList <FichajeOperarios> obtenerFichajeOperarios(Date fecha) throws SQLException{\n Connection conexion=null;\n Connection conexion2=null;\n ResultSet resultSet;\n PreparedStatement statement;\n ArrayList <FichajeOperarios> FichajeOperarios=new ArrayList();\n Conexion con=new Conexion();\n\n //java.util.Date fecha = new Date();\n \n //para saber la fecha actual\n Date fechaActual = new Date();\n DateFormat formatoFecha = new SimpleDateFormat(\"dd/MM/yyyy\");\n \n //System.out.println(formatoFecha.format(fechaActual));\n \n try {\n\n conexion = con.connecta();\n\n\n statement=conexion.prepareStatement(\"select codigo,nombre,HORA_ENTRADA,centro from \"\n + \" (SELECT op.codigo,op.nombre,F2.FECHA AS FECHA_ENTRADA,F2.HORA AS HORA_ENTRADA,F2.FECHA+f2.HORA AS FICHA_ENTRADA,centro.DESCRIP as CENTRO,\"\n + \" (select top(1) f22.fecha \"\n + \" from e001_fichajes2 as f22 where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno order by f22.recno) AS FECHA_SALIDA,\"\n + \" (select top(1) f22.hora \"\n + \" from e001_fichajes2 as f22 \"\n + \" where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno \"\n + \" order by f22.recno) AS HORA_SALIDA,\"\n + \" (select top(1) f22.fecha \"\n + \" from e001_fichajes2 as f22 \"\n + \" where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno \"\n + \" order by f22.recno)+\"\n + \" (select top(1) f22.hora \"\n + \" from e001_fichajes2 as f22 \"\n + \" where f22.OPERARIO=f2.OPERARIO and f22.tipo='S' and f22.recno>f2.recno \"\n + \" order by f22.recno) as FICHA_SALIDA \"\n + \" FROM E001_OPERARIO as op left join e001_fichajes2 as f2 on op.codigo=f2.OPERARIO and f2.tipo='E' JOIN E001_centrost as centro on f2.CENTROTRAB=centro.CODIGO \"\n + \" WHERE F2.FECHA='\"+formatoFecha.format(fecha)+\"' and f2.HORA=(select max(hora) from e001_fichajes2 as f22 where f2.operario=f22.operario and f22.tipo='e' and f22.FECHA=f2.FECHA)) as a\"\n + \" where FICHA_SALIDA is null \"\n + \" ORDER BY codigo\");\n \n resultSet = statement.executeQuery();\n while (resultSet.next()) {\n FichajeOperarios fiop=new FichajeOperarios(); \n fiop.setCodigo(resultSet.getString(\"CODIGO\"));\n fiop.setNombre(resultSet.getString(\"NOMBRE\"));\n fiop.setHora_Entrada(resultSet.getString(\"HORA_ENTRADA\"));\n //fiop.setHora_Salida(resultSet.getString(\"HORA_SALIDA\"));\n fiop.setCentro(resultSet.getString(\"CENTRO\"));\n FichajeOperarios.add(fiop);\n }\n \n } catch (SQLException ex) {\n System.out.println(ex);\n \n }\n return FichajeOperarios;\n \n \n }", "public void convertirHoraMinutosStamina(int Hora, int Minutos){\n horaMinutos = Hora * 60;\n minutosTopStamina = 42 * 60;\n minutosTotales = horaMinutos + Minutos;\n totalMinutosStamina = minutosTopStamina - minutosTotales;\n }", "public void consultaTest() throws Exception{\n\t\t\n\t ResultSet rs = statement.executeQuery(\"select * from statistics\");\n\t \n\t \n\t while(rs.next())\n\t {\n\t\t \n\t\t DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss.SSS\");\n\t\t Date date = df.parse(rs.getString(\"timeActual\"));\n\t\t Calendar cal = Calendar.getInstance();\n\t\t cal.setTime(date);\n\t\t \n\t\t String completoDay = cal.get(Calendar.YEAR)+\"-\"+(cal.get(Calendar.MONTH) + 1)+\"-\"+ cal.get(Calendar.DAY_OF_MONTH);\n\t\t \n\t System.out.println(\"id= \" + rs.getInt(\"id\") + \" memory= \" + rs.getInt(\"memory\") + \" cpu= \" \n\t \t+ rs.getInt(\"cpu\") + \" timeActual= \" + completoDay);\n\t }\n\t \n\t if(rs != null)\n\t\t rs.close();\n\t \n\t if(connection != null)\n\t connection.close();\n\t \n\t}", "public int compare(String _id1, String _id2){\n\t\t\tTaskBean task1 = this.tasks.get(_id1);\r\n\t\t\tTaskBean task2 = this.tasks.get(_id2);\r\n\r\n\t\t\t//compare the two creation dates.\r\n\t\t\tDate creation1 = task1.getCreatedTime();\t \r\n\t\t\tDate creation2 = task2.getCreatedTime();\t \r\n\r\n\t\t\treturn creation1.compareTo(creation2);\r\n\t\t}", "public int compare(Itemset o1, Itemset o2) {\n long time1 = o1.getTimestamp();\n long time2 = o2.getTimestamp();\n if (time1 < time2) {\n return -1;\n }\n return 1;\n }", "private synchronized boolean ProvjeriNoviDatum(Timestamp datum) {\n boolean doKraja = false;\n String datumKraj = konf.getKonfig().dajPostavku(\"preuzimanje.kraj\");\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd.MM.yyyy\");\n Date datumProvjere = new Date(datum.getTime());\n try {\n Date date = formatter.parse(datumKraj);\n if (date.equals(datumProvjere)) {\n doKraja = true;\n }\n } catch (ParseException ex) {\n\n }\n return doKraja;\n }", "void compareMantisseminDec(String mantisse){\n\n \t\tString min = \"14012985\";\n \t\tint longueur = minimum(mantisse.length(), min.length());\n\n \t\tfor (int i = 0; i< longueur; i++) {\n \t\t\tint mininum = min.charAt(i);\n \t\t\tint mantissei = mantisse.charAt(i);\n \t\t\tif (mantissei < mininum) {\n \t\t throw new InvalidFloatSmall(this, getInputStream());\n \t\t\t}\n \t\t}\n \t\t// mantisse plus longue donc >= min donc pas d'erreur de debordement\n\n \t}", "public boolean checkTonKhoHienTai(Integer masoThuoc){\n //System.out.println(\"-----checkTonKhoHienTai()-----\");\n boolean conTonThuoc = false;\n String sSQL = \"SELECT * from Ton_kho t, \" +\n \"(SELECT MAX(t.tonkho_Ma) as tonkho_ma FROM Ton_Kho t, Dm_khoa k WHERE t.dmkhoa_maso = k.dmkhoa_maso and t.dmthuoc_Maso = :dmthuocMaso AND (k.dmkhoa_Ma NOT IN ('KTL','KTD')) GROUP BY t.tonkho_Malienket) a \" +\n \"where t.tonkho_ma = a.tonkho_ma and t.tonkho_ton > 0\";\n Query q = getEm().createNativeQuery(sSQL, TonKho.class);\n q.setParameter(\"dmthuocMaso\", masoThuoc);\n List result = q.getResultList();\n if (result != null && result.size() > 0) {\n conTonThuoc = true;\n }\n return conTonThuoc;\n }", "@Override\n\t\t\t\tpublic int compare(StatisticsItemData o1, StatisticsItemData o2) {\n\t\t\t\t\treturn o2.getDate().compareTo(o1.getDate());\n\t\t\t\t}", "private static int compareDateTime(XMLGregorianCalendar dt1, XMLGregorianCalendar dt2) {\n // Returns codes are -1/0/1 but also 2 for \"Indeterminate\"\n // which occurs when one has a timezone and one does not\n // and they are less then 14 hours apart.\n\n // F&O has an \"implicit timezone\" - this code implements the XMLSchema\n // compare algorithm.\n\n int x = dt1.compare(dt2) ;\n return convertComparison(x) ;\n }", "private int compararEntradas (Entry<K,V> e1, Entry<K,V> e2)\r\n\t{\r\n\t\treturn (comp.compare(e1.getKey(),e2.getKey()));\r\n\t}", "@Override\n\tpublic int compare(Player o1, Player o2) {\n\t\treturn (int) (o1.getTime() - o2.getTime());\t\t\t\t\t\t\t\t\t\t//returns the time difference, if big, then player two is better \n\t}", "public int getHora(){\n return minutosStamina;\n }", "private ArrayList<Feriado> compararFechas(Date fechaIni, Date fechaFin) {\n Integer dias=0;\n ArrayList<Feriado> aux=new ArrayList<>();\n \n for(Feriado f:this.listaFeriados){\n if((fechaIni.equals(f.getFecha())||fechaIni.before(f.getFecha()))&& (fechaFin.equals(f.getFecha())||fechaFin.after(f.getFecha()))){\n aux.add(f);\n }\n }\n \n return aux;\n }", "public int verifierHoraire(String chaine){\r\n\t\t//System.out.println(\"chaine : \"+chaine);\r\n\t\tString tabHoraire[] = chaine.split(\":\");\r\n\t\t\r\n\t\tif((Integer.parseInt(tabHoraire[0]) < AUTO_ECOLE_OUVERTURE ) || (Integer.parseInt(tabHoraire[0])> AUTO_ECOLE_FERMETURE)){\r\n\t\t\treturn -6;\r\n\t\t}\r\n\t\tif((Integer.parseInt(tabHoraire[1]) < 0 ) || (Integer.parseInt(tabHoraire[1]) >= 60 )){\r\n\t\t\treturn -7;\r\n\t\t}\r\n\t\t\r\n\t\t return 0;\r\n\t}", "public void hora()\n {\n horaTotal = HoraSalida - HoraLlegada;\n\n }", "public void actualiser(){\n try{\n \t\n /* Memo des variables : horaireDepart tableau de string contenant l'heure de depart entree par l'user\n * heure = heure saisie castee en int, minutes = minutes saisie castee en Integer\n * tpsRest = tableau de string contenant la duree du cours en heure entree par l'user\n * minutage = format minutes horaire = format heure, ils servent a formater les deux variables currentTime qui recuperent l'heure en ms\n * tempsrestant = variable calculant le temps restant en minutes, heurerestante = variable calculant le nombre d'heure restantes\n * heureDuree = duree du cours totale en int minutesDuree = duree totale du cours en minute\n * tempsfinal = temps restant reel en prenant en compte la duree du cours\n * angle = temps radian engleu = temps en toDegrees\n */\n String[] horaireDepart = Reader.read(saisie.getText(), this.p, \"\\\\ \");\n \n //on check si le pattern est bon et si l'utilisateur n'est pas un tard\n if(Reader.isHour(horaireDepart)){\n \t\n int heure = Integer.parseInt(horaireDepart[0]);\n int minutes = Integer.parseInt(horaireDepart[2]);\n minutes += (heure*60);\n String[] tpsrest = Reader.read(format.getText(), this.p, \"\\\\ \");\n \n //conversion de la saisie en SimpleDateFormat pour les calculs\n SimpleDateFormat minutage = new SimpleDateFormat (\"mm\");\n SimpleDateFormat Horaire = new SimpleDateFormat (\"HH\");\n \n //recupere l'heure en ms\n Date currentTime_1 = new Date(System.currentTimeMillis());\n Date currentTime_2 = new Date(System.currentTimeMillis());\n \n //cast en int pour les calculs\n int tempsrestant = Integer.parseInt(minutage.format(currentTime_1));\n int heurerestante = Integer.parseInt(Horaire.format(currentTime_2))*60;\n tempsrestant += heurerestante;\n \n //pareil mais pour la duree\n if(Reader.isHour(tpsrest)){\n int heureDuree = Integer.parseInt(tpsrest[0]);\n int minutesDuree = Integer.parseInt(tpsrest[2]);\n minutesDuree += (heureDuree*60);\n tempsrestant -= minutes;\n int tempsfinal = minutesDuree - tempsrestant;\n \n //conversion du temps en angle pour l'afficher \n double angle = ((double)tempsfinal*2/(double)minutesDuree)*Math.PI;\n int engleu = 360 - (int)Math.toDegrees(angle);\n for(int i = 0; i < engleu; i++){\n this.panne.dessineLine(getGraphics(), i);\n }\n \n //conversion du temps en pi radiant pour l'affichage\n if(tempsfinal < minutesDuree){\n tempsfinal *= 2;\n for(int i = minutesDuree; i > 1; i--){\n if(tempsfinal % i == 0 && minutesDuree % i == 0){\n tempsfinal /= i;\n minutesDuree /= i;\n }\n }\n }\n \n //update l'affichage\n this.resultat.setText(tempsfinal + \"/\" + minutesDuree + \"π radiant\");\n this.resultat.update(this.resultat.getGraphics());\n }\n }\n }catch(FormatSaisieException fse){\n this.resultat.setText(fse.errMsg(this.p.toString()));\n }\n }", "public boolean compararRut(String dato1, SisCliente sCliente){\r\n for(int i=0; i<sCliente.listaClientes.size(); i++){\r\n if(dato1.equals(sCliente.listaClientes.get(i).getRut())){\r\n System.out.println(\"RUT encontrado\");\r\n existe = true;\r\n break;\r\n }else{\r\n System.out.println(\"RUT no encontrado\");\r\n existe = false;\r\n } \r\n }\r\n return existe;\r\n }", "private static long getQtdDias(String dataAniversario){\n DateTimeFormatter data = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n LocalDateTime now = LocalDateTime.now();\n String dataHoje = data.format(now);\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\", Locale.ENGLISH);\n try {\n Date dtAniversario = sdf.parse(dataAniversario);\n Date hoje = sdf.parse(dataHoje);\n //Date hoje = sdf.parse(\"51515/55454\");\n long diferenca = Math.abs(hoje.getTime() - dtAniversario.getTime());\n long qtdDias = TimeUnit.DAYS.convert(diferenca, TimeUnit.MILLISECONDS);\n return qtdDias;\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return 0;\n }", "public void calculateTimeDifferences() {\n\n findExits();\n\n try {\n\n\n if (accumulate.size() > 0) {\n\n for (int i = 1; i < accumulate.size() - 1; i++) {\n if (accumulate.get(i).value > accumulate.get(i - 1).value\n && timeOfExists.size() > 0) {\n\n double timeOfEntry = accumulate.get(i).timeOfChange;\n double timeOfExit = timeOfExists.get(0);\n\n timeOfExists.remove(timeOfExit);\n timeOfChanges.add(timeOfExit - timeOfEntry);\n }\n\n }\n }\n } catch (IndexOutOfBoundsException exception) {\n LOG_HANDLER.logger.severe(\"calculateTimeDifferences \"\n + \"Method as thrown an OutOfBoundsException: \"\n + exception\n + \"Your timeOfChanges seems to be null\");\n }\n }", "boolean wasSooner (int[] date1, int[] date2) {\n\n// loops through year, then month, then day if previous value is the same\n for (int i = 2; i > -1; i--) {\n if (date1[i] > date2[i])\n return false;\n if (date1[i] < date2[i])\n return true;\n }\n return true;\n }", "public static long CalcularDiferenciaHorasFechas(Date fecha1, Date fecha2){\n Calendar cal1 = Calendar.getInstance();\r\n Calendar cal2 = Calendar.getInstance();\r\n cal1.setTime(fecha1);\r\n cal2.setTime(fecha2);\r\n // conseguir la representacion de la fecha en milisegundos\r\n long milis1 = cal1.getTimeInMillis();\r\n long milis2 = cal2.getTimeInMillis();\r\n // calcular la diferencia en milisengundos\r\n long diff = milis2 - milis1;\r\n // calcular la diferencia en horas\r\n long diffHours = diff / (60 * 60 * 1000);\r\n return diffHours;\r\n }", "protected void sortCheck() {\n if (m_instances == null) {\n return;\n }\n \n if (m_simpleConfigPanel.isUsingANativeTimeStamp()) {\n String timeStampF = m_simpleConfigPanel.getSelectedTimeStampField();\n Attribute timeStampAtt = m_instances.attribute(timeStampF); \n if (timeStampAtt != null) {\n \n double lastNonMissing = Utils.missingValue();\n boolean ok = true;\n boolean hasMissing = false;\n for (int i = 0; i < m_instances.numInstances(); i++) {\n Instance current = m_instances.instance(i);\n \n if (Utils.isMissingValue(lastNonMissing)) {\n if (!current.isMissing(timeStampAtt)) {\n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n } else {\n if (!current.isMissing(timeStampAtt)) {\n if (current.value(timeStampAtt) - lastNonMissing < 0) {\n ok = false;\n break;\n }\n \n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n }\n }\n \n if (!ok && !hasMissing) {\n // ask if we should sort\n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". Do you want to sort the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Sorting data...\");\n }\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n \n if (!ok && hasMissing) {\n // we can't really proceed in this situation. We can't sort by the timestamp\n // because instances with missing values will be put at the end of the data.\n // The only thing we can do is to remove the instances with missing time\n // stamps but this is likely to screw up the periodicity and majorly impact\n // on results.\n \n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". \\nFurthermore, there are rows with\\n\" +\n \t\t\"missing timestamp values. We can remove these\\n\" +\n \t\t\"rows and then sort the data but this is likely to\\n\" +\n \t\t\"result in degraded performance. It is strongly\\n\" +\n \t\t\"recommended that you fix these issues in the data\\n\" +\n \t\t\"before continuing. Do you want the system to proceed\\n\" +\n \t\t\"anyway by removing rows with missing timestamps and\\n\" +\n \t\t\"then sorting the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Removing rows with missing time stamps and sorting data...\");\n }\n m_instances.deleteWithMissing(timeStampAtt);\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n }\n }\n }", "private boolean validaFechasMAX(int indice, String strTipSol,boolean isSol){\n boolean blnRes=false;\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n java.sql.Connection conLoc;\n String strFechaSol=\"\";\n try{\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(), objParSis.getUsuarioBaseDatos(), objParSis.getClaveBaseDatos());\n if (conLoc!=null){\n stmLoc=conLoc.createStatement();\n if(isSol){\n strFechaSol=objUti.formatearFecha(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL).toString(),\"dd/MM/yyyy\",objParSis.getFormatoFechaBaseDatos());\n }\n else{\n strFechaSol=objUti.formatearFecha(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL_FAC_AUT).toString(),\"dd/MM/yyyy\",objParSis.getFormatoFechaBaseDatos());\n }\n strSql=\"SELECT '\"+strFechaSol+\"' - CURRENT_DATE as dias \";\n System.out.println(\"dias... \"+ strSql);\n rstLoc = stmLoc.executeQuery(strSql);\n if(rstLoc.next()){\n rstLoc.getInt(\"dias\");\n if(strTipSol.equals(\"R\")){\n if(rstLoc.getInt(\"dias\")<=intDiasMaximoReserva){\n blnRes=true;\n }\n }\n else{\n if(rstLoc.getInt(\"dias\")<=intDiasMaximoFacturaAutomatica){ /* JM: Solicitado por LSC y WCampoverde 2019-Jul-16 */\n blnRes=true;\n }\n }\n }\n rstLoc.close();\n rstLoc=null;\n stmLoc.close();\n stmLoc=null;\n conLoc.close();\n conLoc=null; \n }\n }\n catch (java.sql.SQLException e){\n objUti.mostrarMsgErr_F1(this, e);\n blnRes=false; \n }\n catch(Exception e){\n objUti.mostrarMsgErr_F1(null, e);\n blnRes=false;\n }\n return blnRes;\n }", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "private void check_this_minute() {\n controlNow = false;\n for (DTimeStamp dayControl : plan) {\n if (dayControl.point == clockTime.point) {\n controlNow = true;\n break;\n }\n }\n for (DTimeStamp simControl : extra) {\n if (simControl.equals(clockTime)) {\n controlNow = true;\n break;\n }\n }\n }", "public static int compareDates(String date1, String date2) {\r\n int cmpResult = -11111; // ERROR\r\n try {\r\n HISDate d1 = HISDate.valueOf(date1);\r\n HISDate d2 = HISDate.valueOf(date2);\r\n cmpResult = d1.compare(d2);\r\n } catch (Exception e) {\r\n logger.error(\"compareDates(): Mindestens einer der zwei Datumswerte ist ungueltig: \" + date1 + \", \" + date2);\r\n cmpResult = -11111;\r\n }\r\n return cmpResult;\r\n }", "public void compararMatrix(Estado_q es1, Estado_q es2, int filest,short tam,int tamañoEsta){\n if(es1.isFinal()==es2.isFinal()){\n //contador para vecto de alfabeto o transiciones\n int con=0;\n //si son inidistinguibles los estados, se insertan en la matriz sus estados destinos respecto a transiciones\n for(int cont=1;cont<=(int)tam;cont++){\n matrix[filest][cont].setEst1(es1.getTransiçaosE(con));\n matrix[filest][cont].setEst2(es2.getTransiçaosE(con)); \n con++;\n }\n //comparamos en la misma fila y distintas columnas, si hay alguna pareja igual a la original, para revisarla\n //pareja original es la de la columna 0, de donde se obtuvieron los estados de las columnas insertadas\n for(int k=1;k<=(int)tam;k++){\n if((matrix[filest][k].getEst1().getNombre()==es1.getNombre())&&(matrix[filest][k].getEst2().getNombre()\n ==es2.getNombre())){\n matrix[filest][k].setRevisado(true);\n }\n }\n //se setea verdadera la revision de la posicion donde estabamos\n matrix[filest][0].setRevisado(true);\n \n //terminado de insertar todos los estados es una fila(for de arriba), se lee la matrix a buscar nuevos estados sin revisar\n //para colocarlos una posicion mas abajo\n for(int fil=0;fil<=tamañoEsta;fil++){\n for(int col=0;col<=(int)tam;col++){\n \n //se busca en la matriz alguna pareja de estados que sea igual a la original para marcarla revisada\n if((matrix[fil][col]!=null)&&(matrix[fil][col].getEst1().getNombre()==es1.getNombre())&&\n (matrix[fil][col].getEst2().getNombre())==es2.getNombre()){\n matrix[fil][col].setRevisado(true);\n }\n \n //si la casilla no esta revisada\n if((matrix[fil][col].isRevisado()==false)&&(matrix[fil][col]!=null)){\n \n //vamos a buscar si no esta esta posicion ya verificada\n for(int row=0;row<=tamañoEsta;row++){\n for(int cols=0;cols<=(int)tam;cols++){\n if((matrix[fil][col].getEst1().getNombre()==matrix[row][cols].getEst1().getNombre())&&\n (matrix[fil][col].getEst2().getNombre()==matrix[row][cols].getEst2().getNombre())\n &&(matrix[row][cols].isRevisado()==true)){\n matrix[fil][col].setRevisado(true);\n }\n }\n }\n if((matrix[fil][col].isRevisado()==false)&&(matrix[fil][col]!=null)){\n \n //si la siguiente fila esta nula\n if(matrix[fil+1][0]==null){\n //se inerta la casilla con sus estados en una fila abajo\n matrix[fil+1][0].setEst1(matrix[fil][col].getEst1());\n matrix[fil+1][0].setEst2(matrix[fil][col].getEst2());\n tamañoEsta++;\n //se vuelve a llamar al metodo, para volver a verificar desde la columna e estados si son inidistinguibles\n compararMatrix(matrix[fil][col].getEst1(),matrix[fil][col].getEst2(),filest+1,tam,tamañoEsta);\n\n }\n else\n {\n matrix[col][0].setEst1(matrix[fil][col].getEst1());\n matrix[col][0].setEst2(matrix[fil][col].getEst2());\n //se vuelve a llamar al metodo, para volver a verificar desde la columna e estados si son inidistinguibles\n compararMatrix(matrix[fil][col].getEst1(),matrix[fil][col].getEst2(),filest+1,tam,tamañoEsta);\n\n }\n }\n }\n } \n }\n System.out.print(\"SI son equivalentes\");\n \n }\n else\n System.out.print(\"NO son equivalentes\");\n \n \n }", "public boolean checkTimePeriod(String from, String to) throws ParseException{\r\n\t\r\n\tDateFormat df = new SimpleDateFormat (\"yyyy-MM-dd\");\r\n boolean b = true;\r\n // Get Date 1\r\n Date d1 = df.parse(from);\r\n\r\n // Get Date 2\r\n Date d2 = df.parse(to);\r\n\r\n //String relation=\"\";\r\n if (d1.compareTo(d2)<=0){\r\n \t b=true;\r\n // relation = \"the date is less\";\r\n }\r\n else {\r\n b=false;\r\n }\r\n return b;\r\n}", "public Ruta[] findWhereFhModificaRutaEquals(Date fhModificaRuta) throws RutaDaoException;", "public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;", "public int findMinDifference(List<String> timePoints) {\n List<Integer> p = new ArrayList<>();\n for(String time:timePoints){\n String[] hm = time.split(\":\");\n int h = Integer.parseInt(hm[0]);\n int m = Integer.parseInt(hm[1]);\n p.add(h*60 + m);\n if(h<12){\n p.add((h+24)*60+m);\n }\n }\n int diff = Integer.MAX_VALUE;\n Collections.sort(p);\n for(int i=1; i<p.size(); i++){\n diff = Math.min(p.get(i)-p.get(i-1), diff);\n }\n return diff;\n }", "public void formatoTiempo() {\n String segundos, minutos, hora;\n\n hora = hrs < 10 ? String.valueOf(\"0\" + hrs) : String.valueOf(hrs);\n\n minutos = min < 10 ? String.valueOf(\"0\" + min) : String.valueOf(min);\n\n jLabel3.setText(hora + \" : \" + minutos + \" \" + tarde);\n }", "@Override\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// luon duoc sap xep theo thoi gian thuc hien con lai\n\t\t\tpublic int compare(Integer o1, Integer o2) {\t\t\t\t\t\t // tu be den lon sau moi lan add them gia tri vao \n\t\t\t\tif (burstTimeArr[o1] > burstTimeArr[o2]) return 1;\n\t\t\t\tif (burstTimeArr[o1] < burstTimeArr[o2]) return -1;\n\t\t\t\treturn 0;\n\t\t\t}", "public boolean comprobarReservaSala(String codigoSala, Timestamp horaInicio) {\r\n\t\ttry {\r\n\t\t\tConnection con = conectar();\r\n\t\t\tPreparedStatement ps = con.prepareStatement(\r\n\t\t\t\t\t\"SELECT R.ID_RESERVA FROM RESERVA r WHERE r.CODIGO_SALA = ? AND r.HORA_INICIO = ?\");\r\n\t\t\tps.setString(1, codigoSala);\r\n\t\t\tps.setTimestamp(2, horaInicio);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\trs.close();\r\n\t\t\t\tps.close();\r\n\t\t\t\tcon.close();\r\n\t\t\t\treturn false;\r\n\t\t\t} else {\r\n\t\t\t\trs.close();\r\n\t\t\t\tps.close();\r\n\t\t\t\tcon.close();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n public int compare(Todo td1, Todo td2) {\n\n // if td1 is null, then it should come after td2\n if (td1.getDueDate() == null && td2.getDueDate()!= null) {\n return GREATER;\n }\n // if td2 is null, then it should come after td1\n if (td1.getDueDate() != null && td2.getDueDate() == null) {\n return LESS;\n }\n // if both null, they are equal\n if (td1.getDueDate() == null && td2.getDueDate() == null) {\n return EQUAL;\n }\n // else, make into date object\n String td1Due = td1.getDueDate();\n String td2Due = td2.getDueDate();\n String[] td1DateRes = td1Due.split(\"/\");\n String[] td2DateRes = td2Due.split(\"/\");\n\n // Not caring about invalid formatting yet here\n // if both not null ,we create a date object, and let it compare themselves\n Date td1Date = new Date(td1DateRes[MONTH_INDEX],td1DateRes[DAY_INDEX],td1DateRes[YEAR_INDEX]);\n Date td2Date = new Date(td2DateRes[MONTH_INDEX],td2DateRes[DAY_INDEX],td2DateRes[YEAR_INDEX]);\n\n return td1Date.compareTo(td2Date);\n }", "public static boolean timecomparison(String ftime, String stime) {\n\t\t\r\n\t\tint fYear = Integer.parseInt(ftime.substring(0,4));\r\n\t\tint sYear = Integer.parseInt(stime.substring(0,4));\r\n\t\t\r\n\t\tint fMonth = Integer.parseInt(ftime.substring(5,7));\r\n\t\tint sMonth = Integer.parseInt(stime.substring(5,7));\r\n\t\t\r\n\t\tint fDay = Integer.parseInt(ftime.substring(8,10));\r\n\t\tint sDay = Integer.parseInt(stime.substring(8,10));\r\n\t\t\r\n\t\tint fHour = Integer.parseInt(ftime.substring(11,13));\r\n\t\tint sHour = Integer.parseInt(stime.substring(11,13));\r\n\t\t\r\n\t\tint fMin = Integer.parseInt(ftime.substring(14,16));\r\n\t\tint sMin = Integer.parseInt(stime.substring(14,16));\r\n\t\t\r\n\t\tint fSec = Integer.parseInt(ftime.substring(17,19));\r\n\t\tint sSec = Integer.parseInt(stime.substring(17,19));\r\n\t\t\r\n\t\tdouble difference = (fYear-sYear)*262800*60 + (fMonth-sMonth)*720*60 + (fDay-sDay)*24*60+ (fHour-sHour)*60 + ((fMin-sMin));\r\n\t\t\r\n\t\t//might need to change the = depending on the order of checks\r\n\t\tif(difference <= 0) {\r\n\t\t\treturn true; \r\n\t\t}\r\n\t\telse return false; \r\n\t}", "private void verificarDatos(int fila) {\n try {\n colValidada = -1;\n\n float cantidad = 1;\n float descuento = 0;\n float precio = 1;\n float stock = 1;\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colCantidad) != null) {\n cantidad = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colCantidad).toString());\n }\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colPrecioConIGV) != null) {\n precio = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colPrecioConIGV).toString());\n }\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colDescuento) != null) {\n descuento = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colDescuento).toString());\n }\n\n if (precio < 0) {\n JOptionPane.showMessageDialog(this, \"el precio debe ser mayor a cero\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colPrecioConIGV);\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colImporSinDesc);\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colImporSinDescConIgv);\n colValidada = oCLOrdenCompra.colPrecioConIGV;\n return;\n }\n\n if (descuento > cantidad * precio) {\n JOptionPane.showMessageDialog(this, \"El descuento no puede ser mayor al Importe Bruto\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colDescuento);\n descuento = 0;\n TblOrdenCompraDetalle.setValueAt(CLRedondear.Redondear((cantidad * precio) - descuento, 2), fila, oCLOrdenCompra.colImporConDesc);//con\n oCLOrdenCompra.CalcularSubtotales();\n oCLOrdenCompra.calcularImportes();\n\n colValidada = oCLOrdenCompra.colDescuento;\n return;\n }\n\n if (descuento < 0) {\n JOptionPane.showMessageDialog(this, \"El descuento no puede ser menor a cero\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colDescuento);\n descuento = 0;\n TblOrdenCompraDetalle.setValueAt(CLRedondear.Redondear((cantidad * precio) - descuento, 2), fila, oCLOrdenCompra.colImporConDesc);//con\n colValidada = oCLOrdenCompra.colDescuento;\n return;\n }\n\n if (cantidad <= 0) {\n JOptionPane.showMessageDialog(this, \"La cantidad debe ser mayor a cero\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colCantidad);\n colValidada = oCLOrdenCompra.colCantidad;\n return;\n }\n /* if(precio<=0)\n {\n JOptionPane.showMessageDialog(null,\"El precio tiene q ser mayor a cero\");\n colValidada=oCLOrdenCompra.colPrecio;\n return;\n }*/\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colStock) != null) {\n stock = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colStock).toString());\n }\n if (cantidad > stock) {\n /* JOptionPane.showMessageDialog(null,\"La cantidad no debe ser mayor al stock disponible\");\n TblOrdenCompraDetalle.setValueAt(null, fila,oCLOrdenCompra.colCantidad);\n colValidada=oCLOrdenCompra.colCantidad;\n return;*/\n }\n\n int col = TblOrdenCompraDetalle.getSelectedColumn();\n if (!eventoGuardar) {\n if (col == oCLOrdenCompra.colCantidad) {\n oCLOrdenCompra.calcularPrecio(fila);\n }\n }\n\n } catch (Exception e) {\n cont++;\n System.out.println(\"dlgGestionOrdenCompra-metodo Verificar datos: \"+e);\n }\n }", "private void validarhorarioconotroshorariosactivos(HorarioAsignado horarioasignado, List<HorarioAsignado> horarios) throws LogicaException, ParseException, DatoException {\nGregorianCalendar startasignado=new GregorianCalendar();\nDate startdateasignado= new Date(horarioasignado.getValidezinicio().getTime());\nstartasignado.setTime(startdateasignado);\nGregorianCalendar endasignado=new GregorianCalendar();\nDate enddateasignado= new Date(horarioasignado.getValidezfin().getTime());\nendasignado.setTime(enddateasignado);\n\nint tempfrecasignado = horarioasignado.getHorario().getIdfrecuenciaasignacion().intValue();\nList<Integer> diadelasemanaasignado = diadelasemana(tempfrecasignado);\nList<HashMap<String, Object>> dataasignado = Util.diferenciaEnDiasconFrecuencia(startasignado, endasignado,diadelasemanaasignado,tempfrecasignado);\n\n\n\n\nfor(HorarioAsignado ho:horarios){\n\t\t\tif(ho.getIdhorarioasignado().equals(horarioasignado.getIdhorarioasignado())){\n\t\t\t\n\t\t\t}else{\n\t\t\tif(ho.getIdhorario()==horarioasignado.getIdhorario()){\n\t\t\t\n\t\t\t/*//cedulasconhorarios.add(em);\n\t\t\tif (horarioasignado.getValidezinicio().after(ho.getValidezinicio()) && horarioasignado.getValidezinicio().before(ho.getValidezfin())){\n\t\t\tthrow new LogicaException(\"este contrato ya tiene asociado ese horario\"\n\t\t\t+ \" entre las fechas \"+ho.getValidezinicio()+\" y \"+ ho.getValidezfin());\n\t\t\t\n\t\t\t}*/\n\t\t\t\n\t\t\t}else{\n\t\t\t\n\t\t\t}\n\n\t\tContrato contrato = contratoEJB.getContratosporId(ho.getIdcontrato());\n\t\tEmpleadoBean empleado = empleadoEJB.buscarEmpleadosporId(contrato.getIdempleado());\t\n\tGregorianCalendar start=new GregorianCalendar();\n\tDate startdate= new Date(ho.getValidezinicio().getTime());\n\tstart.setTime(startdate);\n\tGregorianCalendar end=new GregorianCalendar();\n\tDate enddate= new Date(ho.getValidezfin().getTime());\n\tend.setTime(enddate);\n\t\n\tint tempfrec = ho.getHorario().getIdfrecuenciaasignacion().intValue();\n\tList<Integer> diadelasemana = diadelasemana(tempfrec);\n\tList<HashMap<String, Object>> data = Util.diferenciaEnDiasconFrecuencia(start, end,diadelasemana,tempfrec);\n\t\n\t\t\t\t\tfor(HashMap<String, Object> diadehorario:data){\n\t\t\t\tHashMap<String, Object> horariofechas=new HashMap<String, Object>();\n\t\t\t\tGregorianCalendar fecha = (GregorianCalendar)diadehorario.get(\"fecha\");\n\t\t\t\tDate fechadat =fecha.getTime();\n\t\t\t\tGregorianCalendar fechafin = (GregorianCalendar)diadehorario.get(\"fechafin\");\n\t\t\t\tDate fechafindat = fechafin.getTime();\n\t\t\t\tfor(HashMap<String, Object> diaasignado:dataasignado){\n\t\t\t\t\t\tHashMap<String, Object> horariofechasasignadas=new HashMap<String, Object>();\n\t\t\t\t\t\tGregorianCalendar fechaasignada = (GregorianCalendar)diaasignado.get(\"fecha\");\n\t\t\t\t\t\tDate fechaasignadadat =fechaasignada.getTime();\n\t\t\t\t\t\tGregorianCalendar fechafinasignada = (GregorianCalendar)diaasignado.get(\"fechafin\");\n\t\t\t\t\t\tDate fechafinasignadadat = fechafinasignada.getTime();\n\t\t\t\t\t\t\t\t\tif(fechaasignada.after(fechafin)){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif((fechaasignada.getTime().after(fecha.getTime())||fechaasignada.getTime().equals(fecha.getTime())) && fechaasignada.getTime().before(fechafin.getTime()) ){\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//\tif((fechaasignada.getTime().after(fecha.getTime()) && fechaasignada.getTime().before(fechafin.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\") +\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\t\tif((fechafinasignada.getTime().after(fecha.getTime())||fechafinasignada.getTime().equals(fecha.getTime())) && fechafinasignada.getTime().before(fechafin.getTime()) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif((fecha.getTime().after(fechaasignada.getTime() ) && fecha.getTime().before(fechafinasignada.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\t\tif((fechafin.getTime().after(fechaasignada.getTime() ) && fechafin.getTime().before(fechafinasignada.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\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}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\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\n}\n\n\n}\n\n\n/////////////////////////fin validacion/\n}", "public DatosIteracion mejorIteracionOptimizada(\r\n\t\t\tArrayList<DatosIteracion> datos) {\r\n\t\tDatosIteracion d = new DatosIteracion(\"auxiliar\");\r\n\t\tLectura l = new Lectura(999999, 0, 0);\r\n\t\td.getValoresLecturas().add(l);\r\n\r\n\t\tfor (int i = 0; i < datos.size(); i++) {\r\n\r\n\t\t\tif ((d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (d.getValoresLecturas(\r\n\t\t\t\t\td.getValoresLecturas().size() - 1).getTiempo() + 1)) < (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getTiempo() + 1))) {\r\n\r\n\t\t\t\td = datos.get(i);\r\n\t\t\t}\r\n\r\n\t\t\tif ((d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (d.getValoresLecturas(\r\n\t\t\t\t\td.getValoresLecturas().size() - 1).getTiempo() + 1)) == (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getTiempo() + 1))) {\r\n\r\n\t\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo() > datos\r\n\t\t\t\t\t\t.get(i)\r\n\t\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo()) {\r\n\r\n\t\t\t\t\td = datos.get(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn d;\r\n\t}", "public boolean baterPonto(Date dataHora) {\n\t\tSystem.out\n\t\t\t\t.println(\"Vou bater o ponto do Diretor de matricula: \" + this.matricula + \"-\" + dataHora.toString());\n\t\treturn true;\n\t}", "@Override\n\tpublic List<ControlDiarioAlertaDto> convertEntityMenorH(int mes, int year, int diaI, int diaF) {\n\n\t\tList<ControlDiarioAlertaDto> controlAlertas = new ArrayList<ControlDiarioAlertaDto>();\n\n\t\ttry {\n\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"hh:mm\"); // if 24 hour format\n\t\t\tDate d1;\n\t\t\tTime ppstime;\n\n\t\t\td1 = (java.util.Date) format.parse(\"09:00:00\");\n\n\t\t\tppstime = new java.sql.Time(d1.getTime());\n\n\t\t\t// System.out.println(d1);\n\t\t\t// System.out.println(ppstime);\n\n\t\t\t// Llamado al metodo que me trae todos los datos de la tabla tblcontrol_diario\n\t\t\t// de acuerdo al rango (mes, anio, dia inicial , dia final)\n\t\t\tList<ControlDiario> controlD = getControlDiarioService().findAllRange(mes, year, diaI, diaF);\n\n\t\t\tString alerta = \"\";\n\n\t\t\tControlDiarioAlertaDto controlDA = null;\n\t\t\tfor (ControlDiario controlDiario : controlD) {\n\t\t\t\tif (controlDiario.getTiempo().getHours() < prop.getHorasLaboradas()) {\n\t\t\t\t\talerta = \"EL USUARIO NO CUMPLE CON LAS 9 HORAS ESTABLECIDAS\";\n\t\t\t\t\t// System.out.println(\"EL usuario :\" + controlDiario.getNombre() + \" no cumplio\n\t\t\t\t\t// las 9 horas correspondietes\");\n\n\t\t\t\t\t// se carga el DTO solo si el usuario no cumple con las horas establecidas\n\t\t\t\t\tcontrolDA = new ControlDiarioAlertaDto(controlDiario.getFecha().toString(),\n\t\t\t\t\t\t\tString.valueOf(controlDiario.getCodigoUsuario()), controlDiario.getNombre(),\n\t\t\t\t\t\t\tcontrolDiario.getEntrada().toString(), controlDiario.getSalida().toString(),\n\t\t\t\t\t\t\tcontrolDiario.getTiempo().toString(), alerta);\n\n\t\t\t\t\t// Se agrega a la lista de controlDiarioalertaDTO para returnarlo para generar\n\t\t\t\t\t// el reporte\n\t\t\t\t\tcontrolAlertas.add(controlDA);\n\n\t\t\t\t} else {\n\t\t\t\t\talerta = \"\";\n\t\t\t\t}\n\n\t\t\t\t// System.out.println(controlDA.toString());\n\n\t\t\t}\n\n\t\t\treturn controlAlertas;\n\n\t\t} catch (Exception e) {\n\n\t\t\tSystem.out.println(e);\n\n\t\t}\n\n\t\treturn controlAlertas;\n\t}", "public void run() {\r\n\t\tDate fechaActual = new Date();\r\n\t\ttry {\r\n\t\t\t// Actual\r\n\t\t\tint horaActual = Integer.parseInt(ManipulacionFechas\r\n\t\t\t\t\t.getHora(fechaActual));\r\n\t\t\tint minutosActual = Integer.parseInt(ManipulacionFechas\r\n\t\t\t\t\t.getMinutos(fechaActual));\r\n\r\n\t\t\tint horaInicialRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"HORA_INICIAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\t\t\tint minutosInicialRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"MINUTOS_INICIAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\r\n\t\t\tint horaFinalRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"HORA_FINAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\t\t\tint minutosFinalRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"MINUTOS_FINAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\r\n\t\t\t// Tiempo Actual en Minutos\r\n\t\t\tint tiempoActual = (horaActual * 60) + minutosActual;\r\n\r\n\t\t\t// Tiempos de Rango de Ejecucion en Minutos\r\n\t\t\tint rangoInicial = (horaInicialRangoEjecucion * 60)\r\n\t\t\t\t\t+ minutosInicialRangoEjecucion;\r\n\t\t\tint rangoFinal = (horaFinalRangoEjecucion * 60)\r\n\t\t\t\t\t+ minutosFinalRangoEjecucion;\r\n\r\n\t\t\t// Pregunta si la hora actual esta dentro del rango de ejecucion de\r\n\t\t\t// la tarea\r\n\t\t\tif ((tiempoActual >= rangoInicial) && (tiempoActual <= rangoFinal)) {\r\n\t\t\t\tDate start = new Date();\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Corriendo proceso automatico Cobro de Ciat Casa Ciat : \"\r\n\t\t\t\t\t\t\t\t+ start + \"----\");\r\n\t\t\t\tnew BillingAccountServiceImpl().CobroCiatCasaCiat();\r\n\r\n\t\t\t\tDate end = new Date();\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Termina proceso Envio de notificaciones automaticas Cobro de Ciat Casa Ciat \"\r\n\t\t\t\t\t\t\t\t+ start + \"----\");\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(end.getTime()\r\n\t\t\t\t\t\t\t\t- start.getTime()\r\n\t\t\t\t\t\t\t\t+ \" total milliseconds en realizar tarea automatica Cobro de Ciat Casa Ciat : \");\r\n\r\n\t\t\t}// Fin if\r\n\t\t\telse {\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Tarea Automatica de notificacion Cobro de Ciat Casa Ciat en espera... \"\r\n\t\t\t\t\t\t\t\t+ new Date() + \" ----\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog\r\n\t\t\t\t\t.error(\"Error RUN Tarea Automatica de notificacion Cobro de Ciat Casa Ciat: \"\r\n\t\t\t\t\t\t\t+ e.getMessage());\r\n\t\t}\r\n\r\n\t\tfechaActual = null;\r\n\r\n\t}", "@Override\n public int compare(Hive o1, Hive o2) {\n if ((o1 == null) && (o2 != null))\n return -1;\n else if ((o1 != null) && (o2 == null))\n return 1;\n else if ((o1 == null) && (o2 == null))\n return 0;\n\n long d1 = 0;\n long d2 = 0;\n\n if (o1.getCreationDate() != null)\n d1 = o1.getCreationDate().getTime();\n if (o2.getCreationDate() != null)\n d2 = o2.getCreationDate().getTime();\n\n long res = d2-d1;\n\n return ((res > Integer.MAX_VALUE)?Integer.MAX_VALUE:((res < Integer.MIN_VALUE)?Integer.MIN_VALUE:((res==0)?o1.getNameUrl().compareToIgnoreCase(o2.getNameUrl()):(int)res)));\n }", "private Boolean esMejor() {\n if(debug) {\n System.out.println(\"**********************esMejor\");\n }\n \n if(this.solOptima == null || (this.sol.pesoEmparejamiento < this.solOptima.pesoEmparejamiento)) return true;\n else return false;\n }", "public static Comparator<VisualizarEncontroDTO> comparator() {\r\n\t\t\r\n\t\treturn (d1,d2) -> d1.dataInicio.compareTo(d2.dataInicio);\r\n\t}", "public Cliente[] findWhereFechaUltimaVisitaEquals(Date fechaUltimaVisita) throws ClienteDaoException;", "public int getIntHora(int antelacio)\n {\n int hsel = 1;\n //int nhores = CoreCfg.horesClase.length;\n \n Calendar cal2 = null;\n Calendar cal = null;\n \n for(int i=1; i<14; i++)\n {\n cal = Calendar.getInstance();\n cal.setTime(cfg.getCoreCfg().getIesClient().getDatesCollection().getHoresClase()[i-1]);\n cal.set(Calendar.YEAR, m_cal.get(Calendar.YEAR));\n cal.set(Calendar.MONTH, m_cal.get(Calendar.MONTH));\n cal.set(Calendar.DAY_OF_MONTH, m_cal.get(Calendar.DAY_OF_MONTH));\n\n cal2 = Calendar.getInstance();\n cal2.setTime(cfg.getCoreCfg().getIesClient().getDatesCollection().getHoresClase()[i]);\n cal2.set(Calendar.YEAR, m_cal.get(Calendar.YEAR));\n cal2.set(Calendar.MONTH, m_cal.get(Calendar.MONTH));\n cal2.set(Calendar.DAY_OF_MONTH, m_cal.get(Calendar.DAY_OF_MONTH));\n\n cal.add(Calendar.MINUTE, -antelacio);\n cal2.add(Calendar.MINUTE, -antelacio);\n\n if(cal.compareTo(m_cal)<=0 && m_cal.compareTo(cal2)<=0 )\n {\n hsel = i;\n break;\n }\n }\n\n if(m_cal.compareTo(cal2)>0) {\n hsel = 14;\n }\n\n \n return hsel;\n }", "public static String getUltimaFiesta() {\n Map<String, DiaFiestaMeta> diasFiestas;\n Iterator<String> itDiasFiestasMeta;\n SimpleDateFormat formatoDelTexto ;\n Map<String, Date> mapFiestaDia = new HashMap<>(); // \"uidFiesta:tituloDiaFiestaFormateado\"\n HashSet<Fiestas> fiestas;\n Date fechaMasReciente;\n String uidFiestaMasReciente;\n Iterator<String> itmapFiestaDia;\n\n Date date = new Date();\n formatoDelTexto = new SimpleDateFormat(\"dd MMMM yyyy\",new Locale(\"es\",\"ES\"));\n String strDate =formatoDelTexto.format(date);\n uidFiestaMasReciente =\"\";\n try {\n fechaMasReciente = formatoDelTexto.parse(\"15 Junio 1980\");\n } catch (ParseException e) {\n fechaMasReciente = new Date();\n e.printStackTrace();\n }\n fiestas = (HashSet) baseDatos.get(Tablas.Fiestas.name());\n for (Fiestas fiesta : fiestas){\n diasFiestas = fiesta.getDiasFiestas();\n itDiasFiestasMeta = diasFiestas.keySet().iterator();\n while (itDiasFiestasMeta.hasNext()){\n String keyDia = itDiasFiestasMeta.next();\n DiaFiestaMeta diaFiestaMeta = diasFiestas.get(keyDia);\n mapFiestaDia.put(fiesta.getUidFiestas(), formatearDia(diaFiestaMeta.getTituloDiaFiesta(), fiesta.getUidFiestas()));\n }\n }\n\n itmapFiestaDia = mapFiestaDia.keySet().iterator();\n while (itmapFiestaDia.hasNext()) {\n String key = itmapFiestaDia.next();\n Date fechaI = mapFiestaDia.get(key);\n if (fechaI.after(fechaMasReciente)) {\n uidFiestaMasReciente = key;\n fechaMasReciente = fechaI;\n }\n }\n return uidFiestaMasReciente;\n }", "private int sizeForHashTable()\n {\n String compare=\"\";\n int numberOfdates = 0;\n for (int i=0; i <= hourly.size();i++)\n {\n if (i==0)\n {\n numberOfdates +=1;\n compare = data.get(i).getFCTTIME().getPretty();\n }else if(compare != data.get(i).getFCTTIME().getPretty())\n {\n numberOfdates+=1;\n compare = data.get(i).getFCTTIME().getPretty();\n }\n }\n return numberOfdates;\n }", "public void introducirPagosALojamientoClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);// pago de alojamiento en rango fchas\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Dpi_Cliente=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n declaracion.setString(3, dpiCliente);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);// pago de alojamiento en rango fchas\n objeto[3] = resultado.getDate(4);\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void calcularCost() {\r\n cost = 0;\r\n int a = 0;\r\n try {\r\n String r = DataR.toString()+ \" \" + horaR;\r\n String d = DataD.toString()+ \" \" + horaD;\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\r\n Date dateR = simpleDateFormat.parse(r);\r\n Date dateD = simpleDateFormat.parse(d);\r\n a = (int) ((dateD.getTime() - dateR.getTime())/(1000*3600));\r\n \r\n \r\n } catch (ParseException ex) {\r\n Logger.getLogger(Reserva.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if(a > 24) {\r\n cost += 15*(a/(24));\r\n a -= (((int)(a/24))*24);\r\n }\r\n if(a%3600 == 0) {\r\n cost += 1;\r\n }\r\n if(a%3600 > 0) {\r\n cost += 1;\r\n }\r\n \r\n }", "@Override\n public int compareTo(EmailVO emailVO) {\n int result = 0;\n if (data!=null) {\n if (emailVO.getData()!=null) {\n if (this.data.getTime() > emailVO.getData().getTime()) {\n result = 1;\n }\n }\n }\n return result;\n }", "public static void main(String[] args) {\n\t\tLocalDate hoje = LocalDate.now();\n\t\tSystem.out.println(hoje);\n\t\t\n\t\t//Criando nova data\n\t\tLocalDate olimpiadas = LocalDate.of(2016, Month.JUNE, 5);\n\t\tSystem.out.println(olimpiadas);\n\t\t\n\t\t//Calculando diferenca de anos\n\t\tint anos = olimpiadas.getYear() - hoje.getYear();\n\t\tSystem.out.println(anos);\n\n\t\t//Demonstracao de imutabilidade\n\t\tolimpiadas.plusYears(4);\n\t\tSystem.out.println(olimpiadas);\n\t\t\n\t\tLocalDate proximasOlimpiadas = olimpiadas.plusYears(4);\n\t\tSystem.out.println(proximasOlimpiadas);\n\t\t\n\t\t//Periodo entre data de inicio e fim \n\t\tPeriod periodo = Period.between(hoje, olimpiadas);\n\t\tSystem.out.println(periodo);\n\n\t\t//Formata data \n\t\tDateTimeFormatter formataData = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\tSystem.out.println(proximasOlimpiadas.format(formataData));\n\t\t\n\t\t//Craindo data e hora\n\t\tLocalDateTime agora = LocalDateTime.now();\n\t\tSystem.out.println(agora);\n\t\t\n\t\t//Formatando data e hora\n\t\t//Obs.: O formatado de data e hora nao pode ser usado para formata data.\n\t\tDateTimeFormatter formataDataComHoras = DateTimeFormatter.ofPattern(\"dd/MM/yyyy hh:mm\");\n\t\tSystem.out.println(agora.format(formataDataComHoras ));\n\t\t\n\t\tLocalTime intervalo = LocalTime.of(15, 30);\n\t\tSystem.out.println(intervalo);\n\t\t\n\t\t \n\t\t\n\t}", "public static int anosEntreDatas(Date dataInicial, Date dataFinal) {\r\n\r\n\t\tint idade = 0;\r\n\r\n\t\twhile (compararData(dataInicial, dataFinal) == -1) {\r\n\r\n\t\t\tint sDiaInicial = getDiaMes(dataInicial);\r\n\t\t\tint sMesInicial = getMes(dataInicial);\r\n\t\t\tint sAnoInicial = getAno(dataInicial);\r\n\r\n\t\t\tint sDiaFinal = getDiaMes(dataFinal);\r\n\t\t\tint sMesFinal = getMes(dataFinal);\r\n\t\t\tint sAnoFinal = getAno(dataFinal);\r\n\r\n\t\t\tsAnoInicial++;\r\n\t\t\tdataInicial = criarData(sDiaInicial, sMesInicial, sAnoInicial);\r\n\r\n\t\t\tif (sAnoInicial == sAnoFinal) {\r\n\r\n\t\t\t\tif (sMesInicial < sMesFinal || (sMesInicial == sMesFinal && sDiaInicial <= sDiaFinal)) {\r\n\r\n\t\t\t\t\tidade++;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tidade++;\r\n\r\n\t\t}\r\n\r\n\t\treturn idade;\r\n\t}", "@Override\r\n public int compareTo(Task t)\r\n { \r\n //information of task passed in\r\n String dateTime=t.dueDate;\r\n String[] dateNoSpace1=dateTime.split(\" \");\r\n String[] dateOnly1=dateNoSpace1[0].split(\"/\");\r\n String[] timeOnly1=dateNoSpace1[1].split(\":\");\r\n \r\n //information of task being compared\r\n String[] dateNoSpace=this.dueDate.split(\" \");\r\n String[] dateOnly=dateNoSpace[0].split(\"/\");\r\n String[] timeOnly=dateNoSpace[1].split(\":\");\r\n \r\n //compares tasks by...\r\n \r\n //years\r\n if(dateOnly1[2].equalsIgnoreCase(dateOnly[2])) \r\n { \r\n //months\r\n if(dateOnly1[0].equalsIgnoreCase(dateOnly[0]))\r\n {\r\n //days\r\n if(dateOnly1[1].equalsIgnoreCase(dateOnly[1]))\r\n {\r\n //hours\r\n if(timeOnly1[0].equalsIgnoreCase(timeOnly[0]))\r\n {\r\n //minutes\r\n if(timeOnly1[1].equalsIgnoreCase(timeOnly[1]))\r\n {\r\n //names\r\n if(this.taskName.compareTo(t.taskName)>0)\r\n { \r\n return -1;\r\n } \r\n else return 1;\r\n }\r\n //if minutes are not equal, find the soonest one\r\n else if(Integer.parseInt(timeOnly1[1])<Integer.parseInt(timeOnly[1]))\r\n {\r\n return -1; \r\n } \r\n else return 1;\r\n }\r\n //if hours are not equal, find the soonest one\r\n else if(Integer.parseInt(timeOnly1[0])<Integer.parseInt(timeOnly[0]))\r\n {\r\n return -1; \r\n } \r\n else return 1;\r\n }\r\n //if days are not equal, find the soonest one\r\n else if(Integer.parseInt(dateOnly1[1])<Integer.parseInt(dateOnly[1]))\r\n {\r\n return -1; \r\n }\r\n else return 1;\r\n }\r\n //if months are not equal, find the soonest one\r\n else if(Integer.parseInt(dateOnly1[0])<Integer.parseInt(dateOnly[0]))\r\n {\r\n return -1; \r\n } \r\n else return 1;\r\n }\r\n //if years are not equal, find the soonest one \r\n else if(Integer.parseInt(dateOnly1[2])<Integer.parseInt(dateOnly[2]))\r\n {\r\n return -1;\r\n }\r\n else return 1;\r\n }", "public void ReservaEfetivadas () {\n Date hoje = new Date ();\n for (int z = 0; z < vecReserva.size(); z++) {\n if (((int) ((((entReserva)vecReserva.elementAt(z)).getDatain().getTime() - (hoje.getTime())) / 86400000L)) == 0){// Reserva será relaizada hj\n if (((entReserva)vecReserva.elementAt(z)).getPagamento().getSituacao() == 0){//Cliente fez todo o pagamento e o quarto será\n vecReservaEfetivadas.add(vecReserva.elementAt(z));\n }\n \n }\n }\n }", "public int compareTo(ScheduleTime compare) {\n return (this.startHours - compare.startHours) * 100 + (this.startMins - compare.startMins);\n }", "static int compare(EpochTimeWindow left, EpochTimeWindow right) {\n long leftValue = left.isEmpty() ? Long.MIN_VALUE : left.getBeginTime();\n long rightValue = right.isEmpty() ? Long.MIN_VALUE : right.getBeginTime();\n\n int result = Long.compare(leftValue, rightValue);\n if (0 != result) {\n return result;\n }\n\n leftValue = left.isEmpty() ? Long.MIN_VALUE : left.getEndTime();\n rightValue = right.isEmpty() ? Long.MIN_VALUE : right.getEndTime();\n\n result = Long.compare(leftValue, rightValue);\n return result;\n }", "public static int compareTimestamps(final String ts1, final String ts2) throws Exception {\r\n\r\n int result = 0;\r\n\r\n XMLGregorianCalendar date1 = DatatypeFactory.newInstance().newXMLGregorianCalendar(ts1);\r\n XMLGregorianCalendar date2 = DatatypeFactory.newInstance().newXMLGregorianCalendar(ts2);\r\n\r\n int diff = date1.compare(date2);\r\n if (diff == DatatypeConstants.LESSER) {\r\n result = -1;\r\n }\r\n else if (diff == DatatypeConstants.GREATER) {\r\n result = 1;\r\n }\r\n else if (diff == DatatypeConstants.EQUAL) {\r\n result = 0;\r\n }\r\n else if (diff == DatatypeConstants.INDETERMINATE) {\r\n throw new Exception(\"Date comparing: INDETERMINATE\");\r\n }\r\n\r\n return result;\r\n }", "public void introducirPagosALojamientoHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];// pago de alojamiento en rango fchas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);\n objeto[3] = resultado.getDate(4);// pago de alojamiento en rango fchas\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();// pago de alojamiento en rango fchas\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "@Test\n public void testDetecterCompteSousMoyenne() {\n// System.out.println(\"detecterAnomalieParrapportAuSeuil\");\n Integer seuil = 30;\n POJOCompteItem instance = genererInstanceTest();\n\n try {\n instance.compte();\n instance.calculerMoyenne(new DateTime(2013, 1, 1, 0, 0).toDate(), new DateTime(2013, 1, 6, 0, 0).toDate());\n } catch (Exception ex) {\n Logger.getLogger(POJOCompteItemTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n// List expResult = null;\n Map<Date, Integer> result = instance.detecterAnomalieParrapportAuSeuil(seuil);\n\n if (result.size() != 3) {\n fail(\"on attend 3 résultats\");\n }\n\n\n try { // On tente de faire le calcul avec une valeur null doit lever une NullPointerException\n instance.detecterAnomalieParrapportAuSeuil(null);\n fail(\"devait lancer une exception\");\n } catch (Exception e) {\n if (!e.getClass().equals(NullPointerException.class)) {\n fail(\"devait lever une NullPointerException\");\n }\n }\n }" ]
[ "0.7435886", "0.66937816", "0.63894224", "0.63369966", "0.6142942", "0.5897681", "0.5829946", "0.58025634", "0.58018357", "0.57351494", "0.5732441", "0.56492114", "0.56492114", "0.5609778", "0.55768657", "0.5560694", "0.5560273", "0.5556347", "0.5486986", "0.5459365", "0.54261035", "0.539906", "0.5398552", "0.5395839", "0.53777814", "0.53670543", "0.53655016", "0.5356733", "0.53449494", "0.53375816", "0.5301669", "0.5287739", "0.5277557", "0.5277092", "0.5255083", "0.5250584", "0.5232693", "0.5226922", "0.5207056", "0.5195391", "0.5195017", "0.51931775", "0.5180022", "0.51797676", "0.5176738", "0.517493", "0.5161652", "0.51590097", "0.51550186", "0.5151717", "0.51514727", "0.51351184", "0.5129649", "0.51273954", "0.5123344", "0.51182175", "0.51093817", "0.5098878", "0.5081681", "0.506511", "0.506424", "0.5063569", "0.5050079", "0.50450563", "0.50368893", "0.5035127", "0.5028936", "0.5024507", "0.50243527", "0.50207204", "0.5020572", "0.50101733", "0.50093144", "0.50035614", "0.4993102", "0.49929467", "0.49889025", "0.49768332", "0.49765456", "0.49733892", "0.4966903", "0.49609992", "0.49608877", "0.4956715", "0.49497095", "0.49495637", "0.49485147", "0.49458876", "0.4944775", "0.49347213", "0.49308223", "0.49291486", "0.49269402", "0.49255744", "0.49235988", "0.4920771", "0.49206367", "0.4920458", "0.49158996", "0.49103332" ]
0.6668477
2
retorna sequencial formatado(Ex.: 000.001)
public static String retornaSequencialFormatado(int sequencial) { // sequencial impressão String retorno = Util.adicionarZerosEsquedaNumero(6, "" + sequencial); retorno = retorno.substring(0, 3) + "." + retorno.substring(3, 6); return retorno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String formatPRECIO(String var1)\r\n\t{\r\n\t\tString temp = var1.replace(\".\", \"\");\r\n\t\t\r\n\t\treturn( String.format(\"%09d\", Integer.parseInt(temp)) );\r\n\t}", "private String format(String s){\n\t\tint len = s.length();\n\t\tfor (int i = 0; i < 6 - len; i++){\n\t\t\ts = \"0\" + s;\n\t\t}\n\t\t\n\t\treturn s;\n\t}", "private String formato(String cadena){\n cadena = cadena.replaceAll(\" \",\"0\");\n return cadena;\n }", "String format(double balance);", "public String formatoDecimales(double valorInicial, int numeroDecimales ,int espacios) { \n String number = String.format(\"%.\"+numeroDecimales+\"f\", valorInicial);\n String str = String.valueOf(number);\n String num = str.substring(0, str.indexOf(',')); \n String numDec = str.substring(str.indexOf(',') + 1);\n \n for (int i = num.length(); i < espacios; i++) {\n num = \" \" + num;\n }\n \n for (int i = numDec.length(); i < espacios; i++) {\n numDec = numDec + \" \";\n }\n \n return num +\".\" + numDec;\n }", "public String format(double number);", "@VTID(8)\r\n java.lang.String format();", "private String getDecimalPattern(String str) {\n int decimalCount = str.length() - str.indexOf(\".\") - 1;\n StringBuilder decimalPattern = new StringBuilder();\n for (int i = 0; i < decimalCount && i < MAX_DECIMAL; i++) {\n decimalPattern.append(\"0\");\n }\n return decimalPattern.toString();\n }", "private String moneyFormat(String money)\n {\n if(money.indexOf('.') == -1)\n {\n return \"$\" + money;\n }\n else\n {\n String dec = money.substring(money.indexOf('.')+1 , money.length());\n if(dec.length() == 1)\n {\n return \"$\" + money.substring(0, money.indexOf('.')+1) + dec + \"0\";\n }\n else\n {\n return \"$\" + money.substring(0, money.indexOf('.')+1) + dec.substring(0,2);\n }\n }\n }", "public void toStr()\r\n {\r\n numar = Integer.toString(read());\r\n while(numar.length() % 3 != 0){\r\n numar = \"0\" + numar; //Se completeaza cu zerouri pana numarul de cifre e multiplu de 3.\r\n }\r\n }", "public String format(int par1) {\n\t\tdouble var2 = (double) par1 / 20.0D;\n\t\tdouble var4 = var2 / 60.0D;\n\t\tdouble var6 = var4 / 60.0D;\n\t\tdouble var8 = var6 / 24.0D;\n\t\tdouble var10 = var8 / 365.0D;\n\t\treturn var10 > 0.5D ? StatBase.getDecimalFormat().format(var10) + \" y\"\n\t\t\t\t: (var8 > 0.5D ? StatBase.getDecimalFormat().format(var8) + \" d\" : (var6 > 0.5D ? StatBase.getDecimalFormat().format(var6) + \" h\" : (var4 > 0.5D ? StatBase.getDecimalFormat().format(var4) + \" m\" : var2 + \" s\")));\n\t}", "private static String convertToFormat(int number) {\n int cents = number%100;\n number /= 100;\n return \"$\" + String.valueOf(number) + \".\" + String.valueOf(cents);\n }", "private String formatUsNumber(Editable text) {\n\t\tStringBuilder cashAmountBuilder = null;\n\t\tString USCurrencyFormat = text.toString();\n//\t\tif (!text.toString().matches(\"^\\\\$(\\\\d{1,3}(\\\\,\\\\d{3})*|(\\\\d+))(\\\\.\\\\d{2})?$\")) { \n\t\t\tString userInput = \"\" + text.toString().replaceAll(\"[^\\\\d]\", \"\");\n\t\t\tcashAmountBuilder = new StringBuilder(userInput);\n\n\t\t\twhile (cashAmountBuilder.length() > 3 && cashAmountBuilder.charAt(0) == '0') {\n\t\t\t\tcashAmountBuilder.deleteCharAt(0);\n\t\t\t}\n\t\t\twhile (cashAmountBuilder.length() < 3) {\n\t\t\t\tcashAmountBuilder.insert(0, '0');\n\t\t\t}\n\t\t\tcashAmountBuilder.insert(cashAmountBuilder.length() - 2, '.');\n\t\t\tUSCurrencyFormat = cashAmountBuilder.toString();\n\t\t\tUSCurrencyFormat = Util.getdoubleUSPriceFormat(Double.parseDouble(USCurrencyFormat));\n\n//\t\t}\n\t\tif(\"0.00\".equals(USCurrencyFormat)){\n\t\t\treturn \"\";\n\t\t}\n\t\tif(!USCurrencyFormat.contains(\"$\"))\n\t\t\treturn \"$\"+USCurrencyFormat;\n\t\treturn USCurrencyFormat;\n\t}", "private String calibrate(int count)\n {\n String str = \"\";\n if(count < 10)\n {\n str = \" \" + Integer.toString(count);\n }\n else if(count < 100)\n {\n str = \" \" + Integer.toString(count);\n }\n else if(count < 1000)\n {\n str = \" \" + Integer.toString(count);\n }\n else\n {\n str = Integer.toString(count);\n }\n\n return str;\n }", "R format(O value);", "public String getCurrentValueFormatted()\r\n {\r\n \t/*\r\n \t * If you look at the OpenXML spec or\r\n \t * STNumberFormat.java, you'll see there are some 60 number formats.\r\n \t * \r\n \t * Of these, we currently aim to support:\r\n \t * \r\n\t\t * decimal\r\n\t\t * upperRoman\r\n\t\t * lowerRoman\r\n\t\t * upperLetter\r\n\t\t * lowerLetter\r\n\t\t * bullet\r\n\t\t * none\r\n\t\t * \r\n\t\t * What about?\r\n\t\t * \r\n\t\t * ordinal\r\n\t\t * cardinalText\r\n\t\t * ordinalText\r\n \t * \r\n \t */\r\n \t\r\n \tif (numFmt.equals( NumberFormat.DECIMAL ) ) {\r\n \t\treturn this.counter.getCurrentValue().toString();\r\n \t}\r\n \t\r\n \tif (numFmt.equals( NumberFormat.NONE ) ) {\r\n \t\treturn \"\"; \t\t\r\n \t}\r\n\r\n \tif (numFmt.equals( NumberFormat.BULLET ) ) {\r\n \t\t\r\n \t\t// TODO - revisit how this is handled.\r\n \t\t// The code elsewhere for handling bullets\r\n \t\t// overlaps with this numFmt stuff.\r\n \t\treturn \"*\"; \t\t\r\n \t}\r\n \t \t\r\n \tint current = this.counter.getCurrentValue().intValue();\r\n \t\r\n \tif (numFmt.equals( NumberFormat.UPPER_ROMAN ) ) { \t\t\r\n \t\tNumberFormatRomanUpper converter = new NumberFormatRomanUpper(); \r\n \t\treturn converter.format(current);\r\n \t}\r\n \tif (numFmt.equals( NumberFormat.LOWER_ROMAN ) ) { \t\t\r\n \t\tNumberFormatRomanLower converter = new NumberFormatRomanLower(); \r\n \t\treturn converter.format(current);\r\n \t}\r\n \tif (numFmt.equals( NumberFormat.LOWER_LETTER ) ) { \t\t\r\n \t\tNumberFormatLowerLetter converter = new NumberFormatLowerLetter(); \r\n \t\treturn converter.format(current);\r\n \t}\r\n \tif (numFmt.equals( NumberFormat.UPPER_LETTER ) ) { \t\t\r\n \t\tNumberFormatLowerLetter converter = new NumberFormatLowerLetter(); \r\n \t\treturn converter.format(current).toUpperCase();\r\n \t} \t\r\n \tif (numFmt.equals( NumberFormat.DECIMAL_ZERO ) ) { \t\t\r\n \t\tNumberFormatDecimalZero converter = new NumberFormatDecimalZero(); \r\n \t\treturn converter.format(current);\r\n \t}\r\n \t\r\n \tlog.error(\"Unhandled numFmt: \" + numFmt.name() );\r\n return this.counter.getCurrentValue().toString();\r\n }", "public void formatoTiempo() {\n String segundos, minutos, hora;\n\n hora = hrs < 10 ? String.valueOf(\"0\" + hrs) : String.valueOf(hrs);\n\n minutos = min < 10 ? String.valueOf(\"0\" + min) : String.valueOf(min);\n\n jLabel3.setText(hora + \" : \" + minutos + \" \" + tarde);\n }", "public static String formatNumberStyle(int n) {\n double result;\n if(n < 1000) {\n return \"\"+n;\n } else if(n >= 1000 && n < 1000000) {\n result = round(((double) n)/1000, 1);\n return (result + \"k\");\n } else if(n >= 1000000) {\n result = round(((double) n)/1000000, 1);\n return (result + \"m\");\n }\n return \"\"+n;\n }", "public String Formatting(){\n\t\t\t return String.format(\"%03d-%02d-%04d\", getFirstSSN(),getSecondSSN(),getThirdSSN());\n\t\t }", "private String formatDec(double number) {\n String returnString = \"\";\n DecimalFormat df = new DecimalFormat(\"#.##\");\n df.setRoundingMode(RoundingMode.HALF_UP);\n returnString = df.format(number);\n int dotPosition = returnString.lastIndexOf(\".\");\n if (dotPosition == -1) {\n returnString += \".00\";\n } else {\n if (returnString.substring(dotPosition, returnString.length() - 1).length() == 1) {\n returnString += \"0\";\n }\n }\n return returnString;\n }", "private String numberFormatter(double input) {\n // Formatters\n NumberFormat sciFormatter = new DecimalFormat(\"0.#####E0\"); // Scientific notation\n NumberFormat commaFormatter = new DecimalFormat(\"###,###,###,###.###############\"); // Adding comma\n\n // If input is in scientific notation already\n if ((String.valueOf(input)).indexOf(\"E\") > 0) {\n return sciFormatter.format(input); // make the scientific notation neater\n }\n\n // If input is not in scientific notation\n // Number of digits of integer and decimal of input\n String[] splitter = String.format(\"%f\", input).split(\"\\\\.\");\n int intDigits = splitter[0].length(); // Before Decimal Count\n int decDigits;// After Decimal Count\n if (splitter[1].equals(\"000000\")){\n decDigits = 0;\n } else {\n decDigits= splitter[1].length();\n }\n\n if ((intDigits + decDigits) > 9) {\n return sciFormatter.format(input);\n }\n return commaFormatter.format(input);\n }", "private String defaultFormat(double d) {\n\t\tString str = \"\" + d;\n\t\tint availableSpace = getSize().width - 2 * PIXEL_MARGIN;\n\t\tFontMetrics fm = getFontMetrics(getFont());\n\t\tif (fm.stringWidth(str) <= availableSpace) return str;\n\t\tint eIndex = str.indexOf(\"E\");\n\t\tString suffix = \"\";\n\t\tif (eIndex != -1) {\n\t\t\tsuffix = str.substring(eIndex);\n\t\t\tstr = str.substring(0, eIndex);\n\t\t\ttry {\n\t\t\t\td = parser.parse(str).doubleValue();\n\t\t\t} catch (ParseException ex) {\n\t\t\t\tthrow new ErrorException(ex);\n\t\t\t}\n\t\t}\n\t\tNumberFormat standard = NumberFormat.getNumberInstance(Locale.US);\n\t\tstandard.setGroupingUsed(false);\n\t\tString head = str.substring(0, str.indexOf('.') + 1);\n\t\tint fractionSpace = availableSpace - fm.stringWidth(head + suffix);\n\t\tif (fractionSpace > 0) {\n\t\t\tint fractionDigits = fractionSpace / fm.stringWidth(\"0\");\n\t\t\tstandard.setMaximumFractionDigits(fractionDigits);\n\t\t\treturn standard.format(d) + suffix;\n\t\t}\n\t\tstr = \"\";\n\t\twhile (fm.stringWidth(str + \"#\") <= availableSpace) {\n\t\t\tstr += \"#\";\n\t\t}\n\t\treturn str;\n\t}", "void format();", "private String tenthsToFixedString(int x) {\n int tens = x / MAGIC_NUMBER_TEN;\n return new String(\"\" + tens + \".\" + (x - MAGIC_NUMBER_TEN * tens));\n }", "public static void main(String args[])\n {\n Scanner sc=new Scanner(System.in);\n String s=sc.next();\n double n=0;\n int dcount=0;\n int pointer=0;\n for(int i=0;i<s.length();i++)\n {\n if(s.charAt(i)!='.')\n {\n n=n*10+(s.charAt(i)-'0');\n if(pointer==1)\n dcount++;\n }\n else\n pointer=1;\n }\n n=n/Math.pow(10,dcount);\n System.out.printf(\"%.6f\",n);\n }", "public static String FormatNumber(int i) {\n\t\ttry {\n\t\t\tif (i >= 0 && i < 10)\n\t\t\t\treturn \"0\" + i;\n\t\t\telse\n\t\t\t\treturn \"\" + i;\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}", "public char get_floating_suffix();", "private static DecimalFormat determineLabelFormat(float val) {\n float absval = Math.abs(val);\n\n DecimalFormat rval = null;\n if (absval == 0) {\n rval = new DecimalFormat(\"0.#\");\n } else if (absval < 0.001 || absval > 1e7) {\n rval = new DecimalFormat(\"0.###E0\");\n } else if (absval < 0.01) {\n rval = new DecimalFormat(\"0.###\");\n } else if (absval < 0.1) {\n rval = new DecimalFormat(\"0.##\");\n } else {\n rval = new DecimalFormat(\"0.#\");\n }\n\n return rval;\n }", "public static String formatG(BigDecimal b) {\n\t\tString s = format(b);\n\t\tchar[] charArray = s.toCharArray();\n\t\tStringBuffer sb = new StringBuffer();\n\t\tint cnt = -1;\n\t\tif (!s.contains(\".\")) {\n\t\t\tcnt = 0;\n\t\t}\n\t\tfor (int i = charArray.length - 1; i > -1; i--) {\n\t\t\tchar c = charArray[i];\n\t\t\tsb.append(c);\n\t\t\tif ('.' == c) {\n\t\t\t\tcnt = 0;\n\t\t\t} else if (cnt >= 0) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t\tif (cnt == 3 && i != 0) {\n\t\t\t\tsb.append(\",\");\n\t\t\t\tcnt = 0;\n\t\t\t}\n\t\t}\n\t\treturn sb.reverse().toString();\n\t}", "public static String addLeadingZeros(Number numeric,int nbLength)\n {\n Double theNumerDbl = toDoubleObj(numeric);\n Integer theNumerInt = theNumerDbl.intValue();\n String thePattern = \"%0\"+nbLength+\"d\";\n return String.format(thePattern, theNumerInt);\n }", "protected abstract String format();", "private String getFormattedPrice(double unformattedPrice) {\n String formattedData = String.format(\"%.02f\", unformattedPrice);\n return formattedData;\n }", "private String feelZero(Integer i){\n if( i < 10 ){\n return \"0\"+i;\n }else{\n return Integer.toString(i);\n }\n }", "public static void main(String[] args) throws Exception {\n String s;\n// s = \"0000000000000\";\n s = \"000000-123456\";\n// s = \"000000123456\";\n if (s.matches(\"^0+$\")) {\n s = \"0\";\n }else{\n s = s.replaceFirst(\"^0+\",\"\");\n }\n System.out.println(s);\n\n\n// System.out.println(StringUtils.addRight(s,'A',mod));\n// String s = \"ECPay thong bao: Tien dien T11/2015 cua Ma KH PD13000122876, la 389.523VND. Truy cap www.ecpay.vn hoac lien he 1900561230 de biet them chi tiet.\";\n// Pattern pattern = Pattern.compile(\"^(.+)[ ](\\\\d+([.]\\\\d+)*)+VND[.](.+)$\");\n// Matcher matcher = pattern.matcher(s);\n// if(matcher.find()){\n// System.out.println(matcher.group(2));\n// }\n }", "@Override\n public void onClick(View v) {\n if(curr.isEmpty()){\n curr = \"0.\";\n dot_inserted=true;\n }\n /*check fr validation if dot_inserted is equals to false append \".\"*/\n /*Add it to the string*/\n if(dot_inserted == false){\n curr = curr + \".\";\n dot_inserted = true;\n }\n displayNum();\n }", "public static String format(Object val, String pattern, char groupsepa, char decimalsepa)\n {\n if(val == null)\n {\n\t return \"\";\n } \n try\n {\n\t DecimalFormat _df = new DecimalFormat();\n\t _df.setRoundingMode(RoundingMode.HALF_UP);\n\t _df.applyPattern(pattern);\n\n\t String standardFrmt = _df.format(val);\n\t // need first to replace by #grpSep# so that in case the group separator is equal to dot . the replacement will be correct\n\t String returnFrmt = standardFrmt.replace(\",\",\"#grp#\");\n\t returnFrmt = returnFrmt.replace(\".\",decimalsepa+\"\");\n\t returnFrmt = returnFrmt.replace(\"#grp#\",groupsepa+\"\");\n\t return returnFrmt;\n\n }\n catch(Exception ex)\n {\n\t log.error(ex, \"[NumberUtil] Error caught in method format\");\n\t return \"\";\n }\n}", "private static String format(double elapsedSec) {\n\t\tint elapsedMs = (int) Math.round(elapsedSec * 1000);\n\t\treturn Integer.toString(elapsedMs) + \" ms\";\n\t}", "private String calcMod(double val) {\n double vall = (val - 10) / 2;\n if (vall < 0) {\n val = Math.floor(vall);\n return String.valueOf((int)val);\n }\n else {\n val = Math.ceil(vall);\n return \"+\" + String.valueOf((int)val);\n }\n }", "public String detectaDoble(double numero){\n\t\treturn numero % 1.0 != 0 ? String.format(\"%s\", numero) : String.format(\"%.0f\", numero);\n\t}", "String format(int val, int width) {\r\n\t\tint len = width - (int)Math.floor(Math.log10(val)) - 1;\r\n\t\tif (len < 1)\r\n\t\t\treturn \"\" + val;\r\n\t\tchar[] c = new char[len];\r\n\t\tfor (int i = 0; i < len; i++) {\r\n\t\t\tc[i] = '0';\r\n\t\t}\r\n\t\treturn new String(c) + val;\r\n\t}", "public String convert(int input) {\n\t\tif (input < 1 || input > 3000)\n\t\t\treturn \"invalid numeral\" ;\n\t\tString n = \"\";\n\t\t\n\t\twhile (input >= 1000) {\n\t\t\tn += \"M\";\n\t\t\tinput -= 1000;\n\t\t}\n\t\t\n\t\twhile (input >= 900) {\n\t\t\tn += \"CM\";\n\t\t\tinput -= 900;\n\t\t}\n\t\t\n\t\twhile (input >= 500) {\n\t\t\tn += \"D\";\n\t\t\tinput -= 500;\n\t\t}\n\t\t\n\t\twhile (input >= 400) {\n\t\t\tn += \"CD\";\n\t\t\tinput -= 400;\n\t\t}\n\t\t\n\t\twhile (input >= 100) {\n\t\t\tn += \"C\";\n\t\t\tinput -= 100;\n\t\t}\n\t\t\n\t\twhile (input >= 90) {\n\t\t\tn += \"XC\";\n\t\t\tinput -= 90;\n\t\t}\n\t\t\n\t\twhile (input >= 50) {\n\t\t\tn += \"L\";\n\t\t\tinput -= 50;\n\t\t}\n\t\t\n\t\twhile (input >= 40) {\n\t\t\tn += \"XL\";\n\t\t\tinput -= 40;\n\t\t}\n\t\t\n\t\twhile (input >= 10) {\n\t\t\tn += \"X\";\n\t\t\tinput -= 10;\n\t\t}\n\t\t\n\t\twhile (input >= 9) {\n\t\t\tn += \"IX\";\n\t\t\tinput -= 9;\n\t\t}\n\t\t\n\t\twhile (input >= 5) {\n\t\t\tn += \"V\";\n\t\t\tinput -= 5;\n\t\t}\n\t\t\n\t\twhile (input >= 4) {\n\t\t\tn += \"IV\";\n\t\t\tinput -= 4;\n\t\t}\n\t\t\n\t\twhile (input >= 1) {\n\t\t\tn += \"I\";\n\t\t\tinput -= 1;\n\t\t}\n\t\t\n\t\treturn n; \n\t}", "protected float formatAnimRate(float result,boolean noReversal) {\n\t\t result = noReversal ? result : 1 - result;\n\t\tif (result > 1) {\n\t\t\tresult = 2 - result;\n\t\t} else if (result < -1) {\n\t\t\tresult = -result - 2;\n\t\t}\n\t\treturn result;\n\t}", "static String double2String (Double a){\n String s = \"\"+a;\n String[] arr = s.split(\"\\\\.\");\n if (arr[1].length()==1) s+=\"0\";\n return s;\n }", "@Override\r\n\t\t\t\tpublic String textFormatter(String value) {\n\t\t\t\t\tDouble tmp = Double.parseDouble(value);\r\n\t\t\t\t\tDecimalFormat df = new DecimalFormat(\"0.00\");\r\n\t\t\t\t\tString label = df.format(tmp).toString();\r\n\t\t\t\t\treturn (label);\r\n\t\t\t\t}", "private static String leftPadZeroes(String s, int nZeroes){\r\n if (s.indexOf(\".\") == -1) {\r\n s = String.format(\"%\" + String.valueOf(nZeroes) +\"s\", s);\r\n } else {\r\n s = String.format(\"%\" + String.valueOf(s.length() - s.indexOf(\".\") + nZeroes) +\"s\", s);\r\n }\r\n s = s.replace(\" \", \"0\");\r\n\r\n return s;\r\n }", "public static String priceVNFormat(float price) {\r\n\t\tString prices = String.valueOf(new Float(price).intValue());\r\n\t\tString temp = \"\";\r\n\t\tint i;\r\n\t\tfor (i = prices.length(); i >= 3; i -= 3) {\r\n\t\t\ttemp = prices.substring(i - 3, i) + \".\" + temp;\r\n\r\n\t\t}\r\n\t\tif (i != 0) {\r\n\t\t\ttemp = prices.substring(0, i) + \".\" + temp;\r\n\r\n\t\t}\r\n\t\treturn temp.substring(0, temp.length() - 1);\r\n\t}", "private String zxt (long inp, int length) {\n String result = Long.toString(inp);\n int dist = (length - result.length());\n for (int i = 0; i < dist; i++) {\n result = \"0\" + result;\n }\n return result;\n }", "public String decimalNumberOct(double d) {\n m = \"\";\n c = 0;\n i = 0;\n long z = (long) d;\n while (z != 0) {\n //11001 ------- 25\n c += ((z % 10) * (Math.pow(8, i)));\n z /= 10;\n i++;\n }\n if ((long) d != d) {\n i = -1;\n m += d;\n f = m.indexOf('.') + 1;\n f = m.length() - f;\n f = -f;\n double a = d - (long) d;\n while (i >= f) {\n //11001 ------- 25\n a *= 10;\n c += (long) a * ((Math.pow(8, i)));\n i--;\n a -= (long) a;\n }\n }\n m = \"\";\n m += c;\n return m;\n }", "private String peso(long peso,int i)\n {\n DecimalFormat df=new DecimalFormat(\"#.##\");\n //aux para calcular el peso\n float aux=peso;\n //string para guardar el formato\n String auxPeso;\n //verificamos si el peso se puede seguir dividiendo\n if(aux/1024>1024)\n {\n //variable para decidir que tipo es \n i=i+1;\n //si aun se puede seguir dividiendo lo mandamos al mismo metodo\n auxPeso=peso(peso/1024,i);\n }\n else\n {\n //si no se puede dividir devolvemos el formato\n auxPeso=df.format(aux/1024)+\" \"+pesos[i];\n }\n return auxPeso;\n }", "public static String randomNumberString() {\n\r\n Random random = new Random();\r\n int i = random.nextInt(999999);\r\n\r\n\r\n return String.format(\"%06d\", i);\r\n }", "public String print(int format);", "public static String formatearRut(String rut){\r\n int cont = 0;\r\n String format;\r\n rut= rut.replace(\".\", \"\");\r\n rut = rut.replace(\"-\", \"\");\r\n format= \"-\" + rut.substring(rut.length()-1);\r\n for(int i = rut.length()-2; i>=0;i--){\r\n format=rut.substring(i,i+1)+format;\r\n cont++;\r\n if(cont==3 && i!=0){\r\n format= \".\"+format;\r\n cont=0;\r\n }\r\n }\r\n return format;\r\n }", "public static void main(String[] args){\n NumberFormat currency = NumberFormat.getCurrencyInstance();\n String result =currency.format(123456.789);//A method for formatting values\n System.out.println(result);\n }", "static String formatValue(long value) {\n if (value > 1_000_000) {\n return String.format(\"%dM\", value / 1_000_000);\n } else {\n return Long.toString(value);\n }\n }", "String getValueFormat();", "public static String toCoinFormat(Object obj) {\r\n\t\ttry {\r\n\t\t\twhile (obj.toString().length() < 4) {\r\n\t\t\t\tobj = \"0\" + obj;\r\n\t\t\t}\r\n\t\t\tString objStr = obj.toString();\r\n\t\t\tint length = objStr.length();\r\n\t\t\tString yuan = objStr.substring(0, length - 2);\r\n\t\t\tif (yuan.equals(\"00\")) {\r\n\t\t\t\tyuan = \"0\";\r\n\t\t\t} else if (yuan.length() > 1 && yuan.substring(0, 1).equals(\"0\")) {\r\n\t\t\t\tyuan = yuan.substring(1, yuan.length());\r\n\t\t\t}\r\n\t\t\tString fen = objStr.substring(length - 2, length);\r\n\t\t\tif (fen.equals(\"00\")) {\r\n\t\t\t\tfen = \"\";\r\n\t\t\t} else if (fen.length() == 2 && fen.substring(1, 2).equals(\"0\")) {\r\n\t\t\t\tfen = \".\" + fen.substring(0, 1);\r\n\t\t\t} else {\r\n\t\t\t\tfen = \".\" + fen;\r\n\t\t\t}\r\n\t\t\treturn yuan + fen;\r\n\t\t} catch (Exception a) {\r\n\t\t\treturn \"0\";\r\n\t\t}\r\n\t}", "private static String adaptarFecha(int fecha) {\n\t\tString fechaFormateada = String.valueOf(fecha);\n\t\twhile(fechaFormateada.length()<2){\n\t\t\tfechaFormateada = \"0\"+fechaFormateada;\n\t\t}\n\n\t\treturn fechaFormateada;\n\t}", "private String BuildNumber(int Value1, int Value2, int Value3)\n {\n String Significant;\n //Los manejo en string para solo concatenarlos obtener el valor\n Significant = Integer.toString(Value1) + Integer.toString(Value2);\n //Convertimos el valor a uno numerico y lo multiplicamos a la potencia de 10\n double Resultado = Integer.parseInt(Significant)*pow(10,Value3);\n //Para regresar el valor en KΩ\n if (Resultado/1000 >= 1 && Resultado/1e3 < 1000 )\n {\n return (String.valueOf(Resultado / 1e3) + \"KΩ\");\n }\n //Para regresar el valor en MΩ\n if (Resultado/1e6 >= 1)\n {\n return (String.valueOf(Resultado / 1e6) + \"MΩ\");\n }else{\n //Regresamos el valor en Ω\n return (String.valueOf(Resultado)+\"Ω\");\n }\n }", "private void aplicaMascara(JFormattedTextField campo) {\n\n DecimalFormat decimal = new DecimalFormat(\"##,###,###.00\");\n decimal.setMaximumIntegerDigits(7);\n decimal.setMinimumIntegerDigits(1);\n NumberFormatter numFormatter = new NumberFormatter(decimal);\n numFormatter.setFormat(decimal);\n numFormatter.setAllowsInvalid(false);\n DefaultFormatterFactory dfFactory = new DefaultFormatterFactory(numFormatter);\n campo.setFormatterFactory(dfFactory);\n }", "public String generaNumPatente() {\n String numeroPatente = \"\";\r\n try {\r\n int valorRetornado = patenteActual.getPatCodigo();\r\n StringBuffer numSecuencial = new StringBuffer(valorRetornado + \"\");\r\n int valRequerido = 6;\r\n int valRetorno = numSecuencial.length();\r\n int valNecesita = valRequerido - valRetorno;\r\n StringBuffer sb = new StringBuffer(valNecesita);\r\n for (int i = 0; i < valNecesita; i++) {\r\n sb.append(\"0\");\r\n }\r\n numeroPatente = \"AE-MPM-\" + sb.toString() + valorRetornado;\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n return numeroPatente;\r\n }", "public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }", "static public String nf(float num) {\n\t\tif (formatFloat==null) nfInitFormats();\n\t\tformatFloat.setMinimumIntegerDigits(1);\n\t\tformatFloat.setMaximumFractionDigits(3);\n\n\t\treturn formatFloat.format(num).replace(\",\", \".\");\n\t}", "public String addDecimal();", "public String getDollarString()\n\t{\n\t\treturn String.format(\"%01.2f\", (float)CurrentValue/100.0f);\n\t}", "public String stringFormatter(int inputNumber)\r\n\t{\r\n\t\tString format = String.format(\"%%0%dd\", 2);\r\n\t\treturn String.format(format, inputNumber);\r\n\t}", "protected static String getAmountFormat(String amount) {\n\t\tStringBuilder strBind = new StringBuilder(amount);\n\t\tstrBind.append(\".00\");\n\t\treturn strBind.toString();\n\t}", "private String formatTime(long ms) {\n String format = String.format(\"%%.%df s\", decimals);\n return String.format(format, ms > 0 ? ms/1000f : 0f);\n }", "static void increment() {\r\n\t\tfor (double i =2.4; i<=8.8; i=i+0.2) { \r\n\t\t\tSystem.out.format(\"%.1f %n \",i); //%.1f: to 1 decimal place. %n: print on a new line\r\n\t\t}\r\n\t}", "public static String dtrmn(int number) {\n\t\t\n\t\tString letter = \"\";\n\t\t\n\t\tint cl = number / 100;\n\t\tif (cl != 9 && cl != 4) {\n\t\t\t\n\t\t\tif (cl < 4) {\n\t\t\t\t\n\t\t\t\tfor(int i = 1; i <= cl; i++) {\n\t\t\t\t\tletter = letter + \"C\";\n\t\t\t\t}\n\t\t\t} else if (cl < 9 && cl > 4) {\n\t\t\t\t\n\t\t\t\tletter = letter + \"D\";\n\t\t\t\tfor (int i = 1; i <= cl - 5; i++) {\n\t\t\t\t\tletter = letter + \"C\";\n\t\t\t\t}\n\t\t\t} else if(cl == 10) { \n\t\t\t\t\n\t\t\t\tletter = letter + \"M\";\n\t\t\t}\n\t\t} else if (cl == 4) {\n\t\t\t\n\t\t\tletter = letter + \"CD\";\n\t\t\t\n\t\t} else if (cl == 9) {\n\t\t\t\n\t\t\tletter = letter + \"CM\";\n\t\t}\n\t\t\n\t\tint cl1 = (number % 100)/10;\n\t\tif (cl1 != 9 && cl1 != 4) {\n\t\t\t\n\t\t\tif (cl1 < 4) {\n\t\t\t\t\n\t\t\t\tfor (int i = 1; i <= cl1; i++) {\n\t\t\t\t\tletter = letter + \"X\";\n\t\t\t\t}\n\t\t\t} else if (cl1 < 9 && cl1 > 4) {\n\t\t\t\tletter = letter + \"L\";\n\t\t\t\t\n\t\t\t\tfor (int i = 1; i <= cl1 -5; i++) {\n\t\t\t\t\tletter = letter + \"X\";\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t} else if (cl1 == 4) {\n\t\t\tletter = letter + \"XL\";\n\t\t} else if (cl1 == 9) {\n\t\t\tletter = letter + \"XC\";\n\t\t}\n\t\t\n\t\tint cl2 = (number % 100)%10;\n\t\t\n\t\tif (cl2 != 9 && cl2 != 4) {\n\t\t\t\n\t\t\tif (cl2 < 4) {\n\t\t\t\tfor (int i = 1; i <= cl2; i++) {\n\t\t\t\t\tletter = letter + \"I\";\n\t\t\t\t}\n\t\t\t} else if (cl2 < 9 && cl2 > 4) {\n\t\t\t\t\n\t\t\t\tletter = letter + \"V\";\n\t\t\t\tfor (int i = 1; i <= cl2-5; i++) {\n\t\t\t\t\tletter = letter + \"I\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} else if (cl2 == 4) {\n\t\t\tletter = letter +\"IV\";\n\t\t} else if (cl2 == 9) {\n\t\t\tletter = letter + \"IX\";\n\t\t}\n\t\treturn letter;\n\t}", "public static String formatValue(final long l) {\n return (l > 1_000_000) ? String.format(\"%.2fm\", ((double) l / 1_000_000))\n : (l > 1000) ? String.format(\"%.1fk\", ((double) l / 1000))\n : l + \"\";\n }", "public String covertIng(int num) {\n\t\tchar[] digits = new char[10];\r\n\t\t\r\n\t\tboolean sign = num >= 0 ? true : false;\r\n\t\tint idx = 0;\r\n\t\t\r\n\t\twhile(idx <digits.length){\r\n\t\t\tdigits[idx] = toChar(num % 10);\r\n\t\t\tnum = num /10;\r\n\t\t\tif(num== 0)\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tidx++;\r\n\t\t}\r\n\t\t\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tif(!sign)\r\n\t\t\tsb.append('-');\r\n\t\t\r\n\t\twhile(idx>=0){\r\n\t\t\tsb.append(digits[idx--]);\r\n\t\t}\r\n\t\t\r\n\t\treturn sb.toString();\r\n\t\t\r\n\t}", "public static String fillES(String valueStr) {\n\t\t\r\n\t\tif (!valueStr.contains(\".\")) return valueStr+\"00\";\r\n\t\t\r\n\t\tString[] ps = valueStr.split(\"\\\\.\");\r\n\t\tString p1 = ps[0].trim();\r\n\t\tString p2 = ps[1].trim();\r\n\t\t\r\n\t\tif (p2.length()==0){\r\n\t\t\tp2 =\"00\";\r\n\t\t}else if (p2.equalsIgnoreCase(\"5\")){\r\n\t\t\tp2 =\"50\";\r\n\t\t}\r\n\t\t\r\n\t\tif (p2.trim().equalsIgnoreCase(\"\")) p2=\"00\";\r\n\t\t\r\n\t\t//System.out.println(valueStr+\": \"+p1+p2);\r\n\t\t//return (p1+p2).trim();\r\n\t\treturn (p1+p2).trim();\r\n\t}", "public void llenarnumerodecimales(java.awt.event.KeyEvent evt, int tamanioEntero, int tamanioDecimal, String txt){\n char c = evt.getKeyChar();\r\n int bDecimal = 0, bEntero = 0;\r\n// if ((c >= '0') || (c <= '9') && bEntero)\r\n// bEntero++;\r\n if (((c < '0') || (c > '9')) && (c != KeyEvent.VK_BACK_SPACE) && (c != '.')) {\r\n evt.consume();\r\n JOptionPane.showMessageDialog(null, \"Debe ingresar sólo números!!!\", \"Mensaje del sistema\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n if (c == '.' && txt.contains(\".\")) {\r\n evt.consume();\r\n JOptionPane.showMessageDialog(null, \"No puede ingresar más puntos!!!\", \"Mensaje del sistema\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "public String getLeadingZero(int num) {\n String leading0s = \"\";\n for (int k = 0; k < num; k++)\n leading0s = leading0s + \"0\";\n return leading0s;\n }", "private String getFormattedDate(Integer format) {\n Date date = new Date(format * 1000L);\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"Etc/UTC\"));\n Log.e(\"time\",dateFormat.format(date));\n return dateFormat.format(date);\n }", "private Serializable buildStringNextValue(String prefix, int nextValue) {\n\t\tSerializable result = null;\n\t\tString suffix = null;\n\t\tif (isStringFormatDecimal()) {\n\t\t\tif (getStringFormat() != null)\n\t\t\t\tsuffix = String.format(getStringFormat(), nextValue);\n\t\t\telse\n\t\t\t\tsuffix = String.format(\"%018d\", nextValue);\n\n\t\t\tresult = prefix.concat(suffix);\n\t\t} else {\n\t\t\tsuffix = String.valueOf(nextValue);\n\t\t\tresult = prefix.concat(suffix);\n\t\t}\n\t\tlog.debug(\"Custom generated sequence is : \" + result);\n\t\treturn result;\n\t}", "@GwtIncompatible(\"String.format()\")\n/* */ public String toString(int significantDigits) {\n/* 182 */ long nanos = elapsedNanos();\n/* */ \n/* 184 */ TimeUnit unit = chooseUnit(nanos);\n/* 185 */ double value = nanos / TimeUnit.NANOSECONDS.convert(1L, unit);\n/* */ \n/* */ \n/* 188 */ return String.format(\"%.\" + significantDigits + \"g %s\", new Object[] { Double.valueOf(value), abbreviate(unit) });\n/* */ }", "public static numero formatNumber(String input)\n {\n //checking zero\n boolean isZero = true;\n for(int i = 0; i < input.length(); i++)\n if(baseOP.isDigit(input.charAt(i)) && input.charAt(i) != '0') isZero = false;\n if (isZero) return getZero();\n\n //numero number;\n int size = 0;\n char[] digits;\n char s;\n int num_postcomma = 0;\n\n //checking sign\n if (input.charAt(0) == '-') s = '-';\n else s = '+';\n\n //counting number of digits\n boolean firstNonZero = false;\n int firstdigit = 0;\n for (int i = 0; i < input.length(); i++)\n {\n if (input.charAt(i) == '.') break;\n if (baseOP.isDigit(input.charAt(i)) && !firstNonZero && input.charAt(i) != '0')\n {\n firstNonZero = true;\n firstdigit = i;\n }\n if (baseOP.isDigit(input.charAt(i)) && firstNonZero) size++;\n }\n\n if(input.indexOf('.') != -1)\n for(int i = input.indexOf('.'); i < input.length(); i++)\n if(baseOP.isDigit(input.charAt(i))) num_postcomma++;\n\n // creation of arrays\n size = size + num_postcomma;\n digits = new char[size];\n\n int index = 0;\n\n if (size == num_postcomma)\n firstdigit = input.indexOf('.')+1;\n\n for (int i = firstdigit; i < input.length(); i++)\n {\n if (baseOP.isDigit(input.charAt(i)))\n {\n digits[index] = input.charAt(i);\n index++;\n }\n }\n\n return new numero(s, num_postcomma, digits);\n }", "public String scoreTo8BitsStringNotes(){\n\t\tString str = \"\", placeholder = \"00\",seperator = \" \";\n\t\tfor(StdNote tNote : musicTrack.get(0).noteTrack){\n\n\t\t\tstr += String.format(\"%03d\",tNote.absolutePosition)\n\t\t\t\t+ tNote.downFlatSharp\n\t\t\t\t+ tNote.octave\n\t\t\t\t+ tNote.dot\n\t\t\t\t+ placeholder\n\t\t\t\t+ seperator;\n\t\t\t//这里要这样写么??\n\t\t\tif(tNote.barPoint == 1) str += ',';\n\t\t}\n\t\treturn str.trim();//去掉前后空格\n\t}", "public String toString()\n {\n\tint c = coinCounter();\n\treturn \"$\" + c / 100 + \".\" + c % 100;\n }", "protected String longToString3DigitFormat(long number) {\n\t\tdouble temp;\n\t\tNumberFormat formatter = new DecimalFormat(\"#.###\");\n\t\ttemp = number / 1000000.0;\n\t\treturn formatter.format(temp);\n\t}", "private String intString(int n){\r\n String s=\"\";\r\n if(n>9){\r\n s+=(char)(Math.min(n/10,9)+'0');\r\n }\r\n s+=(char)(n%10+'0');\r\n return s; \r\n }", "public static void main(String[] args){\n Double a = -1d;\n String as = a.toString();\n String result = \"\";\n if (as.replace(\"-\", \"\").length()>=14){\n result = as.substring(0,14);\n }else {\n while (as.replace(\"-\", \"\").length()<14){\n as+='0';\n }\n result= as;\n }\n System.out.print(result);\n }", "public void print()\r\n {\r\n int i = numar.length()/3;\r\n while( i != 0 ){\r\n String n = numar.substring(0,3);\r\n numar = numar.substring(3);\r\n printNo(n);\r\n if( i == 3){\r\n System.out.print(\"million \");\r\n }\r\n else if( i == 2 ){\r\n System.out.print(\"thousand \");\r\n }\r\n i--;\r\n }\r\n }", "static String m20335a(int i) {\n return String.format(null, \"%s.ols%d.%d\", \"v2\", 100, Integer.valueOf(i));\n }", "private static String format2(double d) {\n return new DecimalFormat(\"#.00\").format(d);\n }", "void insertDecimalPoint();", "public static String formatNumberString(String s, int n){\n\t\tString output = s;\n\t\twhile (output.length() < n)\n\t\t\toutput = \"0\"+output;\n\t\treturn output;\n\t}", "public String format(int value) {\n\t\t\tmArgs[0] = value;\n\t\t\tmBuilder.delete(0, mBuilder.length());\n\t\t\tmFmt.format(\"%02d\", mArgs);\n\t\t\treturn mFmt.toString();\n\t\t}", "public static String intToNumeral(int number)\n\t{\n\t\tString numeral = \"\";\n\t\twhile(number > 0)\n\t\t{\n\t\t\tif(number >= 1000)\n\t\t\t{\n\t\t\t\tnumber -= 1000;\n\t\t\t\tnumeral = numeral + \"M\";\n\t\t\t}\n\t\t\telse if(number >= 900)\n\t\t\t{\n\t\t\t\tnumber -= 900;\n\t\t\t\tnumeral = numeral + \"CM\";\n\t\t\t}\n\t\t\telse if(number >= 500)\n\t\t\t{\n\t\t\t\tnumber -= 500;\n\t\t\t\tnumeral = numeral + \"D\";\n\t\t\t}\n\t\t\telse if(number >= 400)\n\t\t\t{\n\t\t\t\tnumber -= 400;\n\t\t\t\tnumeral = numeral + \"DC\";\n\t\t\t}\n\t\t\telse if(number >= 100)\n\t\t\t{\n\t\t\t\tnumber -= 100;\n\t\t\t\tnumeral = numeral + \"C\";\n\t\t\t}\n\t\t\telse if(number >= 90)\n\t\t\t{\n\t\t\t\tnumber -= 90;\n\t\t\t\tnumeral = numeral + \"XC\";\n\t\t\t}\n\t\t\telse if(number >= 50)\n\t\t\t{\n\t\t\t\tnumber -= 50;\n\t\t\t\tnumeral = numeral + \"L\";\n\t\t\t}\n\t\t\telse if(number >= 40)\n\t\t\t{\n\t\t\t\tnumber -= 40;\n\t\t\t\tnumeral = numeral + \"XL\";\n\t\t\t}\n\t\t\telse if(number >= 10)\n\t\t\t{\n\t\t\t\tnumber -= 10;\n\t\t\t\tnumeral = numeral + \"X\";\n\t\t\t}\n\t\t\telse if(number >= 9)\n\t\t\t{\n\t\t\t\tnumber -= 9;\n\t\t\t\tnumeral = numeral + \"IX\";\n\t\t\t}\n\t\t\telse if(number >= 5)\n\t\t\t{\n\t\t\t\tnumber -= 5;\n\t\t\t\tnumeral = numeral + \"V\";\n\t\t\t}\n\t\t\telse if(number >= 4)\n\t\t\t{\n\t\t\t\tnumber -= 4;\n\t\t\t\tnumeral = numeral + \"IV\";\n\t\t\t}\n\t\t\telse if(number >= 1)\n\t\t\t{\n\t\t\t\tnumber -= 1;\n\t\t\t\tnumeral = numeral + \"I\";\n\t\t\t}\n\t\t\tif(number < 0) return \"ERROR\";\n\t\t}\n\t\treturn numeral;\n\t}", "public String converter(int n){\r\n str = \"\";\r\n condition = true;\r\n while(condition){\r\n if(n >= 1 && n < 100){\r\n str = str + oneToHundred(n);\r\n condition = false; \r\n }else if (n >= 100 && n < 1000){\r\n str = str + oneToHundred(n / 100);\r\n str = str + \"Hundred \";\r\n n = n % 100;\r\n condition = true; \r\n }\r\n \r\n }\r\n return str;\r\n \r\n }", "private String number() {\n switch (this.value) {\n case 1:\n return \"A\";\n case 11:\n return \"J\";\n case 12:\n return \"Q\";\n case 13:\n return \"K\";\n default:\n return Integer.toString(getValue());\n }\n }", "private String obtenerMilisegundos(){\n\n String fecha = java.time.LocalDateTime.now().toString();\n int longitudPunto = fecha.lastIndexOf(\".\");\n try{\n this.milisegundos = java.time.LocalDateTime.now().toString().substring((longitudPunto+1),fecha.length());\n }catch (StringIndexOutOfBoundsException sioobe){\n this.milisegundos = \"000\";\n }\n\n return milisegundos;\n }", "private static String numberToProse(int n) {\n if(n == 0)\n return \"zero\";\n\n if(n < 10)\n return intToWord(n);\n\n StringBuilder sb = new StringBuilder();\n\n // check the tens place\n if(n % 100 < 10)\n sb.insert(0, intToWord(n % 10));\n else if(n % 100 < 20)\n sb.insert(0, teenWord(n % 100));\n else\n sb.insert(0, tensPlaceWord((n % 100) / 10) + \" \" + intToWord(n % 10));\n\n n /= 100;\n\n // add the hundred place\n if(n > 0 && sb.length() != 0)\n sb.insert(0, intToWord(n % 10) + \" hundred and \");\n else if (n > 0)\n sb.insert(0, intToWord(n % 10) + \" hundred \");\n\n if(sb.toString().equals(\" hundred \"))\n sb = new StringBuilder(\"\");\n\n n /= 10;\n\n // the thousand spot\n if(n > 0)\n sb.insert(0, intToWord(n) + \" thousand \");\n\n return sb.toString();\n }", "private String formatTime(int seconds){\n return String.format(\"%02d:%02d\", seconds / 60, seconds % 60);\n }", "public static String format(Object val, String pattern, String groupsepa, String decimalsepa)\n {\n try\n {\n \t String theGrpSep = groupsepa;\n \t String theDecSep = decimalsepa;\n \t if(theGrpSep == null || theGrpSep.isEmpty() || theDecSep == null || theDecSep.isEmpty())\n \t {\n \t // return group and decimal separator from session if any\n \t String[] grpDecArr = returnGroupDecimalSep();\n \t if(theGrpSep == null || theGrpSep.isEmpty())\n \t {\n \t\t theGrpSep = grpDecArr[0];\n \t }\n \t if(theDecSep == null || theDecSep.isEmpty())\n \t {\n \t\t theDecSep = grpDecArr[1];\n \t }\n \t }\n \t return format(val,pattern, theGrpSep.charAt(0), theDecSep.charAt(0));\n }\n catch(Exception e )\n {\n \t log.error(e, \"[NumberUtil] Error caught in method format\");\n \t return \"\";\n }\n }", "public String formatPosition(int s) {\n String result = \"\";\n if (s == 0) {\n result = \"A\";\n } else if (s == 1) {\n result = \"B\";\n } else if (s == 2) {\n result = \"C\";\n } else if (s == 3) {\n result = \"D\";\n } else if (s == 4) {\n result = \"E\";\n } else if (s == 5) {\n result = \"F\";\n } else if (s == 6) {\n result = \"G\";\n } else {\n result = \"H\";\n }\n return result;\n }", "public static String formatNum(String numString){\n\t\tnumString = numString.replace(\",\",\"\");\n\t\tif(numString.contains(\".\")){\n\t\t\tString result =String.format(\"%1$,f\",Double.parseDouble(numString)).substring(0,String.format(\"%1$,f\",Double.parseDouble(numString)).indexOf('.')+3);\n\t\t\tif(numString.split(\"\\\\.\")[1].length() ==1){\n\t\t\t\treturn result.substring(0,result.length()-1);\n\t\t\t}else{\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}else{\n\t\t\treturn String.format(\"%1$,d\",Long.parseLong(numString));\t\n\t\t}\n\t}", "private static String create50DigitString(){\n StringBuilder sb = new StringBuilder(\"1\");\n for(int i = 1; i < 50; i++){\n sb.append(\"0\");\n }\n return sb.toString();\n }", "@Test\n public void test_ToTableFormat() {\n System.out.println(\"Testing MeasuredRatioModel's toTableFormat()\");\n MeasuredRatioModel instance = new MeasuredRatioModel();\n String expResult = \"0 : 0\";\n String result = instance.toTableFormat();\n assertEquals(expResult, result);\n instance = new MeasuredRatioModel(\"Specific\",new BigDecimal(\"213\"),\"ABS\",new BigDecimal(\"0.4324\"),false,true);\n result = instance.toTableFormat();\n expResult=\"213 : 0.4324\";\n assertEquals(expResult, result);\n }" ]
[ "0.69391286", "0.63256115", "0.62729675", "0.6257294", "0.61798996", "0.60531306", "0.6044792", "0.59894145", "0.5984553", "0.5956141", "0.59400946", "0.59378564", "0.59282213", "0.59193254", "0.5914158", "0.590937", "0.58863413", "0.58723855", "0.58703345", "0.58662486", "0.58611256", "0.58458894", "0.5836653", "0.58097", "0.5804035", "0.57939684", "0.57808185", "0.5769426", "0.57196385", "0.5716274", "0.5715852", "0.5704995", "0.5692772", "0.5692614", "0.56925213", "0.56912994", "0.5668292", "0.566133", "0.56567764", "0.5647532", "0.56473815", "0.5637478", "0.5630842", "0.56173", "0.5610958", "0.5608388", "0.55896354", "0.5586114", "0.5580367", "0.55714774", "0.5571421", "0.5559556", "0.55586076", "0.555848", "0.5558381", "0.55546767", "0.55525434", "0.5552375", "0.55481136", "0.5546467", "0.5544925", "0.5537546", "0.5537164", "0.55368763", "0.5534256", "0.5529937", "0.5523071", "0.5515872", "0.55121887", "0.5499787", "0.5499023", "0.5495294", "0.5494428", "0.54894805", "0.5488576", "0.548362", "0.5474863", "0.54651344", "0.5462256", "0.5456128", "0.5451027", "0.5434138", "0.54125214", "0.54095614", "0.54089886", "0.53997856", "0.5394484", "0.5394336", "0.5392245", "0.53778505", "0.5377351", "0.53732747", "0.53712815", "0.53701484", "0.53633577", "0.5361637", "0.53586996", "0.53494984", "0.53494793", "0.5347121" ]
0.66916776
1
Retorna a data por extenso
public static String retornaDataPorExtenso(Date data) { int dia = getDiaMes(data); int mes = getMes(data); int ano = getAno(data); String dataExtenso = dia + " de " + retornaDescricaoMes(mes) + " de " + ano; return dataExtenso; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getDataNascimento();", "Object getData();", "Object getData();", "public Object getData();", "public Data getData(HelperDataType type);", "public abstract Object getCustomData();", "java.lang.String getData();", "Collection getData();", "String getData();", "Object getRawData();", "int getDatenvolumen();", "public abstract Object getData();", "@Override\n public FlotillaData getData() {\n FlotillaData data = new FlotillaData();\n data.setName(name);\n data.setLocation(reference);\n data.setBoats(getBoatNames(boats));\n\n return data;\n }", "protected abstract Object[] getData();", "T getData();", "@Override\n\tpublic List<Map<String, String>> getData() throws Exception{\n\t\tqueryForList(\"\", null);\n\t\treturn null;\n\t}", "String[] getData();", "public List<T2> getData() {\r\n\t\treturn convert.convert2VOes(page.getContent());\r\n\t}", "public ArrayList < Dataclass > getData() {\n ArrayList < Dataclass > dataList = new ArrayList < Dataclass > ();\n Connection connection = getConnection();\n String query = \"SELECT * FROM `przychodnia` \";\n if (option == 1) query = \"SELECT * FROM `lekarz` \";\n if (option == 2) query = \"SELECT * FROM `wizyta` \";\n if (option == 3) query = \"SELECT * FROM `badanie` \";\n Statement st;\n ResultSet rs;\n\n try {\n st = connection.createStatement();\n rs = st.executeQuery(query);\n Dataclass dc;\n while (rs.next()) {\n if (option == 1) dc = new Dataclass(rs.getInt(\"ID\"), rs.getString(\"Imię\"), rs.getString(\"Nazwisko\"), rs.getString(\"Specjalizacja\"), rs.getInt(\"ID_Przychodni\"));\n else if (option == 2) dc = new Dataclass(rs.getInt(\"ID\"), rs.getString(\"Data\"), rs.getString(\"Opis Badania\"), rs.getString(\"Imię i nazwisko pacjenta\"), rs.getInt(\"ID_Lekarza\"));\n else if (option == 3) dc = new Dataclass(rs.getInt(\"ID\"), rs.getString(\"Data\"), rs.getBlob(\"Załącznik\"));\n else dc = new Dataclass(rs.getInt(\"ID\"), rs.getString(\"Nazwa\"), rs.getString(\"Adres\"), rs.getString(\"Miasto\"));\n dataList.add(dc);\n }\n } catch (Exception e) {\n System.err.print(e);\n }\n return dataList;\n }", "protected abstract void retrievedata();", "public String getDataType() ;", "public List<TblRetur>getAllDataRetur();", "public Object getData() \n {\n return data;\n }", "@Override\n public Object getData(String mimeType) {\n return data;\n }", "DataFactory getDataFactory();", "public File getDataFile();", "@Override\n\tpublic List<OaAutoInfo> getDataList(String param) throws Exception {\n\t\treturn null;\n\t}", "Object getData() { /* package access */\n\t\treturn data;\n\t}", "public String[] getInfoData();", "@Override\n\tpublic FareDetailParam getData() {\n\t\tFareDetailParam fd = new FareDetailParam();\n\t\tfd.setFylx(fylx.getFieldValue());\n\t\tfd.setFylxLike(fylx.getFieldText());\n\t\tfd.setJe(je.getFieldValue());\n\t\t\n\t\treturn fd;\n\t}", "java.util.List<com.sanqing.sca.message.ProtocolDecode.DataObject> \n getDataObjectList();", "Datty getDatty();", "public int getDataType();", "T getData() {\n\t\treturn data;\n\t}", "java.lang.String getDataType();", "@Override\n\tpublic List<OaAutoInfo> getDataList() throws Exception {\n\t\treturn null;\n\t}", "int getDataType();", "@Override\n\tpublic Object[] obtenerDatos() {\n\t\tObject[] datos = new Object[2];\n\t\t\n\t\tdatos[0] = this.jComboBoxPeliculas.getSelectedItem();\n\t\tdatos[1] = this.jComboBoxValoraciones.getSelectedItem();\n\t\t\n\t\treturn datos;\n\t}", "@Override\n public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException {\n Object data = null;\n if (TABLE_DATA_FLAVOR.equals(flavor)) {\n data = model;\n } else if (HTML_DATA_FLAVOR.equals(flavor)) {\n data = new ByteArrayInputStream(formatAsHTML().getBytes());\n } else if (SERIALIZED_DATA_FLAVOR.equals(flavor)) {\n data = formatAsHTML();\n } else if (CSV_DATA_FLAVOR.equals(flavor)) {\n data = new ByteArrayInputStream(\"CSV\".getBytes());\n } else {\n throw new UnsupportedFlavorException(flavor);\n }\n return data;\n }", "@DataProvider()\n\tpublic Object[][] getData() {\n\t\t\n\t\treturn ConstantsArray.getArrayData();\n\t}", "public java.util.List getData() {\r\n return data;\r\n }", "public static Object[][] getData() {\n\t\tEntity[] data = db.getData();\n\t\tObject[][] toReturn = new Object[data.length][];\n\t\tfor(int i = 0; i < toReturn.length; i++) {\n\t\t\ttoReturn[i] = data[i].getObject();\n\t\t}\n\t\treturn toReturn;\n\t}", "String getDataSet();", "public List<ErpBookInfo> selData();", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "@Override\r\n\t\tpublic Meta_data getData() {\n\t\t\treturn this.data;\r\n\t\t}", "public List<Data> getData() {\n return data;\n }", "@DataProvider(name=\"BookData\")\n public Object[][] getData()\n {\n\n return new Object[][] {{\"once\", \"1111\"},{\"twice\",\"2222\"},{\"thrice\",\"3333\"}};\n }", "EntityData<?> getEntityData();", "Object getCurrentData();", "DataModel getDataModel ();", "public E getData() { return data; }", "@Override\n\tpublic HashMap<String, String> getData() {\n\t\treturn dataSourceApi.getData();\n\t}", "Serializable retrieveAllData();", "int getData2();", "int getData2();", "DatasetFile getDatasetFile();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public List<DataRowModel> getData() {\n return data;\n }", "@DataProvider\n public Object[][] getData()\n {\n\t Object[][] data=new Object[1][6];\n\t //0th row\n\t data[0][0]=\"Arun Raja\";\n\t data[0][1]=\"A\";\n\t data[0][2]=\"[email protected]\";\n\t data[0][3]=\"Test Lead\";\n\t data[0][4]=\"8971970444\";\n\t data[0][5]=\"Attra\";\n\t return data;\n }", "public DataStorage getDataStorage();", "public Object getData(){\n\t\treturn this.data;\n\t}", "public interface IFileDataTypeReader {\n\t\n\t Map<String, String> getColumnAndDataType(String fileName, ExtendedDetails dbDetails) throws ZeasException;\n\t\n\t List<List<String>> getColumnValues() throws ZeasException;\n}", "public Table<Integer, Integer, String> getData();", "E getData(int index);", "private static Object[][] getData(Database d) {\n\t\tdb = d;\n\t\tEntity[] data = db.getData();\n\t\tObject[][] toReturn = new Object[data.length][];\n\t\tfor(int i = 0; i < toReturn.length; i++) {\n\t\t\ttoReturn[i] = data[i].getObject();\n\t\t}\n\t\treturn toReturn;\n\t}", "List<String> data();", "public List<String> getAllData(){\n\t}", "int getData1();", "int getData1();", "public BaseData[] getData()\n {\n return Cdata;\n }", "public String getData()\n {\n return data;\n }", "public Element getData()\n {\n // Ask the generic configuration's holder to export the list of specific\n // configuration's data.\n ArrayList<Element> specific_data = this._toXml_();\n\n // Build the specific configuration.\n Element generic = new Element(\"data\");\n for (int index = 0; index < specific_data.size(); index++)\n {\n generic.addContent(specific_data.get(index));\n }\n\n return generic;\n }", "@Override\r\n\tpublic String[] getData(String[] sql) {\n\t\treturn null;\r\n\t}", "T getData() {\n return this.data;\n }", "Object firstData() {\n\t\t// por defecto enviamos null\n\t\treturn null;\n\t}", "public DataImpl getData() {\n RealTupleType domain = overlay.getDomainType();\n TupleType range = overlay.getRangeType();\n \n float[][] setSamples = nodes;\n float r = color.getRed() / 255f;\n float g = color.getGreen() / 255f;\n float b = color.getBlue() / 255f;\n float[][] rangeSamples = new float[3][setSamples[0].length];\n Arrays.fill(rangeSamples[0], r);\n Arrays.fill(rangeSamples[1], g);\n Arrays.fill(rangeSamples[2], b);\n \n FlatField field = null;\n try {\n GriddedSet fieldSet = new Gridded2DSet(domain,\n setSamples, setSamples[0].length, null, null, null, false);\n FunctionType fieldType = new FunctionType(domain, range);\n field = new FlatField(fieldType, fieldSet);\n field.setSamples(rangeSamples);\n }\n catch (VisADException exc) { exc.printStackTrace(); }\n catch (RemoteException exc) { exc.printStackTrace(); }\n return field;\n }", "public E getData()\n {\n return data;\n }", "public E getData()\n {\n return data;\n }", "public IData getData() {\n return data;\n }", "@DataProvider\n\tpublic String[][] getData() {\n\t\treturn readExcel.getExcelData(\"Sheet1\");\n\t}", "public T getData(){\n return this.data;\n }", "public List<UserExtendedVO> getData(String userId, TypeCode typeCode) {\n\t\tList<Object> vals = new ArrayList<>();\n\t\tvals.add(userId);\n\n\t\tStringBuilder sql = new StringBuilder(500);\n\t\tsql.append(DBUtil.SELECT_FROM_STAR).append(getCustomSchema()).append(\"mts_user_info \");\n\t\tsql.append(\"where user_id=? \");\n\t\tif (typeCode != null) {\n\t\t\tsql.append(\"and user_info_type_cd=? \");\n\t\t\tvals.add(typeCode.name());\n\t\t}\n\t\tsql.append(\"order by user_info_type_cd\");\n\t\tlog.debug(sql.length() + \"|\" + sql + \"|\" + vals);\n\n\t\tDBProcessor db = new DBProcessor(getDBConnection(), getCustomSchema());\n\t\treturn db.executeSelect(sql.toString(), vals, new UserExtendedVO());\n\t}", "public Object getData() {\n return dataArray;\n }", "public Object getData()\r\n\t\t{\r\n\t\t\treturn data;\r\n\t\t}", "public Object[] getData() {\n String[] itsData = new String[1];\n itsData[0] = new String(getSelectedItem());\n return itsData;\n }", "public E getData(){\n\t\t\treturn data;\n\t\t}", "public List<SubTypeDocInfo> getReselladoInfo() throws GdibException{\n\n\t\tList<SubTypeDocInfo> res = null;\n\t\tConnection conn = null;\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\n\t\ttry {\n\t\t\tconn = getDBConnection();\n\n\t\t\tif(conn != null){\n\t\t\t\tStringBuffer stb_SELECT = new StringBuffer();\n\n\t\t\t\tstb_SELECT.append(\"SELECT code_clasificacion, code_subtype, resealing FROM subtypedocinfo; \");\n\n\t\t\t\tps = conn.prepareStatement(stb_SELECT.toString());\n\t\t\t\tLOGGER.debug(\"getReselladoInfo :: SQL query :: \" + ps.toString());\n\t\t\t\trs = ps.executeQuery();\n\n\t\t\t\tres = new ArrayList<SubTypeDocInfo>();\n\t\t\t\twhile(rs.next()){\n\t\t\t\t\tSubTypeDocInfo info = new SubTypeDocInfo(rs.getString(1), rs.getString(2));\n\t\t\t\t\tinfo.setResealing(rs.getString(3));\n\t\t\t\t\tres.add(info);\n\t\t\t\t}\n\n\t\t\t} else{\n\t\t\t\tthrow new GdibException(\"La conexion a la base de datos se ha generado nula.\");\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.error(\"Ha fallado la conexion con la bddd de alfresco. Error: \" + e.getMessage(),e);\n\t\t\tthrow new GdibException(\"Ha fallado la conexion con la bddd de alfresco. Error: \" + e.getMessage(),e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tps.close();\n\t\t\t\tconn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\tLOGGER.error(\"No se podido cerrar la conexion a base de datos.\");\n\t\t\t\tthrow new GdibException(\"No se podido cerrar la conexion a base de datos.\");\n\t\t\t}\n\t\t}\n\n\t\treturn res;\n\t}", "public Object leggiDati(){\n\t\ttry{\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\tdati = ois.readObject();\n\t\t\tois.close();\n\t\t\tfis.close();\n\t\t\tSystem.out.println(\"File \" + file + \" letto\");\n\t\t} catch(Exception e){\n\t\t\t//e.printStackTrace();\n\t\t\tSystem.out.println(\"File \" + file + \" non trovato\");\n\t\t\treturn null;\n\t\t}\n\t\treturn dati;\n\t}", "public static ArrayList<obj_dos_campos> carga_tipo_producto() {\n ArrayList<obj_dos_campos> lista = new ArrayList<obj_dos_campos>();\n Connection c=null;\n try {\n c = conexion_odbc.Connexion_datos();\n Statement s = c.createStatement();\n ResultSet rs = s.executeQuery(\"select tip_prod_idn as data, tip_prod_nombre as label from tipo_producto order by tip_prod_nombre desc\");\n lista.add(new obj_dos_campos(\"0\",\"-- Seleccione --\"));\n while (rs.next()){\n lista.add(new obj_dos_campos(rs.getString(\"data\"),rs.getString(\"label\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n c.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n return lista;\n }", "Map<String,Object> getMasterData(String language)throws EOTException;", "public ArrayList<String> getData() {\n\t\treturn null;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List cargarDato(UnidadFuncional tipo) {\n\t\treturn null;\r\n\t}", "public D getData(){\n\t\treturn data;\n\t}", "public String get(String parametro) {\n\t\tString dato = \"\";\n\t\tswitch (parametro) {\n\t\tcase \"nombre\":\n\t\t\tdato = getNombre();\n\t\t\tbreak;\n\t\tcase \"apellido\":\n\t\t\tdato = getApellido();\n\t\t\tbreak;\n\t\tcase \"dni\":\n\t\t\tdato = getDni();\n\t\t\tbreak;\n\t\tcase \"edad\":\n\t\t\tdato = Integer.toString(getEdad());\n\t\t\tbreak;\n\t\tcase \"telefono\":\n\t\t\tdato = Integer.toString(getTelefono());\n\t\t\tbreak;\n\t\tcase \"domicilio\":\n\t\t\tdato = getDomicilio();\n\t\t\tbreak;\n\t\t}\n\t\treturn dato;\n\t}", "void loadData();", "void loadData();", "@Parameters\n public static Iterable<Object[]> getData() {\n List<Object[]> obj = new ArrayList<>();\n obj.add(new Object[] {3, 12});\n obj.add(new Object[] {2, 8});\n obj.add(new Object[] {1, 4});\n \n return obj;\n }", "@DataProvider(name=\"dataset\")\r\n\tpublic static Object[][] getdata() throws IOException{\r\n\t\tObject [][] ob= new IO().getdataset(\"./dataset.csv\");\t\r\n\treturn ob;\r\n\t}", "public GenericItemType getData() {\n return this.data;\n }" ]
[ "0.67480135", "0.66730356", "0.66730356", "0.66175485", "0.6540137", "0.6521371", "0.6396794", "0.6353369", "0.63092667", "0.62723356", "0.62605613", "0.6252608", "0.6210459", "0.61923957", "0.6183172", "0.61493576", "0.6060705", "0.6060411", "0.60432273", "0.6015298", "0.5970377", "0.59692717", "0.5966385", "0.5965167", "0.59487057", "0.59034735", "0.5901185", "0.5878887", "0.5873117", "0.58599126", "0.58411586", "0.582355", "0.5813558", "0.5794618", "0.5786788", "0.5779985", "0.577091", "0.57691526", "0.5765524", "0.5762322", "0.5753142", "0.5746109", "0.5745447", "0.5741744", "0.57397527", "0.5738021", "0.57366574", "0.57342535", "0.5724846", "0.5717063", "0.5712631", "0.5704592", "0.5701627", "0.5694282", "0.5686245", "0.5686245", "0.5645332", "0.56433827", "0.5640606", "0.5637296", "0.56367046", "0.56329155", "0.56296235", "0.5628646", "0.56242394", "0.56208175", "0.5614513", "0.5605414", "0.5601365", "0.5601365", "0.5601086", "0.55927527", "0.5580253", "0.55767184", "0.5575653", "0.557564", "0.55691844", "0.55690926", "0.55690926", "0.5560446", "0.55526644", "0.55518425", "0.5548798", "0.5545243", "0.5543504", "0.554071", "0.55350226", "0.5525104", "0.5524702", "0.55243397", "0.5522472", "0.5517266", "0.5514239", "0.55120516", "0.5508849", "0.55042356", "0.55042356", "0.5493722", "0.54894334", "0.548532" ]
0.6324711
8
Retorna uma hora no formato HH:MM a partir de um objeto Date
public static String formatarHoraSemSegundos(String horaMinuto) { String retorno = null; if (horaMinuto != null && !horaMinuto.equalsIgnoreCase("")) { String[] vetorHora = horaMinuto.split(":"); if (vetorHora[0].trim().length() < 2) { retorno = "0" + vetorHora[0] + ":"; } else { retorno = vetorHora[0] + ":"; } if (vetorHora[1].trim().length() < 2) { retorno = retorno + "0" + vetorHora[1]; } else { retorno = retorno + vetorHora[1]; } } return retorno.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String retornaHora(){\n\t\tCalendar calendar = new GregorianCalendar();\n\t\tSimpleDateFormat hora = new SimpleDateFormat(\"HH\");\n\t\tSimpleDateFormat minuto = new SimpleDateFormat(\"mm\");\n\t\tDate date = new Date();\n\t\tcalendar.setTime(date);\n\t\treturn hora.format(calendar.getTime()) + \"h\" + minuto.format(calendar.getTime());\n\t}", "public String getHora() {\n Calendar calendario = new GregorianCalendar();\n SimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n return sdf.format(calendario.getTime());\n }", "public String dar_hora(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n return dateFormat.format(date).toString();\n }", "public static String getHHMM()\r\n/* 74: */ {\r\n/* 75: 94 */ String nowTime = \"\";\r\n/* 76: 95 */ Date now = new Date();\r\n/* 77: 96 */ SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm\");\r\n/* 78: 97 */ nowTime = formatter.format(now);\r\n/* 79: 98 */ return nowTime;\r\n/* 80: */ }", "public static SimpleDateFormat getHourFormat() {\n return new SimpleDateFormat(\"HH:mm\");\n }", "public String getHoraInicial(){\r\n return fechaInicial.get(Calendar.HOUR_OF_DAY)+\":\"+fechaInicial.get(Calendar.MINUTE);\r\n }", "public String getTimeString() {\n DateFormat format = new SimpleDateFormat(\"HH:mm\");\n return format.format(mDate);\n }", "public static String getNowTimeHHMM() {\n\t\tSimpleDateFormat timeFormat = new SimpleDateFormat(\"HH:mm\");\n\t\treturn timeFormat.format(new Date());\n\t}", "private String getDate() {\n\t\tSimpleDateFormat parseFormat = new SimpleDateFormat(\"hh:mm a\");\n\t\tDate date = new Date();\n\t\tString s = parseFormat.format(date);\n\t\treturn s;\n\t}", "public void mostrarHora(String formato){\n Date objDate = new Date();\n SimpleDateFormat objSDF = new SimpleDateFormat(formato);\n //este sera el resultado de la fechas\n fecha=objSDF.format(objDate);\n }", "public String getHoraFinal(){\r\n return fechaFinal.get(Calendar.HOUR_OF_DAY)+\":\"+fechaFinal.get(Calendar.MINUTE);\r\n }", "public static String ShowDate(){\n Date date = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss.SS a\");\n String HH_MM = sdf.format(date);\n return HH_MM;\n }", "public String getCurrentTimeHourMin() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH:mm\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "public static String longToHHMM(long longTime)\r\n/* 150: */ {\r\n/* 151:219 */ SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm\");\r\n/* 152:220 */ Date strtodate = new Date(longTime);\r\n/* 153:221 */ return formatter.format(strtodate);\r\n/* 154: */ }", "public static Date convert_string_time_into_original_time(String hhmmaa) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"HH:mm aa\");\n Date convertedDate = new Date();\n try {\n convertedDate = dateFormat.parse(hhmmaa);\n } catch (ParseException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return convertedDate;\n }", "@RequiresApi(api = Build.VERSION_CODES.O)\n public String obtenerHora(){\n this.hora = java.time.LocalDateTime.now().toString().substring(11,13);\n return this.hora;\n }", "public String getTime(DateTime date) {\n DateTimeFormatter time = DateTimeFormat.forPattern(\"hh:mm a\");\n return date.toString(time);\n }", "public String getTime() {\n boolean pastNoon = hour >= 12;\n if(pastNoon && hour == 12) {\n return hour + \"pm\";\n }\n else if(pastNoon) {\n return (hour - 12) + \"pm\";\n }\n else if(hour == 0) {\n return \"12am\";\n }\n else {\n return hour + \"am\";\n }\n }", "public String calculateHour() {\n\t\tString hora;\n\t\tString min;\n\t\tString seg;\n\t\tString message;\n\t\tCalendar calendario = new GregorianCalendar();\n\t\tDate horaActual = new Date();\n\t\tcalendario.setTime(horaActual);\n\n\t\thora = calendario.get(Calendar.HOUR_OF_DAY) > 9 ? \"\" + calendario.get(Calendar.HOUR_OF_DAY)\n\t\t\t\t: \"0\" + calendario.get(Calendar.HOUR_OF_DAY);\n\t\tmin = calendario.get(Calendar.MINUTE) > 9 ? \"\" + calendario.get(Calendar.MINUTE)\n\t\t\t\t: \"0\" + calendario.get(Calendar.MINUTE);\n\t\tseg = calendario.get(Calendar.SECOND) > 9 ? \"\" + calendario.get(Calendar.SECOND)\n\t\t\t\t: \"0\" + calendario.get(Calendar.SECOND);\n\n\t\tmessage = hora + \":\" + min + \":\" + seg;\n\t\treturn message;\n\n\t}", "public String getCurrentDateTimeHourMin() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "private String formatTime(Date dateObject) {\r\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"h:mm a\");\r\n return timeFormat.format(dateObject);\r\n }", "private String formatTime(Date dateObject) {\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"h:mm a\", Locale.getDefault());\n return timeFormat.format(dateObject);\n }", "private String formatTime(Date dateObject) {\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat timeFormat = new SimpleDateFormat(\"h:mm a\");\n return timeFormat.format(dateObject);\n }", "private String formatTime(Date dateObject)\n {\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"h:mm a\");\n timeFormat.setTimeZone(Calendar.getInstance().getTimeZone());\n return timeFormat.format(dateObject);\n }", "public String getTimeAndDate() {\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd MMM hh:mm\");\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tString dateAndTime = dateFormat.format(cal.getTime());\n\t\t\treturn dateAndTime;\n\t\t}", "public String[] getHora()\r\n\t{\r\n\t\treturn this.reloj.getFormatTime();\r\n\t}", "public String getCurrentTimeHourMinSec() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "public static String getHoraMinutoSegundoTimestamp(Timestamp timestamp) {\r\n\t\tLong time = timestamp.getTime();\r\n\r\n\t\tString retorno = new SimpleDateFormat(\"HH:mm:ss\", new Locale(\"pt\", \"BR\")).format(new Date(time));\r\n\r\n\t\treturn retorno;\r\n\t}", "public String getTime(){\n String mt=\"\";\n String hr=\"\";\n if(minute<10){\n mt=0+(String.valueOf(minute));\n }\n\n else{\n mt=String.valueOf(minute);\n }\n\n if(hour<10){\n hr=0+(String.valueOf(hour));\n }\n else{\n hr=String.valueOf(hour);\n }\n //return hour:minute\n return (hr+\":\"+mt);\n }", "@Override\r\n\tpublic int getHH() {\n\t\treturn HH;\r\n\t}", "public String getCurrentDateTimeHourMinSec() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "public HiResDate getTime();", "public String getCurrentHours() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "public String getTime()\n {\n SimpleDateFormat newDateFormat = new SimpleDateFormat(\"HH:mm\");\n String MySDate = newDateFormat.format(this.dueDate);\n return MySDate;\n }", "DateTime getTime();", "public String convertDateToTime(String date){\n Date test = null;\n if(date !=null) {\n try {\n test = sdf.parse(date);\n } catch (ParseException e) {\n System.out.println(\"Parse not working: \" + e);\n }\n calendar.setTime(test);\n return String.format(\"%02d:%02d\",\n calendar.get(Calendar.HOUR_OF_DAY),\n calendar.get(Calendar.MINUTE)\n );\n }\n return \"n\";\n }", "public LocalTime getHora() {\n\t\treturn hora;\n\t}", "private String formatTime(String dateObject){\n\n SimpleDateFormat input = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\"); // format kita \"HARUS SAMA TIDAK BOLEH FORMATNYA BEDA BAHKAN 1 CHAR PUN\n SimpleDateFormat output= new SimpleDateFormat(\"h:mm a\");\n Date jam = null;\n try {\n jam = input.parse(dateObject);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return output.format(jam);\n }", "public int getHora(){\n return minutosStamina;\n }", "public static String getTime()\n {\n Date time = new Date();\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"HH:mm:ss\");\n return timeFormat.format(time);\n }", "Integer getStartHour();", "public long getHoraEnMilis() {\n Calendar calendario = new GregorianCalendar();\n return calendario.getTimeInMillis();\n }", "public String getDateHourRepresentation()\n\t{\n\t\tchar[] charArr = new char[13];\n\t\tcharArr[2] = charArr[5] = charArr[10] = '/';\n\t\tint day = m_day;\n\t\tint month = m_month;\n\t\tint year = m_year;\n\t\tint hour = m_hour;\n\t\tfor(int i = 0; i < 2; i++)\n\t\t{\n\t\t\tcharArr[1 - i] = Character.forDigit(day % 10, 10);\n\t\t\tcharArr[4 - i] = Character.forDigit(month % 10, 10);\n\t\t\tcharArr[12 - i] = Character.forDigit(hour % 10, 10);\n\t\t\tday /= 10;\n\t\t\tmonth /= 10;\n\t\t\thour /=10;\n \t\t}\n\t\tfor(int i = 0; i < 4; i++)\n\t\t{\n\t\t\tcharArr[9 - i] = Character.forDigit(year % 10, 10);\n\t\t\tyear /= 10;\n\t\t}\n\t\treturn new String(charArr);\n\t}", "public static String getHoraUtilDate(java.util.Date date){\n\t\tif(date==null)\n\t\t\treturn \"\";\n\t\tString strDate=\"\";\n\t\tif(getHora(date)<10)\n\t\t\tstrDate+=\"0\"+getHora(date);\n\t\telse\n\t\t\tstrDate+=getHora(date);\n\t\tif(getMinutos(date)<10)\n\t\t\tstrDate+=\":\"+\"0\"+(getMinutos(date));\n\t\telse\n\t\t\tstrDate+=\":\"+getMinutos(date);\n\t\treturn strDate;\n\t}", "public static String toHH_MM(String draftDate) {\r\n\t\tif (draftDate == null || draftDate.length() < 19) {\r\n\t\t\treturn draftDate;\r\n\t\t}\r\n\t\treturn draftDate.substring(11, 16);\r\n\t}", "private static String timeFor(Date date)\n\t{\n\t\tDateFormat df = new InternetDateFormat();\n\t\tString theTime = df.format(date);\n\t\treturn theTime;\n\t}", "public int getHour() {\n return dateTime.getHour();\n }", "public static String getHHMM(String time)\r\n\t{\r\n\t\tString finalTime = \"00/00 AM/PM\";\r\n\t\tString hh = time.substring(0, 2);\r\n\t\tString mm = time.substring(3, 5);\r\n\r\n\t\tint newHH = Integer.parseInt(hh);\r\n\t\tint newMM = Integer.parseInt(mm);\r\n\r\n\t\tnewMM = newMM % 60;\r\n\r\n\t\tif (newHH == 0)\r\n\t\t{\r\n\t\t\tfinalTime = \"12:\" + newMM + \" PM\";\r\n\t\t} else\r\n\t\t{\r\n\r\n\t\t\tif (newHH > 12)\r\n\t\t\t{\r\n\t\t\t\tnewHH = newHH % 12;\r\n\t\t\t\tfinalTime = newHH + \":\" + newMM + \" PM\";\r\n\t\t\t} else\r\n\t\t\t\tfinalTime = newHH + \":\" + newMM + \" AM\";\r\n\t\t}\r\n\r\n\t\tString HH = finalTime.substring(0, finalTime.indexOf(\":\"));\r\n\t\tString MM = finalTime.substring(finalTime.indexOf(\":\") + 1, finalTime\r\n\t\t\t\t.indexOf(\" \"));\r\n\t\tString AMPM = finalTime.substring(finalTime.indexOf(\" \"), finalTime\r\n\t\t\t\t.length());\r\n\r\n\t\tif (MM.length() == 1)\r\n\t\t\tMM = \"0\" + MM;\r\n\r\n\t\tfinalTime = HH + \":\" + MM /*+ \" \" */+ AMPM;\r\n\r\n\t\treturn (finalTime);\r\n\t}", "public String getTime() {\n String pattern = \"yyyy-MM-dd HH:mm:ss\";\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n\n String date = simpleDateFormat.format(new Date());\n return date;\n }", "public String getTimeString() {\n int hour = date.get(Calendar.HOUR);\n int minute = date.get(Calendar.MINUTE);\n\n String AM_PM = \"PM\";\n if (date.get(Calendar.AM_PM) == Calendar.AM) AM_PM = \"AM\";\n\n String hour_fixed = String.valueOf(hour);\n if (hour == 0) hour_fixed = \"12\";\n\n String minute_fixed = String.valueOf(minute);\n while (minute_fixed.length() < 2) {\n minute_fixed = \"0\" + minute_fixed;\n }\n\n return hour_fixed + \":\" + minute_fixed + ' ' + AM_PM;\n }", "public static long convertToHours(long time) {\n return time / 3600000;\n }", "public String getTime() {\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tString time = dateFormat.format(cal.getTime());\n\t\t\treturn time;\n\t\t}", "Integer getHour();", "private LocalDateTime getStartHour() {\n\t\treturn MoneroHourly.toLocalDateTime(startTimestamp);\r\n\t}", "public static long toTime(String sHora) throws Exception {\n\n if (sHora.indexOf(\"-\") > -1) {\n sHora = sHora.replace(\"-\", \"\");\n }\n\n final SimpleDateFormat simpleDate = new SimpleDateFormat(CalendarParams.FORMATDATEENGFULL, getLocale(CalendarParams.LOCALE_EN));\n final SimpleDateFormat simpleDateAux = new SimpleDateFormat(CalendarParams.FORMATDATEEN, getLocale(CalendarParams.LOCALE_EN));\n\n final StringBuffer dateGerada = new StringBuffer();\n try {\n dateGerada.append(simpleDateAux.format(new Date()));\n dateGerada.append(' ');\n\n dateGerada.append(sHora);\n\n if (sHora.length() == 5) {\n dateGerada.append(\":00\");\n }\n\n return simpleDate.parse(dateGerada.toString()).getTime();\n } catch (ParseException e) {\n throw new Exception(\"Erro ao Converter Time\", e);\n }\n }", "public String getTime(){\r\n\t\tDate date = new GregorianCalendar().getTime();\r\n\r\n\t\tString time= new SimpleDateFormat(\"HH:mm:ss\").format(date.getTime());\r\n\t\t\r\n\t\treturn time;\r\n\t}", "public String getTime() {\n return String.format(\"%02d\", hours) + \":\" + String.format(\"%02d\", minutes);\n }", "public static int getHourOfTime(long time){\n \t//time-=59999;\n \tint retHour=0;\n \tlong edittime=time;\n \twhile (edittime>=60*60*1000){\n \t\tedittime=edittime-60*60*1000;\n \t\tretHour++;\n \t}\n \tretHour = retHour % 12;\n \tif (retHour==0){ retHour=12; }\n \treturn retHour;\n }", "public static String hourOfBetween(final String sFormaTime, final String horaInicial, final String horaFinal,\n final Locale locale) throws Exception {\n final SimpleDateFormat sdf = new SimpleDateFormat(sFormaTime, locale == null ? getLocale(CalendarParams.LOCALE_PT) : locale);\n Date datEntrada;\n Date datSaida;\n final StringBuffer returnHora = new StringBuffer();\n\n try {\n datEntrada = sdf.parse(horaInicial);\n datSaida = sdf.parse(horaFinal);\n\n final long diferencaHoras = (datSaida.getTime() - datEntrada.getTime()) / (1000 * 60 * 60);\n final long diferencaMinutos = (datSaida.getTime() - datEntrada.getTime()) / (1000 * 60);\n final long diferencaSeg = (datSaida.getTime() - datEntrada.getTime()) / (1000);\n\n long difHoraMin = diferencaMinutos % 60;\n long diferencaSegundos = diferencaSeg % 60;\n\n if (difHoraMin < 0 || diferencaSegundos < 0) {\n returnHora.append('-');\n difHoraMin = difHoraMin * -1;\n diferencaSegundos = diferencaSegundos * -1;\n }\n\n if (diferencaHoras <= 9) {\n returnHora.append('0');\n returnHora.append(diferencaHoras);\n } else {\n returnHora.append(String.valueOf(diferencaHoras));\n }\n\n returnHora.append(':');\n\n if (difHoraMin <= 9) {\n returnHora.append('0');\n returnHora.append(String.valueOf(difHoraMin));\n } else {\n returnHora.append(String.valueOf(difHoraMin));\n }\n\n returnHora.append(':');\n\n if (diferencaSegundos <= 9) {\n returnHora.append('0');\n returnHora.append(String.valueOf(diferencaSegundos));\n } else {\n returnHora.append(String.valueOf(diferencaSegundos));\n }\n\n } catch (ParseException e) {\n throw new Exception(\"Erro na Conversao das datas: \", e);\n }\n\n return returnHora.toString();\n\n }", "public static String toHHmmFromScheduleTime(ScheduleTime scheduleTime) {\n if (null != scheduleTime) {\n return toHHmm(scheduleTime.getStartTime());\n }\n return \"\";\n }", "public static String getYYYYMMDDHHMMSS()\r\n/* 56: */ {\r\n/* 57: 68 */ String nowTime = \"\";\r\n/* 58: 69 */ Date now = new Date();\r\n/* 59: 70 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMddHHmmss\");\r\n/* 60: 71 */ nowTime = formatter.format(now);\r\n/* 61: 72 */ return nowTime;\r\n/* 62: */ }", "public static String toHHmm(LocalTime localTime) {\n if (null != localTime) {\n return localTime.format(DateTimeFormatter.ofPattern(Constant.HH_MM));\n }\n return \"\";\n }", "public long getElapsedTimeHour() {\n return running ? ((((System.currentTimeMillis() - startTime) / 1000) / 60 ) / 60) : 0;\n }", "Time getTime();", "public String getFormatedTime() {\n DateFormat displayFormat = new SimpleDateFormat(\"HH:mm\", Locale.GERMAN);\n return displayFormat.format(mEvent.getTime());\n }", "public String formatoCortoDeFecha(Date fecha){\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n return format.format(fecha);\n }", "public String formatTime(Date date) {\n String result = \"\";\n if (date != null) {\n result = DateUtility.simpleFormat(date, MEDIUM_TIME_FORMAT);\n }\n return result;\n }", "public static String getDateAndTime() {\n Calendar JCalendar = Calendar.getInstance();\n String JMonth = JCalendar.getDisplayName(Calendar.MONTH, Calendar.SHORT, Locale.UK);\n String JDate = JCalendar.getDisplayName(Calendar.DATE, Calendar.LONG, Locale.UK);\n String JHour = JCalendar.getDisplayName(Calendar.HOUR, Calendar.LONG, Locale.UK);\n String JSec = JCalendar.getDisplayName(Calendar.SECOND, Calendar.LONG, Locale.UK);\n\n return JDate + \"th \" + JMonth + \"/\" + JHour + \".\" + JSec + \"/24hours\";\n }", "private String getDate()\r\n\t{\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\r\n\t\treturn sdf.format(cal.getTime());\r\n\t}", "static long getHoursPart(Duration d) {\n long u = (d.getSeconds() / 60 / 60) % 24;\n\n return u;\n }", "public MyTime previouseHour(){\n\t\tint second = getSeconds();\n\t\tint minute = getMinute();\n\t\tint hour = getHours();\n\n\t\tif (hour == 0){\n\t\t\thour = 23;\n\t\t}\n\t\telse{\n\t\t\thour--;\n\t\t}\n\n\n\t\treturn new MyTime(hour,minute,second);\n\t}", "public String getHours();", "public int getHour() {\n\t\tthis.hour = this.total % 12;\n\t\treturn this.hour;\n\t}", "public int getHoursOfCurrentTime() {\n SimpleDateFormat formatter = new SimpleDateFormat(\"HH\", Locale.getDefault());\n Date curTime = new Date(System.currentTimeMillis());\n return Integer.parseInt(formatter.format(curTime));\n }", "private String extractHourMinute(String dateTime)\n {\n String[] aux = dateTime.split(\"T\");\n String[] auxTime = aux[1].split(\":\");\n\n return auxTime[0] + \":\" + auxTime[1];\n }", "public int getStartHour() {\n\treturn start.getHour();\n }", "public static Date parseHourMinute(String formattedTime) {\n\t\treturn parseDate(formattedTime, HOUR_MINUTE_FORMAT);\n\t}", "public static String getDisplayTimeFormat(Date val) {\n\n\t\tif (val != null) {\n\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"hh:mm a\");\n\t\t\treturn \"\" + format.format(val);\n\n\t\t} else {\n\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "private Calendar modificarHoraReserva(Date horaInicio, int hora) {\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(horaInicio);\n calendar.set(Calendar.HOUR, hora);\n calendar.set(Calendar.MINUTE, 0);\n calendar.set(Calendar.MINUTE, 0);\n return calendar;\n }", "private String unixToHHMMSS(String unixTime){\r\n\t\tlong unixSeconds = Long.parseLong(unixTime);\r\n\t\tDate date = new Date(unixSeconds*1000L); // convert seconds to milliseconds\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\"); // date format\r\n\r\n\t\tString formattedDate = sdf.format(date);\r\n\t\treturn formattedDate;\r\n\t}", "public static String TimeFormate() {\n\t\tString time;\n\t\tSimpleDateFormat dateFormat1 = new SimpleDateFormat();\n\t dateFormat1.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t Calendar cal = Calendar.getInstance();\n\t cal.add(Calendar.MINUTE, 3);\n String n=dateFormat1.format(cal.getTime());\n //n=\"03/09/20 8:30 AM\";\n System.out.println(\"Full Date = \" +n);\n int colonindex=n.indexOf(\":\");\n //System.out.println(\": placed= \" +colonindex);\n //String tt =n.substring(colonindex, n.length());\n //System.out.println(\"tt= \" +tt);\n String tt1 =n.substring(colonindex-2,colonindex-1);\n System.out.println(\"tt1= \" +tt1);\n if(tt1.equals(\"1\")) {\n \t time=n.substring(colonindex-2, n.length());\n \t System.out.println(\"Time with two digits in hours= \" +time);\n }\n else {\n \t time=n.substring(colonindex-1, n.length());\n \t System.out.println(\"Time with one digit in hours= \" +time);\n }\n return time;\n\t}", "public static int getHours(Date t, Date baseDate) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(baseDate);\n long sl = cal.getTimeInMillis();\n long el, delta;\n cal.setTime(t);\n el = cal.getTimeInMillis();\n delta = el - sl;\n int value = (int) (delta / (60 * 60 * 1000));\n\n return value;\n }", "private String formatDate(Date date){\n SimpleDateFormat format = new SimpleDateFormat(\"dd-MM-yyyy HH:mm\", Locale.getDefault());\n\n return format.format(date);\n }", "public static String longToYYYYMMDDHHMM(long longTime)\r\n/* 157: */ {\r\n/* 158:232 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd HH:mm\");\r\n/* 159:233 */ Date strtodate = new Date(longTime);\r\n/* 160:234 */ return formatter.format(strtodate);\r\n/* 161: */ }", "java.lang.String getTime();", "private static String time() throws Exception {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH-mm-ss \");\n\t\t// get current date time with Date()\n\t\tDate date = new Date();\n\t\t// Now format the date\n\t\tString date1 = dateFormat.format(date);\n\t\t// System.out.println(date1);\n\t\treturn date1;\n\t}", "public int getHour()\n {\n return hour;\n }", "public static String timeToString(Date date)\r\n/* 24: */ {\r\n/* 25: 31 */ return sdfTime.format(date);\r\n/* 26: */ }", "public static String getTimeString() {\n SimpleDateFormat formatter = new SimpleDateFormat(\"EEE MMM dd HH:mm:ss yyyy\");\n return formatter.format(new java.util.Date());\n }", "public static Calendar getFechaHoy(){\n\n Calendar cal = new GregorianCalendar();\n cal.set(Calendar.HOUR_OF_DAY,0);\n cal.set(Calendar.MINUTE, 0);\n cal.set(Calendar.SECOND, 0);\n cal.set(Calendar.MILLISECOND, 0);\n\n return cal;\n }", "public int getHours(){\n return (int) totalSeconds/3600;\n }", "public String convertCalendarMillisecondsAsLongToDateTimeHourMin(long fingerprint) {\n\t\t\t\tDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\"); // not \"yyyy-MM-dd HH:mm:ss\"\n\t\t\t\tDate date = new Date(fingerprint);\n\t\t\t\treturn format.format(date);\n\t\t\t}", "public String parseTimeToTimeDate(String time) {\n Date date = null;\n try {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\", Locale.getDefault());\n String todaysDate = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.getDefault()).format(new Date());\n date = simpleDateFormat.parse(todaysDate + \" \" + time);\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm dd,MMM\", Locale.getDefault());\n //sdf.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n return sdf.format(date);\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return null;\n }", "public void calculateHours(String time1, String time2) {\n Date date1, date2;\n int days, hours, min;\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"hh:mm aa\", Locale.US);\n try {\n date1 = simpleDateFormat.parse(time1);\n date2 = simpleDateFormat.parse(time2);\n\n long difference = date2.getTime() - date1.getTime();\n days = (int) (difference / (1000 * 60 * 60 * 24));\n hours = (int) ((difference - (1000 * 60 * 60 * 24 * days)) / (1000 * 60 * 60));\n min = (int) (difference - (1000 * 60 * 60 * 24 * days) - (1000 * 60 * 60 * hours)) / (1000 * 60);\n hours = (hours < 0 ? -hours : hours);\n SessionHour = hours;\n SessionMinit = min;\n Log.i(\"======= Hours\", \" :: \" + hours + \":\" + min);\n\n if (SessionMinit > 0) {\n if (SessionMinit < 10) {\n SessionDuration = SessionHour + \":\" + \"0\" + SessionMinit + \" hrs\";\n } else {\n SessionDuration = SessionHour + \":\" + SessionMinit + \" hrs\";\n }\n } else {\n SessionDuration = SessionHour + \":\" + \"00\" + \" hrs\";\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "public static Calendar extractTime(int time){\n Calendar c = Calendar.getInstance();\n String d = time+\"\";\n if(d.length() == 3)\n d = \"0\"+d;\n int hour = Integer.parseInt(d.substring(0, 2));\n int min = Integer.parseInt(d.substring(2, 4));\n c.set(Calendar.HOUR_OF_DAY,hour);\n c.set(Calendar.MINUTE,min);\n return c;\n }", "public int getHour() {\n return hour; // returns the appointment's hour in military time\n }", "private String convertToAMPM(Date time) {\r\n\r\n String modifier = \"\";\r\n String dateTime = Util.formateDate(time, \"yyyy-MM-dd HH:mm\");\r\n\r\n\r\n // Get the raw time\r\n String rawTime = dateTime.split(\" \")[1];\r\n // Get the hour as 24 time and minutes\r\n String hour24 = rawTime.split(\":\")[0];\r\n String minutes = rawTime.split(\":\")[1];\r\n // Convert the hour\r\n Integer hour = Integer.parseInt(hour24);\r\n\r\n if (hour != 12 && hour != 0) {\r\n modifier = hour < 12 ? \"am\" : \"pm\";\r\n hour %= 12;\r\n } else {\r\n modifier = (hour == 12 ? \"pm\" : \"am\");\r\n hour = 12;\r\n }\r\n // Concat and return\r\n return hour.toString() + \":\" + minutes + \" \" + modifier;\r\n }", "public static String formatarHoraSemSegundos(Date data) {\r\n\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\tif (data != null) {\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tif (dataCalendar.get(Calendar.HOUR_OF_DAY) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.HOUR_OF_DAY));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.HOUR_OF_DAY));\r\n\t\t\t}\r\n\r\n\t\t\tdataBD.append(\":\");\r\n\r\n\t\t\tif (dataCalendar.get(Calendar.MINUTE) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MINUTE));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.MINUTE));\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn dataBD.toString();\r\n\t}", "public int getHour() \n { \n return hour; \n }", "private String getMinutesInTime(int time) {\n String hour = String.valueOf(time / 60);\n String minutes = String.valueOf(time % 60);\n\n if(minutes.length() < 2) {\n minutes = \"0\" + minutes;\n }\n\n return hour + \":\" + minutes;\n\n }", "public int getHour(){\n return hour;\n }" ]
[ "0.73846066", "0.68080896", "0.67642355", "0.67605543", "0.65401185", "0.6336215", "0.61787707", "0.6131066", "0.6063993", "0.6057036", "0.5997338", "0.5978703", "0.5926404", "0.58675086", "0.5840426", "0.58353114", "0.5812884", "0.57957375", "0.57845664", "0.57761604", "0.57286763", "0.5705781", "0.5691622", "0.5666763", "0.56585336", "0.5619514", "0.5612133", "0.55561763", "0.55557823", "0.5549904", "0.5530642", "0.5518615", "0.5488815", "0.54754806", "0.542662", "0.5424198", "0.5409042", "0.5388661", "0.53627276", "0.5360583", "0.53117615", "0.52736133", "0.52722406", "0.52586496", "0.5251358", "0.52507013", "0.52342254", "0.5215845", "0.5205784", "0.5163215", "0.5147518", "0.5146707", "0.51433", "0.5142393", "0.51290965", "0.5108477", "0.5104334", "0.51041067", "0.5079332", "0.50687975", "0.5061569", "0.505394", "0.5043632", "0.5037212", "0.50303215", "0.4998436", "0.499757", "0.49961305", "0.495237", "0.4940227", "0.49384838", "0.4936909", "0.49294797", "0.49047065", "0.48938864", "0.48867878", "0.48775902", "0.4873861", "0.48733878", "0.48702484", "0.48679873", "0.4854248", "0.48497906", "0.4839171", "0.48350808", "0.4833599", "0.4830049", "0.48241788", "0.48086008", "0.48081395", "0.47942367", "0.47933915", "0.4784426", "0.47813386", "0.47776824", "0.4754818", "0.47452357", "0.47434238", "0.47305834", "0.47218665", "0.47211784" ]
0.0
-1
Author: Raphael Rossiter Data: 12/04/2007
@SuppressWarnings({ "unchecked", "rawtypes" }) public static Collection<Categoria> montarColecaoCategoria(Collection colecaoSubcategorias) { Collection<Categoria> colecaoRetorno = null; if (colecaoSubcategorias != null && !colecaoSubcategorias.isEmpty()) { colecaoRetorno = new ArrayList(); Iterator colecaoSubcategoriaIt = colecaoSubcategorias.iterator(); Categoria categoriaAnterior = null; Subcategoria subcategoria; int totalEconomiasCategoria = 0; while (colecaoSubcategoriaIt.hasNext()) { subcategoria = (Subcategoria) colecaoSubcategoriaIt.next(); if (categoriaAnterior == null) { totalEconomiasCategoria = subcategoria.getQuantidadeEconomias(); } else if (subcategoria.getCategoria().equals(categoriaAnterior)) { totalEconomiasCategoria = totalEconomiasCategoria + subcategoria.getQuantidadeEconomias(); } else { categoriaAnterior.setQuantidadeEconomiasCategoria(totalEconomiasCategoria); colecaoRetorno.add(categoriaAnterior); totalEconomiasCategoria = subcategoria.getQuantidadeEconomias(); } categoriaAnterior = subcategoria.getCategoria(); } categoriaAnterior.setQuantidadeEconomiasCategoria(totalEconomiasCategoria); colecaoRetorno.add(categoriaAnterior); } return colecaoRetorno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void interface1(){\n noStroke();\n fill(10,100);//light gray\n rect(0,60,600,590);\n fill(220);//gray\n noStroke();\n beginShape();\n vertex(365,40);\n vertex(600,40);\n vertex(600,80);\n vertex(365,80);\n vertex(345,60);\n endShape(CLOSE);\n fill(19,70,100,100);//dark blue\n rect(0,110,600,215);\n rect(0,380,600,215);\n}", "private void paintTheImage() {\n SPainter bruhmoment = new SPainter(\"Kanizsa Square\" ,400,400);\n\n SCircle dot = new SCircle(75);\n paintBlueCircle(bruhmoment,dot);\n paintRedCircle(bruhmoment,dot);\n paintGreenCircles(bruhmoment,dot);\n\n SSquare square= new SSquare(200);\n paintWhiteSquare(bruhmoment,square);\n\n\n }", "public void constructDrawing(){\r\n\r\n resetToEmpty(); // should be empty anyway\r\n\r\n// universe=TFormula.atomicTermsInListOfFormulas(fInterpretation);\r\n \r\n Set <String> universeStrSet=TFormula.atomicTermsInListOfFormulas(fInterpretation);\r\n \r\n universe=\"\";\r\n \r\n for (Iterator i=universeStrSet.iterator();i.hasNext();)\r\n \tuniverse+=i.next();\r\n \r\n\r\n findPropertyExtensions();\r\n\r\n findRelationsExtensions();\r\n\r\n determineLines();\r\n\r\n createProperties();\r\n\r\n createIndividuals();\r\n\r\n createRelations();\r\n\r\n deselect(); //all shapes are created selected\r\n\r\n\r\n fPalette.check(); // some of the names may need updating\r\n\r\n repaint();\r\n\r\n}", "@Override\r\n public final void draw(final Rectangle r, final BufferedImage paper) {\n String red;\r\n String green;\r\n String blue;\r\n if (Integer.toHexString(r.getBorderColor().getRed()).length() == 1) {\r\n red = \"0\" + Integer.toHexString(r.getBorderColor().getRed());\r\n } else {\r\n red = Integer.toHexString(r.getBorderColor().getRed());\r\n }\r\n if (Integer.toHexString(r.getBorderColor().getGreen()).length() == 1) {\r\n green = \"0\" + Integer.toHexString(r.getBorderColor().getGreen());\r\n } else {\r\n green = Integer.toHexString(r.getBorderColor().getGreen());\r\n }\r\n if (Integer.toHexString(r.getBorderColor().getBlue()).length() == 1) {\r\n blue = \"0\" + Integer.toHexString(r.getBorderColor().getBlue());\r\n } else {\r\n blue = Integer.toHexString(r.getBorderColor().getBlue());\r\n }\r\n String color = \"#\" + red + green + blue;\r\n\r\n draw(new Line((String.valueOf(r.getxSus())), String.valueOf(r.getySus()),\r\n String.valueOf(r.getxSus() + r.getLungime() - 1), String.valueOf(r.getySus()),\r\n color, String.valueOf(r.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(r.getxSus() + r.getLungime() - 1)),\r\n String.valueOf(r.getySus()), String.valueOf(r.getxSus() + r.getLungime() - 1),\r\n String.valueOf(r.getySus() + r.getInaltime() - 1), color,\r\n String.valueOf(r.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(r.getxSus() + r.getLungime() - 1)),\r\n String.valueOf(r.getySus() + r.getInaltime() - 1), String.valueOf(r.getxSus()),\r\n String.valueOf(r.getySus() + r.getInaltime() - 1), color,\r\n String.valueOf(r.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(r.getxSus())),\r\n String.valueOf(r.getySus() + r.getInaltime() - 1), String.valueOf(r.getxSus()),\r\n String.valueOf(r.getySus()), color, String.valueOf(r.getBorderColor().getAlpha()),\r\n paper), paper);\r\n\r\n for (int i = r.getxSus() + 1; i < r.getxSus() + r.getLungime() - 1; i++) {\r\n for (int j = r.getySus() + 1; j < r.getySus() + r.getInaltime() - 1; j++) {\r\n if (checkBorder(i, j, paper)) {\r\n paper.setRGB(i, j, r.getFillColor().getRGB());\r\n }\r\n }\r\n }\r\n }", "private void paintTheImage() {\n SPainter klee = new SPainter(\"Red Cross\", 600,600);\n SRectangle rectangle = new SRectangle(500, 100);\n klee.setColor(Color.RED);\n klee.paint(rectangle);\n klee.tl();\n klee.paint(rectangle);\n }", "@Override\r\n public final void draw(final Circle s, final BufferedImage paper) {\n\r\n int xc = s.getX();\r\n int yc = s.getY();\r\n int r = s.getRaza();\r\n int x = 0, y = r;\r\n final int trei = 3;\r\n int doi = 2;\r\n int d = trei - doi * r;\r\n while (y >= x) {\r\n if (checkBorder(xc + x, yc + y, paper)) {\r\n paper.setRGB(xc + x, yc + y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - x, yc + y, paper)) {\r\n paper.setRGB(xc - x, yc + y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + x, yc - y, paper)) {\r\n paper.setRGB(xc + x, yc - y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - x, yc - y, paper)) {\r\n paper.setRGB(xc - x, yc - y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + y, yc + x, paper)) {\r\n paper.setRGB(xc + y, yc + x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + y, yc - x, paper)) {\r\n paper.setRGB(xc + y, yc - x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - y, yc + x, paper)) {\r\n paper.setRGB(xc - y, yc + x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - y, yc - x, paper)) {\r\n paper.setRGB(xc - y, yc - x, s.getBorderColor().getRGB());\r\n }\r\n\r\n x++;\r\n if (d > 0) {\r\n y--;\r\n final int patru = 4;\r\n final int zece = 10;\r\n d = d + patru * (x - y) + zece;\r\n } else {\r\n final int patru = 4;\r\n final int sase = 6;\r\n d = d + patru * x + sase;\r\n }\r\n if (checkBorder(xc + x, yc + y, paper)) {\r\n paper.setRGB(xc + x, yc + y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - x, yc + y, paper)) {\r\n paper.setRGB(xc - x, yc + y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + x, yc - y, paper)) {\r\n paper.setRGB(xc + x, yc - y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - x, yc - y, paper)) {\r\n paper.setRGB(xc - x, yc - y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + y, yc + x, paper)) {\r\n paper.setRGB(xc + y, yc + x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + y, yc - x, paper)) {\r\n paper.setRGB(xc + y, yc - x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - y, yc + x, paper)) {\r\n paper.setRGB(xc - y, yc + x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - y, yc - x, paper)) {\r\n paper.setRGB(xc - y, yc - x, s.getBorderColor().getRGB());\r\n }\r\n\r\n }\r\n floodFill(xc, yc, s.getFillColor(), s.getBorderColor(), paper);\r\n }", "@Test\n public void test84() throws Throwable {\n Point2D.Double point2D_Double0 = new Point2D.Double();\n point2D_Double0.setLocation(0.0, 0.0);\n CategoryAxis categoryAxis0 = new CategoryAxis(\"\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot(categoryAxis0);\n DefaultPolarItemRenderer defaultPolarItemRenderer0 = new DefaultPolarItemRenderer();\n Color color0 = (Color)defaultPolarItemRenderer0.getItemLabelPaint(871, (-1498));\n Number[][] numberArray0 = new Number[5][3];\n Number[] numberArray1 = new Number[2];\n int int0 = Calendar.LONG_FORMAT;\n numberArray1[0] = (Number) 2;\n int int1 = Float.SIZE;\n numberArray1[1] = (Number) 32;\n numberArray0[0] = numberArray1;\n Number[] numberArray2 = new Number[4];\n numberArray2[0] = (Number) 0.0;\n numberArray2[1] = (Number) 0.0;\n numberArray2[2] = (Number) 0.0;\n numberArray2[3] = (Number) 0.0;\n numberArray0[1] = numberArray2;\n Number[] numberArray3 = new Number[1];\n numberArray3[0] = (Number) 0.0;\n numberArray0[2] = numberArray3;\n Number[] numberArray4 = new Number[7];\n numberArray4[0] = (Number) 0.0;\n long long0 = XYBubbleRenderer.serialVersionUID;\n numberArray4[1] = (Number) (-5221991598674249125L);\n numberArray4[2] = (Number) 0.0;\n numberArray4[3] = (Number) 0.0;\n numberArray4[4] = (Number) 0.0;\n int int2 = JDesktopPane.LIVE_DRAG_MODE;\n numberArray4[5] = (Number) 0;\n numberArray4[6] = (Number) 0.0;\n numberArray0[3] = numberArray4;\n Number[] numberArray5 = new Number[9];\n numberArray5[0] = (Number) 0.0;\n numberArray5[1] = (Number) 0.0;\n numberArray5[2] = (Number) 0.0;\n numberArray5[3] = (Number) 0.0;\n numberArray5[4] = (Number) 0.0;\n numberArray5[5] = (Number) 0.0;\n numberArray5[6] = (Number) 0.0;\n numberArray5[7] = (Number) 0.0;\n int int3 = SwingConstants.HORIZONTAL;\n numberArray5[8] = (Number) 0;\n numberArray0[4] = numberArray5;\n DefaultIntervalCategoryDataset defaultIntervalCategoryDataset0 = new DefaultIntervalCategoryDataset(numberArray0, numberArray0);\n LogarithmicAxis logarithmicAxis0 = new LogarithmicAxis(\"org.jfree.data.ComparableObjectItem\");\n LineAndShapeRenderer lineAndShapeRenderer0 = new LineAndShapeRenderer();\n CategoryPlot categoryPlot0 = null;\n try {\n categoryPlot0 = new CategoryPlot((CategoryDataset) defaultIntervalCategoryDataset0, categoryAxis0, (ValueAxis) logarithmicAxis0, (CategoryItemRenderer) lineAndShapeRenderer0);\n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1\n //\n assertThrownBy(\"org.jfree.data.category.DefaultIntervalCategoryDataset\", e);\n }\n }", "public void med1() {\n DrawingPanel win = new DrawingPanel(WIDTH, HEIGHT);\n java.awt.Graphics g = win.getGraphics();\n win.setTitle(\"Med. 1\");\n win.setLocation(300, 10);\n win.setBackground(java.awt.Color.red);\n for(int y = -10; y < HEIGHT; y += 24) {\n for(int x = -10; x < WIDTH; x += 24) {\n octagon(x, y, g);\n }\n }\n }", "public void russia(){\n stroke(1);\n //back guns\n fill(0);\n rect(73,192,4,15);\n rect(224,192,4,15);\n rect(71,207,8,15);\n rect(222,207,8,15);\n rect(66,207,3,15);\n rect(232,207,3,17);\n rect(122,109,4,15);\n rect(175,110,4,15);\n rect(121,120,6,15);\n rect(174,120,6,15);\n rect(116,124,3,15);\n rect(182,124,3,15);\n\n //wings\n fill(165,0,0);//gray\n beginShape();\n vertex(14,286);\n vertex(61,236);\n vertex(88,308);\n vertex(51,334);\n vertex(14,313);\n endShape(CLOSE);\n beginShape();\n vertex(286,287);\n vertex(286,312);\n vertex(247,335);\n vertex(212,309);\n vertex(238,238);\n endShape(CLOSE);\n\n fill(0);//black\n beginShape();\n vertex(38,307);\n vertex(74,307);\n vertex(80,314);\n vertex(81,337);\n vertex(68,345);\n vertex(38,327);\n endShape(CLOSE);\n beginShape();\n vertex(219,316);\n vertex(226,308);\n vertex(262,308);\n vertex(262,326);\n vertex(231,345);\n vertex(219,336);\n endShape(CLOSE);\n\n fill(18,39,148);//blue\n beginShape();\n vertex(96,191);\n vertex(61,230);\n vertex(60,269);\n vertex(96,312);\n vertex(101,300);\n vertex(100,247);\n vertex(112,232);\n vertex(132,232);\n vertex(131,186);\n endShape(CLOSE);\n beginShape();\n vertex(204,191);\n vertex(240,230);\n vertex(240,270);\n vertex(205,312);\n vertex(200,302);\n vertex(200,248);\n vertex(193,238);\n vertex(185,231);\n vertex(170,230);\n vertex(170,186);\n endShape(CLOSE);\n\n //white\n fill(200);\n beginShape();\n vertex(70,217);\n vertex(74,220);\n vertex(81,210);\n vertex(85,213);\n vertex(75,227);\n vertex(72,229);\n vertex(71,231);\n vertex(73,233);\n vertex(73,268);\n vertex(71,272);\n vertex(76,277);\n vertex(82,274);\n vertex(89,283);\n vertex(90,297);\n vertex(66,272);\n vertex(65,235);\n vertex(68,229);\n vertex(62,228);\n endShape(CLOSE);\n beginShape();\n vertex(228,217);\n vertex(225,218);\n vertex(218,211);\n vertex(215,213);\n vertex(223,227);\n vertex(226,226);\n vertex(230,230);\n vertex(227,233);\n vertex(228,270);\n vertex(229,272);\n vertex(223,276);\n vertex(218,276);\n vertex(210,283);\n vertex(211,296);\n vertex(235,273);\n vertex(234,233);\n vertex(232,228);\n vertex(237,227);\n endShape(CLOSE);\n\n //guns\n //red\n fill(194,24,11);\n beginShape();\n vertex(121,301);\n vertex(98,313);\n vertex(102,336);\n vertex(119,342);\n vertex(139,336);\n vertex(141,313);\n endShape(CLOSE);//l\n beginShape();\n vertex(159,312);\n vertex(162,336);\n vertex(180,342);\n vertex(200,336);\n vertex(202,313);\n vertex(180,302);\n endShape(CLOSE);\n\n //black\n fill(0);\n rect(105,315,30,30);\n rect(166,315,30,30);\n quad(105,344,109,355,131,355,135,344);\n quad(166,344,170,355,192,355,196,344);\n\n rect(103,253,33,62);//l\n rect(164,252,33,62);//r\n //white\n fill(200);\n bezier(103,252,107,230,132,230,136,252);//l\n bezier(164,252,169,230,192,230,197,252);//r\n\n rect(103,280,33,25);//l\n rect(164,280,33,25);//r\n rect(104,319,33,26,3);//l\n rect(165,319,33,26,3);//r\n fill(194,24,11);\n rect(115,310,7,28,8);//l\n rect(178,310,7,28,8);//r\n\n fill(194,24,11);\n rect(105,284,10,15);\n rect(124,284,10,15);\n rect(167,285,10,15);\n rect(185,284,10,15);\n\n //body-wings\n\n fill(0,0,67);//blue\n bezier(107,154,101,162,98,169,98,187);\n bezier(191,153,199,164,202,172,203,187);\n quad(107,154,98,186,98,223,107,224);\n quad(191,153,203,186,202,223,192,223);\n fill(192,0,11);//red\n quad(134,112,108,147,107,239,132,230);\n quad(165,112,192,147,193,239,168,230);\n //black\n fill(0);\n quad(130,122,130,142,111,164,111,147);\n quad(169,122,188,147,188,165,169,144);\n //white\n fill(200);\n beginShape();\n vertex(131,154);\n vertex(129,202);\n vertex(118,202);\n vertex(112,181);\n vertex(110,179);\n vertex(110,171);\n endShape(CLOSE);\n beginShape();\n vertex(170,154);\n vertex(190,172);\n vertex(190,182);\n vertex(188,181);\n vertex(182,201);\n vertex(172,201);\n endShape(CLOSE);\n\n fill(0);\n quad(134,193,166,193,154,342,146,342);\n fill(192,0,11);\n quad(142,180,159,180,152,352,148,352);\n //white\n fill(200);\n ellipse(150,374,6,50);\n\n //head\n fill(160,0,0);\n ellipse(149.5f,72,33,25);\n ellipse(149.5f,94,30,170);\n fill(0);\n ellipse(149.5f,94,20,160);\n fill(154,155,84);\n ellipse(149.5f,94,17,77);\n strokeWeight(2);\n line(143,74,158,74);\n line(142,104,158,104);\n strokeWeight(1);\n fill(200);\n bezier(143,15,147,2,153,2,155.5f,15);\n}", "public void stateChanged(ChangeEvent e){\n\r\n repaint(); // at the moment we're being pretty crude with this, redrawing all the shapes\r\n\r\n\r\n\r\n if (fDeriverDocument!=null) // if this drawing has a journal, set it for saving\r\n fDeriverDocument.setDirty(true);\r\n\r\n\r\n\r\n }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "public void syria(){\n stroke(1);\n //back guns\n fill(0);\n rect(73,192,4,15);\n rect(224,192,4,15);\n rect(71,207,8,15);\n rect(222,207,8,15);\n rect(66,207,3,15);\n rect(232,207,3,17);\n rect(122,109,4,15);\n rect(175,110,4,15);\n rect(121,120,6,15);\n rect(174,120,6,15);\n rect(116,124,3,15);\n rect(182,124,3,15);\n\n //wings\n fill(206,17,38);//red\n beginShape();\n vertex(14,286);\n vertex(61,236);\n vertex(88,308);\n vertex(51,334);\n vertex(14,313);\n endShape(CLOSE);\n beginShape();\n vertex(286,287);\n vertex(286,312);\n vertex(247,335);\n vertex(212,309);\n vertex(238,238);\n endShape(CLOSE);\n\n fill(200);//white\n beginShape();\n vertex(38,307);\n vertex(74,307);\n vertex(80,314);\n vertex(81,337);\n vertex(68,345);\n vertex(38,327);\n endShape(CLOSE);\n beginShape();\n vertex(219,316);\n vertex(226,308);\n vertex(262,308);\n vertex(262,326);\n vertex(231,345);\n vertex(219,336);\n endShape(CLOSE);\n\n fill(0);//red\n beginShape();\n vertex(96,191);\n vertex(61,230);\n vertex(60,269);\n vertex(96,312);\n vertex(101,300);\n vertex(100,247);\n vertex(112,232);\n vertex(132,232);\n vertex(131,186);\n endShape(CLOSE);\n beginShape();\n vertex(204,191);\n vertex(240,230);\n vertex(240,270);\n vertex(205,312);\n vertex(200,302);\n vertex(200,248);\n vertex(193,238);\n vertex(185,231);\n vertex(170,230);\n vertex(170,186);\n endShape(CLOSE);\n\n //white\n fill(200);\n beginShape();\n vertex(70,217);\n vertex(74,220);\n vertex(81,210);\n vertex(85,213);\n vertex(75,227);\n vertex(72,229);\n vertex(71,231);\n vertex(73,233);\n vertex(73,268);\n vertex(71,272);\n vertex(76,277);\n vertex(82,274);\n vertex(89,283);\n vertex(90,297);\n vertex(66,272);\n vertex(65,235);\n vertex(68,229);\n vertex(62,228);\n endShape(CLOSE);\n beginShape();\n vertex(228,217);\n vertex(225,218);\n vertex(218,211);\n vertex(215,213);\n vertex(223,227);\n vertex(226,226);\n vertex(230,230);\n vertex(227,233);\n vertex(228,270);\n vertex(229,272);\n vertex(223,276);\n vertex(218,276);\n vertex(210,283);\n vertex(211,296);\n vertex(235,273);\n vertex(234,233);\n vertex(232,228);\n vertex(237,227);\n endShape(CLOSE);\n\n //guns\n //white\n fill(200);\n beginShape();\n vertex(121,301);\n vertex(98,313);\n vertex(102,336);\n vertex(119,342);\n vertex(139,336);\n vertex(141,313);\n endShape(CLOSE);//l\n beginShape();\n vertex(159,312);\n vertex(162,336);\n vertex(180,342);\n vertex(200,336);\n vertex(202,313);\n vertex(180,302);\n endShape(CLOSE);\n\n //black\n fill(0);\n rect(105,315,30,30);\n rect(166,315,30,30);\n quad(105,344,109,355,131,355,135,344);\n quad(166,344,170,355,192,355,196,344);\n //green\n fill(0,122,61);\n rect(103,253,33,62);//l\n rect(164,252,33,62);//r\n //white\n fill(200);\n bezier(103,252,107,230,132,230,136,252);//l\n bezier(164,252,169,230,192,230,197,252);//r\n rect(103,280,33,25);//l\n rect(164,280,33,25);//r\n rect(104,319,33,26,3);//l\n rect(165,319,33,26,3);//r\n rect(115,310,7,28,8);//l\n rect(178,310,7,28,8);//r\n //green\n fill(0,122,61);\n rect(105,284,10,15);\n rect(124,284,10,15);\n rect(167,285,10,15);\n rect(185,284,10,15);\n\n //body-wings\n\n fill(0,122,61);//green\n bezier(107,154,101,162,98,169,98,187);\n bezier(191,153,199,164,202,172,203,187);\n quad(107,154,98,186,98,223,107,224);\n quad(191,153,203,186,202,223,192,223);\n fill(206,17,38);//red\n quad(134,112,108,147,107,239,132,230);\n quad(165,112,192,147,193,239,168,230);\n //black\n fill(0);\n quad(130,122,130,142,111,164,111,147);\n quad(169,122,188,147,188,165,169,144);\n //white\n fill(200);\n beginShape();\n vertex(131,154);\n vertex(129,202);\n vertex(118,202);\n vertex(112,181);\n vertex(110,179);\n vertex(110,171);\n endShape(CLOSE);\n beginShape();\n vertex(170,154);\n vertex(190,172);\n vertex(190,182);\n vertex(188,181);\n vertex(182,201);\n vertex(172,201);\n endShape(CLOSE);\n\n fill(0);\n quad(134,193,166,193,154,342,146,342);\n fill(0);\n quad(142,180,159,180,152,352,148,352);\n //white\n fill(200);\n ellipse(150,374,6,50);\n\n //head\n\n fill(206,17,38);\n ellipse(149.5f,72,33,25);\n ellipse(149.5f,94,30,170);\n fill(0);\n ellipse(149.5f,94,20,160);\n fill(154,155,84);\n ellipse(149.5f,94,17,77);\n strokeWeight(2);\n line(143,74,158,74);\n line(142,104,158,104);\n strokeWeight(1);\n fill(200);\n bezier(143,15,147,2,153,2,155.5f,15);\n}", "public String whatShape();", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\r\n public final void draw(final Square s, final BufferedImage paper) {\n String red;\r\n String green;\r\n String blue;\r\n if (Integer.toHexString(s.getBorderColor().getRed()).length() == 1) {\r\n red = \"0\" + Integer.toHexString(s.getBorderColor().getRed());\r\n } else {\r\n red = Integer.toHexString(s.getBorderColor().getRed());\r\n }\r\n if (Integer.toHexString(s.getBorderColor().getGreen()).length() == 1) {\r\n green = \"0\" + Integer.toHexString(s.getBorderColor().getGreen());\r\n } else {\r\n green = Integer.toHexString(s.getBorderColor().getGreen());\r\n }\r\n if (Integer.toHexString(s.getBorderColor().getBlue()).length() == 1) {\r\n blue = \"0\" + Integer.toHexString(s.getBorderColor().getBlue());\r\n } else {\r\n blue = Integer.toHexString(s.getBorderColor().getBlue());\r\n }\r\n String color = \"#\" + red + green + blue;\r\n \r\n draw(new Line((String.valueOf(s.getxSus())), String.valueOf(s.getySus()),\r\n String.valueOf(s.getxSus() + s.getLatura() - 1), String.valueOf(s.getySus()), color,\r\n String.valueOf(s.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(s.getxSus() + s.getLatura() - 1)),\r\n String.valueOf(s.getySus()), String.valueOf(s.getxSus() + s.getLatura() - 1),\r\n String.valueOf(s.getySus() + s.getLatura() - 1), color,\r\n String.valueOf(s.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(s.getxSus() + s.getLatura() - 1)),\r\n String.valueOf(s.getySus() + s.getLatura() - 1), String.valueOf(s.getxSus()),\r\n String.valueOf(s.getySus() + s.getLatura() - 1), color,\r\n String.valueOf(s.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(s.getxSus())),\r\n String.valueOf(s.getySus() + s.getLatura() - 1), String.valueOf(s.getxSus()),\r\n String.valueOf(s.getySus()), color, String.valueOf(s.getBorderColor().getAlpha()),\r\n paper), paper);\r\n for (int i = s.getxSus() + 1; i < s.getxSus() + s.getLatura() - 1; i++) {\r\n for (int j = s.getySus() + 1; j < s.getySus() + s.getLatura() - 1; j++) {\r\n if (checkBorder(i, j, paper)) {\r\n paper.setRGB(i, j, s.getFillColor().getRGB());\r\n }\r\n }\r\n }\r\n\r\n }", "ZHDraweeView mo91981h();", "Sketch apex();", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\n\tpublic void BuildShape(Graphics g) {\n\t\t\n\t}", "private static void addShaped()\n {}", "public void drawHealth(int x, int y) {\n pushMatrix();\n translate(x, y);\n scale(0.8f);\n smooth();\n noStroke();\n fill(0);\n beginShape();\n vertex(52, 17);\n bezierVertex(52, -5, 90, 5, 52, 40);\n vertex(52, 17);\n bezierVertex(52, -5, 10, 5, 52, 40);\n endShape();\n fill(255,0,0);\n beginShape();\n vertex(50, 15);\n bezierVertex(50, -5, 90, 5, 50, 40);\n vertex(50, 15);\n bezierVertex(50, -5, 10, 5, 50, 40);\n endShape();\n popMatrix();\n}", "@Override\n\tpublic void getShape() {\n\n\t}", "public Shapes draw ( );", "public void usa(){\n stroke(1);\n //back guns\n fill(0);\n rect(73,192,4,15);\n rect(224,192,4,15);\n rect(71,207,8,15);\n rect(222,207,8,15);\n rect(66,207,3,15);\n rect(232,207,3,17);\n rect(122,109,4,15);\n rect(175,110,4,15);\n rect(121,120,6,15);\n rect(174,120,6,15);\n rect(116,124,3,15);\n rect(182,124,3,15);\n\n //wings\n fill(1,0,74);//dark blue\n beginShape();\n vertex(14,286);\n vertex(61,236);\n vertex(88,308);\n vertex(51,334);\n vertex(14,313);\n endShape(CLOSE);\n beginShape();\n vertex(286,287);\n vertex(286,312);\n vertex(247,335);\n vertex(212,309);\n vertex(238,238);\n endShape(CLOSE);\n\n fill(200);//white\n beginShape();\n vertex(38,307);\n vertex(74,307);\n vertex(80,314);\n vertex(81,337);\n vertex(68,345);\n vertex(38,327);\n endShape(CLOSE);\n beginShape();\n vertex(219,316);\n vertex(226,308);\n vertex(262,308);\n vertex(262,326);\n vertex(231,345);\n vertex(219,336);\n endShape(CLOSE);\n\n fill(192,0,11);//red\n beginShape();\n vertex(96,191);\n vertex(61,230);\n vertex(60,269);\n vertex(96,312);\n vertex(101,300);\n vertex(100,247);\n vertex(112,232);\n vertex(132,232);\n vertex(131,186);\n endShape(CLOSE);\n beginShape();\n vertex(204,191);\n vertex(240,230);\n vertex(240,270);\n vertex(205,312);\n vertex(200,302);\n vertex(200,248);\n vertex(193,238);\n vertex(185,231);\n vertex(170,230);\n vertex(170,186);\n endShape(CLOSE);\n\n //white\n fill(200);\n beginShape();\n vertex(70,217);\n vertex(74,220);\n vertex(81,210);\n vertex(85,213);\n vertex(75,227);\n vertex(72,229);\n vertex(71,231);\n vertex(73,233);\n vertex(73,268);\n vertex(71,272);\n vertex(76,277);\n vertex(82,274);\n vertex(89,283);\n vertex(90,297);\n vertex(66,272);\n vertex(65,235);\n vertex(68,229);\n vertex(62,228);\n endShape(CLOSE);\n beginShape();\n vertex(228,217);\n vertex(225,218);\n vertex(218,211);\n vertex(215,213);\n vertex(223,227);\n vertex(226,226);\n vertex(230,230);\n vertex(227,233);\n vertex(228,270);\n vertex(229,272);\n vertex(223,276);\n vertex(218,276);\n vertex(210,283);\n vertex(211,296);\n vertex(235,273);\n vertex(234,233);\n vertex(232,228);\n vertex(237,227);\n endShape(CLOSE);\n\n //guns\n //white\n fill(200);\n beginShape();\n vertex(121,301);\n vertex(98,313);\n vertex(102,336);\n vertex(119,342);\n vertex(139,336);\n vertex(141,313);\n endShape(CLOSE);//l\n beginShape();\n vertex(159,312);\n vertex(162,336);\n vertex(180,342);\n vertex(200,336);\n vertex(202,313);\n vertex(180,302);\n endShape(CLOSE);\n\n //black\n fill(0);\n rect(105,315,30,30);\n rect(166,315,30,30);\n quad(105,344,109,355,131,355,135,344);\n quad(166,344,170,355,192,355,196,344);\n //green\n fill(0,0,67);\n rect(103,253,33,62);//l\n rect(164,252,33,62);//r\n //white\n fill(200);\n bezier(103,252,107,230,132,230,136,252);//l\n bezier(164,252,169,230,192,230,197,252);//r\n rect(103,280,33,25);//l\n rect(164,280,33,25);//r\n rect(104,319,33,26,3);//l\n rect(165,319,33,26,3);//r\n rect(115,310,7,28,8);//l\n rect(178,310,7,28,8);//r\n //green\n fill(0,0,67);\n rect(105,284,10,15);\n rect(124,284,10,15);\n rect(167,285,10,15);\n rect(185,284,10,15);\n\n //body-wings\n //green\n fill(0,0,67);//blue\n bezier(107,154,101,162,98,169,98,187);\n bezier(191,153,199,164,202,172,203,187);\n quad(107,154,98,186,98,223,107,224);\n quad(191,153,203,186,202,223,192,223);\n fill(192,0,11);//red\n quad(134,112,108,147,107,239,132,230);\n quad(165,112,192,147,193,239,168,230);\n //black\n fill(0);\n quad(130,122,130,142,111,164,111,147);\n quad(169,122,188,147,188,165,169,144);\n //white\n fill(200);\n beginShape();\n vertex(131,154);\n vertex(129,202);\n vertex(118,202);\n vertex(112,181);\n vertex(110,179);\n vertex(110,171);\n endShape(CLOSE);\n beginShape();\n vertex(170,154);\n vertex(190,172);\n vertex(190,182);\n vertex(188,181);\n vertex(182,201);\n vertex(172,201);\n endShape(CLOSE);\n\n //green\n fill(192,0,11);\n quad(134,193,166,193,154,342,146,342);\n fill(192,0,11);\n quad(142,180,159,180,152,352,148,352);\n //white\n fill(200);\n ellipse(150,374,6,50);\n\n //head\n fill(1,1,75);\n ellipse(149.5f,72,33,25);\n ellipse(149.5f,94,30,170);\n fill(0);\n ellipse(149.5f,94,20,160);\n fill(154,155,84);\n ellipse(149.5f,94,17,77);\n strokeWeight(2);\n line(143,74,158,74);\n line(142,104,158,104);\n strokeWeight(1);\n fill(200);\n bezier(143,15,147,2,153,2,155.5f,15);\n }", "@Override\n\tpublic void draw1() {\n\n\t}", "@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}", "@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}", "@Override\n public void paint(Graphics g) {\n }", "@Override\n\tpublic void draw() {\n\t}", "public void assignShape() {\n\t\t\n\t}", "private void paintHand3(Graphics2D gfx)\r\n {\n \r\n }", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "static void drawCrosses() { // draws a cross at each cell centre\n\t\tif (currentStage[currentSlice-1]>1)\n\t\t{\n\t\t\tfloat xc,yc;\n\t\t\t//GeneralPath path = new GeneralPath();\n\n\t\t\tfor (int i=0;i<pop.N;i++)\n\t\t\t{\n\t\t\t\txc = (float) ( (Balloon)(pop.BallList.get(i)) ).x0;\n\t\t\t\tyc = (float) ( (Balloon)(pop.BallList.get(i)) ).y0;\n\t\t\t\tfloat arm = 5;\n\n\t\t\t\t// label cell position\n\t\t\t\tjava.awt.geom.GeneralPath Nshape = new GeneralPath();\n\t\t\t\tNshape.moveTo(xc-arm, yc);\n\t\t\t\tNshape.lineTo(xc+arm, yc);\n\t\t\t\tNshape.moveTo(xc, yc-arm);\n\t\t\t\tNshape.lineTo(xc, yc+arm);\n\n\t\t\t\tRoi XROI = new ShapeRoi(Nshape);\n\t\t\t\tOL.add(XROI);\n\t\t\t}\n\t\t}\n\t}", "public void med2() {\n DrawingPanel win = new DrawingPanel(WIDTH, HEIGHT);\n java.awt.Graphics g = win.getGraphics();\n win.setTitle(\"Med. 2\");\n win.setLocation(600, 10);\n //This is as far as I could get in the 30 minutes\n //I had after work. I usually do all the work for \n //this class on the weekend.\n }", "@Override\n\tpublic void draw3() {\n\n\t}", "public void uk(){\n stroke(1);\n //back guns\n fill(0);\n rect(73,192,4,15);\n rect(224,192,4,15);\n rect(71,207,8,15);\n rect(222,207,8,15);\n rect(66,207,3,15);\n rect(232,207,3,17);\n rect(122,109,4,15);\n rect(175,110,4,15);\n rect(121,120,6,15);\n rect(174,120,6,15);\n rect(116,124,3,15);\n rect(182,124,3,15);\n\n //wings--england\n fill(1,0,74);//dark blue\n beginShape();\n vertex(14,286);\n vertex(61,236);\n vertex(88,308);\n vertex(51,334);\n vertex(14,313);\n endShape(CLOSE);\n beginShape();\n vertex(286,287);\n vertex(286,312);\n vertex(247,335);\n vertex(212,309);\n vertex(238,238);\n endShape(CLOSE);\n\n noStroke();\n fill(255);\n rect(15,286,74,20);\n rect(212,284,74,20);\n rect(48,248,20,74);\n rect(233,248,20,74);\n quad(26,272,35,260,83,312,72,320);\n quad(262,260,272,272,229,312,220,318);\n quad(25,318,38,328,85,278,75,263);\n quad(264,324,280,316,228,262,214,274);\n\n fill(207,20,43);\n rect(51,248,15,74);\n rect(235,247,15,74);\n rect(15,289,74,15);\n rect(211,286,74,15);\n\n stroke(1);\n fill(0);//white\n beginShape();\n vertex(38,307);\n vertex(74,307);\n vertex(80,314);\n vertex(81,337);\n vertex(68,345);\n vertex(38,327);\n endShape(CLOSE);\n beginShape();\n vertex(219,316);\n vertex(226,308);\n vertex(262,308);\n vertex(262,326);\n vertex(231,345);\n vertex(219,336);\n endShape(CLOSE);\n\n fill(0,36,125);//red\n beginShape();\n vertex(96,191);\n vertex(61,230);\n vertex(60,269);\n vertex(96,312);\n vertex(101,300);\n vertex(100,247);\n vertex(112,232);\n vertex(132,232);\n vertex(131,186);\n endShape(CLOSE);\n beginShape();\n vertex(204,191);\n vertex(240,230);\n vertex(240,270);\n vertex(205,312);\n vertex(200,302);\n vertex(200,248);\n vertex(193,238);\n vertex(185,231);\n vertex(170,230);\n vertex(170,186);\n endShape(CLOSE);\n\n //gray\n fill(200);\n beginShape();\n vertex(70,217);\n vertex(74,220);\n vertex(81,210);\n vertex(85,213);\n vertex(75,227);\n vertex(72,229);\n vertex(71,231);\n vertex(73,233);\n vertex(73,268);\n vertex(71,272);\n vertex(76,277);\n vertex(82,274);\n vertex(89,283);\n vertex(90,297);\n vertex(66,272);\n vertex(65,235);\n vertex(68,229);\n vertex(62,228);\n endShape(CLOSE);\n beginShape();\n vertex(228,217);\n vertex(225,218);\n vertex(218,211);\n vertex(215,213);\n vertex(223,227);\n vertex(226,226);\n vertex(230,230);\n vertex(227,233);\n vertex(228,270);\n vertex(229,272);\n vertex(223,276);\n vertex(218,276);\n vertex(210,283);\n vertex(211,296);\n vertex(235,273);\n vertex(234,233);\n vertex(232,228);\n vertex(237,227);\n endShape(CLOSE);\n\n //guns\n //white\n fill(200);\n beginShape();\n vertex(121,301);\n vertex(98,313);\n vertex(102,336);\n vertex(119,342);\n vertex(139,336);\n vertex(141,313);\n endShape(CLOSE);//l\n beginShape();\n vertex(159,312);\n vertex(162,336);\n vertex(180,342);\n vertex(200,336);\n vertex(202,313);\n vertex(180,302);\n endShape(CLOSE);\n\n //black\n fill(0);\n rect(105,315,30,30);\n rect(166,315,30,30);\n quad(105,344,109,355,131,355,135,344);\n quad(166,344,170,355,192,355,196,344);\n\n fill(207,20,43);\n rect(103,253,33,62);//l\n rect(164,252,33,62);//r\n\n fill(200);\n bezier(103,252,107,230,132,230,136,252);//l\n bezier(164,252,169,230,192,230,197,252);//r\n rect(103,280,33,25);//l\n rect(164,280,33,25);//r\n fill(0,36,125);\n rect(104,319,33,26,3);//l\n rect(165,319,33,26,3);//r\n fill(200);\n rect(115,310,7,28,8);//l\n rect(178,310,7,28,8);//r\n\n fill(0,0,67);\n rect(105,284,10,15);\n rect(124,284,10,15);\n rect(167,285,10,15);\n rect(185,284,10,15);\n\n //body-wings\n\n fill(0,0,67);//blue\n bezier(107,154,101,162,98,169,98,187);\n bezier(191,153,199,164,202,172,203,187);\n quad(107,154,98,186,98,223,107,224);\n quad(191,153,203,186,202,223,192,223);\n fill(0,36,125);//red\n quad(134,112,108,147,107,239,132,230);\n quad(165,112,192,147,193,239,168,230);\n //black\n fill(0);\n quad(130,122,130,142,111,164,111,147);\n quad(169,122,188,147,188,165,169,144);\n //white\n fill(200);\n beginShape();\n vertex(131,154);\n vertex(129,202);\n vertex(118,202);\n vertex(112,181);\n vertex(110,179);\n vertex(110,171);\n endShape(CLOSE);\n beginShape();\n vertex(170,154);\n vertex(190,172);\n vertex(190,182);\n vertex(188,181);\n vertex(182,201);\n vertex(172,201);\n endShape(CLOSE);\n\n\n fill(0,36,125);\n quad(134,193,166,193,154,342,146,342);\n fill(192,0,11);\n quad(142,180,159,180,152,352,148,352);\n //white\n fill(200);\n ellipse(150,374,6,50);\n\n //head\n\n fill(1,1,75);\n ellipse(149.5f,72,33,25);\n ellipse(149.5f,94,30,170);\n fill(0);\n ellipse(149.5f,94,20,160);\n fill(154,155,84);\n ellipse(149.5f,94,17,77);\n strokeWeight(2);\n line(143,74,158,74);\n line(142,104,158,104);\n strokeWeight(1);\n fill(200);\n bezier(143,15,147,2,153,2,155.5f,15);\n}", "static void drawCellID() { // draws a cross at each cell centre\n\t\tfloat xc,yc;\n\t\t//GeneralPath path = new GeneralPath();\n\t\tif (currentStage[currentSlice-1]>1)\n\t\t{\n\t\t\tfor (int i=0;i<pop.N;i++)\n\t\t\t{\n\t\t\t\txc = (float) ( (Balloon)(pop.BallList.get(i)) ).x0;\n\t\t\t\tyc = (float) ( (Balloon)(pop.BallList.get(i)) ).y0;\n\t\t\t\tfloat arm = 5;\n\n\t\t\t\t// Label Cell number\n\t\t\t\tTextRoi TROI = new TextRoi((int)xc, (int)yc, (\"\"+i),new Font(\"SansSerif\", Font.BOLD, 12));\n\t\t\t\tTROI.setNonScalable(false);\n\t\t\t\tOL.add(TROI);\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void test78() throws Throwable {\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double((-1851.4229665529), (-1851.4229665529), (-1851.4229665529), (-1851.4229665529));\n rectangle2D_Double0.y = (-1851.4229665529);\n rectangle2D_Double0.setRect(0.0, (-216.554), 10.0, 0.0);\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n BasicStroke basicStroke0 = (BasicStroke)combinedDomainCategoryPlot0.getRangeGridlineStroke();\n }", "public void calling() {\n\t\tCircle tc = new Circle(new Coordinate(-73, 42), 0);\n\t\tif (PaintShapes.painting && logger.isDebugEnabled()) {\n\t\t\tPaintShapes.paint.color = PaintShapes.paint.redTranslucence;\n\t\t\tPaintShapes.paint.addCircle(tc);\n\t\t\tPaintShapes.paint.myRepaint();\n\t\t}\n\t\t\n//\t\tMap<Double, Coordinate>angle_coordinate=new HashMap<Double, Coordinate>();\n//\t\tLinkedList<double[]>coverangle=new LinkedList<double[]>();\n//\t\tMap<Double[], Coordinate[]>uncoverArc=new HashMap<Double[], Coordinate[]>();\n//\t\tdouble a1[]=new double[2];\n//\t\ta1[0]=80;\n//\t\ta1[1]=100;\n//\t\tangle_coordinate.put(a1[0], new Coordinate(1, 0));\n//\t\tangle_coordinate.put(a1[1], new Coordinate(0, 1));\n//\t\tcoverangle.add(a1);\n//\t\tdouble a2[]=new double[2];\n//\t\ta2[0]=0;\n//\t\ta2[1]=30;\n//\t\tangle_coordinate.put(a2[0], new Coordinate(2, 0));\n//\t\tangle_coordinate.put(a2[1], new Coordinate(0, 2));\n//\t\tcoverangle.add(a2);\n//\t\tdouble a3[]=new double[2];\n//\t\ta3[0]=330;\n//\t\ta3[1]=360;\n//\t\tangle_coordinate.put(a3[0], new Coordinate(3, 0));\n//\t\tangle_coordinate.put(a3[1], new Coordinate(7, 7));\n//\t\tcoverangle.add(a3);\n//\t\tdouble a4[]=new double[2];\n//\t\ta4[0]=20;\n//\t\ta4[1]=90;\n//\t\tangle_coordinate.put(a4[0], new Coordinate(4, 0));\n//\t\tangle_coordinate.put(a4[1], new Coordinate(0, 4));\n//\t\tcoverangle.add(a4);\n//\t\tdouble a5[]=new double[2];\n//\t\ta5[0]=180;\n//\t\ta5[1]=240;\n//\t\tangle_coordinate.put(a5[0], new Coordinate(5, 0));\n//\t\tangle_coordinate.put(a5[1], new Coordinate(0, 5));\n//\t\tcoverangle.add(a5);\n//\t\tdouble a6[]=new double[2];\n//\t\ta6[0]=270;\n//\t\ta6[1]=300;\n//\t\tangle_coordinate.put(a6[0], new Coordinate(6, 0));\n//\t\tangle_coordinate.put(a6[1], new Coordinate(0, 6));\n//\t\tcoverangle.add(a6);\n//\t\tdouble a7[]=new double[2];\n//\t\ta7[0]=360;\n//\t\ta7[1]=360;\n//\t\tangle_coordinate.put(a7[0], new Coordinate(7, 7));\n//\t\tangle_coordinate.put(a7[1], new Coordinate(7, 7));\n//\t\tcoverangle.add(a7);\n//\t\t// sort the cover arc\n//\t\tint minindex = 0;\n//\t\tfor (int j = 0; j < coverangle.size() - 1; j++) {\n//\t\t\tminindex = j;\n//\t\t\tfor (int k = j + 1; k < coverangle.size(); k++) {\n//\t\t\t\tif (coverangle.get(minindex)[0] > coverangle.get(k)[0]) {\n//\t\t\t\t\tminindex = k;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tdouble tem[] = new double[2];\n//\t\t\ttem = coverangle.get(j);\n//\t\t\tcoverangle.set(j, coverangle.get(minindex));\n//\t\t\tcoverangle.set(minindex, tem);\n//\t\t}\n//\t\tfor(int ii=0;ii<coverangle.size();ii++){\n//\t\t\tdouble aa[]=coverangle.get(ii);\n//\t\t\tSystem.out.println(aa[0]+\" \"+aa[1]);\n//\t\t}\n//\t\tSystem.out.println(\"----------------------------\");\n//\t\t// find the uncover arc\n//\t\tint startposition = 0;\n//\t\twhile (startposition < coverangle.size() - 1) {\n//\t\t\tdouble coverArc[] = coverangle.get(startposition);\n//\t\t\tboolean stop = false;\n//\t\t\tint m = 0;\n//\t\t\tfor (m = startposition + 1; m < coverangle.size() && !stop; m++) {\n//\t\t\t\tdouble bb[] = coverangle.get(m);\n//\t\t\t\tif (bb[0] <= coverArc[1]) {\n//\t\t\t\t\tcoverArc[0] = Math.min(coverArc[0], bb[0]);\n//\t\t\t\t\tcoverArc[1] = Math.max(coverArc[1], bb[1]);\n//\t\t\t\t} else {\n//\t\t\t\t\tCoordinate uncover[]=new Coordinate[2];\n//\t\t\t\t\t//record the consistant uncover angle\n//\t\t\t\t\tDouble[] uncoverA=new Double[2];\n//\t\t\t\t\tuncoverA[0]=coverArc[1];\n//\t\t\t\t\tuncoverA[1]=bb[0];\n//\t\t\t\t\tIterator<Map.Entry<Double, Coordinate>> entries = angle_coordinate\n//\t\t\t\t\t\t\t.entrySet().iterator();\n//\t\t\t\t\twhile (entries.hasNext()) {\n//\t\t\t\t\t\tMap.Entry<Double, Coordinate> entry = entries.next();\n//\t\t\t\t\t\tif (entry.getKey() == coverArc[1])\n//\t\t\t\t\t\t\tuncover[0] = entry.getValue();\n//\t\t\t\t\t\telse if (entry.getKey() == bb[0])\n//\t\t\t\t\t\t\tuncover[1] = entry.getValue();\n//\t\t\t\t\t}\n//\t\t\t\t\tuncoverArc.put(uncoverA, uncover);\n//\t\t\t\t\tstartposition = m;\n//\t\t\t\t\tstop = true;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tif(m==coverangle.size()){\n//\t\t\t\tstartposition=m;\n//\t\t\t}\n//\t\t}\n//\t\n//\t\tSystem.out.println(uncoverArc.entrySet().size());\n//\t\tint n=uncoverArc.entrySet().size();\n//\t\tint k=2;\n//\t\twhile(n>0){\n//\t\t\tIterator<Map.Entry<Double[],Coordinate[]>>it=uncoverArc.entrySet().iterator();\n//\t\t\tMap.Entry<Double[], Coordinate[]>newneighbor=it.next();\n//\t\t\tSystem.out.println(newneighbor.getKey()[0]+\" \"+newneighbor.getValue()[0]);\n//\t\t\tSystem.out.println(newneighbor.getKey()[1]+\" \"+newneighbor.getValue()[1]);\n//\t\t uncoverArc.remove(newneighbor.getKey());\n//\t\t \n//\t\tif(k==2){\n//\t\tDouble[] a8=new Double[2];\n//\t\ta8[0]=(double)450;\n//\t\ta8[1]=(double)500;\n//\t\tCoordinate a9[]=new Coordinate[2];\n//\t\ta9[0]=new Coordinate(9, 0);\n//\t\ta9[1]=new Coordinate(0, 9);\n//\t\tuncoverArc.put(a8, a9);\n//\t\tk++;\n//\t\t}\n//\t\tn=uncoverArc.entrySet().size();\n//\t\tSystem.out.println(\"new size=\"+uncoverArc.entrySet().size());\n//\t\t}\n//\t\t\t\n\t\t\t\n\t\t\n\t\t/***************new test*************************************/\n//\t\tCoordinate startPoint=new Coordinate(500, 500);\n//\t\tLinkedList<VQP>visitedcircle_Queue=new LinkedList<VQP>();\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(500, 500), 45));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(589, 540), 67));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(500, 550), 95));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(439, 560), 124));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(460, 478), 69));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(580, 580), 70));\n//\t\tIterator<VQP>testiterator=visitedcircle_Queue.iterator();\n//\t\twhile(testiterator.hasNext()){\n//\t\t\tVQP m1=testiterator.next();\n//\t\t\tCircle tm=new Circle(m1.getCoordinate(), m1.getRadius());\n//\t\t\tif (PaintShapes.painting && logger.isDebugEnabled()) {\n//\t\t\t\tPaintShapes.paint.color = PaintShapes.paint.redTranslucence;\n//\t\t\t\tPaintShapes.paint.addCircle(tm);\n//\t\t\t\tPaintShapes.paint.myRepaint();\n//\t\t\t}\n//\t\t\t\n//\t\t}\n//\t\tdouble coverradius=calculateIncircle(startPoint, visitedcircle_Queue);\n//\t\tCircle incircle=new Circle(startPoint, coverradius);\n//\t\tif (PaintShapes.painting && logger.isDebugEnabled()) {\n//\t\t\tPaintShapes.paint.color = PaintShapes.paint.blueTranslucence;\n//\t\t\tPaintShapes.paint.addCircle(incircle);\n//\t\t\tPaintShapes.paint.myRepaint();\n//\t\t}\n//\t\t/***************end test*************************************/\n\t\tEnvelope envelope = new Envelope(-79.76259, -71.777491,\n\t\t\t\t40.477399, 45.015865);\n\t\tdouble area=envelope.getArea();\n\t\tdouble density=57584/area;\n\t\tSystem.out.println(\"density=\"+density);\n\t\tSystem.out.println(\"end calling!\");\n\t}", "@Test\n public void test83() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n RingPlot ringPlot0 = new RingPlot();\n Color color0 = (Color)ringPlot0.getBaseSectionOutlinePaint();\n combinedDomainCategoryPlot0.setNoDataMessagePaint(color0);\n DefaultKeyedValuesDataset defaultKeyedValuesDataset0 = new DefaultKeyedValuesDataset();\n RingPlot ringPlot1 = new RingPlot((PieDataset) defaultKeyedValuesDataset0);\n StandardPieToolTipGenerator standardPieToolTipGenerator0 = new StandardPieToolTipGenerator(\"%c+@_45aZ\");\n ringPlot1.setToolTipGenerator(standardPieToolTipGenerator0);\n BasicStroke basicStroke0 = (BasicStroke)ringPlot1.getLabelLinkStroke();\n ringPlot1.zoom((-1302.45679683));\n combinedDomainCategoryPlot0.setRangeCrosshairStroke(basicStroke0);\n combinedDomainCategoryPlot0.clearDomainMarkers();\n LineRenderer3D lineRenderer3D0 = new LineRenderer3D();\n int int0 = combinedDomainCategoryPlot0.getIndexOf(lineRenderer3D0);\n NumberAxis numberAxis0 = new NumberAxis();\n Arc2D.Double arc2D_Double0 = new Arc2D.Double();\n numberAxis0.setLeftArrow(arc2D_Double0);\n // Undeclared exception!\n try { \n combinedDomainCategoryPlot0.setRangeAxis((-1), (ValueAxis) numberAxis0);\n } catch(IllegalArgumentException e) {\n //\n // Requires index >= 0.\n //\n assertThrownBy(\"org.jfree.chart.util.AbstractObjectList\", e);\n }\n }", "public void drawSelector(int x) {\n int currentTime = millis() / 100;\n noStroke();\n if (currentTime % 13 == 0) {\n fill(200, 200, 100, 30);\n }\n else if (currentTime % 13 == 1) {\n fill(200, 200, 100, 40);\n }\n else if (currentTime % 13 == 2) {\n fill(200, 200, 100, 50);\n }\n else if (currentTime % 13 == 3) {\n fill(200, 200, 100, 60);\n }\n else if (currentTime % 13 == 4) {\n fill(200, 200, 100, 70);\n }\n else if (currentTime % 13 == 5) {\n fill(200, 200, 100, 80);\n }\n else if (currentTime % 13 == 6) {\n fill(200, 200, 100, 90);\n }\n else if (currentTime % 13 == 7) {\n fill(200, 200, 100, 100);\n }\n else if (currentTime % 13 == 8) {\n fill(200, 200, 100, 110);\n }\n else if (currentTime % 13 == 9) {\n fill(200, 200, 100, 120);\n }\n else if (currentTime % 13 == 10) {\n fill(200, 200, 100, 130);\n }\n else if (currentTime % 13 == 11) {\n fill(200, 200, 100, 140);\n }\n else if (currentTime % 13 == 12) {\n fill(200, 200, 100, 150);\n }\n else {\n fill(255, 200, 100);\n }\n switch(x){\n case 1:\n beginShape();\n vertex(80, 330);\n vertex(50, 360);\n vertex(80, 350);\n vertex(110, 360);\n endShape();\n break;\n case 2:\n beginShape();\n vertex(370, 330);\n vertex(340, 360);\n vertex(370, 350);\n vertex(400, 360);\n endShape();\n break;\n case 3:\n beginShape();\n vertex(80, 600);\n vertex(50, 630);\n vertex(80, 620);\n vertex(110, 630);\n endShape();\n break;\n case 4:\n beginShape();\n vertex(370, 600);\n vertex(340, 630);\n vertex(370, 620);\n vertex(400, 630);\n endShape();\n break;\n }\n\n}", "@Override\r\n public void draw() {\n }", "public void polygone (Graphics g){\n\t}", "private void drawData(Graphics g, int radius, int xCenter, int yCenter)\r\n/* 77: */ {\r\n/* 78: 54 */ double angle = 6.283185307179586D / this.data.length;\r\n/* 79: 55 */ int[] x = new int[this.data.length];\r\n/* 80: 56 */ int[] y = new int[this.data.length];\r\n/* 81: 57 */ int[] dataX = new int[this.data.length];\r\n/* 82: 58 */ int[] dataY = new int[this.data.length];\r\n/* 83: 59 */ int[] contourX = new int[this.data.length];\r\n/* 84: 60 */ int[] contourY = new int[this.data.length];\r\n/* 85: 61 */ int ballRadius = radius * this.ballPercentage / 100;\r\n/* 86: 62 */ for (int i = 0; i < this.data.length; i++)\r\n/* 87: */ {\r\n/* 88: 63 */ double theta = i * angle;\r\n/* 89: 64 */ x[i] = ((int)(radius * Math.cos(theta)));\r\n/* 90: 65 */ y[i] = ((int)(radius * Math.sin(theta)));\r\n/* 91: 66 */ dataX[i] = ((int)(x[i] * this.data[i]));\r\n/* 92: 67 */ dataY[i] = ((int)(y[i] * this.data[i]));\r\n/* 93: 68 */ contourX[i] = (xCenter + dataX[i]);\r\n/* 94: 69 */ contourY[i] = (yCenter + dataY[i]);\r\n/* 95: */ }\r\n/* 96: 72 */ if (this.fillArea)\r\n/* 97: */ {\r\n/* 98: 73 */ Color handle = g.getColor();\r\n/* 99: 74 */ g.setColor(this.areaColor);\r\n/* 100: 75 */ g.fillPolygon(contourX, contourY, this.data.length);\r\n/* 101: 76 */ g.setColor(handle);\r\n/* 102: */ }\r\n/* 103: 79 */ for (int i = 0; i < this.data.length; i++) {\r\n/* 104: 80 */ g.drawLine(xCenter, yCenter, xCenter + x[i], yCenter + y[i]);\r\n/* 105: */ }\r\n/* 106: 83 */ if ((this.connectDots) || (this.fillArea)) {\r\n/* 107: 84 */ for (int i = 0; i < this.data.length; i++)\r\n/* 108: */ {\r\n/* 109: 85 */ int nextI = (i + 1) % this.data.length;\r\n/* 110: 86 */ g.drawLine(contourX[i], contourY[i], contourX[nextI], contourY[nextI]);\r\n/* 111: */ }\r\n/* 112: */ }\r\n/* 113: 90 */ for (int i = 0; i < this.data.length; i++)\r\n/* 114: */ {\r\n/* 115: 91 */ Color handle = g.getColor();\r\n/* 116: 92 */ g.setColor(this.ballColor);\r\n/* 117: 93 */ drawDataPoint(g, ballRadius, contourX[i], contourY[i]);\r\n/* 118: 94 */ g.setColor(handle);\r\n/* 119: */ }\r\n/* 120: */ }", "public void paintShapeOver(RMShapePainter aPntr)\n{\n if(getStrokeOnTop() && getStroke()!=null)\n getStroke().paint(aPntr, this);\n}", "public abstract void draw( );", "public static void main(String[] args) {\n MyImageVector.Double img = new MyImageVector.Double(new Loader().loadSVGDocument(\"D:\\\\sample_images_PA\\\\trash_test_mem\\\\images_de_test_pr_figure_assistant\\\\test_scaling_SVG.svg\"));\n //MyImage2D img = new MyImage2D.Double(0, 0, \"D:\\\\sample_images_PA\\\\trash_test_mem\\\\mini\\\\focused_Series010.png\");\n img.addAssociatedObject(new MyRectangle2D.Double(10, 10, 128, 256));\n img.addAssociatedObject(new MyRectangle2D.Double(200, 20, 256, 256));\n img.addAssociatedObject(new MyRectangle2D.Double(100, 10, 256, 128));\n MyPoint2D.Double text = new MyPoint2D.Double(220, 220);\n text.setText(new ColoredTextPaneSerializable(new StyledDoc2Html().reparse(\"<i>test<i>\"), \"\"));\n img.addAssociatedObject(text);\n CheckLineArts iopane = new CheckLineArts(img, 1.5f, true);\n if (!iopane.noError) {\n int result = JOptionPane.showOptionDialog(null, new Object[]{iopane}, \"Check stroke width of line arts\", JOptionPane.CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE, null, new String[]{\"Accept automated solution\", \"Ignore\"}, null);\n if (result == JOptionPane.OK_OPTION) {\n //--> replace objects with copy\n Object strokeData = iopane.getModifiedStrokeData();\n if (strokeData instanceof ArrayList) {\n img.setAssociatedObjects(((ArrayList<Object>) strokeData));\n// for (Object string : img.getAssociatedObjects()) {\n// if (string instanceof PARoi) {\n// System.out.println(((PARoi) string).getStrokeSize());\n// }\n// }\n } else if (strokeData instanceof String) {\n ((MyImageVector) img).setSvg_content_serializable((String) strokeData);\n ((MyImageVector) img).reloadDocFromString();\n }\n }\n }\n System.exit(0);\n }", "public void paint(Graphics graphics)\r\n/* 30: */ {\r\n/* 31:27 */ Graphics2D g = (Graphics2D)graphics;\r\n/* 32:28 */ int height = getHeight();\r\n/* 33:29 */ int width = getWidth();\r\n/* 34: */ }", "@Override\n\tpublic void draw(Graphics2D g) {\n\t\t\n\t}", "static void drawPop(){\n\t\tif (currentStage[currentSlice-1]>3)\n\t\t{\n\t\t\tfloat x1,y1;\n\t\t\tint N = pop.N;\n\n\t\t\tfor (int i=0;i<N;i++)\n\t\t\t{\n\t\t\t\tBalloon bal;\n\t\t\t\tbal = (Balloon)(pop.BallList.get(i));\n\t\t\t\tint n = bal.XX.length;\n\n\t\t\t\t// filtering (for testing purposes)\n\t\t\t\tboolean isToDraw = true;\n\t\t\t\tBalloon B0 = ((Balloon)(pop.BallList.get(i)));\n\t\t\t\tB0.mass_geometry();\n\t\t\t\tif (pop.contacts != null)\n\t\t\t\t{\n\t\t\t\t\tfor (int k=0;k<B0.n0;k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (pop.contacts[i][k] == -1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisToDraw = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// draw\n\t\t\t\tshape.setWindingRule(0);\n\t\t\t\tif (isToDraw)\n\t\t\t\t{\n\t\t\t\t\tPolygonRoi Proi = B0.Proi;\n\t\t\t\t\tProi.setStrokeColor(Color.red);\n\t\t\t\t Proi.setStrokeWidth(3);\n\t\t\t\t OL.add(Proi);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void draw() {\n super.draw(); \n double radius = (this.getLevel() * 0.0001 + 0.025) * 2.5e10;\n double x = this.getR().cartesian(0) - Math.cos(rot) * radius;\n double y = this.getR().cartesian(1) - Math.sin(rot) * radius;\n StdDraw.setPenRadius(0.01);\n StdDraw.setPenColor(StdDraw.RED);\n StdDraw.point(x, y);\n \n }", "@Override\n public void draw()\n {\n }", "@Override\n\tprotected void outlineShape(Graphics graphics) {\n\t}", "@Test\n public void test73() throws Throwable {\n ExtendedCategoryAxis extendedCategoryAxis0 = new ExtendedCategoryAxis(\"jhpWb\\\"F\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) extendedCategoryAxis0);\n ExtendedCategoryAxis extendedCategoryAxis1 = (ExtendedCategoryAxis)combinedDomainCategoryPlot0.getDomainAxisForDataset(777);\n List list0 = combinedDomainCategoryPlot0.getCategories();\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo();\n rectangle2D_Double0.setFrameFromDiagonal(4364.40135, 0.0, (double) 777, (double) 777);\n PlotRenderingInfo plotRenderingInfo0 = new PlotRenderingInfo(chartRenderingInfo0);\n Rectangle2D.Double rectangle2D_Double1 = (Rectangle2D.Double)plotRenderingInfo0.getDataArea();\n rectangle2D_Double0.setRect((Rectangle2D) rectangle2D_Double1);\n RectangleEdge rectangleEdge0 = combinedDomainCategoryPlot0.getDomainAxisEdge();\n }", "public void strength1(float x, float y){\n noStroke();\n fill(80);\n rect(x+7,y,66,6);\n bezier(x+7,y,x,y+1,x,y+5,x+7,y+6);\n bezier(x+73,y,x+80,y+1,x+80,y+5,x+73,y+6);\n rect(x+7,y+1,13,3);//1st blue ba\n bezier(x+7,y+1,x+1,y+2.5f,x+1,y+3.5f,x+7,y+4);\n}", "@Override\n\tpublic void redraw() {\n\t\t\n\t}", "public void draw(Graphics2D g2, GregorianCalendar calendar);", "public static void paint(Graphics2D g) {\n Shape shape = null;\n Paint paint = null;\n Stroke stroke = null;\n Area clip = null;\n \n float origAlpha = 1.0f;\n Composite origComposite = g.getComposite();\n if (origComposite instanceof AlphaComposite) {\n AlphaComposite origAlphaComposite = \n (AlphaComposite)origComposite;\n if (origAlphaComposite.getRule() == AlphaComposite.SRC_OVER) {\n origAlpha = origAlphaComposite.getAlpha();\n }\n }\n \n\t Shape clip_ = g.getClip();\nAffineTransform defaultTransform_ = g.getTransform();\n// is CompositeGraphicsNode\nfloat alpha__0 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0 = g.getClip();\nAffineTransform defaultTransform__0 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nclip = new Area(g.getClip());\nclip.intersect(new Area(new Rectangle2D.Double(0.0,0.0,48.0,48.0)));\ng.setClip(clip);\n// _0 is CompositeGraphicsNode\nfloat alpha__0_0 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0 = g.getClip();\nAffineTransform defaultTransform__0_0 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0 is CompositeGraphicsNode\nfloat alpha__0_0_0 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0 = g.getClip();\nAffineTransform defaultTransform__0_0_0 = g.getTransform();\ng.transform(new AffineTransform(0.023640267550945282f, 0.0f, 0.0f, 0.022995369508862495f, 45.02649688720703f, 39.46533203125f));\n// _0_0_0 is CompositeGraphicsNode\nfloat alpha__0_0_0_0 = origAlpha;\norigAlpha = origAlpha * 0.40206185f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0_0 = g.getClip();\nAffineTransform defaultTransform__0_0_0_0 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_0_0 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(302.8571472167969, 366.64788818359375), new Point2D.Double(302.8571472167969, 609.5050659179688), new float[] {0.0f,0.5f,1.0f}, new Color[] {new Color(0, 0, 0, 0),new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(2.7743890285491943f, 0.0f, 0.0f, 1.9697060585021973f, -1892.178955078125f, -872.8853759765625f));\nshape = new Rectangle2D.Double(-1559.2523193359375, -150.6968536376953, 1339.633544921875, 478.357177734375);\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_0_0;\ng.setTransform(defaultTransform__0_0_0_0);\ng.setClip(clip__0_0_0_0);\nfloat alpha__0_0_0_1 = origAlpha;\norigAlpha = origAlpha * 0.40206185f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0_1 = g.getClip();\nAffineTransform defaultTransform__0_0_0_1 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_0_1 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(605.7142944335938, 486.64788818359375), 117.14286f, new Point2D.Double(605.7142944335938, 486.64788818359375), new float[] {0.0f,1.0f}, new Color[] {new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(2.7743890285491943f, 0.0f, 0.0f, 1.9697060585021973f, -1891.633056640625f, -872.8853759765625f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(-219.61876, -150.68037);\n((GeneralPath)shape).curveTo(-219.61876, -150.68037, -219.61876, 327.65042, -219.61876, 327.65042);\n((GeneralPath)shape).curveTo(-76.74459, 328.55087, 125.78146, 220.48074, 125.78138, 88.45424);\n((GeneralPath)shape).curveTo(125.78138, -43.572304, -33.655437, -150.68036, -219.61876, -150.68037);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_0_1;\ng.setTransform(defaultTransform__0_0_0_1);\ng.setClip(clip__0_0_0_1);\nfloat alpha__0_0_0_2 = origAlpha;\norigAlpha = origAlpha * 0.40206185f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0_2 = g.getClip();\nAffineTransform defaultTransform__0_0_0_2 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_0_2 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(605.7142944335938, 486.64788818359375), 117.14286f, new Point2D.Double(605.7142944335938, 486.64788818359375), new float[] {0.0f,1.0f}, new Color[] {new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(-2.7743890285491943f, 0.0f, 0.0f, 1.9697060585021973f, 112.76229858398438f, -872.8853759765625f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(-1559.2523, -150.68037);\n((GeneralPath)shape).curveTo(-1559.2523, -150.68037, -1559.2523, 327.65042, -1559.2523, 327.65042);\n((GeneralPath)shape).curveTo(-1702.1265, 328.55087, -1904.6525, 220.48074, -1904.6525, 88.45424);\n((GeneralPath)shape).curveTo(-1904.6525, -43.572304, -1745.2157, -150.68036, -1559.2523, -150.68037);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_0_2;\ng.setTransform(defaultTransform__0_0_0_2);\ng.setClip(clip__0_0_0_2);\norigAlpha = alpha__0_0_0;\ng.setTransform(defaultTransform__0_0_0);\ng.setClip(clip__0_0_0);\nfloat alpha__0_0_1 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_1 = g.getClip();\nAffineTransform defaultTransform__0_0_1 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_1 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(25.0, 4.311681747436523), 19.996933f, new Point2D.Double(25.0, 4.311681747436523), new float[] {0.0f,0.25f,0.68f,1.0f}, new Color[] {new Color(143, 179, 217, 255),new Color(114, 159, 207, 255),new Color(52, 101, 164, 255),new Color(32, 74, 135, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(0.01216483861207962f, 2.585073947906494f, -3.2504982948303223f, 0.015296213328838348f, 38.710994720458984f, -60.38692092895508f));\nshape = new RoundRectangle2D.Double(4.499479293823242, 4.50103759765625, 38.993865966796875, 39.00564193725586, 4.95554780960083, 4.980924129486084);\ng.setPaint(paint);\ng.fill(shape);\npaint = new LinearGradientPaint(new Point2D.Double(20.0, 4.0), new Point2D.Double(20.0, 44.0), new float[] {0.0f,1.0f}, new Color[] {new Color(52, 101, 164, 255),new Color(32, 74, 135, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nstroke = new BasicStroke(1.0f,0,1,4.0f,null,0.0f);\nshape = new RoundRectangle2D.Double(4.499479293823242, 4.50103759765625, 38.993865966796875, 39.00564193725586, 4.95554780960083, 4.980924129486084);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_1;\ng.setTransform(defaultTransform__0_0_1);\ng.setClip(clip__0_0_1);\nfloat alpha__0_0_2 = origAlpha;\norigAlpha = origAlpha * 0.5f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_2 = g.getClip();\nAffineTransform defaultTransform__0_0_2 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_2 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(25.0, -0.05076269432902336), new Point2D.Double(25.285715103149414, 57.71428680419922), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nstroke = new BasicStroke(1.0f,0,1,4.0f,null,0.0f);\nshape = new RoundRectangle2D.Double(5.5017547607421875, 5.489577293395996, 36.996883392333984, 37.007320404052734, 3.013584613800049, 2.9943172931671143);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_2;\ng.setTransform(defaultTransform__0_0_2);\ng.setClip(clip__0_0_2);\nfloat alpha__0_0_3 = origAlpha;\norigAlpha = origAlpha * 0.5f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_3 = g.getClip();\nAffineTransform defaultTransform__0_0_3 = g.getTransform();\ng.transform(new AffineTransform(0.19086800515651703f, 0.1612599939107895f, 0.1612599939107895f, -0.19086800515651703f, 7.2809157371521f, 24.306129455566406f));\n// _0_0_3 is CompositeGraphicsNode\norigAlpha = alpha__0_0_3;\ng.setTransform(defaultTransform__0_0_3);\ng.setClip(clip__0_0_3);\nfloat alpha__0_0_4 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_4 = g.getClip();\nAffineTransform defaultTransform__0_0_4 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_4 is ShapeNode\norigAlpha = alpha__0_0_4;\ng.setTransform(defaultTransform__0_0_4);\ng.setClip(clip__0_0_4);\nfloat alpha__0_0_5 = origAlpha;\norigAlpha = origAlpha * 0.44444442f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_5 = g.getClip();\nAffineTransform defaultTransform__0_0_5 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_5 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(31.0, 12.875), new Point2D.Double(3.2591991424560547, 24.893844604492188), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.535999596118927f, 5.498996734619141f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(0.91099966, 27.748999);\n((GeneralPath)shape).curveTo(28.15259, 29.47655, 10.984791, 13.750064, 32.036, 13.248998);\n((GeneralPath)shape).lineTo(37.325214, 24.364037);\n((GeneralPath)shape).curveTo(27.718748, 19.884726, 21.14768, 42.897034, 0.78599966, 29.373999);\n((GeneralPath)shape).lineTo(0.91099966, 27.748999);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_5;\ng.setTransform(defaultTransform__0_0_5);\ng.setClip(clip__0_0_5);\nfloat alpha__0_0_6 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_6 = g.getClip();\nAffineTransform defaultTransform__0_0_6 = g.getTransform();\ng.transform(new AffineTransform(0.665929913520813f, 0.0f, 0.0f, 0.665929913520813f, 11.393279075622559f, 4.907034873962402f));\n// _0_0_6 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(32.5, 16.5625), 14.4375f, new Point2D.Double(32.5, 16.5625), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(46.9375, 16.5625);\n((GeneralPath)shape).curveTo(46.9375, 24.536112, 40.47361, 31.0, 32.5, 31.0);\n((GeneralPath)shape).curveTo(24.526388, 31.0, 18.0625, 24.536112, 18.0625, 16.5625);\n((GeneralPath)shape).curveTo(18.0625, 8.588889, 24.526388, 2.125, 32.5, 2.125);\n((GeneralPath)shape).curveTo(40.47361, 2.125, 46.9375, 8.588889, 46.9375, 16.5625);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_6;\ng.setTransform(defaultTransform__0_0_6);\ng.setClip(clip__0_0_6);\nfloat alpha__0_0_7 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_7 = g.getClip();\nAffineTransform defaultTransform__0_0_7 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_7 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(39.0, 26.125), new Point2D.Double(36.375, 20.4375), new float[] {0.0f,1.0f}, new Color[] {new Color(27, 31, 32, 255),new Color(186, 189, 182, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.535999596118927f, -1.5010031461715698f));\nstroke = new BasicStroke(4.0f,1,0,4.0f,null,0.0f);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(33.036, 14.998998);\n((GeneralPath)shape).lineTo(46.036, 43.999);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_7;\ng.setTransform(defaultTransform__0_0_7);\ng.setClip(clip__0_0_7);\nfloat alpha__0_0_8 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_8 = g.getClip();\nAffineTransform defaultTransform__0_0_8 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_8 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(33.036, 14.998998);\n((GeneralPath)shape).lineTo(46.036, 43.999);\ng.setPaint(paint);\ng.fill(shape);\npaint = new LinearGradientPaint(new Point2D.Double(42.90625, 42.21875), new Point2D.Double(44.8125, 41.40625), new float[] {0.0f,0.64444447f,1.0f}, new Color[] {new Color(46, 52, 54, 255),new Color(136, 138, 133, 255),new Color(85, 87, 83, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.535999596118927f, -1.5010031461715698f));\nstroke = new BasicStroke(2.0f,1,0,4.0f,null,0.0f);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(33.036, 14.998998);\n((GeneralPath)shape).lineTo(46.036, 43.999);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_8;\ng.setTransform(defaultTransform__0_0_8);\ng.setClip(clip__0_0_8);\nfloat alpha__0_0_9 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_9 = g.getClip();\nAffineTransform defaultTransform__0_0_9 = g.getTransform();\ng.transform(new AffineTransform(1.272613286972046f, 0.0f, 0.0f, 1.272613286972046f, 12.072080612182617f, -6.673644065856934f));\n// _0_0_9 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(15.5, 24.75);\n((GeneralPath)shape).lineTo(11.728554, 24.19539);\n((GeneralPath)shape).lineTo(9.451035, 27.075687);\n((GeneralPath)shape).lineTo(8.813057, 23.317446);\n((GeneralPath)shape).lineTo(5.3699408, 22.041456);\n((GeneralPath)shape).lineTo(8.747095, 20.273342);\n((GeneralPath)shape).lineTo(8.896652, 16.604443);\n((GeneralPath)shape).lineTo(11.621825, 19.26993);\n((GeneralPath)shape).lineTo(15.157373, 18.278416);\n((GeneralPath)shape).lineTo(13.464468, 21.69389);\n((GeneralPath)shape).lineTo(15.5, 24.75);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_9;\ng.setTransform(defaultTransform__0_0_9);\ng.setClip(clip__0_0_9);\nfloat alpha__0_0_10 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_10 = g.getClip();\nAffineTransform defaultTransform__0_0_10 = g.getTransform();\ng.transform(new AffineTransform(0.5838837027549744f, 0.5838837027549744f, -0.5838837027549744f, 0.5838837027549744f, 24.48128318786621f, 9.477374076843262f));\n// _0_0_10 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(15.5, 24.75);\n((GeneralPath)shape).lineTo(11.728554, 24.19539);\n((GeneralPath)shape).lineTo(9.451035, 27.075687);\n((GeneralPath)shape).lineTo(8.813057, 23.317446);\n((GeneralPath)shape).lineTo(5.3699408, 22.041456);\n((GeneralPath)shape).lineTo(8.747095, 20.273342);\n((GeneralPath)shape).lineTo(8.896652, 16.604443);\n((GeneralPath)shape).lineTo(11.621825, 19.26993);\n((GeneralPath)shape).lineTo(15.157373, 18.278416);\n((GeneralPath)shape).lineTo(13.464468, 21.69389);\n((GeneralPath)shape).lineTo(15.5, 24.75);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_10;\ng.setTransform(defaultTransform__0_0_10);\ng.setClip(clip__0_0_10);\nfloat alpha__0_0_11 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_11 = g.getClip();\nAffineTransform defaultTransform__0_0_11 = g.getTransform();\ng.transform(new AffineTransform(0.5791025757789612f, 0.12860369682312012f, -0.12860369682312012f, 0.5791025757789612f, 5.244583606719971f, 16.59849739074707f));\n// _0_0_11 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(15.5, 24.75);\n((GeneralPath)shape).lineTo(11.728554, 24.19539);\n((GeneralPath)shape).lineTo(9.451035, 27.075687);\n((GeneralPath)shape).lineTo(8.813057, 23.317446);\n((GeneralPath)shape).lineTo(5.3699408, 22.041456);\n((GeneralPath)shape).lineTo(8.747095, 20.273342);\n((GeneralPath)shape).lineTo(8.896652, 16.604443);\n((GeneralPath)shape).lineTo(11.621825, 19.26993);\n((GeneralPath)shape).lineTo(15.157373, 18.278416);\n((GeneralPath)shape).lineTo(13.464468, 21.69389);\n((GeneralPath)shape).lineTo(15.5, 24.75);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_11;\ng.setTransform(defaultTransform__0_0_11);\ng.setClip(clip__0_0_11);\nfloat alpha__0_0_12 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_12 = g.getClip();\nAffineTransform defaultTransform__0_0_12 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.005668648984283209f, 1.9989968538284302f));\n// _0_0_12 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(31.994285583496094, 16.859249114990234), new Point2D.Double(37.7237434387207, 16.859249114990234), new float[] {0.0f,0.7888889f,1.0f}, new Color[] {new Color(238, 238, 236, 255),new Color(255, 255, 255, 255),new Color(238, 238, 236, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(32.9375, 11.9375);\n((GeneralPath)shape).curveTo(32.87939, 11.943775, 32.84168, 11.954412, 32.78125, 11.96875);\n((GeneralPath)shape).curveTo(32.480507, 12.044301, 32.22415, 12.283065, 32.09375, 12.5625);\n((GeneralPath)shape).curveTo(31.963346, 12.841935, 31.958935, 13.12817, 32.09375, 13.40625);\n((GeneralPath)shape).lineTo(35.84375, 21.75);\n((GeneralPath)shape).curveTo(35.837093, 21.759354, 35.837093, 21.771896, 35.84375, 21.78125);\n((GeneralPath)shape).curveTo(35.853104, 21.787907, 35.865646, 21.787907, 35.875, 21.78125);\n((GeneralPath)shape).curveTo(35.884354, 21.787907, 35.896896, 21.787907, 35.90625, 21.78125);\n((GeneralPath)shape).curveTo(35.912907, 21.771896, 35.912907, 21.759354, 35.90625, 21.75);\n((GeneralPath)shape).curveTo(36.14071, 21.344227, 36.483208, 21.082874, 36.9375, 20.96875);\n((GeneralPath)shape).curveTo(37.18631, 20.909716, 37.44822, 20.917711, 37.6875, 20.96875);\n((GeneralPath)shape).curveTo(37.696854, 20.975407, 37.709396, 20.975407, 37.71875, 20.96875);\n((GeneralPath)shape).curveTo(37.725407, 20.959396, 37.725407, 20.946854, 37.71875, 20.9375);\n((GeneralPath)shape).lineTo(33.96875, 12.59375);\n((GeneralPath)shape).curveTo(33.824844, 12.242701, 33.48375, 11.983006, 33.125, 11.9375);\n((GeneralPath)shape).curveTo(33.06451, 11.929827, 32.99561, 11.931225, 32.9375, 11.9375);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_12;\ng.setTransform(defaultTransform__0_0_12);\ng.setClip(clip__0_0_12);\norigAlpha = alpha__0_0;\ng.setTransform(defaultTransform__0_0);\ng.setClip(clip__0_0);\norigAlpha = alpha__0;\ng.setTransform(defaultTransform__0);\ng.setClip(clip__0);\ng.setTransform(defaultTransform_);\ng.setClip(clip_);\n\n\t}", "@Override\n public void draw() {\n }", "public static void main(String[] args) {\n\n\t\t\n\t\t\n\t\t\n\t\tRect r = new Rect();\n\t\t\n\t\n\t\tshape p = r;\n\t\n\t\n\t System.out.println(p.name);\n\t\n\t\n\t\n\t}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "@Override\n void drawShape(BufferedImage image, int color) {\n Point diem2 = new Point(diem.getX()+canh, diem.getY());\n Point td = new Point(diem.getX()+canh/2, diem.getY());\n \n \n Point dinh = new Point(td.getX(), td.getY()+h);\n \n Point diem_thuc = Point.convert(diem);\n Point diem_2_thuc = Point.convert(diem2);\n Point dinh_thuc = Point.convert(dinh);\n Point td_thuc = Point.convert(td);\n \n Line canh1=new Line(dinh_thuc, diem_thuc);\n canh1.drawShape(image, ColorConstant.BLACK_RGB);\n Line canh2=new Line(diem_thuc, diem_2_thuc);\n canh2.drawShape(image, ColorConstant.BLACK_RGB);\n Line canh3=new Line(diem_2_thuc, dinh_thuc);\n canh3.drawShape(image, ColorConstant.BLACK_RGB);\n int k =5;\n for(int i =canh1.getPoints().size()-5;i>=5;i--){\n \n for(int j = 0;j<canh*5/2-5;j++){\n \n Point ve = new Point(td_thuc.getX()-canh*5/2+j+5, td_thuc.getY()-k);\n if(ve.getX()>canh1.getPoints().get(i).getX()+5){\n Point.putPoint(ve, image, color);\n }\n }\n k++;\n }\n k=5;\n for(int i =canh3.getPoints().size()-5;i>=5;i--){\n \n for(int j = 0;j<canh*5/2-5;j++){\n Point ve = null;\n \n ve = new Point(td_thuc.getX()+canh*5/2-j-5, td_thuc.getY()-k);\n if(ve.getX()<canh3.getPoints().get(i).getX()-5){\n Point.putPoint(ve, image, color);\n }\n }\n k++;\n }\n }", "public void draw();", "public void draw();", "public void draw();", "void drawShape(Shape s) {\n }", "public String draw() {\n\t\treturn null;\r\n\t}", "void drawMancalaShape(Graphics g, int x, int y, int width, int height, int stoneNum, String pitLabel);", "protected void plotScatterDiagram(){\n double xmax = a + 5. * gamma;\r\n double xmin = a - 5. * gamma;\r\n DatanGraphics.openWorkstation(getClass().getName(), \"\");\r\n DatanGraphics.setFormat(0., 0.);\r\n DatanGraphics.setWindowInComputingCoordinates(xmin, xmax, 0., .5);\r\n DatanGraphics.setViewportInWorldCoordinates(-.15, .9, .16, .86);\r\n DatanGraphics.setWindowInWorldCoordinates(-.414, 1., 0., 1.);\r\n DatanGraphics.setBigClippingWindow();\r\n DatanGraphics.chooseColor(2);\r\n DatanGraphics.drawFrame();\r\n DatanGraphics.drawScaleX(\"y\");\r\n DatanGraphics.drawScaleY(\"f(y)\");\r\n DatanGraphics.drawBoundary();\r\n double xpl[] = new double[2];\r\n double ypl[] = new double[2];\r\n// plot scatter diagram\r\n DatanGraphics.chooseColor(1);\r\n for(int i = 0; i < y.length; i++){\r\n xpl[0] = y[i];\r\n xpl[1] = y[i];\r\n ypl[0] = 0.;\r\n ypl[0] = .1;\r\n DatanGraphics.drawPolyline(xpl, ypl); \r\n }\r\n// draw Breit-Wigner corresponding to solution\r\n int npl = 100;\r\n xpl = new double[npl];\r\n ypl = new double[npl];\r\n double dpl = (xmax - xmin) / (double)(npl - 1);\r\n for(int i = 0; i < npl; i++){\r\n xpl[i] = xmin + (double)i * dpl;\r\n ypl[i] = breitWigner(xpl[i], x.getElement(0), x.getElement(1));\r\n }\r\n DatanGraphics.chooseColor(5);\r\n DatanGraphics.drawPolyline(xpl, ypl);\r\n// draw caption\r\n String sn = \"N = \" + nny;\r\n\t numForm.setMaximumFractionDigits(3);\r\n \t numForm.setMinimumFractionDigits(3);\r\n String sx1 = \", x_1# = \" + numForm.format(x.getElement(0));\r\n String sx2 = \", x_2# = \" + numForm.format(x.getElement(1));\r\n String sdx1 = \", &D@x_1# = \" + numForm.format(Math.sqrt(cx.getElement(0,0)));\r\n String sdx2 = \", &D@x_2# = \" + numForm.format(Math.sqrt(cx.getElement(1,1)));\r\n caption = sn + sx1 + sx2 + sdx1 + sdx2;\r\n DatanGraphics.setBigClippingWindow();\r\n DatanGraphics.chooseColor(2);\r\n DatanGraphics.drawCaption(1., caption);\r\n DatanGraphics.closeWorkstation();\r\n\r\n }", "@Override\r\n public void draw()\r\n {\n\r\n }", "@Override\n public Shape getCelkoveHranice() {\n return new Rectangle2D.Double(super.getX() + 22, super.getY() + 45, 45, 45);\n }", "public static void main(String arg[]) {\n Shape s ;\n s= new Shape() ;\n s.draw();\n s= new Rectange();\n s.draw();\n}", "void find_it () {\n xt = 210; yt = 105; fact = 50.0;\n if (viewflg != VIEW_FORCES) zoom_slider_pos_y = 50;\n current_part.spanfac = (int)(2.0*fact*current_part.aspect_rat*.3535);\n xt1 = xt + current_part.spanfac;\n yt1 = yt - current_part.spanfac;\n xt2 = xt - current_part.spanfac;\n yt2 = yt + current_part.spanfac;\n \n }", "public interface DrawingObject {\n\t// interface: blueprints but doesn't tell you how to do it\n\n\t/**\n\t * Draw the object.\n\t * \n\t * @param g\n\t */\n\tpublic void draw(Graphics g);\n\n\t/**\n\t * Called to start drawing a new object.\n\t * \n\t * @param p\n\t */\n\tpublic void start(Point p);\n\n\t/**\n\t * Called repeatedly while dragging a new object out to size (typically\n\t * called from within a mouseDragged() ).\n\t * \n\t * @param p\n\t */\n\tpublic void drag(Point p);\n\n\t/**\n\t * Called to move an object. Often called repeatedly inside a\n\t * mouseDragged().\n\t * \n\t * @param p\n\t */\n\tpublic void move(Point p);\n\n\t/**\n\t * Does the math to determine the number/position of points of star\n\t */\n\tpublic void doMath();\n\n\t/**\n\t * Set the bounding rectangle.\n\t * \n\t * @param b\n\t */\n\tpublic void setBounds(Rectangle b);\n\n\t/**\n\t * Determines if the point clicked is contained by the object.\n\t * \n\t * @param p\n\t * @return\n\t */\n\tpublic boolean contains(Point p);\n\n\t/**\n\t * Called to set the color of a shape\n\t */\n\tpublic void setColor(Color c);\n\n\t/**\n\t * Called to get the color of a shape\n\t * \n\t * @return\n\t */\n\tpublic Color getColor();\n}", "@Test\r\n public void testDrawingDoubler() {\r\n System.out.println(\"testDrawingDoubler\");\r\n ad = new AreaDoubler();\r\n d.accept(ad);\r\n \r\n Drawing dd = (Drawing)ad.getFigureDoubled();\r\n Circle dd_c = (Circle) dd.getComponents().get(0);\r\n Rectangle dd_r = (Rectangle) dd.getComponents().get(1);\r\n \r\n \r\n Circle c_doubled = (Circle)d.getComponents().get(0);\r\n double c_radius_doubled = c_doubled.getRadius()* Math.sqrt(2.0);\r\n \r\n assertEquals(c_radius_doubled, dd_c.getRadius(), 0.02);\r\n \r\n Rectangle r_doubled = (Rectangle)d.getComponents().get(1);\r\n double r_height_doubled = r_doubled.getHeight()* Math.sqrt(2.0);\r\n double r_width_doubled= r_doubled.getWidth()*Math.sqrt(2.0);\r\n \r\n assertEquals(r_height_doubled, dd_r.getHeight(), 0.02);\r\n assertEquals(r_width_doubled, dd_r.getWidth(), 0.02);\r\n \r\n }", "public void paint (Graphics g)\r\n {\n }", "void drawRegion (double b, double e) {\n begT = b; endT = e;\n drawStuff (img.getGraphics ());\n }", "abstract void draw();", "abstract void draw();", "public void paintComponent(Graphics g) {\r\n \tsuper.paintComponent(g);\r\n \t/*print the boat*/\r\n \tReadFile file = new ReadFile();\r\n \t\tfile.openFile(); \r\n \t\t/* Map include all the points of the boat*/\r\n \t\tMap <String,ArrayList<Point>> map = new HashMap<String,ArrayList<Point>>();\r\n \t\tmap = file.parseFile(); \r\n \t\tfor (String key : map.keySet()) {\r\n \t \tif (key.startsWith(\"line\"))\r\n \t \t{\r\n \t \t System.out.println(key + \" \" + map.get(key));\r\n \t \t\tint x1 = (int) map.get(key).get(0).getX();\r\n \t \t\t int y1 = (int) map.get(key).get(0).getY();\r\n \t \t\t int x2 = (int)map.get(key).get(1).getX();\r\n \t \t\t int y2 = (int)map.get(key).get(1).getY();\r\n \t \t\t drawLine(x1,y1,x2,y2,g);\t \t\t\r\n \t \t}\r\n \t \tif (key.startsWith(\"circle\"))\r\n \t \t{\r\n \t \t System.out.println(key + \" \" + map.get(key));\r\n \t \t\tint x1 = (int) map.get(key).get(0).getX();\r\n \t \t\t int y1 = (int) map.get(key).get(0).getY();\r\n \t \t\t int x2 = (int)map.get(key).get(1).getX();\r\n \t \t\t int y2 = (int)map.get(key).get(1).getY();\r\n \t \t\t drawCircle(x1,y1,x2,y2,g);\t \t\t\r\n \t \t}\r\n \t \tif (key.startsWith(\"curve\"))\r\n \t \t{\r\n \t \t System.out.println(key + \" \" + map.get(key));\r\n \t \t\tint x1 = (int) map.get(key).get(0).getX();\r\n \t \t\tint y1 = (int) map.get(key).get(0).getY();\r\n \t \t\tint x2 = (int)map.get(key).get(1).getX();\r\n \t \t\tint y2 = (int)map.get(key).get(1).getY();\r\n \t \t\tint x3 = (int)map.get(key).get(2).getX();\r\n\t \t\tint y3 = (int)map.get(key).get(2).getY();\r\n\t \t\tint x4 = (int)map.get(key).get(3).getX();\r\n \t \t\tint y4 = (int)map.get(key).get(3).getY();\r\n \t \t\tdrawCurve(x1,y1,x2,y2,x3,y3,x4,y4,200,g); \t \t} \t\t\r\n \t\t}\r\n \t\t\r\n \t\t\r\n \t\t\r\n \tfor (int i = 0; i < clicksforLine.size(); i++ )\r\n\t\t{\r\n \t\tg.drawRect((int)Math.round(clicksforLine.get(i).getX()),(int) Math.round(clicksforLine.get(i).getY()),2,2);\r\n\r\n\t\t}\r\n \tfor (int j = 0; j < clicksforCircle.size(); j++ )\r\n\t\t{\r\n \t\tg.drawRect((int)Math.round(clicksforCircle.get(j).getX()),(int) Math.round(clicksforCircle.get(j).getY()),2,2);\r\n\r\n\t\t}\r\n \tfor (int j = 0; j < clicksforPoly.size(); j++ )\r\n\t\t{\r\n \t\tg.drawRect((int)Math.round(clicksforPoly.get(j).getX()),(int) Math.round(clicksforPoly.get(j).getY()),2,2);\r\n\r\n\t\t}\r\n \tfor (int j = 0; j < clicksforCurve.size(); j++ )\r\n\t\t{\r\n \t\tg.drawRect((int)Math.round(clicksforCurve.get(j).getX()),(int) Math.round(clicksforCurve.get(j).getY()),2,2);\r\n\r\n\t\t}\r\n \r\n \t\r\n \t//check is the list of the shape LINE has at least 2 points to draw line\r\n \tif (clicksforLine.size() >= 2)\r\n {\r\n \tfor (int i=0; i < clicksforLine.size(); i+=2 )\r\n \t \t\t{\r\n \t\t int x1=0, y1=0, x2=0, y2=0;\r\n \t\t \t\tSystem.out.println(\"Line case\");\r\n \t\t\t x1 = (int) clicksforLine.get(i).getX();\r\n \t\t\t y1 = (int) clicksforLine.get(i).getY();\r\n \t\t\t x2 = (int) clicksforLine.get(i+1).getX();\r\n \t\t\t y2 = (int) clicksforLine.get(i+1).getY();\r\n \t\t\t drawLine(x1,y1,x2,y2,g);\r\n \t \t \t\t\r\n \t \t}\r\n }\r\n //check is the list of the shape CIRCLE has at least 2 points to draw circle\r\n if (clicksforCircle.size() >= 2)\r\n {\t\r\n \tfor (int i=0; i < clicksforCircle.size(); i+=2 )\r\n \t\t \t{\r\n \t\t int x1=0, y1=0, x2=0, y2=0;\r\n \t\t \t\tSystem.out.println(\"Line case\");\r\n \t\t\t x1 = (int) clicksforCircle.get(i).getX();\r\n \t\t\t y1 = (int) clicksforCircle.get(i).getY();\r\n \t\t\t x2 = (int) clicksforCircle.get(i+1).getX();\r\n \t\t\t y2 = (int) clicksforCircle.get(i+1).getY();\r\n \t\t\t drawCircle(x1,y1,x2,y2,g);\r\n \t \t \t\t\r\n \t\t \t}\r\n \t }\r\n //check is the list of the shape LINE has at least 2 points to draw line\r\n if (clicksforPoly.size() >= 2)\r\n \t {\r\n \t\t \tfor (int i=0; i < clicksforPoly.size(); i+=2 )\r\n \t\t \t{\r\n \t\t int x1=0, y1=0, x2=0, y2=0;\r\n \t\t \t\tSystem.out.println(\"Line case\");\r\n \t\t\t x1 = (int) clicksforPoly.get(i).getX();\r\n \t\t\t y1 = (int) clicksforPoly.get(i).getY();\r\n \t\t\t x2 = (int) clicksforPoly.get(i+1).getX();\r\n \t\t\t y2 = (int) clicksforPoly.get(i+1).getY();\r\n \t\t\t String text = MyWindow.input.getText();\r\n \t\t\t drawPolygon(x1,y1,x2,y2,Integer.parseInt(text),g);\r\n \t \t \t\t\r\n \t\t \t}\r\n \t }\r\n //check is the list of the shape CURVE has at least 2 points to draw curve\r\n if (clicksforCurve.size() >= 4)\r\n \t {\r\n \t\t \tfor (int i=0; i < clicksforCurve.size(); i+=4 )\r\n \t\t \t{\r\n \t int x1=0, y1=0, x2=0, y2=0, x3=0,y3=0,x4=0,y4=0;\r\n \t \t\tSystem.out.println(\"Line case\");\r\n \t\t x1 = (int) clicksforCurve.get(i).getX();\r\n \t\t y1 = (int) clicksforCurve.get(i).getY();\r\n \t\t x2 = (int) clicksforCurve.get(i+1).getX();\r\n \t\t y2 = (int) clicksforCurve.get(i+1).getY();\r\n \t\t x3 = (int) clicksforCurve.get(i+2).getX();\r\n \t\t y3 = (int) clicksforCurve.get(i+2).getY();\r\n \t\t x4 = (int) clicksforCurve.get(i+3).getX();\r\n \t\t y4 = (int) clicksforCurve.get(i+3).getY();\r\n \t\t String text = MyWindow.input.getText();\r\n \t\t drawCurve(x1,y1,x2,y2,x3,y3,x4,y4,Integer.parseInt(text),g);\r\n \t \t}\r\n \t }\r\n\t\r\n }", "public abstract PaintObject[][] separate(Rectangle _r);", "public void paint (Graphics g){\n \r\n }", "interface DrawingShape {\n\t\tboolean contains(Graphics2D g2, double x, double y);\n\t\tvoid draw(Graphics2D g2);\n\t\tRectangle2D getBounds(Graphics2D g2);\n\t}", "public void paintShape(RMShapePainter aPntr)\n{\n // If fill/stroke present, have them paint\n if(getFill()!=null)\n getFill().paint(aPntr, this);\n if(getStroke()!=null && !getStrokeOnTop())\n getStroke().paint(aPntr, this);\n}", "IShape getCurrentShape();", "public mapaSVG(int x, int y) {\n this.x = x;\n this.y = y;\n imprime();\n }", "@Override\r\n\tpublic void draw() {\n\t\tPoint p = this.getP();\r\n\t\tint start_point = p.getX();\r\n\t\tint end_point = p.getY();\r\n\t\t\r\n\t\tint width = this.getWidth();\r\n\t\tint height = this.getHeight();\r\n\t\t\r\n\t\tSystem.out.println(\"�l�p�`��`�� �_(\" + start_point +\",\"+ end_point + \")����Ƃ��āA��\"+ width +\"����\"+ height +\"�̎l�p�`\");\r\n\t}", "public void imprime() {\n mapa =\"<svg width='\" + x + \"' height='\" + y + \"'><g>\";\n }", "public void repaint (Graphics g){\r\n g.drawLine(10,10,150,150); // Draw a line from (10,10) to (150,150)\r\n \r\n g.setColor(Color.darkGray);\r\n g.fillRect( 0 , 0 , \r\n 4000 , 4000 ); \r\n \r\n g.setColor(Color.BLACK);\r\n \r\n BufferedImage image;\r\n \r\n for(int h = 0; h < 16; h++){\r\n for(int w =0; w< 16; w++){\r\n //g.drawImage(image.getSubimage(w *16, h*16, 16, 16), 0+(32*w),0 +(32*h), 32,32,this);\r\n g.drawRect(w *32, h*32, 32, 32);\r\n \r\n if(coord.xSelected >=0){\r\n g.setColor(Color.WHITE);\r\n g.drawRect(coord.xSelected *32, coord.ySelected *32, 32, 32);\r\n g.setColor(Color.BLACK);\r\n }\r\n }\r\n }\r\n \r\n \r\n }", "@Test\n public void test26() throws Throwable {\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis(0.0, 0.0);\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) cyclicNumberAxis0);\n RectangleEdge rectangleEdge0 = combinedRangeCategoryPlot0.getDomainAxisEdge(1248);\n List list0 = combinedRangeCategoryPlot0.getSubplots();\n AxisLocation axisLocation0 = AxisLocation.BOTTOM_OR_LEFT;\n combinedRangeCategoryPlot0.setDomainAxisLocation(0, axisLocation0, false);\n combinedRangeCategoryPlot0.setRangeCrosshairValue(0.18, false);\n AxisLocation axisLocation1 = combinedRangeCategoryPlot0.getRangeAxisLocation();\n boolean boolean0 = combinedRangeCategoryPlot0.isRangeCrosshairLockedOnData();\n TextBlock textBlock0 = new TextBlock();\n TextBox textBox0 = new TextBox(textBlock0);\n MultiplePiePlot multiplePiePlot0 = new MultiplePiePlot();\n JFreeChart jFreeChart0 = multiplePiePlot0.getPieChart();\n StandardEntityCollection standardEntityCollection0 = new StandardEntityCollection();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo((EntityCollection) standardEntityCollection0);\n // Undeclared exception!\n try { \n jFreeChart0.createBufferedImage(0, 3030, chartRenderingInfo0);\n } catch(IllegalArgumentException e) {\n //\n // Width (0) and height (3030) cannot be <= 0\n //\n assertThrownBy(\"java.awt.image.DirectColorModel\", e);\n }\n }", "private void drawDataPoint(Graphics g, int radius, int x, int y)\r\n/* 123: */ {\r\n/* 124: 99 */ g.fillOval(x - radius, y - radius, 2 * radius, 2 * radius);\r\n/* 125: */ }", "public Pencil(double x, double y, double width, double height)\n {\n\n\t//outline of the pencil\n GeneralPath body = new GeneralPath();\n\t\n body.moveTo(200,400);\n body.lineTo(150,350);\n\tbody.lineTo(200,300);\n\tbody.lineTo(600,300);\n\tbody.lineTo(600,400);\n\tbody.lineTo(200,400);\n\tbody.closePath();\n\n\t//vertical line that outlines the lead tip of the pencil\n\tGeneralPath leadLine = new GeneralPath();\n\n\tleadLine.moveTo(162, 362);\n\tleadLine.lineTo(162, 338);\n\n\t//vertical line that separates the tip of the pencil from the rest of the body\n\tGeneralPath tipLine = new GeneralPath();\n\ttipLine.moveTo(200, 400);\n\ttipLine.lineTo(200, 300);\n\t\n\t//vertical line that outlines the eraser\n\tShape eraser = ShapeTransforms.translatedCopyOf(tipLine, 350, 0.0);\n \n // now we put the whole thing together ino a single path.\n GeneralPath wholePencil = new GeneralPath ();\n wholePencil.append(body, false);\n\twholePencil.append(leadLine, false);\n wholePencil.append(tipLine, false);\n\twholePencil.append(eraser, false);\n \n // translate to the origin by subtracting the original upper left x and y\n // then translate to (x,y) by adding x and y\n \n Shape s = ShapeTransforms.translatedCopyOf(wholePencil, -ORIG_ULX + x, -ORIG_ULY + y);\n \n\t// scale to correct height and width\n s = ShapeTransforms.scaledCopyOf(s,\n\t\t\t\t\t width/ORIG_WIDTH,\n\t\t\t\t\t height/ORIG_HEIGHT) ;\n\t \n\t// Use the GeneralPath constructor that takes a shape and returns\n\t// it as a general path to set our instance variable cup\n \n\tthis.set(new GeneralPath(s));\n \n }", "@Test\n public void test27() throws Throwable {\n PeriodAxis periodAxis0 = new PeriodAxis(\"org.jfree.data.general.WaferMapDataset\");\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) periodAxis0);\n AxisLocation axisLocation0 = combinedRangeCategoryPlot0.getRangeAxisLocation(52);\n StatisticalLineAndShapeRenderer statisticalLineAndShapeRenderer0 = new StatisticalLineAndShapeRenderer(true, true);\n StatisticalLineAndShapeRenderer statisticalLineAndShapeRenderer1 = (StatisticalLineAndShapeRenderer)statisticalLineAndShapeRenderer0.clone();\n int int0 = combinedRangeCategoryPlot0.getIndexOf(statisticalLineAndShapeRenderer0);\n SortOrder sortOrder0 = combinedRangeCategoryPlot0.getRowRenderingOrder();\n combinedRangeCategoryPlot0.setColumnRenderingOrder(sortOrder0);\n Layer layer0 = Layer.BACKGROUND;\n Collection collection0 = combinedRangeCategoryPlot0.getDomainMarkers(layer0);\n AxisLocation axisLocation1 = combinedRangeCategoryPlot0.getDomainAxisLocation(23);\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double(10.0, (double) (-1), (double) 52, 10.0);\n JFreeChart jFreeChart0 = new JFreeChart(\"a@s4%C}8D{zFf7+[\", (Plot) combinedRangeCategoryPlot0);\n statisticalLineAndShapeRenderer0.setSeriesShapesFilled(4, false);\n ChartPanel chartPanel0 = new ChartPanel(jFreeChart0, true, false, true, false, true);\n Rectangle2D.Double rectangle2D_Double1 = (Rectangle2D.Double)chartPanel0.getScreenDataArea(23, (-1));\n rectangle2D_Double0.setRect((Rectangle2D) rectangle2D_Double1);\n }", "public void SubRect(){\n\t\n}", "void drawStuff () {drawStuff (img.getGraphics ());}", "@Test\n public void test77() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n AxisLocation axisLocation0 = combinedDomainCategoryPlot0.getRangeAxisLocation((-2261));\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double((-1788.20871), 0.0, 0.0, 0.0);\n double double0 = rectangle2D_Double0.x;\n JDBCXYDataset jDBCXYDataset0 = new JDBCXYDataset((Connection) null);\n DatasetChangeEvent datasetChangeEvent0 = new DatasetChangeEvent((Object) rectangle2D_Double0, (Dataset) jDBCXYDataset0);\n combinedDomainCategoryPlot0.datasetChanged(datasetChangeEvent0);\n }", "@Override\n\tpublic void draw(Graphics2D g2d) {\n\t\t\n\t}", "public void mouseClicked(RMShapeMouseEvent anEvent)\n{\n // Iterate over mouse listeners and forward\n for(int i=0, iMax=getListenerCount(RMShapeMouseListener.class); i<iMax; i++)\n getListener(RMShapeMouseListener.class, i).mouseClicked(anEvent);\n}" ]
[ "0.58199126", "0.5615652", "0.5538152", "0.5521548", "0.55165124", "0.54865783", "0.5476106", "0.54320157", "0.54206645", "0.5406997", "0.54038376", "0.54038376", "0.5399239", "0.53923756", "0.53664", "0.53664", "0.5351292", "0.53488374", "0.53443575", "0.5337365", "0.5337365", "0.5332212", "0.53252774", "0.532075", "0.5320653", "0.5312638", "0.530237", "0.52927744", "0.5289834", "0.5289834", "0.52890044", "0.5287118", "0.52775", "0.52533484", "0.52517486", "0.52296484", "0.52203524", "0.521111", "0.52000076", "0.5191427", "0.5191213", "0.5182782", "0.5175802", "0.5170722", "0.51566756", "0.5145508", "0.51349056", "0.51319784", "0.51235276", "0.5113581", "0.51130587", "0.51034766", "0.50960547", "0.5092955", "0.50843835", "0.50816846", "0.50778276", "0.5073363", "0.5064575", "0.5060188", "0.5057496", "0.5056388", "0.50560695", "0.50534445", "0.5052324", "0.5041109", "0.5041109", "0.5041109", "0.50393367", "0.50265723", "0.5026284", "0.5023529", "0.5021469", "0.5019268", "0.50190675", "0.5003609", "0.5003548", "0.4999701", "0.49991485", "0.49951917", "0.4989025", "0.4989025", "0.4980513", "0.49799705", "0.49784666", "0.49779612", "0.49776077", "0.49678525", "0.49651062", "0.49638948", "0.49584833", "0.49563313", "0.49539474", "0.49527162", "0.49514782", "0.49490753", "0.49470577", "0.49462837", "0.49375916", "0.49346185", "0.49281967" ]
0.0
-1
Author: Rafael Pinto Formata o numero com (.) ponto Ex: Numero = 1000 Resultado = 1.000 Data: 22/11/2007
public static String agruparNumeroEmMilhares(Integer numero) { String retorno = "0"; if (numero != null) { NumberFormat formato = NumberFormat.getInstance(new Locale("pt", "BR")); retorno = formato.format(numero); } return retorno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String detectaDoble(double numero){\n\t\treturn numero % 1.0 != 0 ? String.format(\"%s\", numero) : String.format(\"%.0f\", numero);\n\t}", "public Imprimir_ConvertirNumerosaLetras(String numero) throws NumberFormatException {\r\n\t\t// Validamos que sea un numero legal\r\n\t\tif (Integer.parseInt(numero) > 999999999)\r\n\t\t\tthrow new NumberFormatException(\"El numero es mayor de 999'999.999, \" +\r\n\t\t\t\t\t\"no es posible convertirlo\");\r\n\t\t\r\n\t\t//Descompone el trio de millones - ¡SGT!\r\n\t\tint k = Integer.parseInt(String.valueOf(Dataposi(numero,8)) + String.valueOf(Dataposi(numero,7)) + String.valueOf(Dataposi(numero,6)));\r\n\t\tif(k == 1)\r\n\t\t\tenLetras = \"UN MILLON \";\r\n\t\tif(k > 1)\r\n\t\t\tenLetras = Interpretar(String.valueOf(k)) + \"MILLONES \";\r\n\r\n\t\t//Descompone el trio de miles - ¡SGT!\r\n\t\tint l = Integer.parseInt(String.valueOf(Dataposi(numero,5)) + String.valueOf(Dataposi(numero,4)) + String.valueOf(Dataposi(numero,3)));\r\n\t\tif(l == 1)\r\n\t\t\tenLetras += \"MIL \";\r\n\t\tif(l > 1)\r\n\t\t\tenLetras += Interpretar(String.valueOf(l))+\"MIL \";\r\n\r\n\t\t//Descompone el ultimo trio de unidades - ¡SGT!\r\n\t\tint j = Integer.parseInt(String.valueOf(Dataposi(numero,2)) + String.valueOf(Dataposi(numero,1)) + String.valueOf(Dataposi(numero,0)));\r\n\t\tif(j == 1)\r\n\t\t\tenLetras += \"UN\";\r\n\t\t\r\n\t\tif(k + l + j == 0)\r\n\t\t\tenLetras += \"CERO\";\r\n\t\tif(j > 1)\r\n\t\t\tenLetras += Interpretar(String.valueOf(j));\r\n\t\t\r\n\t\tenLetras += \"PESOS\";\r\n\r\n\t}", "public void leerNumero() {\r\n\t\tdo {\r\n\t\t\tnumeroDNI=Integer.parseInt(JOptionPane.showInputDialog(\"Numero de DNI: \"));\r\n\t\t\tSystem.out.println(\"Numero de 8 digitos...\");\r\n\t\t}while(numeroDNI<9999999||numeroDNI>99999999);\r\n\t\tletra=hallarLetra();\r\n\t}", "private String Interpretar(String num) {\r\n\t\tif(num.length() > 3)\r\n\t\t\treturn \"\";\r\n\t\tString salida=\"\";\r\n\t\t\r\n\t\tif(Dataposi(num,2) != 0)\r\n\t\t\tsalida = Centenas[Dataposi(num,2)-1];\r\n\t\t\r\n\t\tint k = Integer.parseInt(String.valueOf(Dataposi(num,1))+String.valueOf(Dataposi(num,0)));\r\n\r\n\t\tif(k <= 20)\r\n\t\t\tsalida += Numero[k];\r\n\t\telse {\r\n\t\t\tif(k > 30 && Dataposi(num,0) != 0)\r\n\t\t\t\tsalida += Decenas[Dataposi(num,1)-2] + \"Y \" + Numero[Dataposi(num,0)];\r\n\t\t\telse\r\n\t\t\t\tsalida += Decenas[Dataposi(num,1)-2] + Numero[Dataposi(num,0)];\r\n\t\t}\r\n\t\t//Caso especial con el 100\r\n\t\tif(Dataposi(num,2) == 1 && k == 0)\r\n\t\t\tsalida=\"CIEN\";\r\n\t\t\r\n\t\treturn salida;\r\n\t}", "public String getDv43(String numero) {\r\n \r\n int total = 0;\r\n int fator = 2;\r\n \r\n int numeros, temp;\r\n \r\n for (int i = numero.length(); i > 0; i--) {\r\n \r\n numeros = Integer.parseInt( numero.substring(i-1,i) );\r\n \r\n temp = numeros * fator;\r\n if (temp > 9) temp=temp-9; // Regra do banco NossaCaixa\r\n \r\n total += temp;\r\n \r\n // valores assumidos: 212121...\r\n fator = (fator % 2) + 1;\r\n }\r\n \r\n int resto = total % 10;\r\n \r\n if (resto > 0)\r\n resto = 10 - resto;\r\n \r\n return String.valueOf( resto );\r\n \r\n }", "public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }", "private void createNumber() {\n\t\tString value = \"\";\n\t\tvalue += data[currentIndex++];\n\t\t// minus is no longer allowed\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isDigit(data[currentIndex])) {\n\t\t\tvalue += data[currentIndex++];\n\t\t}\n\n\t\tif (currentIndex + 1 < data.length && (data[currentIndex] == '.'\n\t\t\t\t&& Character.isDigit(data[currentIndex + 1]))) {\n\t\t\tvalue += data[currentIndex++]; // add .\n\t\t} else {\n\t\t\ttoken = new Token(TokenType.NUMBER, Integer.parseInt(value));\n\t\t\treturn;\n\t\t}\n\t\t// get decimals of number\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isDigit(data[currentIndex])) {\n\t\t\tvalue += data[currentIndex++];\n\t\t}\n\t\ttoken = new Token(TokenType.NUMBER, Double.parseDouble(value));\n\t}", "java.lang.String getNumber();", "java.lang.String getNumber();", "java.lang.String getNumber();", "public static String formateaNumero(String numero) {\n if (!hayParser) {\n contruyePraser();\n }\n String valor = numero.trim();\n if (\"&\".equals(valor) || \"-&\".equals(valor)) {\n return valor;\n }\n\n try {\n return decimalFormat.format(parseFloat(valor));\n } catch (Exception ex) {\n LOGGER.log(Level.SEVERE, ex.getMessage(), ex);\n return null;\n }\n }", "private static String formatPRECIO(String var1)\r\n\t{\r\n\t\tString temp = var1.replace(\".\", \"\");\r\n\t\t\r\n\t\treturn( String.format(\"%09d\", Integer.parseInt(temp)) );\r\n\t}", "private String peso(long peso,int i)\n {\n DecimalFormat df=new DecimalFormat(\"#.##\");\n //aux para calcular el peso\n float aux=peso;\n //string para guardar el formato\n String auxPeso;\n //verificamos si el peso se puede seguir dividiendo\n if(aux/1024>1024)\n {\n //variable para decidir que tipo es \n i=i+1;\n //si aun se puede seguir dividiendo lo mandamos al mismo metodo\n auxPeso=peso(peso/1024,i);\n }\n else\n {\n //si no se puede dividir devolvemos el formato\n auxPeso=df.format(aux/1024)+\" \"+pesos[i];\n }\n return auxPeso;\n }", "public void printNo(String numar)\r\n {\r\n //toate verificarile posibile pentru a afisa ce trebuie\r\n //mi-e lene sa scriu la fiecare in parte, daca vrei ti le explic la telefon\r\n if(Character.getNumericValue(numar.charAt(0)) ==0 && Character.getNumericValue(numar.charAt(1)) == 0){\r\n System.out.print(v[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n else{\r\n if(Character.getNumericValue(numar.charAt(0)) > 0){\r\n System.out.print(v[Character.getNumericValue(numar.charAt(0))] + \" hundread \");\r\n }\r\n if(Character.getNumericValue(numar.charAt(1)) == 1){\r\n System.out.print(v1[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n else if (Character.getNumericValue(numar.charAt(1)) > 1 && Character.getNumericValue(numar.charAt(2)) > 0){\r\n System.out.print(v2[Character.getNumericValue(numar.charAt(1)) - 2] + v[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n else if(Character.getNumericValue(numar.charAt(2)) == 0 && Character.getNumericValue(numar.charAt(1)) > 1){\r\n System.out.print(v2[Character.getNumericValue(numar.charAt(1)) - 2] + \" \");\r\n }\r\n if(Character.getNumericValue(numar.charAt(1)) == 0 && Character.getNumericValue(numar.charAt(2)) > 0){\r\n System.out.print(v[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n }\r\n }", "private void calcularResultado() {\r\n\tdouble dinero=0;\r\n\tdinero=Double.parseDouble(pantalla.getText());\r\n\tresultado=dinero/18.5;\r\n\t\tpantalla.setText(\"\" + resultado);\r\n\t\toperacion = \"\";\r\n\t}", "public void llenarnumerodecimales(java.awt.event.KeyEvent evt, int tamanioEntero, int tamanioDecimal, String txt){\n char c = evt.getKeyChar();\r\n int bDecimal = 0, bEntero = 0;\r\n// if ((c >= '0') || (c <= '9') && bEntero)\r\n// bEntero++;\r\n if (((c < '0') || (c > '9')) && (c != KeyEvent.VK_BACK_SPACE) && (c != '.')) {\r\n evt.consume();\r\n JOptionPane.showMessageDialog(null, \"Debe ingresar sólo números!!!\", \"Mensaje del sistema\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n if (c == '.' && txt.contains(\".\")) {\r\n evt.consume();\r\n JOptionPane.showMessageDialog(null, \"No puede ingresar más puntos!!!\", \"Mensaje del sistema\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "public String getNossoNumeroFormatted() {\r\n return boleto.getNossoNumero();\r\n }", "@Override\n public String getNossoNumeroFormatted() {\n return \"24\" + boleto.getNossoNumero();\n }", "public void ingresarNumero() {\n do {\r\n System.out.print(\"\\nIngrese un numero entre 0 y 100000: \");\r\n numero = teclado.nextInt();\r\n if (numero < 0 || numero > 100000){\r\n System.out.println(\"Error, rango invalido. Intentelo de nuevo.\");\r\n }\r\n } while(numero < 0 || numero > 100000);\r\n contarDigitos(numero); //el numero ingresado se manda como parametro al metodo\r\n menu();\r\n }", "int generarNumeroNota();", "public static double formateaDecimal(double numeroFormatea) {\n\t\treturn (double) Math.round(numeroFormatea * 100d) / 100d;\n\t}", "public void prueba(){\r\n //Float f = Float.parseFloat(jtfValor.getText());\r\n String s = \"100.000,5\";\r\n \r\n String d = s.replace(\".\",\"\");\r\n // s.replaceAll(\",\", \".\");\r\n // s.trim();\r\n System.out.println(d);\r\n \r\n }", "public static void main(String[] args) {\n\t\tTheNumber nb = new TheNumber();\r\n\t\t\r\n\t\tif(nb.isValidNumber(\"99\")){\r\n\t\t\tSystem.out.println(99 + \" is a valid number\");\r\n\t\t}\r\n\t\t\r\n\t\tif(!nb.isValidNumber(\"99 Toto\")){\r\n\t\t\tSystem.out.println(\"'99 Toto'\" + \" is not a valid number\");\r\n\t\t}\r\n\t\t\r\n\t\t// Round a float number\r\n\t\tfloat f1 = 12.89f;\r\n\t\tSystem.out.print(nb.arround(f1));\r\n\t\t\r\n\t\t// Comparaison de 2 floats\r\n\t\tSystem.out.print(\"\\nComparer deux floats avec une tolérance :\\n\");\r\n\t\tfloat f2 = 1.0f;\r\n\t\tfloat f3 = 1.01f;\r\n\t\tfloat f4 = 1.25f;\r\n\t\tfloat tolerance = 0.01f;\r\n\t\t\r\n\t\tif(nb.compareFloatsWithTolerence(f2, f3, tolerance)){\r\n\t\t\tSystem.out.println(f2 + \" et \" + f3 + \" sont egaux avec un tolerance de \" + tolerance);\r\n\t\t}\r\n\t\t\r\n\t\tif(!nb.compareFloatsWithTolerence(f2, f4, tolerance)){\r\n\t\t\tSystem.out.println(f2 + \" et \" + f4 + \" ne sont pas egaux avec un tolerance de \" + tolerance);\r\n\t\t}\r\n\t\t\r\n\t\t// Math : cos, sin, tan, log10, log, random\r\n\t\tint number = 45;\r\n\t\t\r\n\t\tSystem.out.println(\"Cosinus de \" + number + \" est :\" + cos(number));\r\n\t\tSystem.out.println(\"Sinus de \" + number + \" est :\" + sin(number));\r\n\t\tSystem.out.println(\"Tangente de \" + number + \" est :\" + tan(number));\r\n\t\tSystem.out.println(\"Log de \" + number + \" est :\" + log(number));\r\n\t\tSystem.out.println(\"Random de Math est : \" + random());\t\t\r\n\t\r\n\t\t// Get a percent of a double\r\n\t\tdouble doubleNumber = .79;\r\n\t\tSystem.out.println(\"Pourcentage de \" + doubleNumber + \" est : \" + nb.getPercentOfDouble(doubleNumber));\r\n\r\n\t\t// Conversion Entier en Binaire, Hexadécimal et Octal\r\n\t\tint intToConvert = 2;\r\n\t\tnb.printIntToBinaryHexaOctal(intToConvert);\r\n\t\t\r\n\t\t// Random\r\n\t\tRandom rand = new Random();\r\n\t\t// Int random\r\n\t\tSystem.out.println(\"\\nNombre aleatoire de 0 à 100 : \" + nb.getRandomInt(rand, 100));\r\n\t\tSystem.out.println(\"Nombre aleatoire de 0 à 100 : \" + nb.getRandomInt(rand, 100));\r\n\t\tSystem.out.println(\"Nombre aleatoire de 0 à 100 : \" + nb.getRandomInt(rand, 100));\r\n\t\r\n\t\t// Double random\r\n\t\tSystem.out.println(\"Nombre aleatoire (double) : \" + nb.getRandomDouble(rand));\r\n\t\t\r\n\t\t// Float random\r\n\t\tSystem.out.println(\"Nombre aleatoire (float) : \" + nb.getRandomFloat(rand));\r\n\t\t\r\n\t\t// Integer to String\r\n\t\tint intToConvert2 = 55;\r\n\t\tSystem.out.println(\"\\n\" + intToConvert2 + \" converti en string donne \" + nb.convertIntegerToString(intToConvert2));\r\n\r\n\t\t// Double to String\r\n\t\tdouble doubleToConvert = 55.985;\r\n\t\tSystem.out.println(doubleToConvert + \" converti en string donne \" + nb.convertDoubleToString(doubleToConvert));\r\n\t\t\r\n\t\t// String number to int\r\n\t\tString strNb = \"99\";\r\n\t\tSystem.out.println(\"String \" + strNb + \" converti en int donne \" + nb.convertStringToInteger(strNb));\r\n\t\t\r\n\t\t// String number to double\r\n\t\tString strNb2 = \"99.875\";\r\n\t\tSystem.out.println(\"String \" + strNb2 + \" converti en double donne \" + nb.convertStringToDouble(strNb2));\r\n\t\t\r\n\t\t// String to int\r\n\t\tString strToNb = \"toto\";\r\n\t\tSystem.out.println(\"String \" + strToNb + \" converti en int donne \" + nb.convertStringToInteger(strToNb));\r\n\t\t \r\n\t\t// String to double\r\n\t\tString strToNb2 = \"titi\";\r\n\t\tSystem.out.println(\"String \" + strToNb2 + \" converti en double donne \" + nb.convertStringToDouble(strToNb2));\r\n\t\t\r\n\t\t\r\n\t}", "public String converterNumeroParaExtensoReal(BigDecimal numero){\r\n\t\treturn null;\r\n\t}", "private int getNumero() {\n\t\treturn numero;\n\t}", "public void setNumero(int numero) {\n this.dado1 = numero;\n }", "private static void obterNumeroLugar(String nome) {\n\t\tint numero = gestor.obterNumeroLugar(nome);\n\t\tif (numero > 0)\n\t\t\tSystem.out.println(\"O FUNCIONARIO \" + nome + \" tem LUGAR no. \" + numero);\n\t\telse\n\t\t\tSystem.out.println(\"NAO EXISTE LUGAR de estacionamento atribuido a \" + nome);\n\t}", "private static int invertirNumero(int num) {\n\t\tint cifra, inverso = 0;\n\t\twhile (num > 0) {\n\t\t\tcifra = num % 10;\n\t\t\tinverso = cifra + inverso * 10;\n\t\t\tnum /= 10;\n\t\t}\n\t\treturn inverso;\n\t}", "public int getNumero() {\n return dado1;\n }", "public int getNumero()\r\n/* 190: */ {\r\n/* 191:202 */ return this.numero;\r\n/* 192: */ }", "public static void OrdenarNumeros(){\n\t\t//Variables\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\t\tString tomar;\n\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese tres numeros numero\");\n\t\ta=reader.nextInt();\n\t\tb=reader.nextInt();\n\t\tc=reader.nextInt();\n\t\tif(a>b && b>c){\n\t\t\tTexto=a+\",\"+b+\",\"+c;\n\t\t}else if(a>c && c>b){\n\t\t\tTexto=a+\",\"+c+\",\"+b;\n\t\t}else if(b>a && a>c){\n\t\t\tTexto=b+\",\"+a+\",\"+c;\n\t\t}else if(b>c && c>a){\n\t\t\tTexto=b+\",\"+c+\",\"+a;\n\t\t}else if(c>a && a>b){\n\t\t\tTexto=c+\",\"+a+\",\"+b;\n\t\t}else if(c>b && b>a ){\n\t\t\tTexto=c+\",\"+b+\",\"+a;\n\t\t}\n\t\tSystem.out.println(Texto);\n\t\tSystem.out.println(\"Desea regresar al menu anterior?\");\n\t\treader.nextLine();\n\t\ttomar=reader.nextLine();\n\t\tif(tomar.equals(\"si\")){\n\t\t\trepetidor=true;\n\t\t}else{\n\t\t\trepetidor=false;\n\t\t}\n\t}", "private float obtenerPrecioOrdenador(String codigo) {\n\t\tfloat resultado = 0;\n\t\ttry {\n\t\t\tXPathQueryService consulta = \n\t\t\t\t\t(XPathQueryService) \n\t\t\t\t\tcol.getService(\"XPathQueryService\", \"1.0\");\n\t\t\tResourceSet r = consulta.query(\"string(//ordenador[@codigo='\"+\n\t\t\t\t\tcodigo+\"']/precio)\");\n\t\t\tResourceIterator i = r.getIterator();\n\t\t\tif(i.hasMoreResources()) {\n\t\t\t\tString numero =i.nextResource().getContent().toString();\n\t\t\t\tif(!numero.equals(\"\"))\n\t\t\t\t\tresultado = Float.parseFloat(numero);\n\t\t\t}\n\t\t} catch (XMLDBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}", "@Override\n\tpublic void teclaNumericaDigitada(String numTecla) {\n\t\t\n\t}", "public String generaNumPatente() {\n String numeroPatente = \"\";\r\n try {\r\n int valorRetornado = patenteActual.getPatCodigo();\r\n StringBuffer numSecuencial = new StringBuffer(valorRetornado + \"\");\r\n int valRequerido = 6;\r\n int valRetorno = numSecuencial.length();\r\n int valNecesita = valRequerido - valRetorno;\r\n StringBuffer sb = new StringBuffer(valNecesita);\r\n for (int i = 0; i < valNecesita; i++) {\r\n sb.append(\"0\");\r\n }\r\n numeroPatente = \"AE-MPM-\" + sb.toString() + valorRetornado;\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n return numeroPatente;\r\n }", "public void calcular() {\n int validar, c, d, u;\n int contrasena = 246;\n c = Integer.parseInt(spiCentenas.getValue().toString());\n d = Integer.parseInt(spiDecenas.getValue().toString());\n u = Integer.parseInt(spiUnidades.getValue().toString());\n validar = c * 100 + d * 10 + u * 1;\n //Si es igual se abre.\n if (contrasena == validar) {\n etiResultado.setText(\"Caja Abierta\");\n }\n //Si es menor nos indica que es mas grande\n if (validar < contrasena) {\n etiResultado.setText(\"El número secreto es mayor\");\n }\n //Si es mayot nos indica que es mas pequeño.\n if (validar > contrasena) {\n etiResultado.setText(\"El número secreto es menor\");\n }\n }", "private String getUnidades(String numero) {// 1 - 9\r\n //si tuviera algun 0 antes se lo quita -> 09 = 9 o 009=9\r\n String num = numero.substring(numero.length() - 1);\r\n return UNIDADES[Integer.parseInt(num)];\r\n }", "public static numero formatNumber(String input)\n {\n //checking zero\n boolean isZero = true;\n for(int i = 0; i < input.length(); i++)\n if(baseOP.isDigit(input.charAt(i)) && input.charAt(i) != '0') isZero = false;\n if (isZero) return getZero();\n\n //numero number;\n int size = 0;\n char[] digits;\n char s;\n int num_postcomma = 0;\n\n //checking sign\n if (input.charAt(0) == '-') s = '-';\n else s = '+';\n\n //counting number of digits\n boolean firstNonZero = false;\n int firstdigit = 0;\n for (int i = 0; i < input.length(); i++)\n {\n if (input.charAt(i) == '.') break;\n if (baseOP.isDigit(input.charAt(i)) && !firstNonZero && input.charAt(i) != '0')\n {\n firstNonZero = true;\n firstdigit = i;\n }\n if (baseOP.isDigit(input.charAt(i)) && firstNonZero) size++;\n }\n\n if(input.indexOf('.') != -1)\n for(int i = input.indexOf('.'); i < input.length(); i++)\n if(baseOP.isDigit(input.charAt(i))) num_postcomma++;\n\n // creation of arrays\n size = size + num_postcomma;\n digits = new char[size];\n\n int index = 0;\n\n if (size == num_postcomma)\n firstdigit = input.indexOf('.')+1;\n\n for (int i = firstdigit; i < input.length(); i++)\n {\n if (baseOP.isDigit(input.charAt(i)))\n {\n digits[index] = input.charAt(i);\n index++;\n }\n }\n\n return new numero(s, num_postcomma, digits);\n }", "public String getNumber() throws Exception;", "public static float dineroIN(){\n Monedero.setCredito(Float.parseFloat(JOptionPane.showInputDialog(\"Introduce el dinero\")));\n return Monedero.getCredito();\n }", "private String FormatoHoraDoce(String Hora){\n String HoraFormateada = \"\";\n\n switch (Hora) {\n case \"13\": HoraFormateada = \"1\";\n break;\n case \"14\": HoraFormateada = \"2\";\n break;\n case \"15\": HoraFormateada = \"3\";\n break;\n case \"16\": HoraFormateada = \"4\";\n break;\n case \"17\": HoraFormateada = \"5\";\n break;\n case \"18\": HoraFormateada = \"6\";\n break;\n case \"19\": HoraFormateada = \"7\";\n break;\n case \"20\": HoraFormateada = \"8\";\n break;\n case \"21\": HoraFormateada = \"9\";\n break;\n case \"22\": HoraFormateada = \"10\";\n break;\n case \"23\": HoraFormateada = \"11\";\n break;\n case \"00\": HoraFormateada = \"12\";\n break;\n default:\n int fmat = Integer.parseInt(Hora);\n HoraFormateada = Integer.toString(fmat);\n }\n return HoraFormateada;\n }", "public int probar(String poox){\r\n int numero = Character.getNumericValue(poox.charAt(0))+ Character.getNumericValue(poox.charAt(1))+ Character.getNumericValue(poox.charAt(2))+ \r\n Character.getNumericValue(poox.charAt(3))+ Character.getNumericValue(poox.charAt(4));\r\n int comprobar;\r\n if(numero >= 30){\r\n comprobar = 2;\r\n System.out.println( numero +\" Digito verificar = \" + comprobar);\r\n }else if (numero >=20 && numero <= 29){\r\n comprobar = 1;\r\n System.out.println(numero + \" Digito verificar = \" + comprobar);\r\n }else{\r\n comprobar = 0;\r\n System.out.println(numero + \" Digito verificar = \" + comprobar);\r\n }\r\n return comprobar;\r\n }", "public String formatoDecimales(double valorInicial, int numeroDecimales ,int espacios) { \n String number = String.format(\"%.\"+numeroDecimales+\"f\", valorInicial);\n String str = String.valueOf(number);\n String num = str.substring(0, str.indexOf(',')); \n String numDec = str.substring(str.indexOf(',') + 1);\n \n for (int i = num.length(); i < espacios; i++) {\n num = \" \" + num;\n }\n \n for (int i = numDec.length(); i < espacios; i++) {\n numDec = numDec + \" \";\n }\n \n return num +\".\" + numDec;\n }", "public static void main(String args[]){\n int d, n, m = 0;\n \n //ENTRADA\n \n Scanner teclado = new Scanner(System.in);\n System.out.print(\"Numero : \");\n n = teclado.nextInt(); \n \n //PROCESO\n \n while(n > 0){\n d = n % 10;\n if(d > m){\n m = d;\n }\n n = n / 10;\n System.out.println(\"Valor de n: \"+n+\",\"+\" Valor de d: \"+d+\" ,Valor de m: \"+m );\n\n }\n \n //SALIDA \n System.out.println(\"\");\n System.out.println(\"Digito Mayor: \" + m);\n \n }", "private static String digitarNombre() {\n\t\tString nombre;\n\t\tSystem.out.println(\"Digite el nombre del socio: \");\n\t\tnombre = teclado.next();\n\t\treturn nombre;\n\t}", "public String getPremierNumeroLibre() {\n\t\tString requete_s = \"SELECT id from LIVRES\";\n\t\tint i = 0;\n\t\tboolean egalite = true;\n\t\t\n\t\ttry{\n\t\t\trequete.execute(requete_s);\n\t\t\t\n\t\t\tResultSet rs = requete.getResultSet();\n\t\t\t\n\t\t\tdo{\n\t\t\t\ti++;\n\t\t\t\trs.next();\n\t\t\t\tegalite = (i ==((Integer) rs.getObject(1)));\n\t\t\t}while(egalite);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString s = \"\" + i;\n\t\t\n\t\treturn s;\n\t}", "public int getNumero() { return this.numero; }", "String getPvalue(String num) {\n\t\tif (Double.parseDouble(num) >= 30) return \"0.000000\";\n\t\telse \n\t\t\treturn pvalues.get(num);\n\t}", "public static void main(String[] args) {\n\t\tNumero n1=new Numero(7);\n\t\tNumero n2=new Numero(5);\n\t\tint n3=6;\n\t\t\n\t\tSystem.out.println(\"La suma de:\" + n1.getN() + \"+\" + n3 + \" es:\" + n1.sumar(n3));\n\t\tSystem.out.println(\"La suma de:\" + n2.getN() + \"+\" + n3 + \" es:\" + n2.sumar(n3));\n\t\tSystem.out.println(\"La multiplicacion de:\" + n1.getN() + \"*\" + n3 + \" es:\" + n1.multiplicar(n3));\n\t\tSystem.out.println(\"La multiplicacion de:\" + n2.getN() + \"*\" + n3 + \" es:\" + n2.multiplicar(n3));\n\t\tSystem.out.println(\"El numero \" + n1.getN() + \" es par? \" + n1.esPar());\n\t\tSystem.out.println(\"El numero \" + n2.getN() + \" es par? \" + n2.esPar());\n\t\tSystem.out.println(\"El numero \" + n1.getN() + \" es primo? \" + n1.esPrimo());\n\t\tSystem.out.println(\"El numero \" + n2.getN() + \" es primo? \" + n2.esPrimo());\n\t\tSystem.out.println(n1.convertirAString());\n\t\tSystem.out.println(n2.convertirAString());\n\t\tSystem.out.println(\"El numero \" + n1.getN() + \" en formato double es: \" + n1.convertirADouble());\n\t\tSystem.out.println(\"El numero \" + n2.getN() + \" en formato double es: \" + n2.convertirADouble());\n\t\tint exp=2;\n\t\tSystem.out.println(\"El numero \" + n1.getN() + \" elevado a \" + exp + \" da como resultado \" + n1.calcularPotencia(exp));\n\t\tSystem.out.println(\"El numero \" + n2.getN() + \" elevado a \" + exp + \" da como resultado \" + n2.calcularPotencia(exp));\n\t\tSystem.out.println(\"El numero \" + n1.getN() + \" en base 2 es \" + n1.pasarBase2());\n\t\tSystem.out.println(\"El numero \" + n2.getN() + \" en base 2 es \" + n2.pasarBase2());\n\t\tSystem.out.println(\"El factorial de \" + n1.getN() + \" es \" + n1.calcularFactorial());\n\t\tSystem.out.println(\"El factorial de \" + n2.getN() + \" es \" + n2.calcularFactorial());\n\t\tint comb=2;\n\t\tSystem.out.println(\"El numero combinatorio de \" + n1.getN() + \" y \" + comb + \" es: \" + n1.numeroCombinatorio(comb));\n\t\tSystem.out.println(\"El numero combinatorio de \" + n2.getN() + \" y \" + comb + \" es: \" + n2.numeroCombinatorio(comb));\n\t\tSystem.out.println(\"Mellizos? \" + n1.esPrimoMellizo(n1, n2));\n\t\tint n=20;\n\t\t//primos utilizando un for\n\t\tfor(int i=2;i<=n;i++){\n\t\t\tint a=0;\n\t\t\tfor(int j=1;j<=n;j++){\n\t\t\t\tif(i%j==0){\n\t\t\t\t\ta+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(a==2){\n\t\t\t\tSystem.out.println(\"Numero: \" + i);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\n\t}", "public void gastarDinero(double cantidad){\r\n\t\t\r\n\t}", "public void setNumerodocumentocarga( String numerodocumentocarga ) {\n this.numerodocumentocarga = numerodocumentocarga ;\n }", "public static void main(String args[])\n {\n Scanner sc=new Scanner(System.in);\n String s=sc.next();\n double n=0;\n int dcount=0;\n int pointer=0;\n for(int i=0;i<s.length();i++)\n {\n if(s.charAt(i)!='.')\n {\n n=n*10+(s.charAt(i)-'0');\n if(pointer==1)\n dcount++;\n }\n else\n pointer=1;\n }\n n=n/Math.pow(10,dcount);\n System.out.printf(\"%.6f\",n);\n }", "static void diviser() throws IOException {\n\t Scanner clavier = new Scanner(System.in);\n\tdouble nb1, nb2, resultat;\n\tnb1 = lireNombreEntier();\n\tnb2 = lireNombreEntier();\n\tif (nb2 != 0) {\n\tresultat = nb1 / nb2;\n\tSystem.out.println(\"\\n\\t\" + nb1 + \" / \" + nb2 + \" = \" +\n\tresultat);\n\t} else\n\tSystem.out.println(\"\\n\\t le nombre 2 est nul, devision par 0 est impossible \");\n\t}", "private String nanoFormat(String amount) {\n BigDecimal amountBigDecimal;\n try {\n amountBigDecimal = new BigDecimal(sanitizeNoCommas(amount));\n } catch(NumberFormatException e) {\n return amount;\n }\n\n if (amountBigDecimal.compareTo(new BigDecimal(0)) == 0) {\n return amount;\n } else {\n String decimal;\n String whole;\n String[] split = amount.split(\"\\\\.\");\n if (split.length > 1) {\n // keep decimal length at 10 total\n whole = split[0];\n decimal = split[1];\n decimal = decimal.substring(0, Math.min(decimal.length(), MAX_NANO_DISPLAY_LENGTH));\n\n // add commas to the whole amount\n if (whole.length() > 0) {\n DecimalFormat df = new DecimalFormat(\"#,###\");\n whole = df.format(new BigDecimal(sanitizeNoCommas(whole)));\n }\n\n amount = whole + \".\" + decimal;\n } else if (split.length == 1) {\n // no decimals yet, so just add commas\n DecimalFormat df = new DecimalFormat(\"#,###\");\n amount = df.format(new BigDecimal(sanitizeNoCommas(amount)));\n }\n return amount;\n }\n }", "private String BuildNumber(int Value1, int Value2, int Value3)\n {\n String Significant;\n //Los manejo en string para solo concatenarlos obtener el valor\n Significant = Integer.toString(Value1) + Integer.toString(Value2);\n //Convertimos el valor a uno numerico y lo multiplicamos a la potencia de 10\n double Resultado = Integer.parseInt(Significant)*pow(10,Value3);\n //Para regresar el valor en KΩ\n if (Resultado/1000 >= 1 && Resultado/1e3 < 1000 )\n {\n return (String.valueOf(Resultado / 1e3) + \"KΩ\");\n }\n //Para regresar el valor en MΩ\n if (Resultado/1e6 >= 1)\n {\n return (String.valueOf(Resultado / 1e6) + \"MΩ\");\n }else{\n //Regresamos el valor en Ω\n return (String.valueOf(Resultado)+\"Ω\");\n }\n }", "public String getDataNascimentoString() {\r\n\r\n\t\tSimpleDateFormat data = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\treturn data.format(this.dataNascimento.getTime());\r\n\r\n\t}", "public float calcular(float dinero, float precio) {\n // Cálculo del cambio en céntimos de euros \n cambio = Math.round(100 * dinero) - Math.round(100 * precio);\n // Se inicializan las variables de cambio a cero\n cambio1 = 0;\n cambio50 = 0;\n cambio100 = 0;\n // Se guardan los valores iniciales para restaurarlos en caso de no \n // haber cambio suficiente\n int de1Inicial = de1;\n int de50Inicial = de50;\n int de100Inicial = de100;\n \n // Mientras quede cambio por devolver y monedas en la máquina \n // se va devolviendo cambio\n while(cambio > 0) {\n // Hay que devolver 1 euro o más y hay monedas de 1 euro\n if(cambio >= 100 && de100 > 0) {\n devolver100();\n // Hay que devolver 50 céntimos o más y hay monedas de 50 céntimos\n } else if(cambio >= 50 && de50 > 0) {\n devolver50();\n // Hay que devolver 1 céntimo o más y hay monedas de 1 céntimo\n } else if (de1 > 0){\n devolver1();\n // No hay monedas suficientes para devolver el cambio\n } else {\n cambio = -1;\n }\n }\n \n // Si no hay cambio suficiente no se devuelve nada por lo que se\n // restauran los valores iniciales\n if(cambio == -1) {\n de1 = de1Inicial;\n de50 = de50Inicial;\n de100 = de100Inicial;\n return -1;\n } else {\n return dinero - precio;\n }\n }", "public static String adaptarNroComprobante(int nroComprobante) {\n\t\tString puntoDeVentaFormateado = String.valueOf(nroComprobante);\n\t\twhile(puntoDeVentaFormateado.length()<8){\n\t\t\tpuntoDeVentaFormateado = \"0\"+puntoDeVentaFormateado;\n\t\t}\n\t\treturn puntoDeVentaFormateado;\n\t}", "public String getDataNastereString(){\n\t\tDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tString sd = df.format(new Date(data_nastere.getTime()));\n\t\treturn sd;\n\t\t\n\t}", "public void formatarDadosEntidade(){\n\t\tcodigoMunicipioOrigem = Util.completarStringZeroEsquerda(codigoMunicipioOrigem, 10);\n\t\tcodigoClasseConsumo = Util.completarStringZeroEsquerda(codigoClasseConsumo, 2);\n\n\t}", "public void setNumero(int numero) { this.numero = numero; }", "public int getNumero() {\n return numero;\n }", "private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public static void NumeroCapicua(){\n\t\tint numero,resto,falta,invertido;\n\t\tString tomar;\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese un numero\");\n\t\tnumero=reader.nextInt();\n\t\tfalta=numero;\n\t\tinvertido=0;\n\t\tresto=0;\n\t\twhile(falta!=0){\n\t\t\tresto=(falta%10);\n\t\t\tinvertido=(invertido*10)+resto;\n\t\t\tfalta=(int)(falta/10);\n\t\t}\n\t\tif(invertido==numero){\n\t\t\tSystem.out.println(\"Es Capicua\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No es Capicua\");\n\t\t}\n\t\tSystem.out.println(\"Desea regresar al menu anterior?\");\n\t\treader.nextLine();\n\t\ttomar=reader.nextLine();\n\t\tif(tomar.equals(\"si\")){\n\t\t\trepetidor=true;\n\t\t}else{\n\t\t\trepetidor=false;\n\t\t}\n\t}", "private String formato(String cadena){\n cadena = cadena.replaceAll(\" \",\"0\");\n return cadena;\n }", "public int numerico(String n){\n if(n.equals(\"Limpieza\")){\r\n tipon=1;\r\n }\r\n if(n.equals(\"Electrico\")){\r\n tipon=2;\r\n } \r\n if(n.equals(\"Mecanico\")){\r\n tipon=3;\r\n } \r\n if(n.equals(\"Plomeria\")){\r\n tipon=4;\r\n } \r\n if(n.equals(\"Refrigeracion\")){\r\n tipon=5;\r\n }\r\n if(n.equals(\"Carpinteria\")){\r\n tipon=6;\r\n }\r\n if(n.equals(\"Area Verde\")){\r\n tipon=7;\r\n } \r\n if(n.equals(\"Preventivo\")){\r\n tipon=8;\r\n } \r\n if(n.equals(\"Pintura\")){\r\n tipon=9;\r\n } \r\n if(n.equals(\"TI\")){\r\n tipon=10;\r\n }\r\n return tipon; \r\n }", "public void contarDigitos(int numero) { //recibe como parametro un valor entero\r\n while (numero > 0) {\r\n numero = numero / 10; //se divide entre 10 el numero ingresado y luego este ocupa su lugar\r\n contador++; //cada vez que se divida entre 10 se aumenta en 1 el contador, el cual\r\n //indica los digitos que tiene el numero ingresado\r\n }\r\n }", "public String convertAmount(long num) {\n String sign = \"\";\n if (num == 0){\n return \"zero\"; \n }\n else if (num < 0) {\n // if number negative, making it as positive number and saving the sign in the variable\n num = -num;\n sign = \"Negative\";\n }\n \n String inWords = \"\";\n int place = 0;\n \n // do this for every set of 3 digits from right till your left with northing\n do {\n // get the right most 3 numbers \n long n = num % 1000;\n // check if it not 0\n if (n != 0){\n // call the changeUptoThousand for the 3 digit number\n String s = changeUptoThousand((int) n);\n // add the appropriate word from thousand \n inWords = s + specialdigitNames[place] + inWords;\n }\n place++;\n //change the number leaving the right most 3 digits whic are processed above\n num /= 1000;\n } \n while (num > 0);\n // add the sign and the number\n return (sign + inWords).trim();\n }", "private static String findNumber() {\n\t\treturn null;\r\n\t}", "private void aplicaMascara(JFormattedTextField campo) {\n\n DecimalFormat decimal = new DecimalFormat(\"##,###,###.00\");\n decimal.setMaximumIntegerDigits(7);\n decimal.setMinimumIntegerDigits(1);\n NumberFormatter numFormatter = new NumberFormatter(decimal);\n numFormatter.setFormat(decimal);\n numFormatter.setAllowsInvalid(false);\n DefaultFormatterFactory dfFactory = new DefaultFormatterFactory(numFormatter);\n campo.setFormatterFactory(dfFactory);\n }", "private void trataDesconto(String x){\n \n Double sub;\n \n descontoField.setText(porcentagem.format((Double.parseDouble(x))/100));\n descontoField.setEnabled(true);\n sub = retornaSubTotal(this.getVlrTotalItem(), Double.parseDouble(x));\n subTotalField.setText(moeda.format(sub));\n lblTotalGeral.setText(subTotalField.getText());\n this.setVlrTotalItem(sub);\n}", "public void calcularNomina()\n {\n \n System.out.print('\\u000C');\n int nuevoEmpleado = 1;\n while (nuevoEmpleado == 1)\n {\n System.out.println(\"El nombre del empleado es: \"+nombre);\n System.out.println(\"El salario munsual del empleado es: $\"+salario);\n System.out.println(\"Los días laborados por el empleado es: \"+dia);\n long totalSalario = calcularTotalSalario();\n System.out.println(\"El total del salario es: $\"+totalSalario);\n long totalConDevengado = devengadoClase.calcularTotalConDevengado(totalSalario);\n System.out.println(\"El total devengado es: $\"+totalConDevengado);\n long totalDeducido = deducidoClase.calcularTotalDeducido(totalConDevengado);\n System.out.println(\"El total deducido es: $\"+totalDeducido);\n long totalPagar = totalConDevengado - totalDeducido;\n System.out.println(\"El total a pagar al trabajdor es: $\"+ totalPagar);\n \n System.out.println(\"Desea registrar la nomina de otro empleado 1(si)/2(no): \");\n nuevoEmpleado = teclado.nextInt();\n \n ingresarDatos();\n }\n \n \n }", "public static void main(String[] args) {\n int primeiroNumero = 10; // Armazena o valor 10 para o primeiro número\n int segundoNumero = 2; // Armazena o valor 10 para o segundo número\n int resultado = 0; // Armazena do resultado da operação\n \n // Forma de adição\n resultado = primeiroNumero + segundoNumero;\n \n //Apresenta o resultado da adição\n System.out.printf(\"Resultado da adição = %d\\n\", resultado);\n \n \n // Forma de subtração\n resultado = primeiroNumero - segundoNumero;\n \n //Apresenta o resultado da subtração\n System.out.printf(\"Resultado da subtração = %d\\n\", resultado);\n \n \n // Forma de multiplicação\n resultado = primeiroNumero * segundoNumero;\n \n //Apresenta o resultado da multiplicação\n System.out.printf(\"Resultado da multiplicação = %d\\n\", resultado);\n \n \n // Forma de divisão\n resultado = primeiroNumero / segundoNumero;\n \n //Apresenta o resultado da divisão\n System.out.printf(\"Resultado da divisão = %d\\n\", resultado);\n \n \n // Forma de resto\n resultado = primeiroNumero % segundoNumero;\n \n //Apresenta o resultado do resto da divisão\n System.out.printf(\"Resultado do resto da divisão = %d\\n\", resultado);\n \n }", "private double tranferStringToNum(String num){\r\n double number = 0;\r\n try{\r\n\tnumber = Double.parseDouble(num);\r\n }catch(Exception ex){\r\n\tnumber = 0;\r\n }\r\n return number;\r\n }", "public TamilWord readNumber(double number);", "@Override\n\tpublic void teclaCorrigeDigitada() {\n\t\t\n\t}", "public String formataDataNascimento(String dataNascimentoInserida) {\n String dataNascimentoString;\n SimpleDateFormat formatadorDataNascimento = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date dataNascimento = new Date();\n try {\n dataNascimento = formatadorDataNascimento.parse((dataNascimentoInserida));\n } catch (ParseException ex) {\n this.telaFuncionario.mensagemErroDataNascimento();\n dataNascimentoString = cadastraDataNascimento();\n return dataNascimentoString;\n }\n dataNascimentoString = formatadorDataNascimento.format(dataNascimento);\n dataNascimentoString = controlaConfirmacaoCadastroDataNascimento(dataNascimentoString);\n return dataNascimentoString;\n }", "static void sueldo7diasl(){\nSystem.out.println(\"Ejemplo estructura Condicional Multiple 1 \");\nString descuenta=\"\";\n//datos de entrada xd\nint ganancias= teclado.nextInt();\nif(ganancias<=150){\ndescuenta=\"0.5\";\n}else if (ganancias>150 && ganancias<300){\n descuenta=\"0.7\";}\n else if (ganancias>300 && ganancias<450){\n descuenta=\"0.9\";}\n //datos de salida:xd\n System.out.println(\"se le descuenta : \"+descuenta);\n}", "public String decimalNumberOct(double d) {\n m = \"\";\n c = 0;\n i = 0;\n long z = (long) d;\n while (z != 0) {\n //11001 ------- 25\n c += ((z % 10) * (Math.pow(8, i)));\n z /= 10;\n i++;\n }\n if ((long) d != d) {\n i = -1;\n m += d;\n f = m.indexOf('.') + 1;\n f = m.length() - f;\n f = -f;\n double a = d - (long) d;\n while (i >= f) {\n //11001 ------- 25\n a *= 10;\n c += (long) a * ((Math.pow(8, i)));\n i--;\n a -= (long) a;\n }\n }\n m = \"\";\n m += c;\n return m;\n }", "public static void main(String[] args) {\n int idade = 30;\n String valor = Integer.toString(idade);\n System.out.println(\"Idade: \" + valor);\n\n // converter string para inteiro\n String valorado = \"40\";\n int experiencia = Integer.parseInt(valorado);\n System.out.format(\"Experiencia: %d \\n\", experiencia);\n \n // converter string para float\n String novoValor = \"30.8\";\n float novaIdade = Float.parseFloat(novoValor);\n System.out.format(\"Nova Idade: %.2f \\n\", novaIdade);\n }", "java.lang.String getNume();", "java.lang.String getNume();", "@Override\n\tpublic void muestraInfo() {\n\t\tSystem.out.println(\"Adivina un número par: Es un juego en el que el jugador\" +\n\t\t\t\t\" deberá acertar un número PAR comprendido entre el 0 y el 10 mediante un número limitado de intentos(vidas)\");\n\t}", "public String getModifiedNumber(BigDecimal bd) {\r\n String str = \"\";\r\n String temp = \"\";\r\n str = bd.toString();\r\n double num = Double.parseDouble(str);\r\n double doubleVal;\r\n\r\n NumberFormat nFormat = NumberFormat.getInstance(Locale.US);\r\n nFormat.setMaximumFractionDigits(1);\r\n nFormat.setMinimumFractionDigits(1);\r\n\r\n /*\r\n * if ((num / getPowerOfTen(12)) > 0.99) // check for Trillion {\r\n * doubleVal = (num / getPowerOfTen(12)); temp =\r\n * String.valueOf(truncate(doubleVal)) + \"Tn\"; } else if ((num /\r\n * getPowerOfTen(9)) > 0.99) // check for Billion { doubleVal = (num /\r\n * getPowerOfTen(9)); temp = String.valueOf(truncate(doubleVal)) + \"Bn\";\r\n * } else\r\n */\r\n if ((num / getPowerOfTen(6)) > 0.99) // check for Million\r\n {\r\n doubleVal = (num / getPowerOfTen(6));\r\n //temp = String.valueOf(truncate(doubleVal)) + \"M\";\r\n temp= nFormat.format(doubleVal) + \"M\";\r\n } else if ((num / getPowerOfTen(3)) > 0.99) // check for K\r\n {\r\n doubleVal = (num / getPowerOfTen(3));\r\n //temp = String.valueOf(truncate(doubleVal)) + \"K\";\r\n temp =nFormat.format(doubleVal) + \"K\";\r\n } else {\r\n //temp = String.valueOf(num);\r\n temp = nFormat.format(num);\r\n }\r\n return temp;\r\n }", "java.lang.String getNum2();", "private static String numberToProse(int n) {\n if(n == 0)\n return \"zero\";\n\n if(n < 10)\n return intToWord(n);\n\n StringBuilder sb = new StringBuilder();\n\n // check the tens place\n if(n % 100 < 10)\n sb.insert(0, intToWord(n % 10));\n else if(n % 100 < 20)\n sb.insert(0, teenWord(n % 100));\n else\n sb.insert(0, tensPlaceWord((n % 100) / 10) + \" \" + intToWord(n % 10));\n\n n /= 100;\n\n // add the hundred place\n if(n > 0 && sb.length() != 0)\n sb.insert(0, intToWord(n % 10) + \" hundred and \");\n else if (n > 0)\n sb.insert(0, intToWord(n % 10) + \" hundred \");\n\n if(sb.toString().equals(\" hundred \"))\n sb = new StringBuilder(\"\");\n\n n /= 10;\n\n // the thousand spot\n if(n > 0)\n sb.insert(0, intToWord(n) + \" thousand \");\n\n return sb.toString();\n }", "public static void main(String[] args) {\n\r\n\t\tScanner teclado = new Scanner(System.in);\r\n\r\n\t\tfinal int DIA_ACTUAL = 9, MES_ACTUAL = 11, AÑO_ACTUAL = 2018;\r\n\r\n\t\tint dia = 0, año = 0, mes_numerico = 0, años_totales = 0;\r\n\r\n\t\tString mes = \" \";\r\n\r\n\t\tboolean bisiesto = false;\r\n\r\n\t\tSystem.out.println(\"Introduzca un mes valido \");\r\n\t\tmes = teclado.nextLine();\r\n\r\n\t\tSystem.out.println(\"Introduzca un dia valido \");\r\n\t\tdia = teclado.nextInt();\r\n\r\n\t\tSystem.out.println(\"Introduzca un año \");\r\n\t\taño = teclado.nextInt();\r\n\r\n\t\tif ((año % 4 == 0) && (año % 100 != 0) || (año % 400 == 0)) {\r\n\r\n\t\t\tbisiesto = true;\r\n\t\t}\r\n\r\n\t\tswitch (mes) {\r\n\r\n\t\tcase \"enero\":\r\n\r\n\t\t\tmes_numerico = 1;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"febrero\":\r\n\r\n\t\t\tmes_numerico = 2;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"marzo\":\r\n\r\n\t\t\tmes_numerico = 3;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"abril\":\r\n\r\n\t\t\tmes_numerico = 4;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"mayo\":\r\n\r\n\t\t\tmes_numerico = 5;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"junio\":\r\n\r\n\t\t\tmes_numerico = 6;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"julio\":\r\n\r\n\t\t\tmes_numerico = 7;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"agosto\":\r\n\r\n\t\t\tmes_numerico = 8;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"septiembre\":\r\n\r\n\t\t\tmes_numerico = 9;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"octubre\":\r\n\r\n\t\t\tmes_numerico = 10;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"noviembre\":\r\n\r\n\t\t\tmes_numerico = 11;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"diciembre\":\r\n\r\n\t\t\tmes_numerico = 12;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\r\n\t\t\tSystem.out.println(\"Introduzca un mes correcto \");\r\n\t\t\tmes = teclado.nextLine();\r\n\r\n\t\t\tbreak;\r\n\r\n\t\t}\r\n\r\n\t\taños_totales = AÑO_ACTUAL - año;\r\n\r\n\t\tif ((mes_numerico == 1 || mes_numerico == 3 || mes_numerico == 5 || mes_numerico == 7 || mes_numerico == 8\r\n\t\t\t\t|| mes_numerico == 10 || mes_numerico == 12) && (dia <= 31)) {\r\n\r\n\t\t\tif ((mes_numerico > MES_ACTUAL) || (MES_ACTUAL == mes_numerico && dia > DIA_ACTUAL)) {\r\n\r\n\t\t\t\taños_totales--;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Tu cantidad de años es \" + años_totales);\r\n\r\n\t\t} else if ((mes_numerico == 4 || mes_numerico == 6 || mes_numerico == 9 || mes_numerico == 11) && (dia <= 30)) {\r\n\r\n\t\t\tif ((mes_numerico > MES_ACTUAL) || (MES_ACTUAL == mes_numerico && dia > DIA_ACTUAL)) {\r\n\r\n\t\t\t\taños_totales--;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Tu cantidad de años es \" + años_totales);\r\n\r\n\t\t} else if ((mes_numerico == 2 && bisiesto) && (dia <= 29)) {\r\n\r\n\t\t\tif ((mes_numerico > MES_ACTUAL) || (MES_ACTUAL == mes_numerico && dia > DIA_ACTUAL)) {\r\n\r\n\t\t\t\taños_totales--;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Tu cantidad de años es \" + años_totales);\r\n\r\n\t\t} else if ((mes_numerico == 2 && !bisiesto) && (dia <= 28)) {\r\n\r\n\t\t\tif ((mes_numerico > MES_ACTUAL) || (MES_ACTUAL == mes_numerico && dia > DIA_ACTUAL)) {\r\n\r\n\t\t\t\taños_totales--;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Tu cantidad de años es \" + años_totales);\r\n\r\n\t\t} else {\r\n\r\n\t\t\tSystem.out.println(\"La fecha introducida no es correcta \");\r\n\t\t}\r\n\r\n\t\tteclado.close();\r\n\r\n\t}", "public static String formatarData(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH) + \"/\");\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH) + \"/\");\r\n\t\t\t}\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1 + \"/\");\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1) + \"/\");\r\n\t\t\t}\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "String getPrecio();", "public static void main(String[] args) {\n\t\t\n\t\tint num = 999;\n\t\tString numXXX = \"\";\n\t\t\n\t\tif ((num < 100) & (num >=10) ){\n\t\t\tnumXXX = \"0\" + num;\t\t\n\t\t} else if (num < 10) {\n\t\t\tnumXXX = \"00\" + num; \t\n\t\t} else {\n\t\t\tnumXXX = \"\" + num;\n\t\t}\n\t\t\n\t\tint hundred = Character.digit(numXXX.charAt(0),10);\n\t\tint ten = Character.digit(numXXX.charAt(1),10);\n\t\tint digit = Character.digit(numXXX.charAt(2),10);\n\t\t\n\t\t//System.out.println(numXXX + \":\" + hundred + ten + digit);\n\t\t\n\t\tString hundredStr = \"\";\n\t\tString tenStr = \"\";\n\t\tString digitStr = \"\";\n\t\t\n\t\tswitch (hundred) {\n\t\t\tcase 1: \n\t\t\t\thundredStr = \"one hundred\";\n\t\t\t\tbreak;\n\t\t\tcase 2: \n\t\t\t\thundredStr = \"two hundred\";\n\t\t\t\tbreak;\n\t\t\tcase 3: \n\t\t\t\thundredStr = \"three hundred\";\n\t\t\t\tbreak;\n\t\t\tcase 4: \n\t\t\t\thundredStr = \"four hundred\";\n\t\t\t\tbreak;\n\t\t\tcase 5: \n\t\t\t\thundredStr = \"five hundred\";\n\t\t\t\tbreak;\n\t\t\tcase 6: \n\t\t\t\thundredStr = \"six hundred\";\n\t\t\t\tbreak;\n\t\t\tcase 7: \n\t\t\t\thundredStr = \"seven hundred\";\n\t\t\t\tbreak;\n\t\t\tcase 8: \n\t\t\t\thundredStr = \"eight hundred\";\n\t\t\t\tbreak;\n\t\t\tcase 9: \n\t\t\t\thundredStr = \"nine hundred\";\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\tswitch (ten) {\n\t\t\tcase 1:\n\t\t\t\tif (digit == 0){\n\t\t\t\t\ttenStr = \"ten\";\n\t\t\t\t} else {\n\t\t\t\t\tswitch (digit) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\ttenStr = \"eleven\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\ttenStr = \"twelve\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\ttenStr = \"thirteen\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\ttenStr = \"fourteen\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 5:\n\t\t\t\t\t\t\ttenStr = \"fifteen\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 6:\n\t\t\t\t\t\t\ttenStr = \"sixteen\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 7:\n\t\t\t\t\t\t\ttenStr = \"seventeen\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 8:\n\t\t\t\t\t\t\ttenStr = \"eighteen\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 9:\n\t\t\t\t\t\t\ttenStr = \"nineteen\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n \t\t\tcase 2: \n \t\t\t\ttenStr = \"twenty\";\n \t\t\t\tbreak;\n \t\t\tcase 3: \n \t\t\t\ttenStr = \"thirty\";\n \t\t\t\tbreak;\n \t\t\tcase 4: \n \t\t\t\ttenStr = \"fourty\";\n \t\t\t\tbreak;\n \t\t\tcase 5: \n \t\t\t\ttenStr = \"fifty\";\n \t\t\t\tbreak;\n \t\t\tcase 6: \n \t\t\t\ttenStr = \"sixty\";\n \t\t\t\tbreak;\n \t\t\tcase 7: \n \t\t\t\ttenStr = \"seventy\";\n \t\t\t\tbreak;\n \t\t\tcase 8: \n \t\t\t\ttenStr = \"eighty\";\n \t\t\t\tbreak;\n \t\t\tcase 9: \n \t\t\t\ttenStr = \"ninety\";\n \t\t\t\tbreak;\t\n }\n\t\t\n\t\tif ((ten != 1) | (ten == 0)){\n\t\t\tswitch (digit) {\n\t\t\t\tcase 0:\n\t\t\t\t\tif ((ten == 0) & (hundred == 0)){\n\t\t\t\t\t\tdigitStr = \"zero\";\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tdigitStr = \"one\";\n\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tdigitStr = \"two\";\n\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tdigitStr = \"three\";\n\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tdigitStr = \"four\";\n\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tdigitStr = \"five\";\n\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tdigitStr = \"six\";\n\t\t\t\tbreak;\n\t\t\t\tcase 7:\n\t\t\t\t\tdigitStr = \"seven\";\n\t\t\t\tbreak;\n\t\t\t\tcase 8:\n\t\t\t\t\tdigitStr = \"eight\";\n\t\t\t\tbreak;\n\t\t\t\tcase 9:\n\t\t\t\t\tdigitStr = \"nine\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (ten == 0){\n\t\t\tSystem.out.println(num + \" => \" + hundredStr + \" \" + digitStr);\n\t\t} else if (ten == 1){\n\t\t\tSystem.out.println(num + \" => \" + hundredStr + \" \" + tenStr);\n\t\t} else if ((ten != 1) & (digit == 0)){\n\t\t\tSystem.out.println(num + \" => \" + hundredStr + \" \" + tenStr);\n\t\t} else {\n\t\t\tSystem.out.println(num + \" => \" + hundredStr + \" \" + tenStr + \"-\" + digitStr);\n\t\t}\n\t\t\n\t}", "String getDataNascimento();", "public static void main(String [] args) {\n\n Scanner scanner = new Scanner(System.in);\n\n// System.out.println(12.5);\n// System.out.println(12);\n\n\n System.out.println(\"Digite um numero que representa um mes: \");\n\n int mes = scanner.nextInt();\n\n\n switch (mes) {\n case 1:\n System.out.println(\"JAN\");\n break;\n case 2:\n System.out.println(\"FEV\");\n break;\n case 3:\n System.out.println(\"MAR\");\n break;\n default:\n System.out.println(\"MES INVALIDO\");\n }\n\n\n\n\n\n\n\n// if (mes == 1) {\n// System.out.println(\"JANEIRO\");\n// } else {\n// if (mes == 2) {\n// System.out.println(\"FEVEREIRO\");\n// } else {\n// if (mes == 3) {\n// System.out.println(\"MARÇO\");\n// }\n// else {\n// System.out.println(\"MES INVALIDO\");\n// }\n// }\n// }\n\n\n\n\n\n\n }", "public void formatoTiempo() {\n String segundos, minutos, hora;\n\n hora = hrs < 10 ? String.valueOf(\"0\" + hrs) : String.valueOf(hrs);\n\n minutos = min < 10 ? String.valueOf(\"0\" + min) : String.valueOf(min);\n\n jLabel3.setText(hora + \" : \" + minutos + \" \" + tarde);\n }", "private String getMillones(String numero) {\n String miles = numero.substring(numero.length() - 6);\r\n //se obtiene los millones\r\n String millon = numero.substring(0, numero.length() - 6);\r\n String n = \"\";\r\n if (millon.length() > 1) {\r\n n = getCentenas(millon) + \"millones \";\r\n } else {\r\n n = getUnidades(millon) + \"millon \";\r\n }\r\n return n + getMiles(miles);\r\n }", "public String decimalToOcta(int numero) {\n\t\tSystem.out.print(\"Convirtiendo decimal (\" + numero + \") a octal >> \");\n\t\treturn Integer.toOctalString(numero);\n\t}", "public abstract String getOrdinalString(WholeNumber number, Form form);", "private String getMiles(String numero) {\n String c = numero.substring(numero.length() - 3);\r\n //obtiene los miles\r\n String m = numero.substring(0, numero.length() - 3);\r\n String n = \"\";\r\n //se comprueba que miles tenga valor entero\r\n if (Integer.parseInt(m) > 0) {\r\n n = getCentenas(m);\r\n return n + \"mil \" + getCentenas(c);\r\n } else {\r\n return \"\" + getCentenas(c);\r\n }\r\n\r\n }", "private String formatearMonto(String gstrLBL_TIPO, String gstrLBL_MONTO, String gstrLBL_MONEDA) {\n\t\tString montoFormateado=\"\";\n\t\t\n\t\tif(gstrLBL_MONEDA.equals(\"Soles\"))\n\t\t\tmontoFormateado=\"S/ \";\n\t\telse\n\t\t\tmontoFormateado=\"$ \";\n\t\t\n\t\tif(gstrLBL_TIPO.equals(\"Débito\"))\n\t\t\tmontoFormateado=montoFormateado+\"-\";\n\t\telse\n\t\t\tmontoFormateado=montoFormateado+\"+\";\n\t\t\n\t\tdouble prueba2=new Double(gstrLBL_MONTO);\n\t\tDecimalFormatSymbols simbolo=new DecimalFormatSymbols();\n\t\tsimbolo.setGroupingSeparator(',');\n\t\tsimbolo.setDecimalSeparator('.');\n\t\tDecimalFormat formatea=new DecimalFormat(\"###,###.##\",simbolo);\n\t\tgstrLBL_MONTO=formatea.format(prueba2);\n\t\tif(gstrLBL_MONTO.indexOf(\".\")!=-1){\n\t\t\tint decimales=(gstrLBL_MONTO.substring(gstrLBL_MONTO.indexOf(\".\")+1,gstrLBL_MONTO.length())).length();\n\t\t\tif(decimales==1)\n\t\t\t\tgstrLBL_MONTO=gstrLBL_MONTO+\"0\";\n\t\t}else\n\t\t\tgstrLBL_MONTO=gstrLBL_MONTO+\".00\";\n\t\t\n\t\tmontoFormateado=montoFormateado+gstrLBL_MONTO;\n\t\t\n\t\treturn montoFormateado;\n\t}", "protected IExpressionValue getNum() throws TableFunctionMalformedException {\r\n\t\tvalue = \"\";\r\n\r\n\t\tif (!((isNumeric(look)) || ((look == '.') && (value.indexOf('.') == -1))))\r\n\t\t\texpected(\"Number\");\r\n\r\n\t\twhile ((isNumeric(look))\r\n\t\t\t\t|| ((look == '.') && (value.indexOf('.') == -1))) {\r\n\t\t\tvalue += look;\r\n\t\t\tnextChar();\r\n\t\t}\r\n\r\n\t\ttoken = '#';\r\n\t\tskipWhite();\r\n\r\n\t\t// Debug.println(\"GetNum returned \" + Float.parseFloat(value));\r\n\t\treturn new SimpleProbabilityValue(Float.parseFloat(value));\r\n\t}", "static public String nf(float num) {\n\t\tif (formatFloat==null) nfInitFormats();\n\t\tformatFloat.setMinimumIntegerDigits(1);\n\t\tformatFloat.setMaximumFractionDigits(3);\n\n\t\treturn formatFloat.format(num).replace(\",\", \".\");\n\t}", "public void generarNumeroFacura(){\n try{\n FacturaDao facturaDao = new FacturaDaoImp();\n //Comprobamos si hay registros en la tabla Factura de la BD\n this.numeroFactura = facturaDao.numeroRegistrosFactura();\n \n //Si no hay registros hacemos el numero de factura igual a 1\n if(numeroFactura <= 0 || numeroFactura == null){\n numeroFactura = Long.valueOf(\"1\");\n this.factura.setNumeroFactura(this.numeroFactura.intValue());\n this.factura.setTotalVenta(new BigDecimal(0));\n }else{\n //Recuperamos el ultimo registro que existe en la tabla Factura\n Factura factura = facturaDao.getMaxNumeroFactura();\n //Le pasamos a la variable local el numero de factura incrementado en 1\n this.numeroFactura = Long.valueOf(factura.getNumeroFactura() + 1);\n this.factura.setNumeroFactura(this.numeroFactura.intValue());\n this.factura.setTotalVenta(new BigDecimal(0));\n }\n \n \n }catch(Exception e){\n e.printStackTrace();\n }\n \n }" ]
[ "0.67063934", "0.64236534", "0.64201623", "0.62947917", "0.6289486", "0.6269896", "0.6232504", "0.6190768", "0.6190768", "0.6190768", "0.6141716", "0.61121154", "0.6110564", "0.6060639", "0.6039579", "0.60211116", "0.5999642", "0.5964705", "0.59617364", "0.5951484", "0.5916177", "0.5908467", "0.5908449", "0.589078", "0.58552915", "0.5840839", "0.58363223", "0.5814881", "0.58098066", "0.5806514", "0.5805095", "0.5799226", "0.5768739", "0.5763886", "0.576234", "0.5756243", "0.57561266", "0.57459134", "0.57426226", "0.57271004", "0.57227314", "0.57178074", "0.571187", "0.56997555", "0.5676458", "0.56704134", "0.5652336", "0.5627058", "0.56137514", "0.56054187", "0.55937356", "0.55876154", "0.55838007", "0.55685776", "0.55512", "0.5545468", "0.5545133", "0.55404985", "0.5539343", "0.5532122", "0.5524412", "0.55241394", "0.5514339", "0.55034524", "0.55027765", "0.5499995", "0.54984874", "0.54940444", "0.5493802", "0.5493044", "0.5479252", "0.54769045", "0.5473829", "0.5472138", "0.5471147", "0.546755", "0.5466502", "0.54609144", "0.5457627", "0.5450717", "0.5450717", "0.5446222", "0.54429114", "0.54428667", "0.5438805", "0.54370713", "0.5434473", "0.5434463", "0.5433055", "0.5427919", "0.5424506", "0.54235864", "0.5421061", "0.54209787", "0.54192704", "0.5417455", "0.5412807", "0.54094034", "0.5405141", "0.5403184" ]
0.5813976
28
Author: Raphael Rossiter Data: 23/08/2007
public static java.sql.Date getSQLDate(Date data) { java.sql.Date dt = new java.sql.Date(data.getTime()); return dt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void interface1(){\n noStroke();\n fill(10,100);//light gray\n rect(0,60,600,590);\n fill(220);//gray\n noStroke();\n beginShape();\n vertex(365,40);\n vertex(600,40);\n vertex(600,80);\n vertex(365,80);\n vertex(345,60);\n endShape(CLOSE);\n fill(19,70,100,100);//dark blue\n rect(0,110,600,215);\n rect(0,380,600,215);\n}", "private void paintTheImage() {\n SPainter bruhmoment = new SPainter(\"Kanizsa Square\" ,400,400);\n\n SCircle dot = new SCircle(75);\n paintBlueCircle(bruhmoment,dot);\n paintRedCircle(bruhmoment,dot);\n paintGreenCircles(bruhmoment,dot);\n\n SSquare square= new SSquare(200);\n paintWhiteSquare(bruhmoment,square);\n\n\n }", "private void paintTheImage() {\n SPainter klee = new SPainter(\"Red Cross\", 600,600);\n SRectangle rectangle = new SRectangle(500, 100);\n klee.setColor(Color.RED);\n klee.paint(rectangle);\n klee.tl();\n klee.paint(rectangle);\n }", "public void russia(){\n stroke(1);\n //back guns\n fill(0);\n rect(73,192,4,15);\n rect(224,192,4,15);\n rect(71,207,8,15);\n rect(222,207,8,15);\n rect(66,207,3,15);\n rect(232,207,3,17);\n rect(122,109,4,15);\n rect(175,110,4,15);\n rect(121,120,6,15);\n rect(174,120,6,15);\n rect(116,124,3,15);\n rect(182,124,3,15);\n\n //wings\n fill(165,0,0);//gray\n beginShape();\n vertex(14,286);\n vertex(61,236);\n vertex(88,308);\n vertex(51,334);\n vertex(14,313);\n endShape(CLOSE);\n beginShape();\n vertex(286,287);\n vertex(286,312);\n vertex(247,335);\n vertex(212,309);\n vertex(238,238);\n endShape(CLOSE);\n\n fill(0);//black\n beginShape();\n vertex(38,307);\n vertex(74,307);\n vertex(80,314);\n vertex(81,337);\n vertex(68,345);\n vertex(38,327);\n endShape(CLOSE);\n beginShape();\n vertex(219,316);\n vertex(226,308);\n vertex(262,308);\n vertex(262,326);\n vertex(231,345);\n vertex(219,336);\n endShape(CLOSE);\n\n fill(18,39,148);//blue\n beginShape();\n vertex(96,191);\n vertex(61,230);\n vertex(60,269);\n vertex(96,312);\n vertex(101,300);\n vertex(100,247);\n vertex(112,232);\n vertex(132,232);\n vertex(131,186);\n endShape(CLOSE);\n beginShape();\n vertex(204,191);\n vertex(240,230);\n vertex(240,270);\n vertex(205,312);\n vertex(200,302);\n vertex(200,248);\n vertex(193,238);\n vertex(185,231);\n vertex(170,230);\n vertex(170,186);\n endShape(CLOSE);\n\n //white\n fill(200);\n beginShape();\n vertex(70,217);\n vertex(74,220);\n vertex(81,210);\n vertex(85,213);\n vertex(75,227);\n vertex(72,229);\n vertex(71,231);\n vertex(73,233);\n vertex(73,268);\n vertex(71,272);\n vertex(76,277);\n vertex(82,274);\n vertex(89,283);\n vertex(90,297);\n vertex(66,272);\n vertex(65,235);\n vertex(68,229);\n vertex(62,228);\n endShape(CLOSE);\n beginShape();\n vertex(228,217);\n vertex(225,218);\n vertex(218,211);\n vertex(215,213);\n vertex(223,227);\n vertex(226,226);\n vertex(230,230);\n vertex(227,233);\n vertex(228,270);\n vertex(229,272);\n vertex(223,276);\n vertex(218,276);\n vertex(210,283);\n vertex(211,296);\n vertex(235,273);\n vertex(234,233);\n vertex(232,228);\n vertex(237,227);\n endShape(CLOSE);\n\n //guns\n //red\n fill(194,24,11);\n beginShape();\n vertex(121,301);\n vertex(98,313);\n vertex(102,336);\n vertex(119,342);\n vertex(139,336);\n vertex(141,313);\n endShape(CLOSE);//l\n beginShape();\n vertex(159,312);\n vertex(162,336);\n vertex(180,342);\n vertex(200,336);\n vertex(202,313);\n vertex(180,302);\n endShape(CLOSE);\n\n //black\n fill(0);\n rect(105,315,30,30);\n rect(166,315,30,30);\n quad(105,344,109,355,131,355,135,344);\n quad(166,344,170,355,192,355,196,344);\n\n rect(103,253,33,62);//l\n rect(164,252,33,62);//r\n //white\n fill(200);\n bezier(103,252,107,230,132,230,136,252);//l\n bezier(164,252,169,230,192,230,197,252);//r\n\n rect(103,280,33,25);//l\n rect(164,280,33,25);//r\n rect(104,319,33,26,3);//l\n rect(165,319,33,26,3);//r\n fill(194,24,11);\n rect(115,310,7,28,8);//l\n rect(178,310,7,28,8);//r\n\n fill(194,24,11);\n rect(105,284,10,15);\n rect(124,284,10,15);\n rect(167,285,10,15);\n rect(185,284,10,15);\n\n //body-wings\n\n fill(0,0,67);//blue\n bezier(107,154,101,162,98,169,98,187);\n bezier(191,153,199,164,202,172,203,187);\n quad(107,154,98,186,98,223,107,224);\n quad(191,153,203,186,202,223,192,223);\n fill(192,0,11);//red\n quad(134,112,108,147,107,239,132,230);\n quad(165,112,192,147,193,239,168,230);\n //black\n fill(0);\n quad(130,122,130,142,111,164,111,147);\n quad(169,122,188,147,188,165,169,144);\n //white\n fill(200);\n beginShape();\n vertex(131,154);\n vertex(129,202);\n vertex(118,202);\n vertex(112,181);\n vertex(110,179);\n vertex(110,171);\n endShape(CLOSE);\n beginShape();\n vertex(170,154);\n vertex(190,172);\n vertex(190,182);\n vertex(188,181);\n vertex(182,201);\n vertex(172,201);\n endShape(CLOSE);\n\n fill(0);\n quad(134,193,166,193,154,342,146,342);\n fill(192,0,11);\n quad(142,180,159,180,152,352,148,352);\n //white\n fill(200);\n ellipse(150,374,6,50);\n\n //head\n fill(160,0,0);\n ellipse(149.5f,72,33,25);\n ellipse(149.5f,94,30,170);\n fill(0);\n ellipse(149.5f,94,20,160);\n fill(154,155,84);\n ellipse(149.5f,94,17,77);\n strokeWeight(2);\n line(143,74,158,74);\n line(142,104,158,104);\n strokeWeight(1);\n fill(200);\n bezier(143,15,147,2,153,2,155.5f,15);\n}", "public void syria(){\n stroke(1);\n //back guns\n fill(0);\n rect(73,192,4,15);\n rect(224,192,4,15);\n rect(71,207,8,15);\n rect(222,207,8,15);\n rect(66,207,3,15);\n rect(232,207,3,17);\n rect(122,109,4,15);\n rect(175,110,4,15);\n rect(121,120,6,15);\n rect(174,120,6,15);\n rect(116,124,3,15);\n rect(182,124,3,15);\n\n //wings\n fill(206,17,38);//red\n beginShape();\n vertex(14,286);\n vertex(61,236);\n vertex(88,308);\n vertex(51,334);\n vertex(14,313);\n endShape(CLOSE);\n beginShape();\n vertex(286,287);\n vertex(286,312);\n vertex(247,335);\n vertex(212,309);\n vertex(238,238);\n endShape(CLOSE);\n\n fill(200);//white\n beginShape();\n vertex(38,307);\n vertex(74,307);\n vertex(80,314);\n vertex(81,337);\n vertex(68,345);\n vertex(38,327);\n endShape(CLOSE);\n beginShape();\n vertex(219,316);\n vertex(226,308);\n vertex(262,308);\n vertex(262,326);\n vertex(231,345);\n vertex(219,336);\n endShape(CLOSE);\n\n fill(0);//red\n beginShape();\n vertex(96,191);\n vertex(61,230);\n vertex(60,269);\n vertex(96,312);\n vertex(101,300);\n vertex(100,247);\n vertex(112,232);\n vertex(132,232);\n vertex(131,186);\n endShape(CLOSE);\n beginShape();\n vertex(204,191);\n vertex(240,230);\n vertex(240,270);\n vertex(205,312);\n vertex(200,302);\n vertex(200,248);\n vertex(193,238);\n vertex(185,231);\n vertex(170,230);\n vertex(170,186);\n endShape(CLOSE);\n\n //white\n fill(200);\n beginShape();\n vertex(70,217);\n vertex(74,220);\n vertex(81,210);\n vertex(85,213);\n vertex(75,227);\n vertex(72,229);\n vertex(71,231);\n vertex(73,233);\n vertex(73,268);\n vertex(71,272);\n vertex(76,277);\n vertex(82,274);\n vertex(89,283);\n vertex(90,297);\n vertex(66,272);\n vertex(65,235);\n vertex(68,229);\n vertex(62,228);\n endShape(CLOSE);\n beginShape();\n vertex(228,217);\n vertex(225,218);\n vertex(218,211);\n vertex(215,213);\n vertex(223,227);\n vertex(226,226);\n vertex(230,230);\n vertex(227,233);\n vertex(228,270);\n vertex(229,272);\n vertex(223,276);\n vertex(218,276);\n vertex(210,283);\n vertex(211,296);\n vertex(235,273);\n vertex(234,233);\n vertex(232,228);\n vertex(237,227);\n endShape(CLOSE);\n\n //guns\n //white\n fill(200);\n beginShape();\n vertex(121,301);\n vertex(98,313);\n vertex(102,336);\n vertex(119,342);\n vertex(139,336);\n vertex(141,313);\n endShape(CLOSE);//l\n beginShape();\n vertex(159,312);\n vertex(162,336);\n vertex(180,342);\n vertex(200,336);\n vertex(202,313);\n vertex(180,302);\n endShape(CLOSE);\n\n //black\n fill(0);\n rect(105,315,30,30);\n rect(166,315,30,30);\n quad(105,344,109,355,131,355,135,344);\n quad(166,344,170,355,192,355,196,344);\n //green\n fill(0,122,61);\n rect(103,253,33,62);//l\n rect(164,252,33,62);//r\n //white\n fill(200);\n bezier(103,252,107,230,132,230,136,252);//l\n bezier(164,252,169,230,192,230,197,252);//r\n rect(103,280,33,25);//l\n rect(164,280,33,25);//r\n rect(104,319,33,26,3);//l\n rect(165,319,33,26,3);//r\n rect(115,310,7,28,8);//l\n rect(178,310,7,28,8);//r\n //green\n fill(0,122,61);\n rect(105,284,10,15);\n rect(124,284,10,15);\n rect(167,285,10,15);\n rect(185,284,10,15);\n\n //body-wings\n\n fill(0,122,61);//green\n bezier(107,154,101,162,98,169,98,187);\n bezier(191,153,199,164,202,172,203,187);\n quad(107,154,98,186,98,223,107,224);\n quad(191,153,203,186,202,223,192,223);\n fill(206,17,38);//red\n quad(134,112,108,147,107,239,132,230);\n quad(165,112,192,147,193,239,168,230);\n //black\n fill(0);\n quad(130,122,130,142,111,164,111,147);\n quad(169,122,188,147,188,165,169,144);\n //white\n fill(200);\n beginShape();\n vertex(131,154);\n vertex(129,202);\n vertex(118,202);\n vertex(112,181);\n vertex(110,179);\n vertex(110,171);\n endShape(CLOSE);\n beginShape();\n vertex(170,154);\n vertex(190,172);\n vertex(190,182);\n vertex(188,181);\n vertex(182,201);\n vertex(172,201);\n endShape(CLOSE);\n\n fill(0);\n quad(134,193,166,193,154,342,146,342);\n fill(0);\n quad(142,180,159,180,152,352,148,352);\n //white\n fill(200);\n ellipse(150,374,6,50);\n\n //head\n\n fill(206,17,38);\n ellipse(149.5f,72,33,25);\n ellipse(149.5f,94,30,170);\n fill(0);\n ellipse(149.5f,94,20,160);\n fill(154,155,84);\n ellipse(149.5f,94,17,77);\n strokeWeight(2);\n line(143,74,158,74);\n line(142,104,158,104);\n strokeWeight(1);\n fill(200);\n bezier(143,15,147,2,153,2,155.5f,15);\n}", "public void constructDrawing(){\r\n\r\n resetToEmpty(); // should be empty anyway\r\n\r\n// universe=TFormula.atomicTermsInListOfFormulas(fInterpretation);\r\n \r\n Set <String> universeStrSet=TFormula.atomicTermsInListOfFormulas(fInterpretation);\r\n \r\n universe=\"\";\r\n \r\n for (Iterator i=universeStrSet.iterator();i.hasNext();)\r\n \tuniverse+=i.next();\r\n \r\n\r\n findPropertyExtensions();\r\n\r\n findRelationsExtensions();\r\n\r\n determineLines();\r\n\r\n createProperties();\r\n\r\n createIndividuals();\r\n\r\n createRelations();\r\n\r\n deselect(); //all shapes are created selected\r\n\r\n\r\n fPalette.check(); // some of the names may need updating\r\n\r\n repaint();\r\n\r\n}", "@Test\n public void test84() throws Throwable {\n Point2D.Double point2D_Double0 = new Point2D.Double();\n point2D_Double0.setLocation(0.0, 0.0);\n CategoryAxis categoryAxis0 = new CategoryAxis(\"\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot(categoryAxis0);\n DefaultPolarItemRenderer defaultPolarItemRenderer0 = new DefaultPolarItemRenderer();\n Color color0 = (Color)defaultPolarItemRenderer0.getItemLabelPaint(871, (-1498));\n Number[][] numberArray0 = new Number[5][3];\n Number[] numberArray1 = new Number[2];\n int int0 = Calendar.LONG_FORMAT;\n numberArray1[0] = (Number) 2;\n int int1 = Float.SIZE;\n numberArray1[1] = (Number) 32;\n numberArray0[0] = numberArray1;\n Number[] numberArray2 = new Number[4];\n numberArray2[0] = (Number) 0.0;\n numberArray2[1] = (Number) 0.0;\n numberArray2[2] = (Number) 0.0;\n numberArray2[3] = (Number) 0.0;\n numberArray0[1] = numberArray2;\n Number[] numberArray3 = new Number[1];\n numberArray3[0] = (Number) 0.0;\n numberArray0[2] = numberArray3;\n Number[] numberArray4 = new Number[7];\n numberArray4[0] = (Number) 0.0;\n long long0 = XYBubbleRenderer.serialVersionUID;\n numberArray4[1] = (Number) (-5221991598674249125L);\n numberArray4[2] = (Number) 0.0;\n numberArray4[3] = (Number) 0.0;\n numberArray4[4] = (Number) 0.0;\n int int2 = JDesktopPane.LIVE_DRAG_MODE;\n numberArray4[5] = (Number) 0;\n numberArray4[6] = (Number) 0.0;\n numberArray0[3] = numberArray4;\n Number[] numberArray5 = new Number[9];\n numberArray5[0] = (Number) 0.0;\n numberArray5[1] = (Number) 0.0;\n numberArray5[2] = (Number) 0.0;\n numberArray5[3] = (Number) 0.0;\n numberArray5[4] = (Number) 0.0;\n numberArray5[5] = (Number) 0.0;\n numberArray5[6] = (Number) 0.0;\n numberArray5[7] = (Number) 0.0;\n int int3 = SwingConstants.HORIZONTAL;\n numberArray5[8] = (Number) 0;\n numberArray0[4] = numberArray5;\n DefaultIntervalCategoryDataset defaultIntervalCategoryDataset0 = new DefaultIntervalCategoryDataset(numberArray0, numberArray0);\n LogarithmicAxis logarithmicAxis0 = new LogarithmicAxis(\"org.jfree.data.ComparableObjectItem\");\n LineAndShapeRenderer lineAndShapeRenderer0 = new LineAndShapeRenderer();\n CategoryPlot categoryPlot0 = null;\n try {\n categoryPlot0 = new CategoryPlot((CategoryDataset) defaultIntervalCategoryDataset0, categoryAxis0, (ValueAxis) logarithmicAxis0, (CategoryItemRenderer) lineAndShapeRenderer0);\n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1\n //\n assertThrownBy(\"org.jfree.data.category.DefaultIntervalCategoryDataset\", e);\n }\n }", "private static void addShaped()\n {}", "@Override\r\n public final void draw(final Circle s, final BufferedImage paper) {\n\r\n int xc = s.getX();\r\n int yc = s.getY();\r\n int r = s.getRaza();\r\n int x = 0, y = r;\r\n final int trei = 3;\r\n int doi = 2;\r\n int d = trei - doi * r;\r\n while (y >= x) {\r\n if (checkBorder(xc + x, yc + y, paper)) {\r\n paper.setRGB(xc + x, yc + y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - x, yc + y, paper)) {\r\n paper.setRGB(xc - x, yc + y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + x, yc - y, paper)) {\r\n paper.setRGB(xc + x, yc - y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - x, yc - y, paper)) {\r\n paper.setRGB(xc - x, yc - y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + y, yc + x, paper)) {\r\n paper.setRGB(xc + y, yc + x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + y, yc - x, paper)) {\r\n paper.setRGB(xc + y, yc - x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - y, yc + x, paper)) {\r\n paper.setRGB(xc - y, yc + x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - y, yc - x, paper)) {\r\n paper.setRGB(xc - y, yc - x, s.getBorderColor().getRGB());\r\n }\r\n\r\n x++;\r\n if (d > 0) {\r\n y--;\r\n final int patru = 4;\r\n final int zece = 10;\r\n d = d + patru * (x - y) + zece;\r\n } else {\r\n final int patru = 4;\r\n final int sase = 6;\r\n d = d + patru * x + sase;\r\n }\r\n if (checkBorder(xc + x, yc + y, paper)) {\r\n paper.setRGB(xc + x, yc + y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - x, yc + y, paper)) {\r\n paper.setRGB(xc - x, yc + y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + x, yc - y, paper)) {\r\n paper.setRGB(xc + x, yc - y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - x, yc - y, paper)) {\r\n paper.setRGB(xc - x, yc - y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + y, yc + x, paper)) {\r\n paper.setRGB(xc + y, yc + x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + y, yc - x, paper)) {\r\n paper.setRGB(xc + y, yc - x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - y, yc + x, paper)) {\r\n paper.setRGB(xc - y, yc + x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - y, yc - x, paper)) {\r\n paper.setRGB(xc - y, yc - x, s.getBorderColor().getRGB());\r\n }\r\n\r\n }\r\n floodFill(xc, yc, s.getFillColor(), s.getBorderColor(), paper);\r\n }", "public void med1() {\n DrawingPanel win = new DrawingPanel(WIDTH, HEIGHT);\n java.awt.Graphics g = win.getGraphics();\n win.setTitle(\"Med. 1\");\n win.setLocation(300, 10);\n win.setBackground(java.awt.Color.red);\n for(int y = -10; y < HEIGHT; y += 24) {\n for(int x = -10; x < WIDTH; x += 24) {\n octagon(x, y, g);\n }\n }\n }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "public String whatShape();", "@Override\r\n public final void draw(final Rectangle r, final BufferedImage paper) {\n String red;\r\n String green;\r\n String blue;\r\n if (Integer.toHexString(r.getBorderColor().getRed()).length() == 1) {\r\n red = \"0\" + Integer.toHexString(r.getBorderColor().getRed());\r\n } else {\r\n red = Integer.toHexString(r.getBorderColor().getRed());\r\n }\r\n if (Integer.toHexString(r.getBorderColor().getGreen()).length() == 1) {\r\n green = \"0\" + Integer.toHexString(r.getBorderColor().getGreen());\r\n } else {\r\n green = Integer.toHexString(r.getBorderColor().getGreen());\r\n }\r\n if (Integer.toHexString(r.getBorderColor().getBlue()).length() == 1) {\r\n blue = \"0\" + Integer.toHexString(r.getBorderColor().getBlue());\r\n } else {\r\n blue = Integer.toHexString(r.getBorderColor().getBlue());\r\n }\r\n String color = \"#\" + red + green + blue;\r\n\r\n draw(new Line((String.valueOf(r.getxSus())), String.valueOf(r.getySus()),\r\n String.valueOf(r.getxSus() + r.getLungime() - 1), String.valueOf(r.getySus()),\r\n color, String.valueOf(r.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(r.getxSus() + r.getLungime() - 1)),\r\n String.valueOf(r.getySus()), String.valueOf(r.getxSus() + r.getLungime() - 1),\r\n String.valueOf(r.getySus() + r.getInaltime() - 1), color,\r\n String.valueOf(r.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(r.getxSus() + r.getLungime() - 1)),\r\n String.valueOf(r.getySus() + r.getInaltime() - 1), String.valueOf(r.getxSus()),\r\n String.valueOf(r.getySus() + r.getInaltime() - 1), color,\r\n String.valueOf(r.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(r.getxSus())),\r\n String.valueOf(r.getySus() + r.getInaltime() - 1), String.valueOf(r.getxSus()),\r\n String.valueOf(r.getySus()), color, String.valueOf(r.getBorderColor().getAlpha()),\r\n paper), paper);\r\n\r\n for (int i = r.getxSus() + 1; i < r.getxSus() + r.getLungime() - 1; i++) {\r\n for (int j = r.getySus() + 1; j < r.getySus() + r.getInaltime() - 1; j++) {\r\n if (checkBorder(i, j, paper)) {\r\n paper.setRGB(i, j, r.getFillColor().getRGB());\r\n }\r\n }\r\n }\r\n }", "public void usa(){\n stroke(1);\n //back guns\n fill(0);\n rect(73,192,4,15);\n rect(224,192,4,15);\n rect(71,207,8,15);\n rect(222,207,8,15);\n rect(66,207,3,15);\n rect(232,207,3,17);\n rect(122,109,4,15);\n rect(175,110,4,15);\n rect(121,120,6,15);\n rect(174,120,6,15);\n rect(116,124,3,15);\n rect(182,124,3,15);\n\n //wings\n fill(1,0,74);//dark blue\n beginShape();\n vertex(14,286);\n vertex(61,236);\n vertex(88,308);\n vertex(51,334);\n vertex(14,313);\n endShape(CLOSE);\n beginShape();\n vertex(286,287);\n vertex(286,312);\n vertex(247,335);\n vertex(212,309);\n vertex(238,238);\n endShape(CLOSE);\n\n fill(200);//white\n beginShape();\n vertex(38,307);\n vertex(74,307);\n vertex(80,314);\n vertex(81,337);\n vertex(68,345);\n vertex(38,327);\n endShape(CLOSE);\n beginShape();\n vertex(219,316);\n vertex(226,308);\n vertex(262,308);\n vertex(262,326);\n vertex(231,345);\n vertex(219,336);\n endShape(CLOSE);\n\n fill(192,0,11);//red\n beginShape();\n vertex(96,191);\n vertex(61,230);\n vertex(60,269);\n vertex(96,312);\n vertex(101,300);\n vertex(100,247);\n vertex(112,232);\n vertex(132,232);\n vertex(131,186);\n endShape(CLOSE);\n beginShape();\n vertex(204,191);\n vertex(240,230);\n vertex(240,270);\n vertex(205,312);\n vertex(200,302);\n vertex(200,248);\n vertex(193,238);\n vertex(185,231);\n vertex(170,230);\n vertex(170,186);\n endShape(CLOSE);\n\n //white\n fill(200);\n beginShape();\n vertex(70,217);\n vertex(74,220);\n vertex(81,210);\n vertex(85,213);\n vertex(75,227);\n vertex(72,229);\n vertex(71,231);\n vertex(73,233);\n vertex(73,268);\n vertex(71,272);\n vertex(76,277);\n vertex(82,274);\n vertex(89,283);\n vertex(90,297);\n vertex(66,272);\n vertex(65,235);\n vertex(68,229);\n vertex(62,228);\n endShape(CLOSE);\n beginShape();\n vertex(228,217);\n vertex(225,218);\n vertex(218,211);\n vertex(215,213);\n vertex(223,227);\n vertex(226,226);\n vertex(230,230);\n vertex(227,233);\n vertex(228,270);\n vertex(229,272);\n vertex(223,276);\n vertex(218,276);\n vertex(210,283);\n vertex(211,296);\n vertex(235,273);\n vertex(234,233);\n vertex(232,228);\n vertex(237,227);\n endShape(CLOSE);\n\n //guns\n //white\n fill(200);\n beginShape();\n vertex(121,301);\n vertex(98,313);\n vertex(102,336);\n vertex(119,342);\n vertex(139,336);\n vertex(141,313);\n endShape(CLOSE);//l\n beginShape();\n vertex(159,312);\n vertex(162,336);\n vertex(180,342);\n vertex(200,336);\n vertex(202,313);\n vertex(180,302);\n endShape(CLOSE);\n\n //black\n fill(0);\n rect(105,315,30,30);\n rect(166,315,30,30);\n quad(105,344,109,355,131,355,135,344);\n quad(166,344,170,355,192,355,196,344);\n //green\n fill(0,0,67);\n rect(103,253,33,62);//l\n rect(164,252,33,62);//r\n //white\n fill(200);\n bezier(103,252,107,230,132,230,136,252);//l\n bezier(164,252,169,230,192,230,197,252);//r\n rect(103,280,33,25);//l\n rect(164,280,33,25);//r\n rect(104,319,33,26,3);//l\n rect(165,319,33,26,3);//r\n rect(115,310,7,28,8);//l\n rect(178,310,7,28,8);//r\n //green\n fill(0,0,67);\n rect(105,284,10,15);\n rect(124,284,10,15);\n rect(167,285,10,15);\n rect(185,284,10,15);\n\n //body-wings\n //green\n fill(0,0,67);//blue\n bezier(107,154,101,162,98,169,98,187);\n bezier(191,153,199,164,202,172,203,187);\n quad(107,154,98,186,98,223,107,224);\n quad(191,153,203,186,202,223,192,223);\n fill(192,0,11);//red\n quad(134,112,108,147,107,239,132,230);\n quad(165,112,192,147,193,239,168,230);\n //black\n fill(0);\n quad(130,122,130,142,111,164,111,147);\n quad(169,122,188,147,188,165,169,144);\n //white\n fill(200);\n beginShape();\n vertex(131,154);\n vertex(129,202);\n vertex(118,202);\n vertex(112,181);\n vertex(110,179);\n vertex(110,171);\n endShape(CLOSE);\n beginShape();\n vertex(170,154);\n vertex(190,172);\n vertex(190,182);\n vertex(188,181);\n vertex(182,201);\n vertex(172,201);\n endShape(CLOSE);\n\n //green\n fill(192,0,11);\n quad(134,193,166,193,154,342,146,342);\n fill(192,0,11);\n quad(142,180,159,180,152,352,148,352);\n //white\n fill(200);\n ellipse(150,374,6,50);\n\n //head\n fill(1,1,75);\n ellipse(149.5f,72,33,25);\n ellipse(149.5f,94,30,170);\n fill(0);\n ellipse(149.5f,94,20,160);\n fill(154,155,84);\n ellipse(149.5f,94,17,77);\n strokeWeight(2);\n line(143,74,158,74);\n line(142,104,158,104);\n strokeWeight(1);\n fill(200);\n bezier(143,15,147,2,153,2,155.5f,15);\n }", "public void drawHealth(int x, int y) {\n pushMatrix();\n translate(x, y);\n scale(0.8f);\n smooth();\n noStroke();\n fill(0);\n beginShape();\n vertex(52, 17);\n bezierVertex(52, -5, 90, 5, 52, 40);\n vertex(52, 17);\n bezierVertex(52, -5, 10, 5, 52, 40);\n endShape();\n fill(255,0,0);\n beginShape();\n vertex(50, 15);\n bezierVertex(50, -5, 90, 5, 50, 40);\n vertex(50, 15);\n bezierVertex(50, -5, 10, 5, 50, 40);\n endShape();\n popMatrix();\n}", "private void paintHand3(Graphics2D gfx)\r\n {\n \r\n }", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "public Shapes draw ( );", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\n\tpublic void BuildShape(Graphics g) {\n\t\t\n\t}", "Sketch apex();", "@Override\n\tpublic void draw1() {\n\n\t}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public void stateChanged(ChangeEvent e){\n\r\n repaint(); // at the moment we're being pretty crude with this, redrawing all the shapes\r\n\r\n\r\n\r\n if (fDeriverDocument!=null) // if this drawing has a journal, set it for saving\r\n fDeriverDocument.setDirty(true);\r\n\r\n\r\n\r\n }", "public void assignShape() {\n\t\t\n\t}", "@Override\n\tpublic void getShape() {\n\n\t}", "@Override\r\n public final void draw(final Square s, final BufferedImage paper) {\n String red;\r\n String green;\r\n String blue;\r\n if (Integer.toHexString(s.getBorderColor().getRed()).length() == 1) {\r\n red = \"0\" + Integer.toHexString(s.getBorderColor().getRed());\r\n } else {\r\n red = Integer.toHexString(s.getBorderColor().getRed());\r\n }\r\n if (Integer.toHexString(s.getBorderColor().getGreen()).length() == 1) {\r\n green = \"0\" + Integer.toHexString(s.getBorderColor().getGreen());\r\n } else {\r\n green = Integer.toHexString(s.getBorderColor().getGreen());\r\n }\r\n if (Integer.toHexString(s.getBorderColor().getBlue()).length() == 1) {\r\n blue = \"0\" + Integer.toHexString(s.getBorderColor().getBlue());\r\n } else {\r\n blue = Integer.toHexString(s.getBorderColor().getBlue());\r\n }\r\n String color = \"#\" + red + green + blue;\r\n \r\n draw(new Line((String.valueOf(s.getxSus())), String.valueOf(s.getySus()),\r\n String.valueOf(s.getxSus() + s.getLatura() - 1), String.valueOf(s.getySus()), color,\r\n String.valueOf(s.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(s.getxSus() + s.getLatura() - 1)),\r\n String.valueOf(s.getySus()), String.valueOf(s.getxSus() + s.getLatura() - 1),\r\n String.valueOf(s.getySus() + s.getLatura() - 1), color,\r\n String.valueOf(s.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(s.getxSus() + s.getLatura() - 1)),\r\n String.valueOf(s.getySus() + s.getLatura() - 1), String.valueOf(s.getxSus()),\r\n String.valueOf(s.getySus() + s.getLatura() - 1), color,\r\n String.valueOf(s.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(s.getxSus())),\r\n String.valueOf(s.getySus() + s.getLatura() - 1), String.valueOf(s.getxSus()),\r\n String.valueOf(s.getySus()), color, String.valueOf(s.getBorderColor().getAlpha()),\r\n paper), paper);\r\n for (int i = s.getxSus() + 1; i < s.getxSus() + s.getLatura() - 1; i++) {\r\n for (int j = s.getySus() + 1; j < s.getySus() + s.getLatura() - 1; j++) {\r\n if (checkBorder(i, j, paper)) {\r\n paper.setRGB(i, j, s.getFillColor().getRGB());\r\n }\r\n }\r\n }\r\n\r\n }", "@Override\n public void paint(Graphics g) {\n }", "ZHDraweeView mo91981h();", "public void uk(){\n stroke(1);\n //back guns\n fill(0);\n rect(73,192,4,15);\n rect(224,192,4,15);\n rect(71,207,8,15);\n rect(222,207,8,15);\n rect(66,207,3,15);\n rect(232,207,3,17);\n rect(122,109,4,15);\n rect(175,110,4,15);\n rect(121,120,6,15);\n rect(174,120,6,15);\n rect(116,124,3,15);\n rect(182,124,3,15);\n\n //wings--england\n fill(1,0,74);//dark blue\n beginShape();\n vertex(14,286);\n vertex(61,236);\n vertex(88,308);\n vertex(51,334);\n vertex(14,313);\n endShape(CLOSE);\n beginShape();\n vertex(286,287);\n vertex(286,312);\n vertex(247,335);\n vertex(212,309);\n vertex(238,238);\n endShape(CLOSE);\n\n noStroke();\n fill(255);\n rect(15,286,74,20);\n rect(212,284,74,20);\n rect(48,248,20,74);\n rect(233,248,20,74);\n quad(26,272,35,260,83,312,72,320);\n quad(262,260,272,272,229,312,220,318);\n quad(25,318,38,328,85,278,75,263);\n quad(264,324,280,316,228,262,214,274);\n\n fill(207,20,43);\n rect(51,248,15,74);\n rect(235,247,15,74);\n rect(15,289,74,15);\n rect(211,286,74,15);\n\n stroke(1);\n fill(0);//white\n beginShape();\n vertex(38,307);\n vertex(74,307);\n vertex(80,314);\n vertex(81,337);\n vertex(68,345);\n vertex(38,327);\n endShape(CLOSE);\n beginShape();\n vertex(219,316);\n vertex(226,308);\n vertex(262,308);\n vertex(262,326);\n vertex(231,345);\n vertex(219,336);\n endShape(CLOSE);\n\n fill(0,36,125);//red\n beginShape();\n vertex(96,191);\n vertex(61,230);\n vertex(60,269);\n vertex(96,312);\n vertex(101,300);\n vertex(100,247);\n vertex(112,232);\n vertex(132,232);\n vertex(131,186);\n endShape(CLOSE);\n beginShape();\n vertex(204,191);\n vertex(240,230);\n vertex(240,270);\n vertex(205,312);\n vertex(200,302);\n vertex(200,248);\n vertex(193,238);\n vertex(185,231);\n vertex(170,230);\n vertex(170,186);\n endShape(CLOSE);\n\n //gray\n fill(200);\n beginShape();\n vertex(70,217);\n vertex(74,220);\n vertex(81,210);\n vertex(85,213);\n vertex(75,227);\n vertex(72,229);\n vertex(71,231);\n vertex(73,233);\n vertex(73,268);\n vertex(71,272);\n vertex(76,277);\n vertex(82,274);\n vertex(89,283);\n vertex(90,297);\n vertex(66,272);\n vertex(65,235);\n vertex(68,229);\n vertex(62,228);\n endShape(CLOSE);\n beginShape();\n vertex(228,217);\n vertex(225,218);\n vertex(218,211);\n vertex(215,213);\n vertex(223,227);\n vertex(226,226);\n vertex(230,230);\n vertex(227,233);\n vertex(228,270);\n vertex(229,272);\n vertex(223,276);\n vertex(218,276);\n vertex(210,283);\n vertex(211,296);\n vertex(235,273);\n vertex(234,233);\n vertex(232,228);\n vertex(237,227);\n endShape(CLOSE);\n\n //guns\n //white\n fill(200);\n beginShape();\n vertex(121,301);\n vertex(98,313);\n vertex(102,336);\n vertex(119,342);\n vertex(139,336);\n vertex(141,313);\n endShape(CLOSE);//l\n beginShape();\n vertex(159,312);\n vertex(162,336);\n vertex(180,342);\n vertex(200,336);\n vertex(202,313);\n vertex(180,302);\n endShape(CLOSE);\n\n //black\n fill(0);\n rect(105,315,30,30);\n rect(166,315,30,30);\n quad(105,344,109,355,131,355,135,344);\n quad(166,344,170,355,192,355,196,344);\n\n fill(207,20,43);\n rect(103,253,33,62);//l\n rect(164,252,33,62);//r\n\n fill(200);\n bezier(103,252,107,230,132,230,136,252);//l\n bezier(164,252,169,230,192,230,197,252);//r\n rect(103,280,33,25);//l\n rect(164,280,33,25);//r\n fill(0,36,125);\n rect(104,319,33,26,3);//l\n rect(165,319,33,26,3);//r\n fill(200);\n rect(115,310,7,28,8);//l\n rect(178,310,7,28,8);//r\n\n fill(0,0,67);\n rect(105,284,10,15);\n rect(124,284,10,15);\n rect(167,285,10,15);\n rect(185,284,10,15);\n\n //body-wings\n\n fill(0,0,67);//blue\n bezier(107,154,101,162,98,169,98,187);\n bezier(191,153,199,164,202,172,203,187);\n quad(107,154,98,186,98,223,107,224);\n quad(191,153,203,186,202,223,192,223);\n fill(0,36,125);//red\n quad(134,112,108,147,107,239,132,230);\n quad(165,112,192,147,193,239,168,230);\n //black\n fill(0);\n quad(130,122,130,142,111,164,111,147);\n quad(169,122,188,147,188,165,169,144);\n //white\n fill(200);\n beginShape();\n vertex(131,154);\n vertex(129,202);\n vertex(118,202);\n vertex(112,181);\n vertex(110,179);\n vertex(110,171);\n endShape(CLOSE);\n beginShape();\n vertex(170,154);\n vertex(190,172);\n vertex(190,182);\n vertex(188,181);\n vertex(182,201);\n vertex(172,201);\n endShape(CLOSE);\n\n\n fill(0,36,125);\n quad(134,193,166,193,154,342,146,342);\n fill(192,0,11);\n quad(142,180,159,180,152,352,148,352);\n //white\n fill(200);\n ellipse(150,374,6,50);\n\n //head\n\n fill(1,1,75);\n ellipse(149.5f,72,33,25);\n ellipse(149.5f,94,30,170);\n fill(0);\n ellipse(149.5f,94,20,160);\n fill(154,155,84);\n ellipse(149.5f,94,17,77);\n strokeWeight(2);\n line(143,74,158,74);\n line(142,104,158,104);\n strokeWeight(1);\n fill(200);\n bezier(143,15,147,2,153,2,155.5f,15);\n}", "@Override\n\tpublic void draw() {\n\t}", "@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}", "@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}", "@Override\n\tpublic void draw3() {\n\n\t}", "public void drawSelector(int x) {\n int currentTime = millis() / 100;\n noStroke();\n if (currentTime % 13 == 0) {\n fill(200, 200, 100, 30);\n }\n else if (currentTime % 13 == 1) {\n fill(200, 200, 100, 40);\n }\n else if (currentTime % 13 == 2) {\n fill(200, 200, 100, 50);\n }\n else if (currentTime % 13 == 3) {\n fill(200, 200, 100, 60);\n }\n else if (currentTime % 13 == 4) {\n fill(200, 200, 100, 70);\n }\n else if (currentTime % 13 == 5) {\n fill(200, 200, 100, 80);\n }\n else if (currentTime % 13 == 6) {\n fill(200, 200, 100, 90);\n }\n else if (currentTime % 13 == 7) {\n fill(200, 200, 100, 100);\n }\n else if (currentTime % 13 == 8) {\n fill(200, 200, 100, 110);\n }\n else if (currentTime % 13 == 9) {\n fill(200, 200, 100, 120);\n }\n else if (currentTime % 13 == 10) {\n fill(200, 200, 100, 130);\n }\n else if (currentTime % 13 == 11) {\n fill(200, 200, 100, 140);\n }\n else if (currentTime % 13 == 12) {\n fill(200, 200, 100, 150);\n }\n else {\n fill(255, 200, 100);\n }\n switch(x){\n case 1:\n beginShape();\n vertex(80, 330);\n vertex(50, 360);\n vertex(80, 350);\n vertex(110, 360);\n endShape();\n break;\n case 2:\n beginShape();\n vertex(370, 330);\n vertex(340, 360);\n vertex(370, 350);\n vertex(400, 360);\n endShape();\n break;\n case 3:\n beginShape();\n vertex(80, 600);\n vertex(50, 630);\n vertex(80, 620);\n vertex(110, 630);\n endShape();\n break;\n case 4:\n beginShape();\n vertex(370, 600);\n vertex(340, 630);\n vertex(370, 620);\n vertex(400, 630);\n endShape();\n break;\n }\n\n}", "static void drawCrosses() { // draws a cross at each cell centre\n\t\tif (currentStage[currentSlice-1]>1)\n\t\t{\n\t\t\tfloat xc,yc;\n\t\t\t//GeneralPath path = new GeneralPath();\n\n\t\t\tfor (int i=0;i<pop.N;i++)\n\t\t\t{\n\t\t\t\txc = (float) ( (Balloon)(pop.BallList.get(i)) ).x0;\n\t\t\t\tyc = (float) ( (Balloon)(pop.BallList.get(i)) ).y0;\n\t\t\t\tfloat arm = 5;\n\n\t\t\t\t// label cell position\n\t\t\t\tjava.awt.geom.GeneralPath Nshape = new GeneralPath();\n\t\t\t\tNshape.moveTo(xc-arm, yc);\n\t\t\t\tNshape.lineTo(xc+arm, yc);\n\t\t\t\tNshape.moveTo(xc, yc-arm);\n\t\t\t\tNshape.lineTo(xc, yc+arm);\n\n\t\t\t\tRoi XROI = new ShapeRoi(Nshape);\n\t\t\t\tOL.add(XROI);\n\t\t\t}\n\t\t}\n\t}", "public void paintShapeOver(RMShapePainter aPntr)\n{\n if(getStrokeOnTop() && getStroke()!=null)\n getStroke().paint(aPntr, this);\n}", "public void polygone (Graphics g){\n\t}", "public void strength1(float x, float y){\n noStroke();\n fill(80);\n rect(x+7,y,66,6);\n bezier(x+7,y,x,y+1,x,y+5,x+7,y+6);\n bezier(x+73,y,x+80,y+1,x+80,y+5,x+73,y+6);\n rect(x+7,y+1,13,3);//1st blue ba\n bezier(x+7,y+1,x+1,y+2.5f,x+1,y+3.5f,x+7,y+4);\n}", "static void drawCellID() { // draws a cross at each cell centre\n\t\tfloat xc,yc;\n\t\t//GeneralPath path = new GeneralPath();\n\t\tif (currentStage[currentSlice-1]>1)\n\t\t{\n\t\t\tfor (int i=0;i<pop.N;i++)\n\t\t\t{\n\t\t\t\txc = (float) ( (Balloon)(pop.BallList.get(i)) ).x0;\n\t\t\t\tyc = (float) ( (Balloon)(pop.BallList.get(i)) ).y0;\n\t\t\t\tfloat arm = 5;\n\n\t\t\t\t// Label Cell number\n\t\t\t\tTextRoi TROI = new TextRoi((int)xc, (int)yc, (\"\"+i),new Font(\"SansSerif\", Font.BOLD, 12));\n\t\t\t\tTROI.setNonScalable(false);\n\t\t\t\tOL.add(TROI);\n\t\t\t}\n\t\t}\n\t}", "public void med2() {\n DrawingPanel win = new DrawingPanel(WIDTH, HEIGHT);\n java.awt.Graphics g = win.getGraphics();\n win.setTitle(\"Med. 2\");\n win.setLocation(600, 10);\n //This is as far as I could get in the 30 minutes\n //I had after work. I usually do all the work for \n //this class on the weekend.\n }", "public static void paint(Graphics2D g) {\n Shape shape = null;\n Paint paint = null;\n Stroke stroke = null;\n Area clip = null;\n \n float origAlpha = 1.0f;\n Composite origComposite = g.getComposite();\n if (origComposite instanceof AlphaComposite) {\n AlphaComposite origAlphaComposite = \n (AlphaComposite)origComposite;\n if (origAlphaComposite.getRule() == AlphaComposite.SRC_OVER) {\n origAlpha = origAlphaComposite.getAlpha();\n }\n }\n \n\t Shape clip_ = g.getClip();\nAffineTransform defaultTransform_ = g.getTransform();\n// is CompositeGraphicsNode\nfloat alpha__0 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0 = g.getClip();\nAffineTransform defaultTransform__0 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nclip = new Area(g.getClip());\nclip.intersect(new Area(new Rectangle2D.Double(0.0,0.0,48.0,48.0)));\ng.setClip(clip);\n// _0 is CompositeGraphicsNode\nfloat alpha__0_0 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0 = g.getClip();\nAffineTransform defaultTransform__0_0 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0 is CompositeGraphicsNode\nfloat alpha__0_0_0 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0 = g.getClip();\nAffineTransform defaultTransform__0_0_0 = g.getTransform();\ng.transform(new AffineTransform(0.023640267550945282f, 0.0f, 0.0f, 0.022995369508862495f, 45.02649688720703f, 39.46533203125f));\n// _0_0_0 is CompositeGraphicsNode\nfloat alpha__0_0_0_0 = origAlpha;\norigAlpha = origAlpha * 0.40206185f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0_0 = g.getClip();\nAffineTransform defaultTransform__0_0_0_0 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_0_0 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(302.8571472167969, 366.64788818359375), new Point2D.Double(302.8571472167969, 609.5050659179688), new float[] {0.0f,0.5f,1.0f}, new Color[] {new Color(0, 0, 0, 0),new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(2.7743890285491943f, 0.0f, 0.0f, 1.9697060585021973f, -1892.178955078125f, -872.8853759765625f));\nshape = new Rectangle2D.Double(-1559.2523193359375, -150.6968536376953, 1339.633544921875, 478.357177734375);\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_0_0;\ng.setTransform(defaultTransform__0_0_0_0);\ng.setClip(clip__0_0_0_0);\nfloat alpha__0_0_0_1 = origAlpha;\norigAlpha = origAlpha * 0.40206185f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0_1 = g.getClip();\nAffineTransform defaultTransform__0_0_0_1 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_0_1 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(605.7142944335938, 486.64788818359375), 117.14286f, new Point2D.Double(605.7142944335938, 486.64788818359375), new float[] {0.0f,1.0f}, new Color[] {new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(2.7743890285491943f, 0.0f, 0.0f, 1.9697060585021973f, -1891.633056640625f, -872.8853759765625f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(-219.61876, -150.68037);\n((GeneralPath)shape).curveTo(-219.61876, -150.68037, -219.61876, 327.65042, -219.61876, 327.65042);\n((GeneralPath)shape).curveTo(-76.74459, 328.55087, 125.78146, 220.48074, 125.78138, 88.45424);\n((GeneralPath)shape).curveTo(125.78138, -43.572304, -33.655437, -150.68036, -219.61876, -150.68037);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_0_1;\ng.setTransform(defaultTransform__0_0_0_1);\ng.setClip(clip__0_0_0_1);\nfloat alpha__0_0_0_2 = origAlpha;\norigAlpha = origAlpha * 0.40206185f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0_2 = g.getClip();\nAffineTransform defaultTransform__0_0_0_2 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_0_2 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(605.7142944335938, 486.64788818359375), 117.14286f, new Point2D.Double(605.7142944335938, 486.64788818359375), new float[] {0.0f,1.0f}, new Color[] {new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(-2.7743890285491943f, 0.0f, 0.0f, 1.9697060585021973f, 112.76229858398438f, -872.8853759765625f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(-1559.2523, -150.68037);\n((GeneralPath)shape).curveTo(-1559.2523, -150.68037, -1559.2523, 327.65042, -1559.2523, 327.65042);\n((GeneralPath)shape).curveTo(-1702.1265, 328.55087, -1904.6525, 220.48074, -1904.6525, 88.45424);\n((GeneralPath)shape).curveTo(-1904.6525, -43.572304, -1745.2157, -150.68036, -1559.2523, -150.68037);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_0_2;\ng.setTransform(defaultTransform__0_0_0_2);\ng.setClip(clip__0_0_0_2);\norigAlpha = alpha__0_0_0;\ng.setTransform(defaultTransform__0_0_0);\ng.setClip(clip__0_0_0);\nfloat alpha__0_0_1 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_1 = g.getClip();\nAffineTransform defaultTransform__0_0_1 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_1 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(25.0, 4.311681747436523), 19.996933f, new Point2D.Double(25.0, 4.311681747436523), new float[] {0.0f,0.25f,0.68f,1.0f}, new Color[] {new Color(143, 179, 217, 255),new Color(114, 159, 207, 255),new Color(52, 101, 164, 255),new Color(32, 74, 135, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(0.01216483861207962f, 2.585073947906494f, -3.2504982948303223f, 0.015296213328838348f, 38.710994720458984f, -60.38692092895508f));\nshape = new RoundRectangle2D.Double(4.499479293823242, 4.50103759765625, 38.993865966796875, 39.00564193725586, 4.95554780960083, 4.980924129486084);\ng.setPaint(paint);\ng.fill(shape);\npaint = new LinearGradientPaint(new Point2D.Double(20.0, 4.0), new Point2D.Double(20.0, 44.0), new float[] {0.0f,1.0f}, new Color[] {new Color(52, 101, 164, 255),new Color(32, 74, 135, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nstroke = new BasicStroke(1.0f,0,1,4.0f,null,0.0f);\nshape = new RoundRectangle2D.Double(4.499479293823242, 4.50103759765625, 38.993865966796875, 39.00564193725586, 4.95554780960083, 4.980924129486084);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_1;\ng.setTransform(defaultTransform__0_0_1);\ng.setClip(clip__0_0_1);\nfloat alpha__0_0_2 = origAlpha;\norigAlpha = origAlpha * 0.5f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_2 = g.getClip();\nAffineTransform defaultTransform__0_0_2 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_2 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(25.0, -0.05076269432902336), new Point2D.Double(25.285715103149414, 57.71428680419922), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nstroke = new BasicStroke(1.0f,0,1,4.0f,null,0.0f);\nshape = new RoundRectangle2D.Double(5.5017547607421875, 5.489577293395996, 36.996883392333984, 37.007320404052734, 3.013584613800049, 2.9943172931671143);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_2;\ng.setTransform(defaultTransform__0_0_2);\ng.setClip(clip__0_0_2);\nfloat alpha__0_0_3 = origAlpha;\norigAlpha = origAlpha * 0.5f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_3 = g.getClip();\nAffineTransform defaultTransform__0_0_3 = g.getTransform();\ng.transform(new AffineTransform(0.19086800515651703f, 0.1612599939107895f, 0.1612599939107895f, -0.19086800515651703f, 7.2809157371521f, 24.306129455566406f));\n// _0_0_3 is CompositeGraphicsNode\norigAlpha = alpha__0_0_3;\ng.setTransform(defaultTransform__0_0_3);\ng.setClip(clip__0_0_3);\nfloat alpha__0_0_4 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_4 = g.getClip();\nAffineTransform defaultTransform__0_0_4 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_4 is ShapeNode\norigAlpha = alpha__0_0_4;\ng.setTransform(defaultTransform__0_0_4);\ng.setClip(clip__0_0_4);\nfloat alpha__0_0_5 = origAlpha;\norigAlpha = origAlpha * 0.44444442f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_5 = g.getClip();\nAffineTransform defaultTransform__0_0_5 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_5 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(31.0, 12.875), new Point2D.Double(3.2591991424560547, 24.893844604492188), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.535999596118927f, 5.498996734619141f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(0.91099966, 27.748999);\n((GeneralPath)shape).curveTo(28.15259, 29.47655, 10.984791, 13.750064, 32.036, 13.248998);\n((GeneralPath)shape).lineTo(37.325214, 24.364037);\n((GeneralPath)shape).curveTo(27.718748, 19.884726, 21.14768, 42.897034, 0.78599966, 29.373999);\n((GeneralPath)shape).lineTo(0.91099966, 27.748999);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_5;\ng.setTransform(defaultTransform__0_0_5);\ng.setClip(clip__0_0_5);\nfloat alpha__0_0_6 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_6 = g.getClip();\nAffineTransform defaultTransform__0_0_6 = g.getTransform();\ng.transform(new AffineTransform(0.665929913520813f, 0.0f, 0.0f, 0.665929913520813f, 11.393279075622559f, 4.907034873962402f));\n// _0_0_6 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(32.5, 16.5625), 14.4375f, new Point2D.Double(32.5, 16.5625), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(46.9375, 16.5625);\n((GeneralPath)shape).curveTo(46.9375, 24.536112, 40.47361, 31.0, 32.5, 31.0);\n((GeneralPath)shape).curveTo(24.526388, 31.0, 18.0625, 24.536112, 18.0625, 16.5625);\n((GeneralPath)shape).curveTo(18.0625, 8.588889, 24.526388, 2.125, 32.5, 2.125);\n((GeneralPath)shape).curveTo(40.47361, 2.125, 46.9375, 8.588889, 46.9375, 16.5625);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_6;\ng.setTransform(defaultTransform__0_0_6);\ng.setClip(clip__0_0_6);\nfloat alpha__0_0_7 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_7 = g.getClip();\nAffineTransform defaultTransform__0_0_7 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_7 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(39.0, 26.125), new Point2D.Double(36.375, 20.4375), new float[] {0.0f,1.0f}, new Color[] {new Color(27, 31, 32, 255),new Color(186, 189, 182, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.535999596118927f, -1.5010031461715698f));\nstroke = new BasicStroke(4.0f,1,0,4.0f,null,0.0f);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(33.036, 14.998998);\n((GeneralPath)shape).lineTo(46.036, 43.999);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_7;\ng.setTransform(defaultTransform__0_0_7);\ng.setClip(clip__0_0_7);\nfloat alpha__0_0_8 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_8 = g.getClip();\nAffineTransform defaultTransform__0_0_8 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_8 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(33.036, 14.998998);\n((GeneralPath)shape).lineTo(46.036, 43.999);\ng.setPaint(paint);\ng.fill(shape);\npaint = new LinearGradientPaint(new Point2D.Double(42.90625, 42.21875), new Point2D.Double(44.8125, 41.40625), new float[] {0.0f,0.64444447f,1.0f}, new Color[] {new Color(46, 52, 54, 255),new Color(136, 138, 133, 255),new Color(85, 87, 83, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.535999596118927f, -1.5010031461715698f));\nstroke = new BasicStroke(2.0f,1,0,4.0f,null,0.0f);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(33.036, 14.998998);\n((GeneralPath)shape).lineTo(46.036, 43.999);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_8;\ng.setTransform(defaultTransform__0_0_8);\ng.setClip(clip__0_0_8);\nfloat alpha__0_0_9 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_9 = g.getClip();\nAffineTransform defaultTransform__0_0_9 = g.getTransform();\ng.transform(new AffineTransform(1.272613286972046f, 0.0f, 0.0f, 1.272613286972046f, 12.072080612182617f, -6.673644065856934f));\n// _0_0_9 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(15.5, 24.75);\n((GeneralPath)shape).lineTo(11.728554, 24.19539);\n((GeneralPath)shape).lineTo(9.451035, 27.075687);\n((GeneralPath)shape).lineTo(8.813057, 23.317446);\n((GeneralPath)shape).lineTo(5.3699408, 22.041456);\n((GeneralPath)shape).lineTo(8.747095, 20.273342);\n((GeneralPath)shape).lineTo(8.896652, 16.604443);\n((GeneralPath)shape).lineTo(11.621825, 19.26993);\n((GeneralPath)shape).lineTo(15.157373, 18.278416);\n((GeneralPath)shape).lineTo(13.464468, 21.69389);\n((GeneralPath)shape).lineTo(15.5, 24.75);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_9;\ng.setTransform(defaultTransform__0_0_9);\ng.setClip(clip__0_0_9);\nfloat alpha__0_0_10 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_10 = g.getClip();\nAffineTransform defaultTransform__0_0_10 = g.getTransform();\ng.transform(new AffineTransform(0.5838837027549744f, 0.5838837027549744f, -0.5838837027549744f, 0.5838837027549744f, 24.48128318786621f, 9.477374076843262f));\n// _0_0_10 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(15.5, 24.75);\n((GeneralPath)shape).lineTo(11.728554, 24.19539);\n((GeneralPath)shape).lineTo(9.451035, 27.075687);\n((GeneralPath)shape).lineTo(8.813057, 23.317446);\n((GeneralPath)shape).lineTo(5.3699408, 22.041456);\n((GeneralPath)shape).lineTo(8.747095, 20.273342);\n((GeneralPath)shape).lineTo(8.896652, 16.604443);\n((GeneralPath)shape).lineTo(11.621825, 19.26993);\n((GeneralPath)shape).lineTo(15.157373, 18.278416);\n((GeneralPath)shape).lineTo(13.464468, 21.69389);\n((GeneralPath)shape).lineTo(15.5, 24.75);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_10;\ng.setTransform(defaultTransform__0_0_10);\ng.setClip(clip__0_0_10);\nfloat alpha__0_0_11 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_11 = g.getClip();\nAffineTransform defaultTransform__0_0_11 = g.getTransform();\ng.transform(new AffineTransform(0.5791025757789612f, 0.12860369682312012f, -0.12860369682312012f, 0.5791025757789612f, 5.244583606719971f, 16.59849739074707f));\n// _0_0_11 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(15.5, 24.75);\n((GeneralPath)shape).lineTo(11.728554, 24.19539);\n((GeneralPath)shape).lineTo(9.451035, 27.075687);\n((GeneralPath)shape).lineTo(8.813057, 23.317446);\n((GeneralPath)shape).lineTo(5.3699408, 22.041456);\n((GeneralPath)shape).lineTo(8.747095, 20.273342);\n((GeneralPath)shape).lineTo(8.896652, 16.604443);\n((GeneralPath)shape).lineTo(11.621825, 19.26993);\n((GeneralPath)shape).lineTo(15.157373, 18.278416);\n((GeneralPath)shape).lineTo(13.464468, 21.69389);\n((GeneralPath)shape).lineTo(15.5, 24.75);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_11;\ng.setTransform(defaultTransform__0_0_11);\ng.setClip(clip__0_0_11);\nfloat alpha__0_0_12 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_12 = g.getClip();\nAffineTransform defaultTransform__0_0_12 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.005668648984283209f, 1.9989968538284302f));\n// _0_0_12 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(31.994285583496094, 16.859249114990234), new Point2D.Double(37.7237434387207, 16.859249114990234), new float[] {0.0f,0.7888889f,1.0f}, new Color[] {new Color(238, 238, 236, 255),new Color(255, 255, 255, 255),new Color(238, 238, 236, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(32.9375, 11.9375);\n((GeneralPath)shape).curveTo(32.87939, 11.943775, 32.84168, 11.954412, 32.78125, 11.96875);\n((GeneralPath)shape).curveTo(32.480507, 12.044301, 32.22415, 12.283065, 32.09375, 12.5625);\n((GeneralPath)shape).curveTo(31.963346, 12.841935, 31.958935, 13.12817, 32.09375, 13.40625);\n((GeneralPath)shape).lineTo(35.84375, 21.75);\n((GeneralPath)shape).curveTo(35.837093, 21.759354, 35.837093, 21.771896, 35.84375, 21.78125);\n((GeneralPath)shape).curveTo(35.853104, 21.787907, 35.865646, 21.787907, 35.875, 21.78125);\n((GeneralPath)shape).curveTo(35.884354, 21.787907, 35.896896, 21.787907, 35.90625, 21.78125);\n((GeneralPath)shape).curveTo(35.912907, 21.771896, 35.912907, 21.759354, 35.90625, 21.75);\n((GeneralPath)shape).curveTo(36.14071, 21.344227, 36.483208, 21.082874, 36.9375, 20.96875);\n((GeneralPath)shape).curveTo(37.18631, 20.909716, 37.44822, 20.917711, 37.6875, 20.96875);\n((GeneralPath)shape).curveTo(37.696854, 20.975407, 37.709396, 20.975407, 37.71875, 20.96875);\n((GeneralPath)shape).curveTo(37.725407, 20.959396, 37.725407, 20.946854, 37.71875, 20.9375);\n((GeneralPath)shape).lineTo(33.96875, 12.59375);\n((GeneralPath)shape).curveTo(33.824844, 12.242701, 33.48375, 11.983006, 33.125, 11.9375);\n((GeneralPath)shape).curveTo(33.06451, 11.929827, 32.99561, 11.931225, 32.9375, 11.9375);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_12;\ng.setTransform(defaultTransform__0_0_12);\ng.setClip(clip__0_0_12);\norigAlpha = alpha__0_0;\ng.setTransform(defaultTransform__0_0);\ng.setClip(clip__0_0);\norigAlpha = alpha__0;\ng.setTransform(defaultTransform__0);\ng.setClip(clip__0);\ng.setTransform(defaultTransform_);\ng.setClip(clip_);\n\n\t}", "public static void main(String[] args) {\n MyImageVector.Double img = new MyImageVector.Double(new Loader().loadSVGDocument(\"D:\\\\sample_images_PA\\\\trash_test_mem\\\\images_de_test_pr_figure_assistant\\\\test_scaling_SVG.svg\"));\n //MyImage2D img = new MyImage2D.Double(0, 0, \"D:\\\\sample_images_PA\\\\trash_test_mem\\\\mini\\\\focused_Series010.png\");\n img.addAssociatedObject(new MyRectangle2D.Double(10, 10, 128, 256));\n img.addAssociatedObject(new MyRectangle2D.Double(200, 20, 256, 256));\n img.addAssociatedObject(new MyRectangle2D.Double(100, 10, 256, 128));\n MyPoint2D.Double text = new MyPoint2D.Double(220, 220);\n text.setText(new ColoredTextPaneSerializable(new StyledDoc2Html().reparse(\"<i>test<i>\"), \"\"));\n img.addAssociatedObject(text);\n CheckLineArts iopane = new CheckLineArts(img, 1.5f, true);\n if (!iopane.noError) {\n int result = JOptionPane.showOptionDialog(null, new Object[]{iopane}, \"Check stroke width of line arts\", JOptionPane.CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE, null, new String[]{\"Accept automated solution\", \"Ignore\"}, null);\n if (result == JOptionPane.OK_OPTION) {\n //--> replace objects with copy\n Object strokeData = iopane.getModifiedStrokeData();\n if (strokeData instanceof ArrayList) {\n img.setAssociatedObjects(((ArrayList<Object>) strokeData));\n// for (Object string : img.getAssociatedObjects()) {\n// if (string instanceof PARoi) {\n// System.out.println(((PARoi) string).getStrokeSize());\n// }\n// }\n } else if (strokeData instanceof String) {\n ((MyImageVector) img).setSvg_content_serializable((String) strokeData);\n ((MyImageVector) img).reloadDocFromString();\n }\n }\n }\n System.exit(0);\n }", "public void calling() {\n\t\tCircle tc = new Circle(new Coordinate(-73, 42), 0);\n\t\tif (PaintShapes.painting && logger.isDebugEnabled()) {\n\t\t\tPaintShapes.paint.color = PaintShapes.paint.redTranslucence;\n\t\t\tPaintShapes.paint.addCircle(tc);\n\t\t\tPaintShapes.paint.myRepaint();\n\t\t}\n\t\t\n//\t\tMap<Double, Coordinate>angle_coordinate=new HashMap<Double, Coordinate>();\n//\t\tLinkedList<double[]>coverangle=new LinkedList<double[]>();\n//\t\tMap<Double[], Coordinate[]>uncoverArc=new HashMap<Double[], Coordinate[]>();\n//\t\tdouble a1[]=new double[2];\n//\t\ta1[0]=80;\n//\t\ta1[1]=100;\n//\t\tangle_coordinate.put(a1[0], new Coordinate(1, 0));\n//\t\tangle_coordinate.put(a1[1], new Coordinate(0, 1));\n//\t\tcoverangle.add(a1);\n//\t\tdouble a2[]=new double[2];\n//\t\ta2[0]=0;\n//\t\ta2[1]=30;\n//\t\tangle_coordinate.put(a2[0], new Coordinate(2, 0));\n//\t\tangle_coordinate.put(a2[1], new Coordinate(0, 2));\n//\t\tcoverangle.add(a2);\n//\t\tdouble a3[]=new double[2];\n//\t\ta3[0]=330;\n//\t\ta3[1]=360;\n//\t\tangle_coordinate.put(a3[0], new Coordinate(3, 0));\n//\t\tangle_coordinate.put(a3[1], new Coordinate(7, 7));\n//\t\tcoverangle.add(a3);\n//\t\tdouble a4[]=new double[2];\n//\t\ta4[0]=20;\n//\t\ta4[1]=90;\n//\t\tangle_coordinate.put(a4[0], new Coordinate(4, 0));\n//\t\tangle_coordinate.put(a4[1], new Coordinate(0, 4));\n//\t\tcoverangle.add(a4);\n//\t\tdouble a5[]=new double[2];\n//\t\ta5[0]=180;\n//\t\ta5[1]=240;\n//\t\tangle_coordinate.put(a5[0], new Coordinate(5, 0));\n//\t\tangle_coordinate.put(a5[1], new Coordinate(0, 5));\n//\t\tcoverangle.add(a5);\n//\t\tdouble a6[]=new double[2];\n//\t\ta6[0]=270;\n//\t\ta6[1]=300;\n//\t\tangle_coordinate.put(a6[0], new Coordinate(6, 0));\n//\t\tangle_coordinate.put(a6[1], new Coordinate(0, 6));\n//\t\tcoverangle.add(a6);\n//\t\tdouble a7[]=new double[2];\n//\t\ta7[0]=360;\n//\t\ta7[1]=360;\n//\t\tangle_coordinate.put(a7[0], new Coordinate(7, 7));\n//\t\tangle_coordinate.put(a7[1], new Coordinate(7, 7));\n//\t\tcoverangle.add(a7);\n//\t\t// sort the cover arc\n//\t\tint minindex = 0;\n//\t\tfor (int j = 0; j < coverangle.size() - 1; j++) {\n//\t\t\tminindex = j;\n//\t\t\tfor (int k = j + 1; k < coverangle.size(); k++) {\n//\t\t\t\tif (coverangle.get(minindex)[0] > coverangle.get(k)[0]) {\n//\t\t\t\t\tminindex = k;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tdouble tem[] = new double[2];\n//\t\t\ttem = coverangle.get(j);\n//\t\t\tcoverangle.set(j, coverangle.get(minindex));\n//\t\t\tcoverangle.set(minindex, tem);\n//\t\t}\n//\t\tfor(int ii=0;ii<coverangle.size();ii++){\n//\t\t\tdouble aa[]=coverangle.get(ii);\n//\t\t\tSystem.out.println(aa[0]+\" \"+aa[1]);\n//\t\t}\n//\t\tSystem.out.println(\"----------------------------\");\n//\t\t// find the uncover arc\n//\t\tint startposition = 0;\n//\t\twhile (startposition < coverangle.size() - 1) {\n//\t\t\tdouble coverArc[] = coverangle.get(startposition);\n//\t\t\tboolean stop = false;\n//\t\t\tint m = 0;\n//\t\t\tfor (m = startposition + 1; m < coverangle.size() && !stop; m++) {\n//\t\t\t\tdouble bb[] = coverangle.get(m);\n//\t\t\t\tif (bb[0] <= coverArc[1]) {\n//\t\t\t\t\tcoverArc[0] = Math.min(coverArc[0], bb[0]);\n//\t\t\t\t\tcoverArc[1] = Math.max(coverArc[1], bb[1]);\n//\t\t\t\t} else {\n//\t\t\t\t\tCoordinate uncover[]=new Coordinate[2];\n//\t\t\t\t\t//record the consistant uncover angle\n//\t\t\t\t\tDouble[] uncoverA=new Double[2];\n//\t\t\t\t\tuncoverA[0]=coverArc[1];\n//\t\t\t\t\tuncoverA[1]=bb[0];\n//\t\t\t\t\tIterator<Map.Entry<Double, Coordinate>> entries = angle_coordinate\n//\t\t\t\t\t\t\t.entrySet().iterator();\n//\t\t\t\t\twhile (entries.hasNext()) {\n//\t\t\t\t\t\tMap.Entry<Double, Coordinate> entry = entries.next();\n//\t\t\t\t\t\tif (entry.getKey() == coverArc[1])\n//\t\t\t\t\t\t\tuncover[0] = entry.getValue();\n//\t\t\t\t\t\telse if (entry.getKey() == bb[0])\n//\t\t\t\t\t\t\tuncover[1] = entry.getValue();\n//\t\t\t\t\t}\n//\t\t\t\t\tuncoverArc.put(uncoverA, uncover);\n//\t\t\t\t\tstartposition = m;\n//\t\t\t\t\tstop = true;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tif(m==coverangle.size()){\n//\t\t\t\tstartposition=m;\n//\t\t\t}\n//\t\t}\n//\t\n//\t\tSystem.out.println(uncoverArc.entrySet().size());\n//\t\tint n=uncoverArc.entrySet().size();\n//\t\tint k=2;\n//\t\twhile(n>0){\n//\t\t\tIterator<Map.Entry<Double[],Coordinate[]>>it=uncoverArc.entrySet().iterator();\n//\t\t\tMap.Entry<Double[], Coordinate[]>newneighbor=it.next();\n//\t\t\tSystem.out.println(newneighbor.getKey()[0]+\" \"+newneighbor.getValue()[0]);\n//\t\t\tSystem.out.println(newneighbor.getKey()[1]+\" \"+newneighbor.getValue()[1]);\n//\t\t uncoverArc.remove(newneighbor.getKey());\n//\t\t \n//\t\tif(k==2){\n//\t\tDouble[] a8=new Double[2];\n//\t\ta8[0]=(double)450;\n//\t\ta8[1]=(double)500;\n//\t\tCoordinate a9[]=new Coordinate[2];\n//\t\ta9[0]=new Coordinate(9, 0);\n//\t\ta9[1]=new Coordinate(0, 9);\n//\t\tuncoverArc.put(a8, a9);\n//\t\tk++;\n//\t\t}\n//\t\tn=uncoverArc.entrySet().size();\n//\t\tSystem.out.println(\"new size=\"+uncoverArc.entrySet().size());\n//\t\t}\n//\t\t\t\n\t\t\t\n\t\t\n\t\t/***************new test*************************************/\n//\t\tCoordinate startPoint=new Coordinate(500, 500);\n//\t\tLinkedList<VQP>visitedcircle_Queue=new LinkedList<VQP>();\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(500, 500), 45));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(589, 540), 67));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(500, 550), 95));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(439, 560), 124));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(460, 478), 69));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(580, 580), 70));\n//\t\tIterator<VQP>testiterator=visitedcircle_Queue.iterator();\n//\t\twhile(testiterator.hasNext()){\n//\t\t\tVQP m1=testiterator.next();\n//\t\t\tCircle tm=new Circle(m1.getCoordinate(), m1.getRadius());\n//\t\t\tif (PaintShapes.painting && logger.isDebugEnabled()) {\n//\t\t\t\tPaintShapes.paint.color = PaintShapes.paint.redTranslucence;\n//\t\t\t\tPaintShapes.paint.addCircle(tm);\n//\t\t\t\tPaintShapes.paint.myRepaint();\n//\t\t\t}\n//\t\t\t\n//\t\t}\n//\t\tdouble coverradius=calculateIncircle(startPoint, visitedcircle_Queue);\n//\t\tCircle incircle=new Circle(startPoint, coverradius);\n//\t\tif (PaintShapes.painting && logger.isDebugEnabled()) {\n//\t\t\tPaintShapes.paint.color = PaintShapes.paint.blueTranslucence;\n//\t\t\tPaintShapes.paint.addCircle(incircle);\n//\t\t\tPaintShapes.paint.myRepaint();\n//\t\t}\n//\t\t/***************end test*************************************/\n\t\tEnvelope envelope = new Envelope(-79.76259, -71.777491,\n\t\t\t\t40.477399, 45.015865);\n\t\tdouble area=envelope.getArea();\n\t\tdouble density=57584/area;\n\t\tSystem.out.println(\"density=\"+density);\n\t\tSystem.out.println(\"end calling!\");\n\t}", "@Override\r\n public void draw() {\n }", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "@Override\n public void draw() {\n super.draw(); \n double radius = (this.getLevel() * 0.0001 + 0.025) * 2.5e10;\n double x = this.getR().cartesian(0) - Math.cos(rot) * radius;\n double y = this.getR().cartesian(1) - Math.sin(rot) * radius;\n StdDraw.setPenRadius(0.01);\n StdDraw.setPenColor(StdDraw.RED);\n StdDraw.point(x, y);\n \n }", "public abstract void draw( );", "static void drawPop(){\n\t\tif (currentStage[currentSlice-1]>3)\n\t\t{\n\t\t\tfloat x1,y1;\n\t\t\tint N = pop.N;\n\n\t\t\tfor (int i=0;i<N;i++)\n\t\t\t{\n\t\t\t\tBalloon bal;\n\t\t\t\tbal = (Balloon)(pop.BallList.get(i));\n\t\t\t\tint n = bal.XX.length;\n\n\t\t\t\t// filtering (for testing purposes)\n\t\t\t\tboolean isToDraw = true;\n\t\t\t\tBalloon B0 = ((Balloon)(pop.BallList.get(i)));\n\t\t\t\tB0.mass_geometry();\n\t\t\t\tif (pop.contacts != null)\n\t\t\t\t{\n\t\t\t\t\tfor (int k=0;k<B0.n0;k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (pop.contacts[i][k] == -1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisToDraw = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// draw\n\t\t\t\tshape.setWindingRule(0);\n\t\t\t\tif (isToDraw)\n\t\t\t\t{\n\t\t\t\t\tPolygonRoi Proi = B0.Proi;\n\t\t\t\t\tProi.setStrokeColor(Color.red);\n\t\t\t\t Proi.setStrokeWidth(3);\n\t\t\t\t OL.add(Proi);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void draw(Graphics2D g) {\n\t\t\n\t}", "@Test\n public void test78() throws Throwable {\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double((-1851.4229665529), (-1851.4229665529), (-1851.4229665529), (-1851.4229665529));\n rectangle2D_Double0.y = (-1851.4229665529);\n rectangle2D_Double0.setRect(0.0, (-216.554), 10.0, 0.0);\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n BasicStroke basicStroke0 = (BasicStroke)combinedDomainCategoryPlot0.getRangeGridlineStroke();\n }", "@Override\n public void draw()\n {\n }", "@Test\n public void test83() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n RingPlot ringPlot0 = new RingPlot();\n Color color0 = (Color)ringPlot0.getBaseSectionOutlinePaint();\n combinedDomainCategoryPlot0.setNoDataMessagePaint(color0);\n DefaultKeyedValuesDataset defaultKeyedValuesDataset0 = new DefaultKeyedValuesDataset();\n RingPlot ringPlot1 = new RingPlot((PieDataset) defaultKeyedValuesDataset0);\n StandardPieToolTipGenerator standardPieToolTipGenerator0 = new StandardPieToolTipGenerator(\"%c+@_45aZ\");\n ringPlot1.setToolTipGenerator(standardPieToolTipGenerator0);\n BasicStroke basicStroke0 = (BasicStroke)ringPlot1.getLabelLinkStroke();\n ringPlot1.zoom((-1302.45679683));\n combinedDomainCategoryPlot0.setRangeCrosshairStroke(basicStroke0);\n combinedDomainCategoryPlot0.clearDomainMarkers();\n LineRenderer3D lineRenderer3D0 = new LineRenderer3D();\n int int0 = combinedDomainCategoryPlot0.getIndexOf(lineRenderer3D0);\n NumberAxis numberAxis0 = new NumberAxis();\n Arc2D.Double arc2D_Double0 = new Arc2D.Double();\n numberAxis0.setLeftArrow(arc2D_Double0);\n // Undeclared exception!\n try { \n combinedDomainCategoryPlot0.setRangeAxis((-1), (ValueAxis) numberAxis0);\n } catch(IllegalArgumentException e) {\n //\n // Requires index >= 0.\n //\n assertThrownBy(\"org.jfree.chart.util.AbstractObjectList\", e);\n }\n }", "@Override\n\tprotected void outlineShape(Graphics graphics) {\n\t}", "public void paint(Graphics graphics)\r\n/* 30: */ {\r\n/* 31:27 */ Graphics2D g = (Graphics2D)graphics;\r\n/* 32:28 */ int height = getHeight();\r\n/* 33:29 */ int width = getWidth();\r\n/* 34: */ }", "public static void main(String[] args) {\n\n\t\t\n\t\t\n\t\t\n\t\tRect r = new Rect();\n\t\t\n\t\n\t\tshape p = r;\n\t\n\t\n\t System.out.println(p.name);\n\t\n\t\n\t\n\t}", "@Override\n\tpublic void redraw() {\n\t\t\n\t}", "@Override\n void drawShape(BufferedImage image, int color) {\n Point diem2 = new Point(diem.getX()+canh, diem.getY());\n Point td = new Point(diem.getX()+canh/2, diem.getY());\n \n \n Point dinh = new Point(td.getX(), td.getY()+h);\n \n Point diem_thuc = Point.convert(diem);\n Point diem_2_thuc = Point.convert(diem2);\n Point dinh_thuc = Point.convert(dinh);\n Point td_thuc = Point.convert(td);\n \n Line canh1=new Line(dinh_thuc, diem_thuc);\n canh1.drawShape(image, ColorConstant.BLACK_RGB);\n Line canh2=new Line(diem_thuc, diem_2_thuc);\n canh2.drawShape(image, ColorConstant.BLACK_RGB);\n Line canh3=new Line(diem_2_thuc, dinh_thuc);\n canh3.drawShape(image, ColorConstant.BLACK_RGB);\n int k =5;\n for(int i =canh1.getPoints().size()-5;i>=5;i--){\n \n for(int j = 0;j<canh*5/2-5;j++){\n \n Point ve = new Point(td_thuc.getX()-canh*5/2+j+5, td_thuc.getY()-k);\n if(ve.getX()>canh1.getPoints().get(i).getX()+5){\n Point.putPoint(ve, image, color);\n }\n }\n k++;\n }\n k=5;\n for(int i =canh3.getPoints().size()-5;i>=5;i--){\n \n for(int j = 0;j<canh*5/2-5;j++){\n Point ve = null;\n \n ve = new Point(td_thuc.getX()+canh*5/2-j-5, td_thuc.getY()-k);\n if(ve.getX()<canh3.getPoints().get(i).getX()-5){\n Point.putPoint(ve, image, color);\n }\n }\n k++;\n }\n }", "public void draw();", "public void draw();", "public void draw();", "void drawMancalaShape(Graphics g, int x, int y, int width, int height, int stoneNum, String pitLabel);", "private void drawData(Graphics g, int radius, int xCenter, int yCenter)\r\n/* 77: */ {\r\n/* 78: 54 */ double angle = 6.283185307179586D / this.data.length;\r\n/* 79: 55 */ int[] x = new int[this.data.length];\r\n/* 80: 56 */ int[] y = new int[this.data.length];\r\n/* 81: 57 */ int[] dataX = new int[this.data.length];\r\n/* 82: 58 */ int[] dataY = new int[this.data.length];\r\n/* 83: 59 */ int[] contourX = new int[this.data.length];\r\n/* 84: 60 */ int[] contourY = new int[this.data.length];\r\n/* 85: 61 */ int ballRadius = radius * this.ballPercentage / 100;\r\n/* 86: 62 */ for (int i = 0; i < this.data.length; i++)\r\n/* 87: */ {\r\n/* 88: 63 */ double theta = i * angle;\r\n/* 89: 64 */ x[i] = ((int)(radius * Math.cos(theta)));\r\n/* 90: 65 */ y[i] = ((int)(radius * Math.sin(theta)));\r\n/* 91: 66 */ dataX[i] = ((int)(x[i] * this.data[i]));\r\n/* 92: 67 */ dataY[i] = ((int)(y[i] * this.data[i]));\r\n/* 93: 68 */ contourX[i] = (xCenter + dataX[i]);\r\n/* 94: 69 */ contourY[i] = (yCenter + dataY[i]);\r\n/* 95: */ }\r\n/* 96: 72 */ if (this.fillArea)\r\n/* 97: */ {\r\n/* 98: 73 */ Color handle = g.getColor();\r\n/* 99: 74 */ g.setColor(this.areaColor);\r\n/* 100: 75 */ g.fillPolygon(contourX, contourY, this.data.length);\r\n/* 101: 76 */ g.setColor(handle);\r\n/* 102: */ }\r\n/* 103: 79 */ for (int i = 0; i < this.data.length; i++) {\r\n/* 104: 80 */ g.drawLine(xCenter, yCenter, xCenter + x[i], yCenter + y[i]);\r\n/* 105: */ }\r\n/* 106: 83 */ if ((this.connectDots) || (this.fillArea)) {\r\n/* 107: 84 */ for (int i = 0; i < this.data.length; i++)\r\n/* 108: */ {\r\n/* 109: 85 */ int nextI = (i + 1) % this.data.length;\r\n/* 110: 86 */ g.drawLine(contourX[i], contourY[i], contourX[nextI], contourY[nextI]);\r\n/* 111: */ }\r\n/* 112: */ }\r\n/* 113: 90 */ for (int i = 0; i < this.data.length; i++)\r\n/* 114: */ {\r\n/* 115: 91 */ Color handle = g.getColor();\r\n/* 116: 92 */ g.setColor(this.ballColor);\r\n/* 117: 93 */ drawDataPoint(g, ballRadius, contourX[i], contourY[i]);\r\n/* 118: 94 */ g.setColor(handle);\r\n/* 119: */ }\r\n/* 120: */ }", "@Override\r\n public void draw()\r\n {\n\r\n }", "@Override\n public void draw() {\n }", "void drawShape(Shape s) {\n }", "public static void main(String arg[]) {\n Shape s ;\n s= new Shape() ;\n s.draw();\n s= new Rectange();\n s.draw();\n}", "public void SubRect(){\n\t\n}", "protected void plotScatterDiagram(){\n double xmax = a + 5. * gamma;\r\n double xmin = a - 5. * gamma;\r\n DatanGraphics.openWorkstation(getClass().getName(), \"\");\r\n DatanGraphics.setFormat(0., 0.);\r\n DatanGraphics.setWindowInComputingCoordinates(xmin, xmax, 0., .5);\r\n DatanGraphics.setViewportInWorldCoordinates(-.15, .9, .16, .86);\r\n DatanGraphics.setWindowInWorldCoordinates(-.414, 1., 0., 1.);\r\n DatanGraphics.setBigClippingWindow();\r\n DatanGraphics.chooseColor(2);\r\n DatanGraphics.drawFrame();\r\n DatanGraphics.drawScaleX(\"y\");\r\n DatanGraphics.drawScaleY(\"f(y)\");\r\n DatanGraphics.drawBoundary();\r\n double xpl[] = new double[2];\r\n double ypl[] = new double[2];\r\n// plot scatter diagram\r\n DatanGraphics.chooseColor(1);\r\n for(int i = 0; i < y.length; i++){\r\n xpl[0] = y[i];\r\n xpl[1] = y[i];\r\n ypl[0] = 0.;\r\n ypl[0] = .1;\r\n DatanGraphics.drawPolyline(xpl, ypl); \r\n }\r\n// draw Breit-Wigner corresponding to solution\r\n int npl = 100;\r\n xpl = new double[npl];\r\n ypl = new double[npl];\r\n double dpl = (xmax - xmin) / (double)(npl - 1);\r\n for(int i = 0; i < npl; i++){\r\n xpl[i] = xmin + (double)i * dpl;\r\n ypl[i] = breitWigner(xpl[i], x.getElement(0), x.getElement(1));\r\n }\r\n DatanGraphics.chooseColor(5);\r\n DatanGraphics.drawPolyline(xpl, ypl);\r\n// draw caption\r\n String sn = \"N = \" + nny;\r\n\t numForm.setMaximumFractionDigits(3);\r\n \t numForm.setMinimumFractionDigits(3);\r\n String sx1 = \", x_1# = \" + numForm.format(x.getElement(0));\r\n String sx2 = \", x_2# = \" + numForm.format(x.getElement(1));\r\n String sdx1 = \", &D@x_1# = \" + numForm.format(Math.sqrt(cx.getElement(0,0)));\r\n String sdx2 = \", &D@x_2# = \" + numForm.format(Math.sqrt(cx.getElement(1,1)));\r\n caption = sn + sx1 + sx2 + sdx1 + sdx2;\r\n DatanGraphics.setBigClippingWindow();\r\n DatanGraphics.chooseColor(2);\r\n DatanGraphics.drawCaption(1., caption);\r\n DatanGraphics.closeWorkstation();\r\n\r\n }", "public void paintComponent(Graphics g) {\r\n \tsuper.paintComponent(g);\r\n \t/*print the boat*/\r\n \tReadFile file = new ReadFile();\r\n \t\tfile.openFile(); \r\n \t\t/* Map include all the points of the boat*/\r\n \t\tMap <String,ArrayList<Point>> map = new HashMap<String,ArrayList<Point>>();\r\n \t\tmap = file.parseFile(); \r\n \t\tfor (String key : map.keySet()) {\r\n \t \tif (key.startsWith(\"line\"))\r\n \t \t{\r\n \t \t System.out.println(key + \" \" + map.get(key));\r\n \t \t\tint x1 = (int) map.get(key).get(0).getX();\r\n \t \t\t int y1 = (int) map.get(key).get(0).getY();\r\n \t \t\t int x2 = (int)map.get(key).get(1).getX();\r\n \t \t\t int y2 = (int)map.get(key).get(1).getY();\r\n \t \t\t drawLine(x1,y1,x2,y2,g);\t \t\t\r\n \t \t}\r\n \t \tif (key.startsWith(\"circle\"))\r\n \t \t{\r\n \t \t System.out.println(key + \" \" + map.get(key));\r\n \t \t\tint x1 = (int) map.get(key).get(0).getX();\r\n \t \t\t int y1 = (int) map.get(key).get(0).getY();\r\n \t \t\t int x2 = (int)map.get(key).get(1).getX();\r\n \t \t\t int y2 = (int)map.get(key).get(1).getY();\r\n \t \t\t drawCircle(x1,y1,x2,y2,g);\t \t\t\r\n \t \t}\r\n \t \tif (key.startsWith(\"curve\"))\r\n \t \t{\r\n \t \t System.out.println(key + \" \" + map.get(key));\r\n \t \t\tint x1 = (int) map.get(key).get(0).getX();\r\n \t \t\tint y1 = (int) map.get(key).get(0).getY();\r\n \t \t\tint x2 = (int)map.get(key).get(1).getX();\r\n \t \t\tint y2 = (int)map.get(key).get(1).getY();\r\n \t \t\tint x3 = (int)map.get(key).get(2).getX();\r\n\t \t\tint y3 = (int)map.get(key).get(2).getY();\r\n\t \t\tint x4 = (int)map.get(key).get(3).getX();\r\n \t \t\tint y4 = (int)map.get(key).get(3).getY();\r\n \t \t\tdrawCurve(x1,y1,x2,y2,x3,y3,x4,y4,200,g); \t \t} \t\t\r\n \t\t}\r\n \t\t\r\n \t\t\r\n \t\t\r\n \tfor (int i = 0; i < clicksforLine.size(); i++ )\r\n\t\t{\r\n \t\tg.drawRect((int)Math.round(clicksforLine.get(i).getX()),(int) Math.round(clicksforLine.get(i).getY()),2,2);\r\n\r\n\t\t}\r\n \tfor (int j = 0; j < clicksforCircle.size(); j++ )\r\n\t\t{\r\n \t\tg.drawRect((int)Math.round(clicksforCircle.get(j).getX()),(int) Math.round(clicksforCircle.get(j).getY()),2,2);\r\n\r\n\t\t}\r\n \tfor (int j = 0; j < clicksforPoly.size(); j++ )\r\n\t\t{\r\n \t\tg.drawRect((int)Math.round(clicksforPoly.get(j).getX()),(int) Math.round(clicksforPoly.get(j).getY()),2,2);\r\n\r\n\t\t}\r\n \tfor (int j = 0; j < clicksforCurve.size(); j++ )\r\n\t\t{\r\n \t\tg.drawRect((int)Math.round(clicksforCurve.get(j).getX()),(int) Math.round(clicksforCurve.get(j).getY()),2,2);\r\n\r\n\t\t}\r\n \r\n \t\r\n \t//check is the list of the shape LINE has at least 2 points to draw line\r\n \tif (clicksforLine.size() >= 2)\r\n {\r\n \tfor (int i=0; i < clicksforLine.size(); i+=2 )\r\n \t \t\t{\r\n \t\t int x1=0, y1=0, x2=0, y2=0;\r\n \t\t \t\tSystem.out.println(\"Line case\");\r\n \t\t\t x1 = (int) clicksforLine.get(i).getX();\r\n \t\t\t y1 = (int) clicksforLine.get(i).getY();\r\n \t\t\t x2 = (int) clicksforLine.get(i+1).getX();\r\n \t\t\t y2 = (int) clicksforLine.get(i+1).getY();\r\n \t\t\t drawLine(x1,y1,x2,y2,g);\r\n \t \t \t\t\r\n \t \t}\r\n }\r\n //check is the list of the shape CIRCLE has at least 2 points to draw circle\r\n if (clicksforCircle.size() >= 2)\r\n {\t\r\n \tfor (int i=0; i < clicksforCircle.size(); i+=2 )\r\n \t\t \t{\r\n \t\t int x1=0, y1=0, x2=0, y2=0;\r\n \t\t \t\tSystem.out.println(\"Line case\");\r\n \t\t\t x1 = (int) clicksforCircle.get(i).getX();\r\n \t\t\t y1 = (int) clicksforCircle.get(i).getY();\r\n \t\t\t x2 = (int) clicksforCircle.get(i+1).getX();\r\n \t\t\t y2 = (int) clicksforCircle.get(i+1).getY();\r\n \t\t\t drawCircle(x1,y1,x2,y2,g);\r\n \t \t \t\t\r\n \t\t \t}\r\n \t }\r\n //check is the list of the shape LINE has at least 2 points to draw line\r\n if (clicksforPoly.size() >= 2)\r\n \t {\r\n \t\t \tfor (int i=0; i < clicksforPoly.size(); i+=2 )\r\n \t\t \t{\r\n \t\t int x1=0, y1=0, x2=0, y2=0;\r\n \t\t \t\tSystem.out.println(\"Line case\");\r\n \t\t\t x1 = (int) clicksforPoly.get(i).getX();\r\n \t\t\t y1 = (int) clicksforPoly.get(i).getY();\r\n \t\t\t x2 = (int) clicksforPoly.get(i+1).getX();\r\n \t\t\t y2 = (int) clicksforPoly.get(i+1).getY();\r\n \t\t\t String text = MyWindow.input.getText();\r\n \t\t\t drawPolygon(x1,y1,x2,y2,Integer.parseInt(text),g);\r\n \t \t \t\t\r\n \t\t \t}\r\n \t }\r\n //check is the list of the shape CURVE has at least 2 points to draw curve\r\n if (clicksforCurve.size() >= 4)\r\n \t {\r\n \t\t \tfor (int i=0; i < clicksforCurve.size(); i+=4 )\r\n \t\t \t{\r\n \t int x1=0, y1=0, x2=0, y2=0, x3=0,y3=0,x4=0,y4=0;\r\n \t \t\tSystem.out.println(\"Line case\");\r\n \t\t x1 = (int) clicksforCurve.get(i).getX();\r\n \t\t y1 = (int) clicksforCurve.get(i).getY();\r\n \t\t x2 = (int) clicksforCurve.get(i+1).getX();\r\n \t\t y2 = (int) clicksforCurve.get(i+1).getY();\r\n \t\t x3 = (int) clicksforCurve.get(i+2).getX();\r\n \t\t y3 = (int) clicksforCurve.get(i+2).getY();\r\n \t\t x4 = (int) clicksforCurve.get(i+3).getX();\r\n \t\t y4 = (int) clicksforCurve.get(i+3).getY();\r\n \t\t String text = MyWindow.input.getText();\r\n \t\t drawCurve(x1,y1,x2,y2,x3,y3,x4,y4,Integer.parseInt(text),g);\r\n \t \t}\r\n \t }\r\n\t\r\n }", "public void mouseClicked(RMShapeMouseEvent anEvent)\n{\n // Iterate over mouse listeners and forward\n for(int i=0, iMax=getListenerCount(RMShapeMouseListener.class); i<iMax; i++)\n getListener(RMShapeMouseListener.class, i).mouseClicked(anEvent);\n}", "public void paintShape(RMShapePainter aPntr)\n{\n // If fill/stroke present, have them paint\n if(getFill()!=null)\n getFill().paint(aPntr, this);\n if(getStroke()!=null && !getStrokeOnTop())\n getStroke().paint(aPntr, this);\n}", "public abstract PaintObject[][] separate(Rectangle _r);", "public void paint (Graphics g)\r\n {\n }", "@Override\n public Shape getCelkoveHranice() {\n return new Rectangle2D.Double(super.getX() + 22, super.getY() + 45, 45, 45);\n }", "public Pencil(double x, double y, double width, double height)\n {\n\n\t//outline of the pencil\n GeneralPath body = new GeneralPath();\n\t\n body.moveTo(200,400);\n body.lineTo(150,350);\n\tbody.lineTo(200,300);\n\tbody.lineTo(600,300);\n\tbody.lineTo(600,400);\n\tbody.lineTo(200,400);\n\tbody.closePath();\n\n\t//vertical line that outlines the lead tip of the pencil\n\tGeneralPath leadLine = new GeneralPath();\n\n\tleadLine.moveTo(162, 362);\n\tleadLine.lineTo(162, 338);\n\n\t//vertical line that separates the tip of the pencil from the rest of the body\n\tGeneralPath tipLine = new GeneralPath();\n\ttipLine.moveTo(200, 400);\n\ttipLine.lineTo(200, 300);\n\t\n\t//vertical line that outlines the eraser\n\tShape eraser = ShapeTransforms.translatedCopyOf(tipLine, 350, 0.0);\n \n // now we put the whole thing together ino a single path.\n GeneralPath wholePencil = new GeneralPath ();\n wholePencil.append(body, false);\n\twholePencil.append(leadLine, false);\n wholePencil.append(tipLine, false);\n\twholePencil.append(eraser, false);\n \n // translate to the origin by subtracting the original upper left x and y\n // then translate to (x,y) by adding x and y\n \n Shape s = ShapeTransforms.translatedCopyOf(wholePencil, -ORIG_ULX + x, -ORIG_ULY + y);\n \n\t// scale to correct height and width\n s = ShapeTransforms.scaledCopyOf(s,\n\t\t\t\t\t width/ORIG_WIDTH,\n\t\t\t\t\t height/ORIG_HEIGHT) ;\n\t \n\t// Use the GeneralPath constructor that takes a shape and returns\n\t// it as a general path to set our instance variable cup\n \n\tthis.set(new GeneralPath(s));\n \n }", "public void paint (Graphics g){\n \r\n }", "abstract void draw();", "abstract void draw();", "public interface DrawingObject {\n\t// interface: blueprints but doesn't tell you how to do it\n\n\t/**\n\t * Draw the object.\n\t * \n\t * @param g\n\t */\n\tpublic void draw(Graphics g);\n\n\t/**\n\t * Called to start drawing a new object.\n\t * \n\t * @param p\n\t */\n\tpublic void start(Point p);\n\n\t/**\n\t * Called repeatedly while dragging a new object out to size (typically\n\t * called from within a mouseDragged() ).\n\t * \n\t * @param p\n\t */\n\tpublic void drag(Point p);\n\n\t/**\n\t * Called to move an object. Often called repeatedly inside a\n\t * mouseDragged().\n\t * \n\t * @param p\n\t */\n\tpublic void move(Point p);\n\n\t/**\n\t * Does the math to determine the number/position of points of star\n\t */\n\tpublic void doMath();\n\n\t/**\n\t * Set the bounding rectangle.\n\t * \n\t * @param b\n\t */\n\tpublic void setBounds(Rectangle b);\n\n\t/**\n\t * Determines if the point clicked is contained by the object.\n\t * \n\t * @param p\n\t * @return\n\t */\n\tpublic boolean contains(Point p);\n\n\t/**\n\t * Called to set the color of a shape\n\t */\n\tpublic void setColor(Color c);\n\n\t/**\n\t * Called to get the color of a shape\n\t * \n\t * @return\n\t */\n\tpublic Color getColor();\n}", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "public String draw() {\n\t\treturn null;\r\n\t}", "@Test\n public void test73() throws Throwable {\n ExtendedCategoryAxis extendedCategoryAxis0 = new ExtendedCategoryAxis(\"jhpWb\\\"F\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) extendedCategoryAxis0);\n ExtendedCategoryAxis extendedCategoryAxis1 = (ExtendedCategoryAxis)combinedDomainCategoryPlot0.getDomainAxisForDataset(777);\n List list0 = combinedDomainCategoryPlot0.getCategories();\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo();\n rectangle2D_Double0.setFrameFromDiagonal(4364.40135, 0.0, (double) 777, (double) 777);\n PlotRenderingInfo plotRenderingInfo0 = new PlotRenderingInfo(chartRenderingInfo0);\n Rectangle2D.Double rectangle2D_Double1 = (Rectangle2D.Double)plotRenderingInfo0.getDataArea();\n rectangle2D_Double0.setRect((Rectangle2D) rectangle2D_Double1);\n RectangleEdge rectangleEdge0 = combinedDomainCategoryPlot0.getDomainAxisEdge();\n }", "void drawStuff () {drawStuff (img.getGraphics ());}", "IShape getCurrentShape();", "void updateInterpretationBoards(){\n if (fShapes.size() > 0) {\r\n Iterator iter = fShapes.iterator();\r\n\r\n while (iter.hasNext()){\r\n TShape theShape=(TShape) iter.next();\r\n if (theShape.fTypeID==TShape.IDInterpretationBoard){\r\n theShape.setSelected(false);\r\n // ((TInterpretationBoard)theShape).updateInterpretationBoard();\r\n }\r\n }\r\n }\r\n\r\n\r\n }", "public static void drawPicture1(Graphics2D g2) {\r\n\r\n\tRodent r1 = new Rodent(100,250,50);\r\n\tg2.setColor(Color.CYAN); g2.draw(r1);\r\n\t\r\n\t// Make a black rodent that's half the size, \r\n\t// and moved over 150 pixels in x direction\r\n\r\n\tShape r2 = ShapeTransforms.scaledCopyOfLL(r1,0.5,0.5);\r\n\tr2 = ShapeTransforms.translatedCopyOf(r2,150,0);\r\n\tg2.setColor(Color.BLACK); g2.draw(r2);\r\n\t\r\n\t// Here's a rodent that's 4x as big (2x the original)\r\n\t// and moved over 150 more pixels to right.\r\n\tr2 = ShapeTransforms.scaledCopyOfLL(r2,4,4);\r\n\tr2 = ShapeTransforms.translatedCopyOf(r2,150,0);\r\n\t\r\n\t// We'll draw this with a thicker stroke\r\n\tStroke thick = new BasicStroke (4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL); \r\n\t\r\n\t// for hex colors, see (e.g.) http://en.wikipedia.org/wiki/List_of_colors\r\n\t// #002FA7 is \"International Klein Blue\" according to Wikipedia\r\n\t// In HTML we use #, but in Java (and C/C++) its 0x\r\n\t\r\n\tStroke orig=g2.getStroke();\r\n\tg2.setStroke(thick);\r\n\tg2.setColor(new Color(0x002FA7)); \r\n\tg2.draw(r2); \r\n\t\r\n\t// Draw two Rabbits\r\n\t\r\n\tRabbit ra1 = new Rabbit(50,350,40);\r\n\tRabbit ra2 = new Rabbit(200,350,200);\r\n\t\r\n\tg2.draw(ra1);\r\n\tg2.setColor(new Color(0x8F00FF)); g2.draw(ra2);\r\n\t\r\n\t// @@@ FINALLY, SIGN AND LABEL YOUR DRAWING\r\n\t\r\n\tg2.setStroke(orig);\r\n\tg2.setColor(Color.BLACK); \r\n\tg2.drawString(\"A few rabbits by Josephine Vo\", 20,20);\r\n }", "public Shape getClipShape() { return null; }", "public void display (Graphics2D g, double x, double y);", "void find_it () {\n xt = 210; yt = 105; fact = 50.0;\n if (viewflg != VIEW_FORCES) zoom_slider_pos_y = 50;\n current_part.spanfac = (int)(2.0*fact*current_part.aspect_rat*.3535);\n xt1 = xt + current_part.spanfac;\n yt1 = yt - current_part.spanfac;\n xt2 = xt - current_part.spanfac;\n yt2 = yt + current_part.spanfac;\n \n }", "@Override\r\n\tpublic void draw() {\n\t\tPoint p = this.getP();\r\n\t\tint start_point = p.getX();\r\n\t\tint end_point = p.getY();\r\n\t\t\r\n\t\tint width = this.getWidth();\r\n\t\tint height = this.getHeight();\r\n\t\t\r\n\t\tSystem.out.println(\"�l�p�`��`�� �_(\" + start_point +\",\"+ end_point + \")����Ƃ��āA��\"+ width +\"����\"+ height +\"�̎l�p�`\");\r\n\t}", "void method0() {\nprivate double edgeCrossesIndicator = 0;\n/** counter for additions to the edgeCrossesIndicator\n\t\t */\nprivate int additions = 0;\n/** the vertical level where the cell wrapper is inserted\n\t\t */\nint level = 0;\n/** current position in the grid\n\t\t */\nint gridPosition = 0;\n/** priority for movements to the barycenter\n\t\t */\nint priority = 0;\n/** reference to the wrapped cell\n\t\t */\nVertexView vertexView = null;\n}", "void drawRegion (double b, double e) {\n begT = b; endT = e;\n drawStuff (img.getGraphics ());\n }", "public void repaint (Graphics g){\r\n g.drawLine(10,10,150,150); // Draw a line from (10,10) to (150,150)\r\n \r\n g.setColor(Color.darkGray);\r\n g.fillRect( 0 , 0 , \r\n 4000 , 4000 ); \r\n \r\n g.setColor(Color.BLACK);\r\n \r\n BufferedImage image;\r\n \r\n for(int h = 0; h < 16; h++){\r\n for(int w =0; w< 16; w++){\r\n //g.drawImage(image.getSubimage(w *16, h*16, 16, 16), 0+(32*w),0 +(32*h), 32,32,this);\r\n g.drawRect(w *32, h*32, 32, 32);\r\n \r\n if(coord.xSelected >=0){\r\n g.setColor(Color.WHITE);\r\n g.drawRect(coord.xSelected *32, coord.ySelected *32, 32, 32);\r\n g.setColor(Color.BLACK);\r\n }\r\n }\r\n }\r\n \r\n \r\n }", "public void drawNonEssentialComponents(){\n\t\t\n\t}", "@Test\r\n public void testDrawingDoubler() {\r\n System.out.println(\"testDrawingDoubler\");\r\n ad = new AreaDoubler();\r\n d.accept(ad);\r\n \r\n Drawing dd = (Drawing)ad.getFigureDoubled();\r\n Circle dd_c = (Circle) dd.getComponents().get(0);\r\n Rectangle dd_r = (Rectangle) dd.getComponents().get(1);\r\n \r\n \r\n Circle c_doubled = (Circle)d.getComponents().get(0);\r\n double c_radius_doubled = c_doubled.getRadius()* Math.sqrt(2.0);\r\n \r\n assertEquals(c_radius_doubled, dd_c.getRadius(), 0.02);\r\n \r\n Rectangle r_doubled = (Rectangle)d.getComponents().get(1);\r\n double r_height_doubled = r_doubled.getHeight()* Math.sqrt(2.0);\r\n double r_width_doubled= r_doubled.getWidth()*Math.sqrt(2.0);\r\n \r\n assertEquals(r_height_doubled, dd_r.getHeight(), 0.02);\r\n assertEquals(r_width_doubled, dd_r.getWidth(), 0.02);\r\n \r\n }", "public void Pj() {\n\t\tGroup root = new Group();\r\n\t\tLine body=new Line(350,660,350,650);\r\n\t\tLine Lhand=new Line(350,656,346,653);\r\n\t\tLine Rhand=new Line(350,656,354,653);\r\n\t\tLine Rfeed=new Line(350,660,354,663);\r\n\t\tLine Lfeed=new Line(350,660,346,663);\r\n\t\tCircle head=new Circle(346,646,4);\r\n\t\troot.getChildren().addAll(body,Lhand,Rhand,Rfeed,Lfeed,head);\r\n\t\t\r\n\t}", "public void beginDrawing();" ]
[ "0.5932944", "0.57046723", "0.56490856", "0.559769", "0.55841833", "0.5579794", "0.5559276", "0.55490065", "0.5532054", "0.54942894", "0.5490811", "0.5490811", "0.5487369", "0.54820305", "0.54793876", "0.5466656", "0.5466534", "0.5446126", "0.5446126", "0.5433069", "0.5410284", "0.5410284", "0.54090554", "0.5395223", "0.5394036", "0.5391696", "0.5391563", "0.5389254", "0.538598", "0.5384129", "0.5383845", "0.53788", "0.5374567", "0.53687614", "0.53512466", "0.53512466", "0.53481543", "0.5330695", "0.53239167", "0.53130996", "0.5300201", "0.52761126", "0.52563787", "0.5248197", "0.5243215", "0.52429503", "0.52363145", "0.5229398", "0.52259713", "0.52224565", "0.52211654", "0.52168065", "0.51903594", "0.51862377", "0.5165859", "0.5165682", "0.516557", "0.516384", "0.5162468", "0.5155246", "0.5150165", "0.51468015", "0.51468015", "0.51468015", "0.51445615", "0.5142886", "0.5137607", "0.51325387", "0.5127176", "0.51261973", "0.5119593", "0.5107886", "0.5098674", "0.5095573", "0.50913227", "0.50903696", "0.50886524", "0.5082563", "0.508161", "0.50801504", "0.50792795", "0.50792795", "0.5075015", "0.5073443", "0.5071103", "0.5068495", "0.5062282", "0.5058425", "0.5052747", "0.5043683", "0.5041253", "0.5038653", "0.5038636", "0.50373787", "0.5036611", "0.50360864", "0.50350845", "0.5022518", "0.5020951", "0.50208974", "0.50176" ]
0.0
-1
Author: Raphael Rossiter Data: 23/08/2007
public static Timestamp getSQLTimesTemp(Date data) { Timestamp dt = new Timestamp(data.getTime()); return dt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void interface1(){\n noStroke();\n fill(10,100);//light gray\n rect(0,60,600,590);\n fill(220);//gray\n noStroke();\n beginShape();\n vertex(365,40);\n vertex(600,40);\n vertex(600,80);\n vertex(365,80);\n vertex(345,60);\n endShape(CLOSE);\n fill(19,70,100,100);//dark blue\n rect(0,110,600,215);\n rect(0,380,600,215);\n}", "private void paintTheImage() {\n SPainter bruhmoment = new SPainter(\"Kanizsa Square\" ,400,400);\n\n SCircle dot = new SCircle(75);\n paintBlueCircle(bruhmoment,dot);\n paintRedCircle(bruhmoment,dot);\n paintGreenCircles(bruhmoment,dot);\n\n SSquare square= new SSquare(200);\n paintWhiteSquare(bruhmoment,square);\n\n\n }", "private void paintTheImage() {\n SPainter klee = new SPainter(\"Red Cross\", 600,600);\n SRectangle rectangle = new SRectangle(500, 100);\n klee.setColor(Color.RED);\n klee.paint(rectangle);\n klee.tl();\n klee.paint(rectangle);\n }", "public void russia(){\n stroke(1);\n //back guns\n fill(0);\n rect(73,192,4,15);\n rect(224,192,4,15);\n rect(71,207,8,15);\n rect(222,207,8,15);\n rect(66,207,3,15);\n rect(232,207,3,17);\n rect(122,109,4,15);\n rect(175,110,4,15);\n rect(121,120,6,15);\n rect(174,120,6,15);\n rect(116,124,3,15);\n rect(182,124,3,15);\n\n //wings\n fill(165,0,0);//gray\n beginShape();\n vertex(14,286);\n vertex(61,236);\n vertex(88,308);\n vertex(51,334);\n vertex(14,313);\n endShape(CLOSE);\n beginShape();\n vertex(286,287);\n vertex(286,312);\n vertex(247,335);\n vertex(212,309);\n vertex(238,238);\n endShape(CLOSE);\n\n fill(0);//black\n beginShape();\n vertex(38,307);\n vertex(74,307);\n vertex(80,314);\n vertex(81,337);\n vertex(68,345);\n vertex(38,327);\n endShape(CLOSE);\n beginShape();\n vertex(219,316);\n vertex(226,308);\n vertex(262,308);\n vertex(262,326);\n vertex(231,345);\n vertex(219,336);\n endShape(CLOSE);\n\n fill(18,39,148);//blue\n beginShape();\n vertex(96,191);\n vertex(61,230);\n vertex(60,269);\n vertex(96,312);\n vertex(101,300);\n vertex(100,247);\n vertex(112,232);\n vertex(132,232);\n vertex(131,186);\n endShape(CLOSE);\n beginShape();\n vertex(204,191);\n vertex(240,230);\n vertex(240,270);\n vertex(205,312);\n vertex(200,302);\n vertex(200,248);\n vertex(193,238);\n vertex(185,231);\n vertex(170,230);\n vertex(170,186);\n endShape(CLOSE);\n\n //white\n fill(200);\n beginShape();\n vertex(70,217);\n vertex(74,220);\n vertex(81,210);\n vertex(85,213);\n vertex(75,227);\n vertex(72,229);\n vertex(71,231);\n vertex(73,233);\n vertex(73,268);\n vertex(71,272);\n vertex(76,277);\n vertex(82,274);\n vertex(89,283);\n vertex(90,297);\n vertex(66,272);\n vertex(65,235);\n vertex(68,229);\n vertex(62,228);\n endShape(CLOSE);\n beginShape();\n vertex(228,217);\n vertex(225,218);\n vertex(218,211);\n vertex(215,213);\n vertex(223,227);\n vertex(226,226);\n vertex(230,230);\n vertex(227,233);\n vertex(228,270);\n vertex(229,272);\n vertex(223,276);\n vertex(218,276);\n vertex(210,283);\n vertex(211,296);\n vertex(235,273);\n vertex(234,233);\n vertex(232,228);\n vertex(237,227);\n endShape(CLOSE);\n\n //guns\n //red\n fill(194,24,11);\n beginShape();\n vertex(121,301);\n vertex(98,313);\n vertex(102,336);\n vertex(119,342);\n vertex(139,336);\n vertex(141,313);\n endShape(CLOSE);//l\n beginShape();\n vertex(159,312);\n vertex(162,336);\n vertex(180,342);\n vertex(200,336);\n vertex(202,313);\n vertex(180,302);\n endShape(CLOSE);\n\n //black\n fill(0);\n rect(105,315,30,30);\n rect(166,315,30,30);\n quad(105,344,109,355,131,355,135,344);\n quad(166,344,170,355,192,355,196,344);\n\n rect(103,253,33,62);//l\n rect(164,252,33,62);//r\n //white\n fill(200);\n bezier(103,252,107,230,132,230,136,252);//l\n bezier(164,252,169,230,192,230,197,252);//r\n\n rect(103,280,33,25);//l\n rect(164,280,33,25);//r\n rect(104,319,33,26,3);//l\n rect(165,319,33,26,3);//r\n fill(194,24,11);\n rect(115,310,7,28,8);//l\n rect(178,310,7,28,8);//r\n\n fill(194,24,11);\n rect(105,284,10,15);\n rect(124,284,10,15);\n rect(167,285,10,15);\n rect(185,284,10,15);\n\n //body-wings\n\n fill(0,0,67);//blue\n bezier(107,154,101,162,98,169,98,187);\n bezier(191,153,199,164,202,172,203,187);\n quad(107,154,98,186,98,223,107,224);\n quad(191,153,203,186,202,223,192,223);\n fill(192,0,11);//red\n quad(134,112,108,147,107,239,132,230);\n quad(165,112,192,147,193,239,168,230);\n //black\n fill(0);\n quad(130,122,130,142,111,164,111,147);\n quad(169,122,188,147,188,165,169,144);\n //white\n fill(200);\n beginShape();\n vertex(131,154);\n vertex(129,202);\n vertex(118,202);\n vertex(112,181);\n vertex(110,179);\n vertex(110,171);\n endShape(CLOSE);\n beginShape();\n vertex(170,154);\n vertex(190,172);\n vertex(190,182);\n vertex(188,181);\n vertex(182,201);\n vertex(172,201);\n endShape(CLOSE);\n\n fill(0);\n quad(134,193,166,193,154,342,146,342);\n fill(192,0,11);\n quad(142,180,159,180,152,352,148,352);\n //white\n fill(200);\n ellipse(150,374,6,50);\n\n //head\n fill(160,0,0);\n ellipse(149.5f,72,33,25);\n ellipse(149.5f,94,30,170);\n fill(0);\n ellipse(149.5f,94,20,160);\n fill(154,155,84);\n ellipse(149.5f,94,17,77);\n strokeWeight(2);\n line(143,74,158,74);\n line(142,104,158,104);\n strokeWeight(1);\n fill(200);\n bezier(143,15,147,2,153,2,155.5f,15);\n}", "public void syria(){\n stroke(1);\n //back guns\n fill(0);\n rect(73,192,4,15);\n rect(224,192,4,15);\n rect(71,207,8,15);\n rect(222,207,8,15);\n rect(66,207,3,15);\n rect(232,207,3,17);\n rect(122,109,4,15);\n rect(175,110,4,15);\n rect(121,120,6,15);\n rect(174,120,6,15);\n rect(116,124,3,15);\n rect(182,124,3,15);\n\n //wings\n fill(206,17,38);//red\n beginShape();\n vertex(14,286);\n vertex(61,236);\n vertex(88,308);\n vertex(51,334);\n vertex(14,313);\n endShape(CLOSE);\n beginShape();\n vertex(286,287);\n vertex(286,312);\n vertex(247,335);\n vertex(212,309);\n vertex(238,238);\n endShape(CLOSE);\n\n fill(200);//white\n beginShape();\n vertex(38,307);\n vertex(74,307);\n vertex(80,314);\n vertex(81,337);\n vertex(68,345);\n vertex(38,327);\n endShape(CLOSE);\n beginShape();\n vertex(219,316);\n vertex(226,308);\n vertex(262,308);\n vertex(262,326);\n vertex(231,345);\n vertex(219,336);\n endShape(CLOSE);\n\n fill(0);//red\n beginShape();\n vertex(96,191);\n vertex(61,230);\n vertex(60,269);\n vertex(96,312);\n vertex(101,300);\n vertex(100,247);\n vertex(112,232);\n vertex(132,232);\n vertex(131,186);\n endShape(CLOSE);\n beginShape();\n vertex(204,191);\n vertex(240,230);\n vertex(240,270);\n vertex(205,312);\n vertex(200,302);\n vertex(200,248);\n vertex(193,238);\n vertex(185,231);\n vertex(170,230);\n vertex(170,186);\n endShape(CLOSE);\n\n //white\n fill(200);\n beginShape();\n vertex(70,217);\n vertex(74,220);\n vertex(81,210);\n vertex(85,213);\n vertex(75,227);\n vertex(72,229);\n vertex(71,231);\n vertex(73,233);\n vertex(73,268);\n vertex(71,272);\n vertex(76,277);\n vertex(82,274);\n vertex(89,283);\n vertex(90,297);\n vertex(66,272);\n vertex(65,235);\n vertex(68,229);\n vertex(62,228);\n endShape(CLOSE);\n beginShape();\n vertex(228,217);\n vertex(225,218);\n vertex(218,211);\n vertex(215,213);\n vertex(223,227);\n vertex(226,226);\n vertex(230,230);\n vertex(227,233);\n vertex(228,270);\n vertex(229,272);\n vertex(223,276);\n vertex(218,276);\n vertex(210,283);\n vertex(211,296);\n vertex(235,273);\n vertex(234,233);\n vertex(232,228);\n vertex(237,227);\n endShape(CLOSE);\n\n //guns\n //white\n fill(200);\n beginShape();\n vertex(121,301);\n vertex(98,313);\n vertex(102,336);\n vertex(119,342);\n vertex(139,336);\n vertex(141,313);\n endShape(CLOSE);//l\n beginShape();\n vertex(159,312);\n vertex(162,336);\n vertex(180,342);\n vertex(200,336);\n vertex(202,313);\n vertex(180,302);\n endShape(CLOSE);\n\n //black\n fill(0);\n rect(105,315,30,30);\n rect(166,315,30,30);\n quad(105,344,109,355,131,355,135,344);\n quad(166,344,170,355,192,355,196,344);\n //green\n fill(0,122,61);\n rect(103,253,33,62);//l\n rect(164,252,33,62);//r\n //white\n fill(200);\n bezier(103,252,107,230,132,230,136,252);//l\n bezier(164,252,169,230,192,230,197,252);//r\n rect(103,280,33,25);//l\n rect(164,280,33,25);//r\n rect(104,319,33,26,3);//l\n rect(165,319,33,26,3);//r\n rect(115,310,7,28,8);//l\n rect(178,310,7,28,8);//r\n //green\n fill(0,122,61);\n rect(105,284,10,15);\n rect(124,284,10,15);\n rect(167,285,10,15);\n rect(185,284,10,15);\n\n //body-wings\n\n fill(0,122,61);//green\n bezier(107,154,101,162,98,169,98,187);\n bezier(191,153,199,164,202,172,203,187);\n quad(107,154,98,186,98,223,107,224);\n quad(191,153,203,186,202,223,192,223);\n fill(206,17,38);//red\n quad(134,112,108,147,107,239,132,230);\n quad(165,112,192,147,193,239,168,230);\n //black\n fill(0);\n quad(130,122,130,142,111,164,111,147);\n quad(169,122,188,147,188,165,169,144);\n //white\n fill(200);\n beginShape();\n vertex(131,154);\n vertex(129,202);\n vertex(118,202);\n vertex(112,181);\n vertex(110,179);\n vertex(110,171);\n endShape(CLOSE);\n beginShape();\n vertex(170,154);\n vertex(190,172);\n vertex(190,182);\n vertex(188,181);\n vertex(182,201);\n vertex(172,201);\n endShape(CLOSE);\n\n fill(0);\n quad(134,193,166,193,154,342,146,342);\n fill(0);\n quad(142,180,159,180,152,352,148,352);\n //white\n fill(200);\n ellipse(150,374,6,50);\n\n //head\n\n fill(206,17,38);\n ellipse(149.5f,72,33,25);\n ellipse(149.5f,94,30,170);\n fill(0);\n ellipse(149.5f,94,20,160);\n fill(154,155,84);\n ellipse(149.5f,94,17,77);\n strokeWeight(2);\n line(143,74,158,74);\n line(142,104,158,104);\n strokeWeight(1);\n fill(200);\n bezier(143,15,147,2,153,2,155.5f,15);\n}", "public void constructDrawing(){\r\n\r\n resetToEmpty(); // should be empty anyway\r\n\r\n// universe=TFormula.atomicTermsInListOfFormulas(fInterpretation);\r\n \r\n Set <String> universeStrSet=TFormula.atomicTermsInListOfFormulas(fInterpretation);\r\n \r\n universe=\"\";\r\n \r\n for (Iterator i=universeStrSet.iterator();i.hasNext();)\r\n \tuniverse+=i.next();\r\n \r\n\r\n findPropertyExtensions();\r\n\r\n findRelationsExtensions();\r\n\r\n determineLines();\r\n\r\n createProperties();\r\n\r\n createIndividuals();\r\n\r\n createRelations();\r\n\r\n deselect(); //all shapes are created selected\r\n\r\n\r\n fPalette.check(); // some of the names may need updating\r\n\r\n repaint();\r\n\r\n}", "@Test\n public void test84() throws Throwable {\n Point2D.Double point2D_Double0 = new Point2D.Double();\n point2D_Double0.setLocation(0.0, 0.0);\n CategoryAxis categoryAxis0 = new CategoryAxis(\"\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot(categoryAxis0);\n DefaultPolarItemRenderer defaultPolarItemRenderer0 = new DefaultPolarItemRenderer();\n Color color0 = (Color)defaultPolarItemRenderer0.getItemLabelPaint(871, (-1498));\n Number[][] numberArray0 = new Number[5][3];\n Number[] numberArray1 = new Number[2];\n int int0 = Calendar.LONG_FORMAT;\n numberArray1[0] = (Number) 2;\n int int1 = Float.SIZE;\n numberArray1[1] = (Number) 32;\n numberArray0[0] = numberArray1;\n Number[] numberArray2 = new Number[4];\n numberArray2[0] = (Number) 0.0;\n numberArray2[1] = (Number) 0.0;\n numberArray2[2] = (Number) 0.0;\n numberArray2[3] = (Number) 0.0;\n numberArray0[1] = numberArray2;\n Number[] numberArray3 = new Number[1];\n numberArray3[0] = (Number) 0.0;\n numberArray0[2] = numberArray3;\n Number[] numberArray4 = new Number[7];\n numberArray4[0] = (Number) 0.0;\n long long0 = XYBubbleRenderer.serialVersionUID;\n numberArray4[1] = (Number) (-5221991598674249125L);\n numberArray4[2] = (Number) 0.0;\n numberArray4[3] = (Number) 0.0;\n numberArray4[4] = (Number) 0.0;\n int int2 = JDesktopPane.LIVE_DRAG_MODE;\n numberArray4[5] = (Number) 0;\n numberArray4[6] = (Number) 0.0;\n numberArray0[3] = numberArray4;\n Number[] numberArray5 = new Number[9];\n numberArray5[0] = (Number) 0.0;\n numberArray5[1] = (Number) 0.0;\n numberArray5[2] = (Number) 0.0;\n numberArray5[3] = (Number) 0.0;\n numberArray5[4] = (Number) 0.0;\n numberArray5[5] = (Number) 0.0;\n numberArray5[6] = (Number) 0.0;\n numberArray5[7] = (Number) 0.0;\n int int3 = SwingConstants.HORIZONTAL;\n numberArray5[8] = (Number) 0;\n numberArray0[4] = numberArray5;\n DefaultIntervalCategoryDataset defaultIntervalCategoryDataset0 = new DefaultIntervalCategoryDataset(numberArray0, numberArray0);\n LogarithmicAxis logarithmicAxis0 = new LogarithmicAxis(\"org.jfree.data.ComparableObjectItem\");\n LineAndShapeRenderer lineAndShapeRenderer0 = new LineAndShapeRenderer();\n CategoryPlot categoryPlot0 = null;\n try {\n categoryPlot0 = new CategoryPlot((CategoryDataset) defaultIntervalCategoryDataset0, categoryAxis0, (ValueAxis) logarithmicAxis0, (CategoryItemRenderer) lineAndShapeRenderer0);\n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1\n //\n assertThrownBy(\"org.jfree.data.category.DefaultIntervalCategoryDataset\", e);\n }\n }", "private static void addShaped()\n {}", "@Override\r\n public final void draw(final Circle s, final BufferedImage paper) {\n\r\n int xc = s.getX();\r\n int yc = s.getY();\r\n int r = s.getRaza();\r\n int x = 0, y = r;\r\n final int trei = 3;\r\n int doi = 2;\r\n int d = trei - doi * r;\r\n while (y >= x) {\r\n if (checkBorder(xc + x, yc + y, paper)) {\r\n paper.setRGB(xc + x, yc + y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - x, yc + y, paper)) {\r\n paper.setRGB(xc - x, yc + y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + x, yc - y, paper)) {\r\n paper.setRGB(xc + x, yc - y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - x, yc - y, paper)) {\r\n paper.setRGB(xc - x, yc - y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + y, yc + x, paper)) {\r\n paper.setRGB(xc + y, yc + x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + y, yc - x, paper)) {\r\n paper.setRGB(xc + y, yc - x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - y, yc + x, paper)) {\r\n paper.setRGB(xc - y, yc + x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - y, yc - x, paper)) {\r\n paper.setRGB(xc - y, yc - x, s.getBorderColor().getRGB());\r\n }\r\n\r\n x++;\r\n if (d > 0) {\r\n y--;\r\n final int patru = 4;\r\n final int zece = 10;\r\n d = d + patru * (x - y) + zece;\r\n } else {\r\n final int patru = 4;\r\n final int sase = 6;\r\n d = d + patru * x + sase;\r\n }\r\n if (checkBorder(xc + x, yc + y, paper)) {\r\n paper.setRGB(xc + x, yc + y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - x, yc + y, paper)) {\r\n paper.setRGB(xc - x, yc + y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + x, yc - y, paper)) {\r\n paper.setRGB(xc + x, yc - y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - x, yc - y, paper)) {\r\n paper.setRGB(xc - x, yc - y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + y, yc + x, paper)) {\r\n paper.setRGB(xc + y, yc + x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + y, yc - x, paper)) {\r\n paper.setRGB(xc + y, yc - x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - y, yc + x, paper)) {\r\n paper.setRGB(xc - y, yc + x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - y, yc - x, paper)) {\r\n paper.setRGB(xc - y, yc - x, s.getBorderColor().getRGB());\r\n }\r\n\r\n }\r\n floodFill(xc, yc, s.getFillColor(), s.getBorderColor(), paper);\r\n }", "public void med1() {\n DrawingPanel win = new DrawingPanel(WIDTH, HEIGHT);\n java.awt.Graphics g = win.getGraphics();\n win.setTitle(\"Med. 1\");\n win.setLocation(300, 10);\n win.setBackground(java.awt.Color.red);\n for(int y = -10; y < HEIGHT; y += 24) {\n for(int x = -10; x < WIDTH; x += 24) {\n octagon(x, y, g);\n }\n }\n }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "public String whatShape();", "@Override\r\n public final void draw(final Rectangle r, final BufferedImage paper) {\n String red;\r\n String green;\r\n String blue;\r\n if (Integer.toHexString(r.getBorderColor().getRed()).length() == 1) {\r\n red = \"0\" + Integer.toHexString(r.getBorderColor().getRed());\r\n } else {\r\n red = Integer.toHexString(r.getBorderColor().getRed());\r\n }\r\n if (Integer.toHexString(r.getBorderColor().getGreen()).length() == 1) {\r\n green = \"0\" + Integer.toHexString(r.getBorderColor().getGreen());\r\n } else {\r\n green = Integer.toHexString(r.getBorderColor().getGreen());\r\n }\r\n if (Integer.toHexString(r.getBorderColor().getBlue()).length() == 1) {\r\n blue = \"0\" + Integer.toHexString(r.getBorderColor().getBlue());\r\n } else {\r\n blue = Integer.toHexString(r.getBorderColor().getBlue());\r\n }\r\n String color = \"#\" + red + green + blue;\r\n\r\n draw(new Line((String.valueOf(r.getxSus())), String.valueOf(r.getySus()),\r\n String.valueOf(r.getxSus() + r.getLungime() - 1), String.valueOf(r.getySus()),\r\n color, String.valueOf(r.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(r.getxSus() + r.getLungime() - 1)),\r\n String.valueOf(r.getySus()), String.valueOf(r.getxSus() + r.getLungime() - 1),\r\n String.valueOf(r.getySus() + r.getInaltime() - 1), color,\r\n String.valueOf(r.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(r.getxSus() + r.getLungime() - 1)),\r\n String.valueOf(r.getySus() + r.getInaltime() - 1), String.valueOf(r.getxSus()),\r\n String.valueOf(r.getySus() + r.getInaltime() - 1), color,\r\n String.valueOf(r.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(r.getxSus())),\r\n String.valueOf(r.getySus() + r.getInaltime() - 1), String.valueOf(r.getxSus()),\r\n String.valueOf(r.getySus()), color, String.valueOf(r.getBorderColor().getAlpha()),\r\n paper), paper);\r\n\r\n for (int i = r.getxSus() + 1; i < r.getxSus() + r.getLungime() - 1; i++) {\r\n for (int j = r.getySus() + 1; j < r.getySus() + r.getInaltime() - 1; j++) {\r\n if (checkBorder(i, j, paper)) {\r\n paper.setRGB(i, j, r.getFillColor().getRGB());\r\n }\r\n }\r\n }\r\n }", "public void usa(){\n stroke(1);\n //back guns\n fill(0);\n rect(73,192,4,15);\n rect(224,192,4,15);\n rect(71,207,8,15);\n rect(222,207,8,15);\n rect(66,207,3,15);\n rect(232,207,3,17);\n rect(122,109,4,15);\n rect(175,110,4,15);\n rect(121,120,6,15);\n rect(174,120,6,15);\n rect(116,124,3,15);\n rect(182,124,3,15);\n\n //wings\n fill(1,0,74);//dark blue\n beginShape();\n vertex(14,286);\n vertex(61,236);\n vertex(88,308);\n vertex(51,334);\n vertex(14,313);\n endShape(CLOSE);\n beginShape();\n vertex(286,287);\n vertex(286,312);\n vertex(247,335);\n vertex(212,309);\n vertex(238,238);\n endShape(CLOSE);\n\n fill(200);//white\n beginShape();\n vertex(38,307);\n vertex(74,307);\n vertex(80,314);\n vertex(81,337);\n vertex(68,345);\n vertex(38,327);\n endShape(CLOSE);\n beginShape();\n vertex(219,316);\n vertex(226,308);\n vertex(262,308);\n vertex(262,326);\n vertex(231,345);\n vertex(219,336);\n endShape(CLOSE);\n\n fill(192,0,11);//red\n beginShape();\n vertex(96,191);\n vertex(61,230);\n vertex(60,269);\n vertex(96,312);\n vertex(101,300);\n vertex(100,247);\n vertex(112,232);\n vertex(132,232);\n vertex(131,186);\n endShape(CLOSE);\n beginShape();\n vertex(204,191);\n vertex(240,230);\n vertex(240,270);\n vertex(205,312);\n vertex(200,302);\n vertex(200,248);\n vertex(193,238);\n vertex(185,231);\n vertex(170,230);\n vertex(170,186);\n endShape(CLOSE);\n\n //white\n fill(200);\n beginShape();\n vertex(70,217);\n vertex(74,220);\n vertex(81,210);\n vertex(85,213);\n vertex(75,227);\n vertex(72,229);\n vertex(71,231);\n vertex(73,233);\n vertex(73,268);\n vertex(71,272);\n vertex(76,277);\n vertex(82,274);\n vertex(89,283);\n vertex(90,297);\n vertex(66,272);\n vertex(65,235);\n vertex(68,229);\n vertex(62,228);\n endShape(CLOSE);\n beginShape();\n vertex(228,217);\n vertex(225,218);\n vertex(218,211);\n vertex(215,213);\n vertex(223,227);\n vertex(226,226);\n vertex(230,230);\n vertex(227,233);\n vertex(228,270);\n vertex(229,272);\n vertex(223,276);\n vertex(218,276);\n vertex(210,283);\n vertex(211,296);\n vertex(235,273);\n vertex(234,233);\n vertex(232,228);\n vertex(237,227);\n endShape(CLOSE);\n\n //guns\n //white\n fill(200);\n beginShape();\n vertex(121,301);\n vertex(98,313);\n vertex(102,336);\n vertex(119,342);\n vertex(139,336);\n vertex(141,313);\n endShape(CLOSE);//l\n beginShape();\n vertex(159,312);\n vertex(162,336);\n vertex(180,342);\n vertex(200,336);\n vertex(202,313);\n vertex(180,302);\n endShape(CLOSE);\n\n //black\n fill(0);\n rect(105,315,30,30);\n rect(166,315,30,30);\n quad(105,344,109,355,131,355,135,344);\n quad(166,344,170,355,192,355,196,344);\n //green\n fill(0,0,67);\n rect(103,253,33,62);//l\n rect(164,252,33,62);//r\n //white\n fill(200);\n bezier(103,252,107,230,132,230,136,252);//l\n bezier(164,252,169,230,192,230,197,252);//r\n rect(103,280,33,25);//l\n rect(164,280,33,25);//r\n rect(104,319,33,26,3);//l\n rect(165,319,33,26,3);//r\n rect(115,310,7,28,8);//l\n rect(178,310,7,28,8);//r\n //green\n fill(0,0,67);\n rect(105,284,10,15);\n rect(124,284,10,15);\n rect(167,285,10,15);\n rect(185,284,10,15);\n\n //body-wings\n //green\n fill(0,0,67);//blue\n bezier(107,154,101,162,98,169,98,187);\n bezier(191,153,199,164,202,172,203,187);\n quad(107,154,98,186,98,223,107,224);\n quad(191,153,203,186,202,223,192,223);\n fill(192,0,11);//red\n quad(134,112,108,147,107,239,132,230);\n quad(165,112,192,147,193,239,168,230);\n //black\n fill(0);\n quad(130,122,130,142,111,164,111,147);\n quad(169,122,188,147,188,165,169,144);\n //white\n fill(200);\n beginShape();\n vertex(131,154);\n vertex(129,202);\n vertex(118,202);\n vertex(112,181);\n vertex(110,179);\n vertex(110,171);\n endShape(CLOSE);\n beginShape();\n vertex(170,154);\n vertex(190,172);\n vertex(190,182);\n vertex(188,181);\n vertex(182,201);\n vertex(172,201);\n endShape(CLOSE);\n\n //green\n fill(192,0,11);\n quad(134,193,166,193,154,342,146,342);\n fill(192,0,11);\n quad(142,180,159,180,152,352,148,352);\n //white\n fill(200);\n ellipse(150,374,6,50);\n\n //head\n fill(1,1,75);\n ellipse(149.5f,72,33,25);\n ellipse(149.5f,94,30,170);\n fill(0);\n ellipse(149.5f,94,20,160);\n fill(154,155,84);\n ellipse(149.5f,94,17,77);\n strokeWeight(2);\n line(143,74,158,74);\n line(142,104,158,104);\n strokeWeight(1);\n fill(200);\n bezier(143,15,147,2,153,2,155.5f,15);\n }", "public void drawHealth(int x, int y) {\n pushMatrix();\n translate(x, y);\n scale(0.8f);\n smooth();\n noStroke();\n fill(0);\n beginShape();\n vertex(52, 17);\n bezierVertex(52, -5, 90, 5, 52, 40);\n vertex(52, 17);\n bezierVertex(52, -5, 10, 5, 52, 40);\n endShape();\n fill(255,0,0);\n beginShape();\n vertex(50, 15);\n bezierVertex(50, -5, 90, 5, 50, 40);\n vertex(50, 15);\n bezierVertex(50, -5, 10, 5, 50, 40);\n endShape();\n popMatrix();\n}", "private void paintHand3(Graphics2D gfx)\r\n {\n \r\n }", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "public Shapes draw ( );", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\n\tpublic void BuildShape(Graphics g) {\n\t\t\n\t}", "Sketch apex();", "@Override\n\tpublic void draw1() {\n\n\t}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public void stateChanged(ChangeEvent e){\n\r\n repaint(); // at the moment we're being pretty crude with this, redrawing all the shapes\r\n\r\n\r\n\r\n if (fDeriverDocument!=null) // if this drawing has a journal, set it for saving\r\n fDeriverDocument.setDirty(true);\r\n\r\n\r\n\r\n }", "public void assignShape() {\n\t\t\n\t}", "@Override\n\tpublic void getShape() {\n\n\t}", "@Override\r\n public final void draw(final Square s, final BufferedImage paper) {\n String red;\r\n String green;\r\n String blue;\r\n if (Integer.toHexString(s.getBorderColor().getRed()).length() == 1) {\r\n red = \"0\" + Integer.toHexString(s.getBorderColor().getRed());\r\n } else {\r\n red = Integer.toHexString(s.getBorderColor().getRed());\r\n }\r\n if (Integer.toHexString(s.getBorderColor().getGreen()).length() == 1) {\r\n green = \"0\" + Integer.toHexString(s.getBorderColor().getGreen());\r\n } else {\r\n green = Integer.toHexString(s.getBorderColor().getGreen());\r\n }\r\n if (Integer.toHexString(s.getBorderColor().getBlue()).length() == 1) {\r\n blue = \"0\" + Integer.toHexString(s.getBorderColor().getBlue());\r\n } else {\r\n blue = Integer.toHexString(s.getBorderColor().getBlue());\r\n }\r\n String color = \"#\" + red + green + blue;\r\n \r\n draw(new Line((String.valueOf(s.getxSus())), String.valueOf(s.getySus()),\r\n String.valueOf(s.getxSus() + s.getLatura() - 1), String.valueOf(s.getySus()), color,\r\n String.valueOf(s.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(s.getxSus() + s.getLatura() - 1)),\r\n String.valueOf(s.getySus()), String.valueOf(s.getxSus() + s.getLatura() - 1),\r\n String.valueOf(s.getySus() + s.getLatura() - 1), color,\r\n String.valueOf(s.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(s.getxSus() + s.getLatura() - 1)),\r\n String.valueOf(s.getySus() + s.getLatura() - 1), String.valueOf(s.getxSus()),\r\n String.valueOf(s.getySus() + s.getLatura() - 1), color,\r\n String.valueOf(s.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(s.getxSus())),\r\n String.valueOf(s.getySus() + s.getLatura() - 1), String.valueOf(s.getxSus()),\r\n String.valueOf(s.getySus()), color, String.valueOf(s.getBorderColor().getAlpha()),\r\n paper), paper);\r\n for (int i = s.getxSus() + 1; i < s.getxSus() + s.getLatura() - 1; i++) {\r\n for (int j = s.getySus() + 1; j < s.getySus() + s.getLatura() - 1; j++) {\r\n if (checkBorder(i, j, paper)) {\r\n paper.setRGB(i, j, s.getFillColor().getRGB());\r\n }\r\n }\r\n }\r\n\r\n }", "@Override\n public void paint(Graphics g) {\n }", "ZHDraweeView mo91981h();", "public void uk(){\n stroke(1);\n //back guns\n fill(0);\n rect(73,192,4,15);\n rect(224,192,4,15);\n rect(71,207,8,15);\n rect(222,207,8,15);\n rect(66,207,3,15);\n rect(232,207,3,17);\n rect(122,109,4,15);\n rect(175,110,4,15);\n rect(121,120,6,15);\n rect(174,120,6,15);\n rect(116,124,3,15);\n rect(182,124,3,15);\n\n //wings--england\n fill(1,0,74);//dark blue\n beginShape();\n vertex(14,286);\n vertex(61,236);\n vertex(88,308);\n vertex(51,334);\n vertex(14,313);\n endShape(CLOSE);\n beginShape();\n vertex(286,287);\n vertex(286,312);\n vertex(247,335);\n vertex(212,309);\n vertex(238,238);\n endShape(CLOSE);\n\n noStroke();\n fill(255);\n rect(15,286,74,20);\n rect(212,284,74,20);\n rect(48,248,20,74);\n rect(233,248,20,74);\n quad(26,272,35,260,83,312,72,320);\n quad(262,260,272,272,229,312,220,318);\n quad(25,318,38,328,85,278,75,263);\n quad(264,324,280,316,228,262,214,274);\n\n fill(207,20,43);\n rect(51,248,15,74);\n rect(235,247,15,74);\n rect(15,289,74,15);\n rect(211,286,74,15);\n\n stroke(1);\n fill(0);//white\n beginShape();\n vertex(38,307);\n vertex(74,307);\n vertex(80,314);\n vertex(81,337);\n vertex(68,345);\n vertex(38,327);\n endShape(CLOSE);\n beginShape();\n vertex(219,316);\n vertex(226,308);\n vertex(262,308);\n vertex(262,326);\n vertex(231,345);\n vertex(219,336);\n endShape(CLOSE);\n\n fill(0,36,125);//red\n beginShape();\n vertex(96,191);\n vertex(61,230);\n vertex(60,269);\n vertex(96,312);\n vertex(101,300);\n vertex(100,247);\n vertex(112,232);\n vertex(132,232);\n vertex(131,186);\n endShape(CLOSE);\n beginShape();\n vertex(204,191);\n vertex(240,230);\n vertex(240,270);\n vertex(205,312);\n vertex(200,302);\n vertex(200,248);\n vertex(193,238);\n vertex(185,231);\n vertex(170,230);\n vertex(170,186);\n endShape(CLOSE);\n\n //gray\n fill(200);\n beginShape();\n vertex(70,217);\n vertex(74,220);\n vertex(81,210);\n vertex(85,213);\n vertex(75,227);\n vertex(72,229);\n vertex(71,231);\n vertex(73,233);\n vertex(73,268);\n vertex(71,272);\n vertex(76,277);\n vertex(82,274);\n vertex(89,283);\n vertex(90,297);\n vertex(66,272);\n vertex(65,235);\n vertex(68,229);\n vertex(62,228);\n endShape(CLOSE);\n beginShape();\n vertex(228,217);\n vertex(225,218);\n vertex(218,211);\n vertex(215,213);\n vertex(223,227);\n vertex(226,226);\n vertex(230,230);\n vertex(227,233);\n vertex(228,270);\n vertex(229,272);\n vertex(223,276);\n vertex(218,276);\n vertex(210,283);\n vertex(211,296);\n vertex(235,273);\n vertex(234,233);\n vertex(232,228);\n vertex(237,227);\n endShape(CLOSE);\n\n //guns\n //white\n fill(200);\n beginShape();\n vertex(121,301);\n vertex(98,313);\n vertex(102,336);\n vertex(119,342);\n vertex(139,336);\n vertex(141,313);\n endShape(CLOSE);//l\n beginShape();\n vertex(159,312);\n vertex(162,336);\n vertex(180,342);\n vertex(200,336);\n vertex(202,313);\n vertex(180,302);\n endShape(CLOSE);\n\n //black\n fill(0);\n rect(105,315,30,30);\n rect(166,315,30,30);\n quad(105,344,109,355,131,355,135,344);\n quad(166,344,170,355,192,355,196,344);\n\n fill(207,20,43);\n rect(103,253,33,62);//l\n rect(164,252,33,62);//r\n\n fill(200);\n bezier(103,252,107,230,132,230,136,252);//l\n bezier(164,252,169,230,192,230,197,252);//r\n rect(103,280,33,25);//l\n rect(164,280,33,25);//r\n fill(0,36,125);\n rect(104,319,33,26,3);//l\n rect(165,319,33,26,3);//r\n fill(200);\n rect(115,310,7,28,8);//l\n rect(178,310,7,28,8);//r\n\n fill(0,0,67);\n rect(105,284,10,15);\n rect(124,284,10,15);\n rect(167,285,10,15);\n rect(185,284,10,15);\n\n //body-wings\n\n fill(0,0,67);//blue\n bezier(107,154,101,162,98,169,98,187);\n bezier(191,153,199,164,202,172,203,187);\n quad(107,154,98,186,98,223,107,224);\n quad(191,153,203,186,202,223,192,223);\n fill(0,36,125);//red\n quad(134,112,108,147,107,239,132,230);\n quad(165,112,192,147,193,239,168,230);\n //black\n fill(0);\n quad(130,122,130,142,111,164,111,147);\n quad(169,122,188,147,188,165,169,144);\n //white\n fill(200);\n beginShape();\n vertex(131,154);\n vertex(129,202);\n vertex(118,202);\n vertex(112,181);\n vertex(110,179);\n vertex(110,171);\n endShape(CLOSE);\n beginShape();\n vertex(170,154);\n vertex(190,172);\n vertex(190,182);\n vertex(188,181);\n vertex(182,201);\n vertex(172,201);\n endShape(CLOSE);\n\n\n fill(0,36,125);\n quad(134,193,166,193,154,342,146,342);\n fill(192,0,11);\n quad(142,180,159,180,152,352,148,352);\n //white\n fill(200);\n ellipse(150,374,6,50);\n\n //head\n\n fill(1,1,75);\n ellipse(149.5f,72,33,25);\n ellipse(149.5f,94,30,170);\n fill(0);\n ellipse(149.5f,94,20,160);\n fill(154,155,84);\n ellipse(149.5f,94,17,77);\n strokeWeight(2);\n line(143,74,158,74);\n line(142,104,158,104);\n strokeWeight(1);\n fill(200);\n bezier(143,15,147,2,153,2,155.5f,15);\n}", "@Override\n\tpublic void draw() {\n\t}", "@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}", "@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}", "@Override\n\tpublic void draw3() {\n\n\t}", "public void drawSelector(int x) {\n int currentTime = millis() / 100;\n noStroke();\n if (currentTime % 13 == 0) {\n fill(200, 200, 100, 30);\n }\n else if (currentTime % 13 == 1) {\n fill(200, 200, 100, 40);\n }\n else if (currentTime % 13 == 2) {\n fill(200, 200, 100, 50);\n }\n else if (currentTime % 13 == 3) {\n fill(200, 200, 100, 60);\n }\n else if (currentTime % 13 == 4) {\n fill(200, 200, 100, 70);\n }\n else if (currentTime % 13 == 5) {\n fill(200, 200, 100, 80);\n }\n else if (currentTime % 13 == 6) {\n fill(200, 200, 100, 90);\n }\n else if (currentTime % 13 == 7) {\n fill(200, 200, 100, 100);\n }\n else if (currentTime % 13 == 8) {\n fill(200, 200, 100, 110);\n }\n else if (currentTime % 13 == 9) {\n fill(200, 200, 100, 120);\n }\n else if (currentTime % 13 == 10) {\n fill(200, 200, 100, 130);\n }\n else if (currentTime % 13 == 11) {\n fill(200, 200, 100, 140);\n }\n else if (currentTime % 13 == 12) {\n fill(200, 200, 100, 150);\n }\n else {\n fill(255, 200, 100);\n }\n switch(x){\n case 1:\n beginShape();\n vertex(80, 330);\n vertex(50, 360);\n vertex(80, 350);\n vertex(110, 360);\n endShape();\n break;\n case 2:\n beginShape();\n vertex(370, 330);\n vertex(340, 360);\n vertex(370, 350);\n vertex(400, 360);\n endShape();\n break;\n case 3:\n beginShape();\n vertex(80, 600);\n vertex(50, 630);\n vertex(80, 620);\n vertex(110, 630);\n endShape();\n break;\n case 4:\n beginShape();\n vertex(370, 600);\n vertex(340, 630);\n vertex(370, 620);\n vertex(400, 630);\n endShape();\n break;\n }\n\n}", "static void drawCrosses() { // draws a cross at each cell centre\n\t\tif (currentStage[currentSlice-1]>1)\n\t\t{\n\t\t\tfloat xc,yc;\n\t\t\t//GeneralPath path = new GeneralPath();\n\n\t\t\tfor (int i=0;i<pop.N;i++)\n\t\t\t{\n\t\t\t\txc = (float) ( (Balloon)(pop.BallList.get(i)) ).x0;\n\t\t\t\tyc = (float) ( (Balloon)(pop.BallList.get(i)) ).y0;\n\t\t\t\tfloat arm = 5;\n\n\t\t\t\t// label cell position\n\t\t\t\tjava.awt.geom.GeneralPath Nshape = new GeneralPath();\n\t\t\t\tNshape.moveTo(xc-arm, yc);\n\t\t\t\tNshape.lineTo(xc+arm, yc);\n\t\t\t\tNshape.moveTo(xc, yc-arm);\n\t\t\t\tNshape.lineTo(xc, yc+arm);\n\n\t\t\t\tRoi XROI = new ShapeRoi(Nshape);\n\t\t\t\tOL.add(XROI);\n\t\t\t}\n\t\t}\n\t}", "public void paintShapeOver(RMShapePainter aPntr)\n{\n if(getStrokeOnTop() && getStroke()!=null)\n getStroke().paint(aPntr, this);\n}", "public void polygone (Graphics g){\n\t}", "public void strength1(float x, float y){\n noStroke();\n fill(80);\n rect(x+7,y,66,6);\n bezier(x+7,y,x,y+1,x,y+5,x+7,y+6);\n bezier(x+73,y,x+80,y+1,x+80,y+5,x+73,y+6);\n rect(x+7,y+1,13,3);//1st blue ba\n bezier(x+7,y+1,x+1,y+2.5f,x+1,y+3.5f,x+7,y+4);\n}", "static void drawCellID() { // draws a cross at each cell centre\n\t\tfloat xc,yc;\n\t\t//GeneralPath path = new GeneralPath();\n\t\tif (currentStage[currentSlice-1]>1)\n\t\t{\n\t\t\tfor (int i=0;i<pop.N;i++)\n\t\t\t{\n\t\t\t\txc = (float) ( (Balloon)(pop.BallList.get(i)) ).x0;\n\t\t\t\tyc = (float) ( (Balloon)(pop.BallList.get(i)) ).y0;\n\t\t\t\tfloat arm = 5;\n\n\t\t\t\t// Label Cell number\n\t\t\t\tTextRoi TROI = new TextRoi((int)xc, (int)yc, (\"\"+i),new Font(\"SansSerif\", Font.BOLD, 12));\n\t\t\t\tTROI.setNonScalable(false);\n\t\t\t\tOL.add(TROI);\n\t\t\t}\n\t\t}\n\t}", "public void med2() {\n DrawingPanel win = new DrawingPanel(WIDTH, HEIGHT);\n java.awt.Graphics g = win.getGraphics();\n win.setTitle(\"Med. 2\");\n win.setLocation(600, 10);\n //This is as far as I could get in the 30 minutes\n //I had after work. I usually do all the work for \n //this class on the weekend.\n }", "public static void main(String[] args) {\n MyImageVector.Double img = new MyImageVector.Double(new Loader().loadSVGDocument(\"D:\\\\sample_images_PA\\\\trash_test_mem\\\\images_de_test_pr_figure_assistant\\\\test_scaling_SVG.svg\"));\n //MyImage2D img = new MyImage2D.Double(0, 0, \"D:\\\\sample_images_PA\\\\trash_test_mem\\\\mini\\\\focused_Series010.png\");\n img.addAssociatedObject(new MyRectangle2D.Double(10, 10, 128, 256));\n img.addAssociatedObject(new MyRectangle2D.Double(200, 20, 256, 256));\n img.addAssociatedObject(new MyRectangle2D.Double(100, 10, 256, 128));\n MyPoint2D.Double text = new MyPoint2D.Double(220, 220);\n text.setText(new ColoredTextPaneSerializable(new StyledDoc2Html().reparse(\"<i>test<i>\"), \"\"));\n img.addAssociatedObject(text);\n CheckLineArts iopane = new CheckLineArts(img, 1.5f, true);\n if (!iopane.noError) {\n int result = JOptionPane.showOptionDialog(null, new Object[]{iopane}, \"Check stroke width of line arts\", JOptionPane.CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE, null, new String[]{\"Accept automated solution\", \"Ignore\"}, null);\n if (result == JOptionPane.OK_OPTION) {\n //--> replace objects with copy\n Object strokeData = iopane.getModifiedStrokeData();\n if (strokeData instanceof ArrayList) {\n img.setAssociatedObjects(((ArrayList<Object>) strokeData));\n// for (Object string : img.getAssociatedObjects()) {\n// if (string instanceof PARoi) {\n// System.out.println(((PARoi) string).getStrokeSize());\n// }\n// }\n } else if (strokeData instanceof String) {\n ((MyImageVector) img).setSvg_content_serializable((String) strokeData);\n ((MyImageVector) img).reloadDocFromString();\n }\n }\n }\n System.exit(0);\n }", "public static void paint(Graphics2D g) {\n Shape shape = null;\n Paint paint = null;\n Stroke stroke = null;\n Area clip = null;\n \n float origAlpha = 1.0f;\n Composite origComposite = g.getComposite();\n if (origComposite instanceof AlphaComposite) {\n AlphaComposite origAlphaComposite = \n (AlphaComposite)origComposite;\n if (origAlphaComposite.getRule() == AlphaComposite.SRC_OVER) {\n origAlpha = origAlphaComposite.getAlpha();\n }\n }\n \n\t Shape clip_ = g.getClip();\nAffineTransform defaultTransform_ = g.getTransform();\n// is CompositeGraphicsNode\nfloat alpha__0 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0 = g.getClip();\nAffineTransform defaultTransform__0 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nclip = new Area(g.getClip());\nclip.intersect(new Area(new Rectangle2D.Double(0.0,0.0,48.0,48.0)));\ng.setClip(clip);\n// _0 is CompositeGraphicsNode\nfloat alpha__0_0 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0 = g.getClip();\nAffineTransform defaultTransform__0_0 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0 is CompositeGraphicsNode\nfloat alpha__0_0_0 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0 = g.getClip();\nAffineTransform defaultTransform__0_0_0 = g.getTransform();\ng.transform(new AffineTransform(0.023640267550945282f, 0.0f, 0.0f, 0.022995369508862495f, 45.02649688720703f, 39.46533203125f));\n// _0_0_0 is CompositeGraphicsNode\nfloat alpha__0_0_0_0 = origAlpha;\norigAlpha = origAlpha * 0.40206185f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0_0 = g.getClip();\nAffineTransform defaultTransform__0_0_0_0 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_0_0 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(302.8571472167969, 366.64788818359375), new Point2D.Double(302.8571472167969, 609.5050659179688), new float[] {0.0f,0.5f,1.0f}, new Color[] {new Color(0, 0, 0, 0),new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(2.7743890285491943f, 0.0f, 0.0f, 1.9697060585021973f, -1892.178955078125f, -872.8853759765625f));\nshape = new Rectangle2D.Double(-1559.2523193359375, -150.6968536376953, 1339.633544921875, 478.357177734375);\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_0_0;\ng.setTransform(defaultTransform__0_0_0_0);\ng.setClip(clip__0_0_0_0);\nfloat alpha__0_0_0_1 = origAlpha;\norigAlpha = origAlpha * 0.40206185f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0_1 = g.getClip();\nAffineTransform defaultTransform__0_0_0_1 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_0_1 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(605.7142944335938, 486.64788818359375), 117.14286f, new Point2D.Double(605.7142944335938, 486.64788818359375), new float[] {0.0f,1.0f}, new Color[] {new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(2.7743890285491943f, 0.0f, 0.0f, 1.9697060585021973f, -1891.633056640625f, -872.8853759765625f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(-219.61876, -150.68037);\n((GeneralPath)shape).curveTo(-219.61876, -150.68037, -219.61876, 327.65042, -219.61876, 327.65042);\n((GeneralPath)shape).curveTo(-76.74459, 328.55087, 125.78146, 220.48074, 125.78138, 88.45424);\n((GeneralPath)shape).curveTo(125.78138, -43.572304, -33.655437, -150.68036, -219.61876, -150.68037);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_0_1;\ng.setTransform(defaultTransform__0_0_0_1);\ng.setClip(clip__0_0_0_1);\nfloat alpha__0_0_0_2 = origAlpha;\norigAlpha = origAlpha * 0.40206185f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_0_2 = g.getClip();\nAffineTransform defaultTransform__0_0_0_2 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_0_2 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(605.7142944335938, 486.64788818359375), 117.14286f, new Point2D.Double(605.7142944335938, 486.64788818359375), new float[] {0.0f,1.0f}, new Color[] {new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(-2.7743890285491943f, 0.0f, 0.0f, 1.9697060585021973f, 112.76229858398438f, -872.8853759765625f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(-1559.2523, -150.68037);\n((GeneralPath)shape).curveTo(-1559.2523, -150.68037, -1559.2523, 327.65042, -1559.2523, 327.65042);\n((GeneralPath)shape).curveTo(-1702.1265, 328.55087, -1904.6525, 220.48074, -1904.6525, 88.45424);\n((GeneralPath)shape).curveTo(-1904.6525, -43.572304, -1745.2157, -150.68036, -1559.2523, -150.68037);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_0_2;\ng.setTransform(defaultTransform__0_0_0_2);\ng.setClip(clip__0_0_0_2);\norigAlpha = alpha__0_0_0;\ng.setTransform(defaultTransform__0_0_0);\ng.setClip(clip__0_0_0);\nfloat alpha__0_0_1 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_1 = g.getClip();\nAffineTransform defaultTransform__0_0_1 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_1 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(25.0, 4.311681747436523), 19.996933f, new Point2D.Double(25.0, 4.311681747436523), new float[] {0.0f,0.25f,0.68f,1.0f}, new Color[] {new Color(143, 179, 217, 255),new Color(114, 159, 207, 255),new Color(52, 101, 164, 255),new Color(32, 74, 135, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(0.01216483861207962f, 2.585073947906494f, -3.2504982948303223f, 0.015296213328838348f, 38.710994720458984f, -60.38692092895508f));\nshape = new RoundRectangle2D.Double(4.499479293823242, 4.50103759765625, 38.993865966796875, 39.00564193725586, 4.95554780960083, 4.980924129486084);\ng.setPaint(paint);\ng.fill(shape);\npaint = new LinearGradientPaint(new Point2D.Double(20.0, 4.0), new Point2D.Double(20.0, 44.0), new float[] {0.0f,1.0f}, new Color[] {new Color(52, 101, 164, 255),new Color(32, 74, 135, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nstroke = new BasicStroke(1.0f,0,1,4.0f,null,0.0f);\nshape = new RoundRectangle2D.Double(4.499479293823242, 4.50103759765625, 38.993865966796875, 39.00564193725586, 4.95554780960083, 4.980924129486084);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_1;\ng.setTransform(defaultTransform__0_0_1);\ng.setClip(clip__0_0_1);\nfloat alpha__0_0_2 = origAlpha;\norigAlpha = origAlpha * 0.5f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_2 = g.getClip();\nAffineTransform defaultTransform__0_0_2 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_2 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(25.0, -0.05076269432902336), new Point2D.Double(25.285715103149414, 57.71428680419922), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nstroke = new BasicStroke(1.0f,0,1,4.0f,null,0.0f);\nshape = new RoundRectangle2D.Double(5.5017547607421875, 5.489577293395996, 36.996883392333984, 37.007320404052734, 3.013584613800049, 2.9943172931671143);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_2;\ng.setTransform(defaultTransform__0_0_2);\ng.setClip(clip__0_0_2);\nfloat alpha__0_0_3 = origAlpha;\norigAlpha = origAlpha * 0.5f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_3 = g.getClip();\nAffineTransform defaultTransform__0_0_3 = g.getTransform();\ng.transform(new AffineTransform(0.19086800515651703f, 0.1612599939107895f, 0.1612599939107895f, -0.19086800515651703f, 7.2809157371521f, 24.306129455566406f));\n// _0_0_3 is CompositeGraphicsNode\norigAlpha = alpha__0_0_3;\ng.setTransform(defaultTransform__0_0_3);\ng.setClip(clip__0_0_3);\nfloat alpha__0_0_4 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_4 = g.getClip();\nAffineTransform defaultTransform__0_0_4 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_4 is ShapeNode\norigAlpha = alpha__0_0_4;\ng.setTransform(defaultTransform__0_0_4);\ng.setClip(clip__0_0_4);\nfloat alpha__0_0_5 = origAlpha;\norigAlpha = origAlpha * 0.44444442f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_5 = g.getClip();\nAffineTransform defaultTransform__0_0_5 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_5 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(31.0, 12.875), new Point2D.Double(3.2591991424560547, 24.893844604492188), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.535999596118927f, 5.498996734619141f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(0.91099966, 27.748999);\n((GeneralPath)shape).curveTo(28.15259, 29.47655, 10.984791, 13.750064, 32.036, 13.248998);\n((GeneralPath)shape).lineTo(37.325214, 24.364037);\n((GeneralPath)shape).curveTo(27.718748, 19.884726, 21.14768, 42.897034, 0.78599966, 29.373999);\n((GeneralPath)shape).lineTo(0.91099966, 27.748999);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_5;\ng.setTransform(defaultTransform__0_0_5);\ng.setClip(clip__0_0_5);\nfloat alpha__0_0_6 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_6 = g.getClip();\nAffineTransform defaultTransform__0_0_6 = g.getTransform();\ng.transform(new AffineTransform(0.665929913520813f, 0.0f, 0.0f, 0.665929913520813f, 11.393279075622559f, 4.907034873962402f));\n// _0_0_6 is ShapeNode\npaint = new RadialGradientPaint(new Point2D.Double(32.5, 16.5625), 14.4375f, new Point2D.Double(32.5, 16.5625), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(46.9375, 16.5625);\n((GeneralPath)shape).curveTo(46.9375, 24.536112, 40.47361, 31.0, 32.5, 31.0);\n((GeneralPath)shape).curveTo(24.526388, 31.0, 18.0625, 24.536112, 18.0625, 16.5625);\n((GeneralPath)shape).curveTo(18.0625, 8.588889, 24.526388, 2.125, 32.5, 2.125);\n((GeneralPath)shape).curveTo(40.47361, 2.125, 46.9375, 8.588889, 46.9375, 16.5625);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_6;\ng.setTransform(defaultTransform__0_0_6);\ng.setClip(clip__0_0_6);\nfloat alpha__0_0_7 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_7 = g.getClip();\nAffineTransform defaultTransform__0_0_7 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_7 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(39.0, 26.125), new Point2D.Double(36.375, 20.4375), new float[] {0.0f,1.0f}, new Color[] {new Color(27, 31, 32, 255),new Color(186, 189, 182, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.535999596118927f, -1.5010031461715698f));\nstroke = new BasicStroke(4.0f,1,0,4.0f,null,0.0f);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(33.036, 14.998998);\n((GeneralPath)shape).lineTo(46.036, 43.999);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_7;\ng.setTransform(defaultTransform__0_0_7);\ng.setClip(clip__0_0_7);\nfloat alpha__0_0_8 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_8 = g.getClip();\nAffineTransform defaultTransform__0_0_8 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\n// _0_0_8 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(33.036, 14.998998);\n((GeneralPath)shape).lineTo(46.036, 43.999);\ng.setPaint(paint);\ng.fill(shape);\npaint = new LinearGradientPaint(new Point2D.Double(42.90625, 42.21875), new Point2D.Double(44.8125, 41.40625), new float[] {0.0f,0.64444447f,1.0f}, new Color[] {new Color(46, 52, 54, 255),new Color(136, 138, 133, 255),new Color(85, 87, 83, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.535999596118927f, -1.5010031461715698f));\nstroke = new BasicStroke(2.0f,1,0,4.0f,null,0.0f);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(33.036, 14.998998);\n((GeneralPath)shape).lineTo(46.036, 43.999);\ng.setPaint(paint);\ng.setStroke(stroke);\ng.draw(shape);\norigAlpha = alpha__0_0_8;\ng.setTransform(defaultTransform__0_0_8);\ng.setClip(clip__0_0_8);\nfloat alpha__0_0_9 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_9 = g.getClip();\nAffineTransform defaultTransform__0_0_9 = g.getTransform();\ng.transform(new AffineTransform(1.272613286972046f, 0.0f, 0.0f, 1.272613286972046f, 12.072080612182617f, -6.673644065856934f));\n// _0_0_9 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(15.5, 24.75);\n((GeneralPath)shape).lineTo(11.728554, 24.19539);\n((GeneralPath)shape).lineTo(9.451035, 27.075687);\n((GeneralPath)shape).lineTo(8.813057, 23.317446);\n((GeneralPath)shape).lineTo(5.3699408, 22.041456);\n((GeneralPath)shape).lineTo(8.747095, 20.273342);\n((GeneralPath)shape).lineTo(8.896652, 16.604443);\n((GeneralPath)shape).lineTo(11.621825, 19.26993);\n((GeneralPath)shape).lineTo(15.157373, 18.278416);\n((GeneralPath)shape).lineTo(13.464468, 21.69389);\n((GeneralPath)shape).lineTo(15.5, 24.75);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_9;\ng.setTransform(defaultTransform__0_0_9);\ng.setClip(clip__0_0_9);\nfloat alpha__0_0_10 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_10 = g.getClip();\nAffineTransform defaultTransform__0_0_10 = g.getTransform();\ng.transform(new AffineTransform(0.5838837027549744f, 0.5838837027549744f, -0.5838837027549744f, 0.5838837027549744f, 24.48128318786621f, 9.477374076843262f));\n// _0_0_10 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(15.5, 24.75);\n((GeneralPath)shape).lineTo(11.728554, 24.19539);\n((GeneralPath)shape).lineTo(9.451035, 27.075687);\n((GeneralPath)shape).lineTo(8.813057, 23.317446);\n((GeneralPath)shape).lineTo(5.3699408, 22.041456);\n((GeneralPath)shape).lineTo(8.747095, 20.273342);\n((GeneralPath)shape).lineTo(8.896652, 16.604443);\n((GeneralPath)shape).lineTo(11.621825, 19.26993);\n((GeneralPath)shape).lineTo(15.157373, 18.278416);\n((GeneralPath)shape).lineTo(13.464468, 21.69389);\n((GeneralPath)shape).lineTo(15.5, 24.75);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_10;\ng.setTransform(defaultTransform__0_0_10);\ng.setClip(clip__0_0_10);\nfloat alpha__0_0_11 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_11 = g.getClip();\nAffineTransform defaultTransform__0_0_11 = g.getTransform();\ng.transform(new AffineTransform(0.5791025757789612f, 0.12860369682312012f, -0.12860369682312012f, 0.5791025757789612f, 5.244583606719971f, 16.59849739074707f));\n// _0_0_11 is ShapeNode\npaint = new Color(255, 255, 255, 255);\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(15.5, 24.75);\n((GeneralPath)shape).lineTo(11.728554, 24.19539);\n((GeneralPath)shape).lineTo(9.451035, 27.075687);\n((GeneralPath)shape).lineTo(8.813057, 23.317446);\n((GeneralPath)shape).lineTo(5.3699408, 22.041456);\n((GeneralPath)shape).lineTo(8.747095, 20.273342);\n((GeneralPath)shape).lineTo(8.896652, 16.604443);\n((GeneralPath)shape).lineTo(11.621825, 19.26993);\n((GeneralPath)shape).lineTo(15.157373, 18.278416);\n((GeneralPath)shape).lineTo(13.464468, 21.69389);\n((GeneralPath)shape).lineTo(15.5, 24.75);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_11;\ng.setTransform(defaultTransform__0_0_11);\ng.setClip(clip__0_0_11);\nfloat alpha__0_0_12 = origAlpha;\norigAlpha = origAlpha * 1.0f;\ng.setComposite(AlphaComposite.getInstance(3, origAlpha));\nShape clip__0_0_12 = g.getClip();\nAffineTransform defaultTransform__0_0_12 = g.getTransform();\ng.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.005668648984283209f, 1.9989968538284302f));\n// _0_0_12 is ShapeNode\npaint = new LinearGradientPaint(new Point2D.Double(31.994285583496094, 16.859249114990234), new Point2D.Double(37.7237434387207, 16.859249114990234), new float[] {0.0f,0.7888889f,1.0f}, new Color[] {new Color(238, 238, 236, 255),new Color(255, 255, 255, 255),new Color(238, 238, 236, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));\nshape = new GeneralPath();\n((GeneralPath)shape).moveTo(32.9375, 11.9375);\n((GeneralPath)shape).curveTo(32.87939, 11.943775, 32.84168, 11.954412, 32.78125, 11.96875);\n((GeneralPath)shape).curveTo(32.480507, 12.044301, 32.22415, 12.283065, 32.09375, 12.5625);\n((GeneralPath)shape).curveTo(31.963346, 12.841935, 31.958935, 13.12817, 32.09375, 13.40625);\n((GeneralPath)shape).lineTo(35.84375, 21.75);\n((GeneralPath)shape).curveTo(35.837093, 21.759354, 35.837093, 21.771896, 35.84375, 21.78125);\n((GeneralPath)shape).curveTo(35.853104, 21.787907, 35.865646, 21.787907, 35.875, 21.78125);\n((GeneralPath)shape).curveTo(35.884354, 21.787907, 35.896896, 21.787907, 35.90625, 21.78125);\n((GeneralPath)shape).curveTo(35.912907, 21.771896, 35.912907, 21.759354, 35.90625, 21.75);\n((GeneralPath)shape).curveTo(36.14071, 21.344227, 36.483208, 21.082874, 36.9375, 20.96875);\n((GeneralPath)shape).curveTo(37.18631, 20.909716, 37.44822, 20.917711, 37.6875, 20.96875);\n((GeneralPath)shape).curveTo(37.696854, 20.975407, 37.709396, 20.975407, 37.71875, 20.96875);\n((GeneralPath)shape).curveTo(37.725407, 20.959396, 37.725407, 20.946854, 37.71875, 20.9375);\n((GeneralPath)shape).lineTo(33.96875, 12.59375);\n((GeneralPath)shape).curveTo(33.824844, 12.242701, 33.48375, 11.983006, 33.125, 11.9375);\n((GeneralPath)shape).curveTo(33.06451, 11.929827, 32.99561, 11.931225, 32.9375, 11.9375);\n((GeneralPath)shape).closePath();\ng.setPaint(paint);\ng.fill(shape);\norigAlpha = alpha__0_0_12;\ng.setTransform(defaultTransform__0_0_12);\ng.setClip(clip__0_0_12);\norigAlpha = alpha__0_0;\ng.setTransform(defaultTransform__0_0);\ng.setClip(clip__0_0);\norigAlpha = alpha__0;\ng.setTransform(defaultTransform__0);\ng.setClip(clip__0);\ng.setTransform(defaultTransform_);\ng.setClip(clip_);\n\n\t}", "public void calling() {\n\t\tCircle tc = new Circle(new Coordinate(-73, 42), 0);\n\t\tif (PaintShapes.painting && logger.isDebugEnabled()) {\n\t\t\tPaintShapes.paint.color = PaintShapes.paint.redTranslucence;\n\t\t\tPaintShapes.paint.addCircle(tc);\n\t\t\tPaintShapes.paint.myRepaint();\n\t\t}\n\t\t\n//\t\tMap<Double, Coordinate>angle_coordinate=new HashMap<Double, Coordinate>();\n//\t\tLinkedList<double[]>coverangle=new LinkedList<double[]>();\n//\t\tMap<Double[], Coordinate[]>uncoverArc=new HashMap<Double[], Coordinate[]>();\n//\t\tdouble a1[]=new double[2];\n//\t\ta1[0]=80;\n//\t\ta1[1]=100;\n//\t\tangle_coordinate.put(a1[0], new Coordinate(1, 0));\n//\t\tangle_coordinate.put(a1[1], new Coordinate(0, 1));\n//\t\tcoverangle.add(a1);\n//\t\tdouble a2[]=new double[2];\n//\t\ta2[0]=0;\n//\t\ta2[1]=30;\n//\t\tangle_coordinate.put(a2[0], new Coordinate(2, 0));\n//\t\tangle_coordinate.put(a2[1], new Coordinate(0, 2));\n//\t\tcoverangle.add(a2);\n//\t\tdouble a3[]=new double[2];\n//\t\ta3[0]=330;\n//\t\ta3[1]=360;\n//\t\tangle_coordinate.put(a3[0], new Coordinate(3, 0));\n//\t\tangle_coordinate.put(a3[1], new Coordinate(7, 7));\n//\t\tcoverangle.add(a3);\n//\t\tdouble a4[]=new double[2];\n//\t\ta4[0]=20;\n//\t\ta4[1]=90;\n//\t\tangle_coordinate.put(a4[0], new Coordinate(4, 0));\n//\t\tangle_coordinate.put(a4[1], new Coordinate(0, 4));\n//\t\tcoverangle.add(a4);\n//\t\tdouble a5[]=new double[2];\n//\t\ta5[0]=180;\n//\t\ta5[1]=240;\n//\t\tangle_coordinate.put(a5[0], new Coordinate(5, 0));\n//\t\tangle_coordinate.put(a5[1], new Coordinate(0, 5));\n//\t\tcoverangle.add(a5);\n//\t\tdouble a6[]=new double[2];\n//\t\ta6[0]=270;\n//\t\ta6[1]=300;\n//\t\tangle_coordinate.put(a6[0], new Coordinate(6, 0));\n//\t\tangle_coordinate.put(a6[1], new Coordinate(0, 6));\n//\t\tcoverangle.add(a6);\n//\t\tdouble a7[]=new double[2];\n//\t\ta7[0]=360;\n//\t\ta7[1]=360;\n//\t\tangle_coordinate.put(a7[0], new Coordinate(7, 7));\n//\t\tangle_coordinate.put(a7[1], new Coordinate(7, 7));\n//\t\tcoverangle.add(a7);\n//\t\t// sort the cover arc\n//\t\tint minindex = 0;\n//\t\tfor (int j = 0; j < coverangle.size() - 1; j++) {\n//\t\t\tminindex = j;\n//\t\t\tfor (int k = j + 1; k < coverangle.size(); k++) {\n//\t\t\t\tif (coverangle.get(minindex)[0] > coverangle.get(k)[0]) {\n//\t\t\t\t\tminindex = k;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tdouble tem[] = new double[2];\n//\t\t\ttem = coverangle.get(j);\n//\t\t\tcoverangle.set(j, coverangle.get(minindex));\n//\t\t\tcoverangle.set(minindex, tem);\n//\t\t}\n//\t\tfor(int ii=0;ii<coverangle.size();ii++){\n//\t\t\tdouble aa[]=coverangle.get(ii);\n//\t\t\tSystem.out.println(aa[0]+\" \"+aa[1]);\n//\t\t}\n//\t\tSystem.out.println(\"----------------------------\");\n//\t\t// find the uncover arc\n//\t\tint startposition = 0;\n//\t\twhile (startposition < coverangle.size() - 1) {\n//\t\t\tdouble coverArc[] = coverangle.get(startposition);\n//\t\t\tboolean stop = false;\n//\t\t\tint m = 0;\n//\t\t\tfor (m = startposition + 1; m < coverangle.size() && !stop; m++) {\n//\t\t\t\tdouble bb[] = coverangle.get(m);\n//\t\t\t\tif (bb[0] <= coverArc[1]) {\n//\t\t\t\t\tcoverArc[0] = Math.min(coverArc[0], bb[0]);\n//\t\t\t\t\tcoverArc[1] = Math.max(coverArc[1], bb[1]);\n//\t\t\t\t} else {\n//\t\t\t\t\tCoordinate uncover[]=new Coordinate[2];\n//\t\t\t\t\t//record the consistant uncover angle\n//\t\t\t\t\tDouble[] uncoverA=new Double[2];\n//\t\t\t\t\tuncoverA[0]=coverArc[1];\n//\t\t\t\t\tuncoverA[1]=bb[0];\n//\t\t\t\t\tIterator<Map.Entry<Double, Coordinate>> entries = angle_coordinate\n//\t\t\t\t\t\t\t.entrySet().iterator();\n//\t\t\t\t\twhile (entries.hasNext()) {\n//\t\t\t\t\t\tMap.Entry<Double, Coordinate> entry = entries.next();\n//\t\t\t\t\t\tif (entry.getKey() == coverArc[1])\n//\t\t\t\t\t\t\tuncover[0] = entry.getValue();\n//\t\t\t\t\t\telse if (entry.getKey() == bb[0])\n//\t\t\t\t\t\t\tuncover[1] = entry.getValue();\n//\t\t\t\t\t}\n//\t\t\t\t\tuncoverArc.put(uncoverA, uncover);\n//\t\t\t\t\tstartposition = m;\n//\t\t\t\t\tstop = true;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tif(m==coverangle.size()){\n//\t\t\t\tstartposition=m;\n//\t\t\t}\n//\t\t}\n//\t\n//\t\tSystem.out.println(uncoverArc.entrySet().size());\n//\t\tint n=uncoverArc.entrySet().size();\n//\t\tint k=2;\n//\t\twhile(n>0){\n//\t\t\tIterator<Map.Entry<Double[],Coordinate[]>>it=uncoverArc.entrySet().iterator();\n//\t\t\tMap.Entry<Double[], Coordinate[]>newneighbor=it.next();\n//\t\t\tSystem.out.println(newneighbor.getKey()[0]+\" \"+newneighbor.getValue()[0]);\n//\t\t\tSystem.out.println(newneighbor.getKey()[1]+\" \"+newneighbor.getValue()[1]);\n//\t\t uncoverArc.remove(newneighbor.getKey());\n//\t\t \n//\t\tif(k==2){\n//\t\tDouble[] a8=new Double[2];\n//\t\ta8[0]=(double)450;\n//\t\ta8[1]=(double)500;\n//\t\tCoordinate a9[]=new Coordinate[2];\n//\t\ta9[0]=new Coordinate(9, 0);\n//\t\ta9[1]=new Coordinate(0, 9);\n//\t\tuncoverArc.put(a8, a9);\n//\t\tk++;\n//\t\t}\n//\t\tn=uncoverArc.entrySet().size();\n//\t\tSystem.out.println(\"new size=\"+uncoverArc.entrySet().size());\n//\t\t}\n//\t\t\t\n\t\t\t\n\t\t\n\t\t/***************new test*************************************/\n//\t\tCoordinate startPoint=new Coordinate(500, 500);\n//\t\tLinkedList<VQP>visitedcircle_Queue=new LinkedList<VQP>();\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(500, 500), 45));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(589, 540), 67));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(500, 550), 95));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(439, 560), 124));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(460, 478), 69));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(580, 580), 70));\n//\t\tIterator<VQP>testiterator=visitedcircle_Queue.iterator();\n//\t\twhile(testiterator.hasNext()){\n//\t\t\tVQP m1=testiterator.next();\n//\t\t\tCircle tm=new Circle(m1.getCoordinate(), m1.getRadius());\n//\t\t\tif (PaintShapes.painting && logger.isDebugEnabled()) {\n//\t\t\t\tPaintShapes.paint.color = PaintShapes.paint.redTranslucence;\n//\t\t\t\tPaintShapes.paint.addCircle(tm);\n//\t\t\t\tPaintShapes.paint.myRepaint();\n//\t\t\t}\n//\t\t\t\n//\t\t}\n//\t\tdouble coverradius=calculateIncircle(startPoint, visitedcircle_Queue);\n//\t\tCircle incircle=new Circle(startPoint, coverradius);\n//\t\tif (PaintShapes.painting && logger.isDebugEnabled()) {\n//\t\t\tPaintShapes.paint.color = PaintShapes.paint.blueTranslucence;\n//\t\t\tPaintShapes.paint.addCircle(incircle);\n//\t\t\tPaintShapes.paint.myRepaint();\n//\t\t}\n//\t\t/***************end test*************************************/\n\t\tEnvelope envelope = new Envelope(-79.76259, -71.777491,\n\t\t\t\t40.477399, 45.015865);\n\t\tdouble area=envelope.getArea();\n\t\tdouble density=57584/area;\n\t\tSystem.out.println(\"density=\"+density);\n\t\tSystem.out.println(\"end calling!\");\n\t}", "@Override\r\n public void draw() {\n }", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "@Override\n public void draw() {\n super.draw(); \n double radius = (this.getLevel() * 0.0001 + 0.025) * 2.5e10;\n double x = this.getR().cartesian(0) - Math.cos(rot) * radius;\n double y = this.getR().cartesian(1) - Math.sin(rot) * radius;\n StdDraw.setPenRadius(0.01);\n StdDraw.setPenColor(StdDraw.RED);\n StdDraw.point(x, y);\n \n }", "public abstract void draw( );", "static void drawPop(){\n\t\tif (currentStage[currentSlice-1]>3)\n\t\t{\n\t\t\tfloat x1,y1;\n\t\t\tint N = pop.N;\n\n\t\t\tfor (int i=0;i<N;i++)\n\t\t\t{\n\t\t\t\tBalloon bal;\n\t\t\t\tbal = (Balloon)(pop.BallList.get(i));\n\t\t\t\tint n = bal.XX.length;\n\n\t\t\t\t// filtering (for testing purposes)\n\t\t\t\tboolean isToDraw = true;\n\t\t\t\tBalloon B0 = ((Balloon)(pop.BallList.get(i)));\n\t\t\t\tB0.mass_geometry();\n\t\t\t\tif (pop.contacts != null)\n\t\t\t\t{\n\t\t\t\t\tfor (int k=0;k<B0.n0;k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (pop.contacts[i][k] == -1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisToDraw = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// draw\n\t\t\t\tshape.setWindingRule(0);\n\t\t\t\tif (isToDraw)\n\t\t\t\t{\n\t\t\t\t\tPolygonRoi Proi = B0.Proi;\n\t\t\t\t\tProi.setStrokeColor(Color.red);\n\t\t\t\t Proi.setStrokeWidth(3);\n\t\t\t\t OL.add(Proi);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void draw(Graphics2D g) {\n\t\t\n\t}", "@Test\n public void test78() throws Throwable {\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double((-1851.4229665529), (-1851.4229665529), (-1851.4229665529), (-1851.4229665529));\n rectangle2D_Double0.y = (-1851.4229665529);\n rectangle2D_Double0.setRect(0.0, (-216.554), 10.0, 0.0);\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n BasicStroke basicStroke0 = (BasicStroke)combinedDomainCategoryPlot0.getRangeGridlineStroke();\n }", "@Override\n public void draw()\n {\n }", "@Override\n\tprotected void outlineShape(Graphics graphics) {\n\t}", "@Test\n public void test83() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n RingPlot ringPlot0 = new RingPlot();\n Color color0 = (Color)ringPlot0.getBaseSectionOutlinePaint();\n combinedDomainCategoryPlot0.setNoDataMessagePaint(color0);\n DefaultKeyedValuesDataset defaultKeyedValuesDataset0 = new DefaultKeyedValuesDataset();\n RingPlot ringPlot1 = new RingPlot((PieDataset) defaultKeyedValuesDataset0);\n StandardPieToolTipGenerator standardPieToolTipGenerator0 = new StandardPieToolTipGenerator(\"%c+@_45aZ\");\n ringPlot1.setToolTipGenerator(standardPieToolTipGenerator0);\n BasicStroke basicStroke0 = (BasicStroke)ringPlot1.getLabelLinkStroke();\n ringPlot1.zoom((-1302.45679683));\n combinedDomainCategoryPlot0.setRangeCrosshairStroke(basicStroke0);\n combinedDomainCategoryPlot0.clearDomainMarkers();\n LineRenderer3D lineRenderer3D0 = new LineRenderer3D();\n int int0 = combinedDomainCategoryPlot0.getIndexOf(lineRenderer3D0);\n NumberAxis numberAxis0 = new NumberAxis();\n Arc2D.Double arc2D_Double0 = new Arc2D.Double();\n numberAxis0.setLeftArrow(arc2D_Double0);\n // Undeclared exception!\n try { \n combinedDomainCategoryPlot0.setRangeAxis((-1), (ValueAxis) numberAxis0);\n } catch(IllegalArgumentException e) {\n //\n // Requires index >= 0.\n //\n assertThrownBy(\"org.jfree.chart.util.AbstractObjectList\", e);\n }\n }", "public void paint(Graphics graphics)\r\n/* 30: */ {\r\n/* 31:27 */ Graphics2D g = (Graphics2D)graphics;\r\n/* 32:28 */ int height = getHeight();\r\n/* 33:29 */ int width = getWidth();\r\n/* 34: */ }", "public static void main(String[] args) {\n\n\t\t\n\t\t\n\t\t\n\t\tRect r = new Rect();\n\t\t\n\t\n\t\tshape p = r;\n\t\n\t\n\t System.out.println(p.name);\n\t\n\t\n\t\n\t}", "@Override\n\tpublic void redraw() {\n\t\t\n\t}", "@Override\n void drawShape(BufferedImage image, int color) {\n Point diem2 = new Point(diem.getX()+canh, diem.getY());\n Point td = new Point(diem.getX()+canh/2, diem.getY());\n \n \n Point dinh = new Point(td.getX(), td.getY()+h);\n \n Point diem_thuc = Point.convert(diem);\n Point diem_2_thuc = Point.convert(diem2);\n Point dinh_thuc = Point.convert(dinh);\n Point td_thuc = Point.convert(td);\n \n Line canh1=new Line(dinh_thuc, diem_thuc);\n canh1.drawShape(image, ColorConstant.BLACK_RGB);\n Line canh2=new Line(diem_thuc, diem_2_thuc);\n canh2.drawShape(image, ColorConstant.BLACK_RGB);\n Line canh3=new Line(diem_2_thuc, dinh_thuc);\n canh3.drawShape(image, ColorConstant.BLACK_RGB);\n int k =5;\n for(int i =canh1.getPoints().size()-5;i>=5;i--){\n \n for(int j = 0;j<canh*5/2-5;j++){\n \n Point ve = new Point(td_thuc.getX()-canh*5/2+j+5, td_thuc.getY()-k);\n if(ve.getX()>canh1.getPoints().get(i).getX()+5){\n Point.putPoint(ve, image, color);\n }\n }\n k++;\n }\n k=5;\n for(int i =canh3.getPoints().size()-5;i>=5;i--){\n \n for(int j = 0;j<canh*5/2-5;j++){\n Point ve = null;\n \n ve = new Point(td_thuc.getX()+canh*5/2-j-5, td_thuc.getY()-k);\n if(ve.getX()<canh3.getPoints().get(i).getX()-5){\n Point.putPoint(ve, image, color);\n }\n }\n k++;\n }\n }", "public void draw();", "public void draw();", "public void draw();", "void drawMancalaShape(Graphics g, int x, int y, int width, int height, int stoneNum, String pitLabel);", "private void drawData(Graphics g, int radius, int xCenter, int yCenter)\r\n/* 77: */ {\r\n/* 78: 54 */ double angle = 6.283185307179586D / this.data.length;\r\n/* 79: 55 */ int[] x = new int[this.data.length];\r\n/* 80: 56 */ int[] y = new int[this.data.length];\r\n/* 81: 57 */ int[] dataX = new int[this.data.length];\r\n/* 82: 58 */ int[] dataY = new int[this.data.length];\r\n/* 83: 59 */ int[] contourX = new int[this.data.length];\r\n/* 84: 60 */ int[] contourY = new int[this.data.length];\r\n/* 85: 61 */ int ballRadius = radius * this.ballPercentage / 100;\r\n/* 86: 62 */ for (int i = 0; i < this.data.length; i++)\r\n/* 87: */ {\r\n/* 88: 63 */ double theta = i * angle;\r\n/* 89: 64 */ x[i] = ((int)(radius * Math.cos(theta)));\r\n/* 90: 65 */ y[i] = ((int)(radius * Math.sin(theta)));\r\n/* 91: 66 */ dataX[i] = ((int)(x[i] * this.data[i]));\r\n/* 92: 67 */ dataY[i] = ((int)(y[i] * this.data[i]));\r\n/* 93: 68 */ contourX[i] = (xCenter + dataX[i]);\r\n/* 94: 69 */ contourY[i] = (yCenter + dataY[i]);\r\n/* 95: */ }\r\n/* 96: 72 */ if (this.fillArea)\r\n/* 97: */ {\r\n/* 98: 73 */ Color handle = g.getColor();\r\n/* 99: 74 */ g.setColor(this.areaColor);\r\n/* 100: 75 */ g.fillPolygon(contourX, contourY, this.data.length);\r\n/* 101: 76 */ g.setColor(handle);\r\n/* 102: */ }\r\n/* 103: 79 */ for (int i = 0; i < this.data.length; i++) {\r\n/* 104: 80 */ g.drawLine(xCenter, yCenter, xCenter + x[i], yCenter + y[i]);\r\n/* 105: */ }\r\n/* 106: 83 */ if ((this.connectDots) || (this.fillArea)) {\r\n/* 107: 84 */ for (int i = 0; i < this.data.length; i++)\r\n/* 108: */ {\r\n/* 109: 85 */ int nextI = (i + 1) % this.data.length;\r\n/* 110: 86 */ g.drawLine(contourX[i], contourY[i], contourX[nextI], contourY[nextI]);\r\n/* 111: */ }\r\n/* 112: */ }\r\n/* 113: 90 */ for (int i = 0; i < this.data.length; i++)\r\n/* 114: */ {\r\n/* 115: 91 */ Color handle = g.getColor();\r\n/* 116: 92 */ g.setColor(this.ballColor);\r\n/* 117: 93 */ drawDataPoint(g, ballRadius, contourX[i], contourY[i]);\r\n/* 118: 94 */ g.setColor(handle);\r\n/* 119: */ }\r\n/* 120: */ }", "@Override\r\n public void draw()\r\n {\n\r\n }", "@Override\n public void draw() {\n }", "void drawShape(Shape s) {\n }", "public static void main(String arg[]) {\n Shape s ;\n s= new Shape() ;\n s.draw();\n s= new Rectange();\n s.draw();\n}", "public void SubRect(){\n\t\n}", "protected void plotScatterDiagram(){\n double xmax = a + 5. * gamma;\r\n double xmin = a - 5. * gamma;\r\n DatanGraphics.openWorkstation(getClass().getName(), \"\");\r\n DatanGraphics.setFormat(0., 0.);\r\n DatanGraphics.setWindowInComputingCoordinates(xmin, xmax, 0., .5);\r\n DatanGraphics.setViewportInWorldCoordinates(-.15, .9, .16, .86);\r\n DatanGraphics.setWindowInWorldCoordinates(-.414, 1., 0., 1.);\r\n DatanGraphics.setBigClippingWindow();\r\n DatanGraphics.chooseColor(2);\r\n DatanGraphics.drawFrame();\r\n DatanGraphics.drawScaleX(\"y\");\r\n DatanGraphics.drawScaleY(\"f(y)\");\r\n DatanGraphics.drawBoundary();\r\n double xpl[] = new double[2];\r\n double ypl[] = new double[2];\r\n// plot scatter diagram\r\n DatanGraphics.chooseColor(1);\r\n for(int i = 0; i < y.length; i++){\r\n xpl[0] = y[i];\r\n xpl[1] = y[i];\r\n ypl[0] = 0.;\r\n ypl[0] = .1;\r\n DatanGraphics.drawPolyline(xpl, ypl); \r\n }\r\n// draw Breit-Wigner corresponding to solution\r\n int npl = 100;\r\n xpl = new double[npl];\r\n ypl = new double[npl];\r\n double dpl = (xmax - xmin) / (double)(npl - 1);\r\n for(int i = 0; i < npl; i++){\r\n xpl[i] = xmin + (double)i * dpl;\r\n ypl[i] = breitWigner(xpl[i], x.getElement(0), x.getElement(1));\r\n }\r\n DatanGraphics.chooseColor(5);\r\n DatanGraphics.drawPolyline(xpl, ypl);\r\n// draw caption\r\n String sn = \"N = \" + nny;\r\n\t numForm.setMaximumFractionDigits(3);\r\n \t numForm.setMinimumFractionDigits(3);\r\n String sx1 = \", x_1# = \" + numForm.format(x.getElement(0));\r\n String sx2 = \", x_2# = \" + numForm.format(x.getElement(1));\r\n String sdx1 = \", &D@x_1# = \" + numForm.format(Math.sqrt(cx.getElement(0,0)));\r\n String sdx2 = \", &D@x_2# = \" + numForm.format(Math.sqrt(cx.getElement(1,1)));\r\n caption = sn + sx1 + sx2 + sdx1 + sdx2;\r\n DatanGraphics.setBigClippingWindow();\r\n DatanGraphics.chooseColor(2);\r\n DatanGraphics.drawCaption(1., caption);\r\n DatanGraphics.closeWorkstation();\r\n\r\n }", "public void paintComponent(Graphics g) {\r\n \tsuper.paintComponent(g);\r\n \t/*print the boat*/\r\n \tReadFile file = new ReadFile();\r\n \t\tfile.openFile(); \r\n \t\t/* Map include all the points of the boat*/\r\n \t\tMap <String,ArrayList<Point>> map = new HashMap<String,ArrayList<Point>>();\r\n \t\tmap = file.parseFile(); \r\n \t\tfor (String key : map.keySet()) {\r\n \t \tif (key.startsWith(\"line\"))\r\n \t \t{\r\n \t \t System.out.println(key + \" \" + map.get(key));\r\n \t \t\tint x1 = (int) map.get(key).get(0).getX();\r\n \t \t\t int y1 = (int) map.get(key).get(0).getY();\r\n \t \t\t int x2 = (int)map.get(key).get(1).getX();\r\n \t \t\t int y2 = (int)map.get(key).get(1).getY();\r\n \t \t\t drawLine(x1,y1,x2,y2,g);\t \t\t\r\n \t \t}\r\n \t \tif (key.startsWith(\"circle\"))\r\n \t \t{\r\n \t \t System.out.println(key + \" \" + map.get(key));\r\n \t \t\tint x1 = (int) map.get(key).get(0).getX();\r\n \t \t\t int y1 = (int) map.get(key).get(0).getY();\r\n \t \t\t int x2 = (int)map.get(key).get(1).getX();\r\n \t \t\t int y2 = (int)map.get(key).get(1).getY();\r\n \t \t\t drawCircle(x1,y1,x2,y2,g);\t \t\t\r\n \t \t}\r\n \t \tif (key.startsWith(\"curve\"))\r\n \t \t{\r\n \t \t System.out.println(key + \" \" + map.get(key));\r\n \t \t\tint x1 = (int) map.get(key).get(0).getX();\r\n \t \t\tint y1 = (int) map.get(key).get(0).getY();\r\n \t \t\tint x2 = (int)map.get(key).get(1).getX();\r\n \t \t\tint y2 = (int)map.get(key).get(1).getY();\r\n \t \t\tint x3 = (int)map.get(key).get(2).getX();\r\n\t \t\tint y3 = (int)map.get(key).get(2).getY();\r\n\t \t\tint x4 = (int)map.get(key).get(3).getX();\r\n \t \t\tint y4 = (int)map.get(key).get(3).getY();\r\n \t \t\tdrawCurve(x1,y1,x2,y2,x3,y3,x4,y4,200,g); \t \t} \t\t\r\n \t\t}\r\n \t\t\r\n \t\t\r\n \t\t\r\n \tfor (int i = 0; i < clicksforLine.size(); i++ )\r\n\t\t{\r\n \t\tg.drawRect((int)Math.round(clicksforLine.get(i).getX()),(int) Math.round(clicksforLine.get(i).getY()),2,2);\r\n\r\n\t\t}\r\n \tfor (int j = 0; j < clicksforCircle.size(); j++ )\r\n\t\t{\r\n \t\tg.drawRect((int)Math.round(clicksforCircle.get(j).getX()),(int) Math.round(clicksforCircle.get(j).getY()),2,2);\r\n\r\n\t\t}\r\n \tfor (int j = 0; j < clicksforPoly.size(); j++ )\r\n\t\t{\r\n \t\tg.drawRect((int)Math.round(clicksforPoly.get(j).getX()),(int) Math.round(clicksforPoly.get(j).getY()),2,2);\r\n\r\n\t\t}\r\n \tfor (int j = 0; j < clicksforCurve.size(); j++ )\r\n\t\t{\r\n \t\tg.drawRect((int)Math.round(clicksforCurve.get(j).getX()),(int) Math.round(clicksforCurve.get(j).getY()),2,2);\r\n\r\n\t\t}\r\n \r\n \t\r\n \t//check is the list of the shape LINE has at least 2 points to draw line\r\n \tif (clicksforLine.size() >= 2)\r\n {\r\n \tfor (int i=0; i < clicksforLine.size(); i+=2 )\r\n \t \t\t{\r\n \t\t int x1=0, y1=0, x2=0, y2=0;\r\n \t\t \t\tSystem.out.println(\"Line case\");\r\n \t\t\t x1 = (int) clicksforLine.get(i).getX();\r\n \t\t\t y1 = (int) clicksforLine.get(i).getY();\r\n \t\t\t x2 = (int) clicksforLine.get(i+1).getX();\r\n \t\t\t y2 = (int) clicksforLine.get(i+1).getY();\r\n \t\t\t drawLine(x1,y1,x2,y2,g);\r\n \t \t \t\t\r\n \t \t}\r\n }\r\n //check is the list of the shape CIRCLE has at least 2 points to draw circle\r\n if (clicksforCircle.size() >= 2)\r\n {\t\r\n \tfor (int i=0; i < clicksforCircle.size(); i+=2 )\r\n \t\t \t{\r\n \t\t int x1=0, y1=0, x2=0, y2=0;\r\n \t\t \t\tSystem.out.println(\"Line case\");\r\n \t\t\t x1 = (int) clicksforCircle.get(i).getX();\r\n \t\t\t y1 = (int) clicksforCircle.get(i).getY();\r\n \t\t\t x2 = (int) clicksforCircle.get(i+1).getX();\r\n \t\t\t y2 = (int) clicksforCircle.get(i+1).getY();\r\n \t\t\t drawCircle(x1,y1,x2,y2,g);\r\n \t \t \t\t\r\n \t\t \t}\r\n \t }\r\n //check is the list of the shape LINE has at least 2 points to draw line\r\n if (clicksforPoly.size() >= 2)\r\n \t {\r\n \t\t \tfor (int i=0; i < clicksforPoly.size(); i+=2 )\r\n \t\t \t{\r\n \t\t int x1=0, y1=0, x2=0, y2=0;\r\n \t\t \t\tSystem.out.println(\"Line case\");\r\n \t\t\t x1 = (int) clicksforPoly.get(i).getX();\r\n \t\t\t y1 = (int) clicksforPoly.get(i).getY();\r\n \t\t\t x2 = (int) clicksforPoly.get(i+1).getX();\r\n \t\t\t y2 = (int) clicksforPoly.get(i+1).getY();\r\n \t\t\t String text = MyWindow.input.getText();\r\n \t\t\t drawPolygon(x1,y1,x2,y2,Integer.parseInt(text),g);\r\n \t \t \t\t\r\n \t\t \t}\r\n \t }\r\n //check is the list of the shape CURVE has at least 2 points to draw curve\r\n if (clicksforCurve.size() >= 4)\r\n \t {\r\n \t\t \tfor (int i=0; i < clicksforCurve.size(); i+=4 )\r\n \t\t \t{\r\n \t int x1=0, y1=0, x2=0, y2=0, x3=0,y3=0,x4=0,y4=0;\r\n \t \t\tSystem.out.println(\"Line case\");\r\n \t\t x1 = (int) clicksforCurve.get(i).getX();\r\n \t\t y1 = (int) clicksforCurve.get(i).getY();\r\n \t\t x2 = (int) clicksforCurve.get(i+1).getX();\r\n \t\t y2 = (int) clicksforCurve.get(i+1).getY();\r\n \t\t x3 = (int) clicksforCurve.get(i+2).getX();\r\n \t\t y3 = (int) clicksforCurve.get(i+2).getY();\r\n \t\t x4 = (int) clicksforCurve.get(i+3).getX();\r\n \t\t y4 = (int) clicksforCurve.get(i+3).getY();\r\n \t\t String text = MyWindow.input.getText();\r\n \t\t drawCurve(x1,y1,x2,y2,x3,y3,x4,y4,Integer.parseInt(text),g);\r\n \t \t}\r\n \t }\r\n\t\r\n }", "public void mouseClicked(RMShapeMouseEvent anEvent)\n{\n // Iterate over mouse listeners and forward\n for(int i=0, iMax=getListenerCount(RMShapeMouseListener.class); i<iMax; i++)\n getListener(RMShapeMouseListener.class, i).mouseClicked(anEvent);\n}", "public abstract PaintObject[][] separate(Rectangle _r);", "public void paintShape(RMShapePainter aPntr)\n{\n // If fill/stroke present, have them paint\n if(getFill()!=null)\n getFill().paint(aPntr, this);\n if(getStroke()!=null && !getStrokeOnTop())\n getStroke().paint(aPntr, this);\n}", "public void paint (Graphics g)\r\n {\n }", "@Override\n public Shape getCelkoveHranice() {\n return new Rectangle2D.Double(super.getX() + 22, super.getY() + 45, 45, 45);\n }", "public Pencil(double x, double y, double width, double height)\n {\n\n\t//outline of the pencil\n GeneralPath body = new GeneralPath();\n\t\n body.moveTo(200,400);\n body.lineTo(150,350);\n\tbody.lineTo(200,300);\n\tbody.lineTo(600,300);\n\tbody.lineTo(600,400);\n\tbody.lineTo(200,400);\n\tbody.closePath();\n\n\t//vertical line that outlines the lead tip of the pencil\n\tGeneralPath leadLine = new GeneralPath();\n\n\tleadLine.moveTo(162, 362);\n\tleadLine.lineTo(162, 338);\n\n\t//vertical line that separates the tip of the pencil from the rest of the body\n\tGeneralPath tipLine = new GeneralPath();\n\ttipLine.moveTo(200, 400);\n\ttipLine.lineTo(200, 300);\n\t\n\t//vertical line that outlines the eraser\n\tShape eraser = ShapeTransforms.translatedCopyOf(tipLine, 350, 0.0);\n \n // now we put the whole thing together ino a single path.\n GeneralPath wholePencil = new GeneralPath ();\n wholePencil.append(body, false);\n\twholePencil.append(leadLine, false);\n wholePencil.append(tipLine, false);\n\twholePencil.append(eraser, false);\n \n // translate to the origin by subtracting the original upper left x and y\n // then translate to (x,y) by adding x and y\n \n Shape s = ShapeTransforms.translatedCopyOf(wholePencil, -ORIG_ULX + x, -ORIG_ULY + y);\n \n\t// scale to correct height and width\n s = ShapeTransforms.scaledCopyOf(s,\n\t\t\t\t\t width/ORIG_WIDTH,\n\t\t\t\t\t height/ORIG_HEIGHT) ;\n\t \n\t// Use the GeneralPath constructor that takes a shape and returns\n\t// it as a general path to set our instance variable cup\n \n\tthis.set(new GeneralPath(s));\n \n }", "public void paint (Graphics g){\n \r\n }", "abstract void draw();", "abstract void draw();", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "public interface DrawingObject {\n\t// interface: blueprints but doesn't tell you how to do it\n\n\t/**\n\t * Draw the object.\n\t * \n\t * @param g\n\t */\n\tpublic void draw(Graphics g);\n\n\t/**\n\t * Called to start drawing a new object.\n\t * \n\t * @param p\n\t */\n\tpublic void start(Point p);\n\n\t/**\n\t * Called repeatedly while dragging a new object out to size (typically\n\t * called from within a mouseDragged() ).\n\t * \n\t * @param p\n\t */\n\tpublic void drag(Point p);\n\n\t/**\n\t * Called to move an object. Often called repeatedly inside a\n\t * mouseDragged().\n\t * \n\t * @param p\n\t */\n\tpublic void move(Point p);\n\n\t/**\n\t * Does the math to determine the number/position of points of star\n\t */\n\tpublic void doMath();\n\n\t/**\n\t * Set the bounding rectangle.\n\t * \n\t * @param b\n\t */\n\tpublic void setBounds(Rectangle b);\n\n\t/**\n\t * Determines if the point clicked is contained by the object.\n\t * \n\t * @param p\n\t * @return\n\t */\n\tpublic boolean contains(Point p);\n\n\t/**\n\t * Called to set the color of a shape\n\t */\n\tpublic void setColor(Color c);\n\n\t/**\n\t * Called to get the color of a shape\n\t * \n\t * @return\n\t */\n\tpublic Color getColor();\n}", "public String draw() {\n\t\treturn null;\r\n\t}", "@Test\n public void test73() throws Throwable {\n ExtendedCategoryAxis extendedCategoryAxis0 = new ExtendedCategoryAxis(\"jhpWb\\\"F\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) extendedCategoryAxis0);\n ExtendedCategoryAxis extendedCategoryAxis1 = (ExtendedCategoryAxis)combinedDomainCategoryPlot0.getDomainAxisForDataset(777);\n List list0 = combinedDomainCategoryPlot0.getCategories();\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo();\n rectangle2D_Double0.setFrameFromDiagonal(4364.40135, 0.0, (double) 777, (double) 777);\n PlotRenderingInfo plotRenderingInfo0 = new PlotRenderingInfo(chartRenderingInfo0);\n Rectangle2D.Double rectangle2D_Double1 = (Rectangle2D.Double)plotRenderingInfo0.getDataArea();\n rectangle2D_Double0.setRect((Rectangle2D) rectangle2D_Double1);\n RectangleEdge rectangleEdge0 = combinedDomainCategoryPlot0.getDomainAxisEdge();\n }", "void drawStuff () {drawStuff (img.getGraphics ());}", "IShape getCurrentShape();", "void updateInterpretationBoards(){\n if (fShapes.size() > 0) {\r\n Iterator iter = fShapes.iterator();\r\n\r\n while (iter.hasNext()){\r\n TShape theShape=(TShape) iter.next();\r\n if (theShape.fTypeID==TShape.IDInterpretationBoard){\r\n theShape.setSelected(false);\r\n // ((TInterpretationBoard)theShape).updateInterpretationBoard();\r\n }\r\n }\r\n }\r\n\r\n\r\n }", "public static void drawPicture1(Graphics2D g2) {\r\n\r\n\tRodent r1 = new Rodent(100,250,50);\r\n\tg2.setColor(Color.CYAN); g2.draw(r1);\r\n\t\r\n\t// Make a black rodent that's half the size, \r\n\t// and moved over 150 pixels in x direction\r\n\r\n\tShape r2 = ShapeTransforms.scaledCopyOfLL(r1,0.5,0.5);\r\n\tr2 = ShapeTransforms.translatedCopyOf(r2,150,0);\r\n\tg2.setColor(Color.BLACK); g2.draw(r2);\r\n\t\r\n\t// Here's a rodent that's 4x as big (2x the original)\r\n\t// and moved over 150 more pixels to right.\r\n\tr2 = ShapeTransforms.scaledCopyOfLL(r2,4,4);\r\n\tr2 = ShapeTransforms.translatedCopyOf(r2,150,0);\r\n\t\r\n\t// We'll draw this with a thicker stroke\r\n\tStroke thick = new BasicStroke (4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL); \r\n\t\r\n\t// for hex colors, see (e.g.) http://en.wikipedia.org/wiki/List_of_colors\r\n\t// #002FA7 is \"International Klein Blue\" according to Wikipedia\r\n\t// In HTML we use #, but in Java (and C/C++) its 0x\r\n\t\r\n\tStroke orig=g2.getStroke();\r\n\tg2.setStroke(thick);\r\n\tg2.setColor(new Color(0x002FA7)); \r\n\tg2.draw(r2); \r\n\t\r\n\t// Draw two Rabbits\r\n\t\r\n\tRabbit ra1 = new Rabbit(50,350,40);\r\n\tRabbit ra2 = new Rabbit(200,350,200);\r\n\t\r\n\tg2.draw(ra1);\r\n\tg2.setColor(new Color(0x8F00FF)); g2.draw(ra2);\r\n\t\r\n\t// @@@ FINALLY, SIGN AND LABEL YOUR DRAWING\r\n\t\r\n\tg2.setStroke(orig);\r\n\tg2.setColor(Color.BLACK); \r\n\tg2.drawString(\"A few rabbits by Josephine Vo\", 20,20);\r\n }", "public Shape getClipShape() { return null; }", "void find_it () {\n xt = 210; yt = 105; fact = 50.0;\n if (viewflg != VIEW_FORCES) zoom_slider_pos_y = 50;\n current_part.spanfac = (int)(2.0*fact*current_part.aspect_rat*.3535);\n xt1 = xt + current_part.spanfac;\n yt1 = yt - current_part.spanfac;\n xt2 = xt - current_part.spanfac;\n yt2 = yt + current_part.spanfac;\n \n }", "@Override\r\n\tpublic void draw() {\n\t\tPoint p = this.getP();\r\n\t\tint start_point = p.getX();\r\n\t\tint end_point = p.getY();\r\n\t\t\r\n\t\tint width = this.getWidth();\r\n\t\tint height = this.getHeight();\r\n\t\t\r\n\t\tSystem.out.println(\"�l�p�`��`�� �_(\" + start_point +\",\"+ end_point + \")����Ƃ��āA��\"+ width +\"����\"+ height +\"�̎l�p�`\");\r\n\t}", "public void display (Graphics2D g, double x, double y);", "void method0() {\nprivate double edgeCrossesIndicator = 0;\n/** counter for additions to the edgeCrossesIndicator\n\t\t */\nprivate int additions = 0;\n/** the vertical level where the cell wrapper is inserted\n\t\t */\nint level = 0;\n/** current position in the grid\n\t\t */\nint gridPosition = 0;\n/** priority for movements to the barycenter\n\t\t */\nint priority = 0;\n/** reference to the wrapped cell\n\t\t */\nVertexView vertexView = null;\n}", "public void repaint (Graphics g){\r\n g.drawLine(10,10,150,150); // Draw a line from (10,10) to (150,150)\r\n \r\n g.setColor(Color.darkGray);\r\n g.fillRect( 0 , 0 , \r\n 4000 , 4000 ); \r\n \r\n g.setColor(Color.BLACK);\r\n \r\n BufferedImage image;\r\n \r\n for(int h = 0; h < 16; h++){\r\n for(int w =0; w< 16; w++){\r\n //g.drawImage(image.getSubimage(w *16, h*16, 16, 16), 0+(32*w),0 +(32*h), 32,32,this);\r\n g.drawRect(w *32, h*32, 32, 32);\r\n \r\n if(coord.xSelected >=0){\r\n g.setColor(Color.WHITE);\r\n g.drawRect(coord.xSelected *32, coord.ySelected *32, 32, 32);\r\n g.setColor(Color.BLACK);\r\n }\r\n }\r\n }\r\n \r\n \r\n }", "void drawRegion (double b, double e) {\n begT = b; endT = e;\n drawStuff (img.getGraphics ());\n }", "public void drawNonEssentialComponents(){\n\t\t\n\t}", "public void Pj() {\n\t\tGroup root = new Group();\r\n\t\tLine body=new Line(350,660,350,650);\r\n\t\tLine Lhand=new Line(350,656,346,653);\r\n\t\tLine Rhand=new Line(350,656,354,653);\r\n\t\tLine Rfeed=new Line(350,660,354,663);\r\n\t\tLine Lfeed=new Line(350,660,346,663);\r\n\t\tCircle head=new Circle(346,646,4);\r\n\t\troot.getChildren().addAll(body,Lhand,Rhand,Rfeed,Lfeed,head);\r\n\t\t\r\n\t}", "@Test\r\n public void testDrawingDoubler() {\r\n System.out.println(\"testDrawingDoubler\");\r\n ad = new AreaDoubler();\r\n d.accept(ad);\r\n \r\n Drawing dd = (Drawing)ad.getFigureDoubled();\r\n Circle dd_c = (Circle) dd.getComponents().get(0);\r\n Rectangle dd_r = (Rectangle) dd.getComponents().get(1);\r\n \r\n \r\n Circle c_doubled = (Circle)d.getComponents().get(0);\r\n double c_radius_doubled = c_doubled.getRadius()* Math.sqrt(2.0);\r\n \r\n assertEquals(c_radius_doubled, dd_c.getRadius(), 0.02);\r\n \r\n Rectangle r_doubled = (Rectangle)d.getComponents().get(1);\r\n double r_height_doubled = r_doubled.getHeight()* Math.sqrt(2.0);\r\n double r_width_doubled= r_doubled.getWidth()*Math.sqrt(2.0);\r\n \r\n assertEquals(r_height_doubled, dd_r.getHeight(), 0.02);\r\n assertEquals(r_width_doubled, dd_r.getWidth(), 0.02);\r\n \r\n }", "public void beginDrawing();" ]
[ "0.5931484", "0.5704739", "0.5649611", "0.5597709", "0.5584315", "0.55799073", "0.5558218", "0.55486023", "0.5532437", "0.5494265", "0.5491563", "0.5491563", "0.54860073", "0.54815155", "0.54800636", "0.546706", "0.5466561", "0.5446634", "0.5446634", "0.5431584", "0.5410953", "0.5410953", "0.54077554", "0.53953886", "0.53943145", "0.53918105", "0.53910244", "0.5389729", "0.5385763", "0.5384362", "0.5383875", "0.53799653", "0.53752804", "0.536918", "0.53513855", "0.53513855", "0.5349455", "0.53309286", "0.5325639", "0.53117245", "0.5299304", "0.52762234", "0.5256804", "0.5248564", "0.52424407", "0.52414846", "0.523638", "0.5229901", "0.522716", "0.522249", "0.52202517", "0.52182746", "0.5190212", "0.51853067", "0.51665354", "0.51651704", "0.51650196", "0.5163396", "0.51621574", "0.51560813", "0.51508117", "0.5146151", "0.5146151", "0.5146151", "0.5144137", "0.51428634", "0.5138045", "0.513315", "0.51262236", "0.51260614", "0.51207113", "0.5106865", "0.509806", "0.5094821", "0.5090634", "0.5089952", "0.5087847", "0.50829995", "0.5081742", "0.5079833", "0.50782317", "0.50782317", "0.50743103", "0.5073242", "0.50707245", "0.5067678", "0.5060933", "0.5057178", "0.5053931", "0.5042199", "0.5040646", "0.50392455", "0.5037771", "0.503754", "0.5037329", "0.5035796", "0.503573", "0.5022125", "0.50212157", "0.5020017", "0.5017101" ]
0.0
-1
Retorna o valor de cnpjFormatado
public static String formatarCnpj(String cnpj) { String cnpjFormatado = cnpj; String zeros = ""; if (cnpjFormatado != null) { for (int a = 0; a < (14 - cnpjFormatado.length()); a++) { zeros = zeros.concat("0"); } // concatena os zeros ao numero // caso o numero seja diferente de nulo cnpjFormatado = zeros.concat(cnpjFormatado); cnpjFormatado = cnpjFormatado.substring(0, 2) + "." + cnpjFormatado.substring(2, 5) + "." + cnpjFormatado.substring(5, 8) + "/" + cnpjFormatado.substring(8, 12) + "-" + cnpjFormatado.substring(12, 14); } return cnpjFormatado; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCnpj() {\n return cnpj;\n }", "String getValueFormat();", "public String getCnpjPossuidor() {\n return cnpjPossuidor;\n }", "public String getFormat() {\n/* 206 */ return getValue(\"format\");\n/* */ }", "Object getFormat();", "NumberFormat getFormat() {\n\t\t\treturn fmt_result;\n\t\t}", "public String getFormato() {\n\t\treturn formato;\n\t}", "String getFormat();", "String getFormat();", "String getFormat();", "public int getFormat ()\n {\n return this.format;\n }", "public int getFormat()\n {\n return format;\n }", "String getValueFormatted();", "public String getFormat()\n {\n return format;\n }", "public String getFormat() {\n return format;\n }", "public String getFormat() {\n return format;\n }", "public String getFormat() {\n return format;\n }", "public String getFormat() {\r\n return _format;\r\n }", "public String getFormat() {\n return this.format;\n }", "@Field(0) \n\tpublic int format() {\n\t\treturn this.io.getIntField(this, 0);\n\t}", "public String format () {\n\t\treturn format;\n\t}", "protected NumberFormat getFormat() {\n return this.format;\n }", "public String getFormat() {\n\t\treturn formatString;\n\t}", "@VTID(8)\r\n java.lang.String format();", "public String getFormat()\r\n\t{\r\n\t\treturn (String) queryParams.get(FMT_JSON);\r\n\t}", "public String getCpf() {\n return cpf;\n }", "public String getFormat() {\n\t\treturn format;\n\t}", "String getPrecio();", "public String getFormat() throws Exception {\n\t\treturn doc.selectSingleNode(\"/metadataFieldInfo/field/@metaFormat\").getText();\n\t}", "String objectOut (JField jf, Object value, MarshalContext context) {\n\t\tString result = value.toString ();\n\t\tif (jf.isDate ()) {\n\t\t\tSimpleDateFormat sdf = context.getDateFormat ();\n\t\t\tif (sdf == null) // the usuals seconds ..\n\t\t\t\tresult = ((java.sql.Timestamp)value).getTime() + \"\";\n\t\t\telse\n\t\t\t\tresult = sdf.format ((java.sql.Timestamp)value);\n\t\t}\n\t\telse if (jf.getObjectType ().equals (\"char\") && result.charAt (0) == (char)0)\n\t\t\tresult = \"\";\n\t\telse if (jf.getObjectType ().equals (\"double\") && result.equals (\"NaN\"))\n\t\t\tresult = \"\";\n\t\treturn result;\n }", "public String getlbr_CNPJ();", "public String getlbr_CNPJ();", "protected Format doGetFormat()\n {\n return null;\n }", "R format(O value);", "public String getJP_SalesRep_Value();", "public default String getFormat() {\n return Constants.FORMAT_JSON;\n }", "public String getMessageInJsonFormat(){\n return messageInJsonFormat;\n }", "public java.lang.String getCodigo_pcom();", "public String format(Object obj) throws JDBFException {\r\n if (type == 'N' || type == 'F') {\r\n if (obj == null) {\r\n obj = new Double(0.0D);\r\n }\r\n if (obj instanceof Number) {\r\n Number number = (Number) obj;\r\n StringBuffer stringbuffer = new StringBuffer(getLength());\r\n for (int i = 0; i < getLength(); i++) {\r\n stringbuffer.append(\"#\");\r\n }\r\n\r\n if (getDecimalCount() > 0) {\r\n stringbuffer.setCharAt(getLength() - getDecimalCount() - 1, '.');\r\n }\r\n DecimalFormat decimalformat = new DecimalFormat(stringbuffer.toString(), DFS);\r\n String s1 = decimalformat.format(number);\r\n int k = getLength() - s1.length();\r\n if (k < 0) {\r\n throw new JDBFException(\"Value \" + number + \" cannot fit in pattern: '\" + stringbuffer + \"'.\");\r\n }\r\n StringBuffer stringbuffer2 = new StringBuffer(k);\r\n for (int l = 0; l < k; l++) {\r\n stringbuffer2.append(\" \");\r\n }\r\n\r\n return stringbuffer2 + s1;\r\n } else {\r\n throw new JDBFException(\"Expected a Number, got \" + obj.getClass() + \".\");\r\n }\r\n }\r\n if (type == 'C') {\r\n if (obj == null) {\r\n obj = \"\";\r\n }\r\n if (obj instanceof String) {\r\n String s = (String) obj;\r\n if (s.length() > getLength()) {\r\n throw new JDBFException(\"'\" + obj + \"' is longer than \" + getLength() + \" characters.\");\r\n }\r\n StringBuffer stringbuffer1 = new StringBuffer(getLength() - s.length());\r\n for (int j = 0; j < getLength() - s.length(); j++) {\r\n stringbuffer1.append(' ');\r\n }\r\n\r\n return s + stringbuffer1;\r\n } else {\r\n throw new JDBFException(\"Expected a String, got \" + obj.getClass() + \".\");\r\n }\r\n }\r\n if (type == 'L') {\r\n if (obj == null) {\r\n obj = new Boolean(false);\r\n }\r\n if (obj instanceof Boolean) {\r\n Boolean boolean1 = (Boolean) obj;\r\n return boolean1.booleanValue() ? \"Y\" : \"N\";\r\n } else {\r\n throw new JDBFException(\"Expected a Boolean, got \" + obj.getClass() + \".\");\r\n }\r\n }\r\n if (type == 'D') {\r\n if (obj == null) {\r\n obj = new Date();\r\n }\r\n if (obj instanceof Date) {\r\n Date date = (Date) obj;\r\n SimpleDateFormat simpledateformat = new SimpleDateFormat(\"yyyyMMdd\");\r\n return simpledateformat.format(date);\r\n } else {\r\n throw new JDBFException(\"Expected a Date, got \" + obj.getClass() + \".\");\r\n }\r\n } else {\r\n throw new JDBFException(\"Unrecognized JDBFField type: \" + type);\r\n }\r\n }", "public String getJP_OrgTrx_Value();", "public static String formatarCpf(String cpf) {\r\n\r\n\t\tString cpfFormatado = cpf;\r\n\t\tString zeros = \"\";\r\n\r\n\t\tif (cpfFormatado != null) {\r\n\r\n\t\t\tfor (int a = 0; a < (11 - cpfFormatado.length()); a++) {\r\n\t\t\t\tzeros = zeros.concat(\"0\");\r\n\t\t\t}\r\n\t\t\t// concatena os zeros ao numero\r\n\t\t\t// caso o numero seja diferente de nulo\r\n\t\t\tcpfFormatado = zeros.concat(cpfFormatado);\r\n\r\n\t\t\tcpfFormatado = cpfFormatado.substring(0, 3) + \".\" + cpfFormatado.substring(3, 6) + \".\" + cpfFormatado.substring(6, 9) + \"-\"\r\n\t\t\t\t\t+ cpfFormatado.substring(9, 11);\r\n\t\t}\r\n\r\n\t\treturn cpfFormatado;\r\n\t}", "Format internalGetFormat()\n {\n return doGetFormat();\n }", "public static String formatarCEP(String codigo) {\r\n\r\n\t\tString retornoCEP = null;\r\n\r\n\t\tString parte1 = codigo.substring(0, 2);\r\n\t\tString parte2 = codigo.substring(2, 5);\r\n\t\tString parte3 = codigo.substring(5, 8);\r\n\r\n\t\tretornoCEP = parte1 + \".\" + parte2 + \"-\" + parte3;\r\n\r\n\t\treturn retornoCEP;\r\n\t}", "String getCidade();", "public String getCVCTG_CODIGO(){\n\t\treturn this.myCvctg_codigo;\n\t}", "protected String getDataFormat() {\n return this.dataFormat;\n }", "public String getCROFM_CODIGO(){\n\t\treturn this.myCrofm_codigo;\n\t}", "public static String getDadoFormatado(String pDado, TiposDadosQuery pTipo) {\n String dadoFormatado;\n if (pDado != null) {\n switch (pTipo)\n {\n case TEXTO:\n dadoFormatado = \"'\" + verificaAspaSimples(pDado) + \"'\";\n break;\n case DATA:\n dadoFormatado = \"'\" + pDado + \"'\";\n break;\n default:\n dadoFormatado = pDado; \n break;\n }\n }\n else {\n dadoFormatado = \"null\";\n }\n \n return dadoFormatado;\n \n }", "String getCmt();", "@Override\n public String getAgenciaCodCedenteFormatted() {\n return boleto.getAgencia() + \"/\" + boleto.getContaCorrente() + \" \" + boleto.getDvContaCorrente();\n }", "public String getFormatString() {\n\t\treturn formatString;\n\t}", "public String getPresentationFormat()\n {\n return (String) getProperty(PropertyIDMap.PID_PRESFORMAT);\n }", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "public String getCROSG_CODIGO(){\n\t\treturn this.myCrosg_codigo;\n\t}", "public static String getDadoFormatado(BigDecimal pDado, TiposDadosQuery pTipo) {\n StringBuilder dadoFormatado = new StringBuilder(\"\");\n \n if (pDado == null) {\n dadoFormatado.append(\"null\");\n }\n else {\n dadoFormatado.append(pDado.toPlainString());\n }\n \n return dadoFormatado.toString();\n \n }", "public String getCarteiraFormatted() {\r\n return boleto.getCarteira();\r\n }", "@Override\n\tpublic String toCLPInfo() {\n\t\treturn null;\n\t}", "public String getNossoNumeroFormatted() {\r\n return boleto.getNossoNumero();\r\n }", "public int getAlFormat()\n {\n return alFormat;\n }", "public String getVicarFormat() {\n\t\treturn vicarFormat;\n\t}", "String getFormat(Object elementID) throws Exception;", "public String getCvvNumber();", "public String format(NumberFormatTestData tuple) {\n return null;\n }", "public String getValue() {\n if (mValue == null) {\n float[] values = mValues;\n mValue = String.format(mTextFmt, values[0], values[1], values[2]);\n }\n return mValue == null ? \"??\" : mValue;\n }", "java.lang.String getField1515();", "public Long getReportFormat() {\n return this.reportFormat;\n }", "java.lang.String getC3();", "String convertToCDF() {\n return String.valueOf(this.getScheduleID()) + \", \" +\n String.valueOf(this.getOfMedicationID()) + \", \" +\n String.valueOf(this.getForPersonID()) + \", \" +\n String.valueOf(this.getTimeDue()) + \", \" +\n String.valueOf(this.getStrategy()) +\n System.getProperty(\"line.separator\");\n }", "public boolean validaCnpj(String cnpj){\n if (cnpj.equals(\"00000000000000\") || cnpj.equals(\"11111111111111\") || cnpj.equals(\"22222222222222\")\n || cnpj.equals(\"33333333333333\") || cnpj.equals(\"44444444444444\") || cnpj.equals(\"55555555555555\")\n || cnpj.equals(\"66666666666666\") || cnpj.equals(\"77777777777777\") || cnpj.equals(\"88888888888888\")\n || cnpj.equals(\"99999999999999\") || (cnpj.length() != 14))\n return (false);\n\n char dig13, dig14;\n int sm, i, r, num, peso;\n\n // \"try\" - protege o código para eventuais erros de conversao de tipo (int)\n try {\n // Calculo do 1o. Digito Verificador\n sm = 0;\n peso = 2;\n for (i = 11; i >= 0; i--) {\n // converte o i-ésimo caractere do CNPJ em um número:\n // por exemplo, transforma o caractere '0' no inteiro 0\n // (48 eh a posição de '0' na tabela ASCII)\n num = (int) (cnpj.charAt(i) - 48);\n sm = sm + (num * peso);\n peso = peso + 1;\n if (peso == 10)\n peso = 2;\n }\n\n r = sm % 11;\n if ((r == 0) || (r == 1))\n dig13 = '0';\n else\n dig13 = (char) ((11 - r) + 48);\n\n // Calculo do 2o. Digito Verificador\n sm = 0;\n peso = 2;\n for (i = 12; i >= 0; i--) {\n num = (int) (cnpj.charAt(i) - 48);\n sm = sm + (num * peso);\n peso = peso + 1;\n if (peso == 10)\n peso = 2;\n }\n\n r = sm % 11;\n if ((r == 0) || (r == 1))\n dig14 = '0';\n else\n dig14 = (char) ((11 - r) + 48);\n\n // Verifica se os dígitos calculados conferem com os dígitos informados.\n if ((dig13 == cnpj.charAt(12)) && (dig14 == cnpj.charAt(13)))\n return (true);\n else\n return (false);\n } catch (InputMismatchException erro) {\n return (false);\n }\n }", "private Object _getJSONTextValue() {\r\n if (_textValue != null) {\r\n switch (_type.getValue()) {\r\n case Type.BOOLEAN:\r\n return Boolean.valueOf(_textValue);\r\n case Type.NUMBER:\r\n return Double.valueOf(_textValue);\r\n default:\r\n return _textValue;\r\n }\r\n }\r\n return JSONNull.getInstance().toString();\r\n }", "@Override // Métodos que fazem a anulação\n\tpublic String getCPF() {\n\t\treturn null;\n\t}", "String documentFormat();", "public double getClassificacao()\n {\n return this.classificacao;\n }", "public String getCGG_CVCTG_CODIGO(){\n\t\treturn this.myCgg_cvctg_codigo;\n\t}", "protected abstract String format();", "public String getStringValue() {\n return box.getFormat().format(box, box.getValue());\n }", "public static String format(Object val, String pattern)\n {\n try\n { \n\t return format(val, pattern, null, null);\n }\n catch(Exception ex)\n {\n\t log.error(ex, \"[NumberUtil] Error caught in method format\");\n\t return \"\";\n }\n }", "public String getJP_AcctDate();", "public final String getFormatString() {\n final Exp formatExp =\n (Exp) getProperty(Property.FORMAT_EXP_PARSED.name, null);\n if (formatExp == null) {\n return \"Standard\";\n }\n final Calc formatCalc = root.getCompiled(formatExp, true, null);\n final Object o = formatCalc.evaluate(this);\n if (o == null) {\n return \"Standard\";\n }\n return o.toString();\n }", "public String parseCurrency(NumberFormatTestData tuple) {\n return null;\n }", "String getContentFormat();", "String getFormatter();", "public String getCPF() {\n return this.CPF;\n }", "public String getFormat() {\n Object ref = format_;\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 format_ = s;\n return s;\n }\n }", "public String getFormatByExtension(String fileExtenstion) throws DataServiceException{\r\n\t\tString format = \"\";\r\n\t\tformat = (String)queryForObject(\"document.query_format\",fileExtenstion);\r\n\t\treturn format;\r\n\t}", "@Override\n public Object getFieldValue(JRField jrf) throws JRException {\n switch (jrf.getName()) {\n case \"importe_total\":\n return cursor.getImporteTotal();\n case \"marca\":\n return cursor.getNombreMarca();\n case \"importe_marca\": {\n try {\n return MoneyFormatter.conversion(Double.valueOf(cursor.getCalcularImporteMarca()));\n } catch (Exception e) {\n return (MoneyFormatter.conversion(0d));\n }\n }\n case \"modelo\":\n return cursor.getNombreModelo();\n case \"total_carros\":\n return cursor.getTotalCarrosMarMod();\n case \"total_dias_alquilado\":\n return cursor.getTotalDiasAlquilado();\n case \"importe_tarjeta\": {\n try {\n return MoneyFormatter.conversion(Double.valueOf(cursor.getImporteTarjeta()));\n } catch (Exception e) {\n return (MoneyFormatter.conversion(0d));\n }\n }\n case \"importe_cheque\": {\n try {\n return MoneyFormatter.conversion(Double.valueOf(cursor.getImporteCheque()));\n } catch (Exception e) {\n return (MoneyFormatter.conversion(0d));\n }\n }\n case \"importe_efectivo\": {\n try {\n return MoneyFormatter.conversion(Double.valueOf(cursor.getImporteEfectivo()));\n } catch (Exception e) {\n return (MoneyFormatter.conversion(0d));\n }\n }\n }\n return null;\n }", "public String getFormat() {\n Object ref = format_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n format_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public Long cniAsNumber() {\n return this.innerProperties() == null ? null : this.innerProperties().cniAsNumber();\n }", "public String toString()\n {\n return toString((Format) null);\n }", "@Override\n\tpublic String toString()\n\t{\n\t\treturn toString(Locale.getDefault(Locale.Category.FORMAT));\n\t}", "public NumberFormat getNumberFormat() {\n return numberFormat;\n }", "java.lang.String getField1252();", "FileFormat getFormat();", "public java.lang.String getValor();", "public String getFormat() {\n\t\treturn getAttribute(FORMAT_TAG);\n\t}", "@Override\r\n public Object formatValue(Object value) {\r\n return value;\r\n }", "private JFormattedTextField getTxtDtDocPendente() {\r\n\t\tif (txtDtDocPendente == null) {\r\n\t\t\ttxtDtDocPendente = new JFormattedTextField(setMascara(\"##/##/####\"));\r\n\t\t\ttxtDtDocPendente.setBounds(new Rectangle(307, 12, 80, 22));\r\n\t\t\ttxtDtDocPendente.setToolTipText(\"Data da pendência\");\r\n\t\t}\r\n\t\treturn txtDtDocPendente;\r\n\t}", "public String getAgenciaCodCedenteFormatted() {\r\n return boleto.getAgencia() + \" / \" + boleto.getContaCorrente() + \" \" + boleto.getDvContaCorrente();\r\n }", "@Override\n public String getCarteiraFormatted() {\n return boleto.getCarteira();\n }", "@Override\n public String getNossoNumeroFormatted() {\n return \"24\" + boleto.getNossoNumero();\n }" ]
[ "0.67895305", "0.6564352", "0.63506836", "0.6326097", "0.6163049", "0.6158434", "0.60903263", "0.6044964", "0.6044964", "0.6044964", "0.60154754", "0.60019726", "0.59242773", "0.5921803", "0.58251715", "0.58251715", "0.58251715", "0.5808602", "0.57919884", "0.5785644", "0.5779733", "0.5738693", "0.5696091", "0.5670173", "0.5650919", "0.5643684", "0.56396616", "0.5619956", "0.56129175", "0.5567779", "0.55503035", "0.55503035", "0.5481986", "0.5465136", "0.5455982", "0.54471666", "0.5445574", "0.5440336", "0.5420259", "0.5400209", "0.5392922", "0.5389915", "0.53851616", "0.5380694", "0.5376972", "0.5373526", "0.5364101", "0.53328246", "0.53192174", "0.530539", "0.5296546", "0.52902174", "0.528921", "0.5268974", "0.5255755", "0.5235227", "0.52238363", "0.5214934", "0.520571", "0.51970536", "0.5196415", "0.51885", "0.5181545", "0.51765966", "0.5170152", "0.51694113", "0.5146926", "0.514529", "0.51434207", "0.5128817", "0.512566", "0.51170284", "0.5104405", "0.5102376", "0.50986385", "0.50926024", "0.5090903", "0.5087754", "0.50868386", "0.5086038", "0.5083052", "0.5082131", "0.5081904", "0.5081167", "0.50792116", "0.5070866", "0.5070497", "0.5069155", "0.5062531", "0.5055475", "0.50473857", "0.5046478", "0.5045978", "0.503256", "0.5032383", "0.5030825", "0.5030285", "0.501347", "0.5010414", "0.50044435" ]
0.66375166
1
Retorna o valor de cnpjFormatado
public static String formatarCpf(String cpf) { String cpfFormatado = cpf; String zeros = ""; if (cpfFormatado != null) { for (int a = 0; a < (11 - cpfFormatado.length()); a++) { zeros = zeros.concat("0"); } // concatena os zeros ao numero // caso o numero seja diferente de nulo cpfFormatado = zeros.concat(cpfFormatado); cpfFormatado = cpfFormatado.substring(0, 3) + "." + cpfFormatado.substring(3, 6) + "." + cpfFormatado.substring(6, 9) + "-" + cpfFormatado.substring(9, 11); } return cpfFormatado; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCnpj() {\n return cnpj;\n }", "public static String formatarCnpj(String cnpj) {\r\n\t\tString cnpjFormatado = cnpj;\r\n\t\tString zeros = \"\";\r\n\r\n\t\tif (cnpjFormatado != null) {\r\n\r\n\t\t\tfor (int a = 0; a < (14 - cnpjFormatado.length()); a++) {\r\n\t\t\t\tzeros = zeros.concat(\"0\");\r\n\t\t\t}\r\n\t\t\t// concatena os zeros ao numero\r\n\t\t\t// caso o numero seja diferente de nulo\r\n\t\t\tcnpjFormatado = zeros.concat(cnpjFormatado);\r\n\r\n\t\t\tcnpjFormatado = cnpjFormatado.substring(0, 2) + \".\" + cnpjFormatado.substring(2, 5) + \".\" + cnpjFormatado.substring(5, 8) + \"/\"\r\n\t\t\t\t\t+ cnpjFormatado.substring(8, 12) + \"-\" + cnpjFormatado.substring(12, 14);\r\n\t\t}\r\n\r\n\t\treturn cnpjFormatado;\r\n\t}", "String getValueFormat();", "public String getCnpjPossuidor() {\n return cnpjPossuidor;\n }", "public String getFormat() {\n/* 206 */ return getValue(\"format\");\n/* */ }", "Object getFormat();", "NumberFormat getFormat() {\n\t\t\treturn fmt_result;\n\t\t}", "public String getFormato() {\n\t\treturn formato;\n\t}", "String getFormat();", "String getFormat();", "String getFormat();", "public int getFormat ()\n {\n return this.format;\n }", "public int getFormat()\n {\n return format;\n }", "String getValueFormatted();", "public String getFormat()\n {\n return format;\n }", "public String getFormat() {\n return format;\n }", "public String getFormat() {\n return format;\n }", "public String getFormat() {\n return format;\n }", "public String getFormat() {\r\n return _format;\r\n }", "public String getFormat() {\n return this.format;\n }", "@Field(0) \n\tpublic int format() {\n\t\treturn this.io.getIntField(this, 0);\n\t}", "public String format () {\n\t\treturn format;\n\t}", "protected NumberFormat getFormat() {\n return this.format;\n }", "public String getFormat() {\n\t\treturn formatString;\n\t}", "@VTID(8)\r\n java.lang.String format();", "public String getFormat()\r\n\t{\r\n\t\treturn (String) queryParams.get(FMT_JSON);\r\n\t}", "public String getCpf() {\n return cpf;\n }", "public String getFormat() {\n\t\treturn format;\n\t}", "String getPrecio();", "public String getFormat() throws Exception {\n\t\treturn doc.selectSingleNode(\"/metadataFieldInfo/field/@metaFormat\").getText();\n\t}", "String objectOut (JField jf, Object value, MarshalContext context) {\n\t\tString result = value.toString ();\n\t\tif (jf.isDate ()) {\n\t\t\tSimpleDateFormat sdf = context.getDateFormat ();\n\t\t\tif (sdf == null) // the usuals seconds ..\n\t\t\t\tresult = ((java.sql.Timestamp)value).getTime() + \"\";\n\t\t\telse\n\t\t\t\tresult = sdf.format ((java.sql.Timestamp)value);\n\t\t}\n\t\telse if (jf.getObjectType ().equals (\"char\") && result.charAt (0) == (char)0)\n\t\t\tresult = \"\";\n\t\telse if (jf.getObjectType ().equals (\"double\") && result.equals (\"NaN\"))\n\t\t\tresult = \"\";\n\t\treturn result;\n }", "public String getlbr_CNPJ();", "public String getlbr_CNPJ();", "protected Format doGetFormat()\n {\n return null;\n }", "R format(O value);", "public String getJP_SalesRep_Value();", "public default String getFormat() {\n return Constants.FORMAT_JSON;\n }", "public String getMessageInJsonFormat(){\n return messageInJsonFormat;\n }", "public java.lang.String getCodigo_pcom();", "public String format(Object obj) throws JDBFException {\r\n if (type == 'N' || type == 'F') {\r\n if (obj == null) {\r\n obj = new Double(0.0D);\r\n }\r\n if (obj instanceof Number) {\r\n Number number = (Number) obj;\r\n StringBuffer stringbuffer = new StringBuffer(getLength());\r\n for (int i = 0; i < getLength(); i++) {\r\n stringbuffer.append(\"#\");\r\n }\r\n\r\n if (getDecimalCount() > 0) {\r\n stringbuffer.setCharAt(getLength() - getDecimalCount() - 1, '.');\r\n }\r\n DecimalFormat decimalformat = new DecimalFormat(stringbuffer.toString(), DFS);\r\n String s1 = decimalformat.format(number);\r\n int k = getLength() - s1.length();\r\n if (k < 0) {\r\n throw new JDBFException(\"Value \" + number + \" cannot fit in pattern: '\" + stringbuffer + \"'.\");\r\n }\r\n StringBuffer stringbuffer2 = new StringBuffer(k);\r\n for (int l = 0; l < k; l++) {\r\n stringbuffer2.append(\" \");\r\n }\r\n\r\n return stringbuffer2 + s1;\r\n } else {\r\n throw new JDBFException(\"Expected a Number, got \" + obj.getClass() + \".\");\r\n }\r\n }\r\n if (type == 'C') {\r\n if (obj == null) {\r\n obj = \"\";\r\n }\r\n if (obj instanceof String) {\r\n String s = (String) obj;\r\n if (s.length() > getLength()) {\r\n throw new JDBFException(\"'\" + obj + \"' is longer than \" + getLength() + \" characters.\");\r\n }\r\n StringBuffer stringbuffer1 = new StringBuffer(getLength() - s.length());\r\n for (int j = 0; j < getLength() - s.length(); j++) {\r\n stringbuffer1.append(' ');\r\n }\r\n\r\n return s + stringbuffer1;\r\n } else {\r\n throw new JDBFException(\"Expected a String, got \" + obj.getClass() + \".\");\r\n }\r\n }\r\n if (type == 'L') {\r\n if (obj == null) {\r\n obj = new Boolean(false);\r\n }\r\n if (obj instanceof Boolean) {\r\n Boolean boolean1 = (Boolean) obj;\r\n return boolean1.booleanValue() ? \"Y\" : \"N\";\r\n } else {\r\n throw new JDBFException(\"Expected a Boolean, got \" + obj.getClass() + \".\");\r\n }\r\n }\r\n if (type == 'D') {\r\n if (obj == null) {\r\n obj = new Date();\r\n }\r\n if (obj instanceof Date) {\r\n Date date = (Date) obj;\r\n SimpleDateFormat simpledateformat = new SimpleDateFormat(\"yyyyMMdd\");\r\n return simpledateformat.format(date);\r\n } else {\r\n throw new JDBFException(\"Expected a Date, got \" + obj.getClass() + \".\");\r\n }\r\n } else {\r\n throw new JDBFException(\"Unrecognized JDBFField type: \" + type);\r\n }\r\n }", "public String getJP_OrgTrx_Value();", "Format internalGetFormat()\n {\n return doGetFormat();\n }", "public static String formatarCEP(String codigo) {\r\n\r\n\t\tString retornoCEP = null;\r\n\r\n\t\tString parte1 = codigo.substring(0, 2);\r\n\t\tString parte2 = codigo.substring(2, 5);\r\n\t\tString parte3 = codigo.substring(5, 8);\r\n\r\n\t\tretornoCEP = parte1 + \".\" + parte2 + \"-\" + parte3;\r\n\r\n\t\treturn retornoCEP;\r\n\t}", "String getCidade();", "public String getCVCTG_CODIGO(){\n\t\treturn this.myCvctg_codigo;\n\t}", "protected String getDataFormat() {\n return this.dataFormat;\n }", "public String getCROFM_CODIGO(){\n\t\treturn this.myCrofm_codigo;\n\t}", "public static String getDadoFormatado(String pDado, TiposDadosQuery pTipo) {\n String dadoFormatado;\n if (pDado != null) {\n switch (pTipo)\n {\n case TEXTO:\n dadoFormatado = \"'\" + verificaAspaSimples(pDado) + \"'\";\n break;\n case DATA:\n dadoFormatado = \"'\" + pDado + \"'\";\n break;\n default:\n dadoFormatado = pDado; \n break;\n }\n }\n else {\n dadoFormatado = \"null\";\n }\n \n return dadoFormatado;\n \n }", "String getCmt();", "@Override\n public String getAgenciaCodCedenteFormatted() {\n return boleto.getAgencia() + \"/\" + boleto.getContaCorrente() + \" \" + boleto.getDvContaCorrente();\n }", "public String getFormatString() {\n\t\treturn formatString;\n\t}", "public String getPresentationFormat()\n {\n return (String) getProperty(PropertyIDMap.PID_PRESFORMAT);\n }", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "public String getCROSG_CODIGO(){\n\t\treturn this.myCrosg_codigo;\n\t}", "public static String getDadoFormatado(BigDecimal pDado, TiposDadosQuery pTipo) {\n StringBuilder dadoFormatado = new StringBuilder(\"\");\n \n if (pDado == null) {\n dadoFormatado.append(\"null\");\n }\n else {\n dadoFormatado.append(pDado.toPlainString());\n }\n \n return dadoFormatado.toString();\n \n }", "public String getCarteiraFormatted() {\r\n return boleto.getCarteira();\r\n }", "@Override\n\tpublic String toCLPInfo() {\n\t\treturn null;\n\t}", "public String getNossoNumeroFormatted() {\r\n return boleto.getNossoNumero();\r\n }", "public int getAlFormat()\n {\n return alFormat;\n }", "public String getVicarFormat() {\n\t\treturn vicarFormat;\n\t}", "String getFormat(Object elementID) throws Exception;", "public String getCvvNumber();", "public String format(NumberFormatTestData tuple) {\n return null;\n }", "public String getValue() {\n if (mValue == null) {\n float[] values = mValues;\n mValue = String.format(mTextFmt, values[0], values[1], values[2]);\n }\n return mValue == null ? \"??\" : mValue;\n }", "java.lang.String getField1515();", "public Long getReportFormat() {\n return this.reportFormat;\n }", "java.lang.String getC3();", "String convertToCDF() {\n return String.valueOf(this.getScheduleID()) + \", \" +\n String.valueOf(this.getOfMedicationID()) + \", \" +\n String.valueOf(this.getForPersonID()) + \", \" +\n String.valueOf(this.getTimeDue()) + \", \" +\n String.valueOf(this.getStrategy()) +\n System.getProperty(\"line.separator\");\n }", "public boolean validaCnpj(String cnpj){\n if (cnpj.equals(\"00000000000000\") || cnpj.equals(\"11111111111111\") || cnpj.equals(\"22222222222222\")\n || cnpj.equals(\"33333333333333\") || cnpj.equals(\"44444444444444\") || cnpj.equals(\"55555555555555\")\n || cnpj.equals(\"66666666666666\") || cnpj.equals(\"77777777777777\") || cnpj.equals(\"88888888888888\")\n || cnpj.equals(\"99999999999999\") || (cnpj.length() != 14))\n return (false);\n\n char dig13, dig14;\n int sm, i, r, num, peso;\n\n // \"try\" - protege o código para eventuais erros de conversao de tipo (int)\n try {\n // Calculo do 1o. Digito Verificador\n sm = 0;\n peso = 2;\n for (i = 11; i >= 0; i--) {\n // converte o i-ésimo caractere do CNPJ em um número:\n // por exemplo, transforma o caractere '0' no inteiro 0\n // (48 eh a posição de '0' na tabela ASCII)\n num = (int) (cnpj.charAt(i) - 48);\n sm = sm + (num * peso);\n peso = peso + 1;\n if (peso == 10)\n peso = 2;\n }\n\n r = sm % 11;\n if ((r == 0) || (r == 1))\n dig13 = '0';\n else\n dig13 = (char) ((11 - r) + 48);\n\n // Calculo do 2o. Digito Verificador\n sm = 0;\n peso = 2;\n for (i = 12; i >= 0; i--) {\n num = (int) (cnpj.charAt(i) - 48);\n sm = sm + (num * peso);\n peso = peso + 1;\n if (peso == 10)\n peso = 2;\n }\n\n r = sm % 11;\n if ((r == 0) || (r == 1))\n dig14 = '0';\n else\n dig14 = (char) ((11 - r) + 48);\n\n // Verifica se os dígitos calculados conferem com os dígitos informados.\n if ((dig13 == cnpj.charAt(12)) && (dig14 == cnpj.charAt(13)))\n return (true);\n else\n return (false);\n } catch (InputMismatchException erro) {\n return (false);\n }\n }", "private Object _getJSONTextValue() {\r\n if (_textValue != null) {\r\n switch (_type.getValue()) {\r\n case Type.BOOLEAN:\r\n return Boolean.valueOf(_textValue);\r\n case Type.NUMBER:\r\n return Double.valueOf(_textValue);\r\n default:\r\n return _textValue;\r\n }\r\n }\r\n return JSONNull.getInstance().toString();\r\n }", "@Override // Métodos que fazem a anulação\n\tpublic String getCPF() {\n\t\treturn null;\n\t}", "String documentFormat();", "public double getClassificacao()\n {\n return this.classificacao;\n }", "public String getCGG_CVCTG_CODIGO(){\n\t\treturn this.myCgg_cvctg_codigo;\n\t}", "protected abstract String format();", "public String getStringValue() {\n return box.getFormat().format(box, box.getValue());\n }", "public static String format(Object val, String pattern)\n {\n try\n { \n\t return format(val, pattern, null, null);\n }\n catch(Exception ex)\n {\n\t log.error(ex, \"[NumberUtil] Error caught in method format\");\n\t return \"\";\n }\n }", "public String getJP_AcctDate();", "public final String getFormatString() {\n final Exp formatExp =\n (Exp) getProperty(Property.FORMAT_EXP_PARSED.name, null);\n if (formatExp == null) {\n return \"Standard\";\n }\n final Calc formatCalc = root.getCompiled(formatExp, true, null);\n final Object o = formatCalc.evaluate(this);\n if (o == null) {\n return \"Standard\";\n }\n return o.toString();\n }", "public String parseCurrency(NumberFormatTestData tuple) {\n return null;\n }", "String getContentFormat();", "String getFormatter();", "public String getCPF() {\n return this.CPF;\n }", "public String getFormat() {\n Object ref = format_;\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 format_ = s;\n return s;\n }\n }", "public String getFormatByExtension(String fileExtenstion) throws DataServiceException{\r\n\t\tString format = \"\";\r\n\t\tformat = (String)queryForObject(\"document.query_format\",fileExtenstion);\r\n\t\treturn format;\r\n\t}", "@Override\n public Object getFieldValue(JRField jrf) throws JRException {\n switch (jrf.getName()) {\n case \"importe_total\":\n return cursor.getImporteTotal();\n case \"marca\":\n return cursor.getNombreMarca();\n case \"importe_marca\": {\n try {\n return MoneyFormatter.conversion(Double.valueOf(cursor.getCalcularImporteMarca()));\n } catch (Exception e) {\n return (MoneyFormatter.conversion(0d));\n }\n }\n case \"modelo\":\n return cursor.getNombreModelo();\n case \"total_carros\":\n return cursor.getTotalCarrosMarMod();\n case \"total_dias_alquilado\":\n return cursor.getTotalDiasAlquilado();\n case \"importe_tarjeta\": {\n try {\n return MoneyFormatter.conversion(Double.valueOf(cursor.getImporteTarjeta()));\n } catch (Exception e) {\n return (MoneyFormatter.conversion(0d));\n }\n }\n case \"importe_cheque\": {\n try {\n return MoneyFormatter.conversion(Double.valueOf(cursor.getImporteCheque()));\n } catch (Exception e) {\n return (MoneyFormatter.conversion(0d));\n }\n }\n case \"importe_efectivo\": {\n try {\n return MoneyFormatter.conversion(Double.valueOf(cursor.getImporteEfectivo()));\n } catch (Exception e) {\n return (MoneyFormatter.conversion(0d));\n }\n }\n }\n return null;\n }", "public String getFormat() {\n Object ref = format_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n format_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public Long cniAsNumber() {\n return this.innerProperties() == null ? null : this.innerProperties().cniAsNumber();\n }", "public String toString()\n {\n return toString((Format) null);\n }", "@Override\n\tpublic String toString()\n\t{\n\t\treturn toString(Locale.getDefault(Locale.Category.FORMAT));\n\t}", "public NumberFormat getNumberFormat() {\n return numberFormat;\n }", "java.lang.String getField1252();", "FileFormat getFormat();", "public java.lang.String getValor();", "public String getFormat() {\n\t\treturn getAttribute(FORMAT_TAG);\n\t}", "@Override\r\n public Object formatValue(Object value) {\r\n return value;\r\n }", "private JFormattedTextField getTxtDtDocPendente() {\r\n\t\tif (txtDtDocPendente == null) {\r\n\t\t\ttxtDtDocPendente = new JFormattedTextField(setMascara(\"##/##/####\"));\r\n\t\t\ttxtDtDocPendente.setBounds(new Rectangle(307, 12, 80, 22));\r\n\t\t\ttxtDtDocPendente.setToolTipText(\"Data da pendência\");\r\n\t\t}\r\n\t\treturn txtDtDocPendente;\r\n\t}", "public String getAgenciaCodCedenteFormatted() {\r\n return boleto.getAgencia() + \" / \" + boleto.getContaCorrente() + \" \" + boleto.getDvContaCorrente();\r\n }", "@Override\n public String getCarteiraFormatted() {\n return boleto.getCarteira();\n }", "@Override\n public String getNossoNumeroFormatted() {\n return \"24\" + boleto.getNossoNumero();\n }" ]
[ "0.67895305", "0.66375166", "0.6564352", "0.63506836", "0.6326097", "0.6163049", "0.6158434", "0.60903263", "0.6044964", "0.6044964", "0.6044964", "0.60154754", "0.60019726", "0.59242773", "0.5921803", "0.58251715", "0.58251715", "0.58251715", "0.5808602", "0.57919884", "0.5785644", "0.5779733", "0.5738693", "0.5696091", "0.5670173", "0.5650919", "0.5643684", "0.56396616", "0.5619956", "0.56129175", "0.5567779", "0.55503035", "0.55503035", "0.5481986", "0.5465136", "0.5455982", "0.54471666", "0.5445574", "0.5440336", "0.5420259", "0.5400209", "0.5389915", "0.53851616", "0.5380694", "0.5376972", "0.5373526", "0.5364101", "0.53328246", "0.53192174", "0.530539", "0.5296546", "0.52902174", "0.528921", "0.5268974", "0.5255755", "0.5235227", "0.52238363", "0.5214934", "0.520571", "0.51970536", "0.5196415", "0.51885", "0.5181545", "0.51765966", "0.5170152", "0.51694113", "0.5146926", "0.514529", "0.51434207", "0.5128817", "0.512566", "0.51170284", "0.5104405", "0.5102376", "0.50986385", "0.50926024", "0.5090903", "0.5087754", "0.50868386", "0.5086038", "0.5083052", "0.5082131", "0.5081904", "0.5081167", "0.50792116", "0.5070866", "0.5070497", "0.5069155", "0.5062531", "0.5055475", "0.50473857", "0.5046478", "0.5045978", "0.503256", "0.5032383", "0.5030825", "0.5030285", "0.501347", "0.5010414", "0.50044435" ]
0.5392922
41
Author: Vinicius Medeiros Data: 11/02/2009 Formatar CEP
public static String formatarCEP(String codigo) { String retornoCEP = null; String parte1 = codigo.substring(0, 2); String parte2 = codigo.substring(2, 5); String parte3 = codigo.substring(5, 8); retornoCEP = parte1 + "." + parte2 + "-" + parte3; return retornoCEP; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void readCpteEpargne(CompteEpargne cpt) {\n\t\t\n\t}", "private void remplirFabricantData() {\n\t}", "@Override\n\tprotected void getDataFromUCF() {\n\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "int getCedula();", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo12628c() {\n }", "public void mo1403c() {\n }", "public interface C2007e {\n C3224j getData();\n\n float getMaxHighlightDistance();\n\n int getMaxVisibleCount();\n\n float getYChartMax();\n\n float getYChartMin();\n}", "private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "@Override\n\tpublic void createCpteEpargne(CompteEpargne cpt) {\n\t\t\n\t}", "private String E19Crests() {\n StringBuilder buffer = new StringBuilder();\n int numCols = 50;\n int leftMargin = 73;\n String tmp0 = \" \";\n String tmp1 = \" \";\n String tmp2 = \" \";\n String tmp3 = \" \";\n String tmp4 = \" \";\n String tmp5 = \" \";\n String tmp6 = \" \";\n String tmp7 = \" \";\n String tmp8 = \" \";\n\n TextReportData data = TextReportDataManager.getInstance()\n .getDataForReports(lid, 0);\n\n String indent = \"\";\n for (int i = 0; i < leftMargin; i++) {\n indent = indent.concat(\" \");\n }\n buffer.append(\"\\f\");\n buffer.append(TextReportConstants.E19_HDR_CRESTS + \"\\n\\n\");\n\n if (data.getRiverstat() != null) {\n if (data.getRiverstat().getFs() != HydroConstants.MISSING_VALUE) {\n tmp2 = String.format(\"%-6.2f\", data.getRiverstat().getFs());\n }\n if (data.getRiverstat().getWstg() != HydroConstants.MISSING_VALUE) {\n tmp3 = String.format(\"%-6.2f\", data.getRiverstat().getWstg());\n }\n if (data.getRiverstat().getBf() != HydroConstants.MISSING_VALUE) {\n tmp4 = String.format(\"%-6.2f\", data.getRiverstat().getBf());\n }\n if (data.getRiverstat().getFq() != HydroConstants.MISSING_VALUE) {\n tmp5 = String.format(\"%-8.0f\", data.getRiverstat().getFq());\n }\n if (data.getRiverstat()\n .getActionFlow() != HydroConstants.MISSING_VALUE) {\n tmp0 = String.format(\"%-8.0f\",\n data.getRiverstat().getActionFlow());\n }\n }\n\n tmp1 = String.format(\n \" FLOOD STAGE: %s ACTION STAGE: %s BANKFULL STAGE: %s\\n\",\n tmp2, tmp3, tmp4);\n\n tmp2 = String.format(\" FLOOD FLOW: %s ACTION FLOW: %s\\n\\n\", tmp5,\n tmp0);\n\n buffer.append(tmp1 + tmp2);\n\n int count1 = countNewlines(buffer.toString());\n\n buffer.append(\n \" DATE OF TIME CREST FLOW FROM HIGH BASED ON CAUSED BY\\n\");\n buffer.append(\n \" CREST LST (ft) (CFS) WATERMARKS OLD DATUM ICE JAM REMARKS\\n\");\n buffer.append(\n \" ---------- ------ ------ ------ ---------- --------- --------- \");\n buffer.append(\"--------------------------------------------------\\n\");\n\n int count2 = countNewlines(buffer.toString()) - count1;\n\n int available = getLinesPerPage() - count1 - count2 - 5;\n\n int avail = available - 2;\n int loop = 0;\n int needed = 0;\n TextReportData dataCrest = TextReportDataManager.getInstance()\n .getCrestData(lid);\n for (Crest crest : dataCrest.getCrestList()) {\n String[] lines = TextUtil.wordWrap(crest.getCremark(), numCols, 0);\n if (lines != null) {\n needed = lines.length - 1;\n }\n // Formatting for Line 1.\n if ((lines != null) && (lines[0] != null)) {\n tmp1 = lines[0];\n } else {\n tmp1 = \" \";\n }\n\n if (crest.getDatcrst() != null) {\n tmp3 = sdf.format(crest.getDatcrst());\n } else {\n tmp3 = \" \";\n }\n\n if (crest.getStage() != HydroConstants.MISSING_VALUE) {\n tmp4 = String.format(\"%6.2f\", crest.getStage());\n } else {\n tmp4 = \" \";\n }\n\n if (crest.getQ() != HydroConstants.MISSING_VALUE) {\n tmp5 = String.format(\"%6d\", crest.getQ());\n } else {\n tmp5 = \" \";\n }\n\n if (crest.getHw() != null) {\n tmp6 = crest.getHw();\n } else {\n tmp6 = \" \";\n }\n if (crest.getOldDatum() != null) {\n tmp7 = crest.getOldDatum();\n } else {\n tmp7 = \" \";\n }\n if (crest.getJam() != null) {\n tmp8 = crest.getJam();\n } else {\n tmp8 = \" \";\n }\n\n tmp2 = String.format(\n \" %10s %-6s %s %s %s %7s %s %7s %s %-17s\\n\",\n tmp3, crest.getTimcrst(), tmp4, tmp5, tmp6, \" \", tmp7, \" \",\n tmp8, tmp1);\n buffer.append(tmp2);\n\n // Formatting for all additional lines.\n if (lines != null) {\n for (int i = 1; i < lines.length; i++) {\n if (lines[i].length() > 1) { // Skip blank lines\n buffer.append(indent + lines[i] + \"\\n\");\n }\n }\n }\n avail = avail - needed;\n\n if (needed > avail) {\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n // Do footer.\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"))\n .getTime();\n String footer = createFooter(dataCrest, E19_RREVISE_TYPE,\n sdf.format(d), \"NWS FORM E-19\", E19_CRESTS, \"CRESTS\",\n null, E19_STANDARD_LEFT_MARGIN);\n buffer.append(footer);\n\n // Do column header.\n buffer.append(\"\\n\\n\");\n buffer.append(\n \" DATE OF TIME CREST FLOW FROM HIGH BASED ON CAUSED BY\\n\");\n buffer.append(\n \" CREST LST (ft) (CFS) WATERMARKS OLD DATUM ICE JAM REMARKS\\n\");\n buffer.append(\n \" ---------- ------ ------ ------ ---------- --------- \");\n buffer.append(\n \"--------- --------------------------------------------------\\n\");\n\n avail = available + count1;\n loop++;\n }\n }\n\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n String footer = createFooter(dataCrest, E19_RREVISE_TYPE,\n sdf.format(new Date()), \"NWS FORM E-19\", E19_CRESTS, \"CRESTS\",\n null, E19_STANDARD_LEFT_MARGIN);\n buffer.append(footer);\n\n return buffer.toString();\n }", "public void filtroCedula(String pCedula){\n \n }", "@Override\n\tpublic void readCpteCourant(CompteCourant cpt) {\n\t\t\n\t}", "public Object consultaCpf(String cpf, String vestinfo);", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private void remplirPrestaraireData() {\n\t}", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", "public static void readAcu() throws IOException, ClassNotFoundException, SQLException\n\t{\n\tString line;\n\tFile worksheet = new File(\"/Users/sturtevantauto/Pictures/Car_Pictures/XPS/6715329.acu\");\n\t\tBufferedReader reader = new BufferedReader(new FileReader(worksheet));\n\t\tint i = 1;\n\t\tString namebegin = null;\n\t\tboolean sw = false;\n\t\tint linebegin = 0;\n\t\twhile ((line = reader.readLine()) != null)\n\t\t{\n\t\t\tif(line.contains(\"-\"))\n\t\t\t{\n\t\t\t\tString[] lines = line.split(\"-\");\n\t\t\t\tif(Character.isDigit(lines[0].charAt((lines[0].length() - 1))))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString[] endlines = lines[1].split(\" \");\n\t\t\t\t\t\t\tendlines[0] = endlines[0].trim();\n\t\t\t\t\t\t\tint partnum = Integer.parseInt(lines[0].substring((lines[0].length() - 3), lines[0].length()));\n\t\t\t\t\t\t\tString partend = endlines[0];\n\t\t\t\t\t\t\t//System.out.println(findLine(DATReader.findPartName(partnum)));\n\t\t\t\t\t\t\tString name = DATReader.findPartName(partnum);\n\t\t\t\t\t\t\tif(!name.equals(namebegin))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnamebegin = name;\n\t\t\t\t\t\t\tsw = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(sw)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsw = false;\n\t\t\t\t\t\t\tlinebegin = findLine(name);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] linetext = findText(linebegin, i, name);\n\t\t\t\t\t\t\tint q = 1;\n\t\t\t\t\t\t\tfor(String print : linetext)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(print != null)\n\t\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\tprint = print.replace(\".\", \"\");\n\t\t\t\t\t\t\t\tSystem.out.println(q + \": \" + print);\n\t\t\t\t\t\t\t\tq++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlinebegin = i;\n\t\t\t\t\t\t\t//System.out.println(partnum + \"-\" + partend);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t }\n\t\treader.close();\n\n\t}", "public void redibujarAlgoformers() {\n\t\t\n\t}", "public String getCpe() {\n return cpe;\n }", "public void characters(char[] ch, int start, int length)\r\n\t{\r\n\t String cdata = (new String(ch, start, length)).trim();\r\n\r\n\r\n\t if(cdata.length() < 1)\r\n\t\treturn;\r\n\r\n\t String cur_element = current_tag.peek();\r\n\r\n\t /* Process the cdata for the current element */\r\n\t if(cur_element == null)\r\n\t\t{\r\n\t\t System.out.println(\"Error (ETDHandler:characters): no tag for with cdata \" + cdata);\r\n\t\t System.exit(1);\r\n\t\t}\r\n\r\n\t if(cur_element.equals(\"DISS_surname\")){\r\n\t\tname[LAST] = cdata;\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_fname\")){\r\n\t\tname[FIRST] = cdata;\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_middle\")){\r\n\t\tname[MIDDLE] = cdata;\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_language\")){\r\n\t\tlanguage = getLangCode(cdata);\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_title\")){\r\n\t\ttitle += \"\" + cdata;\r\n\t\t//marc_out.add(\"=245 10$a\" + cdata.trim() + \"$h[electronic resource]\" + \".\");\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_comp_date\")){\r\n\t\t comp_date = cdata.substring(0,4);\r\n\t\t}\r\n\r\n\t //else if(cur_element.equals(\"DISS_accept_date\") && cdata.length() >= 4){\r\n\t\t// ProQuest/UMI changed to a new system, which uses \"01/01/08\" for any ETD submitted in 2008. The accept_date is\r\n\t\t// no longer useful to generate the real accept date. \r\n\t\t//accept_date = cdata.substring(0, 4);\r\n\t\t// if DISS_accept_date is format of \"20050731\", length of 8\r\n\t\t//if(cdata.length() >= 8) {\r\n\t\t //running_date = cdata.substring(2, 8);\r\n\t\t// accept_date = cdata.substring(0,4);\r\n\t\t//}\r\n\r\n\t\t//-------revised by xing--------begin-------\r\n\t\t// if DISS_accept_date is format 0f \"07/31/2008\", lenght of 10\r\n\t\t//if(cdata.length() >= 10){\r\n\t\t //running_date = cdata.substring(8,10) + cdata.substring(0,2)+ cdata.substring(3,5);\r\n\t\t // accept_date = cdata.substring (6,10);\r\n\t\t//}\r\n\t\t//-------end--------------------------------\r\n\r\n\t//-------revised by JS 20090107, use full date--------begin-------\r\n\t else if(cur_element.equals(\"DISS_accept_date\")){\r\n\t\t accept_date = cdata.substring (0,10);\r\n\t marc_out.add(\"=500 \\\\\\\\$aTitle and description based on DISS metadata (ProQuest UMI) as of \" + accept_date + \".\");\r\n\t }\r\n\t\t// added JS 200912; if DISS_cat_code is present, grab to add to 502 $o\r\n\t else if(cur_element.equals(\"DISS_cat_code\")){\r\n\t\tcatCode += cdata + \"\";\r\n\t }\r\n\t\t//-------end--------------------------------\r\n\t else if(cur_element.equals(\"DISS_para\")){\r\n\t\tparagraphs += cdata;\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_inst_contact\")){\r\n\t\tissueDept += cdata + \"\";\r\n\r\n\t\t/*marc_out.add(\"=699 \\\\\\\\$a\" + cdata + \".\"); //blah*/\r\n\t\t/*=699 \\\\\\\\$a\" + cdata + \".\"=> 200912JS: changed to 710 /blah*/\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_keyword\")){\r\n\t\t/* Preferably parsing keywords into 699 marc data should be done here, but bug in java\r\n\t\t SAX causes characters() call on <DISS_keywords> to happen twice inbetween cdata */\r\n\t\tString n_cdata = cdata.replace(',', ';');\r\n\t\tn_cdata = n_cdata.replace(':', ';');\r\n\t\tn_cdata = n_cdata.replace('.', ';');\r\n\r\n\t\tkeywords += n_cdata;\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_ISBN\")){\r\n\t\tmarc_out.add(\"=020 \\\\\\\\$a\" + cdata);\r\n\t }\r\n\t /* else if(cur_element.equals(\"DISS_cat_code\")) {\r\n\t\tmarc_out.add(\"=502 \\\\\\\\$o\" + catCode + \".\");\r\n\t\t} */ \r\n\t else if(cur_element.equals(\"DISS_degree\")) {\r\n\t\tmarc_out.add(\"=502 \\\\\\\\$aThesis$b(\" + cdata + \")--$cGeorge Washington University,$d\" + comp_date + \".\");\r\n\t\t} \r\n //System.out.println(catCode); /* output content of cat_code */\r\n\r\n\t}", "@Override\n protected void getExras() {\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 Integer getCedula() {return cedula;}", "public Ov_Chipkaart() {\n\t\t\n\t}", "private String prepararCaducidad() {\n this.getRequestBean1().setCasoNavegacionPostCaducidad(CASO_NAV_POST_CADUCIDAD);\n return CASO_NAV_CADUCIDAD;\n }", "protected boolean func_70814_o() { return true; }", "private void parseData() {\n\t\t\r\n\t}", "public abstract void mo133131c() throws InvalidDataException;", "java.lang.String getField1360();", "java.lang.String getCit();", "public void Citation() {\n\t}", "java.lang.String getField1380();", "java.lang.String getField1613();", "@Override\n public void iCGDer(int icgAbsDer, int timestamp) {\n }", "private String E19Cover() {\n StringBuilder buffer = new StringBuilder();\n\n TextReportData data = TextReportDataManager.getInstance()\n .getDataForReports(lid, 0);\n buffer.append(TextReportConstants.E19_HDR_COVER);\n buffer.append(\"\\n\\n\");\n buffer.append(\"\t\t\t U.S. DEPARTMENT OF COMMERCE\\n\");\n buffer.append(\n \" NATIONAL OCEANIC AND ATMOSPHERIC ADMINISTRATION\\n\");\n buffer.append(\n \" NATIONAL WEATHER SERVICE\\n\\n\");\n buffer.append(\n \" REPORT ON RIVER GAGE STATION\\n\\n\");\n\n String revisedDate = \" \";\n if (data.getRiverstat().getRrevise() != null) {\n revisedDate = sdf.format(data.getRiverstat().getRrevise());\n }\n\n Date now = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\")).getTime();\n String printedDate = sdf.format(now);\n\n buffer.append(String.format(\"%40s %10s, %10s\\n\\n\\n\",\n \"REVISED, PRINTED DATES:\", revisedDate, printedDate));\n\n buffer.append(String.format(\"LOCATION: %s\\n STREAM: %s\\n\",\n locData.getLocation().getName(),\n data.getRiverstat().getStream()));\n buffer.append(String.format(\" BASIN: %-30s HSA: %s\\n\",\n locData.getLocation().getRb(), locData.getLocation().getHsa()));\n buffer.append(\"\\n\");\n\n buffer.append(\"REFERENCES:\\n\");\n TextReportData dataRefer = TextReportDataManager.getInstance()\n .getReferenceData(lid);\n int count = 0;\n if (dataRefer.getRefer() != null) {\n count = dataRefer.getRefer().size();\n }\n\n if (count > 0) {\n for (String s : dataRefer.getRefer()) {\n buffer.append(String.format(\" %s\\n\", s));\n }\n }\n\n // try to place ABBREVIATIONS at the bottom\n for (int i = 0; i < 16 - count; i++) {\n buffer.append(\"\\n\");\n }\n\n buffer.append(\"\\nABBREVIATIONS:\\n\\n\");\n buffer.append(\n \" BM - bench mark\t\tEPA - Environmental Protection Agency\\n\");\n buffer.append(\n \" DS - downstream\t\tIBWC - International Boundary and Water Comm.\\n\");\n buffer.append(\n \" US - upstream\t\tMSRC - Mississippi River Commission\\n\");\n buffer.append(\n \" HW - high water\t\tMORC - Missouri River Commission\\n\");\n buffer.append(\n \" LW - low water\t\tNOAA - National Oceanic and Atmospheric Admin.\\n\");\n buffer.append(\n \" RB - right bank\t\tNOS - National Ocean Survey\\n\");\n buffer.append(\n \" LB - left bank\t\tNWS - National Weather Service\\n\");\n buffer.append(\n \" MGL - mean gulf level\t\tTVA - Tennessee Valley Authority\\n\");\n buffer.append(\n \" MLW - mean low water\t\tUSACE - U.S. Army Corps of Engineers\\n\");\n buffer.append(\n \" MSL - mean sea level\t\tUSBR - U.S. Bureau of Reclamation\\n\");\n buffer.append(\n \" MLT - mean low tide\t\tUSGS - U.S. Geological Survey\\n\");\n buffer.append(\" MT - mean tide\t\tUSWB - U.S. Weather Bureau\\n\");\n buffer.append(\n \" WQ - water quality\t\tNGVD - National Geodetic Vertical Datum\\n\");\n buffer.append(\n \" RM - reference mark\t\tNAD - North American Datum\\n\");\n buffer.append(\" RP - reference point\\n\");\n buffer.append(\"\\n\\n\\n\");\n\n buffer.append(String.format(\n \"\t\t\t\t\t LOCATION IDENTIFICATION: %s\\n\", lid));\n buffer.append(\n String.format(\"\t\t\t\t\t\t NWS INDEX NUMBER: %s\\n\",\n locData.getLocation().getSn()));\n buffer.append(\n String.format(\"\t\t\t\t\t\t USGS NUMBER: %s\\n\",\n data.getRiverstat().getGsno()));\n\n return buffer.toString();\n }", "java.lang.String getC3();", "java.lang.String getField1348();", "java.lang.String getField1600();", "java.lang.String getField1630();", "public int characteristics() {\n/* 1460 */ return this.characteristics;\n/* */ }", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "protected void parseTermData()\n {\n for (int i = 0; i < data.length; i++)\n {\n data[i] = Cdata[i];\n }\n }", "java.lang.String getField1316();", "java.lang.String getField1313();", "java.lang.String getField1373();", "@Override\n\tpublic void pausaParaComer() {\n\n\t}", "public Vector getRpCancelForm(String yyyymm)throws Exception \n\t{\n\t\tSystem.out.println(\" innser gtRPCancelForm : \"+ yyyymm); \n\t\tVector v = new Vector(); \n\t\tMrecord rpc = CFile.opens(\"cancelform@insuredocument\"); \n\t\trpc.start(0); //(deptCode docCode cancelDate startNo)\n\t\tString fRI = \"0\"; \n\t\tString fROW = \"0\"; \t\t\n\t\tString fR17\t= \"0\"; \n\t\tString fCI = \"0\"; \n\t\tString fCOW = \"0\"; \n\t\tString fC17\t= \"0\";\n\n\t\tSystem.out.println(\" branch : \" + branch); \n\t\tboolean okfind = rpc.equalGreat(branch); \n\t\tSystem.out.println(\" okfind : \"+okfind); \n\t\tfor (; okfind && branch.compareTo(rpc.get(\"deptCode\").trim()) == 0; okfind = rpc.next())\t\t\t\n\t\t{\n\t\t\tSystem.out.println(\" --->>. innerloop : \"+ rpc.get(\"cancelDate\").substring(0, 6)); \n\t\t\tif (yyyymm.compareTo(rpc.get(\"cancelDate\").substring(0, 6)) != 0)\n\t\t\t\tcontinue; \n\t\t\tSystem.out.println(\" --->>. status : \" + rpc.get(\"status\") + \" docCode : \"+rpc.get(\"status\")); \n\t\t\tif (\"R\".compareTo(rpc.get(\"status\").trim()) == 0 )\n\t\t\t{\n\t\t\t\tif (rpc.get(\"docCode\").trim().compareTo(\"01\") == 0)\n\t\t\t\t\tfRI = M.addnum(fRI, calNum(rpc.get(\"startNo\"), rpc.get(\"lastNo\"))); \t\t\t\t\n\t\t\t\telse if (rpc.get(\"docCode\").trim().compareTo(\"02\") == 0 || rpc.get(\"docCode\").trim().compareTo(\"03\") == 0)\n\t\t\t\t\tfROW = M.addnum(fROW, calNum(rpc.get(\"startNo\"), rpc.get(\"lastNo\"))); \t\t\t\t\t\t\t\t\n\t\t\t\telse if (\trpc.get(\"docCode\").trim().compareTo(\"17\") == 0 || \n\t\t\t\t\t\t\trpc.get(\"docCode\").trim().compareTo(\"22\") == 0 )\n\t\t\t\t\tfR17 = M.addnum(fR17, calNum(rpc.get(\"startNo\"), rpc.get(\"lastNo\"))); \t\t\t\t\t\t\t\t\n\t\t\t}\t\n\t\t\telse if (\"C\".compareTo(rpc.get(\"status\").trim()) == 0 )\n\t\t\t{\n\t\t\t\tif (rpc.get(\"docCode\").trim().compareTo(\"01\") == 0)\n\t\t\t\t\tfCI = M.addnum(fCI, calNum(rpc.get(\"startNo\"), rpc.get(\"lastNo\"))); \t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\telse if (rpc.get(\"docCode\").trim().compareTo(\"02\") == 0 || rpc.get(\"docCode\").trim().compareTo(\"03\") == 0 )\n\t\t\t\t\tfCOW = M.addnum(fCOW, calNum(rpc.get(\"startNo\"), rpc.get(\"lastNo\")));\n\t\t\t\telse if (rpc.get(\"docCode\").trim().compareTo(\"17\") == 0 || rpc.get(\"docCode\").trim().compareTo(\"22\") == 0 )\n\t\t\t\t\tfC17 = M.addnum(fC17, calNum(rpc.get(\"startNo\"), rpc.get(\"lastNo\"))); \t\t\t\t\t\n\t\t\t}\n\t\t}\t\n\t\tv.add(fCI); \n\t\tv.add(fCOW); \n\t\tv.add(fRI); \n\t\tv.add(fROW); \n\t\tv.add(fC17); \n\t\tv.add(fR17); \n\t\treturn v; \n\t}", "public static void main(String args[]) throws IOException {\n File file = new File(\"Savoy House_2019_Price List_precios.pdf\");\n PDDocument document = PDDocument.load(file);\n\n //Instantiate PDFTextStripper class\n PDFTextStripper striper = new PDFTextStripper();\n\n //Retrieving text from PDF document\n striper.setStartPage(1);\n\n String documentText = striper.getText(document);\n //System.out.println(documentText);\n\n String[] tablica = documentText.split(\"\\n\");\n String header = \"Referencia,colección,Catalogo,Distributor Price EXW-Valencia,Distributor Price EXW-Valencia,\" +\n \"uds por caja,Peso bruto,imap price\\n\" +\n \"sku #,Family,Catalogue,CE 2019 [€] (Ready pickup 50~65 days),CE 2019 [€] (Ready pickup 20~30 days),\" +\n \"Pkg size,Packed weight [kg],online (Valid until June 30th 2019)\\n\";\n\n StringBuilder sb = new StringBuilder(header);\n\n for (int i = 0; i < tablica.length; i++) {\n if (tablica[i].trim().endsWith(\"€\")) {\n int lineLength = tablica[i].trim().replaceAll(\"\\\\s€|\\\\skg|,\", \"\").split(\" \").length;\n\n // check if 'Pkg size' is 1 (is not empty)\n if (tablica[i].trim().replaceAll(\"\\\\s€|\\\\skg|,\", \"\").split(\" \")[lineLength - 3].equals(\"1\")) {\n\n // join collection name into one record in the row\n if (lineLength == 8) {\n sb.append(tablica[i].trim().replaceAll(\"\\\\s€|\\\\skg|,\", \"\").replaceAll(\" \", \",\") + \"\\n\");\n } else if (lineLength > 8) {\n sb.append(tablica[i].trim().replaceAll(\"\\\\s€|\\\\skg|,\", \"\").split(\" \")[0] + \",\");\n for (int j = 1; j < lineLength - 6; j++) {\n if (j < lineLength - 7) {\n sb.append(tablica[i].trim().replaceAll(\"\\\\s€|\\\\skg|,\", \"\").split(\" \")[j] + \" \");\n } else {\n sb.append(tablica[i].trim().replaceAll(\"\\\\s€|\\\\skg|,\", \"\").split(\" \")[j]);\n }\n }\n sb.append(\",\");\n\n // append other records into the row\n for (int j = lineLength - 6; j < lineLength; j++) {\n if (j < lineLength - 1) {\n sb.append(tablica[i].trim().replaceAll(\"\\\\s€|\\\\skg|,\", \"\").split(\" \")[j] + \",\");\n } else {\n sb.append(tablica[i].trim().replaceAll(\"\\\\s€|\\\\skg|,\", \"\").split(\" \")[j]);\n }\n }\n sb.append(\"\\n\");\n }\n } else {\n sb.append(\"Data missing\\n\");\n }\n }\n }\n System.out.println(sb);\n\n // write sb string as csv file\n try {\n FileWriter writer = new FileWriter(\"savoy2019.csv\", true);\n writer.write(sb.toString());\n writer.close();\n System.out.println(\"'savoy2019.csv' file created successfully\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //Closing the document\n document.close();\n }", "java.lang.String getField1390();", "java.lang.String getField1673();", "java.lang.String getField1637();", "java.lang.String getField1659();", "public void designBasement() {\n\t\t\r\n\t}", "java.lang.String getField1853();", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void execute(ProgramContext pc) throws ParserException {\n\t\tif (!pc.isEscribe()){\n\t\t\t//marco el field como hide, para que endform sepa que hacer con el\n\t\t\tfield.setHide(true);\n\t\t\treturn;\n\t\t}\n\t\tString res = \"\";\n\t\tString itemName = field.getItemName();\n\t\tString itemType = field.getItemType();\n\t\tint itemUi = field.getItemUi();\n\t\tString resto = field.getResto();\n\t\tString valor = pc.getDocAct().getItemValue(itemName);\n\t\tif (valor == null) valor = \"\";\n\t\t\n\t\tif (itemName.toLowerCase().startsWith(\"fecha\")){\n\t\t\tlog.debug(\"###########################################################################\");\n\t\t\tlog.debug(\"# itemName=\"+itemName+\" valor=\"+valor+\" class:\"+pc.getDocAct().getItem(itemName));\n\t\t\tlog.debug(\"###########################################################################\");\n\t\t}\n\t\t\n\t\tvalor = Arguments.scapeHTML(valor);\n\t\t\n\t\tif (((pc.getActionType()==ProgramContext.ACTION_NEW)||(pc.getActionType()==ProgramContext.ACTION_EDIT))&&(field.getItemKind()==Field.KIND_EDITABLE)){\n\t\t\t//veo si hay lista dinamica y statica y las proceso\n\t\t\tList<String> options = new ArrayList<String>();\n\t\t\tif (field.getDinamicList()!=null) options.addAll(pc.getDomSession().executeGetList(field.getDinamicList()));\n\t\t\tif (field.getTextList()!=null) {\n\t\t\t\tString[] opts = field.getTextList().split(field.getSeparator());\n\t\t\t\tfor(String opt:opts) options.add(opt);\n\t\t\t}\n\t\t\t//arreglo para poner columnas en checks y radios\n\t\t\tint col=0;\n\t\t\tint numCols = field.getNumCols();\n\t\t\tif (numCols==0) numCols=options.size();\n\n\t\t\t//veo si el valor es multivaluado y lo proceso\n\t\t\tString isep = field.getInternalSeparator();\n\t\t\tSystem.out.println(\"#### isep=\"+isep+\" valor=\"+valor);\n\t\t\tList<String> valores = new ArrayList<String>();\n\t\t\tif (isep!=null){\n\t\t\t\tString[] vals = valor.split(isep);\n\t\t\t\tfor(String val:vals) valores.add(val.trim());\n\t\t\t} else valores.add(valor);\n\t\t\t\n\t\t\tswitch(itemUi){\n\t\t\tcase Field.UI_TEXT:\n\t\t\t\tres = \"<input type=\\\"text\\\" id=\\\"\"+itemName+\"\\\" name=\\\"\" + itemName + \"\\\" \"+resto+\" value=\\\"\" + valor + \"\\\">\";\n\t\t\t\tbreak;\n\t\t\tcase Field.UI_TEXTAREA:\n\t\t\t\tres = \"<textarea id=\\\"\"+itemName+\"\\\" name=\\\"\" + itemName + \"\\\" \"+resto+\">\" + valor + \"</textarea>\";\n\t\t\t\tbreak;\n\t\t\tcase Field.UI_CHECKBOX:\n\t\t\t\tfor(String option:options){\n\t\t\t\t\t//ver caso especial donde | separa texto de valor\n\t\t\t\t\tint i1=option.indexOf(\"|\");\n\t\t\t\t\tString val = option.trim();\n\t\t\t\t\tString txt = option.trim();\n\t\t\t\t\tif (i1>0){\n\t\t\t\t\t\ttxt = option.substring(0,i1).trim();\n\t\t\t\t\t\tval = option.substring(i1+1).trim();\n\t\t\t\t\t}\n\t\t\t\t\tres += \"<input type=\\\"checkbox\\\" name=\\\"\" + itemName + \"\\\" \"+resto+\" value=\\\"\" + val + \"\\\"\";\n\t\t\t\t\t//comprobar debo marcar la opcion teniendo en cuenta los multivaluados (internalSeparator)\n\t\t\t\t\tif (valores.contains(val)) res+=\" checked=\\\"true\\\"\";\n\t\t\t\t\tres += \">\"+txt;\n\t\t\t\t\tcol++;\n\t\t\t\t\tif (col>=numCols) {\n\t\t\t\t\t\tres += \"<br>\";\n\t\t\t\t\t\tcol = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Field.UI_RADIOBUTTON:\n\t\t\t\tfor(String option:options){\n\t\t\t\t\t//ver caso especial donde | separa texto de valor\n\t\t\t\t\tint i1=option.indexOf(\"|\");\n\t\t\t\t\tString val = option.trim();\n\t\t\t\t\tString txt = option.trim();\n\t\t\t\t\tif (i1>0){\n\t\t\t\t\t\ttxt = option.substring(0,i1).trim();\n\t\t\t\t\t\tval = option.substring(i1+1).trim();\n\t\t\t\t\t}\n\t\t\t\t\tres += \"<input type=\\\"radio\\\" name=\\\"\" + itemName + \"\\\" \"+resto+\" value=\\\"\" + val + \"\\\"\";\n\t\t\t\t\t//comprobar debo marcar la opcion teniendo en cuenta los multivaluados (internalSeparator)\n\t\t\t\t\tif (valores.contains(val)) res+=\" checked=\\\"true\\\"\";\n\t\t\t\t\tres += \">\"+txt;\n\t\t\t\t\t//ajuste de columna segun el atributo numCols de field\n\t\t\t\t\tcol++;\n\t\t\t\t\tif (col>=numCols) {\n\t\t\t\t\t\tres += \"<br>\";\n\t\t\t\t\t\tcol = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Field.UI_COMBOBOX:\n\t\t\tcase Field.UI_DIALOGLIST:\n\t\t\tcase Field.UI_LISTBOX:\n\t\t\t\tres = \"<select id=\\\"\"+itemName+\"\\\" name=\\\"\" + itemName + \"\\\" \"+resto+\">\\n\";\n\t\t\t\tfor(String option:options) {\n\t\t\t\t\t//ver caso especial donde | separa texto de valor\n\t\t\t\t\tint i1=option.indexOf(\"|\");\n\t\t\t\t\tString val = option.trim();\n\t\t\t\t\tString txt = option.trim();\n\t\t\t\t\tif (i1>0){\n\t\t\t\t\t\ttxt = option.substring(0,i1).trim();\n\t\t\t\t\t\tval = option.substring(i1+1).trim();\n\t\t\t\t\t}\n\t\t\t\t\tres += \"<option value=\\\"\"+val+\"\\\"\";\n\t\t\t\t\t//comprobar debo marcar la opcion teniendo en cuenta los multivaluados (internalSeparator)\n\t\t\t\t\tif (valores.contains(val)) res+=\" selected=\\\"true\\\"\";\n\t\t\t\t\tres+=\">\"+txt+\"</option>\";\n\t\t\t\t}\n\t\t\t\tres += \"</select>\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} else res+=valor;\n\t\tpc.append(res);\n\t}", "public void calCEDI(PtsReportXMLParser prxmlp, ArrayList spks,\n HashMap<String, Speaker> parts) {\n if (parts == null) {\n System.out.println(\"parts are null!!!!\");\n return;\n }\n collectInfo(parts);\n calDis(spks, parts, dris_, false); //calculate outgoing links of expressive disagreement\n genQuintileSc(prxmlp, spks, parts, false);\n calDis(spks, parts, respto_dris_, true);\n genQuintileSc(prxmlp, spks, parts, true);\n ArrayList<String> keys = new ArrayList(Arrays.asList(parts.keySet().toArray()));\n /*\n for (String key: keys) {\n System.out.println(parts.get(key).getTension().showDistributions());\n }\n * \n */\n //genQuintileSc(prxmlp, spks, parts, true); //calculate ingoing links of expressive disagreement\n //System.out.println(\"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\");\n //System.out.println(\"++++++++++++++++++++++++++++++++\\ncalculate Expressive Disagreement - CDXI quintile\");\n //System.out.println(\"percentage of disagreement:\" + ((double)total_dri_)/utts_.size());\n }", "private void kk12() {\n\n\t}", "java.lang.String getField1396();", "java.lang.String getField1873();", "java.lang.String getField1750();", "@Override // Métodos que fazem a anulação\n\tpublic String getCPF() {\n\t\treturn null;\n\t}", "java.lang.String getField1353();", "@Override\n\tpublic void readConseille(Conseille c) {\n\t\t\n\t}", "public static void getdatacou() {\n\t\ttry {\n\t\t\tps = conn.prepareStatement(\"select * from course \");\n\t\t\trs = ps.executeQuery();\n\t\t\tcounter = 0;\n\t\t\twhile(rs.next()){\n\t\t\t\tc_no[counter] = rs.getString(\"Cno\");\n\t\t\t\tc_name[counter] = rs.getString(\"Cname\");\n\t\t\t\tcredit[counter] = rs.getDouble(\"Ccredit\");\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\t\n\t\t}catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\t\tpublic void visitPreDecompose(OntClass c) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void visitPreDecompose(OntClass c) {\n\t\t\t\n\t\t}", "java.lang.String getField1358();", "java.lang.String getField1660();", "java.lang.String getField1859();", "java.lang.String getField1361();", "java.lang.String getField1370();", "java.lang.String getField1303();", "java.lang.String getField1302();", "java.lang.String getField1683();", "java.lang.String getField1661();", "java.lang.String getField1753();", "public static void mcdc() {\n\t}", "java.lang.String getField1383();", "java.lang.String getField1359();", "java.lang.String getField1685();", "java.lang.String getField1653();", "public void CARGARCODIGO(String console,String charI,String charF,NSRTableModel t){\n\t\tList<DGENERACIONCODIGOS> listDGeneracionCodigo =new ArrayList<DGENERACIONCODIGOS>();\n\t\tMap<String,String> mapa;\n\t\tint j=0;\n\t\tString codigo=\"\";\n\t\t/*LIMPIAR PANEL*/\n\t\ttry{\n\t\t\t//listGeneracionCodigo \t=\t(new GENERACIONCODIGOSDao()).listar(1,\"IDEMPRESA = ? and PARAMETRO = ?\",ConfigInicial.LlenarConfig()[8].toString(),\"FrmPackingList\");\n//\t\t\tlistDGeneracionCodigo \t=\t(new DGENERACIONCODIGOSDao()).listar();\n\t\t\t/*****************************TRAER DATOS DE CONSOLE*************************/\n\t\t\tArrayList<String> listcodigo=new ArrayList<String>();\n\t\t\tfor(int x=1;x<=listGeneracionCodigo.size();x++){\n\t\t\t\tlistcodigo.add(codigo=Constantes.buscarFragmentoTexto(console,charI,charF,x));\n\t\t\t}\n\t\t\t/**************************RECORRER CABECERA********************************/\n\t\t\tfor(GENERACIONCODIGOS gc : listGeneracionCodigo){\n\t\t\t\tmapa= new HashMap<String,String>();\n\t\t\t\tlistDGeneracionCodigo \t=\t(new DGENERACIONCODIGOSDao()).listar(1,\"IDEMPRESA = ? and IDGENERACION = ?\",gc.getIDEMPRESA(),gc.getIDGENERACION());\n\t\t\t\t/*BUSCAR CÓDIGO CON LONGITUD REQUERIDA*/\n\t\t\t\tcodigo=buscarCadenaxLongitud(listcodigo,gc.getBARCODETOTAL());\n\t\t\t\tj=0;\n\t\t\t\tfor(DGENERACIONCODIGOS dgc : listDGeneracionCodigo){\n\t\t\t\t\tmapa.put(dgc.getPARAMETRO(), codigo.substring(j,j+dgc.getNUMDIGITO()));\n\t\t\t\t\tj+=dgc.getNUMDIGITO();\n\t\t\t\t}\n\t\t\t\t/**********************************LLENAR DATOS**************************************/\n\t\t\t\tmapaGen = mapa;\n\t\t\t\tt.addRow(new Object[] { getPack().getIDEMPRESA(), getPack().getIDSUCURSAL(), getPack().getIDPACKING(),\n\t\t\t\t\t\tgetDetalleTM().getRowCount() + 1, mapaGen.get(\"NROPALETA\"),mapaGen.get(\"IDPRODCUTO\"), \"\",mapaGen.get(\"IDLOTEP\"), \"\", \"\", 0.0, 0.0, 0.0 });\n\t\t\t\t\tmapaGen = new HashMap<String,String>();\n\t\t\t}\n\t\t}catch (NisiraORMException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tConstantes.log.warn(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "java.lang.String getField1773();", "public String getJP_BankData_EDI_Info();", "java.lang.String getField1603();", "java.lang.String getField1629();", "java.lang.String getField1384();", "public void recuperarFacturasCliente(){\n String NIF = datosFactura.recuperarFacturaClienteNIF();\n ArrayList<Factura> facturas = almacen.getFacturas(NIF);\n if(facturas != null){\n for(Factura factura : facturas) {\n System.out.println(\"\\n\");\n System.out.print(factura.toString());\n }\n }\n System.out.println(\"\\n\");\n }", "java.lang.String getField1381();", "java.lang.String getField1385();", "java.lang.String getField1395();", "java.lang.String getField1759();", "@Override\n\tpublic void updateCpteEpargne(CompteEpargne cpt) {\n\t\t\n\t}", "abstract C0451h mo1607e();" ]
[ "0.58049834", "0.5624287", "0.5530189", "0.5410799", "0.538255", "0.5375088", "0.53010345", "0.5176754", "0.51664436", "0.515219", "0.5150413", "0.5140015", "0.5133501", "0.5127985", "0.5115655", "0.5106414", "0.5080535", "0.5070611", "0.5058529", "0.5058529", "0.50491774", "0.50417626", "0.5030387", "0.50162274", "0.5009456", "0.50021255", "0.50004125", "0.49760392", "0.49595168", "0.49496448", "0.4940538", "0.49347955", "0.4933411", "0.49157825", "0.49115062", "0.49100742", "0.4903306", "0.4896569", "0.4895702", "0.48955062", "0.4889881", "0.48876047", "0.48874316", "0.4883324", "0.48817542", "0.48761374", "0.48745888", "0.4872418", "0.48702005", "0.4870199", "0.48687", "0.4868278", "0.4866972", "0.4863472", "0.48632464", "0.48577353", "0.48561534", "0.48558328", "0.4855652", "0.4854025", "0.48512596", "0.48512343", "0.4849552", "0.48487788", "0.48475534", "0.4842756", "0.4839576", "0.48375145", "0.48374176", "0.48364565", "0.48346075", "0.48327452", "0.48327452", "0.4831997", "0.48312947", "0.48300523", "0.4829411", "0.48287013", "0.4825576", "0.48235765", "0.48233178", "0.48224086", "0.4820533", "0.48193198", "0.48168653", "0.48156938", "0.48149344", "0.48132062", "0.48130083", "0.48125237", "0.48102936", "0.48087558", "0.4807967", "0.48067138", "0.48055103", "0.48048103", "0.48042938", "0.48024762", "0.48002982", "0.4798739", "0.4797296" ]
0.0
-1
Author: Vinicius Medeiros Data: 11/02/2009 Retirar formatacao CEP
public static String retirarFormatacaoCEP(String codigo) { String retornoCEP = null; String parte1 = codigo.substring(0, 2); String parte2 = codigo.substring(3, 6); String parte3 = codigo.substring(7, 10); retornoCEP = parte1 + parte2 + parte3; return retornoCEP; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void createCpteEpargne(CompteEpargne cpt) {\n\t\t\n\t}", "@Override\n public void onCEPSuccess(ViaCEP cep) {\n System.out.println();\n System.out.println(\"CEP \" + cep.getCep() + \" encontrado!\");\n System.out.println(\"Logradouro: \" + cep.getLogradouro());\n System.out.println(\"Complemento: \" + cep.getComplemento());\n System.out.println(\"Bairro: \" + cep.getBairro());\n System.out.println(\"Localidade: \" + cep.getLocalidade());\n System.out.println(\"UF: \" + cep.getUf());\n System.out.println(\"Gia: \" + cep.getGia());\n System.out.println(\"Ibge: \" + cep.getIbge());\n System.out.println();\n }", "@Override\n\tpublic void readCpteEpargne(CompteEpargne cpt) {\n\t\t\n\t}", "public String getCpe() {\n return cpe;\n }", "public Vector getRpCancelForm(String yyyymm)throws Exception \n\t{\n\t\tSystem.out.println(\" innser gtRPCancelForm : \"+ yyyymm); \n\t\tVector v = new Vector(); \n\t\tMrecord rpc = CFile.opens(\"cancelform@insuredocument\"); \n\t\trpc.start(0); //(deptCode docCode cancelDate startNo)\n\t\tString fRI = \"0\"; \n\t\tString fROW = \"0\"; \t\t\n\t\tString fR17\t= \"0\"; \n\t\tString fCI = \"0\"; \n\t\tString fCOW = \"0\"; \n\t\tString fC17\t= \"0\";\n\n\t\tSystem.out.println(\" branch : \" + branch); \n\t\tboolean okfind = rpc.equalGreat(branch); \n\t\tSystem.out.println(\" okfind : \"+okfind); \n\t\tfor (; okfind && branch.compareTo(rpc.get(\"deptCode\").trim()) == 0; okfind = rpc.next())\t\t\t\n\t\t{\n\t\t\tSystem.out.println(\" --->>. innerloop : \"+ rpc.get(\"cancelDate\").substring(0, 6)); \n\t\t\tif (yyyymm.compareTo(rpc.get(\"cancelDate\").substring(0, 6)) != 0)\n\t\t\t\tcontinue; \n\t\t\tSystem.out.println(\" --->>. status : \" + rpc.get(\"status\") + \" docCode : \"+rpc.get(\"status\")); \n\t\t\tif (\"R\".compareTo(rpc.get(\"status\").trim()) == 0 )\n\t\t\t{\n\t\t\t\tif (rpc.get(\"docCode\").trim().compareTo(\"01\") == 0)\n\t\t\t\t\tfRI = M.addnum(fRI, calNum(rpc.get(\"startNo\"), rpc.get(\"lastNo\"))); \t\t\t\t\n\t\t\t\telse if (rpc.get(\"docCode\").trim().compareTo(\"02\") == 0 || rpc.get(\"docCode\").trim().compareTo(\"03\") == 0)\n\t\t\t\t\tfROW = M.addnum(fROW, calNum(rpc.get(\"startNo\"), rpc.get(\"lastNo\"))); \t\t\t\t\t\t\t\t\n\t\t\t\telse if (\trpc.get(\"docCode\").trim().compareTo(\"17\") == 0 || \n\t\t\t\t\t\t\trpc.get(\"docCode\").trim().compareTo(\"22\") == 0 )\n\t\t\t\t\tfR17 = M.addnum(fR17, calNum(rpc.get(\"startNo\"), rpc.get(\"lastNo\"))); \t\t\t\t\t\t\t\t\n\t\t\t}\t\n\t\t\telse if (\"C\".compareTo(rpc.get(\"status\").trim()) == 0 )\n\t\t\t{\n\t\t\t\tif (rpc.get(\"docCode\").trim().compareTo(\"01\") == 0)\n\t\t\t\t\tfCI = M.addnum(fCI, calNum(rpc.get(\"startNo\"), rpc.get(\"lastNo\"))); \t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\telse if (rpc.get(\"docCode\").trim().compareTo(\"02\") == 0 || rpc.get(\"docCode\").trim().compareTo(\"03\") == 0 )\n\t\t\t\t\tfCOW = M.addnum(fCOW, calNum(rpc.get(\"startNo\"), rpc.get(\"lastNo\")));\n\t\t\t\telse if (rpc.get(\"docCode\").trim().compareTo(\"17\") == 0 || rpc.get(\"docCode\").trim().compareTo(\"22\") == 0 )\n\t\t\t\t\tfC17 = M.addnum(fC17, calNum(rpc.get(\"startNo\"), rpc.get(\"lastNo\"))); \t\t\t\t\t\n\t\t\t}\n\t\t}\t\n\t\tv.add(fCI); \n\t\tv.add(fCOW); \n\t\tv.add(fRI); \n\t\tv.add(fROW); \n\t\tv.add(fC17); \n\t\tv.add(fR17); \n\t\treturn v; \n\t}", "public void calCEDI(PtsReportXMLParser prxmlp, ArrayList spks,\n HashMap<String, Speaker> parts) {\n if (parts == null) {\n System.out.println(\"parts are null!!!!\");\n return;\n }\n collectInfo(parts);\n calDis(spks, parts, dris_, false); //calculate outgoing links of expressive disagreement\n genQuintileSc(prxmlp, spks, parts, false);\n calDis(spks, parts, respto_dris_, true);\n genQuintileSc(prxmlp, spks, parts, true);\n ArrayList<String> keys = new ArrayList(Arrays.asList(parts.keySet().toArray()));\n /*\n for (String key: keys) {\n System.out.println(parts.get(key).getTension().showDistributions());\n }\n * \n */\n //genQuintileSc(prxmlp, spks, parts, true); //calculate ingoing links of expressive disagreement\n //System.out.println(\"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\");\n //System.out.println(\"++++++++++++++++++++++++++++++++\\ncalculate Expressive Disagreement - CDXI quintile\");\n //System.out.println(\"percentage of disagreement:\" + ((double)total_dri_)/utts_.size());\n }", "@Override\n\tpublic void updateCpteEpargne(CompteEpargne cpt) {\n\t\t\n\t}", "public ECP getGen(){return gen;}", "public void execute(ProgramContext pc) throws ParserException {\n\t\tif (!pc.isEscribe()){\n\t\t\t//marco el field como hide, para que endform sepa que hacer con el\n\t\t\tfield.setHide(true);\n\t\t\treturn;\n\t\t}\n\t\tString res = \"\";\n\t\tString itemName = field.getItemName();\n\t\tString itemType = field.getItemType();\n\t\tint itemUi = field.getItemUi();\n\t\tString resto = field.getResto();\n\t\tString valor = pc.getDocAct().getItemValue(itemName);\n\t\tif (valor == null) valor = \"\";\n\t\t\n\t\tif (itemName.toLowerCase().startsWith(\"fecha\")){\n\t\t\tlog.debug(\"###########################################################################\");\n\t\t\tlog.debug(\"# itemName=\"+itemName+\" valor=\"+valor+\" class:\"+pc.getDocAct().getItem(itemName));\n\t\t\tlog.debug(\"###########################################################################\");\n\t\t}\n\t\t\n\t\tvalor = Arguments.scapeHTML(valor);\n\t\t\n\t\tif (((pc.getActionType()==ProgramContext.ACTION_NEW)||(pc.getActionType()==ProgramContext.ACTION_EDIT))&&(field.getItemKind()==Field.KIND_EDITABLE)){\n\t\t\t//veo si hay lista dinamica y statica y las proceso\n\t\t\tList<String> options = new ArrayList<String>();\n\t\t\tif (field.getDinamicList()!=null) options.addAll(pc.getDomSession().executeGetList(field.getDinamicList()));\n\t\t\tif (field.getTextList()!=null) {\n\t\t\t\tString[] opts = field.getTextList().split(field.getSeparator());\n\t\t\t\tfor(String opt:opts) options.add(opt);\n\t\t\t}\n\t\t\t//arreglo para poner columnas en checks y radios\n\t\t\tint col=0;\n\t\t\tint numCols = field.getNumCols();\n\t\t\tif (numCols==0) numCols=options.size();\n\n\t\t\t//veo si el valor es multivaluado y lo proceso\n\t\t\tString isep = field.getInternalSeparator();\n\t\t\tSystem.out.println(\"#### isep=\"+isep+\" valor=\"+valor);\n\t\t\tList<String> valores = new ArrayList<String>();\n\t\t\tif (isep!=null){\n\t\t\t\tString[] vals = valor.split(isep);\n\t\t\t\tfor(String val:vals) valores.add(val.trim());\n\t\t\t} else valores.add(valor);\n\t\t\t\n\t\t\tswitch(itemUi){\n\t\t\tcase Field.UI_TEXT:\n\t\t\t\tres = \"<input type=\\\"text\\\" id=\\\"\"+itemName+\"\\\" name=\\\"\" + itemName + \"\\\" \"+resto+\" value=\\\"\" + valor + \"\\\">\";\n\t\t\t\tbreak;\n\t\t\tcase Field.UI_TEXTAREA:\n\t\t\t\tres = \"<textarea id=\\\"\"+itemName+\"\\\" name=\\\"\" + itemName + \"\\\" \"+resto+\">\" + valor + \"</textarea>\";\n\t\t\t\tbreak;\n\t\t\tcase Field.UI_CHECKBOX:\n\t\t\t\tfor(String option:options){\n\t\t\t\t\t//ver caso especial donde | separa texto de valor\n\t\t\t\t\tint i1=option.indexOf(\"|\");\n\t\t\t\t\tString val = option.trim();\n\t\t\t\t\tString txt = option.trim();\n\t\t\t\t\tif (i1>0){\n\t\t\t\t\t\ttxt = option.substring(0,i1).trim();\n\t\t\t\t\t\tval = option.substring(i1+1).trim();\n\t\t\t\t\t}\n\t\t\t\t\tres += \"<input type=\\\"checkbox\\\" name=\\\"\" + itemName + \"\\\" \"+resto+\" value=\\\"\" + val + \"\\\"\";\n\t\t\t\t\t//comprobar debo marcar la opcion teniendo en cuenta los multivaluados (internalSeparator)\n\t\t\t\t\tif (valores.contains(val)) res+=\" checked=\\\"true\\\"\";\n\t\t\t\t\tres += \">\"+txt;\n\t\t\t\t\tcol++;\n\t\t\t\t\tif (col>=numCols) {\n\t\t\t\t\t\tres += \"<br>\";\n\t\t\t\t\t\tcol = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Field.UI_RADIOBUTTON:\n\t\t\t\tfor(String option:options){\n\t\t\t\t\t//ver caso especial donde | separa texto de valor\n\t\t\t\t\tint i1=option.indexOf(\"|\");\n\t\t\t\t\tString val = option.trim();\n\t\t\t\t\tString txt = option.trim();\n\t\t\t\t\tif (i1>0){\n\t\t\t\t\t\ttxt = option.substring(0,i1).trim();\n\t\t\t\t\t\tval = option.substring(i1+1).trim();\n\t\t\t\t\t}\n\t\t\t\t\tres += \"<input type=\\\"radio\\\" name=\\\"\" + itemName + \"\\\" \"+resto+\" value=\\\"\" + val + \"\\\"\";\n\t\t\t\t\t//comprobar debo marcar la opcion teniendo en cuenta los multivaluados (internalSeparator)\n\t\t\t\t\tif (valores.contains(val)) res+=\" checked=\\\"true\\\"\";\n\t\t\t\t\tres += \">\"+txt;\n\t\t\t\t\t//ajuste de columna segun el atributo numCols de field\n\t\t\t\t\tcol++;\n\t\t\t\t\tif (col>=numCols) {\n\t\t\t\t\t\tres += \"<br>\";\n\t\t\t\t\t\tcol = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Field.UI_COMBOBOX:\n\t\t\tcase Field.UI_DIALOGLIST:\n\t\t\tcase Field.UI_LISTBOX:\n\t\t\t\tres = \"<select id=\\\"\"+itemName+\"\\\" name=\\\"\" + itemName + \"\\\" \"+resto+\">\\n\";\n\t\t\t\tfor(String option:options) {\n\t\t\t\t\t//ver caso especial donde | separa texto de valor\n\t\t\t\t\tint i1=option.indexOf(\"|\");\n\t\t\t\t\tString val = option.trim();\n\t\t\t\t\tString txt = option.trim();\n\t\t\t\t\tif (i1>0){\n\t\t\t\t\t\ttxt = option.substring(0,i1).trim();\n\t\t\t\t\t\tval = option.substring(i1+1).trim();\n\t\t\t\t\t}\n\t\t\t\t\tres += \"<option value=\\\"\"+val+\"\\\"\";\n\t\t\t\t\t//comprobar debo marcar la opcion teniendo en cuenta los multivaluados (internalSeparator)\n\t\t\t\t\tif (valores.contains(val)) res+=\" selected=\\\"true\\\"\";\n\t\t\t\t\tres+=\">\"+txt+\"</option>\";\n\t\t\t\t}\n\t\t\t\tres += \"</select>\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} else res+=valor;\n\t\tpc.append(res);\n\t}", "pb4server.CureSoliderAskReq getCureSoliderAskReq();", "public JComponent showProposalSpecialForm(){ \r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n java.awt.GridBagConstraints gridBagConstraints; \r\n \r\n //Added for COEUSQA-3119- Need to implement IACUC link to Award, IP, Prop Dev, and IRB - start\r\n //Getting the data for parameters \r\n //Added for Coeus Enhancement Case #1799 - start: step 2\r\n //CoeusVector cvParameters = queryEngine.executeQuery(queryKey,CoeusParameterBean.class,CoeusVector.FILTER_ACTIVE_BEANS);\r\n for (int index=0;index<cvParameters.size();index++) {\r\n CoeusParameterBean coeusParameterBean=(CoeusParameterBean)cvParameters.elementAt(index);\r\n if(CoeusConstants.ENABLE_PROTOCOL_TO_DEV_PROPOSAL_LINK.equals(coeusParameterBean.getParameterName())){\r\n enableProtocolToDevProposalLink = Integer.parseInt(coeusParameterBean.getParameterValue());\r\n }else if(CoeusConstants.LINKED_TO_IRB_CODE.equals(coeusParameterBean.getParameterName())){\r\n linkedToIRBCode = Integer.parseInt(coeusParameterBean.getParameterValue());\r\n }else if(CoeusConstants.ENABLE_IACUC_TO_DEV_PROPOSAL_LINK.equals(coeusParameterBean.getParameterName())){\r\n enableIacucToDevProposalLink = Integer.parseInt(coeusParameterBean.getParameterValue());\r\n }else if(CoeusConstants.LINKED_TO_IACUC_CODE.equals(coeusParameterBean.getParameterName())){\r\n linkedToIACUCCode = Integer.parseInt(coeusParameterBean.getParameterValue());\r\n }\r\n }\r\n specialReviewForm.setEnableProtocolLink(enableProtocolToDevProposalLink);\r\n specialReviewForm.setEnableIacucProtocolLink(enableIacucToDevProposalLink);\r\n //Added for COEUSQA-3119- Need to implement IACUC link to Award, IP, Prop Dev, and IRB - end\r\n \r\n //specialReviewForm.btnStartProtocol.addActionListener(this);\r\n setSpecialReviewCode();\r\n\r\n\r\n\r\n\r\n //End Coeus Enhancement Case #1799 step 2\r\n \r\n //Commented for the Coeus Enhancement case:#1823 ,for making the special review as a tab page\r\n// btnOk = new javax.swing.JButton();\r\n// btnCancel = new javax.swing.JButton();\r\n// \r\n// btnOk.setMnemonic('O');\r\n// btnOk.setText(\"OK\");\r\n// btnOk.setFont(CoeusFontFactory.getLabelFont());\r\n// btnOk.setMaximumSize(new java.awt.Dimension(106, 26));\r\n// btnOk.setMinimumSize(new java.awt.Dimension(106, 26));\r\n// btnOk.setPreferredSize(new java.awt.Dimension(85, 26));\r\n// gridBagConstraints = new java.awt.GridBagConstraints();\r\n// gridBagConstraints.gridx = 0;\r\n// gridBagConstraints.gridy = 0;\r\n// gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\r\n// gridBagConstraints.insets = new java.awt.Insets(0, 0, 3, 0);\r\n// \r\n// //Disable OK if DISPLAY_MODE\r\n// boolean enabled = functionType != DISPLAY_MODE ? true : false;\r\n// btnOk.setEnabled(enabled); \r\n// \r\n// btnCancel.setMnemonic('C');\r\n// btnCancel.setText(\"Cancel\");\r\n// btnCancel.setFont(CoeusFontFactory.getLabelFont());\r\n// btnCancel.setMaximumSize(new java.awt.Dimension(106, 26));\r\n// btnCancel.setMinimumSize(new java.awt.Dimension(106, 26));\r\n// btnCancel.setPreferredSize(new java.awt.Dimension(85, 26)); \r\n// gridBagConstraints = new java.awt.GridBagConstraints();\r\n// gridBagConstraints.gridx = 0;\r\n// gridBagConstraints.gridy = 1;\r\n// gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\r\n// gridBagConstraints.insets = new java.awt.Insets(0, 0, 3, 0);\r\n// btnOk.addActionListener( new ActionListener(){\r\n// public void actionPerformed(java.awt.event.ActionEvent actionEvent) {\r\n// try{\r\n// if(isSaveRequired()){\r\n// if(specialReviewForm.validateData()){\r\n// //Get Deleted/Non deleted records from SpecialReviewForm\r\n// vecSpecialReviewData = specialReviewForm.getSpecialReviewData();\r\n// //Merge the Deleted and Non deleted records\r\n// setFormData();\r\n// vecSpecialReviewData = getFormData();\r\n// dlgParentComponent.dispose();\r\n// }\r\n// }\r\n// else\r\n// {\r\n// dlgParentComponent.dispose();\r\n// }\r\n// }catch(Exception e){\r\n// //e.printStackTrace();\r\n// CoeusOptionPane.showErrorDialog(e.getMessage());\r\n// } \r\n// }\r\n// });\r\n// btnCancel.addActionListener( new ActionListener(){\r\n// public void actionPerformed(java.awt.event.ActionEvent actionEvent) {\r\n// try{\r\n// performWindowClosing();\r\n// }catch(Exception e){\r\n// CoeusOptionPane.showErrorDialog(e.getMessage());\r\n// }\r\n// }\r\n// });\r\n \r\n// String strSponsor = \"\";\r\n// if (ProposalDetailAdminForm.SPONSOR_CODE != null)\r\n// {\r\n// strSponsor = ProposalDetailAdminForm.SPONSOR_CODE +\" : \" +ProposalDetailAdminForm.SPONSOR_DESCRIPTION;\r\n// }\r\n \r\n// specialReviewForm.setProposalDescription(proposalNumber,strSponsor); \r\n \r\n /*Commented the Coeus Enhancement case:#1823 ,for making the special review asa tab page*/\r\n// specialReviewForm.setButtonsReference(btnOk,btnCancel);\r\n \r\n JComponent cmpMain = (JComponent)specialReviewForm.showSpecialReviewForm(CoeusGuiConstants.getMDIForm());\r\n dlgParentComponent = new CoeusDlgWindow(CoeusGuiConstants.getMDIForm(), \"Special Review\", true);\r\n dlgParentComponent.getContentPane().add(cmpMain);\r\n dlgParentComponent.pack();\r\n dlgParentComponent.setResizable(false); \r\n Dimension screenSize\r\n = Toolkit.getDefaultToolkit().getScreenSize();\r\n Dimension dlgSize = dlgParentComponent.getSize(); \r\n dlgParentComponent.setLocation(screenSize.width/2 - (dlgSize.width/2),\r\n screenSize.height/2 - (dlgSize.height/2)); \r\n \r\n specialReviewForm.requestDefaultFocusForComponent();\r\n \r\n //Commented the Coeus Enhancement case:#1823 ,for making the special review asa tab page\r\n \r\n// //Added By sharath - Bug Fix hit X Btn. Save Cnfrm Clicked yes. Show Err Msg. close - START\r\n// //Fix : After Displaying Err Msg Don't Close the Dialog. Keep it in Focus.\r\n// dlgParentComponent.setDefaultCloseOperation(CoeusDlgWindow.DO_NOTHING_ON_CLOSE);\r\n// //Added By sharath - Bug Fix hit X Btn. Save Cnfrm Clicked yes. Show Err Msg. close - END\r\n// \r\n// dlgParentComponent.addEscapeKeyListener(new AbstractAction(\"escPressed\"){\r\n// public void actionPerformed(ActionEvent ae){\r\n// try{\r\n// performWindowClosing();\r\n//\r\n// }catch(Exception e){\r\n// CoeusOptionPane.showErrorDialog(e.getMessage());\r\n// }\r\n// }\r\n// });\r\n// dlgParentComponent.addWindowListener(new WindowAdapter(){\r\n// \r\n// public void windowOpened(WindowEvent we){\r\n// btnCancel.requestFocusInWindow();\r\n// btnCancel.setFocusable(true);\r\n// }\r\n// \r\n// public void windowClosing(WindowEvent we){\r\n// try{\r\n// performWindowClosing();\r\n// \r\n// }catch(Exception e){\r\n// CoeusOptionPane.showErrorDialog(e.getMessage());\r\n// }\r\n// //return;\r\n// }\r\n// });\r\n //dlgParentComponent.show();\r\n return cmpMain;\r\n }", "private void getrec() {\n\t\tcontractDetail.retrieve(stateVariable.getXwordn(), stateVariable.getXwabcd());\n\t\tnmfkpinds.setPgmInd36(! lastIO.isFound());\n\t\tnmfkpinds.setPgmInd66(isLastError());\n\t\t// BR00010 Product not found on Contract_Detail\n\t\tif (nmfkpinds.pgmInd36()) {\n\t\t\tmsgObjIdx = setMsgObj(\"OES0115\", \"XWABCD\", msgObjIdx, messages);\n\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t}\n\t\telse {\n\t\t\tif (nmfkpinds.pgmInd66()) {\n\t\t\t\tif (fileds.filests == 1218) {\n\t\t\t\t\tmsgObjIdx = setMsgObj(\"Y3U9999\", \"\", msgObjIdx, messages);\n\t\t\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tmsgObjIdx = setMsgObj(\"OEM0004\", \"\", msgObjIdx, messages);\n\t\t\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tvalidt();\n\t\t\t}\n\t\t}\n\t}", "public void obtener_proximo_cpte(){\n\t\t_Data data=(_Data) _data;\n\t\tString cb=data.getProximoPGCorrecto();\n\t\t//Pago_frame _frame=(Pago_frame) this._frame;\n\t\tframe.get_txt_idPago().setText(cb);\n\t}", "public Object consultaCpf(String cpf, String vestinfo);", "public Fenetre_resultats_plaque(float debit_m_1, float debit_m_2, float capacite_th_1, float capacite_th_2, float viscosite_1, float viscosite_2, float conductivite_th_1, float conductivite_th_2, float masse_volumique_1, float masse_volumique_2, float tempc, float tempf, float longueur, float largeur, float hauteur) {\n\n Plaques plaque1;\n Finance F1;\n\n plaque1 = new Plaques(longueur, largeur, hauteur, debit_m_1, debit_m_2, capacite_th_1, capacite_th_2, tempc, tempf, masse_volumique_1, masse_volumique_2, viscosite_1, viscosite_2, conductivite_th_1, conductivite_th_2);\n F1 = new Finance();\n\n int nbre_plaques_total_main = plaque1.calcul_nbre_plaques_total();\n double surface_plaque_main = plaque1.calcul_surface_plaques();\n\n plaque1.calcul_surface_contact();\n\n double smod_main = plaque1.calcul_smod();\n\n plaque1.calcul_coeff_convection_h();\n plaque1.calcul_rth();\n plaque1.calcul_densite_couple();\n plaque1.calcul_rcharge();\n \n double pe_main = plaque1.calcul_Pe();\n\n int nbre_modules_main = plaque1.getter_nbre_modules();\n\n double prix_modules_main = F1.calcul_prix_modules(nbre_modules_main);\n if (prix_modules_main < 0) {\n prix_modules_main = 0;\n }\n \n F1.calcul_volume_plaques(surface_plaque_main, plaque1.getter_diam_tube(), plaque1.getter_epaisseur_plaque(), nbre_plaques_total_main, plaque1.getter_inter_plaque());\n \n double prix_materiaux_main = F1.calcul_prix_matiere();\n if (prix_materiaux_main < 0) {\n prix_materiaux_main = 0;\n }\n \n double prix_total_main = prix_modules_main + prix_materiaux_main;\n\n double energie_produite_main = F1.conversion_kwh(pe_main);\n double revenu_horaire_main = F1.calcul_revenu_horaire();\n double nbre_heures_main = F1.calcul_nbre_heures();\n \n DecimalFormat df2 = new DecimalFormat(\"#.##\");\n DecimalFormat df4 = new DecimalFormat(\"#.####\");\n DecimalFormat df5 = new DecimalFormat(\"#.#####\");\n DecimalFormat df7 = new DecimalFormat(\"#.#######\");\n \n\n String entetes[] = {\"Résultat\", \"Valeur\"};\n Object donnees[][] = {\n {\"Nombre de modules\", plaque1.getter_nbre_modules()},\n {\"Surface proposée (en m²)\", df5.format(plaque1.getter_surface_contact())},\n {\"Surface utilisée par les modules (en m²)\", df5.format(smod_main)},\n {\"Débit massique chaud(en m3/h)\", debit_m_1},\n {\"Débit massique froid(en m3/h)\", debit_m_2},\n {\"Température chaude (en °C)\", tempc},\n {\"Différence de température\", plaque1.getter_diff_temperature()},\n {\"Puissance électrique générée (en W)\", df2.format(pe_main)}};\n\n DefaultTableModel modele = new DefaultTableModel(donnees, entetes) {\n @Override\n public boolean isCellEditable(int row, int col) {\n return false;\n }\n };\n\n tableau = new JTable(modele);\n\n String entetes2[] = {\"Caractéristiques\", \"Valeurs\"};\n Object donnees2[][] = {\n {\"Surface d'un module (en m²)\", plaque1.getter_surface_module()},\n {\"Longueur d'une jambe (en m)\", df4.format(plaque1.getter_longueur_jambe())},\n {\"Surface d'une jambe (en m²)\", df7.format(plaque1.getter_surface_jambe())},\n {\"Densité de couple\", df5.format(plaque1.getter_densite_couple())},\n {\"Conductivité thermique du module (en W/m/K)\", df2.format(plaque1.getter_conduct_th_module())}\n };\n\n DefaultTableModel modele2 = new DefaultTableModel(donnees2, entetes2) {\n @Override\n public boolean isCellEditable(int row, int col) {\n return false;\n }\n };\n\n Object donnees3[][] = {\n {\"Prix des modules (en €)\", df2.format(prix_modules_main)},\n {\"Prix de la matière première (en €)\", df2.format(prix_materiaux_main)},\n {\"Prix total échangeur (en €)\", df2.format(prix_total_main)},\n {\"Prix du kilowatt-heure\", F1.getter_prix_elec()},\n {\"Revenu horaire\", df2.format(revenu_horaire_main)},\n {\"Nbre d'heures pour remboursement\", df2.format(nbre_heures_main)}\n\n };\n String entetes3[] = {\"Caractéristiques\", \"Valeurs\"};\n\n DefaultTableModel modele3 = new DefaultTableModel(donnees3, entetes3) {\n @Override\n public boolean isCellEditable(int row, int col) {\n return false;\n }\n };\n\n tableau3 = new JTable(modele3);\n\n // Pour le graphique en camembert\n final JFXPanel fxPanel = new JFXPanel(); // On crée un panneau FX car on peut pas mettre des objet FX dans un JFRame\n final PieChart chart = new PieChart(); // on crée un objet de type camembert\n chart.setTitle(\"Répartition du prix de l'échangeur\"); // on change le titre de ce graph\n chart.getData().setAll(new PieChart.Data(\"Prix des modules \" + prix_modules_main + \" €\", prix_modules_main), new PieChart.Data(\"Prix du matériau \" + df2.format(prix_materiaux_main) + \" €\", prix_materiaux_main)\n ); // on implémente les différents case du camebert\n final Scene scene = new Scene(chart); // on crée une scene (FX) où l'on met le graph camembert\n fxPanel.setScene(scene);\n\n // a partir de là c'est plus le camembert\n tableau2 = new JTable(modele2);\n\n JScrollPane tableau_entete = new JScrollPane(tableau);\n JScrollPane tableau_entete2 = new JScrollPane(tableau2);\n JScrollPane tableau_entete3 = new JScrollPane(tableau3);\n\n tableau_entete.setViewportView(tableau);\n tableau_entete2.setViewportView(tableau2);\n tableau_entete3.setViewportView(tableau3);\n\n tableau_entete.setPreferredSize(new Dimension(550, 170));\n tableau_entete2.setPreferredSize(new Dimension(550, 110));\n tableau_entete3.setPreferredSize(new Dimension(550, 120));\n\n JLabel label_resultat = new JLabel(\"Resultat de la simulation\");\n JLabel label_module = new JLabel(\"Caractéristiques du module utilisé\");\n JLabel label_prix = new JLabel(\"Prix de l'échangeur\");\n \n setBounds(0, 0, 600, 950);\n setTitle(\"Résultats Technologie Plaques\");\n \n panneau = new JPanel();\n panneau.add(label_resultat);\n panneau.add(tableau_entete);\n panneau.add(label_module);\n panneau.add(tableau_entete2);\n panneau.add(label_prix);\n panneau.add(tableau_entete3);\n panneau.add(fxPanel); // on ajoute au Jframe notre panneau FX (qui contient donc UNE \"scene\" qui elle contient les object FX, ici notre camembert)\n getContentPane().add(panneau);\n \n this.setLocation(600, 0);\n this.setResizable(false);\n }", "public final int mo4456a(C1902e c1902e, C1202f c1202f) {\n AppMethodBeat.m2504i(73517);\n this.ehi = c1202f;\n try {\n long yz = C5046bo.m7588yz();\n C1196a c1196a = new C1196a();\n c1196a.fsJ = new aip();\n c1196a.fsK = new aiq();\n c1196a.uri = \"/cgi-bin/mmexptappsvr-bin/getexptconfig\";\n c1196a.fsI = 2738;\n c1196a.fsL = 0;\n c1196a.fsM = 0;\n C7472b acD = c1196a.acD();\n aip aip = (aip) acD.fsG.fsP;\n aip.Scene = this.lNQ;\n aip.woB = ((Integer) C1720g.m3536RP().mo5239Ry().get(C5127a.USERINFO_GET_EXPT_LAST_TIME_SEC_INT, Integer.valueOf(0))).intValue();\n List<C7503a> brw = C45898a.bqR().lNF.brw();\n if (brw != null && brw.size() > 0) {\n aip.woC = new LinkedList();\n for (C7503a c7503a : brw) {\n C35969zf c35969zf = new C35969zf();\n c35969zf.weA = c7503a.field_exptId;\n c35969zf.weB = c7503a.field_groupId;\n c35969zf.weC = c7503a.field_exptSeq;\n aip.woC.add(c35969zf);\n }\n C4990ab.m7417i(\"MicroMsg.NetSceneGetExpt\", \"req local exptList [%s] \", Arrays.toString(brw.toArray()));\n }\n C7060h.pYm.mo8378a(863, 0, 1, false);\n String str = \"MicroMsg.NetSceneGetExpt\";\n String str2 = \"get expt config scene[%d] lastGetSvrSec[%d] localExptList[%d] cost[%d]\";\n Object[] objArr = new Object[4];\n objArr[0] = Integer.valueOf(aip.Scene);\n objArr[1] = Integer.valueOf(aip.woB);\n objArr[2] = Integer.valueOf(aip.woC != null ? aip.woC.size() : 0);\n objArr[3] = Long.valueOf(C5046bo.m7525az(yz));\n C4990ab.m7417i(str, str2, objArr);\n int a = mo4457a(c1902e, acD, this);\n AppMethodBeat.m2505o(73517);\n return a;\n } catch (Exception e) {\n C4990ab.printErrStackTrace(\"MicroMsg.NetSceneGetExpt\", e, \"get expt error\", new Object[0]);\n AppMethodBeat.m2505o(73517);\n return -1;\n }\n }", "public static String processCajaBancoOperacion(Cuenta cn, Operacion oper, EntityManager em, \n\t\t\tMutableLocalEntityProvider<Cuenta> cuentaEP, MutableLocalEntityProvider<Operacion> operacionEP) throws Exception {\n\t\tString logCaja = \"\";\n\t\tBoolean isEfectivo = oper.getTipo().toString().equals(Tipo.EFECTIVO.toString()); \n\t\tCuenta cajaCuenta;\n\t\tif (isEfectivo) {\n\t\t\tif (cn.getCategoriaCuenta().getCajaCuenta()==null) throw new Exception(\"La categoria de esta Cuenta no tiene una cuenta de CAJA!!!\"); \n\t\t\tcajaCuenta = cuentaEP.getEntityManager().find(Cuenta.class, cn.getCategoriaCuenta().getCajaCuenta().getId(), LockModeType.PESSIMISTIC_WRITE);\n\t\t} else {\n\t\t\tif (oper.getBanco().getBancoCuenta()==null) throw new Exception(\"El banco seleccionado no tiene una cuenta!!!\\nBanco seleccionado: \" + oper.getBanco());\n\t\t\tcajaCuenta = cuentaEP.getEntityManager().find(Cuenta.class, oper.getBanco().getBancoCuenta().getId(), LockModeType.PESSIMISTIC_WRITE);\n\t\t}\n\t\tlogCaja = \" Caja antes, PEN: \" + cajaCuenta.getPen() + \" USD: \" + cajaCuenta.getUsd();\n\t\tcajaCuenta.setPen(cajaCuenta.getPen().add(oper.getPen()));\n\t\tcajaCuenta.setUsd(cajaCuenta.getUsd().add(oper.getUsd()));\n\t\tcajaCuenta = cuentaEP.updateEntity(cajaCuenta);\n\t\tlogCaja += \", CAJA ahora PEN: \" + cajaCuenta.getPen() + \", USD: \"\n\t\t\t\t+ cajaCuenta.getUsd();\t\t\t\t\t\n\t\t// NEW CODE - added operacion to caja Cuenta\n\t\tOperacion cajaOperacion = oper.giveCajaOperacion(cajaCuenta);\n\t\tObject cajaOperacionAdded = operacionEP.addEntity(cajaOperacion);\n\t\tObject newCajaOperacionId = ((Operacion)cajaOperacionAdded).getId();\n\t\trecalculateSaldos((Operacion)cajaOperacionAdded, em);\n\t\tlogCaja += \"new caja oper id: \" + newCajaOperacionId;\n\t\tlogger.info(logCaja);\n\t\treturn logCaja;\n\t}", "public static Resultado PCF(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n \n //*Definicion de variables las variables\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n \n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n ArrayList<ListaEnlazada> kspUbicados = new ArrayList<ListaEnlazada>();\n ArrayList<Integer> inicios = new ArrayList<Integer>();\n ArrayList<Integer> fines = new ArrayList<Integer>();\n ArrayList<Integer> indiceKsp = new ArrayList<Integer>();\n\n //Probamos para cada camino, si existe espectro para ubicar la damanda\n int k=0;\n\n while(k<ksp.length && ksp[k]!=null){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\n }\n //Calcular la ocupacion del espectro para cada camino k\n for(int i=0;i<capacidad;i++){\n for(Nodo n=ksp[k].getInicio();n.getSiguiente().getSiguiente()!=null;n=n.getSiguiente()){\n //System.out.println(\"v1 \"+n.getDato()+\" v2 \"+n.getSiguiente().getDato()+\" cant vertices \"+G.getCantidadDeVertices()+\" i \"+i+\" FSs \"+G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS().length);\n if(G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS()[i].getEstado()==0){\n OE[i]=0;\n break;\n }\n }\n }\n \n inicio=fin=cont=0;\n for(int i=0;i<capacidad;i++){\n if(OE[i]==1){\n inicio=i;\n for(int j=inicio;j<capacidad;j++){\n if(OE[j]==1){\n cont++;\n }\n else{\n cont=0;\n break;\n }\n //si se encontro un bloque valido, salimos de todos los bloques\n if(cont==demanda.getNroFS()){\n fin=j;\n fines.add(fin);\n inicios.add(inicio);\n demandaColocada=1;\n kspUbicados.add(ksp[k]);\n indiceKsp.add(k);\n //inicio=fin=cont=0;\n break;\n }\n }\n }\n if(demandaColocada==1){\n demandaColocada = 0;\n break;\n }\n }\n k++;\n }\n \n /*if(demandaColocada==0){\n return null; // Si no se encontro, en ningun camino un bloque contiguo de FSs, retorna null.\n }*/\n \n if (kspUbicados.isEmpty()){\n //System.out.println(\"Desubicado\");\n return null;\n }\n \n int [] cortesSlots = new int [2];\n double corte = -1;\n double Fcmt = 9999999;\n double FcmtAux = -1;\n \n int caminoElegido = -1;\n\n //controla que exista un resultado\n boolean nulo = true;\n\n ArrayList<Integer> indiceL = new ArrayList<Integer>();\n \n //contar los cortes de cada candidato\n for (int i=0; i<kspUbicados.size(); i++){\n cortesSlots = Utilitarios.nroCuts(kspUbicados.get(i), G, capacidad);\n if (cortesSlots != null){\n \n corte = (double)cortesSlots[0];\n \n indiceL = Utilitarios.buscarIndices(kspUbicados.get(i), G, capacidad);\n \n double saltos = (double)Utilitarios.calcularSaltos(kspUbicados.get(i));\n \n double slotsDemanda = demanda.getNroFS();\n \n //contar los desalineamientos\n double desalineamiento = (double)Utilitarios.contarDesalineamiento(kspUbicados.get(i), G, capacidad, cortesSlots[1]);\n \n double capacidadLibre = (double)Utilitarios.contarCapacidadLibre(kspUbicados.get(i),G,capacidad);\n \n \n \n \n // double vecinos = (double)Utilitarios.contarVecinos(kspUbicados.get(i),G,capacidad);\n \n\n \n //FcmtAux = corte + (desalineamiento/(demanda.getNroFS()*vecinos)) + (saltos *(demanda.getNroFS()/capacidadLibre)); \n \n FcmtAux = ((saltos*slotsDemanda) + corte + desalineamiento)/capacidadLibre;\n \n if (FcmtAux<Fcmt){\n Fcmt = FcmtAux;\n caminoElegido = i;\n }\n \n nulo = false;\n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n \n }\n }\n \n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n //caminoElegido = Utilitarios.contarCuts(kspUbicados, G, capacidad);\n \n if (nulo || caminoElegido==-1){\n return null;\n }\n \n Resultado r= new Resultado();\n /*r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);*/\n \n r.setCamino(indiceKsp.get(caminoElegido));\n r.setFin(fines.get(caminoElegido));\n r.setInicio(inicios.get(caminoElegido));\n return r;\n }", "public String epcString()\n {\n StringBuilder sb = new StringBuilder(epc.length * 2);\n\n for (int i = 0; i < epc.length; i++)\n {\n sb.append(String.format(\"%02X\", (epc[i] & 0xff)));\n }\n return new String(sb);\n }", "private static void cajas() {\n\t\t\n\t}", "public int getCoeficienteBernua()\n {\n return potenciaCV;\n }", "private void enviaCorreosElectronicos(){\r\n try{\r\n for(int i=0;i<arlDocGenDat.size();i++){\r\n strMsjCorEle=\"\";\r\n strMsjCorEle+=\"<HTML> La cotizacion Numero: \"+ objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_COD_COT) + \", \";\r\n strMsjCorEle+=\" del cliente: \"+objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_NOM_CLI);\r\n strMsjCorEle+=\" se ha Facturado con Numero: <b>\" + objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_NUM_FAC)+\"</b> \";\r\n strMsjCorEle+=\" </HTML> \";\r\n switch(objUti.getIntValueAt(arlDocGenDat, i,INT_ARL_COD_EMP_COT))\r\n {\r\n case 1: objCorEle.enviarCorreoMasivo(objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_COR_ELE_VEN),strTitCorEle + \" TUVAL \",strMsjCorEle ); break; \r\n case 2: objCorEle.enviarCorreoMasivo(objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_COR_ELE_VEN),strTitCorEle + \" CASTEK \",strMsjCorEle ); break;\r\n case 4: objCorEle.enviarCorreoMasivo(objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_COR_ELE_VEN),strTitCorEle + \" DIMULTI \",strMsjCorEle ); break; \r\n }\r\n }\r\n }\r\n catch (Exception Evt) {\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n } \r\n \r\n }", "@Override\n public String toString()\n {\n String aDevolver= \"\";\n aDevolver += super.toString();\n aDevolver += \"potenciaCV: \" + potenciaCV + \"\\n\";\n return aDevolver;\n }", "String getCE();", "String getCE();", "String getCE();", "String getCE();", "public void affiche() {\n\t\tSystem.out.println(\"Valeur: \" + cpt);\n\t}", "public String getCpf() {\n return cpf;\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}", "@Override\n protected String elaboraBody() {\n String text = CostBio.VUOTO;\n int numCognomi = mappaCognomi.size();\n int numVoci = Bio.count();\n int taglioVoci = Pref.getInt(CostBio.TAGLIO_NOMI_ELENCO);\n\n text += A_CAPO;\n text += \"==Cognomi==\";\n text += A_CAPO;\n text += \"Elenco dei \";\n text += LibWiki.setBold(LibNum.format(numCognomi));\n text += \" cognomi '''differenti''' utilizzati nelle \";\n text += LibWiki.setBold(LibNum.format(numVoci));\n text += \" voci biografiche con occorrenze maggiori di \";\n text += LibWiki.setBold(taglioVoci);\n text += A_CAPO;\n text += creaElenco();\n text += A_CAPO;\n\n return text;\n }", "public static void main(String[] args) throws Exception {\n GeradorParChaves gpc = new GeradorParChaves(); \r\n gpc.geraParChaves (new File (\"chave.publica\"), new File (\"chave.privada\")); \r\n \r\n //-- Cifrando a mensagem \"Hello, world!\" \r\n byte[] textoClaro = \"Hello, world!\".getBytes(\"ISO-8859-1\"); \r\n CarregadorChavePublica ccp = new CarregadorChavePublica(); \r\n PublicKey pub = ccp.carregaChavePublica (new File (\"chave.publica\")); \r\n Cifrador cf = new Cifrador(); \r\n byte[][] cifrado = cf.cifra (pub, textoClaro); \r\n //printHex (cifrado[0]); \r\n //printHex (cifrado[1]); \r\n \r\n //-- Decifrando a mensagem \r\n CarregadorChavePrivada ccpv = new CarregadorChavePrivada(); \r\n PrivateKey pvk = ccpv.carregaChavePrivada (new File (\"chave.privada\")); \r\n Decifrador dcf = new Decifrador(); \r\n byte[] decifrado = dcf.decifra (pvk, cifrado[0], cifrado[1]); \r\n System.out.println (new String (textoClaro, \"ISO-8859-1\")); \r\n }", "public static Result comp2(){\n\t\t\t\n\t\t\t//Requête pour récupèrer le nombre de viols en espagne\n\t \t //requete pour recuperer les valeurs , les dates et les pays avec filtre date et pays \n\t \t// creattion d modele \n\t\t\tModel m = ModelFactory.createDefaultModel();\n\t\t\t // j'int�gre mon modele dans un autre modele inf�r� \n\t\t\tInfModel infm = ModelFactory.createRDFSModel(m);\n\t\t\t // je lis les deus fichier .RDF et .ttl pour le sujet crime \t\t\n\t\t\tString ns = \"http://www.StatisticSquade.fr#\";\n\t\t \tinfm.setNsPrefix(\"StatisticSquade\", ns);\n\t\t \t/// name space de eurostat\n\t\t \tString nsEuro = \"http://eurostat.linked-statistics.org/data/\";\n\t\t\tinfm.setNsPrefix(\"Eurostat\", nsEuro);\n\t\t\tFileManager.get().readModel(infm, rdf_file0 );\n\t\t\tFileManager.get().readModel(infm, rdf_file1 ); \n\t\t\t\n\t\t\t//Construction dynamique des requêtes\n\t\t\t/**\n\t\t\t * Récupération des pays\n\t\t\t */\n\t\t\n\t\t\t/**\n\t\t\t * \n\t\t\t * récupétation autes\n\t\t\t */\n\t\t\tString pays = Form.form().bindFromRequest().get(\"pays\");\n\t\t\tanneeDebut = Form.form().bindFromRequest().get(\"anneeDebut\");\n\t\t\tanneeFin = Form.form().bindFromRequest().get(\"anneeFin\");\n\t\t\tString sujet1 = Form.form().bindFromRequest().get(\"sujet1\");\n\t\t\tString sujet2 = Form.form().bindFromRequest().get(\"sujet2\");\n\t\t\tString [] tabAnneeDebut = anneeDebut.split(\"-\");\n\t String anneeD = tabAnneeDebut[0];\n\t int aDebut = Integer.parseInt(anneeD);\n\t String [] tabAnneeFin = anneeFin.split(\"-\");\n\t String anneeF = tabAnneeFin[0];\n\t int aFin = Integer.parseInt(anneeF);\n\t if(aFin < aDebut){\n\t \tString anneeTemp = anneeDebut;\n\t \tanneeDebut = anneeFin;\n\t \tanneeFin = anneeTemp;\n\t }\n\n\t String rdq1 = \n\t\t \t\t\t \n\t\t\t \t\t\"PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#>\" +\n\t\t\t\t\t\"PREFIX property: <http://eurostat.linked-statistics.org/property#>\" +\n\t\t\t \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\" +\n\t\t\t\t \"PREFIX sdmx-measure: <http://purl.org/linked-data/sdmx/2009/measure#>\" +\n\t\t\t\t \"PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\" +\n\t\t\t\t \"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\" +\n\t\t\t\t \"PREFIX qb: <http://purl.org/linked-data/cube#>\" +\n\t\t\t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\" +\n\t\t\t\t \"PREFIX StatisticSquade: <http://www.StatisticSquade.fr#>\" +\n\t\t\t\t \n\t\t\t \t\t\"SELECT \" +\n\t\t\t \t\" ?Pays ?Date ?Valeur \" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/data/crim_gen.rdf>\" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/dsd/crim_gen.ttl>\" +\n\t\t\t \t\t\"WHERE {\" +\n\t\t\t \t\t\t\t\t\" ?x sdmx-dimension:timePeriod ?Date . \" +\n\t\t\t\t\t\t \t\t\" ?x sdmx-measure:obsValue ?Valeur .\" +\n\t\t\t\t\t \t\t \"?x property:geo ?y .\" +\n\t\t\t\t\t \t\t \"?y skos:prefLabel ?Pays .\" +\n\t\t\t\t\t\t \t\t \" ?x property:crim ?z . \" +\n\t\t\t\t\t\t \t \t \"?z skos:notation ?l . \" +\n\t\t\t\t\t\t \t\t \"FILTER regex( ?l ,\\\"\"+sujet1+\"\\\" ) . \" +\n\n\t\t\t\t\t\t \t\t\" FILTER ( ?Date >= \\\"\"+anneeDebut+\"\\\"^^xsd:date && ?Date <= \\\"\"+anneeFin+\"\\\"^^xsd:date ) .\" +\n\t\t\t\t\t\t \t\t\"FILTER regex (?Pays , \\\"\"+pays+\"\\\" ) . \" +\n\t\t\t \t\t\" } \"; \n\t\t \n\t\tString rdq2 = \n\t \t\t\t \n\t\t\t \t\t\"PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#>\" +\n\t\t\t\t\t\"PREFIX property: <http://eurostat.linked-statistics.org/property#>\" +\n\t\t\t \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\" +\n\t\t\t\t \"PREFIX sdmx-measure: <http://purl.org/linked-data/sdmx/2009/measure#>\" +\n\t\t\t\t \"PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\" +\n\t\t\t\t \"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\" +\n\t\t\t\t \"PREFIX qb: <http://purl.org/linked-data/cube#>\" +\n\t\t\t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\" +\n\t\t\t\t \"PREFIX StatisticSquade: <http://www.StatisticSquade.fr#>\" +\n\t\t\t\t \n\t\t\t \t\t\"SELECT \" +\n\t\t\t \t\" ?Pays ?Date ?Valeur \" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/data/crim_gen.rdf>\" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/dsd/crim_gen.ttl>\" +\n\t\t\t \t\t\"WHERE {\" +\n\t\t\t \t\t\t\t\t\" ?x sdmx-dimension:timePeriod ?Date . \" +\n\t\t\t\t\t\t \t\t\" ?x sdmx-measure:obsValue ?Valeur .\" +\n\t\t\t\t\t \t\t \"?x property:geo ?y .\" +\n\t\t\t\t\t \t\t \"?y skos:prefLabel ?Pays .\" +\n\t\t\t\t\t\t \t\t \" ?x property:crim ?z . \" +\n\t\t\t\t\t\t \t \t \"?z skos:notation ?l . \" +\n\t\t\t\t\t\t \t\t \"FILTER regex( ?l ,\\\"\"+sujet2+\"\\\" ) . \" +\n\n\t\t\t\t\t\t \t\t\" FILTER ( ?Date >= \\\"\"+anneeDebut+\"\\\"^^xsd:date && ?Date <= \\\"\"+anneeFin+\"\\\"^^xsd:date ) .\" +\n\t\t\t\t\t\t \t\t\"FILTER regex (?Pays , \\\"\"+pays+\"\\\" ) . \" +\n\t\t\t \t\t\" } \";\n\t\t\n \n //mapping entre sujets et leurs codes\n HashMap<String,String> codeToSujet = new HashMap<String,String>();\n codeToSujet.put(\"DBURG\", \"Cambriolages dans un lieu d'habitation\");\n codeToSujet.put(\"DRUGT\", \"Trafic de stupéfiants\");\n codeToSujet.put(\"HCIDE\", \"Homicides\");\n codeToSujet.put(\"VTHFT\", \"Vols de véhicules à moteur\");\n codeToSujet.put(\"VIOLT\", \"Crimes et délits violents\");\n codeToSujet.put(\"ROBBR\", \"Vols avec violences\");\n\t\t\t\n //Execution des requêtes\n /**\n * Requête 1\n */\n Query query1 = QueryFactory.create(rdq1); \n\t QueryExecution qexec1 = QueryExecutionFactory.create(query1,m);\n\t /////////\n\t ResultSet rs1 = qexec1.execSelect() ;\n\t //Transformation en List de querySolution\n\t List<QuerySolution> liste1 = ResultSetFormatter.toList(rs1);\n\t Iterator<QuerySolution> it1 = liste1.iterator();\n \n ////////// Mise des résultats dans une hashmap\n HashMap<Integer,String> map1 = new HashMap<Integer,String>(); \n ArrayList<String> donneesString1 = new ArrayList<String>();\n while(it1.hasNext()){\n \t \n \t QuerySolution elt1 = it1.next();\n String anneeElt1 = elt1.get(\"Date\").toString();\n String valeur1 = elt1.get(\"Valeur\").toString();\n String [] tabAnnee1 = anneeElt1.split(\"-\");\n String annee1 = tabAnnee1[0];\n map1.put(Integer.parseInt(annee1), valeur1);\t \n donneesString1.add(valeur1);\n }\n //Pour ordonner la HashMap en se basant sur la clé\n TreeMap<Integer, String> mapOrd1 = new TreeMap<Integer,String>(map1);\n /**\n * Requete 2\n */\n Query query2 = QueryFactory.create(rdq2); \n\t QueryExecution qexec2 = QueryExecutionFactory.create(query2,m);\n\t /////////\n\t ResultSet rs2 = qexec2.execSelect() ;\n\t //Transformation en List de querySolution\n\t List<QuerySolution> liste2 = ResultSetFormatter.toList(rs2);\n\t Iterator<QuerySolution> it2 = liste2.iterator();\n \n ////////// Mise des résultats dans une hashmap\n HashMap<Integer,String> map2 = new HashMap<Integer,String>(); \n ArrayList<String> donneesString2 = new ArrayList<String>();\n while(it2.hasNext()){\n \t \n \t QuerySolution elt2 = it2.next();\n String anneeElt2 = elt2.get(\"Date\").toString();\n String valeur2 = elt2.get(\"Valeur\").toString();\n String [] tabAnnee2 = anneeElt2.split(\"-\");\n String annee2 = tabAnnee2[0];\n map2.put(Integer.parseInt(annee2), valeur2);\t \n donneesString2.add(valeur2);\n }\n //Pour ordonner la HashMap en se basant sur la clé\n TreeMap<Integer, String> mapOrd2 = new TreeMap<Integer,String>(map2);\n \n //////////\n JsonObject title = new JsonObject();\n title.put(\"text\", \"Nombre de \"+codeToSujet.get(sujet1)+\" et de \"+codeToSujet.get(sujet2));\n \n JsonObject subtitle = new JsonObject();\n subtitle.put(\"text\", pays);\n \n JsonObject xAxis = new JsonObject();\n xAxis.put(\"type\", \"value\");\n \n JsonObject titleY = new JsonObject();\n titleY.put(\"text\", \"valeurs :\");\n JsonObject yAxis = new JsonObject();\n yAxis.put(\"title\", titleY);\n yAxis.put(\"min\", 0);\n \n JsonArray series = new JsonArray();\n \n JsonObject objSerie1 = new JsonObject();\n objSerie1.put(\"name\", codeToSujet.get(sujet1));\n JsonArray data1 = new JsonArray();\n for(Entry<Integer, String> entry1 : mapOrd1.entrySet()){\n \t \n \t JsonArray eltData1 = new JsonArray();\n eltData1.add(entry1.getKey());\n eltData1.add(Integer.parseInt(entry1.getValue()));\n data1.add(eltData1);\n \n }\n objSerie1.put(\"data\",data1);\n series.add(objSerie1);\n \n \n \n JsonObject objSerie2 = new JsonObject();\n objSerie2.put(\"name\", codeToSujet.get(sujet2));\n JsonArray data2 = new JsonArray(); \n for(Entry<Integer, String> entry2 : mapOrd2.entrySet()){\n \t \n \t JsonArray eltData2 = new JsonArray();\n eltData2.add(entry2.getKey());\n eltData2.add(Integer.parseInt(entry2.getValue()));\n data2.add(eltData2);\n }\t \n objSerie2.put(\"data\",data2); \n series.add(objSerie2);\n \n \n //Ajouter au graphe\n JsonObject graphe = new JsonObject();\n graphe.put(\"title\", title);\n graphe.put(\"subtitle\", subtitle);\n graphe.put(\"xAxis\", xAxis);\n graphe.put(\"yAxis\", yAxis);\n graphe.put(\"series\", series);\n /**\n * \n * données statistiques\n */\n \n \n StatisticsComputation myStats = new StatisticsComputation(donneesString1, donneesString2);\n double covariance = myStats.covariance();\n\t\tdouble pearsonsCorrelation = myStats.pearsonsCorrelation();\n\t\tSystem.out.println(\"Ma covariance \" + covariance);\n\t\tSystem.out.println(\"Ma correlation \" + pearsonsCorrelation);\n\t\tdouble mean = myStats.mean();\n\t\tdouble standardDeviation = myStats.standardDeviation();\n\t\tSystem.out.println(\"Ma moyenne \" + mean);\n\t\tSystem.out.println(\"Mon écart-type \" + standardDeviation);\n\n /**\n * \n * Données statistiques fin\n */\n\t\t/**\n\t\t * Ajout au graphe\n\t\t */\n\t\tGraphCreation gc = new GraphCreation(\"crim_gen\");\n\t\tgc.postGraph(sujet1+\"-\"+sujet2+\"-\"+pays, sujet1+pays, sujet2+pays, anneeDebut, anneeFin, \n\t\t\t\t Double.toString(pearsonsCorrelation), Double.toString(mean), Double.toString(standardDeviation), \n\t\t\t\t Double.toString(covariance));\n\t\tgc.save();\n\t\t\n\t\tString ip = request().remoteAddress();\n ArrayList<String> listeComments = gc.getComments(sujet1+\"-\"+sujet2+\"-\"+pays, false); \n if(listeComments !=null){\n\t\tIterator<String> it = listeComments.iterator();\n\t\tList<Comment> listeCom = new ArrayList<Comment>();\n\t\twhile(it.hasNext()){\n\t\t\tString elt = it.next();\n\t\t\tString [] tab = elt.split(\";\");\n\t\t\tString nomRecup = tab[0];\n\t\t\tString dateRecup = tab[1];\n\t\t\tString contenuRecup = tab[2];\n\t\t\tComment comment1 = new Comment(nomRecup,dateRecup,contenuRecup);\n\t\t\tlisteCom.add(comment1);\n\t\t}\n\t\tGraphe g = new Graphe(graphe.toString(),covariance,pearsonsCorrelation,mean,standardDeviation,listeCom,ip,sujet1+\"-\"+sujet2+\"-\"+pays,null);\n\t\treturn ok(comp2.render(g));\n }else{\n \tGraphe g = new Graphe(graphe.toString(),covariance,pearsonsCorrelation,mean,standardDeviation,null,ip,sujet1+\"-\"+sujet2+\"-\"+pays,null);\n \t\treturn ok(comp2.render(g));\t\n \t\n }\n\t\t \n\t\t \n\t \t\n\t \t\n\t }", "@Override\n\tpublic void teclaConfirmaDigitada() {\n\t\t\n\t}", "public Coup coupIA() {\n\n int propriete = TypeCoup.CONT.getValue();\n int bloque = Bloque.NONBLOQUE.getValue();\n Term A = intArrayToList(plateau1);\n Term B = intArrayToList(plateau2);\n Term C = intArrayToList(piecesDispos);\n Variable D = new Variable(\"D\");\n Variable E = new Variable(\"E\");\n Variable F = new Variable(\"F\");\n Variable G = new Variable(\"G\");\n Variable H = new Variable(\"H\");\n org.jpl7.Integer I = new org.jpl7.Integer(co.getValue());\n q1 = new Query(\"choixCoupEtJoue\", new Term[] {A, B, C, D, E, F, G, H, I});\n\n\n if (q1.hasSolution()) {\n Map<String, Term> solution = q1.oneSolution();\n int caseJ = solution.get(\"D\").intValue();\n int pion = solution.get(\"E\").intValue();\n Term[] plateau1 = listToTermArray(solution.get(\"F\"));\n Term[] plateau2 = listToTermArray(solution.get(\"G\"));\n Term[] piecesDispos = listToTermArray(solution.get(\"H\"));\n for (int i = 0; i < 16; i++) {\n if (i < 8) {\n this.piecesDispos[i] = piecesDispos[i].intValue();\n }\n this.plateau1[i] = plateau1[i].intValue();\n this.plateau2[i] = plateau2[i].intValue();\n }\n\n int ligne = caseJ / 4;\n int colonne = caseJ % 4;\n\n if (pion == 1 || pion == 5) {\n pion = 1;\n }\n if (pion == 2 || pion == 6) {\n pion = 0;\n }\n if (pion == 3 || pion == 7) {\n pion = 2;\n }\n if (pion == 4 || pion == 8) {\n pion = 3;\n }\n\n\n Term J = intArrayToList(this.plateau1);\n q1 = new Query(\"gagne\", new Term[] {J});\n System.out.println(q1.hasSolution() ? \"Gagné\" : \"\");\n if (q1.hasSolution()) {\n propriete = 1;\n }\n return new Coup(bloque,ligne, colonne, pion, propriete);\n }\n System.out.println(\"Bloqué\");\n return new Coup(1,0, 0, 0, 3);\n }", "@Override\n\tpublic void encender() {\n\t\tSystem.out.println(\"Encendiendo Computadora\");\n\t\t\n\t}", "public void principal() {\r\n int opciones = 0;\r\n do {\r\n opciones = op.capInt(\"CLINICA LA EVALUACIÓN\\n\\n\"\r\n + \"1. Gestionar Pacientes.\\n\"\r\n + \"2. Gestionar Médicos.\\n\"\r\n + \"3. Gestionar Historial Clínico.\\n\"\r\n + \"4. Salir\");\r\n switch (opciones) {\r\n case 1:\r\n gesPaciente();\r\n break;\r\n case 2:\r\n gesMedico();\r\n break;\r\n case 3:\r\n gesHistoria();\r\n break;\r\n case 4:\r\n op.mensaje(\"Hasta la proxima\");\r\n break;\r\n default:\r\n op.mensajeError(\"La opcione Ingresada no es valida\");\r\n break;\r\n }\r\n } while (opciones != 4);\r\n }", "@Override\n public void actionPerformed(ActionEvent evt) \n {\n Offre E2=new Offre(E.getId_etablissement(),C.getDate(),C2.getDate(),gui_Text_Field_2.getText(),gui_Text_Field_1.getText());\n OffreService service=new OffreService();\n if (E.getId_etablissement().getPartenaire()==0){\n E2.setCode(\"\");\n E2.setPourcentage(0);\n service.updateOffreSans(E, E2);\n \n }\n else {\n E2.setCode(gui_Text_Field_3.getText());\n \n E2.setPourcentage(Float.parseFloat(gui_Text_Field_4.getText()));\n service.updateOffreAvec(E, E2);\n }\n last.refreshTheme();\n last.show();\n \n }", "public void createCSProvDefault(String text,String nodeID, String user, String formID, String des, String crowdloc, ArrayList locations,String createTime, String lastTime, String timestamp) {silly times!!!! \n\t//\"createTime\":\"201503011826\",\"lastTime\":\"2015-03-01 18:07:35.735\" \"timestamp\":\"2015-03-03 12:44:40.4440\"\n\t//\n\tcreateTime=time.getDateCISnoSep(createTime+\"00\");\n\ttimestamp=timestamp.substring(0,timestamp.indexOf(\".\")-1);\n\ttimestamp=time.getDateCISTurn(timestamp);\n\tlastTime=lastTime.substring(0,lastTime.indexOf(\".\")-1);\n\tlastTime=time.getDateCISTurn(lastTime);\n\tprov = new PatternBuilder();\n\tString[] node=new String[2];\n\tnode[0]=nodeID;\n\tnode[1]=text;\n\tprov.makeGenerationPattern(node,\"EX_\"+formID, \"Prepare_CS_Task_\"+formID, cus, createTime);\n\tprov.makeGenerationPattern(\"EX_\"+formID,\"RI_\"+formID, \"Process_CS_Res_\"+formID, cus, createTime);\n\tprov.makeGoal(\"RI_\"+formID);\n\tif(nodeID!=null && !nodeID.equals(\"\")){\n\t\tprov.makeSimpleGenerationPattern(\"RI_\"+formID, \"Create_CS_RI_\"+formID, user, createTime);\n\t\tArrayList nodes=new ArrayList();\n\t\tnodes.add(nodeID);\n\t\t//prov.addNodesToGeneration(\"Create_CS_RI_\"+formID, nodes);\n\t}\n\tprov.makeCSRequPattern(\"CS_Results_\"+formID, \"Data_\"+formID, \"TASK_\"+formID, \"Process_CS_Res_\"+formID, \"Collect_CS_Res_\"+formID, timestamp, lastTime, hdc, cus);\n\tconn.UpdateModel(prov);\n\t\n}", "public static String formatarCEP(String codigo) {\r\n\r\n\t\tString retornoCEP = null;\r\n\r\n\t\tString parte1 = codigo.substring(0, 2);\r\n\t\tString parte2 = codigo.substring(2, 5);\r\n\t\tString parte3 = codigo.substring(5, 8);\r\n\r\n\t\tretornoCEP = parte1 + \".\" + parte2 + \"-\" + parte3;\r\n\r\n\t\treturn retornoCEP;\r\n\t}", "private void formMessageOnChange(YFCDocument calenderDetailXml) {\n\t\tString sProd = \"PROD\";\t\t\n\t\tYFCElement docCalenderDetail=calenderDetailXml.getDocumentElement();\n\t\tYFCDocument docGetResPoolCapcityDetails=YFCDocument.createDocument(XMLLiterals.RESOURCE_POOL);\n\t YFCElement eleResourcePool=docGetResPoolCapcityDetails.getDocumentElement();\n\t eleResourcePool.setAttribute(XMLLiterals.CAPACITYORGCODE, XMLLiterals.INDIGO_CA);\n\t eleResourcePool.setAttribute(XMLLiterals.RESOURCE_POOL_ID,docCalenderDetail.getAttribute(XMLLiterals.ORGANIZATION_CODE)+POOLID);\n\t eleResourcePool.setAttribute(XMLLiterals.PROVIDER_ORGANIZATION_CODE,XMLLiterals.INDIGO_CA);\n\t eleResourcePool.setAttribute(XMLLiterals.NODE,docCalenderDetail.getAttribute(XMLLiterals.ORGANIZATION_CODE));\n\t eleResourcePool.setAttribute(XMLLiterals.ITEM_GROUP_CODE,sProd);\n\t\tinvokeYantraService(INDG_GET_RESOURCE_POOL_CAPACITY , docGetResPoolCapcityDetails);\n\t}", "@Override\n public String getDescription() {\n return \"Digital goods feedback\";\n }", "public void saveFormData() throws edu.mit.coeus.exception.CoeusException {\r\n //Modified for COEUSDEV-413 : Subcontract Custom data bug - Data getting wiped out - Start\r\n// if( isDataChanged() ){\r\n\t\tif( isDataChanged() || getFunctionType() == NEW_ENTRY_SUBCONTRACT || getFunctionType() == NEW_SUBCONTRACT) { //COEUSDEV-413 : End\r\n Vector genericColumnValues = customElementsForm.getOtherColumnElementData();\r\n\t\t\tif( genericColumnValues != null && genericColumnValues.size() > 0 ){\r\n\t\t\t\tCustomElementsInfoBean genericCustElementsBean = null;\r\n\t\t\t\tint dataSize = genericColumnValues.size();\r\n\t\t\t\tfor( int indx = 0; indx < dataSize; indx++ ) {\r\n\t\t\t\t\tgenericCustElementsBean = (CustomElementsInfoBean)genericColumnValues.get(indx);\r\n\t\t\t\t\tSubContractCustomDataBean subContractCustomDataBean\r\n\t\t\t\t\t= new SubContractCustomDataBean(genericCustElementsBean);\r\n SubContractCustomDataBean oldSubContractCustomDataBean = (SubContractCustomDataBean)genericColumnValues.get(indx);\r\n\t\t\t\t\tif(getFunctionType() == NEW_ENTRY_SUBCONTRACT) {\r\n\t\t\t\t\t\tsubContractCustomDataBean.setAcType(\"I\");\r\n//\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(this.subContractBean.getSubContractCode());\r\n//\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(this.subContractBean.getSequenceNumber());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif( INSERT_RECORD.equals(subContractCustomDataBean.getAcType()) ) {\r\n\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(this.subContractBean.getSubContractCode());\r\n\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(this.subContractBean.getSequenceNumber());\r\n \r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif( genericCustElementsBean instanceof SubContractCustomDataBean ) {\r\n//\t\t\t\t\t\t\tSubContractCustomDataBean oldSubContractCustomDataBean =\r\n//\t\t\t\t\t\t\t(SubContractCustomDataBean)genericCustElementsBean;\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setAcType(genericCustElementsBean.getAcType());\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(oldSubContractCustomDataBean.getSubContractCode());\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(oldSubContractCustomDataBean.getSequenceNumber());\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tString custAcType = subContractCustomDataBean.getAcType();\r\n\t\t\t\t\t\tif( UPDATE_RECORD.equals(custAcType) ){\r\n//\t\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(this.subContractBean.getSubContractCode());\r\n//\t\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(this.subContractBean.getSequenceNumber());\r\n\t\t\t\t\t\t\tqueryEngine.update(queryKey, subContractCustomDataBean);\r\n\t\t\t\t\t\t}else if( INSERT_RECORD.equals(custAcType)){\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setSubContractCode(this.subContractBean.getSubContractCode());\r\n\t\t\t\t\t\t\tsubContractCustomDataBean.setSequenceNumber(this.subContractBean.getSequenceNumber());\r\n\t\t\t\t\t\t\tqueryEngine.insert(queryKey, subContractCustomDataBean);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}catch ( CoeusException ce ) {\r\n\t\t\t\t\t\tce.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcustomElementsForm.setSaveRequired(false);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tPessoa PF1 = new PessoaFisica(1,\"Michel\",\"31/03/1988\",\"15785465-01\",\"145.217.365-54\");\n\t\tPF1.AdicionaContato(\"898\",\"222\");\n\t\tPF1.AdicionaEndereco(\"avenida das gar�as\", 1110, \"padre cicero\", \"petrolina\", \"PE\", \"56326000\");\n\t\t\n\t\t// criando cliente pessoa Juridica\n\t\tPessoa PJ1 = new PessoaJuridica(2,\"Tectronic\",\"TECLTDA\",\"10-1009290/0001\");\n\t\tPJ1.AdicionaContato(\"00000\",\"11111\");\n\t\tPJ1.AdicionaEndereco(\"avenida do bambu\", 878, \"jo�oo pio 10\", \"juazeiro\", \"BA\", \"56326000\");\n\t\t\n\t\t// criando objetos produtoodutos\n\t\t/*Produto produto1 = new Produto(10, \"impressora\",35,1,100);\n\t\tProduto produto2 = new Produto(11, \"MicroSystem\",550, 2,80);\n\t\tProduto produto3 = new Produto(12, \"Faqueiro Ipanema\",75, 3,70);\n\t\tProduto produto4 = new Produto(13, \"Mangueira de Jardim\",19, 4,80);\n\t\tProduto produto5 = new Produto(14, \"Mouse multilaser\",25,5,90);*/\n \n Facade fachada = new Facade();\n fachada.incializarProdutos();\n \n\n\t\t// algumas forma de pagamento\n\t\t/*FormaPagamento Pagamento1 = new CartaoCredito(1,\"visa\",\"credito\", 3, \"Mariano Ribeiro\", \"10/10/23\", \"54212345212\",\"132\");\n\t\tFormaPagamento Pagamento2 = new CartaoCredito(2,\"mastercard\",\"debito\", 1, \"Juliana Marinalva\", \"12/09/29\", \"232356789\",\"787\");\n\t\tFormaPagamento Pagamento3 = new Boleto(3,\"19/04/2017\",\"12345678912\",\"Sanatander\");\n\t\tFormaPagamento Pagamento4 = new Boleto(4,\"20/04/2017\",\"12232344423\",\"Banco do Brasil\");\t\t*/\n \n \n\t\t//------------------------------------------------------------------------------------------------------------------------\n\t\t// criando um pedido com cliente e numero de itemens\n\t\tPedido pedido1 = new Pedido(30,PF1,3);\n\t\t\t\t\n\t\t// adicionando produtos como itens da lista de pedido\n\t\t/*ItemPedido item1 = new ItemPedido(20,produto1,3);\n\t\tItemPedido item2 = new ItemPedido(21,produto2,9);\n\t\tItemPedido item3 = new ItemPedido(22,produto3,2);\n\t\tItemPedido item4 = new ItemPedido(23,produto4,4);\n\t\tItemPedido item5 = new ItemPedido(24,produto5,1);*/\n\t\t\n\t\t// adicionando itens a lista de pedido\n\t\t/*pedido1.AdicionandoItemLista(item1,0);\n\t\tpedido1.AdicionandoItemLista(item3,1);\n\t\tpedido1.AdicionandoItemLista(item5,2);*/\n\t\t\t\t\n\t\t//forma de pagamento para o pedido 1\n\t\t//pedido1.setPagamento(Pagamento3);\n\n\t\t// Mostrar dados\n\t\tpedido1.mostrarPedido();\n\t\tSystem.out.println(\"Valor total com desconto: \" + Pedido.desconto(pedido1.getValorTotal(),(float)0.1));\n\t\tpedido1.getPagamento().realizaPagamento(true, \"16/04/17\");\n\t\t\n\t\t\n\t\t\n\t}", "@Test\n public void addNewIntrebareF01_TC1_ECP() {\n try {\n Intrebare intrebare = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"M\");\n assertTrue(true);\n assertTrue(appService.exists(intrebare));\n } catch (DuplicateIntrebareException | IntrebareValidatorFailedException e) {\n e.printStackTrace();\n assertTrue(false);\n }\n }", "public static Resultado Def_MSGD(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n \n int inicio=0, fin=0,cont; \n int demandaColocada=0;\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres 1=libre 0=ocupado\n /*for(int i=0;i<capacidad;i++){\n OE[i]=1;\n }\n */\n \n int k=0;\n while(k<ksp.length && ksp[k]!=null && demandaColocada==0){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres POR CADA CAMINO 1=libre 0=ocupado\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\n }\n\n /*Calcular la ocupacion del espectro para cada camino k*/\n for(int i=0;i<capacidad;i++){\n for(Nodo n=ksp[k].getInicio();n.getSiguiente().getSiguiente()!=null;n=n.getSiguiente()){\n if(G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS()[i].getEstado()==0){\n OE[i]=0;\n break;\n }\n }\n }\n\n inicio=fin=cont=0;\n for(int i=0;i<capacidad;i++){\n if(OE[i]==1){\n inicio=i;\n for(int j=inicio;j<capacidad;j++){\n if(OE[j]==1){\n cont++;\n }\n else{\n cont=0;\n break;\n }\n //si se encontro un bloque valido, salimos de todos los bloques\n if(cont==demanda.getNroFS()){\n fin=j;\n demandaColocada=1;\n break;\n }\n }\n }\n if(demandaColocada==1){\n break;\n }\n }\n k++;\n }\n \n if(demandaColocada==0){\n return null; // Si no se encontro, en ningun camino un bloque contiguo de FSs, retorna null.\n }\n /*Bloque contiguoo encontrado, asignamos los indices del espectro a utilizar \n * y retornamos el resultado. r fin e inicio son los indices del FS a usar\n */\n Resultado r= new Resultado();\n r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);\n return r;\n }", "Etf()\n {\n super();\n extended = 'A';\n price = 2176.33;\n number = 10;\n }", "public ConsumoViaCep() {\n initComponents();\n }", "void rozpiszKontraktyPart2EV(int index,float wolumenHandlu, float sumaKupna,float sumaSprzedazy )\n\t{\n\t\t//wektor z ostatecznie ustalona cena\n\t\t//rozpiszKontrakty() - wrzuca jako ostatnia cene cene obowiazujaa na lokalnym rynku \n\t\tArrayList<Float> priceVector = priceVectorsList.get(priceVectorsList.size()-1);\n\n\t\t\n\t\t//ograniczenia handlu prosumenta\n\t\tArrayList<DayData> constrainMarkerList = new ArrayList<DayData>();\n\t\t\n\t\t//ograniczenia handlu EV\n\t\tArrayList<DayData> constrainMarkerListEV = new ArrayList<DayData>();\n\t\t\n\t\t//print(listaFunkcjiUzytecznosci.size());\n\t\t//getInput(\"rozpiszKontraktyPart2EV first stop\");\n\t\t\n\t\tint i=0;\n\t\twhile(i<listaFunkcjiUzytecznosci.size())\n\t\t{\n\t\t\t\n\t\t\t//lista funkcji uzytecznosci o indeksie i\n\t\t\tArrayList<Point> L1\t=listaFunkcjiUzytecznosci.get(i);\n\t\t\t\n\t\t\t//point z cena = cena rynkowa\n\t\t\tPoint point = L1.get(index);\n\t\t\t\n\t\t\t\n\t\t\tDayData d =rozpiszKontraktyPointToConstrainMarker(point, wolumenHandlu, sumaKupna, sumaSprzedazy, i);\n\t\t\t\n\t\t\tif (i<Stale.liczbaProsumentow)\n\t\t\t{\n\t\t\t\tconstrainMarkerList.add(d);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tconstrainMarkerListEV.add(d);\n\t\t\t\t\n\t\t\t\t/*print(d.getKupuj());\n\t\t\t\tprint(d.getConsumption());\n\t\t\t\tprint(d.getGeneration());\n\t\t\t\t\n\t\t\t\tgetInput(\"rozpiszKontraktyPart2EV - Ostatni kontrakt\");*/\n\t\t\t}\n\n\t\t\t\n\t\t\t//print(\"rozpiszKontraktyPart2EV \"+i);\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tArrayList<Prosument> listaProsumentow =listaProsumentowWrap.getListaProsumentow();\n\n\t\t//wyywolaj pobranie ontraktu\n\t\ti=0;\n\t\twhile (i<Stale.liczbaProsumentow)\n\t\t{\n\t\t\tif (i<constrainMarkerListEV.size())\n\t\t\t{\n\t\t\t\t((ProsumentEV)listaProsumentow.get(i)).getKontrakt(priceVector,constrainMarkerList.get(i),constrainMarkerListEV.get(i));\n\t\t\t\t//print(\"constrainMarkerListEV \"+i);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlistaProsumentow.get(i).getKontrakt(priceVector,constrainMarkerList.get(i));\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t//getInput(\"rozpiszKontraktyPart2EV -end\");\n\t}", "int getCedula();", "private static byte[] getLsfileaeMessage100() throws HeaderPartException, HostMessageFormatException {\r\n Map < String, Object > map = new HashMap < String, Object >();\r\n map.put(Constants.CICS_PROGRAM_NAME_KEY, \"LSFILEAE\");\r\n map.put(Constants.CICS_LENGTH_KEY, \"79\");\r\n map.put(Constants.CICS_DATALEN_KEY, \"6\");\r\n \r\n LegStarMessage legstarMessage = new LegStarMessage();\r\n legstarMessage.setHeaderPart(new LegStarHeaderPart(map, 0));\r\n legstarMessage.addDataPart(new CommareaPart(\r\n HostData.toByteArray(LsfileaeCases.getHostBytesHexRequest100())));\r\n return legstarMessage.toByteArray();\r\n\r\n }", "public Ficha_epidemiologia_n13 obtenerFichaEpidemiologia() {\n\t\t\t\t\n\t\t\t\tFicha_epidemiologia_n13 ficha_epidemiologia_n13 = new Ficha_epidemiologia_n13();\n\t\t\t\tficha_epidemiologia_n13.setCodigo_empresa(empresa.getCodigo_empresa());\n\t\t\t\tficha_epidemiologia_n13.setCodigo_sucursal(sucursal.getCodigo_sucursal());\n\t\t\t\tficha_epidemiologia_n13.setCodigo_ficha(tbxCodigo_ficha.getValue());\n\t\t\t\tficha_epidemiologia_n13.setIdentificacion(tbxIdentificacion.getValue());\n\t\t\t\tficha_epidemiologia_n13.setFecha_creacion(new Timestamp(dtbxFecha_creacion.getValue().getTime()));\n\t\t\t\tficha_epidemiologia_n13.setCodigo_diagnostico(\"Z000\");\n\t\t\t\tficha_epidemiologia_n13.setFiebre(chbFiebre.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setMialgias(chbMialgias.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setCefalea(chbCefalea.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setArtralgias(chbArtralgias.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setVomito(chbVomito.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setNausea(chbNausea.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDolor_retrocular(chbDolor_retrocular.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setHiperemia_conjuntival(chbHiperemia_conjuntival.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setSecrecion_conjuntival(chbSecrecion_conjuntival.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDolor_pantorrillas(chbDolor_pantorrillas.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDiarrea(chbDiarrea.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDolor_abdominal(chbDolor_abdominal.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setHemoptisis(chbHemoptisis.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setMelenas(chbMelenas.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setEpistaxis(chbEpistaxis.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setErupcion(chbErupcion.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setHematuria(chbHematuria.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setTomiquete_postiva(chbTomiquete_postiva.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setEsplenomegalia(chbEsplenomegalia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setSignos_meningeos(chbSignos_meningeos.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDisnea(chbDisnea.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setTos(chbTos.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setInsuficiencia_respiratoria(chbInsuficiencia_respiratoria.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setHepatomeglia(chbHepatomeglia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setIctericia(chbIctericia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setInsuficiencia_hepatica(chbInsuficiencia_hepatica.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setInsuficiencia_renal(chbInsuficiencia_renal.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setVacuna_fiebre_amarilla(rdbVacuna_fiebre_amarilla.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDosis_fiebre_amarilla(ibxDosis_fiebre_amarilla.getValue()!=null ? ibxDosis_fiebre_amarilla.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setVacuna_hepatitis_a(rdbVacuna_hepatitis_a.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDosis_hepatitis_a(ibxDosis_hepatitis_a.getValue()!=null?ibxDosis_hepatitis_a.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setVacuna_hepatitis_b(rdbVacuna_hepatitis_b.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDosis_hepatitis_b(ibxDosis_hepatitis_b.getValue()!=null?ibxDosis_hepatitis_b.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setVacuna_leptospirosis(rdbVacuna_leptospirosis.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDosis_leptospirosis(ibxDosis_leptospirosis.getValue()!=null?ibxDosis_leptospirosis.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setPerros(chbPerros.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setGatos(chbGatos.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setBovinos(chbBovinos.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setEquinos(chbEquinos.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setPorcions(chbPorcions.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setNinguno(chbNinguno.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setOtros_animal(chbOtros_animal.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setCual_otro(tbxCual_otro.getValue());\n\t\t\t\tficha_epidemiologia_n13.setContacto_animales(rdbContacto_animales.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setRatas_domicilio(rdbRatas_domicilio.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setRatas_trabajo(rdbRatas_trabajo.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setAcueducto(chbAcueducto.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setPozo(chbPozo.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setRio(chbRio.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setTanque_almacenamiento(chbTanque_almacenamiento.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setAlcantarillas(rdbAlcantarillas.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setInundaciones(rdbInundaciones.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setContacto_aguas_estancadas(rdbContacto_aguas_estancadas.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setAntecedentes_deportivos(rdbAntecedentes_deportivos.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDisposicion_residuos(rdbDisposicion_residuos.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setTiempo_almacenamiento(rdbTiempo_almacenamiento.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setPersonas_sintomatologia(rdbPersonas_sintomatologia.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setLeucocitosis(chbLeucocitosis.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setLeucopenia(chbLeucopenia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setNeutrofilia(chbNeutrofilia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setNeutropenia(chbNeutropenia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setLinfocitocis(chbLinfocitocis.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setTrombocitosis(chbTrombocitosis.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setTrombocitopenia(chbTrombocitopenia.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setHemoconcentracion(chbHemoconcentracion.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setAlteracion_trasaminasas(chbAlteracion_trasaminasas.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setAlteracion_bilirrubinas(chbAlteracion_bilirrubinas.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setAlteracion_bun(chbAlteracion_bun.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setAlteracion_creatinina(chbAlteracion_creatinina.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setCpk_elevada(chbCpk_elevada.isChecked());\n\t\t\t\tficha_epidemiologia_n13.setDengue(rdbDengue.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setMalaria(rdbMalaria.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setHepatitis_a(rdbHepatitis_a.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setHepatitis_b(rdbHepatitis_b.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setHepatitis_c(rdbHepatitis_c.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setFiebre_amarilla(rdbFiebre_amarilla.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setTipo_muestra(rdbTipo_muestra.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setDestino_muestra(rdbDestino_muestra.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setOtra_muestra(tbxOtra_muestra.getValue());\n\t\t\t\tficha_epidemiologia_n13.setCultivo(rdbCultivo.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setHistoquimica(rdbHistoquimica.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setPcr(rdbPcr.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setElisa(rdbElisa.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setMicroaglutinacion(rdbMicroaglutinacion.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setPareadas(rdbPareadas.getSelectedItem().getValue().toString());\n\t\t\t\t\n\t\t\t\tif (dtbxFecha_muestra1.getValue() != null) {\n\t\t\t\t\tficha_epidemiologia_n13.setFecha_muestra1(new Timestamp(dtbxFecha_muestra1.getValue().getTime()));\n\t\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tficha_epidemiologia_n13.setFecha_muestra1(null);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\tif (dtbxFecha_muestra2.getValue() != null) {\n\t\t\t\t\tficha_epidemiologia_n13.setFecha_muestra2(new Timestamp(dtbxFecha_muestra2.getValue().getTime()));\n\t\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tficha_epidemiologia_n13.setFecha_muestra2(null);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tficha_epidemiologia_n13.setIdentificacion_serogrupos(rdbIdentificacion_serogrupos.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setTitulo_muestra1(tbxTitulo_muestra1.getValue());\n\t\t\t\tficha_epidemiologia_n13.setTitulo_muestra2(tbxTitulo_muestra2.getValue());\n\t\t\t\tficha_epidemiologia_n13.setTratamiento(rdbTratamiento.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n13.setCual_tratamiento(tbxCual_tratamiento.getValue());\n\t\t\t\tficha_epidemiologia_n13.setTratamiento_antibiotico(tbxTratamiento_antibiotico.getValue());\n\t\t\t\tficha_epidemiologia_n13.setDosis(ibxDosis.getValue()!=null?ibxDosis.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setTiempo(ibxTiempo.getValue()!=null?ibxTiempo.getValue() + \"\" : \"\");\n\t\t\t\tficha_epidemiologia_n13.setCodigo_medico(tbxCodigo_medico.getValue());\n\t\t\t\tficha_epidemiologia_n13.setCreacion_date(new Timestamp(new GregorianCalendar().getTimeInMillis()));\n\t\t\t\tficha_epidemiologia_n13.setUltimo_update(new Timestamp(new GregorianCalendar().getTimeInMillis()));\n\t\t\t\tficha_epidemiologia_n13.setCreacion_user(usuarios.getCodigo().toString());\n\t\t\t\tficha_epidemiologia_n13.setDelete_date(null);\n\t\t\t\tficha_epidemiologia_n13.setUltimo_user(usuarios.getCodigo().toString());\n\t\t\t\tficha_epidemiologia_n13.setDelete_user(null);\n\t\t\t\tficha_epidemiologia_n13.setOtro_serogrupo(tbxOtro_serogrupo.getValue());\n\n\t\t\t\treturn ficha_epidemiologia_n13;\n\t\t\t \n\t}", "@Override\n\t\tpublic void visitPreDecompose(OntClass c) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void visitPreDecompose(OntClass c) {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void verser(double mt, String cpte, Long codeEmp) {\n dao.addOperation(new Versement(new Date(),mt), cpte, codeEmp);\r\n Compte cp=dao.consulterCompte(cpte);\r\n cp.setSolde(cp.getSolde()+mt);\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public com.comcast.provisioning.provisioning_.dataobjects.PSDataObj getCDV(com.comcast.provisioning.provisioning_.types.SubmitProvisioningType submitProvisioningType,java.lang.String soapMsg,java.lang.String srcLob,Hashtable deliveryPlatform,XmlObject xmlObjOut)\n\t{\n\t\tlogger.info(\"Processing: VOICE Workorder..!!\");\n\t\tcom.comcast.provisioning.provisioning_.dataobjects.PSDataObj psObj=null;\n\t\tSubmitWorkOrderRequestType submitWorkOrderRequestType=null;\n\n\t\t/*try {\n\t\t\tif (submitProvisioningType != null && submitProvisioningType.getProvisioningAttributes() != null && submitProvisioningType.getProvisioningAttributes().getDwellingType() != null && submitProvisioningType.getProvisioningAttributes().getDwellingType().value() != null) {\n\t\t\t\tlogger.info(\"Dwellling type in request is not null \"+submitProvisioningType.getProvisioningAttributes().getDwellingType().value());\n\t\t\t\tif (submitProvisioningType.getProvisioningAttributes().getDwellingType().value().equals(\"TOPDOWN\")) {\n\t\t\t\t\tlogger.info(\"################### Calling CDV Service - activateCDVService ################\");\n\t\t\t\t\t//csProcessor.activateCDVService(soapMsg); NOT_REQUIRED\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e1) {\n\t\t\tlogger.warn(\"Exception in creating SubmitWorkOrderDocument..!!\"+e1.getMessage());\n\t\t\tthrow new RuntimeException(e1);\n\t\t}*/\n\n\n\t\t\tSubmitWorkOrder submitWorkOrder = marshallerUtil.convertToSubmitWorkOrder(xmlObjOut.toString());\n\n\t\tlogger.info(\"Extracting submitWorkOrderRequestType from document object..\");\n\t\tsubmitWorkOrderRequestType=submitWorkOrder.getSubmitWorkOrderRequestType();\n\t\tpsObj=cdvwoDataObj.cdvwoMapper(submitWorkOrderRequestType,submitProvisioningType,deliveryPlatform);\n\t\tcom.comcast.xml.cdvworkorder.types.SubmitWorkOrderRequestType instCDVWOReq=psObj.getSubmitWorkOrderRequestType();\n\t\tlogger.info(\"Calling CDVWO service with accountNumber=\"+instCDVWOReq.getAccountNumber()+\"..!!\");\n\t\ttry {\n\t\t\tSubmitWorkOrderResponseType CDVWORes=cdvWorkOrderServiceConnector.submitWorkOrder(instCDVWOReq);\n\t\t\tList<SubmitWorkOrderRespType> submitWorkOrderResp=CDVWORes.getSubmitWorkOrderRespType().getSubmitWorkOrderRespTypes();\n\t\t\tpsObj.setStatus(IMSConstants.PENDING);\n\t\t\tlogger.info(\"submitWorkOrderResp size\"+submitWorkOrderResp.size());\n\t\t\tlogger.info(\"psObj.isMCDV()=\"+psObj.isMCDV());\n\t\t\tif(psObj.isMCDV() && (submitWorkOrderResp.get(0).getWorkOrderStatus().equalsIgnoreCase(\"0\")))\n\t\t\t\t {\n\n\t\t\t\t\tpsObj.setCSUpdateRequired(true);\n\t\t\t\t\ttry\t{\n\t\t\t\t\t\t\tif(psObj.getTokens().size()>0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tbeanMapper.mapICRequestSync(psObj);//TO_DO_LAKSHMAIAH\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlogger.info(\"PhysicalTN size is \"+psObj.getPhysicalTN().size());\n\t\t\t\t\t\t\tif(psObj.getPhysicalTN().size()>0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//NPSDataObj npsData=new NPSDataObj();\n\t\t\t\t\t\t\t\t//npsData.callNPS(psObj.getPhysicalTN());//TO_DO_LAKSHMAIAH\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\tcatch(Exception e1)\t{\n\t\t\t\t\t\t\tlogger.error(\"Exception in parsing \"+e1.getMessage());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tpsObj.setErrorText(\"Exceptino is ::\"+e1);\n\t\t\t\t\t\t\tpsObj.setErrorcode(\"981009\");\n\t\t\t\t\t\t\tpsObj.setStatus(IMSConstants.PARTIAL_SUCCESS);\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\n\t\t\tif(instCDVWOReq.getEnumActionType()!=null)\n\t\t\t{\n\t\t\t\t \n\t\t\t\tif(beanMapper.checkReqAttributeExist(instCDVWOReq.getEnumActionType().value(), IMSConstants.CANCEL_ACTIONS))\n\t\t\t\t{\n\t\t\t\t logger.info(\"Calling CS - ProcessCSUpdate \");\n\t\t\t\t csProcessor.processCSupdatesSRO(instCDVWOReq.getEnumActionType().value(),soapMsg);\n\t\t\t\t \n\t\t\t\t}\n\t\t\t}\n\t\t}\t/*catch(com.comcast.xml.types.ExceptionType et){\n\t\t\teCustExceptionParsingcdvwo(et,psObj);\n\t\t} catch (RemoteException e) {\n\t\t\t\n\t\t\tString status=\"FAILED\";\n\t\t\tlogger.error(\"RemoteException occured\" + e.getMessage());\n\t\t\tpsObj.setErrorText(\"Exceptino is ::\"+e.getCause());\n\t\t\tpsObj.setErrorcode(\"981008\"); //network errors\n\t\t\tpsObj.setStatus(status);\n\t\t}*/\n\t\tcatch (Exception e) {\n\t\t\t\n\t\t\tString status=\"FAILED\";\n\t\t\tif(e!=null)\n\t\t\t\tlogger.error(\"Exception occured and message is \" + e.getMessage());\n\t\t\telse\n\t\t\t\tlogger.error(\"Exception occured while processing...!\");\n\t\t\tpsObj.setErrorText(\"Exceptino is ::\"+e);\n\t\t\tpsObj.setErrorcode(\"991009\"); //general errros\n\t\t\tpsObj.setStatus(status);\n\t\t}\n\t\ttry\t{\n\t\t\tcteProcessor.processCTERequest(instCDVWOReq.getEnumActionType().value(),submitWorkOrderRequestType);\n\n\t\t}\n\t\tcatch(Exception cteExcep){\n\t\t\tlogger.warn(\"Unable to update CTE DB\"+cteExcep.getMessage());\n\t\t}\n\t\tlogger.info(\"Successfully:Processed VOICE Workorder..!!\");\n\n\t\treturn psObj;\n\n\t}", "public void setCpe(String cpe) {\n this.cpe = cpe;\n }", "Integer getChnlCde();", "public ComponenteCosto getComponenteCosto()\r\n/* 68: */ {\r\n/* 69: 91 */ return this.componenteCosto;\r\n/* 70: */ }", "@Override\n\tpublic void teclaCorrigeDigitada() {\n\t\t\n\t}", "private String prepararCaducidad() {\n this.getRequestBean1().setCasoNavegacionPostCaducidad(CASO_NAV_POST_CADUCIDAD);\n return CASO_NAV_CADUCIDAD;\n }", "private void cargarFichaLepra_convivientes() {\r\n\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\tparameters.put(\"nro_identificacion\", tbxNro_identificacion.getValue());\r\n\t\tparameters.put(\"fecha_actual\", new Date());\r\n\r\n\t\t// log.info(\"parameters\" + parameters);\r\n\t\tseguimiento_control_pqtService.setLimit(\"limit 25 offset 0\");\r\n\r\n\t\t// log.info(\"parameters>>>>\" + parameters);\r\n\t\tBoolean fecha_tratamiento = seguimiento_control_pqtService\r\n\t\t\t\t.existe_fecha_fin_tratamiento(parameters);\r\n\t\t// log.info(\"fecha_tratamiento>>>>\" + fecha_tratamiento);\r\n\r\n\t\tif (fecha_tratamiento) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_CONTROL_CONVIVIENTES_LEPRA,\r\n\t\t\t\t\tIRutas_historia.LABEL_CONTROL_CONVIVIENTES_LEPRA,\r\n\t\t\t\t\tparametros);\r\n\t\t}\r\n\t}", "@Override // Métodos que fazem a anulação\n\tpublic String getCPF() {\n\t\treturn null;\n\t}", "private void remplirFabricantData() {\n\t}", "public List<ColunasMesesBody> getClientexIndustria(String periodo, String perfil, String cdVenda) {\n\t\tList<ClienteDetalhado> getCarteira = new ArrayList<>();\n\t\tgetCarteira = new PlanoDeCoberturaConsolidado().getClientesPlanCobConsolidado(perfil, cdVenda);\n\t\tSystem.err.println(getCarteira.size());\n\t\t\n\t\tList<ColunasMesesBody> planCobCliFat = new ArrayList<>();\n\t\t\n\t\tfor (ClienteDetalhado c : getCarteira) {\n\t\t\tColunasMesesBody registro = new ColunasMesesBody();\n\t\t\tregistro.setCd_cliente(c.getCd_cliente());\n\t\t\tregistro.setDesc_cliente(c.getDesc_cliente());\n\t\t\tregistro.setFantasia(c.getFantasia());\n\t\t\tregistro.setTp_Cli(c.getTp_Cli());\n\t\t\tregistro.setCgc_cpf(c.getCgc_cpf());\n\t\t\tregistro.setTelefone(c.getTelefone());\n\t\t\tregistro.setGrupoCli(c.getGrupoCli());\n\t\t\tregistro.setSegmento(c.getSegmento());\n\t\t\tregistro.setArea(c.getArea());\n\t\t\tregistro.setCep(c.getCep());\n\t\t\tregistro.setLogradouro(c.getLogradouro());\n\t\t\tregistro.setNumero(c.getNumero());\n\t\t\tregistro.setBairro(c.getBairro());\n\t\t\tregistro.setMunicipio(c.getMunicipio());\n\t\t\tregistro.setDistrito(c.getDistrito());\n\t\t\tregistro.setCdVendedor(c.getCdVendedor());\n\t\t\tregistro.setVendedor(c.getVendedor());\n\t\t\tregistro.setNomeGuerraVend(c.getNomeGuerraVend());\n\t\t\tregistro.setDescGerencia(c.getDescGerencia());\n\t\t\tregistro.setCdEquipe(c.getCdEquipe());\n\t\t\tregistro.setDescEquipe(c.getDescEquipe());\n\t\t\t\n\t\t\t\t\n\t\t\tregistro.setColuna01(\"R$ 0,00\");\n\t\t\tregistro.setColuna02(\"R$ 0,00\");\n\t\t\tregistro.setColuna03(\"R$ 0,00\");\n\t\t\tregistro.setColuna04(\"R$ 0,00\");\n\t\t\tregistro.setColuna05(\"R$ 0,00\");\n\t\t\tregistro.setColuna06(\"R$ 0,00\");\n\t\t\tregistro.setColuna07(\"R$ 0,00\");\n\t\t\tregistro.setColuna08(\"R$ 0,00\");\n\t\t\tregistro.setColuna09(\"R$ 0,00\");\n\t\t\tregistro.setColuna10(\"R$ 0,00\");\n\t\t\tregistro.setColuna11(\"R$ 0,00\");\n\t\t\tregistro.setColuna12(\"R$ 0,00\");\n\t\t\tregistro.setColuna13(\"R$ 0,00\");\n\t\t\tregistro.setColuna14(\"R$ 0,00\");\n\t\t\tregistro.setColuna15(\"R$ 0,00\");\n\n\t\t\t\n\t\t\tplanCobCliFat.add(registro);\n\t\t}\n\t\t/* CARREGANDO A LISTA DE CLIENTES*/\n\t\t\n\t\t/* TRANTANDO OS CLINTES PARA PASSAR PARA O SELECT */\n\t\t\tString inClintes = \"\";\n\t\t\tint tamanhoLista = getCarteira.size();\n\t\t\tint i = 1;\n\t\n\t\t\tfor (Cliente c : getCarteira) {\n\t\t\t\tif (i < tamanhoLista) {\n\t\t\t\t\tinClintes += c.getCd_cliente() + \", \";\n\t\t\t\t} else {\n\t\t\t\t\tinClintes += c.getCd_cliente();\n\t\t\t\t}\n\t\n\t\t\t\ti++;\n\t\t\t}\n\t\t\n\t\t/* TRANTANDO OS CLINTES PARA PASSAR PARA O SELECT */\n\t\t\n\t\tString sql = \"select * from(\\r\\n\" + \n\t\t\t\t\"SELECT\\r\\n\" + \n\t\t\t\t\" --DATEPART(mm, no.dt_emis) as MES_Emissao,\\r\\n\" + \n\t\t\t\t\" f.descricao as FABRICANTE,\\r\\n\" + \n\t\t\t\t\"\t\tno.cd_clien AS Cod_Cliente, \\r\\n\" + \n\t\t\t\t\"\t cast(SUM((itn.qtde* itn.preco_unit) ) as NUMERIC(12,2)) as Valor\\r\\n\" + \n\t\t\t\t\"\tFROM\\r\\n\" + \n\t\t\t\t\"\t\tdbo.it_nota AS itn\\r\\n\" + \n\t\t\t\t\"\t\t\tINNER JOIN dbo.nota AS no\\r\\n\" + \n\t\t\t\t\"\t\t\t\tINNER JOIN dbo.nota_tpped AS ntped\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tINNER JOIN dbo.tp_ped AS tp\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tON ntped.tp_ped = tp.tp_ped\\r\\n\" + \n\t\t\t\t\"\t\t\t\tON no.nu_nf = ntped.nu_nf\\r\\n\" + \n\t\t\t\t\"\t\t\t \\r\\n\" + \n\t\t\t\t\"\t\t\tINNER JOIN dbo.cliente AS cl \\r\\n\" + \n\t\t\t\t\"\t\t\t\tINNER JOIN dbo.ram_ativ AS rm\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tON cl.ram_ativ = rm.ram_ativ \t\t\t\t \\r\\n\" + \n\t\t\t\t\"\t\t\t\tINNER JOIN dbo.end_cli AS edc\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tON cl.cd_clien = edc.cd_clien\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tAND edc.tp_end = 'FA'\t\t\t\t\t\t\t \\r\\n\" + \n\t\t\t\t\"\t\t\t\tLEFT OUTER JOIN dbo.area AS ar \\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tON cl.cd_area = ar.cd_area\\r\\n\" + \n\t\t\t\t\"\t\t\t\tLEFT OUTER JOIN grupocli\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tON cl.cd_grupocli = grupocli.cd_grupocli\\r\\n\" + \n\t\t\t\t\"\t\t\t\tON no.cd_clien = cl.cd_clien\\r\\n\" + \n\t\t\t\t\"\t\t\t\\r\\n\" + \n\t\t\t\t\"\t\t\tINNER JOIN dbo.vendedor AS vd\\r\\n\" + \n\t\t\t\t\"\t\t\t\tINNER JOIN dbo.equipe AS eq \\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tINNER JOIN dbo.gerencia AS ge \\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tON eq.cd_gerencia = ge.cd_gerencia\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tAND eq.cd_emp = ge.cd_emp\\r\\n\" + \n\t\t\t\t\"\t\t\t\tON vd.cd_emp = eq.cd_emp \\r\\n\" + \n\t\t\t\t\"\t\t\t\tAND vd.cd_equipe = eq.cd_equipe \\r\\n\" + \n\t\t\t\t\"\\r\\n\" + \n\t\t\t\t\"\t\t\t\tINNER JOIN grp_faix gr\\r\\n\" + \n\t\t\t\t\"\t\t\t\tON vd.cd_grupo = gr.cd_grupo\\r\\n\" + \n\t\t\t\t\"\t\t\tON no.cd_vend = vd.cd_vend\t\t\t\\r\\n\" + \n\t\t\t\t\"\\r\\n\" + \n\t\t\t\t\"\t\tON itn.nu_nf = no.nu_nf \\r\\n\" + \n\t\t\t\t\"\t\t\\r\\n\" + \n\t\t\t\t\"\t\tJOIN produto p\\r\\n\" + \n\t\t\t\t\"\t\tON p.cd_prod=itn.cd_prod\\r\\n\" + \n\t\t\t\t\"\t\t\\r\\n\" + \n\t\t\t\t\"\t\tJOIN fabric f\\r\\n\" + \n\t\t\t\t\"\t\tON p.cd_fabric = f.cd_fabric\\r\\n\" + \n\t\t\t\t\"\\r\\n\" + \n\t\t\t\t\"\\r\\n\" + \n\t\t\t\t\"\\r\\n\" + \n\t\t\t\t\"WHERE \\r\\n\" + \n\t\t\t\t\"\tno.situacao IN ('AB', 'DP')\\r\\n\" + \n\t\t\t\t\"\tAND\tno.tipo_nf = 'S' \\r\\n\" + \n\t\t\t\t\"\tAND\tno.cd_emp IN (13, 20)\\r\\n\" + \n\t\t\t\t\"\tAND\tntped.tp_ped IN ('BE', 'BF', 'BS', 'TR', 'VC', 'VE', 'VP', 'VS', 'BP', 'BI', 'VB', 'SR','AS','IP','SL')\\r\\n\" + \n\t\t\t\t\"\tAND no.dt_emis BETWEEN \"+periodo+\"\t\\r\\n\" + \n\t\t\t\t\"\tand no.cd_clien IN (\"+inClintes+\")\\r\\n\" + \n\t\t\t\t\"\tAND f.descricao IN ('ONTEX GLOBAL', 'BIC','CARTA FABRIL','KIMBERLY','BARUEL','PHISALIA','SKALA', 'ALFAPARF', 'EMBELLEZE', 'BEAUTY COLOR', 'HYPERA S/A', 'STEVITA', 'PAMPAM', 'YPE', 'APOLO')\\r\\n\" + \n\t\t\t\t\"\\r\\n\" + \n\t\t\t\t\"\tGROUP BY\\r\\n\" + \n\t\t\t\t\"\t--DATEPART(dd,no.dt_emis),no.dt_emis,\\r\\n\" + \n\t\t\t\t\"\tf.descricao,\\r\\n\" + \n\t\t\t\t\"\t\\r\\n\" + \n\t\t\t\t\"\t no.cd_clien,\\r\\n\" + \n\t\t\t\t\"\tno.cd_emp,\\r\\n\" + \n\t\t\t\t\"\t no.nu_ped, \\r\\n\" + \n\t\t\t\t\"\t no.nome,\\r\\n\" + \n\t\t\t\t\"\t vd.nome_gue,\\r\\n\" + \n\t\t\t\t\"\t vd.cd_vend,\\r\\n\" + \n\t\t\t\t\"\t vd.nome,\\r\\n\" + \n\t\t\t\t\"\t vd.cd_equipe\\r\\n\" + \n\t\t\t\t\"\t \\r\\n\" + \n\t\t\t\t\") em_linha\\r\\n\" + \n\t\t\t\t\"pivot (sum(Valor) for FABRICANTE IN ([ONTEX GLOBAL], [BIC],[CARTA FABRIL],[KIMBERLY],[BARUEL],[PHISALIA],[SKALA],[ALFAPARF],[EMBELLEZE],[BEAUTY COLOR],[HYPERA S/A],[STEVITA],[PAMPAM],[YPE],[APOLO])) em_colunas\\r\\n\" + \n\t\t\t\t\"order by 1\";\t\t\n\t\t\n\t\tSystem.out.println(\"Processando Script Clientes: \" + sql);\n\t\t\n\t\ttry {\n\t\t\tPreparedStatement stmt = connectionSqlServer.prepareStatement(sql);\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\n\n\t\t\twhile (rs.next()) {\n\t\t\tString coluna;\n\n\n\t\t\t\tfor (ColunasMesesBody p:planCobCliFat ) {\n\t\t\t\t\tif(rs.getInt(\"Cod_Cliente\") == p.getCd_cliente()) {\n\t\t\t\t\t\tp.setColuna01(\"teve vendas\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tp.setColuna01(Formata.moeda(rs.getDouble(2)));\n\t\t\t\t\t\tp.setColuna02(Formata.moeda(rs.getDouble(3)));\n\t\t\t\t\t\tp.setColuna03(Formata.moeda(rs.getDouble(4)));\n\t\t\t\t\t\tp.setColuna04(Formata.moeda(rs.getDouble(5)));\n\t\t\t\t\t\tp.setColuna05(Formata.moeda(rs.getDouble(6)));\n\t\t\t\t\t\tp.setColuna06(Formata.moeda(rs.getDouble(7)));\n\t\t\t\t\t\tp.setColuna07(Formata.moeda(rs.getDouble(8)));\n\t\t\t\t\t\tp.setColuna08(Formata.moeda(rs.getDouble(9)));\n\t\t\t\t\t\tp.setColuna09(Formata.moeda(rs.getDouble(10)));\n\t\t\t\t\t\tp.setColuna10(Formata.moeda(rs.getDouble(11)));\n\t\t\t\t\t\tp.setColuna11(Formata.moeda(rs.getDouble(12)));\n\t\t\t\t\t\tp.setColuna12(Formata.moeda(rs.getDouble(13)));\n\t\t\t\t\t\tp.setColuna13(Formata.moeda(rs.getDouble(14)));\n\t\t\t\t\t\tp.setColuna14(Formata.moeda(rs.getDouble(15)));\n\t\t\t\t\t\tp.setColuna15(Formata.moeda(rs.getDouble(16)));\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\n\t\t} catch (SQLException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t\t\n\t\t\n\t\t\t\t\n\t\treturn planCobCliFat;\n\n\t\t\n\t\t\n\t}", "public com.introvd.template.sdk.model.editor.EffectInfoModel aqe() {\n /*\n r4 = this;\n java.util.List<com.introvd.template.sdk.model.editor.EffectInfoModel> r0 = r4.dcB\n int r0 = r0.size()\n if (r0 <= 0) goto L_0x0036\n java.util.List<com.introvd.template.sdk.model.editor.EffectInfoModel> r0 = r4.dcB\n int r0 = r0.size()\n int r0 = r0 + -1\n L_0x0010:\n if (r0 < 0) goto L_0x0036\n java.util.List<com.introvd.template.sdk.model.editor.EffectInfoModel> r1 = r4.dcB\n java.lang.Object r1 = r1.get(r0)\n com.introvd.template.sdk.model.editor.EffectInfoModel r1 = (com.introvd.template.sdk.model.editor.EffectInfoModel) r1\n if (r1 == 0) goto L_0x0033\n long r2 = r1.mTemplateId\n java.lang.String r2 = com.introvd.template.sdk.p391g.C8450a.m24469bn(r2)\n java.lang.String r2 = r2.toLowerCase()\n boolean r2 = com.introvd.template.editor.p266h.C6386d.m18377iL(r2)\n if (r2 != 0) goto L_0x0033\n boolean r2 = r1.isbNeedDownload()\n if (r2 != 0) goto L_0x0033\n goto L_0x0037\n L_0x0033:\n int r0 = r0 + -1\n goto L_0x0010\n L_0x0036:\n r1 = 0\n L_0x0037:\n if (r1 != 0) goto L_0x003d\n com.introvd.template.sdk.model.editor.EffectInfoModel r1 = r4.apZ()\n L_0x003d:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.introvd.template.editor.preview.fragment.p274a.C6638d.aqe():com.introvd.template.sdk.model.editor.EffectInfoModel\");\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 Ficha_epidemiologia_n3 obtenerFichaEpidemiologia() {\n\t\t\n\t\t\t\tFicha_epidemiologia_n3 ficha_epidemiologia_n3 = new Ficha_epidemiologia_n3();\n\t\t\t\tficha_epidemiologia_n3.setCodigo_empresa(empresa.getCodigo_empresa());\n\t\t\t\tficha_epidemiologia_n3.setCodigo_sucursal(sucursal.getCodigo_sucursal());\n\t\t\t\tficha_epidemiologia_n3.setCodigo(\"Z000\");\n\t\t\t\tficha_epidemiologia_n3.setCodigo_ficha(tbxCodigo_ficha\n\t\t\t\t\t\t.getValue());\n\t\t\t\tficha_epidemiologia_n3.setFecha_ficha(new Timestamp(dtbxFecha_ficha.getValue().getTime()));\n\t\t\t\tficha_epidemiologia_n3.setNro_identificacion(tbxNro_identificacion.getValue());\n\t\t\t\n\t\t\t\t//ficha_epidemiologia_n3\n\t\t\t\t\t//\t.setNro_identificacion(tbxNro_identificacion.getValue());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setConoce_y_o_ha_sido_picado_por_pito(rdbConoce_y_o_ha_sido_picado_por_pito\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setTransfuciones_sanguineas(rdbTransfuciones_sanguineas\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setSometido_transplante(rdbSometido_transplante\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setHijo_de_madre_cero_positiva(rdbHijo_de_madre_cero_positiva\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setEmbarazo_actual(rdbEmbarazo_actual\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setHa_sido_donante(rdbHa_sido_donante\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setTipo_techo(rdbTipo_techo\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setTipo_paredes(rdbTipo_paredes\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setEstrato_socio_economico(rdbEstrato_socio_economico\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setEstado_clinico(rdbEstado_clinico\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setClasificacion_de_caso(rdbClasificacion_de_caso\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setFiebre(chbFiebre.isChecked() ? \"S\"\n\t\t\t\t\t\t: \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setDolor_toracico_cronico(chbDolor_toracico_cronico\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setDisnea(chbDisnea.isChecked() ? \"S\"\n\t\t\t\t\t\t: \"N\");\n\t\t\t\tficha_epidemiologia_n3.setPalpitaciones(chbPalpitaciones\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setMialgias(chbMialgias.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setArtralgias(chbArtralgias.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setEdema_facial(chbEdema_facial\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setEdema_miembros_inferiores(chbEdema_miembros_inferiores\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setDerrame_pericardico(chbDerrame_pericardico\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setHepatoesplenomegalia(chbHepatoesplenomegalia\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setAdenopatias(chbAdenopatias\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setChagoma(chbChagoma.isChecked() ? \"S\"\n\t\t\t\t\t\t: \"N\");\n\t\t\t\tficha_epidemiologia_n3.setFalla_cardiaca(chbFalla_cardiaca\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setPalpitacion_taquicardia(chbPalpitacion_taquicardia\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setDolor_toracico_agudo(chbDolor_toracico_agudo\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setBrandicardia(chbBrandicardia\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setSincope_o_presincope(chbSincope_o_presincope\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setHipotension(chbHipotension\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setDisfagia(chbDisfagia.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setGota_gruesa_frotis_de_sangre_periferica(rdbGota_gruesa_frotis_de_sangre_periferica\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setMicrohematocrito_examen_fresco(rdbMicrohematocrito_examen_fresco\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setStrout(rdbStrout.getSelectedItem()\n\t\t\t\t\t\t.getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setElisa_igg_chagas(rdbElisa_igg_chagas\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setIfi_igg_chagas(rdbIfi_igg_chagas\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setHai_chagas(rdbHai_chagas\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setElectrocardiograma(rdbElectrocardiograma\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setEcocardiograma(rdbEcocardiograma\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setRayos_x_de_torax_indice_toracico(rdbRayos_x_de_torax_indice_toracico\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setHolter(rdbHolter.getSelectedItem()\n\t\t\t\t\t\t.getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setTratamiento_etiologico(rdbTratamiento_etiologico\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setTratamiento_sintomatico(rdbTratamiento_sintomatico\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setPosible_via_transmision(rdbPosible_via_transmision\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setRomana(chbRomana.isChecked() ? \"S\"\n\t\t\t\t\t\t: \"N\");\n\t\t\t\t\n\t\t\t\tficha_epidemiologia_n3.setCodigo_empresa(empresa\n\t\t\t\t\t\t.getCodigo_empresa());\n\t\t\t\t\n\t\t\t\tficha_epidemiologia_n3.setCodigo_sucursal(sucursal\n\t\t\t\t\t\t.getCodigo_sucursal());\n\t\t\t\t// ficha_epidemiologia_n3.setCodigo(tbxCodigo.getValue());\n\t\t\t\tficha_epidemiologia_n3.setResultado1(tbxResultado1.getValue());\n\t\t\t\tficha_epidemiologia_n3.setResultado2(tbxResultado2.getValue());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setSemanas_de_embarazo((ibxSemanas_de_embarazo\n\t\t\t\t\t\t\t\t.getValue() != null ? ibxSemanas_de_embarazo\n\t\t\t\t\t\t\t\t.getValue() : 0));\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setNumero_familiares_con_changa((ibxNumero_familiares_con_changa\n\t\t\t\t\t\t\t\t.getValue() != null ? ibxNumero_familiares_con_changa\n\t\t\t\t\t\t\t\t.getValue() : 0));\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setConstipacion_cronica(chbConstipacion_cronica\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setCreacion_date(new Timestamp(\n\t\t\t\t\t\tnew GregorianCalendar().getTimeInMillis()));\n\t\t\t\tficha_epidemiologia_n3.setUltimo_update(new Timestamp(\n\t\t\t\t\t\tnew GregorianCalendar().getTimeInMillis()));\n\t\t\t\tficha_epidemiologia_n3.setCreacion_user(usuarios.getCodigo()\n\t\t\t\t\t\t.toString());\n\t\t\t\tficha_epidemiologia_n3.setDelete_date(null);\n\t\t\t\tficha_epidemiologia_n3.setUltimo_user(usuarios.getCodigo()\n\t\t\t\t\t\t.toString());\n\t\t\t\tficha_epidemiologia_n3.setDelete_user(null);\n\t\t\t\tficha_epidemiologia_n3.setOtro_tipo_techo(tbxotro_tipo_techo.getValue());\n\n\t\t\t\t\n\t\treturn ficha_epidemiologia_n3;\n\t\t}", "private Candidatos calculaCandidatos(Etapa e) {\n if(debug) {\n System.out.println(\"**********************calculaCandidatos\");\n System.out.println(\"e.i: \" + e.i);\n }\n \n Candidatos c = new Candidatos();\n if(e.k <= this.G.numVertices()) {\n //crear un objeto candidato y rellenarlo para esta etapa \n c.i = -1; //no apuntamos a ninguna pos porque en la funcion seleccionaCandidato ya incrementamos este valor\n //buscar el primer vertize sin emparejar\n int size = this.sol.emparejamientos.length;\n \n c.fila = e.i;\n \n //añadimos los candidatos\n c.verticesSinPareja = new ArrayList<>();\n for(int k = 0; k < size; ++k) {\n if(this.sol.emparejamientos[c.fila][k] == 0) {\n if(debug) {\n System.out.print(\" candidato: \" + k+ \" \");\n }\n c.verticesSinPareja.add(k);\n }\n }\n \n }\n else {\n c.verticesSinPareja = new ArrayList<>();\n }\n return c;\n }", "public void testPublicKeyECFields() throws Exception {\r\n CVCertificateBody bodyIS = createBody(AuthorizationRoleEnum.IS);\r\n CVCertificateBody bodyCVCA = createBody(AuthorizationRoleEnum.CVCA);\r\n\r\n CVCObject cvcObjIS = CertificateParser.parseCVCObject(bodyIS.getDEREncoded());\r\n CVCObject cvcObjCVCA = CertificateParser.parseCVCObject(bodyCVCA.getDEREncoded());\r\n assertTrue(\"CVCObj not a CVCertificateBody\", cvcObjIS.getTag()==CVCTagEnum.CERTIFICATE_BODY);\r\n\r\n // IS certificate must contain only two EC public key subfields\r\n PublicKeyEC ecKey1 = (PublicKeyEC)((CVCertificateBody)cvcObjIS).getPublicKey();\r\n assertEquals(\"Number of PublicKey subfields\", 2, ecKey1.getSubfields().size());\r\n\r\n // CVCA certificate must contain all eight EC public key subfields\r\n PublicKeyEC ecKey2 = (PublicKeyEC)((CVCertificateBody)cvcObjCVCA).getPublicKey();\r\n assertEquals(\"Number of PublicKey subfields\", 8, ecKey2.getSubfields().size());\r\n\r\n\r\n // Create a request\r\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"ECDSA\", \"BC\");\r\n keyGen.initialize(256, new SecureRandom());\r\n KeyPair keyPair = keyGen.generateKeyPair();\r\n CVCertificate req = CertificateGenerator.createRequest(\r\n keyPair, \r\n \"SHA256WITHECDSA\",\r\n new HolderReferenceField(\"SE\", \"KLMNOPQ\", \"00001\")\r\n );\r\n // All EC public key subfields must be present in a CVC-request\r\n CVCPublicKey pubKey = req.getCertificateBody().getPublicKey();\r\n assertEquals(\"Number of EC subfields\", 8, pubKey.getSubfields().size());\r\n }", "@Override\r\n\tpublic void retirer(double mt, String cpte, Long codeEmp) {\n\t dao.addOperation(new Retrait(new Date(),mt), cpte, codeEmp);\r\n\t Compte cp=dao.consulterCompte(cpte);\r\n\t cp.setSolde(cp.getSolde()-mt);\r\n\r\n\t}", "protected void actionPerformedCmbProveedor(ActionEvent e) {\n\t}", "@Override\r\n\tpublic void emettreOffre() {\n\t\t\r\n\t}", "@Override\n\tpublic void pausaParaComer() {\n\n\t}", "java.lang.String getPkpfe1000();", "public void mo1403c() {\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}", "private void grabarIndividuoPCO(final ProyectoCarreraOferta proyectoCarreraOferta) {\r\n /**\r\n * PERIODO ACADEMICO ONTOLOGÍA\r\n */\r\n OfertaAcademica ofertaAcademica = ofertaAcademicaService.find(proyectoCarreraOferta.getOfertaAcademicaId());\r\n PeriodoAcademico periodoAcademico = ofertaAcademica.getPeriodoAcademicoId();\r\n PeriodoAcademicoOntDTO periodoAcademicoOntDTO = new PeriodoAcademicoOntDTO(periodoAcademico.getId(), \"S/N\",\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaInicio(), \"yyyy-MM-dd\"),\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaFin(), \"yyyy-MM-dd\"));\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().write(periodoAcademicoOntDTO);\r\n /**\r\n * OFERTA ACADEMICA ONTOLOGÍA\r\n */\r\n OfertaAcademicaOntDTO ofertaAcademicaOntDTO = new OfertaAcademicaOntDTO(ofertaAcademica.getId(), ofertaAcademica.getNombre(),\r\n cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaInicio(),\r\n \"yyyy-MM-dd\"), cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaFin(), \"yyyy-MM-dd\"),\r\n periodoAcademicoOntDTO);\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().write(ofertaAcademicaOntDTO);\r\n\r\n /**\r\n * NIVEL ACADEMICO ONTOLOGIA\r\n */\r\n Carrera carrera = carreraService.find(proyectoCarreraOferta.getCarreraId());\r\n Nivel nivel = carrera.getNivelId();\r\n NivelAcademicoOntDTO nivelAcademicoOntDTO = new NivelAcademicoOntDTO(nivel.getId(), nivel.getNombre(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"nivel_academico\"));\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().write(nivelAcademicoOntDTO);\r\n /**\r\n * AREA ACADEMICA ONTOLOGIA\r\n */\r\n AreaAcademicaOntDTO areaAcademicaOntDTO = new AreaAcademicaOntDTO(carrera.getAreaId().getId(), \"UNIVERSIDAD NACIONAL DE LOJA\",\r\n carrera.getAreaId().getNombre(), carrera.getAreaId().getSigla(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"area_academica\"));\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().write(areaAcademicaOntDTO);\r\n /**\r\n * CARRERA ONTOLOGÍA\r\n */\r\n CarreraOntDTO carreraOntDTO = new CarreraOntDTO(carrera.getId(), carrera.getNombre(), carrera.getSigla(), nivelAcademicoOntDTO,\r\n areaAcademicaOntDTO);\r\n cabeceraController.getOntologyService().getCarreraOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getCarreraOntService().write(carreraOntDTO);\r\n /**\r\n * PROYECTO CARRERA OFERTA ONTOLOGY\r\n */\r\n \r\n ProyectoCarreraOfertaOntDTO proyectoCarreraOfertaOntDTO = new ProyectoCarreraOfertaOntDTO(proyectoCarreraOferta.getId(),\r\n ofertaAcademicaOntDTO, sessionProyecto.getProyectoOntDTO(), carreraOntDTO);\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().write(proyectoCarreraOfertaOntDTO);\r\n }", "public void cargarSecuencia(FacturaProveedorSRI facturaProveedorSRI, PuntoDeVenta puntoDeVenta)\r\n/* 277: */ throws ExcepcionAS2\r\n/* 278: */ {\r\n/* 279:280 */ AutorizacionDocumentoSRI autorizacionDocumentoSRI = null;\r\n/* 280:283 */ if (puntoDeVenta != null) {\r\n/* 281:284 */ autorizacionDocumentoSRI = this.servicioDocumento.cargarDocumentoConAutorizacion(getFacturaProveedorSRI().getDocumento(), puntoDeVenta, facturaProveedorSRI\r\n/* 282:285 */ .getFechaEmisionRetencion());\r\n/* 283: */ }\r\n/* 284:287 */ if ((Integer.parseInt(facturaProveedorSRI.getNumeroRetencion()) == 0) || (\r\n/* 285:288 */ (facturaProveedorSRI.getDocumento() != null) && (facturaProveedorSRI.getDocumento().isIndicadorDocumentoElectronico()) && \r\n/* 286:289 */ (!facturaProveedorSRI.isTraCorregirDatos())))\r\n/* 287: */ {\r\n/* 288:290 */ String numero = this.servicioSecuencia.obtenerSecuencia(getFacturaProveedorSRI().getDocumento().getSecuencia(), facturaProveedorSRI\r\n/* 289:291 */ .getFechaEmisionRetencion());\r\n/* 290: */ \r\n/* 291:293 */ facturaProveedorSRI.setNumeroRetencion(numero);\r\n/* 292:294 */ facturaProveedorSRI.setAutorizacionRetencion(autorizacionDocumentoSRI.getAutorizacion());\r\n/* 293: */ }\r\n/* 294: */ }", "public String asignarCECartaAdhesion() throws JDBCException, Exception{\n\t\tString ext = \"\", nombreArchivo=\"\";\n\t\ttry{\n\t\t\t//Recupera los datos de la solicitud de inscripcion\n\t\t\tList<SolicitudInscripcion> lstSI = iDAO.consultaSolicitudInscripcion(0, \"\", idSI);\n\t\t\tSolicitudInscripcion solIns = lstSI.get(0);\n\t\t\tfolioCartaAdhesion = solIns.getFolioCartaAdhesion();\n\t\t\t//Recupera ruta documentos de programa\n\t\t\tprograma = cDAO.consultaPrograma(solIns.getIdPrograma()).get(0);\n\t\t\tidCriterioPago = programa.getCriterioPago();\n\t\t\tString rutaSolicitud = programa.getRutaDocumentos()+\"solicitudes/\"+solIns.getIdSI()+\"/\";\n\t\t\t//Guarda el archivo de la carta de adhesion\n\t\t\tif(docCartaAFileName !=null && docCartaAFileName !=\"\"){\n\t\t\t\text = docCartaAFileName.toLowerCase().substring(docCartaAFileName.lastIndexOf(\".\") );\n\t\t\t\tnombreArchivo = \"CA\"+new java.text.SimpleDateFormat(\"yyyyMMddHHmm\").format(new Date() )+ext;\n\t\t\t\tsolIns.setNomArchivoCA(nombreArchivo);\n\t\t\t\tUtilerias.cargarArchivo(rutaSolicitud, nombreArchivo, docCartaA);\n\t\t\t\tsolIns.setFechaFirmaCa(fechaFirmaCA);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\t//Guarda el archivo de legibilidad\n\t\t\tif(docOLFileName!=null && docOLFileName != \"\"){\n\t\t\t\text = docOLFileName.toLowerCase().substring(docOLFileName.lastIndexOf(\".\") );\n\t\t\t\tnombreArchivo = \"OL\"+new java.text.SimpleDateFormat(\"yyyyMMddHHmm\").format(new Date() )+ext;\n\t\t\t\tsolIns.setNomArchivoLeg(nombreArchivo);\n\t\t\t\tsolIns.setFechaDocLeg(fechaDocLeg);\n\t\t\t\tsolIns.setFechaAcuseLeg(fechaAcuseLeg);\n\t\t\t\tsolIns.setNoOficioLeg(noOficioLeg);\n\t\t\t\tsolIns.setEstatus(4);\n\t\t\t\tUtilerias.cargarArchivo(rutaSolicitud, nombreArchivo, docOL);\n\t\t\t}\n\t\t\t\n\t\t\tif(registrar == 0){\n\t\t\t\t//Guardar la carta de adhesion en la tabla correspondiente\n\t\t\t\tCartaAdhesion ca = new CartaAdhesion();\n\t\t\t\tca.setFolioCartaAdhesion(solIns.getFolioCartaAdhesion());\n\t\t\t\tca.setIdSI(idSI.intValue());\n\t\t\t\tca.setIdPrograma(solIns.getIdPrograma());\n\t\t\t\tca.setIdComprador(solIns.getIdComprador());\n\t\t\t\tca.setEstatus(1);\t\n\t\t\t\t//Guardar carta adhesion\n\t\t\t\tcDAO.guardaObjeto(ca);\n\t\t\t\t//Guarda Asignacion cuotas carta adhesion\n\t\t\t\tfor(int i=0; i< capEstado.length; i++){\n\t\t\t\t\tAsignacionCartasAdhesion aca = new AsignacionCartasAdhesion();\n\t\t\t\t\taca.setIdCultivo(capCultivo[i]);\n\t\t\t\t\taca.setIdVariedad(capVariedad[i]);\n\t\t\t\t\taca.setIdEstado(capEstado[i]);\n\t\t\t\t\taca.setFolioCartaAdhesion(folioCartaAdhesion);\n\t\t\t\t\tDetalleAsignacionCartasAdhesion daca = new DetalleAsignacionCartasAdhesion();\n\t\t\t\t\tdaca.setIdCultivo(capCultivo[i]);\n\t\t\t\t\tdaca.setIdVariedad(capVariedad[i]);\n\t\t\t\t\tdaca.setIdEstado(capEstado[i]);\t\t\t\t\t\n\t\t\t\t\tdaca.setFolioCartaAdhesion(folioCartaAdhesion);\n\t\t\t\t\tif(idCriterioPago == 1 || idCriterioPago == 3){\n\t\t\t\t\t\taca.setVolumen(capVolumen[i]);\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tdaca.setVolumen(capVolumen[i]);\t\t\t\t\t\t\t\t\n\t\t\t\t\t}else if(idCriterioPago == 2){\n\t\t\t\t\t\taca.setImporte(capImporte[i]);\t\t\t\t\t\n\t\t\t\t\t\tdaca.setImporte(capImporte[i]);\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tdaca.setTipo(1);//Normal\n\t\t\t\t\tcDAO.guardaObjeto(aca);\n\t\t\t\t\tcDAO.guardaObjeto(daca);\t\t\t\t\t\n\t\t\t\t}\t\t\t\n\t\t\t\t//Guardar la carta adhesion en tabla de programa_comprador\n\t\t\t\tProgramaComprador pc = new ProgramaComprador();\n\t\t\t\tpc.setIdPrograma(solIns.getIdPrograma());\n\t\t\t\tpc.setIdComprador(solIns.getIdComprador());\n\t\t\t\tpc.setNoCarta(solIns.getFolioCartaAdhesion());\n\t\t\t\tcDAO.guardaObjeto(pc);\t\t\n\t\t\t}\n\t\t\tSystem.out.println(\"complementoPorampliacionChk \"+complementoPorampliacionChk);\n\t\t\t//Guarda Complemento de la CARTA ADHESION\n\t\t\tif(complementoPorampliacionChk){\n\t\t\t\t//GUARDA LOS DATOS DE FECHA Y ARCHIVO DEL COMPLEMENTO DE LA CARTA ADHESION\n\t\t\t\tsolIns.setFechaFirmaCAComplemento(fechaFirmaCAComplemento);\n\t\t\t\t//Carga archivo del complemento de la carta de adhesion\n\t\t\t\text = docAmpliacionCAFileName.toLowerCase().substring(docAmpliacionCAFileName.lastIndexOf(\".\") );\n\t\t\t\tnombreArchivo = \"CCA\"+new java.text.SimpleDateFormat(\"yyyyMMddHHmm\").format(new Date() )+ext;\n\t\t\t\tsolIns.setNomArchivoCACom(nombreArchivo);\n\t\t\t\tUtilerias.cargarArchivo(rutaSolicitud, nombreArchivo, docAmpliacionCA);\n\t\t\t\tfor(int i=0; i< capEstado.length; i++){\n\t\t\t\t\t//Recupera el registro de la asignacion de la carta de adhesion\n\t\t\t\t\tList<AsignacionCartasAdhesion> lstAca = iDAO.consultaAsignacionCartasAdhesion(capEstado[i], capCultivo[i], capVariedad[i], folioCartaAdhesion);\n\t\t\t\t\t//Verifica si el incremento es un mismo EDO, CULTIVO y VARIEDAD\n\t\t\t\t\tif(lstAca.size()>0){\n\t\t\t\t\t\tAsignacionCartasAdhesion aca = lstAca.get(0);\n\t\t\t\t\t\tif(idCriterioPago == 1 || idCriterioPago == 3){\n\t\t\t\t\t\t\taca.setVolumen(capVolumen[i]+aca.getVolumen());\n\t\t\t\t\t\t}else if(idCriterioPago==2){\n\t\t\t\t\t\t\taca.setImporte(capImporte[i]+aca.getImporte());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Actualiza volumen o importe del registro\n\t\t\t\t\t\tcDAO.guardaObjeto(aca);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//Insertar registro en AsignacionCartasAdhesion\n\t\t\t\t\t\tAsignacionCartasAdhesion aca = new AsignacionCartasAdhesion();\n\t\t\t\t\t\taca.setFolioCartaAdhesion(folioCartaAdhesion);\n\t\t\t\t\t\taca.setIdEstado(capEstado[i]);\n\t\t\t\t\t\taca.setIdCultivo(capCultivo[i]);\n\t\t\t\t\t\taca.setIdVariedad(capVariedad[i]);\n\t\t\t\t\t\tif(idCriterioPago == 1 || idCriterioPago == 3){\n\t\t\t\t\t\t\taca.setVolumen(capVolumen[i]);\n\t\t\t\t\t\t}else if(idCriterioPago==2){\t\t\t\t\t\t\n\t\t\t\t\t\t\taca.setImporte(capImporte[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcDAO.guardaObjeto(aca);\n\t\t\t\t\t}\n\t\t\t\t\tDetalleAsignacionCartasAdhesion daca = new DetalleAsignacionCartasAdhesion();\n\t\t\t\t\tdaca.setFolioCartaAdhesion(folioCartaAdhesion);\n\t\t\t\t\tdaca.setIdEstado(capEstado[i]);\n\t\t\t\t\tdaca.setIdCultivo(capCultivo[i]);\n\t\t\t\t\tdaca.setIdVariedad(capVariedad[i]);\n\t\t\t\t\tdaca.setTipo(2); //Complemento\n\t\t\t\t\tif(idCriterioPago == 1 || idCriterioPago == 3){\n\t\t\t\t\t\tdaca.setVolumen(capVolumen[i]);\n\t\t\t\t\t}else if(idCriterioPago==2){\t\t\t\t\t\t\n\t\t\t\t\t\tdaca.setImporte(capImporte[i]);\n\t\t\t\t\t}\n\t\t\t\t\t//Inserta nuevo registro en la tabla de DetalleAsignacionCartasAdhesion\n\t\t\t\t\tcDAO.guardaObjeto(daca);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(registrar==3 || complementoPorampliacionChk){\n\t\t\t\tcDAO.guardaObjeto(solIns);\n\t\t\t\tcomplementoPorampliacionChk = false;\n\t\t\t}else{\n\t\t\t\tregistrar = 2; //para solo consulta en el jsp\n\t\t\t}\t\t\n\t\t\trecuperaCuotasInicEsquema();\t\n\t\t\tmsjOk = \"Se guardó satisfactoriamente el registro\";\n\t\t\t\n\t\t}catch(JDBCException e){\n\t\t\te.printStackTrace();\n\t\t\tregistrar=1;\n\t\t\trecuperaCuotasInicEsquema();\t\n\t\t\tAppLogger.error(\"errores\",\"Ocurrio un error al guardar la asignacion de carta de adhesion debido a:\"+e.getCause());\n\t\t\taddActionError(\"Ocurrio un error inesperado, favor de reportar al administrador\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tregistrar=1;\n\t\t\trecuperaCuotasInicEsquema();\t\n\t\t\tAppLogger.error(\"errores\",\"Ocurrio un error al guardar la asignacion de carta de adhesion debido a:\"+e.getCause());\n\t\t\taddActionError(\"Ocurrio un error inesperado, favor de reportar al administrador\");\n\t\t}\n\t\t\n\t\treturn SUCCESS;\n\t}", "@Override\n protected void getExras() {\n }", "@Test\n\tpublic void usuarioSobreLaLineaDeBordeDeCoberturaDelCGP(){\n\t\tPOI cgp = new CGP(\"cgp\", posicionUno, direccion, vertices);\n\t\tAssert.assertTrue(cgp.estaCercaDe(posicionUsuario));\n\t}", "public void recuperarFacturasCliente(){\n String NIF = datosFactura.recuperarFacturaClienteNIF();\n ArrayList<Factura> facturas = almacen.getFacturas(NIF);\n if(facturas != null){\n for(Factura factura : facturas) {\n System.out.println(\"\\n\");\n System.out.print(factura.toString());\n }\n }\n System.out.println(\"\\n\");\n }", "private IOferta buildOfertaEjemplo7() {\n\t\tPredicate<Compra> condicion = Predicates.alwaysTrue();\n\t\tFunction<Compra, Float> descuento = new DescuentoEnSegundoProducto(\"11-111-1111\", \"11-111-1112\", 50);\n\t\treturn new OfertaDinero(\"50% en Sprite, comprando 1 Coca\", condicion,\tdescuento);\n\t}", "public double getCEMENTAmount();", "public ControladorCombate(int tipo_simulacion,\r\n Entrenador entrenador1, Entrenador entrenador2, ControladorPrincipal cp){\r\n this.esLider = false;\r\n this.controlador_principal = cp;\r\n this.tipo_simulacion = tipo_simulacion;\r\n this.combate = new Combate();\r\n this.equipo1 = entrenador1.getPokemones();\r\n this.equipo2 = entrenador2.getPokemones();\r\n this.entrenador1 = entrenador1;\r\n this.entrenador2 = entrenador2;\r\n this.vc = new VistaCombate();\r\n this.va = new VistaAtaque();\r\n this.ve = new VistaEquipo();\r\n this.creg = new ControladorRegistros();\r\n String[] nombres1 = new String[6];\r\n String[] nombres2 = new String[6];\r\n for (int i = 0; i < 6; i++) {\r\n nombres1[i]=equipo1[i].getPseudonimo();\r\n nombres2[i]=equipo2[i].getPseudonimo(); \r\n }\r\n this.vpc = new VistaPreviaCombate(tipo_simulacion, entrenador1.getNombre(), entrenador2.getNombre());\r\n this.vpc.agregarListener(this);\r\n this.vpc.setjC_Equipo1(nombres1);\r\n this.vpc.setjC_Equipo2(nombres2);\r\n this.vpc.setVisible(true);\r\n this.termino = false;\r\n resetearEntrenadores();\r\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: */ }", "java.lang.String getField1408();", "private IOferta buildOfertaEjemplo3() {\n\t\tPredicate<Compra> condicion = Predicates.compose(\n\t\t\t\tnew PredicadoDiaSemana(Calendar.SATURDAY),\n\t\t\t\tnew ExtraerFechaCreacion());\n\t\tFunction<Compra, Float> descuento = new DescuentoFijo<>(10.0f);\n\t\treturn new OfertaDinero(\"10$ descuento sabados\", condicion,\n\t\t\t\tdescuento);\n\t}", "public String accionemergencia(){\n\t\tString resp=\"\";\n\t\tif(puntosvida<=5 && acc!=1){\n\t\t\tpuntosvida=puntosvida+15;\n\t\t\tresp=\"\\nAccion de emergencia \"+ tipo +\"activada vida +15\";\n\t\t\tacc=1;\n\t\t}\n\t\treturn resp;\n\t}", "public long getCpf() {\n return this.CPF;\n }", "public void creaAddebitiGiornalieri(AddebitoFissoPannello pannello,\n int codConto,\n Date dataInizio,\n Date dataFine) {\n /* variabili e costanti locali di lavoro */\n boolean continua = true;\n Modulo modAddFisso;\n ArrayList<CampoValore> campiFissi;\n Campo campoQuery;\n CampoValore campoVal;\n ArrayList<WrapListino> lista;\n ArrayList<AddebitoFissoPannello.Riga> righeDialogo = null;\n int quantita;\n\n try { // prova ad eseguire il codice\n\n modAddFisso = this.getModulo();\n campiFissi = new ArrayList<CampoValore>();\n\n /* recupera dal dialogo il valore obbligatorio del conto */\n if (continua) {\n campoQuery = modAddFisso.getCampo(Addebito.Cam.conto.get());\n campoVal = new CampoValore(campoQuery, codConto);\n campiFissi.add(campoVal);\n }// fine del blocco if\n\n /* recupera dal dialogo il pacchetto di righe selezionate */\n if (continua) {\n righeDialogo = pannello.getRigheSelezionate();\n }// fine del blocco if\n\n /* crea il pacchetto delle righe di addebito fisso da creare */\n if (continua) {\n\n /* traverso tutta la collezione delle righe selezionate nel pannello */\n for (AddebitoFissoPannello.Riga riga : righeDialogo) {\n lista = ListinoModulo.getPrezzi(riga.getCodListino(),\n dataInizio,\n dataFine,\n true,\n false);\n quantita = riga.getQuantita();\n for (WrapListino wrapper : lista) {\n this.creaAddebitoFisso(codConto, dataInizio, wrapper, quantita);\n }\n } // fine del ciclo for-each\n }// fine del blocco if\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public ClientePF(String nome, String fone, Endereco endereco, String cpf)\n\t{\n\t\tsuper(nome, fone, endereco);\n\t\tthis.cpf = cpf;\n }", "public void gerarCupom(String cliente, String vendedor,List<Produto> produtos, float totalVenda ) throws IOException {\r\n \r\n File arquivo = new File(\"cupomFiscal.txt\");\r\n String produto =\" \"; \r\n if(arquivo.exists()){\r\n System.out.println(\"Arquivo localizado com sucessso\");\r\n }else{\r\n System.out.println(\"Arquivo não localizado, será criado outro\");\r\n arquivo.createNewFile();\r\n } \r\n \r\n for(Produto p: produtos){\r\n produto += \" \"+p.getQtd()+\" \"+ p.getNome()+\" \"+p.getMarca()+\" \"+ p.getPreco()+\"\\n \";\r\n }\r\n \r\n \r\n \r\n FileWriter fw = new FileWriter(arquivo, true);\r\n BufferedWriter bw = new BufferedWriter(fw);\r\n \r\n \r\n bw.write(\" \"+LOJA);\r\n bw.newLine();\r\n bw.write(\"---------------------------------------\");\r\n bw.newLine();\r\n bw.write(\"CLIENTE CPF\");\r\n bw.newLine();\r\n bw.write(cliente);\r\n bw.newLine();\r\n bw.write(\"---------------------------------------\");\r\n bw.newLine();\r\n bw.write(DateCustom.dataHora());\r\n bw.newLine();\r\n bw.write(\" CUPOM FISCAL \");\r\n bw.newLine();\r\n bw.write(\"QTD DESCRIÇÃO PREÇO\");\r\n bw.newLine();\r\n bw.write(produto);\r\n bw.newLine(); \r\n bw.write(\"---------------------------------------\");\r\n bw.newLine();\r\n bw.write(\"TOTAL R$ \" + totalVenda);\r\n bw.newLine();\r\n bw.write(\"---------------------------------------\");\r\n bw.newLine();\r\n bw.write(\"Vendedor \" + vendedor);\r\n bw.newLine();\r\n bw.newLine();\r\n bw.close();\r\n fw.close();\r\n }", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "public String reporteFinMesPre()\n\t{\n\t\tString m = new String();\n\t\tif(!this.clientes.isEmpty())\n\t\t{\n\t\t\tGregorianCalendar ff = new GregorianCalendar();\n\t\t\tCliente c = new Cliente();\n\t\t\tlong dur, durc, durt, totalcliente, totalcuenta, totalt;\n\t\t\tLLamada ll;\n\t\t\tCuenta p;\n\t\t\n\t\t\tListIterator<LLamada> itl;\n\t\t\tRecarga r;\n\t\t\tListIterator<Recarga> itr;\n\t\t\t\n\t\t\tSet<String> llaves = clientes.keySet();\n\t\t\tList<String> li = new ArrayList<String>(llaves);\n\t\t\tListIterator<String> it = li.listIterator();\n\t\t\tListIterator<Cuenta> cu;\n\t\t\tList<Cuenta> lista = new ArrayList<Cuenta>();\n\t\t\tList<Cliente> cli = new ArrayList<Cliente>();\n\t\t\tString s = new String();\n\t\t\t\n\t\t\twhile(it.hasNext())\n\t\t\t{\n\t\t\t\ts = it.next();\n\t\t\t\tif(clientes.get(s).tienePre())\n\t\t\t\t\tcli.add(clientes.get(s));\n\t\t\t}\n\t\t\t\n\t\t\tCollections.sort(cli, new CompararCedulasClientes());\n\n\t\t\t\n\t\t\tListIterator<Cliente> itc = cli.listIterator();\n\t\t\t\n\t\t\tList<LLamada> lisll = new ArrayList<LLamada>();\n\t\t\tList<Recarga> lisr = new ArrayList<Recarga>();\n\t\t\t\n\t\t\ttotalt = 0;\n\t\t\tdurt = 0;\n\t\t\twhile(itc.hasNext())\n\t\t\t{\n\t\t\t\ttotalcliente = 0;\n\t\t\t\tdurc = 0;\n\t\t\t\tc = itc.next();\n\t\t\t\tm += Utils.espacios(\"--CLIENTE: \", 12) + Utils.espacios(c.getNombre(), 15) + Utils.espacios(\", CC \",5) + Utils.espacios(String.valueOf(c.getCedula()), 10) + Utils.espacios(\", \", 3) + Utils.espacios(c.getDireccion(), 20) + \"\\n\";\n\t\t\t\t\n\t\t\t\tcu = c.getCuentas().listIterator(0);\n\t\t\t\tlista.clear();\n\t\t\t\twhile(cu.hasNext())\n\t\t\t\t{\n\t\t\t\t\tp = cu.next();\n\t\t\t\t\tif(p instanceof CuentaPrepago)\n\t\t\t\t\t\tlista.add(p);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcu = lista.listIterator(0);\n\t\t\t\t\n\t\t\t\twhile(cu.hasNext())\n\t\t\t\t{\n\t\t\t\t\tp = cu.next();\n\t\t\t\t\tm += Utils.espacios(\" \", 4)+ Utils.espacios(\"Cuenta Postpago #\", 17) + Utils.espacios(String.valueOf(p.getId()), 5) + Utils.espacios(\": Num \", 6) + Utils.espacios(String.valueOf(p.getNumero()), 10) + Utils.espacios(\", Plan \", 7) + Utils.espacios(p.getPlan().getNombre(), 15) + \"\\n\\n\";\n\t\t\t\t\t//recargas\n\t\t\t\t\tm += Utils.espacios(\" \", 8) + Utils.espacios(\"Recargas: \", 11) + Utils.espacios(\"Fecha\", 15) + \"Valor\\n\";\n\t\t\t\t\ttotalcuenta = 0;\n\n\t\t\t\t\tlisr = ((CuentaPrepago)p).getRecargas();\n\t\t\t\t\tCollections.sort(lisll, new CompararRecargaFecha());\n\t\t\t\t\titr = lisr.listIterator(0);\n\t\t\t\t\t\n\t\t\t\t\twhile(itr.hasNext())\n\t\t\t\t\t{\n\t\t\t\t\t\tr = itr.next();\n\t\t\t\t\t\tif(r.getFechaRecarga().get(Calendar.MONTH) == ff.get(Calendar.MONTH) && r.getFechaRecarga().get(Calendar.YEAR) == ff.get(Calendar.YEAR))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tm += Utils.espacios(\" \", 19) + Utils.espacios(Utils.convertirFechaCadena(r.getFechaRecarga()), 15) + r.getValorRecarga() + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tm += Utils.espacios(\" \", 19) + Utils.espacios(\"TotalRecargas: ----------------------------\", 55) + Utils.espacios(String.valueOf(p.obtenerPagoCuenta(ff)),10) + \"\\n\";\n\n\t\t\t\t\t\n\n\t\t\t\t\ttotalcuenta += p.obtenerPagoCuenta(ff);\n\t\t\t\t\ttotalcliente += totalcuenta;\n\n\n\t\t\t\t\tm += Utils.espacios(\" \", 8) + Utils.espacios(\"Llamadas: \", 11)+ Utils.espacios(\"Fecha\", 15) + Utils.espacios(\"TelefonoDestinatario\", 21) + Utils.espacios(\"Duracion\",10 ) + Utils.espacios(\"Valor\", 8) +\"\\n\\n\";\n\t\t\t\t\tlisll = p.getLlamadas();\n\t\t\t\t\tCollections.sort(lisll, new CompararLLamadasFecha());\n\t\t\t\t\titl = lisll.listIterator(0);\n\t\t\t\t\t\n\t\t\t\t\ttotalcuenta = 0;\n\t\t\t\t\tdur =0;\n\t\t\t\t\twhile(itl.hasNext())\n\t\t\t\t\t{\n\t\t\t\t\t\tll = itl.next();\n\t\t\t\t\t\tif (ll.getFecha().get(Calendar.MONTH) == ff.get(Calendar.MONTH) && ll.getFecha().get(Calendar.YEAR) == ff.get(Calendar.YEAR))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttotalcuenta += ll.getValor();\n\t\t\t\t\t\t\tdur += ll.getDuracion();\n\t\t\t\t\t\t\tm += Utils.espacios(\" \",19) + Utils.espacios(Utils.convertirFechaCadena(ll.getFecha()), 16) + Utils.espacios(String.valueOf(ll.getTelefonoDestinatario()), 20) + Utils.espacios(String.valueOf(ll.getDuracion()), 10) + Utils.espacios(String.valueOf(ll.getValor()), 8) + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tdurc += dur;\n\t\t\t\t\tm += Utils.espacios(\" \", 19) + Utils.espacios(\"TotalLLamadas: ----------------------------\", 55) + Utils.espacios(String.valueOf(dur),10) + totalcuenta + \"\\n\";\n\n\n\n\n\t\t\t\t}\n\t\t\t\ttotalt += totalcliente;\n\t\t\t\tdurt += durc;\n\t\t\t\tm += Utils.espacios(\" \",8) + Utils.espacios(\"Total Cliente: ----------------------------\", 66) + Utils.espacios(String.valueOf(durc),10) + totalcliente + \"\\n\\n\\n\";\n\t\t\t}\n\n\t\t\tm += Utils.espacios(\"TOTAL TODOS LOS CLIENTES: -----------------------\", 64) + Utils.espacios(\"Duracion: \" + String.valueOf(durt),20) + \"Valor: \"+totalt + \"\\n\" + \"\\n\";\n\t\t}\n\t\treturn m;\n\t}", "public static void main( String[] args ){\n //Movemos el array de electrodomesticos\n Electrodomesticos[] electrodomesticos = Ejecutable.electrodomesticosArray();\n //Haciendo las comprobaciones\n electrodomesticos = Ejecutable.asignacionElectrodomesticos(electrodomesticos);\n //Seleccion del array precio\n double precioFinal[] = Ejecutable.precioElectrodomesticos(electrodomesticos);\n System.out.println();\n System.out.println(\"Los diferentes gastos se podrian dividir en estas categorias:\");\n System.out.println();\n System.out.println(\"Televisores, con un precio total de: \" + precioFinal[2]);\n System.out.println(\"Lavadoras: con un precio total de: \" + precioFinal[1]);\n System.out.println(\"Otro tipo de electrodomésticos, con un precio total de: \" + precioFinal[0]);\n System.out.println();\n System.out.println(\"Si sumamos los diferentes costes: \"+precioFinal[0]+\" + \"+precioFinal[1] + \" + \" +precioFinal[2] + \" tenemos como resultado total: \" + (precioFinal[0]+precioFinal[1]+precioFinal[2]) );\n }", "public void getFactorPoliticaConv(ReformaTributariaInput reformaTributaria)throws Exception {\n Connection conn = null;\n CallableStatement call = null;\n \n try {\n\n conn = this.getConnection();\n //Deudas que forman parte de la propuesta, pero no son propias del contribuyente\n call = conn.prepareCall(\"{call PKG_REFORMA_TRIBUTARIA.Status_Contribuyente(?,?,?,?)}\");\n call.setLong(1,reformaTributaria.getRutContribuyente().intValue());/*Rut Contribuyente */\n call.registerOutParameter(2, OracleTypes.INTEGER);/*Comportamiento*/\n call.registerOutParameter(3, OracleTypes.INTEGER);/*Embargo*/\n call.registerOutParameter(4, OracleTypes.INTEGER);/*Mipe*/\n \n \n call.execute();\n\n\n reformaTributaria.setComportamientoConvenio(new Integer(call.getObject(2).toString()));\n int garantia = Integer.parseInt(call.getObject(3).toString());\n int pyme = Integer.parseInt(call.getObject(4).toString());\n \n //System.out.println(\"-------garantia-------- \"+garantia);\n //System.out.println(\"-------pyme-------- \"+pyme);\n \n \n //reformaTributaria.setTieneGarantia(tieneGarantia)(new Integer(call.getObject(3).toString()));\n //reformaTributaria.setBeneficioPyme(new Integer(call.getObject(4).toString()));\n if (garantia==1){\n \t reformaTributaria.setTieneGarantia(new Boolean(true));\n }else{\n \t reformaTributaria.setTieneGarantia(new Boolean(false));\n }\n\n if (pyme==1){\n \t reformaTributaria.setBeneficioPyme(new Boolean(true));\n }else{\n \t reformaTributaria.setBeneficioPyme(new Boolean(false));\n }\n \n \n call.close(); \n \n }catch (Exception e) {\n e.printStackTrace();\n }\n finally{\n this.closeConnection();\n }\n\t\t\n }", "@Override\n public String getDescription() {\n return \"Dividend payment\";\n }" ]
[ "0.6122773", "0.61174256", "0.60716397", "0.5879925", "0.5766323", "0.56733024", "0.5659147", "0.5548551", "0.5546136", "0.5518164", "0.55047035", "0.54947615", "0.5486979", "0.5423705", "0.5417933", "0.53610843", "0.5345785", "0.5343825", "0.5335893", "0.5318086", "0.5312094", "0.52962166", "0.5295484", "0.5294618", "0.5294618", "0.5294618", "0.5294618", "0.5289314", "0.5281378", "0.52717227", "0.5250087", "0.5245366", "0.52208674", "0.52118367", "0.520385", "0.5200756", "0.5199152", "0.5188001", "0.5186321", "0.51801956", "0.51778966", "0.5174645", "0.5171464", "0.51684487", "0.51634043", "0.5159092", "0.5153051", "0.51523674", "0.5137711", "0.5126621", "0.5124778", "0.51238966", "0.5119757", "0.5119757", "0.51194376", "0.51136", "0.50986147", "0.5094984", "0.5090337", "0.5081967", "0.50783354", "0.507618", "0.5073866", "0.5073321", "0.50700724", "0.50658023", "0.50631225", "0.50628155", "0.5061291", "0.50594735", "0.5058857", "0.50579715", "0.50514466", "0.5051019", "0.50372565", "0.5035733", "0.5032961", "0.5010274", "0.5008417", "0.5006908", "0.50066304", "0.5001445", "0.49978396", "0.4996089", "0.49957684", "0.49948087", "0.49920267", "0.49895152", "0.4988863", "0.49885455", "0.4986799", "0.49863037", "0.49862847", "0.4985152", "0.49845597", "0.4982881", "0.49808195", "0.49807808", "0.49780968", "0.49726367" ]
0.55503595
7
Retorna uma string delimitando as casas decimais com ponto
public static String formatarBigDecimalComPonto(BigDecimal numero) { if (numero == null) { numero = new BigDecimal("0.00"); } NumberFormat formato = NumberFormat.getInstance(new Locale("pt", "BR")); formato.setMaximumFractionDigits(2); formato.setMinimumFractionDigits(2); formato.setGroupingUsed(false); return (formato.format(numero)).replace(",", "."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String retirarFormatacaoCEP(String codigo) {\r\n\r\n\t\tString retornoCEP = null;\r\n\r\n\t\tString parte1 = codigo.substring(0, 2);\r\n\t\tString parte2 = codigo.substring(3, 6);\r\n\t\tString parte3 = codigo.substring(7, 10);\r\n\r\n\t\tretornoCEP = parte1 + parte2 + parte3;\r\n\r\n\t\treturn retornoCEP;\r\n\t}", "public static String formatarCEP(String codigo) {\r\n\r\n\t\tString retornoCEP = null;\r\n\r\n\t\tString parte1 = codigo.substring(0, 2);\r\n\t\tString parte2 = codigo.substring(2, 5);\r\n\t\tString parte3 = codigo.substring(5, 8);\r\n\r\n\t\tretornoCEP = parte1 + \".\" + parte2 + \"-\" + parte3;\r\n\r\n\t\treturn retornoCEP;\r\n\t}", "String getCidade();", "String getPrecio();", "public String Alrevez() {\n String retorno = \"\";\n for (int i = getCadena().length() - 1; i >= 0; i--) {\n retorno += getCadena().charAt(i);\n }\n return retorno;\n }", "public String generaNumPatente() {\n String numeroPatente = \"\";\r\n try {\r\n int valorRetornado = patenteActual.getPatCodigo();\r\n StringBuffer numSecuencial = new StringBuffer(valorRetornado + \"\");\r\n int valRequerido = 6;\r\n int valRetorno = numSecuencial.length();\r\n int valNecesita = valRequerido - valRetorno;\r\n StringBuffer sb = new StringBuffer(valNecesita);\r\n for (int i = 0; i < valNecesita; i++) {\r\n sb.append(\"0\");\r\n }\r\n numeroPatente = \"AE-MPM-\" + sb.toString() + valorRetornado;\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n return numeroPatente;\r\n }", "public static String adaptarPuntoDeVenta(int puntoDeVenta) {\n\t\tString puntoDeVentaFormateado = String.valueOf(puntoDeVenta);\n\t\twhile(puntoDeVentaFormateado.length()<4){\n\t\t\tpuntoDeVentaFormateado = \"0\"+puntoDeVentaFormateado;\n\t\t}\n\t\treturn puntoDeVentaFormateado;\n\t}", "public String ocurrencia() {\n String palabra = \"\";\n int retorno = 0;\n for (int i = 0; i < getCadena().length(); i++) {\n\n if ((getCadena().charAt(i) == ' ') || (i > getCadena().length() - 2)) {\n if (palabra.equals(getBuscar())) {\n retorno++;\n palabra = \"\";\n } else {\n palabra = \"\";\n }\n\n } else {\n palabra += getCadena().charAt(i);\n\n }\n }\n return (\"La cantida de ocurrencias son de:\" + '\\n' + retorno);\n }", "private static String formatPRECIO(String var1)\r\n\t{\r\n\t\tString temp = var1.replace(\".\", \"\");\r\n\t\t\r\n\t\treturn( String.format(\"%09d\", Integer.parseInt(temp)) );\r\n\t}", "public String getPatronAutorizacion()\r\n/* 204: */ {\r\n/* 205:349 */ this.patronAutorizacion = \"\";\r\n/* 206:350 */ if (this.indicadorFacturaElectronica) {\r\n/* 207:351 */ for (int i = 0; i < 37; i++) {\r\n/* 208:352 */ this.patronAutorizacion += \"9\";\r\n/* 209: */ }\r\n/* 210: */ } else {\r\n/* 211:355 */ for (int i = 0; i < 10; i++) {\r\n/* 212:356 */ this.patronAutorizacion += \"9\";\r\n/* 213: */ }\r\n/* 214: */ }\r\n/* 215:359 */ return this.patronAutorizacion;\r\n/* 216: */ }", "private String formatearMonto(String gstrLBL_TIPO, String gstrLBL_MONTO, String gstrLBL_MONEDA) {\n\t\tString montoFormateado=\"\";\n\t\t\n\t\tif(gstrLBL_MONEDA.equals(\"Soles\"))\n\t\t\tmontoFormateado=\"S/ \";\n\t\telse\n\t\t\tmontoFormateado=\"$ \";\n\t\t\n\t\tif(gstrLBL_TIPO.equals(\"Débito\"))\n\t\t\tmontoFormateado=montoFormateado+\"-\";\n\t\telse\n\t\t\tmontoFormateado=montoFormateado+\"+\";\n\t\t\n\t\tdouble prueba2=new Double(gstrLBL_MONTO);\n\t\tDecimalFormatSymbols simbolo=new DecimalFormatSymbols();\n\t\tsimbolo.setGroupingSeparator(',');\n\t\tsimbolo.setDecimalSeparator('.');\n\t\tDecimalFormat formatea=new DecimalFormat(\"###,###.##\",simbolo);\n\t\tgstrLBL_MONTO=formatea.format(prueba2);\n\t\tif(gstrLBL_MONTO.indexOf(\".\")!=-1){\n\t\t\tint decimales=(gstrLBL_MONTO.substring(gstrLBL_MONTO.indexOf(\".\")+1,gstrLBL_MONTO.length())).length();\n\t\t\tif(decimales==1)\n\t\t\t\tgstrLBL_MONTO=gstrLBL_MONTO+\"0\";\n\t\t}else\n\t\t\tgstrLBL_MONTO=gstrLBL_MONTO+\".00\";\n\t\t\n\t\tmontoFormateado=montoFormateado+gstrLBL_MONTO;\n\t\t\n\t\treturn montoFormateado;\n\t}", "private String formato(String cadena){\n cadena = cadena.replaceAll(\" \",\"0\");\n return cadena;\n }", "public char buscarConectorPrincipal(String valor) {\n int contador = 0;\n for (int i = 0; i < valor.length(); i++) {\n if (valor.charAt(i) == '(') {\n contador++;\n }\n if (valor.charAt(i) == ')') {\n contador--;\n }\n if (contador == 0) {\n if (valor.charAt(i) == '¬') {\n if (valor.length() == 2) {\n posConectorPrincipal = i;\n return valor.charAt(i);\n }\n if (valor.charAt(i + 1) == '(') {\n return '¬';\n }\n posConectorPrincipal = 2;\n return valor.charAt(2);\n }\n i++;\n if ((i != valor.length()) && (isConectorBinario(valor.charAt(i)))) {\n posConectorPrincipal = i;\n return valor.charAt(i);\n }\n }\n }\n return '0';\n }", "public String toString(){\n\t\tString s = \"\";\n\t\ts += \"El deposito de la moneda \"+nombreMoneda+\" (\" +valor+ \" centimos) contiene \"+cantidad+\" monedas\\n\";\n\t\treturn s;\n\t}", "public String mo38887b() {\n String trim = this.f30736g0.getText().toString().trim();\n if (trim.length() < 2) {\n return \"\";\n }\n return trim.substring(0, 2);\n }", "public static String convertOrarioToFascia(String data) {\n String[] data_splitted = data.split(\" \");\n String orario = data_splitted[1];\n String[] ora_string = orario.split(\":\");\n Integer ora = Integer.parseInt(ora_string[0]);\n if(ora<12){\n return \"prima\";\n }else{\n return \"seconda\";\n }\n }", "private String Interpretar(String num) {\r\n\t\tif(num.length() > 3)\r\n\t\t\treturn \"\";\r\n\t\tString salida=\"\";\r\n\t\t\r\n\t\tif(Dataposi(num,2) != 0)\r\n\t\t\tsalida = Centenas[Dataposi(num,2)-1];\r\n\t\t\r\n\t\tint k = Integer.parseInt(String.valueOf(Dataposi(num,1))+String.valueOf(Dataposi(num,0)));\r\n\r\n\t\tif(k <= 20)\r\n\t\t\tsalida += Numero[k];\r\n\t\telse {\r\n\t\t\tif(k > 30 && Dataposi(num,0) != 0)\r\n\t\t\t\tsalida += Decenas[Dataposi(num,1)-2] + \"Y \" + Numero[Dataposi(num,0)];\r\n\t\t\telse\r\n\t\t\t\tsalida += Decenas[Dataposi(num,1)-2] + Numero[Dataposi(num,0)];\r\n\t\t}\r\n\t\t//Caso especial con el 100\r\n\t\tif(Dataposi(num,2) == 1 && k == 0)\r\n\t\t\tsalida=\"CIEN\";\r\n\t\t\r\n\t\treturn salida;\r\n\t}", "java.lang.String getPkpfe1000();", "@RequiresApi(api = Build.VERSION_CODES.O)\n private String obtenerSegundos(){\n try{\n this.minutos = java.time.LocalDateTime.now().toString().substring(17,19);\n }catch (StringIndexOutOfBoundsException sioobe){\n this.segundos = \"00\";\n }\n return this.minutos;\n }", "private int Dataposi(String cadena,int posicion){\r\n\t\tif(cadena.length() > posicion && posicion >= 0)\r\n\t\t\treturn cadena.charAt(cadena.length()-posicion-1)-48;\r\n\t\treturn 0;\r\n\t}", "private static String adaptarFecha(int fecha) {\n\t\tString fechaFormateada = String.valueOf(fecha);\n\t\twhile(fechaFormateada.length()<2){\n\t\t\tfechaFormateada = \"0\"+fechaFormateada;\n\t\t}\n\n\t\treturn fechaFormateada;\n\t}", "private String getCampo3() {\n String campo = this.campoLivre.substring(15);\n System.out.println(\"campo3 \" + campo);\n return boleto.getDigitoCampo(campo);\n }", "String getBillString();", "private String cadenaABinario(String cadena){\n String cb = \"\";\n int longitud;\n for(int i = 0; i < cadena.length(); i++){\n cb += String.format(\"%8s\",Integer.toBinaryString(cadena.charAt(i)));\n }\n cb = formato(cb);\n return cb;\n }", "public String formatoDecimales(double valorInicial, int numeroDecimales ,int espacios) { \n String number = String.format(\"%.\"+numeroDecimales+\"f\", valorInicial);\n String str = String.valueOf(number);\n String num = str.substring(0, str.indexOf(',')); \n String numDec = str.substring(str.indexOf(',') + 1);\n \n for (int i = num.length(); i < espacios; i++) {\n num = \" \" + num;\n }\n \n for (int i = numDec.length(); i < espacios; i++) {\n numDec = numDec + \" \";\n }\n \n return num +\".\" + numDec;\n }", "java.lang.String getPrenume();", "String getTitolo();", "public final String deu() {\n String str;\n AppMethodBeat.i(26738);\n String str2 = \"\";\n synchronized (this) {\n try {\n if (this.iPr == null || this.iPr.size() <= 0) {\n str = \"\";\n } else {\n int i = 0;\n while (i < this.iPr.size()) {\n com.tencent.mm.plugin.wenote.model.a.c cVar = (com.tencent.mm.plugin.wenote.model.a.c) this.iPr.get(i);\n switch (cVar.getType()) {\n case -1:\n str = str2 + \"<hr/>\";\n break;\n case 1:\n i iVar = (i) cVar;\n if (!bo.isNullOrNil(iVar.content)) {\n str2 = str2 + iVar.content;\n if (i + 1 < this.iPr.size() && ((com.tencent.mm.plugin.wenote.model.a.c) this.iPr.get(i + 1)).getType() == 1 && !bo.isNullOrNil(((i) this.iPr.get(i + 1)).content)) {\n str = str2 + \"<br/>\";\n break;\n }\n }\n str = str2 + \"<br/>\";\n break;\n case 2:\n str = str2 + dO(((f) cVar).uOo, 2);\n break;\n case 3:\n str = str2 + dO(((g) cVar).uOo, 3);\n break;\n case 4:\n l lVar = (l) cVar;\n str = str2 + dO(lVar.uOo, lVar.getType());\n break;\n case 5:\n str = str2 + dO(((d) cVar).uOo, 5);\n break;\n case 6:\n str = str2 + dO(((k) cVar).uOo, 6);\n break;\n case 20:\n str = str2 + dO(((com.tencent.mm.plugin.wenote.model.a.b) cVar).uOo, 20);\n break;\n default:\n str = str2;\n break;\n }\n i++;\n str2 = str;\n }\n str = str2.replaceAll(IOUtils.LINE_SEPARATOR_UNIX, \"<br/>\");\n AppMethodBeat.o(26738);\n }\n } finally {\n while (true) {\n AppMethodBeat.o(26738);\n }\n }\n }\n return str;\n }", "String getCognome();", "public static String cashInWords (Double cash) {\n String s = \"\";\n int cashInCents = (BigDecimal.valueOf(cash).movePointRight(2)).intValue();\n int hrivna = cash.intValue();\n int cop = cashInCents%100;\n if (hrivna/1000000>=1) s+=ch999(hrivna / 1000000, \"million \");\n if (hrivna%1000000/1000>=1) s+=ch999(hrivna % 1000000 / 1000, \"thousand \");\n if (hrivna%1000000%1000>=1) s+=ch999(hrivna % 1000000 % 1000, \"\");\n if (hrivna>0) s+=\"hryvnas \";\n if (hrivna>0&&cop>0) s+=\"and \";\n if (cop>0) s+=ch999(cop, \"cop.\");\n\n return s;\n }", "String billingPartNumber();", "public String get(){\n\t\tString s = value%13+1+\"\"+suits[value/13]+\" \";\r\n\t\treturn s;\r\n\t}", "public String getDv43(String numero) {\r\n \r\n int total = 0;\r\n int fator = 2;\r\n \r\n int numeros, temp;\r\n \r\n for (int i = numero.length(); i > 0; i--) {\r\n \r\n numeros = Integer.parseInt( numero.substring(i-1,i) );\r\n \r\n temp = numeros * fator;\r\n if (temp > 9) temp=temp-9; // Regra do banco NossaCaixa\r\n \r\n total += temp;\r\n \r\n // valores assumidos: 212121...\r\n fator = (fator % 2) + 1;\r\n }\r\n \r\n int resto = total % 10;\r\n \r\n if (resto > 0)\r\n resto = 10 - resto;\r\n \r\n return String.valueOf( resto );\r\n \r\n }", "private String limitarTamanoMensaje(String mensaje, int max) {\n int lon = mensaje.length();\n String strTexto = \"\";\n if (lon > max) {\n for (int i = 0; i < max; i++) {\n strTexto += mensaje.charAt(i);\n }\n } else {\n strTexto = mensaje;\n }\n return strTexto;\n }", "private String moneyFormat(String money)\n {\n if(money.indexOf('.') == -1)\n {\n return \"$\" + money;\n }\n else\n {\n String dec = money.substring(money.indexOf('.')+1 , money.length());\n if(dec.length() == 1)\n {\n return \"$\" + money.substring(0, money.indexOf('.')+1) + dec + \"0\";\n }\n else\n {\n return \"$\" + money.substring(0, money.indexOf('.')+1) + dec.substring(0,2);\n }\n }\n }", "private String getCampo3() {\r\n String campo = this.campoLivre.substring(15);\r\n return boleto.getDigitoCampo(campo);\r\n }", "private String obtenerMilisegundos(){\n\n String fecha = java.time.LocalDateTime.now().toString();\n int longitudPunto = fecha.lastIndexOf(\".\");\n try{\n this.milisegundos = java.time.LocalDateTime.now().toString().substring((longitudPunto+1),fecha.length());\n }catch (StringIndexOutOfBoundsException sioobe){\n this.milisegundos = \"000\";\n }\n\n return milisegundos;\n }", "String getEndereco2();", "java.lang.String getNume();", "java.lang.String getNume();", "public String mo38889c() {\n String trim = this.f30736g0.getText().toString().trim();\n return trim.length() == 5 ? trim.substring(3, 5) : \"\";\n }", "public static String adaptarNroComprobante(int nroComprobante) {\n\t\tString puntoDeVentaFormateado = String.valueOf(nroComprobante);\n\t\twhile(puntoDeVentaFormateado.length()<8){\n\t\t\tpuntoDeVentaFormateado = \"0\"+puntoDeVentaFormateado;\n\t\t}\n\t\treturn puntoDeVentaFormateado;\n\t}", "public char[] getWord(int endereco){\n char[] resposta = new char[16];\n \n System.arraycopy(memory[endereco], 0, resposta, 0, 16);\n \n return resposta;\n }", "String getTo();", "private String quitaEspacios(String cadena) {\n String unspacedString = \"\";\t//Variable donde lee la función\n\n for (int i = 0; i < cadena.length(); i++) {\t//Le quita los espacios a la espresión que leyó\n //Si el caracter no es un espacio lo pone, sino lo quita.\n if (cadena.charAt(i) != ' ') {\n unspacedString += cadena.charAt(i);\n }\n }\n\n return unspacedString;\n }", "private static String m31929a(String str) {\n String[] split = str.split(\"\\\\.\");\n String str2 = split.length > 0 ? split[split.length - 1] : \"\";\n return str2.length() > 100 ? str2.substring(0, 100) : str2;\n }", "public String toText(String braille);", "String getCmt();", "String getZero_or_more();", "java.lang.String getN();", "public String getAutorizacionCompleto()\r\n/* 184: */ {\r\n/* 185:316 */ return this.establecimiento + \"-\" + this.puntoEmision + \" \" + this.autorizacion;\r\n/* 186: */ }", "public String ocultarPalabra(String palabra){\n String resultado=\"\";\n for(int i=0;i<palabra.length();i++){\n resultado+=\"-\";\n }\n return resultado;\n }", "@AutoEscape\n\tpublic String getCodDepartamento();", "public String getMascara()\r\n/* 287: */ {\r\n/* 288:355 */ if (this.dimensionContable.getMascara() != null) {\r\n/* 289:356 */ if (this.dimensionContable.getDimensionPadre() != null) {\r\n/* 290:358 */ this.mascara = (this.dimensionContable.getDimensionPadre().getCodigo() + this.dimensionContable.getMascara().substring(this.dimensionContable.getDimensionPadre().getCodigo().length()));\r\n/* 291: */ } else {\r\n/* 292:360 */ this.mascara = this.dimensionContable.getMascara();\r\n/* 293: */ }\r\n/* 294: */ }\r\n/* 295:363 */ return this.mascara;\r\n/* 296: */ }", "java.lang.String getDomicilio();", "private static String digitarNombre() {\n\t\tString nombre;\n\t\tSystem.out.println(\"Digite el nombre del socio: \");\n\t\tnombre = teclado.next();\n\t\treturn nombre;\n\t}", "String getPais();", "public String lastChars(String a, String b) {\r\n String result = \"\";\r\n\r\n if (a.isEmpty()) {\r\n result += \"@\";\r\n } else {\r\n result += a.charAt(0);\r\n }\r\n\r\n if (b.isEmpty()) {\r\n result += \"@\";\r\n } else {\r\n result += b.charAt(b.length() - 1);\r\n }\r\n\r\n return result;\r\n }", "String getPrimeiroNome();", "@java.lang.Override\n public java.lang.String getNombreComercial() {\n java.lang.Object ref = nombreComercial_;\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 nombreComercial_ = s;\n return s;\n }\n }", "public char get_floating_suffix();", "java.lang.String getDepartureAirport();", "public abstract java.lang.String getAcma_cierre();", "java.lang.String getField1200();", "int getNombreColonnesPlateau();", "public static String amountToStr(long amount) {\r\n String amountStr = Long.toString(amount);\r\n int taille, reste, three;\r\n String montantStr = \"\", montant = amountStr + \"\";\r\n taille = montant.length();\r\n three = taille - 3;\r\n\r\n while (taille > 3) {\r\n reste = taille - 3;\r\n montantStr = montant.substring(reste, taille) + \" \" + montantStr;\r\n montant = montant.substring(0, reste);\r\n taille = montant.length();\r\n }\r\n montantStr = montant.substring(0, taille) + \" \" + montantStr;\r\n return montantStr;\r\n }", "private String construyeCaracter(String palabra) throws IOException {\n\t\tToken aux = null;\n \t\twhile(!((aux = this.nextTokenWithWhites()).get_lexema().equals(\"'\"))) {\n \t\t\tif (aux.get_lexema().equals(\"fin\"))\n \t\t\t\treturn palabra;\n \t\t\tpalabra = palabra + aux.get_lexema();\n \t\t\t// Si vemos que el caracter se alarga mucho, paramos de leer\n \t\t\tif (palabra.length() > 4) {\n \t\t\t\treturn palabra;\n \t\t\t}\n \t\t}\n \t\tpalabra = palabra + aux.get_lexema();\n\t\treturn palabra;\n\t}", "public String getPrimoCampo(){\n return descrizione.split(\",\")[0];\n }", "java.lang.String getField1307();", "String getUltimoNome();", "int obtenerCapital(){\n int capital, valorPropiedades = 0, numEdificaciones = 0;\n \n //Calculamos el valor de todas las propiedades del jugador.\n for(TituloPropiedad propiedad: this.propiedades){\n \n //Obtenemos el número de edificacionesque tiene el titulo de propiedad. cada hotel equivale a cuatro casas mas coste edificación.\n numEdificaciones = propiedad.getCasilla().getNumCasas() + propiedad.getCasilla().getNumHoteles();\n \n //Valor total de la propiedad\n valorPropiedades = valorPropiedades + propiedad.getAlquilerBase() +(numEdificaciones * propiedad.getPrecioEdificar());\n \n if(propiedad.isHipotecada())\n valorPropiedades = valorPropiedades - propiedad.getHipotecaBase();\n }\n \n capital = valorPropiedades + this.saldo;\n \n return capital;\n }", "String getCitationString();", "java.lang.String getAdresa();", "public java.lang.String getNombreComercial() {\n java.lang.Object ref = nombreComercial_;\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 nombreComercial_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "String getEndereco1();", "public String determinarNombrePosicion(int num){\r\n String atributo = \"\";\r\n switch(num){\r\n case 0:\r\n atributo = \"cantidad\";\r\n break;\r\n case 1:\r\n atributo = \"fuerza\";\r\n break;\r\n case 2:\r\n atributo = \"infanteria\";\r\n break;\r\n case 3:\r\n atributo = \"lado oscuro\";\r\n break;\r\n case 4:\r\n atributo = \"riqueza\";\r\n break;\r\n case 5:\r\n atributo = \"sigilo\";\r\n break;\r\n case 6:\r\n atributo = \"tecnologia\";\r\n break;\r\n case 7:\r\n atributo = \"velocidad\";\r\n break;\r\n }\r\n return atributo;\r\n }", "java.lang.String getCit();", "java.lang.String getBunho();", "java.lang.String getBunho();", "String getCADENA_TRAMA();", "private String get_CHAR(int column) {\n if (ccsid_[column - 1] == 1200) {\n return getStringWithoutConvert(columnDataPosition_[column - 1], columnDataComputedLength_[column - 1]);\n }\n\n // check for null encoding is needed because the net layer\n // will no longer throw an exception if the server didn't specify\n // a mixed or double byte ccsid (ccsid = 0). this check for null in the\n // cursor is only required for types which can have mixed or double\n // byte ccsids.\n if (charset_[column - 1] == null) {\n throw new IllegalStateException(\"SQLState.CHARACTER_CONVERTER_NOT_AVAILABLE\");\n }\n\n int dataLength = columnDataComputedLength_[column - 1];\n if (maxFieldSize_ != 0 && maxFieldSize_ < dataLength)\n dataLength = maxFieldSize_;\n return dataBuffer_.getCharSequence(columnDataPosition_[column - 1],\n dataLength, charset_[column - 1]).toString();\n// String tempString = new String(dataBuffer_,\n// columnDataPosition_[column - 1],\n// columnDataComputedLength_[column - 1],\n// charset_[column - 1]);\n// return (maxFieldSize_ == 0) ? tempString :\n// tempString.substring(0, Math.min(maxFieldSize_,\n// tempString.length()));\n }", "@AutoEscape\n\tpublic String getNomDepartamento();", "private String getOrderCode(int pkgCode){\n\t\tint a = pkgCode ;\n\t\tint b = a/10 ;\n\t\tint c = b*10 ;\n//\t\tSystem.out.println(c);\n\t\treturn c+\"\" ;\n\t}", "public abstract java.lang.String getAcma_valor();", "@Override\n public String getNossoNumeroFormatted() {\n return \"24\" + boleto.getNossoNumero();\n }", "private String FormatoHoraDoce(String Hora){\n String HoraFormateada = \"\";\n\n switch (Hora) {\n case \"13\": HoraFormateada = \"1\";\n break;\n case \"14\": HoraFormateada = \"2\";\n break;\n case \"15\": HoraFormateada = \"3\";\n break;\n case \"16\": HoraFormateada = \"4\";\n break;\n case \"17\": HoraFormateada = \"5\";\n break;\n case \"18\": HoraFormateada = \"6\";\n break;\n case \"19\": HoraFormateada = \"7\";\n break;\n case \"20\": HoraFormateada = \"8\";\n break;\n case \"21\": HoraFormateada = \"9\";\n break;\n case \"22\": HoraFormateada = \"10\";\n break;\n case \"23\": HoraFormateada = \"11\";\n break;\n case \"00\": HoraFormateada = \"12\";\n break;\n default:\n int fmat = Integer.parseInt(Hora);\n HoraFormateada = Integer.toString(fmat);\n }\n return HoraFormateada;\n }", "public java.lang.String getHora_hasta();", "@SuppressWarnings(\"unused\")\n\tpublic static String retornaNumeroCNF() {\n\n\t\tInteger cnf = (int) (Math.random() * 99999999);\n\n\t\treturn /*cnf.toString();*/ \"18005129\";\n\t}", "public String getENDString(int endCost);", "private String getMillones(String numero) {\n String miles = numero.substring(numero.length() - 6);\r\n //se obtiene los millones\r\n String millon = numero.substring(0, numero.length() - 6);\r\n String n = \"\";\r\n if (millon.length() > 1) {\r\n n = getCentenas(millon) + \"millones \";\r\n } else {\r\n n = getUnidades(millon) + \"millon \";\r\n }\r\n return n + getMiles(miles);\r\n }", "public static String converterDataSemBarraParaDataComBarra(String data) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tif (data != null && !data.equals(\"\") && data.trim().length() == 8) {\r\n\r\n\t\t\tretorno = data.substring(0, 2) + \"/\" + data.substring(2, 4) + \"/\" + data.substring(4, 8);\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "public int probar(String poox){\r\n int numero = Character.getNumericValue(poox.charAt(0))+ Character.getNumericValue(poox.charAt(1))+ Character.getNumericValue(poox.charAt(2))+ \r\n Character.getNumericValue(poox.charAt(3))+ Character.getNumericValue(poox.charAt(4));\r\n int comprobar;\r\n if(numero >= 30){\r\n comprobar = 2;\r\n System.out.println( numero +\" Digito verificar = \" + comprobar);\r\n }else if (numero >=20 && numero <= 29){\r\n comprobar = 1;\r\n System.out.println(numero + \" Digito verificar = \" + comprobar);\r\n }else{\r\n comprobar = 0;\r\n System.out.println(numero + \" Digito verificar = \" + comprobar);\r\n }\r\n return comprobar;\r\n }", "public static String formatarData(String data) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tif (data != null && !data.equals(\"\") && data.trim().length() == 8) {\r\n\r\n\t\t\tretorno = data.substring(6, 8) + \"/\" + data.substring(4, 6) + \"/\" + data.substring(0, 4);\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "String getCpushares();", "private String organizarCadena (Resultado res){\n String cadena = formatoCadenaTexto(res.getFuncion(),15) +\n formatoCadenaTexto(res.getAlgoritmo(),20) + \n res.getD() + \n \" \" + formatoDecimales(res.getPromedioIteracion(),1,6)+\n \" \" + formatoDecimales(res.getMejor_optimo(),10,10) + \n \" \" + formatoDecimales(res.getPeor_optimo(),10,10) + \n \" \" + formatoDecimales(res.getPromedioOptimos(), 10,10) + \n \" \" + formatoDecimales(res.getDesviacionOptimos(),10,15) + \n \" \" + formatoDecimales(res.getTiempoPromedio(), 3,1); \n return cadena;\n }", "private String removeContainsDot(String amount) {\n if (amount != null && !TextUtils.isEmpty(amount)) {\n if (amount.contains(\".\")) {\n String result = amount.substring(0, amount.indexOf(\".\"));\n return result;\n } else {\n return amount;\n }\n }\n return \"0\";\n }", "private String peso(long peso,int i)\n {\n DecimalFormat df=new DecimalFormat(\"#.##\");\n //aux para calcular el peso\n float aux=peso;\n //string para guardar el formato\n String auxPeso;\n //verificamos si el peso se puede seguir dividiendo\n if(aux/1024>1024)\n {\n //variable para decidir que tipo es \n i=i+1;\n //si aun se puede seguir dividiendo lo mandamos al mismo metodo\n auxPeso=peso(peso/1024,i);\n }\n else\n {\n //si no se puede dividir devolvemos el formato\n auxPeso=df.format(aux/1024)+\" \"+pesos[i];\n }\n return auxPeso;\n }", "public static String getPcNombreCliente(){\n\t\tString host=\"\";\n\t\ttry{\n\t\t\tString ips[] = getIPCliente().split(\"\\\\.\");\n\t\t\tbyte[] ipAddr = new byte[]{(byte)Integer.parseInt(ips[0]),\n\t\t\t\t\t(byte)Integer.parseInt(ips[1]),\n\t\t\t\t\t(byte)Integer.parseInt(ips[2]),\n\t\t\t\t\t(byte)Integer.parseInt(ips[3])};\n\t\t\tInetAddress inet = InetAddress.getByAddress(ipAddr);\n\t\t\thost = inet.getHostName();\n\t\t}catch(Exception ex){\n\t\t\t//Log.error(ex, \"Utiles :: getPcNombreCliente :: controlado\");\n\t\t}\n\t\treturn host;\n\t}", "public static String bcdPlmnToString(byte[] data, int offset) {\n if (offset + 3 > data.length) {\n return null;\n }\n byte[] trans = new byte[3];\n trans[0] = (byte) ((data[0 + offset] << 4) | ((data[0 + offset] >> 4) & 0xF));\n trans[1] = (byte) ((data[1 + offset] << 4) | (data[2 + offset] & 0xF));\n trans[2] = (byte) ((data[2 + offset] & 0xF0) | ((data[1 + offset] >> 4) & 0xF));\n String ret = bytesToHexString(trans);\n\n // For a valid plmn we trim all character 'F'\n if (ret.contains(\"F\")) {\n ret = ret.replaceAll(\"F\", \"\");\n }\n return ret;\n }", "private static String numberToProse(int n) {\n if(n == 0)\n return \"zero\";\n\n if(n < 10)\n return intToWord(n);\n\n StringBuilder sb = new StringBuilder();\n\n // check the tens place\n if(n % 100 < 10)\n sb.insert(0, intToWord(n % 10));\n else if(n % 100 < 20)\n sb.insert(0, teenWord(n % 100));\n else\n sb.insert(0, tensPlaceWord((n % 100) / 10) + \" \" + intToWord(n % 10));\n\n n /= 100;\n\n // add the hundred place\n if(n > 0 && sb.length() != 0)\n sb.insert(0, intToWord(n % 10) + \" hundred and \");\n else if (n > 0)\n sb.insert(0, intToWord(n % 10) + \" hundred \");\n\n if(sb.toString().equals(\" hundred \"))\n sb = new StringBuilder(\"\");\n\n n /= 10;\n\n // the thousand spot\n if(n > 0)\n sb.insert(0, intToWord(n) + \" thousand \");\n\n return sb.toString();\n }" ]
[ "0.6075489", "0.6040396", "0.58692026", "0.57746667", "0.56803066", "0.56335896", "0.56327033", "0.5573141", "0.55605143", "0.5523838", "0.5522253", "0.54918104", "0.54879284", "0.54777676", "0.54763514", "0.5475947", "0.54635483", "0.545722", "0.5421005", "0.5420679", "0.5386794", "0.5374079", "0.53713536", "0.535263", "0.5343666", "0.5336802", "0.53309727", "0.53129023", "0.5312226", "0.5309938", "0.5304079", "0.5295177", "0.52847445", "0.5278189", "0.52704024", "0.52626634", "0.5257128", "0.52514243", "0.5247543", "0.5247543", "0.52274424", "0.52133006", "0.52046084", "0.5194887", "0.5179802", "0.5166958", "0.5163371", "0.5157796", "0.51498353", "0.51296", "0.51075035", "0.5097745", "0.5096829", "0.50843364", "0.5081296", "0.5075379", "0.50704795", "0.5068546", "0.50569236", "0.50402063", "0.5038556", "0.5031572", "0.50230885", "0.5020051", "0.50159794", "0.50085324", "0.50071865", "0.50004864", "0.4997919", "0.4990157", "0.49780864", "0.49780148", "0.4977808", "0.49748212", "0.49746957", "0.4969146", "0.4967571", "0.49597478", "0.49597478", "0.4959353", "0.4957468", "0.49518096", "0.49498722", "0.4948759", "0.49471804", "0.4937992", "0.49372438", "0.49358454", "0.4934178", "0.49337724", "0.49188215", "0.4912686", "0.49045113", "0.48987684", "0.48974508", "0.4891283", "0.48908338", "0.4879569", "0.48790023", "0.48762068" ]
0.49127108
91
Calcula a quantidade de anos completos, existentes entre duas datas
public static int anosEntreDatas(Date dataInicial, Date dataFinal) { int idade = 0; while (compararData(dataInicial, dataFinal) == -1) { int sDiaInicial = getDiaMes(dataInicial); int sMesInicial = getMes(dataInicial); int sAnoInicial = getAno(dataInicial); int sDiaFinal = getDiaMes(dataFinal); int sMesFinal = getMes(dataFinal); int sAnoFinal = getAno(dataFinal); sAnoInicial++; dataInicial = criarData(sDiaInicial, sMesInicial, sAnoInicial); if (sAnoInicial == sAnoFinal) { if (sMesInicial < sMesFinal || (sMesInicial == sMesFinal && sDiaInicial <= sDiaFinal)) { idade++; } break; } idade++; } return idade; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void somarQuantidade(Integer id_produto){\n\t for (ItensCompra it : itensCompra){\n\t\t //verifico se o item do meu arraylist é igual ao ID passado no Mapping\n\t\t if(it.getTable_Produtos().getId_produto().equals(id_produto)){\n\t //defino a quantidade atual(pego a quantidade atual e somo um)\n\t it.setQuantidade(it.getQuantidade() + 1);\n\t //a apartir daqui, faço o cálculo. Valor Total(ATUAL) + ((NOVA) quantidade * valor unitário do produto(ATUAL))\n\t it.setValorTotal(0.);\n\t it.setValorTotal(it.getValorTotal() + (it.getQuantidade() * it.getValorUnitario()));\n }\n}\n\t}", "private void syncNumCopertiTotali() {\n int qPranzo = campoPranzo.getInt();\n int qCena = campoCena.getInt();\n campoTotale.setValore(qPranzo+qCena);\n }", "@Override\n public double calcularValorCompra(ArrayList<Mueble> muebles){\n double total = 0d;\n for (Mueble m : muebles) {\n total+= m.getCantidad()*m.getPrecio();\n }\n return total; \n }", "private int getQuantiCoperti(int codMenu) {\n /* variabili e costanti locali di lavoro */\n int totCoperti = 0;\n Number numero;\n Modulo modRMT = RMTModulo.get();\n Filtro filtro;\n\n try { // prova ad eseguire il codice\n filtro = FiltroFactory.crea(modRMT.getCampo(RMT.Cam.menu), codMenu);\n numero = modRMT.query().somma(modRMT.getCampo(RMT.Cam.coperti), filtro);\n totCoperti = Libreria.getInt(numero);\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return totCoperti;\n }", "public boolean calcularTotal() {\r\n double dou_debe = 0;\r\n double dou_haber = 0;\r\n for (int i = 0; i < tab_tabla2.getTotalFilas(); i++) {\r\n try {\r\n if (tab_tabla2.getValor(i, \"ide_cnlap\").equals(p_con_lugar_debe)) {\r\n dou_debe += Double.parseDouble(tab_tabla2.getValor(i, \"valor_cndcc\"));\r\n } else if (tab_tabla2.getValor(i, \"ide_cnlap\").equals(p_con_lugar_haber)) {\r\n dou_haber += Double.parseDouble(tab_tabla2.getValor(i, \"valor_cndcc\"));\r\n }\r\n } catch (Exception e) {\r\n }\r\n }\r\n eti_suma_debe.setValue(\"TOTAL DEBE : \" + utilitario.getFormatoNumero(dou_debe));\r\n eti_suma_haber.setValue(\"TOTAL HABER : \" + utilitario.getFormatoNumero(dou_haber));\r\n\r\n double dou_diferencia = Double.parseDouble(utilitario.getFormatoNumero(dou_debe)) - Double.parseDouble(utilitario.getFormatoNumero(dou_haber));\r\n eti_suma_diferencia.setValue(\"DIFERENCIA : \" + utilitario.getFormatoNumero(dou_diferencia));\r\n if (dou_diferencia != 0.0) {\r\n eti_suma_diferencia.setStyle(\"font-size: 14px;font-weight: bold;color:red\");\r\n } else {\r\n eti_suma_diferencia.setStyle(\"font-size: 14px;font-weight: bold\");\r\n return true;\r\n }\r\n return false;\r\n }", "long getQuantite();", "public int getQuantidade();", "public float totalVentas() {\n float total = 0;\n for (int i = 0; i < posicionActual; i++) {\n total += getValorCompra(i); //Recorre el arreglo y suma toda la informacion el el arreglo de los valores en una variable que luego se retorna \n }\n return total;\n }", "public int produtosDiferentesComprados(){\r\n return this.faturacao.produtosDiferentesComprados();\r\n }", "private int calculateInputStock_Items() {\n\t\tint total = 0;\n\t\tArrayList<Integer> stock = getAllStockValues();\n\t\tif (!stock.isEmpty()) {\n\t\t\t// get for all K\n\t\t\ttotal += (stock.get(0) * getSetUpMachine().getVending_item().get(\"K\"));\n\t\t\t// get for all S\n\t\t\ttotal += (stock.get(1) * getSetUpMachine().getVending_item().get(\"S\"));\n\t\t\t// get for all F\n\t\t\ttotal += (stock.get(2) * getSetUpMachine().getVending_item().get(\"F\"));\n\t\t\t// get for all N\n\t\t\ttotal += (stock.get(3) * getSetUpMachine().getVending_item().get(\"N\"));\n\t\t}\n\t\treturn total;\n\t}", "public int fondMagasin(){\n\tint total =this.jeton;\n\tfor(Caisse c1 : this.lesCaisses){\n\ttotal = c1.getTotal()+total;\n\t}\n\treturn total;\n}", "@Override\n public int summarizeQuantity() {\n int sum = 0;\n\n for ( AbstractItem element : this.getComponents() ) {\n sum += element.summarizeQuantity();\n }\n\n return sum;\n }", "public synchronized double getTotal(){\n float CantidadTotal=0;\n Iterator it = getElementos().iterator();\n while (it.hasNext()) {\n ArticuloVO e = (ArticuloVO)it.next();\n CantidadTotal=CantidadTotal+(e.getCantidad()*e.getPrecio());\n}\n\n \n return CantidadTotal;\n\n }", "public int quantasEleicoesPeriodoCandidaturaAberta(){\n return this.eleicaoDB.quantasEleicoesPeriodoCandidaturaAberta();\n }", "int getQuantite();", "int getQuantite();", "public double getStockFinal(long pv) {\n float entree = 0 ;\n float sortie = 0 ;\n\n ArrayList<Produit> produits = null ;\n if (pv==0) produits = produitDAO.getAll();\n else produits = produitDAO.getAllByPv(pv) ;\n\n ArrayList<Mouvement> mouvements = null;\n\n double valeur = 0 ;\n double total = 0 ;\n double quantite = 0 ;\n double cmpu = 0 ;\n double restant = 0 ;\n double qsortie = 0 ;\n double qentree = 0 ;\n // Vente par produit\n Mouvement mouvement = null ;\n Operation operation = null ;\n\n for (int i = 0; i < produits.size(); i++) {\n try {\n mouvements = mouvementDAO.getManyByProductInterval(produits.get(i).getId_externe(),DAOBase.formatter2.parse(datedebut),DAOBase.formatter2.parse(datefin)) ;\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n if (mouvements != null){\n valeur = 0 ;\n quantite = 0 ;\n restant = 0 ;\n qentree = 0 ;\n cmpu = 0 ;\n qsortie = 0 ;\n\n for (int j = 0; j < mouvements.size(); j++) {\n mouvement = mouvements.get(j) ;\n operation = operationDAO.getOne(mouvement.getOperation_id()) ;\n if (operation==null || (operation.getAnnuler()==1 && operation.getDateannulation().before(new Date())) || operation.getTypeOperation_id().startsWith(OperationDAO.CMD)) continue;\n\n //if (pv!=0 && caisseDAO.getOne(operation.getCaisse_id()).getPointVente_id()!=pv) continue;\n if (j==0)\n if (mouvement.getRestant()==mouvement.getQuantite() && mouvement.getEntree()==0){\n restant = 0 ;\n }\n else restant = mouvement.getRestant() ;\n\n if (mouvement.getEntree()==0) {\n valeur -= mouvement.getPrixA() * mouvement.getQuantite() ;\n qentree += mouvement.getQuantite() ;\n cmpu = mouvement.getPrixA() ;\n }\n else {\n valeur += mouvement.getCmup() * mouvement.getQuantite() ;\n qsortie += mouvement.getQuantite() ;\n }\n /*\n if (restant!=0) cmpu = valeur / restant ;\n else cmpu = mouvement.getCmup() ;\n */\n }\n\n quantite = restant + qentree - qsortie ;\n total+=Math.abs(valeur) ;\n }\n }\n\n return total;\n }", "public float valorTotalItem()\r\n {\r\n float total = (produto.getValor() - (produto.getValor() * desconto)) * quantidade;\r\n return total;\r\n }", "public int getQuantidade() {\r\n\r\n return produtos.size();\r\n }", "public float carga(){\n return (this.capacidade/this.tamanho);\n }", "public void prinRecaudacion()\n {\n System.out.println(\"La cantidad recaudada por la maquina1 es \" + maquina1.getTotal());\n System.out.println(\"La cantidad recaudada por la maquina2 es \" + maquina2.getTotal());\n System.out.println(\"La cantidad total es\" + ( maquina1.getTotal() + maquina2.getTotal()));\n}", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "public double totalQuantity() {\r\n\t\tdouble t = 0;\r\n\t\tfor(int i=0;i<boxes[0];i++)\r\n\t\t\tfor(int j=0;j<boxes[1];j++)\r\n\t\t\t\tfor(int k=0;k<boxes[2];k++) t += quantity[i][j][k];\r\n\t\treturn t;\r\n\t}", "public void calcularTotal() {\n double valor = 0;\n String servico = (String)consultaSelecionada.getSelectedItem().toString();\n switch(servico) {\n case \"Consulta\":\n valor += 100;\n break;\n case \"Limpeza\":\n valor += 130;\n break;\n case \"Clareamento\":\n valor += 450;\n break;\n case \"Aparelho\":\n valor += 100;\n break;\n case \"Raio-x\":\n valor += 80;\n break;\n case \"Cirurgia\":\n valor += 70;\n break;\n }\n Total.setText(String.valueOf(valor));\n }", "@Override\n\tpublic int getQuantidade() {\n\t\treturn hamburguer.getQuantidade();\n\t}", "@Override\n\tpublic double percentualeGruppiCompletati () throws DAOException{\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tdouble numeroGruppiCompletati = 0.0;\n\t\ttry {\n\t\t\tconnection = DataSource.getInstance().getConnection();\n\t\t\tstatement = connection.prepareStatement(\"SELECT COUNT (GRUPPO.ID)*100/(SELECT COUNT(ID) FROM GRUPPO) FROM GRUPPO WHERE COMPLETO = 1 GROUP BY(GRUPPO.COMPLETO)\");\n\t\t\tresultSet = statement.executeQuery();\n\t\t\tif (resultSet.next()) {\n\t\t\t\tnumeroGruppiCompletati = BigDecimal.valueOf(resultSet.getDouble(1)).setScale(2, RoundingMode.HALF_UP).doubleValue();\n\t\t\t}\n\t\t} catch (SQLException | DAOException e) {\n\t\t\tthrow new DAOException(\"ERRORE percentualeGruppiCompletati utenteAdmin\" + e.getMessage(), e);\n\t\t} finally {\n\t\t\tDataSource.getInstance().close(resultSet);\n\t\t\tDataSource.getInstance().close(statement);\n\t\t\tDataSource.getInstance().close(connection);\n\t\t}\n\t\treturn numeroGruppiCompletati;\n\t}", "public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\n\t}", "public int totalCostOfComponents( ){\n\t\tint total=0;\n\t\tfor (Component temp : components){\n\t\t\ttotal+=temp.getCost();\n\t\t}\n\t\treturn total;\n\t}", "public final void calcular() {\n long dias = Duration.between(retirada, devolucao).toDays();\n valor = veiculo.getModelo().getCategoria().getDiaria().multiply(new BigDecimal(dias));\n }", "public BigDecimal getValorTotalSemDesconto() {\r\n return valorUnitario.setScale(5, BigDecimal.ROUND_HALF_EVEN).multiply(quantidade.setScale(3, BigDecimal.ROUND_HALF_EVEN)).setScale(3, BigDecimal.ROUND_DOWN);\r\n }", "public Integer pesquisarFaturamentoAtividadeCronogramaComandadaNaoRealizadaCount()\n\t\t\tthrows ErroRepositorioException;", "@Override\n\tpublic int manufacturando(int unidades) {\n\t\treturn unidades*this.getTiempoEstimadoParaProducirse();\n\t}", "public String qtdConsultasPorMedico(Medico m) {\r\n\t\tint qtd = 0;\r\n\t\tfor (Consulta c : col) {\r\n\t\t\tif (c.getMedico().equals(m)) {\r\n\t\t\t\tqtd++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn \"Quantidade de consulas do Medico:\" + m + \"\\nNumero(s):\" + qtd;\r\n\t}", "public double calcular(){\n double calculo = 1;\n\n for(INodo descendiente : getDescendientes()) {\n calculo *= descendiente.calcular();\n }\n\n return calculo;\n }", "public DuploQuantidadeFaturacao(){\r\n faturacao = 0;\r\n quantidade = 0;\r\n }", "public Integer cantidadCompras(){\n\t\t// Implementar\n\t\treturn this.compras.size();\n\t}", "double getTotalProfit();", "BigDecimal getQuantity();", "public double getQuantidade() {\n return quantidade;\n }", "private static void calcularTotal(String[] campos) {\n\t\tif (campos.length == 1)\n\t\t\tSystem.out.println(\"TOTAL de lugares atribuidos: \" + gestor.totalAtribuidos());\n\t\telse {\n\t\t\tint escalao = Integer.valueOf(campos[1]);\n\t\t\tSystem.out.println(\"TOTAL de lugares atribuidos no escalao \" + escalao + \" : \" + gestor.atribuidosNoEscalao(escalao));\n\t\t}\n\t}", "public Long getProgressTotalToDo();", "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 }", "@Override\n public double calculatePrice() {\n return getVolume() * (1.0 + (getAlcoholPercent() / 100.0)) * this.liquids.size();\n }", "public int getCantidadCalles();", "public int getTotalRecaudado()\n {\n return maquina1.getTotal() + maquina2.getTotal();\n }", "@Override\n public int computeProfit() {\n return getVehiclePerformance() / getVehiclePrice();\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 calcular(View view) {\n int quilos = Integer.valueOf(editTextQuantidade.getText().toString());\n int total = (quilos *1000)/500;\n \n String message = \"Com \" + quilos + \"kg de chocolate da para fazer \" + total + \" ovos de 500g.\";\n textViewTotal.setText(message);\n }", "private double totalPrice(){\n\n double sum = 0;\n\n for (CarComponent carComponent : componentsCart) {\n sum += (carComponent.getCompPrice() * carComponent.getCompQuantity()) ;\n }\n return sum;\n }", "public int probabilidadesHastaAhora(){\n return contadorEstados + 1;\n }", "private Long calcTiempoCompensado(Long tiempoReal, Barco barco, Manga manga) {\n //Tiempo compensado = Tiempo Real + GPH * Nº de millas manga.\n Float res = tiempoReal + barco.getGph() * manga.getMillas();\n return (long) Math.round(res);\n }", "public int totalCostOfComponents()\n\t{\n\t\tint total = 0;\n\t\tfor (Component comp: configuration.values())\n\t\t{\n\t\t\ttotal += comp.getCost();\n\t\t}\n\t\treturn total;\n\t}", "public Integer getQuantidade() { return this.quantidade; }", "public void calculateCommission(){\r\n commission = (sales) * 0.15;\r\n //A sales Person makes 15% commission on sales\r\n }", "@Override\n public double getTotalCommission() {\n double cost = 0.0;\n //increase cost for each report in the order\n for (Report report : reports.keySet()) {\n //report cost depends on the WorkType\n //audits are not capped by max employee count\n //regular orders are limited by max employee count\n int employeeCount = reports.get(report);\n cost += workType.calculateReportCost(report, employeeCount);\n }\n //increase cost of order based on priority\n //critical orders increase based on their critical loading\n //regular orders don't have an effect\n cost = priorityType.loadCost(cost);\n return cost;\n }", "public int getQuantidade() {\r\n return quantidade;\r\n }", "public int getQuantidade() {\r\n return quantidade;\r\n }", "BigDecimal getTotal();", "BigDecimal getTotal();", "long getQuantity();", "long getQuantity();", "@Override\n\tpublic Double calculerFonds(Integer idBanque) {\n\t\treturn 1000.0;\n\t}", "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 BigDecimal getValorTotal() {\r\n \treturn valorUnitario.setScale(5, BigDecimal.ROUND_HALF_EVEN).multiply(quantidade.setScale(3, BigDecimal.ROUND_HALF_EVEN)).setScale(3, BigDecimal.ROUND_DOWN).subtract(valorDesconto).setScale(3, BigDecimal.ROUND_HALF_EVEN);\r\n }", "Quantity getComparisonValue();", "public void totalFacturaVenta(){\n BigDecimal totalVentaFactura = new BigDecimal(0);\n \n try{\n //Recorremos la lista de detalle y calculamos la Venta total de la factura\n for(Detallefactura det: listDetalle){\n //Sumamos a la variable 'totalVentaFactura'\n totalVentaFactura = totalVentaFactura.add(det.getTotal());\n } \n }catch(Exception e){\n e.printStackTrace();\n }\n \n //Setemos al objeto Factura el valor de la variable 'totalFacturaVenta'\n factura.setTotalVenta(totalVentaFactura);\n \n }", "public List<ParProdutoQuantidade> produtosMaisComprados(String cliente){\r\n Map<String, Integer> m = new HashMap<>();\r\n for (int i = 0; i < this.numFiliais; i++){\r\n Map<String, Integer> m2 = this.filial.get(i).produtosMaisComprados(cliente);\r\n for (String produto: m2.keySet()){\r\n Integer quantidade = m.get(produto);\r\n if (quantidade == null){\r\n m.put(produto, m2.get(produto));\r\n }\r\n else {\r\n m.put(produto, quantidade + m2.get(produto));\r\n }\r\n }\r\n }\r\n Set<ParProdutoQuantidade> s = new TreeSet<>();\r\n for (String produto: m.keySet()){\r\n s.add(new ParProdutoQuantidade (produto, m.get(produto)));\r\n }\r\n List<ParProdutoQuantidade> l = new ArrayList<>();\r\n for (ParProdutoQuantidade p: s){\r\n l.add(p);\r\n }\r\n return l;\r\n }", "@Override\r\n\tpublic Integer sommeQuantitesConso(Integer idStockPerso) {\n\t\treturn null;\r\n\t}", "public float montos(){\n\tDefaultTableModel modelo = vc.returnModelo();\r\n\tint numeroFilas=modelo.getRowCount();\r\n\tfloat monto=0;\r\n\t\tif(modelo.getRowCount()!=0){\r\n\t\t\r\n\t\t\tfor (int i = 0; i < numeroFilas; i++) {\r\n\t\t\t\t\r\n\t\t\t\tmonto = monto + Float.valueOf(modelo.getValueAt(i, 5).toString());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tmonto=0;\r\n\t\t}\r\n\t\treturn monto;\r\n\t}", "public void mostrarTotales() { \n // Inicializacion de los atributos en 0\n totalPCs = 0;\n totalLaptops = 0;\n totalDesktops = 0; \n /* Recorrido de la lista de computadores para acumular el precio usar instanceof para comparar el tipo de computador */ \n for (Computador pc : computadores){\n if (pc instanceof PCLaptop) {\n totalLaptops += pc.calcularPrecio(); \n } else if (pc instanceof PCDesktop){\n totalDesktops += pc.calcularPrecio();\n }\n }\n totalPCs = totalLaptops + totalDesktops;\n System.out.println(\"El precio total de los computadores es de \" + totalPCs); \n System.out.println(\"La suma del precio de los Laptops es de \" + totalLaptops); \n System.out.println(\"La suma del precio de los Desktops es de \" + totalDesktops);\n }", "public BigDecimal pesquisarValorMultasCobradas(int idConta) throws ErroRepositorioException ;", "double getTotal();", "private void calculadorNotaFinal() {\n\t\t//calculo notaFinal, media de las notas medias\n\t\tif(this.getAsignaturas() != null) {\n\t\t\t\tfor (Iterator<Asignatura> iterator = this.asignaturas.iterator(); iterator.hasNext();) {\n\t\t\t\t\tAsignatura asignatura = (Asignatura) iterator.next();\n\t\t\t\t\tif(asignatura.getNotas() != null) {\n\t\t\t\t\tnotaFinal += asignatura.notaMedia();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//curarse en salud con division entre 0\n\t\t\t\tif(this.getAsignaturas().size() != 0) {\n\t\t\t\tnotaFinal /= this.getAsignaturas().size();\n\t\t\t\t}\n\t\t}\n\t}", "public double calculoCuotaEspecialOrdinario() {\n\tdouble resultado =0;\n\tresultado = (getMontoCredito()+(getMontoCredito()*getInteres()/100))/getPlazo(); \n\treturn resultado;\n}", "public int getQuantidade() {\r\n\t\treturn quantidade;\r\n\t}", "@Override\n\tpublic double CalcularFuel() {\n\t\tdouble consumo=this.getCargaActual()*30+2*numEje;\n\t\treturn consumo;\n\t}", "@Test\n void totalPercentageOneProduct() {\n allProducts.add(new Product(null, 1, \"productTest\", 10.0, null, null, null,null));\n allOrderLines.add(new OrderLine(new Product(1), null, 2, 10.0));\n\n ArrayList<ProductIncome> productIncomes = productBusiness.computeProductsIncome(allProducts, allOrderLines);\n productIncomes.get(0).calculPercentage();\n assertEquals(100.0, productIncomes.get(0).getPercentage(), 0);\n }", "private int getTotalPrice() {\n int unitPrice = 0;\n if (((CheckBox) findViewById(R.id.whipped_cream_checkbox)).isChecked()) {\n unitPrice += Constants.PRICE_TOPPING_WHIPPED_CREAM;\n }\n\n if (((CheckBox) findViewById(R.id.chocolate_checkbox)).isChecked()) {\n unitPrice += Constants.PRICE_TOPPING_CHOCOLATE;\n }\n\n unitPrice += Constants.PRICE_PER_COFFEE;\n return getNumberOfCoffees() * unitPrice;\n }", "public Integer pesquisarQuantidadeContasCanceladasFaturamentoAberto(\n\t\tRelatorioContasCanceladasRetificadasHelper helper);", "public Integer pesquisarQuantidadeContasCliente(Integer codigoCliente,\n\t\t\tShort relacaoTipo, Integer anoMes, Date dataVencimentoContaInicio,\n\t\t\tDate dataVencimentoContaFim, Integer anoMesFim) throws ErroRepositorioException;", "public abstract int getAmount(Fluid fluid);", "private double prixTotal() \r\n\t{\r\n\t\tdouble pt = getPrix() ; \r\n\t\t\r\n\t\tfor(Option o : option) \r\n\t\t\tpt += o.getPrix();\t\r\n\t\treturn pt;\r\n\t}", "private int getQuanteComande(int codRMP) {\n /* variabili e costanti locali di lavoro */\n int totComande = 0;\n Number numero;\n Modulo modRMO = RMOModulo.get();\n Modulo modRTO = RTOModulo.get();\n Filtro filtro;\n\n try { // prova ad eseguire il codice\n filtro = FiltroFactory.crea(modRMO.getCampo(RMO.CAMPO_RIGA_MENU_PIATTO), codRMP);\n numero = modRTO.query().contaRecords(filtro);\n totComande = Libreria.getInt(numero);\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return totComande;\n }", "public static void main(String[] args) {\n\t\t\n\t\tint quantidade_macas;\n\t\tdouble total_compra1;\n\t\tdouble total_compra2;\n\t\t\n\t\tScanner leitor = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"QUANTAS MAÇÃS FORAM COMPRADAS? \");\n\t\tquantidade_macas = leitor.nextInt();\n\t\t\n\t\tif (quantidade_macas < 12) {\n\t\t\ttotal_compra1 = (quantidade_macas * 0.30);\n\t\t\tSystem.out.printf(\"O VALOR DA COMPRA SERÁ = R$ %.2f \", total_compra1);\t\t\t\n\t\t}else {\n\t\t\ttotal_compra2 = (quantidade_macas * 0.25);\n\t\t\tSystem.out.printf(\"O VALOR DA COMPRA SERÁ = R$ %.2f \", total_compra2);\t\t\n\t\t\n\n\t}\n\n}", "public int getQuantidade() {\n return quantidade;\n }", "public int obtenerNumeroProductosComprados(){\n return listaProductosComprados.size();\n }", "public BigDecimal getValorTotal(){\r\n\t\r\n\t\t// percorre a lista de ItemVenda - stream especie de interator do java 8\r\n\t\treturn itens.stream()\r\n\t .map(ItemVenda::getValorTotal) // para cada um dos itens, obtem o valor total do item\t\r\n\t .reduce(BigDecimal::add) // soma todos os valores total \r\n\t .orElse(BigDecimal.ZERO); // caso não tenha nenhum item retorna zeo\r\n\t}", "public void aumentaInSitu(){\n if(quantidade_in_situ<quantidade_disponivel)\n quantidade_in_situ++;\n else\n return;\n }", "public Double getInternalTotalComDesconto() {\r\n double preco, quantidade, desconto; \r\n double valor = 0, valorDescontado = 0;\r\n preco = (getPrecoUnitario() == null) ? 0 : getPrecoUnitario().doubleValue();\r\n quantidade = (getQuantidade() == null) ? 0 : getQuantidade().doubleValue();\r\n desconto = (getDesconto() == null) ? 0 : getDesconto().doubleValue();\r\n \r\n \tvalor = (preco * quantidade);\r\n \tvalorDescontado = (valor / 100) * desconto;\r\n return new Double(valor - valorDescontado);\r\n }", "public void calcularTotalVentas(FormularioRegistrarCorte formularioRegistrarCorte) {\n Double suma = 0.00;\n try {\n for (int i = 0; i < formularioRegistrarCorte.getTablaEntradas().getRowCount(); i++) {\n suma = suma + (Double.valueOf(formularioRegistrarCorte.getTablaEntradas().getValueAt(i, 2).toString()));\n }\n formularioRegistrarCorte.getTxtTotalVentas().setText(new OperacionesUtiles().formatoDouble(suma));\n } catch (Exception e) {\n showMessageDialog(null, \"Ocurrio un error al intenetar calcular total entradas\");\n\n }\n\n }", "private Double calcularValorTotal(Aluguel aluguelPendente, Date dataDevolucao) {\n int quantFilmes = aluguelPendente.getFilmes().size();\n DateTime dateAluguel = new DateTime(aluguelPendente.getDataAluguel().getTime());\n DateTime dateDevolucao = new DateTime(dataDevolucao);\n int diferencaDias = Days.daysBetween(dateAluguel, dateDevolucao).getDays();\n int diasAtraso = diferencaDias - 2 - (quantFilmes - 1);\n Double multa = 1.2 * (diasAtraso > 0 ? diasAtraso : 0);\n Double valorTotal = aluguelPendente.getValor() + multa;\n return valorTotal;\n }", "public float getProductTotalMoney(){\n connect();\n float total = 0;\n String sql = \"SELECT SUM(subtotal) + (SUM(subtotal) * (SELECT iva FROM configuraciones)) FROM productos\";\n ResultSet result = null;\n \n try{\n PreparedStatement ps = connect.prepareStatement(sql);\n result = ps.executeQuery();\n //result = getQuery(sql);\n if(result != null){\n while(result.next()){\n total = result.getFloat(1);\n }\n }\n connect.close();\n }catch(SQLException ex){\n ex.printStackTrace();\n }\n return total; \n }", "public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }", "int getBuyQuantity();", "public Integer pesquisarQuantidadeContasCanceladasFaturamentoFechado(\n\t\tRelatorioContasCanceladasRetificadasHelper helper);", "double getTotalPortfolioValue(){\n double total = 0.0;\n for (Listing<P, C> l : this.collectionOfCurrentListings) {\n total += l.getContract().getTotalPrice() * this.commissionRate;\n }\n return total;\n }", "public void setQuantidade(Integer quantidade) { this.quantidade = quantidade; }", "@Override\r\n\tpublic int precioTotal() {\n\t\treturn this.precio;\r\n\t}", "public int precioTotalRepuestos() {\n int sumaTotal = 0;\n for (Dispositivo dispositivo : dispositivos) {\n sumaTotal += dispositivo.getPrecioRepuesto();\n }\n return sumaTotal;\n }", "public Integer pesquisarQuantidadeContasRetificadasFaturamentoFechado(\n\t\tRelatorioContasCanceladasRetificadasHelper helper);", "int getRatioQuantity();" ]
[ "0.66335905", "0.6606041", "0.62838835", "0.62628525", "0.6240402", "0.6234524", "0.61707383", "0.61628765", "0.61627245", "0.61326534", "0.60813636", "0.607567", "0.60736674", "0.6067544", "0.6061368", "0.6061368", "0.6030123", "0.5973681", "0.5941082", "0.59036416", "0.5889199", "0.587605", "0.58593905", "0.58314365", "0.58305705", "0.58304864", "0.5826218", "0.5824375", "0.58191925", "0.58186245", "0.5784725", "0.5777849", "0.57603556", "0.5755093", "0.57542336", "0.57533324", "0.5752783", "0.57466173", "0.5733403", "0.5730755", "0.5715228", "0.57089597", "0.5697757", "0.5694411", "0.56853116", "0.56825393", "0.5678618", "0.56779426", "0.56723875", "0.5664628", "0.5664363", "0.5660357", "0.56584716", "0.56540793", "0.56504506", "0.56446224", "0.56446224", "0.564401", "0.564401", "0.56356895", "0.56356895", "0.56334025", "0.5631948", "0.56262434", "0.56174284", "0.5616756", "0.5616538", "0.5600767", "0.5600697", "0.56004095", "0.55999887", "0.5597666", "0.559766", "0.5597179", "0.55969906", "0.55953896", "0.55912703", "0.5590695", "0.5588089", "0.5584231", "0.5580832", "0.55792105", "0.55784076", "0.5571369", "0.55608785", "0.5554775", "0.55528706", "0.55491", "0.5547124", "0.5542806", "0.55406463", "0.5537758", "0.553699", "0.5536721", "0.5536611", "0.55362105", "0.55358034", "0.55312485", "0.55304056", "0.5523638", "0.55189997" ]
0.0
-1
Retorna true se o combo multiplo(parametro campo) tem pelo menos tamanho 1 e que esse elemento seja diferente de branco,nulo e ConstantesSistema.NUMERO_NAO_INFORMADO.
public static boolean isCampoComboboxMultiploInformado(String[] campo) { if (isVazioOrNulo(campo)) { return false; } if (campo.length == 1 && !isCampoComboboxInformado(campo[0])) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean campiVuoti(){\n return nomeVarTextField.getText().equals(\"\") || tipoVarComboBox.getSelectedIndex() == -1;\n }", "private boolean verifica(){\n if(et_nomeAddFamiliar.getText().length()>3 && spinnerParentesco.getSelectedItemPosition()>0){\n return true;\n }\n else return false;\n\n }", "public boolean possuiMonopolioEmAlgumGrupoDeCores(){\r\n verificaMonopolioDePropriedades();\r\n return this.monopolioNoGrupoDeCor.size() > 0;\r\n }", "public boolean verificaNumero() {\n if (contemSomenteNumeros(jTextFieldDeposita.getText()) || contemSomenteNumeros(jTextFieldSaca.getText())\n || contemSomenteNumeros(jTextFieldTransfere.getText())) {\n return true;\n } else {\n JOptionPane.showMessageDialog(this, \"Digite somente números, por favor. \", \"Atenção !!\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n }", "public void validar_campos(){\r\n\t\tfor(int i=0;i<fieldNames.length-1;++i) {\r\n\t\t\tif (jtxt[i].getText().length() > 0){\r\n\t\t\t}else{\r\n\t\t\t\tpermetir_alta = 1;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tif((CmbPar.getSelectedItem() != null) && (Cmbwp.getSelectedItem() != null) && (CmbComp.getSelectedItem() != null) && (jdc1.getDate() != null) && (textdescripcion.getText().length() > 1) && (textjustificacion.getText().length() > 1)){\t\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tpermetir_alta = 1;\r\n\t\t}\r\n\t\t\r\n\t}", "private boolean comprobarCampos(){\n if(jTextField1.getText().isEmpty() || jTextField2.getText().isEmpty()){\n JOptionPane.showMessageDialog(this, \"No se debe dejar campos en blanco\", \n \"ERROR: campos en blanco\", JOptionPane.ERROR_MESSAGE);\n }\n if (jComboBox1.getSelectedIndex() == 0|| entrenador.getNacionalidad().equals(\"\")){\n JOptionPane.showMessageDialog(this, \"Debes indicar un pais\", \"ERROR: Nacionalidad incorrecta\", \n JOptionPane.ERROR_MESSAGE);\n return false;\n }\n if(jXDatePicker1.getDate() == null){\n JOptionPane.showMessageDialog(this, \"Debes indicar una fecha de nacimiento\", \n \"ERROR: Fecha de nacimiento vacía\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n return true;\n }", "private boolean validarFormulario() {\n boolean cumple=true;\n boolean mosntrarMensajeGeneral=true;\n if(!ValidacionUtil.tieneTexto(txtNombreMedicamento)){\n cumple=false;\n };\n if(!ValidacionUtil.tieneTexto(txtCantidad)){\n cumple=false;\n };\n if(cmbTipoMedicamento.getSelectedItem()==null|| cmbTipoMedicamento.getSelectedItem().equals(\"Seleccione\")){\n setSpinnerError(cmbTipoMedicamento,\"Campo Obligatorio\");\n cumple=false;\n\n }\n if(getSucursalesSeleccionadas().isEmpty()){\n\n cumple=false;\n mosntrarMensajeGeneral=false;\n Utilitario.mostrarMensaje(getApplicationContext(),\"Seleccione una sucursal para continuar.\");\n }\n if(!cumple){\n if(mosntrarMensajeGeneral) {\n Utilitario.mostrarMensaje(getApplicationContext(), \"Error, ingrese todos los campos obligatorios.\");\n }\n }\n return cumple;\n }", "private boolean validarProcesoFianciacionIncumplido(String numeroObligacion) {\n\n boolean proceso = false;\n\n StringBuilder jpql = new StringBuilder();\n jpql.append(\"SELECT o FROM ObligacionFinanciacion o\");\n jpql.append(\" JOIN o.financiacion f\");\n jpql.append(\" JOIN f.proceso p\");\n jpql.append(\" WHERE o.numeroObligacion = :numeroObligacion\");\n jpql.append(\" AND p.estadoProceso.id = :estadoProceso\");\n\n Query query = em.createQuery(jpql.toString());\n query.setParameter(\"numeroObligacion\", numeroObligacion);\n query.setParameter(\"estadoProceso\", EnumEstadoProceso.ECUADOR_FINANCIACION_INCUMPLIDO.getId());\n\n @SuppressWarnings(\"unchecked\")\n List<ObligacionFinanciacion> procesos = query.getResultList();\n if (procesos != null && !procesos.isEmpty()) {\n proceso = true;\n }\n return proceso;\n }", "private boolean camposNumCorrectos() {\n\t\t return Utilidades.isPositiveNumber(anioText.getText().trim());\n\t}", "public static boolean menosONo(){\n Scanner cifra = new Scanner(System.in);\n System.out.println(\"Задание №6. Введите любое число\");\n int number = cifra.nextInt();\n if (number < 0){\n System.out.println(\"Вы ввели отрицательное число.\");\n return true;\n }else\n System.out.println(\"Вы ввели положительное число.\");\n return false;\n }", "private boolean verificarCamposVacios() {\n \n boolean bandera = false; // false = campos no vacios\n \n if(this.jTextFieldDigiteCodigo.getText().equals(\"\") || this.jTextFieldDigiteCodigo.getText().equals(\"Digite Código\"))\n {\n mostrarError(jLabelErrorDigiteCodigo, \"Rellenar este campo\",jTextFieldDigiteCodigo);\n bandera=true;\n }\n return bandera;\n }", "public boolean verificarMinerosComodin() {\r\n int oro = 0;\r\n int plata = 0;\r\n int bronce = 0;\r\n int comodin = 0;\r\n\r\n for (int i = 0; i < listadeMineros.size(); i++) {\r\n if (\"ORO\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n oro++;\r\n }\r\n if (\"PLATA\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n plata++;\r\n }\r\n if (\"BRONCE\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n bronce++;\r\n }\r\n if (\"COMODIN\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n comodin++;\r\n }\r\n }\r\n if (!listadeMineros.isEmpty()) {\r\n if ((((comodin + 1) / (oro + plata + bronce)) * 100) <= 10) {\r\n return true;\r\n }\r\n if ((((comodin + 1) / (oro + plata + bronce)) * 100) > 10) {\r\n return false;\r\n }\r\n }\r\n\r\n return false;\r\n }", "private boolean verificaDados() {\n if (!txtNome.getText().equals(\"\") && !txtProprietario.getText().equals(\"\")) {\n return true;\n } else {\n JOptionPane.showMessageDialog(null, \"Falta campos a ser preenchido\", \"Informação\", 2);\n return false;\n }\n }", "private boolean estValide() {\n if (textFieldNom.getText() == null || textFieldNom.getText().isEmpty() || comboBoxVisibilite.getSelectionModel().getSelectedItem() == null\n || comboBoxType.getSelectionModel().getSelectedItem() == null) {\n erreurLabel.setText(\"Tous les champs doivent etre remplis\");\n return false;\n }\n erreurLabel.setText(\"\");\n return true;\n }", "public boolean canBecombo(){\n \treturn price <5;\n }", "public boolean canBecombo(){\n \treturn super.getPrice() <4;\n }", "public void ingresar() \r\n\t{\r\n\r\n\t\tString numeroCasilla = JOptionPane.showInputDialog(this, \"Ingresar numero en la casilla \" + sudoku.darFilaActual() + \",\" +sudoku.darColumnaActual());\r\n\t\tif (numeroCasilla == null || numeroCasilla ==\"\")\r\n\t\t{}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\tint numeroCasillaInt = Integer.parseInt(numeroCasilla);\r\n\t\t\t\tif(numeroCasillaInt > sudoku.darCantidadColumnasZona()*sudoku.darCantidadFilasZona() || numeroCasillaInt < 1)\r\n\t\t\t\t{\r\n\t\t\t\t\tJOptionPane.showMessageDialog( this, \"El numero ingresado no es valido. Debe ser un valor entre 1 y \" + sudoku.darCantidadColumnasZona()*sudoku.darCantidadFilasZona(), \"Error\", JOptionPane.ERROR_MESSAGE );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog( this, \"Debe ingresar un valor numerico entre 1 y \" + sudoku.darCantidadColumnasZona()*sudoku.darCantidadFilasZona(), \"Error\", JOptionPane.ERROR_MESSAGE );\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private boolean camposValidos() {\n boolean valido = false;\n\n if (txtInfectados.getText().equals(\"\")\n || txtFecha.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Rellene todos los campos\");\n } else {\n valido = true;\n }\n\n return valido;\n }", "public boolean validaCampos() {\n \n if(!this.ftCpf.getText().isEmpty()){\n \n String cpf = this.ftCpf.getText();\n Validador valida = new Validador();\n cpf = valida.tiraPontosCPF(cpf);\n\n\n if (!cpf.isEmpty() || cpf.length() == 11)\n if (!this.tfCarro.getText().isEmpty())\n if ((this.cbPlano.getSelectedItem().toString().equals(\"Diaria Simples\")) || ((this.cbPlano.getSelectedItem().toString().equals(\"Diaria Quilometrada\") && !this.tfQuilometragem.getText().isEmpty())))\n if (!this.tfValorTotal.getText().isEmpty())\n return true;\n else \n JOptionPane.showMessageDialog(null, \"O Valor não pode estar Zerado\", \"Informação\", JOptionPane.INFORMATION_MESSAGE);\n else\n JOptionPane.showMessageDialog(null, \"Insira a Quantidade de quilometros\", \"Informação\", JOptionPane.INFORMATION_MESSAGE);\n else\n JOptionPane.showMessageDialog(null, \"Escolha um carro\", \"Informação\", JOptionPane.INFORMATION_MESSAGE);\n else\n JOptionPane.showMessageDialog(null, \"Digite o CPF corretamente\", \"Informação\", JOptionPane.INFORMATION_MESSAGE);\n \n }\n else\n JOptionPane.showMessageDialog(null, \"Informe o CPF corretamente\", \"Informação\", JOptionPane.INFORMATION_MESSAGE);\n return false;\n \n }", "private void cbOrdonariActionPerformed(java.awt.event.ActionEvent evt) { \n if (cbOrdonari.getSelectedIndex() == 0) {\n agenda.ordoneaza(Agenda.CriteriuOrdonare.DUPA_NUME);\n }\n if (cbOrdonari.getSelectedIndex() == 1) {\n agenda.ordoneaza(Agenda.CriteriuOrdonare.DUPA_PRENUME);\n }\n if (cbOrdonari.getSelectedIndex() == 2) {\n agenda.ordoneaza(Agenda.CriteriuOrdonare.DUPA_DATA_NASTERII);\n }\n if (cbOrdonari.getSelectedIndex() == 3) {\n agenda.ordoneaza(Agenda.CriteriuOrdonare.DUPA_NUMAR_TELEFON);\n }\n }", "public void pedirCantidadProducto(String codBarra){\n this.productoSeleccionado = codBarra;\n }", "public void isiPilihanDokter() {\n String[] list = new String[]{\"\"};\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(list));\n\n /*Mengambil data pilihan spesialis*/\n String nama = (String) pilihPoliTujuan.getSelectedItem();\n String kodeSpesialis = ss.serviceGetIDSpesialis(nama);\n\n /* Mencari dokter where id_spesialis = pilihSpesialis */\n tmd.setData(ds.serviceGetAllDokterByIdSpesialis(kodeSpesialis));\n int b = tmd.getRowCount();\n\n /* Menampilkan semua nama berdasrkan pilihan sebelumnya */\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(ds.serviceTampilNamaDokter(kodeSpesialis, b)));\n }", "public boolean comprobacion()\n\t{\n\t\tif(txtNombre.getText().isEmpty())\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Por favor, rellene el nombre del producto\"); \n\t\t\t\treturn false;\n\t\t\t}\n\t\t\n\t\tif(txtMarca.getText().isEmpty())\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Por favor, rellene la marca del producto\"); \n\t\t\t\treturn false;\n\t\t\t}\n\t\tif(txt_Material.getText().isEmpty()&& rdbtnTextil.isSelected())\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null,\"Por favor, rellene el material principal del producto\"); \n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(txtPrecio.getText().equals(\"€\"))\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Por favor, establezca un precio al producto\"); \n\t\t\t\treturn false;\n\t\t\t}\n\t\tif(!fotoSubida)\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Por favor, seleccione una imagen para su producto\"); \n\t\t\t\treturn false;\n\t\t\t}\n\t\t\n\t\treturn true;\n\t}", "public String extraerCombo(){\n String consulta=null,combo;\n \n combo=comboBuscar.getSelectedItem().toString();\n \n if(combo.equals(\"Buscar por No.Control:\")){\n consulta=\"noControl\";\n } \n if(combo.equals(\"Buscar por Nombre:\")){\n consulta=\"nombreCompleto\"; \n }\n if(combo.equals(\"Buscar por Carrera:\")){\n consulta=\"nombreCarrera\";\n }\n return consulta;\n }", "public void seleccionarTipoComprobante() {\r\n if (com_tipo_comprobante.getValue() != null) {\r\n tab_tabla1.setCondicion(\"fecha_trans_cnccc between '\" + cal_fecha_inicio.getFecha() + \"' and '\" + cal_fecha_fin.getFecha() + \"' and ide_cntcm=\" + com_tipo_comprobante.getValue());\r\n tab_tabla1.ejecutarSql();\r\n tab_tabla2.ejecutarValorForanea(tab_tabla1.getValorSeleccionado());\r\n } else {\r\n tab_tabla1.limpiar();\r\n tab_tabla2.limpiar();\r\n }\r\n tex_num_transaccion.setValue(null);\r\n calcularTotal();\r\n utilitario.addUpdate(\"gri_totales,tex_num_transaccion\");\r\n }", "public boolean validarForm() throws Exception {\r\n\r\n\t\ttbxIdentificacion\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\t\tlbxTipo_disnostico\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\t\tlbxCodigo_consulta_pyp\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\r\n\t\tString mensaje = \"Los campos marcados con (*) son obligatorios\";\r\n\r\n\t\tboolean valida = true;\r\n\r\n\t\tif (tbxIdentificacion.getText().trim().equals(\"\")) {\r\n\t\t\ttbxIdentificacion\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (lbxTipo_disnostico.getSelectedIndex() == 0) {\r\n\t\t\tlbxTipo_disnostico\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (!lbxFinalidad_cons.getSelectedItem().getValue().toString()\r\n\t\t\t\t.equalsIgnoreCase(\"10\")\r\n\t\t\t\t&& lbxCodigo_consulta_pyp.getSelectedIndex() == 0) {\r\n\t\t\tlbxCodigo_consulta_pyp\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (tbxTipo_principal.getText().trim().equals(\"\")) {\r\n\t\t\tmensaje = \"Debe digitar la impresion diagnostica\";\r\n\t\t\tvalida = false;\r\n\t\t} else if (vaidarIgualdad(tbxTipo_principal.getText(),\r\n\t\t\t\ttbxTipo_relacionado_1.getText(),\r\n\t\t\t\ttbxTipo_relacionado_2.getText(),\r\n\t\t\t\ttbxTipo_relacionado_3.getText())) {\r\n\t\t\tmensaje = \"no se puede repetir la impresion diagnostica\";\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (!valida) {\r\n\t\t\tMessagebox.show(mensaje,\r\n\t\t\t\t\tusuarios.getNombres() + \" recuerde que...\", Messagebox.OK,\r\n\t\t\t\t\tMessagebox.EXCLAMATION);\r\n\t\t}\r\n\r\n\t\treturn valida;\r\n\t}", "public boolean validarProducto(String codigo) {\r\n return (Utils.countVowels(codigo) <= AppConfig.numMaxVocales);\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 validaNulos( JTextField valor, String texto){\n\t\ttry {\n\t\t\tif(valor.getText().length() < 1) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Valor \" + texto + \" nao preenchido\");\n\t\t\t\tvalor.grabFocus();\n\t\t\t\treturn;\n\t\t\t}\n\t\t} catch (NullPointerException ex) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Valor \" + texto + \" nao preenchido\");\n\t\t\treturn;\n\t\t}\n\t}", "@Test\n public void deve_aceitar_tamanho_com_8_numeros() {\n telefone.setTamanho(8);\n assertTrue(isValid(telefone, String.valueOf(telefone.getTamanho()), Find.class));\n }", "@SuppressWarnings(\"unchecked\")\r\n\tprivate int retornaPosicaoCombo(MarcaEquipamento me){\r\n\t\tposicao = -1;\r\n\t\tArrayAdapter<MarcaEquipamento> comboAdapter = (ArrayAdapter<MarcaEquipamento>) comboMarca.getAdapter(); \r\n\t\tfor (int i = 0; i < comboAdapter.getCount(); i++) {\r\n\t\t\tif(comboAdapter.getItem(i).getCodigo() == me.getCodigo()){\r\n\t\t\t\tposicao = i;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn posicao;\r\n\t}", "private boolean isInvalid(JTextField campo) {\n return campo.getText().isEmpty();\n }", "public void construirPrimerSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet1ReglaCompleja = new JComboBox(dominio);// creamos el primer combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet1ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el primer item\n\t\titemscomboDominiosSet1ReglaCompleja = new JComboBox();// creamo el segundo combo, vacio\n\t\titemscomboDominiosSet1ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el primer Dominio de regla compleja\");\n\t\tpanelCentral.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelCentral.add(comboDominiosSet1ReglaCompleja);\n\t\tcomboDominiosSet1ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelCentral.add(itemscomboDominiosSet1ReglaCompleja);\n\t\titemscomboDominiosSet1ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelCentral.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet1ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}", "public boolean validarCampos(){\n String nome = campoNome.getText().toString();\n String descricao = campoDescricao.getText().toString();\n String valor = String.valueOf(campoValor.getRawValue());\n\n\n if(!nome.isEmpty()){\n if(!descricao.isEmpty()){\n if(!valor.isEmpty() && !valor.equals(\"0\")){\n return true;\n }else{\n exibirToast(\"Preencha o valor do seu serviço\");\n return false;\n }\n }else{\n exibirToast(\"Preencha a descrição do seu serviço\");\n return false;\n }\n }else{\n exibirToast(\"Preencha o nome do seu serviço\");\n return false;\n }\n }", "@Test\n public void deve_aceitar_tamanho_com_9_numeros() {\n telefone.setTamanho(9);\n assertTrue(isValid(telefone, String.valueOf(telefone.getTamanho()), Find.class));\n }", "public boolean textVacio(JTextField txtDNI, JPasswordField pwsPass, JTextField txtNom,\n JTextField txtApe, JTextField txtTele, JTextField txtCorreo, JComboBox cbx, JLabel lblMensaje) {\n\n try {\n\n boolean veri = txtDNI.getText().trim().isEmpty() || pwsPass.getText().trim().isEmpty() || txtNom.getText().trim().isEmpty()\n || txtApe.getText().trim().isEmpty() || txtTele.getText().trim().isEmpty() || txtCorreo.getText().trim().isEmpty()\n || cbx.getSelectedIndex() == 0;\n\n if (veri == true) {\n lblMensaje.setText(\"TODOS LOS CAMPOS SON NECESARIOS\".toUpperCase());\n return true;\n } else {\n lblMensaje.setText(\"\".toUpperCase());\n return false;\n }\n } catch (Exception e) {\n System.err.println(\"Erro bro :(\");\n }\n return true;\n }", "private boolean validarDatos() {\r\n\t\tboolean _esValido = true;\r\n\r\n\t\tif (txField_lugar.getText() == null || txField_lugar.getText().isEmpty())\r\n\t\t\t_esValido = false;\r\n\t\treturn _esValido;\r\n\t}", "boolean isSetValueQuantity();", "public static boolean ehCampoVazio(JTextField... campos) {\n String vazio = \"\";\n \n for (JTextField c : campos) {\n if (c.getText().equals(vazio)) {\n return true;\n }\n }\n return false;\n }", "public static boolean modif(Forma form, String tipo, String operador) {\n if(operador.equals(\"resta\")){\n String disp = \"\";\n String tabla = tipo;\n String query = \"\";\n \n switch (tipo) {\n case \"alumnoMaterial\":\n case \"profeMaterial\":\n tabla = \"material\";\n break;\n case \"profeEquipo\":\n case \"alumnoEquipo\":\n tabla = \"equipo\";\n break;\n case \"profeConsumible\":\n tabla = \"consumible\";\n break;\n case \"profeReactivo\":\n tabla = \"reactivo\";\n break;\n default:\n break;\n }\n try {\n Statement statement = connection.createStatement();\n query = \"SELECT Disponibilidad FROM \" + tabla +\n \" WHERE Nombre = '\" + form.getDesc() + \"'\";\n ResultSet result = statement.executeQuery(query);\n while (result.next()) {\n disp = result.getString(1);\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n //checo que haya suficientes\n int iDisp = Integer.parseInt(disp);\n int iCant = Integer.parseInt(form.getCant());\n iDisp = iDisp - iCant;\n //si no hay, regreso falso para fallar\n if(iDisp < 0) {\n return false;\n } else {\n //si si hay, inserto la nueva dipobilidad en el inventario\n try {\n query = \"UPDATE \" + tabla + \" SET Disponibilidad = ? WHERE Nombre = ?\";\n PreparedStatement preparedStmt = connection.prepareStatement(query);\n preparedStmt.setInt (1, iDisp);\n preparedStmt.setString(2, form.getDesc());\n preparedStmt.executeUpdate();\n \n if (preparedStmt.executeUpdate() == 1) {\n return true;\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n }\n return false;\n } else {\n String disp = \"\";\n String tabla = tipo;\n String query = \"\";\n \n try {\n Statement statement = connection.createStatement();\n query = \"SELECT Disponibilidad FROM \" + tabla +\n \" WHERE Nombre = '\" + form.getDesc() + \"'\";\n ResultSet result = statement.executeQuery(query);\n while (result.next()) {\n disp = result.getString(1);\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n //checo que haya suficientes\n int iDisp = Integer.parseInt(disp);\n int iCant = Integer.parseInt(form.getCant());\n iDisp = iDisp + iCant;\n //si no hay, regreso falso para fallar\n \n //si si hay, inserto la nueva dipobilidad en el inventario\n try {\n query = \"UPDATE \" + tabla + \" SET Disponibilidad = ? WHERE Nombre = ?\";\n PreparedStatement preparedStmt = connection.prepareStatement(query);\n preparedStmt.setInt (1, iDisp);\n preparedStmt.setString(2, form.getDesc());\n preparedStmt.executeUpdate();\n \n if (preparedStmt.executeUpdate() == 1) {\n return true;\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n }\n return false;\n }", "public boolean inschrijfControle(){\n if(typeField.getText().equals(\"Toernooi\")) {\n try {\n Connection con = Main.getConnection();\n PreparedStatement st = con.prepareStatement(\"SELECT COUNT (*) as aantal FROM Inschrijvingen WHERE speler = ? AND toernooi = ?\");\n st.setInt(1, Integer.parseInt(spelerIDField.getText()));\n st.setInt(2, Integer.parseInt(codeField.getText()));\n ResultSet rs = st.executeQuery();\n if (rs.next()) {\n int id = rs.getInt(\"aantal\");\n if (id < 1) {\n return false;\n }\n }\n } catch (Exception e) {\n System.out.println(e);\n System.out.println(\"ERROR: er is een probleem met de database(inschrijfControleToernooi)\");\n }\n }else if(typeField.getText().equals(\"Masterclass\")){\n try{\n Connection con = Main.getConnection();\n PreparedStatement st = con.prepareStatement(\"SELECT COUNT (*) as aantal FROM Inschrijvingen WHERE speler = ? AND masterclass = ?\");\n st.setInt(1, Integer.parseInt(spelerIDField.getText()));\n st.setInt(2, Integer.parseInt(codeField.getText()));\n ResultSet rs = st.executeQuery();\n if (rs.next()) {\n int id = rs.getInt(\"aantal\");\n if (id < 1) {\n return false;\n }\n }\n }catch(Exception e){\n System.out.println(e);\n System.out.println(\"ERROR: er is een probleem met de database(inschrijfControleMasterclass)\");\n }\n }\n return true;\n }", "private void miInregistrareActionPerformed(java.awt.event.ActionEvent evt) { \n try {\n int n = Integer.parseInt(JOptionPane.showInputDialog(rootPane, \"Introduceti codul de validare:\", \"Confirmare\", JOptionPane.QUESTION_MESSAGE));\n if (n == cod) {\n // In cazul introducerii codului de inregistrare corect, toate functionalitatile aplicatiei devin accesibile, altfel se genereaza exceptie\n lblReclama.setVisible(false);\n miDeschidere.setEnabled(true);\n miSalvare.setEnabled(true);\n miInregistrare.setEnabled(false);\n btnAdauga.setEnabled(true);\n btnModifica.setEnabled(true);\n btnSterge.setEnabled(true);\n lblCod.setVisible(false);\n cbFiltre.setEnabled(true);\n cbOrdonari.setEnabled(true);\n tfPersonalizat.setEditable(true);\n } else {\n throw new NumberFormatException();\n }\n } catch (NumberFormatException numberFormatException) {\n JOptionPane.showMessageDialog(null, \"Cod de validare eronat!\");\n }\n\n }", "public void obtenerCantidadProducto() {\n \n if (codigoBarra.equals(\"\")) {\n return; //para que nos mantenga siempre en el imput\n }\n\n ProductoDao productoDao = new ProductoDaoImp();\n try {\n //obtenemos la instancia de Producto en Base a su codigo de Barra\n producto = productoDao.obtenerProductoPorCodigoBarra(codigoBarra);\n\n if (producto != null) {\n //Levantamos dialog\n RequestContext.getCurrentInstance().execute(\"PF('dialogCantidadProducto2').show();\");\n } else {\n codigoBarra = \"\";\n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Error\", \n \"Producto No encontrado con ese Codigo de Barra\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public boolean hasMoreCombination() {\n\t\treturn cursor < combos.length;\n\t}", "boolean validarCamposVacios(int menu) {\r\n if (menu == 1) {\r\n if (!v_registro_Usuario.getTxtCedulaEmp_Registro().getText().isEmpty()\r\n && !v_registro_Usuario.getTxt_NombreUsuario().getText().isEmpty()\r\n && !v_registro_Usuario.getTxt_Contrasenia().getText().isEmpty()) {\r\n\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n } else {\r\n if (!v_registro_Usuario.getTxtCedula_RegisEdit().getText().isEmpty()\r\n && !v_registro_Usuario.getTxtUsuario_RegisEdit().getText().isEmpty()\r\n && !v_registro_Usuario.getTxtContra_RegisEdit().getText().isEmpty()) {\r\n\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n }", "public boolean pertinencia(Tipo valor) //100%\n {\n if(this.conjunto.contains(valor))\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "public void validaCadastro(List<ProdutoModel> produto) {\n\n if (produto.size() == 0) {\n cadastraProduto();\n } else {\n JOptionPane.showMessageDialog(null, \"Produto existente\");\n jtf_nome.requestFocus();\n }\n }", "private boolean validarComunicacion() {\n String texto = textInputAnadirComunicacion.getEditText().getText().toString().trim();\n if (texto.isEmpty()) {\n textInputAnadirComunicacion.setError(\"El campo no puede estar vacío\");\n return false;\n } else {\n textInputAnadirComunicacion.setError(null);\n return true;\n }\n }", "private boolean recuperaDadosInseridos() throws SQLException, GrupoUsuarioNaoSelecionadoException{\n \n GrupoUsuarios grupoUsuarios = new GrupoUsuarios();\n Usuarios usuarios = new Usuarios();\n boolean selecao = false;\n \n try{\n \n if(this.optUsuariosGerente.isSelected()){\n grupoUsuarios.setGerente(1);\n selecao = true;\n }\n if(this.optUsuariosGestorEstoque.isSelected()){\n grupoUsuarios.setGestorEstoque(1);\n selecao = true;\n }\n if(this.optUsuariosGestorCompras.isSelected()){\n grupoUsuarios.setGestorCompras(1);\n selecao = true;\n }\n if(this.optUsuariosCaixeiro.isSelected()){\n grupoUsuarios.setCaixeiro(1);\n selecao = true;\n }\n \n if(selecao!=true)\n throw new GrupoUsuarioNaoSelecionadoException();\n else usuarios.setGrupoUsuarios(grupoUsuarios); \n \n }catch(TratarMerciExceptions e){\n System.out.println(e.getMessage());\n }\n return selecao;\n }", "public boolean comprobar(){\r\n boolean ind=false;\r\n switch(this.opc){\r\n case 1:\r\n for(int i=0;i<2;i++){\r\n for(int j=0;j<5;j++){\r\n if(mfacil[i][j].equals(\"*\")==false){\r\n ind=true;\r\n }\r\n else{\r\n ind=false;\r\n break;\r\n }\r\n }\r\n }\r\n break;\r\n case 2:\r\n for(int i=0;i<3;i++){\r\n for(int j=0;j<6;j++){\r\n if(mmedio[i][j].equals(\"*\")==false){\r\n ind=true;\r\n }\r\n else{\r\n ind=false;\r\n break;\r\n }\r\n }\r\n }\r\n break;\r\n case 3:\r\n for(int i=0;i<4;i++){\r\n for(int j=0;j<7;j++){\r\n if(mdificil[i][j].equals(\"*\")==false){\r\n ind=true;\r\n }\r\n else{\r\n ind=false;\r\n break;\r\n }\r\n }\r\n }\r\n break;\r\n }\r\n return ind;\r\n }", "private boolean isComboBoxEmpty(String entry){\n return entry == null || entry.isBlank();\n }", "Batiment choixBatiment(Partie partie, int nbDoublon, Plateau plateau);", "@Override\n public boolean isValid() {\n return getComponent().manager.getSelectedNodes().length == 1;\n }", "public void llenarComboUltimoGrado() {\t\n \t\tString respuesta = negocio.llenarComboUltimoGrado(\"\");\n \t\tSystem.out.println(respuesta);\t\n \t}", "public void llenarComboGrado() {\t\n\t\tString respuesta = negocio.llenarComboGrado(\"\");\n\t\tSystem.out.println(respuesta);\t\n\t}", "@Override\n\tpublic EspecieValoradaTO validaEspecieValoradaFull(\n\t\t\tfinal long codigoEmpresa, final String codigoTipoDocumento,\n\t\t\tfinal long numeroDocumento) throws BluexException {\n\t\tparams = new HashMap<String, Object>();\n\n\t\tparams.put(CODIGO_EMPRESA, codigoEmpresa);\n\t\tparams.put(CODIGO_TIPO_DOCUMENTO, codigoTipoDocumento);\n\t\tparams.put(NUMERO_DOCUMENTO, numeroDocumento);\n\t\tgetMapper().validaEspecieValoradaFull(params);\n\n\t\tthis.esExcepcion();\n\n\t\tfinal Long idEspecieValorada = (Long) params.get(EEVV_NMR_ID);\n\t\tfinal Long codigoCliente = (Long) params.get(CODIGO_CLIENTE);\n\t\tfinal Long sucursalCliente = (Long) params.get(SUCURSAL_CLIENTE);\n\n\t\tfinal EspecieValoradaTO especie = new EspecieValoradaTO();\n\t\tif (idEspecieValorada != null) {\n\t\t\tespecie.setEevvNmrId(idEspecieValorada);\n\t\t}\n\t\tif (codigoCliente != null) {\n\t\t\tespecie.setCodigoCliente(codigoCliente);\n\t\t}\n\t\tif (sucursalCliente != null) {\n\t\t\tespecie.setSucursalCliente(sucursalCliente);\n\t\t}\n\n\t\treturn especie;\n\t}", "private boolean numeroValido(int numero, int ren, int col){\n return verificaArea(numero,ren,col)&&verificaRenglon(numero,ren) && verificaColumna(numero,col);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n txtcodigo = new javax.swing.JTextField();\n txtnombre = new javax.swing.JTextField();\n cbolinea = new javax.swing.JComboBox();\n txtprecompra = new javax.swing.JTextField();\n txtpreventa = new javax.swing.JTextField();\n txtcantidad = new javax.swing.JTextField();\n btnAdicionar = new javax.swing.JButton();\n btnModificar = new javax.swing.JButton();\n btnEliminar = new javax.swing.JButton();\n btnBuscar = new javax.swing.JButton();\n btnCerrar = new javax.swing.JButton();\n\n setTitle(\"MANTENIMIENTO DE PRODUCTO\");\n\n jLabel1.setText(\"Codigo\");\n\n jLabel2.setText(\"Nombre de Producto\");\n\n jLabel3.setText(\"Linea\");\n\n jLabel4.setText(\"Precio Compra\");\n\n jLabel5.setText(\"Precio Venta\");\n\n jLabel6.setText(\"Cantidad\");\n\n cbolinea.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \" \" }));\n\n btnAdicionar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagen/save_all.png\"))); // NOI18N\n btnAdicionar.setText(\"Adicionar\");\n btnAdicionar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnAdicionar.setMaximumSize(new java.awt.Dimension(75, 49));\n btnAdicionar.setMinimumSize(new java.awt.Dimension(75, 49));\n btnAdicionar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnAdicionar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAdicionarActionPerformed(evt);\n }\n });\n\n btnModificar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagen/contact-list.png\"))); // NOI18N\n btnModificar.setText(\"Modificar\");\n btnModificar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnModificar.setMaximumSize(new java.awt.Dimension(75, 49));\n btnModificar.setMinimumSize(new java.awt.Dimension(75, 49));\n btnModificar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnModificar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnModificarActionPerformed(evt);\n }\n });\n\n btnEliminar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagen/Cancel.png\"))); // NOI18N\n btnEliminar.setText(\"Eliminar\");\n btnEliminar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnEliminar.setMaximumSize(new java.awt.Dimension(77, 51));\n btnEliminar.setMinimumSize(new java.awt.Dimension(77, 51));\n btnEliminar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnEliminar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnEliminarActionPerformed(evt);\n }\n });\n\n btnBuscar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagen/buscar.gif\"))); // NOI18N\n btnBuscar.setText(\"Buscar\");\n btnBuscar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnBuscar.setMaximumSize(new java.awt.Dimension(77, 51));\n btnBuscar.setMinimumSize(new java.awt.Dimension(77, 51));\n btnBuscar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnBuscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBuscarActionPerformed(evt);\n }\n });\n\n btnCerrar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagen/application-exit.png\"))); // NOI18N\n btnCerrar.setText(\"Cerrar\");\n btnCerrar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnCerrar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnCerrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCerrarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(37, 37, 37)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cbolinea, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(66, 66, 66)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtprecompra, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addGap(32, 32, 32)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtpreventa, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtcantidad, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(txtcodigo)\n .addGap(18, 18, 18)\n .addComponent(txtnombre, javax.swing.GroupLayout.PREFERRED_SIZE, 297, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(162, 162, 162)\n .addComponent(jLabel2)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnAdicionar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnModificar, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnCerrar, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(47, 47, 47))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtcodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtnombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(24, 24, 24)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel6))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbolinea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtprecompra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtpreventa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtcantidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnAdicionar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(1, 1, 1))\n .addComponent(btnCerrar)\n .addComponent(btnModificar, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 60, Short.MAX_VALUE)\n .addComponent(btnBuscar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnEliminar, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(29, 29, 29))\n );\n\n pack();\n }", "public boolean SiguienteBodega(){\n if(!lista_inicializada){\n Nodo_bodega_actual = Nodo_bodega_inicial;\n lista_inicializada = true;\n if(Size>0){\n return true;\n }\n }\n \n if(Size > 1 ){\n if(Nodo_bodega_actual.obtenerSiguiente()!= null){\n Nodo_bodega_actual = Nodo_bodega_actual.obtenerSiguiente();\n return true;\n } \n }\n return false;\n }", "public void confirmarDuplicarFormulaProceso() {\n if (duplicarFormulaProceso.getProceso().getSecuencia() != null) {\n k++;\n l = BigInteger.valueOf(k);\n duplicarFormulaProceso.setSecuencia(l);\n listFormulasProcesos.add(duplicarFormulaProceso);\n listFormulasProcesosCrear.add(duplicarFormulaProceso);\n RequestContext context = RequestContext.getCurrentInstance();\n infoRegistro = \"Cantidad de registros : \" + listFormulasProcesos.size();\n context.update(\"form:informacionRegistro\");\n context.update(\"form:datosFormulaProceso\");\n context.execute(\"DuplicarRegistroFormulaProceso.hide()\");\n index = -1;\n secRegistro = null;\n if (guardado == true) {\n guardado = false;\n RequestContext.getCurrentInstance().update(\"form:ACEPTAR\");\n }\n if (bandera == 1) {\n altoTabla = \"310\";\n formulaProceso = (Column) FacesContext.getCurrentInstance().getViewRoot().findComponent(\"form:datosFormulaProceso:formulaProceso\");\n formulaProceso.setFilterStyle(\"display: none; visibility: hidden;\");\n\n formulaPeriodicidad = (Column) FacesContext.getCurrentInstance().getViewRoot().findComponent(\"form:datosFormulaProceso:formulaPeriodicidad\");\n formulaPeriodicidad.setFilterStyle(\"display: none; visibility: hidden;\");\n\n RequestContext.getCurrentInstance().update(\"form:datosFormulaProceso\");\n bandera = 0;\n filtrarListFormulasProcesos = null;\n tipoLista = 0;\n }\n duplicarFormulaProceso = new FormulasProcesos();\n } else {\n RequestContext.getCurrentInstance().execute(\"errorRegistroFP.show()\");\n }\n }", "private boolean validarMezcla() {\n\t\tint grado = nodos.get(0).getGrado();\n\t\tboolean retorno = true;\n\t\tfor (Nodo n : nodos) {\n\t\t\tif (n.getGrado() != grado) {\n\t\t\t\tif (n.getGrado() < grado) {\n\t\t\t\t\tSystem.err.println(\"Error en la mezcla del grafo\");\n\t\t\t\t\tSystem.exit(4321);\n\t\t\t\t} else\n\t\t\t\t\tgrado = n.getGrado();\n\t\t\t}\n\t\t}\n\t\treturn retorno;\n\t}", "public boolean controllaCampi() {\r\n\r\n\t\tboolean valor = true;\r\n\r\n\t\tif (nameText.getText().equals(\"\")) {\r\n\t\t\tvalor = false;\r\n\t\t\tnameText.setBackground(Color.GREEN);\r\n\t\t} else {\r\n\t\t\tnameText.setBackground(Color.WHITE);\r\n\t\t}\r\n\t\tif (mailtextField.getText().equals(\"\")) {\r\n\t\t\tvalor = false;\r\n\t\t\tmailtextField.setBackground(Color.GREEN);\r\n\t\t} else\r\n\t\t\tmailtextField.setBackground(Color.WHITE);\r\n\r\n\t\tif (cognomeText.getText().equals(\"\")) {\r\n\t\t\tvalor = false;\r\n\t\t\tcognomeText.setBackground(Color.GREEN);\r\n\t\t} else\r\n\t\t\tcognomeText.setBackground(Color.WHITE);\r\n\r\n\t\tif (etàText.getText().equals(\"\")) {\r\n\t\t\tvalor = false;\r\n\t\t\tetàText.setBackground(Color.GREEN);\r\n\t\t} else\r\n\t\t\tetàText.setBackground(Color.WHITE);\r\n\r\n\t\tif (!(alta.isSelected() || media.isSelected() || bassa.isSelected())) {\r\n\r\n\t\t\tvalor = false;\r\n\t\t\talta.setBackground(Color.GREEN);\r\n\t\t\tmedia.setBackground(Color.GREEN);\r\n\t\t\tbassa.setBackground(Color.GREEN);\r\n\t\t} else {\r\n\t\t\talta.setBackground(getBackground());\r\n\t\t\tmedia.setBackground(getBackground());\r\n\t\t\tbassa.setBackground(getBackground());\r\n\r\n\t\t}\r\n\r\n\t\tif (!(sexM.isSelected() || sexF.isSelected())) {\r\n\t\t\tvalor = false;\r\n\t\t\tsexM.setBackground(Color.GREEN);\r\n\t\t\tsexF.setBackground(Color.GREEN);\r\n\t\t} else {\r\n\t\t\tsexM.setBackground(getBackground());\r\n\t\t\tsexF.setBackground(getBackground());\r\n\t\t}\r\n\r\n\t\tif (CFText.getText().equals(\"\")) {\r\n\t\t\tCFText.setBackground(Color.GREEN);\r\n\t\t\tvalor = false;\r\n\t\t} else\r\n\t\t\tCFText.setBackground(Color.WHITE);\r\n\r\n\t\tif (pesoText.getText().equals(\"\")) {\r\n\t\t\tpesoText.setBackground(Color.GREEN);\r\n\t\t\tvalor = false;\r\n\t\t} else\r\n\t\t\tpesoText.setBackground(Color.WHITE);\r\n\r\n\t\tif (altezzaText.getText().equals(\"\")) {\r\n\t\t\taltezzaText.setBackground(Color.GREEN);\r\n\t\t\tvalor = false;\r\n\t\t} else\r\n\t\t\taltezzaText.setBackground(Color.WHITE);\r\n\r\n\t\treturn valor;\r\n\t}", "public boolean gano() {\r\n\t\tboolean gano = false;\r\n\t\tint contador = 0;\r\n\t\tint c = (casillas.length * casillas[0].length) - cantidadMinas;\r\n\t\tfor(int i = 0; i< casillas.length && !gano; i++) {\r\n\t\t\tfor(int j = 0; j<casillas[i].length && !gano; j++) {\r\n\t\t\t\tif(casillas[i][j].esMina() == false) {\r\n\t\t\t\tif(casillas[i][j].darSeleccionada() == true) {// si no es mina\r\n\t\t\t\t\tcontador++;\r\n\t\t\t\t\tif(contador == c) {// no ha sido seleccionada\r\n\t\t\t\t\t\tgano = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn gano;\r\n\t}", "private boolean propriedadesIguais( Integer pro1, Integer pro2 ){\r\n\t if ( pro2 != null ){\r\n\t\t if ( !pro2.equals( pro1 ) ){\r\n\t\t\t return false;\r\n\t\t }\r\n\t } else if ( pro1 != null ){\r\n\t\t return false;\r\n\t }\r\n\t \r\n\t // Se chegou ate aqui quer dizer que as propriedades sao iguais\r\n\t return true;\r\n\t}", "private boolean validaSituacao() {\r\n\t\treturn Validacao.validaSituacao((String) this.situacao.getSelectedItem()) != 0;\r\n\t}", "public void seleccionarBeneficiario(){\n\t\tvisualizarGrabarRequisito = false;\r\n\t\ttry{\r\n\t\t\tlog.info(\"intItemBeneficiarioSeleccionar:\"+intItemBeneficiarioSeleccionar);\r\n\t\t\tif(intItemBeneficiarioSeleccionar.equals(new Integer(0))){\r\n\t\t\t\tbeneficiarioSeleccionado = null;\r\n\t\t\t\tlistaEgresoDetalleInterfaz = new ArrayList<EgresoDetalleInterfaz>();\r\n\t\t\t\tbdTotalEgresoDetalleInterfaz = null;\r\n\t\t\t\t//\r\n\t\t\t\tmostrarPanelAdjuntoGiro = false;\r\n\t\t\t\tdeshabilitarNuevo = false;\r\n\t\t\t\tdeshabilitarNuevoBeneficiario = false;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(BeneficiarioPrevision beneficiarioPrevision : expedientePrevisionGirar.getListaBeneficiarioPrevision()){\r\n\t\t\t\tif(beneficiarioPrevision.getId().getIntItemBeneficiario().equals(intItemBeneficiarioSeleccionar)){\r\n\t\t\t\t\tbeneficiarioSeleccionado = beneficiarioPrevision;\r\n\t\t\t\t\tlistaEgresoDetalleInterfaz = previsionFacade.cargarListaEgresoDetalleInterfaz(expedientePrevisionGirar, beneficiarioSeleccionado);\t\t\t\t\t\r\n\t\t\t\t\tbdTotalEgresoDetalleInterfaz = ((EgresoDetalleInterfaz)(listaEgresoDetalleInterfaz.get(0))).getBdSubTotal();;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tList<ControlFondosFijos> listaControlValida = new ArrayList<ControlFondosFijos>();\r\n\t\t\tfor(ControlFondosFijos controlFondosFijos : listaControl){\r\n\t\t\t\tAcceso acceso = bancoFacade.obtenerAccesoPorControlFondosFijos(controlFondosFijos);\r\n\t\t\t\tlog.info(controlFondosFijos);\r\n\t\t\t\tlog.info(acceso);\t\t\t\t\r\n\t\t\t\tif(acceso!=null\r\n\t\t\t\t&& acceso.getAccesoDetalleUsar()!=null\r\n\t\t\t\t&& acceso.getAccesoDetalleUsar().getBdMontoMaximo()!=null\r\n\t\t\t\t&& acceso.getAccesoDetalleUsar().getBdMontoMaximo().compareTo(bdTotalEgresoDetalleInterfaz)>=0){\r\n\t\t\t\t\tlistaControlValida.add(controlFondosFijos);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tvisualizarGrabarRequisito = true;\r\n\t\t\tdeshabilitarNuevoBeneficiario = false;\r\n\t\t\t\r\n\t\t\tif(listaControlValida.isEmpty() && intItemBeneficiarioSeleccionar!=0){\r\n\t\t\t\t//Deshabilitamos todos los campos para detener el proceso de grabacion\r\n\t\t\t\tif(validarExisteRequisito()) {\r\n\t\t\t\t\tmensajeAdjuntarRequisito = \"No existe un fondo de cambio con un monto máximo configurado que soporte el monto de giro del expediente.\"+\r\n\t\t\t\t\t \"Este giro será realizado por la Sede Central.\";\r\n\t\t\t\t\tmostrarMensajeAdjuntarRequisito = true;\r\n\t\t\t\t\tmostrarPanelAdjuntoGiro = true;\r\n\t\t\t\t\thabilitarGrabarRequisito = true;\t\r\n\t\t\t\t\tvisualizarGrabarAdjunto = true;\r\n\t\t\t\t\tdeshabilitarNuevo = true;\r\n\t\t\t\t\tdeshabilitarDescargaAdjuntoGiro = false;\r\n\r\n\t\t\t\t}else{\r\n\t\t\t\t\tmensajeAdjuntarRequisito = \"Ya existen requisitos registrados para este expediente.\";\r\n\t\t\t\t\tarchivoAdjuntoGiro = previsionFacade.getArchivoPorRequisitoPrevision(lstRequisitoPrevision.get(0));\r\n\t\t\t\t\tmostrarMensajeAdjuntarRequisito = true;\r\n\t\t\t\t\tmostrarPanelAdjuntoGiro = true;\r\n\t\t\t\t\thabilitarGrabarRequisito = false;\r\n\t\t\t\t\tvisualizarGrabarAdjunto =false;\r\n\t\t\t\t\tdeshabilitarNuevo = true;\r\n\t\t\t\t\tdeshabilitarDescargaAdjuntoGiro = true;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tvisualizarGrabarRequisito = false;\r\n\t\t\t\tmostrarPanelAdjuntoGiro = false;\r\n\t\t\t\tdeshabilitarNuevo = false;\r\n\t\t\t\tdeshabilitarDescargaAdjuntoGiro = false;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}catch (Exception e){\r\n\t\t\tlog.error(e.getMessage(),e);\r\n\t\t}\r\n\t}", "private void fillcbGrupo() {\n\t\tcbGrupoContable.setNullSelectionAllowed(false);\n\t\tcbGrupoContable.setInputPrompt(\"Seleccione Grupo Contable\");\n\t\tfor (GruposContablesModel grupo : grupoimpl.getalls()) {\n\t\t\tcbGrupoContable.addItem(grupo.getGRC_Grupo_Contable());\n\t\t\tcbGrupoContable.setItemCaption(grupo.getGRC_Grupo_Contable(), grupo.getGRC_Nombre_Grupo_Contable());\n\t\t}\n\t}", "private void comboMultivalores(HTMLSelectElement combo, String tabla, String defecto, boolean dejarBlanco) {\n/* 393 */ SisMultiValoresDAO ob = new SisMultiValoresDAO();\n/* 394 */ Collection<SisMultiValoresDTO> arr = ob.cargarTabla(tabla);\n/* 395 */ ob.close();\n/* 396 */ if (dejarBlanco) {\n/* 397 */ HTMLOptionElement op = (HTMLOptionElement)this.pagHTML.createElement(\"option\");\n/* 398 */ op.setValue(\"\");\n/* 399 */ op.appendChild(this.pagHTML.createTextNode(\"\"));\n/* 400 */ combo.appendChild(op);\n/* */ } \n/* 402 */ Iterator<SisMultiValoresDTO> iterator = arr.iterator();\n/* 403 */ while (iterator.hasNext()) {\n/* 404 */ SisMultiValoresDTO reg = (SisMultiValoresDTO)iterator.next();\n/* 405 */ HTMLOptionElement op = (HTMLOptionElement)this.pagHTML.createElement(\"option\");\n/* 406 */ op.setValue(\"\" + reg.getCodigo());\n/* 407 */ op.appendChild(this.pagHTML.createTextNode(reg.getDescripcion()));\n/* 408 */ if (defecto.equals(reg.getCodigo())) {\n/* 409 */ Attr escogida = this.pagHTML.createAttribute(\"selected\");\n/* 410 */ escogida.setValue(\"on\");\n/* 411 */ op.setAttributeNode(escogida);\n/* */ } \n/* 413 */ combo.appendChild(op);\n/* */ } \n/* 415 */ arr.clear();\n/* */ }", "public boolean probabilidadTotalEsValida(){\n return probabilidadTotal == 1.0;\n }", "@Override\n public boolean IsEmpty() {\n if (tamano == 0) {\n return true;\n } else {\n return false;\n }//FIn del else\n }", "private void cbxJornadaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbxJornadaActionPerformed\n if (cbxJornada.getSelectedIndex() == 1) {\n jornadaTrabalho(40);\n } else if(cbxJornada.getSelectedIndex() == 2){\n jornadaTrabalho(44);\n }\n }", "public boolean isSeleccionarAlRecibirElFoco() {\r\n\t\treturn seleccionarAlRecibirElFoco;\r\n\t}", "@Test\n public void nao_deve_aceitar_tamanho_telefone_fixo_com_mais_de_9_numeros() {\n telefone.setTamanho(10);\n assertFalse(isValid(telefone, \"O tamanho do telefone não pode ser maior que 9.\", Find.class));\n }", "public List<MovimentoPorCanalDeVendaVO> validaSelecionaEmissaoPorCanal(String movimento) {\n\n\t\tList<MovimentoPorCanalDeVendaVO> list = new ArrayList<MovimentoPorCanalDeVendaVO>(listaEmissaoPorCanal);\n\n\t\tList<MovimentoPorCanalDeVendaVO> listTotal = new ArrayList<MovimentoPorCanalDeVendaVO>();\n\n\t\tString[] mesesTotaisValor = { \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\",\n\t\t\t\t\"0.0\" };\n\n\t\tString[] mesesTotaisQuantidade = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\tString anoTotal = null;\n\t\tString produtoTotal = null;\n\n\t\tint qtdQuantidade = 0;\n\t\tint qtdValor = 0;\n\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tif (!(list.get(i).getMovimento().trim().equalsIgnoreCase(movimento.trim()))) {\n\t\t\t\tlist.remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\tfor (MovimentoPorCanalDeVendaVO objLista : list) {\n\t\t\tif (objLista.getTipo().equalsIgnoreCase(\"Valor\")) {\n\t\t\t\tqtdValor++;\n\t\t\t} else if (objLista.getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\t\t\t\tqtdQuantidade++;\n\t\t\t}\n\t\t}\n\t\tint indiceElementoNaoEncontrado = 0;\n\t\tif (qtdValor != qtdQuantidade) {\n\n\t\t\tif (qtdValor > qtdQuantidade) {// Valor eh maior\n\t\t\t\touter: for (int i = 0; i < list.size(); i++) {\n\t\t\t\t\tif (list.get(i).getTipo().equalsIgnoreCase(\"Valor\")) {\n\n\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// System.out.print(\" 1 | \"\n\t\t\t\t\t\t// + list.get(i).getCanalDeVenda());\n\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\t\t\t\tint achou = -1;\n\t\t\t\t\t\t\tif (list.get(j).getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\n\t\t\t\t\t\t\t\t// System.out.print(\" 2 | \"\n\t\t\t\t\t\t\t\t// + list.get(j).getCanalDeVenda());\n\t\t\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\t\t\tif (list.get(i).getCanalDeVenda().equals(list.get(j).getCanalDeVenda())) {\n\t\t\t\t\t\t\t\t\tachou = j;\n\t\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (j == list.size() - 1 && achou == -1) {\n\t\t\t\t\t\t\t\t\tindiceElementoNaoEncontrado = i;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tString[] meses = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\t\t\tMovimentoPorCanalDeVendaVO canalVendaVazio = new MovimentoPorCanalDeVendaVO();\n\t\t\t\tcanalVendaVazio.setCanalDeVenda(list.get(indiceElementoNaoEncontrado).getCanalDeVenda());\n\t\t\t\tcanalVendaVazio.setProduto(list.get(indiceElementoNaoEncontrado).getProduto());\n\t\t\t\tcanalVendaVazio.setTipo(\"Quantidade\");\n\t\t\t\tcanalVendaVazio.setMeses(meses);\n\n\t\t\t\tlist.add(((list.size() + 1) / 2 + indiceElementoNaoEncontrado), canalVendaVazio);// aqui\n\t\t\t\t/* estou ordenando tudo que é tipo 'Valor' antes de 'Quantidade' */\n\t\t\t} else {// Qtd eh maior\n\t\t\t\touter: for (int i = 0; i < list.size(); i++) {\n\t\t\t\t\tif (list.get(i).getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\n\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// System.out.print(\" 1 | \"\n\t\t\t\t\t\t// + list.get(i).getCanalDeVenda());\n\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\t\t\t\tint achou = -1;\n\t\t\t\t\t\t\tif (list.get(j).getTipo().equalsIgnoreCase(\"Valor\")) {\n\n\t\t\t\t\t\t\t\t// System.out.print(\" 2 | \"+\n\t\t\t\t\t\t\t\t// list.get(j).getCanalDeVenda());\n\t\t\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\t\t\tif (list.get(i).getCanalDeVenda().equals(list.get(j).getCanalDeVenda())) {\n\t\t\t\t\t\t\t\t\tachou = j;\n\t\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (j == list.size() - 1 && achou == -1) {\n\t\t\t\t\t\t\t\t\tindiceElementoNaoEncontrado = i;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tString[] meses = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\t\t\tMovimentoPorCanalDeVendaVO canalVendaVazio = new MovimentoPorCanalDeVendaVO();\n\t\t\t\tcanalVendaVazio.setCanalDeVenda(list.get(indiceElementoNaoEncontrado).getCanalDeVenda());\n\t\t\t\tcanalVendaVazio.setProduto(list.get(indiceElementoNaoEncontrado).getProduto());\n\t\t\t\tcanalVendaVazio.setTipo(\"Valor\");\n\t\t\t\tcanalVendaVazio.setMeses(meses);\n\n\t\t\t\tlist.add(((list.size() + 1) / 2 + indiceElementoNaoEncontrado), canalVendaVazio);// aqui\n\t\t\t\t/* estou ordenando tudo que é tipo 'Valor' antes de 'Quantidade' */\n\n\t\t\t}\n\n\t\t}\n\n\t\t/*\n\t\t * ===Primeiro crio os objetos com os totais=========\n\t\t */\n\t\tfor (MovimentoPorCanalDeVendaVO emi : list) {\n\n\t\t\tif (emi.getTipo().equals(\"Valor\")) {\n\n\t\t\t\tfor (int i = 0; i < emi.getMeses().length; i++) {\n\t\t\t\t\tmesesTotaisValor[i] = new BigDecimal(mesesTotaisValor[i]).add(new BigDecimal(emi.getMeses()[i]))\n\t\t\t\t\t\t\t.toString();\n\t\t\t\t}\n\n\t\t\t} else if (emi.getTipo().equals(\"Quantidade\")) {\n\n\t\t\t\tfor (int i = 0; i < emi.getMeses().length; i++) {\n\t\t\t\t\tmesesTotaisQuantidade[i] = Integer.toString(\n\t\t\t\t\t\t\t(Integer.parseInt(mesesTotaisQuantidade[i]) + Integer.parseInt(emi.getMeses()[i])));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tanoTotal = emi.getAno();\n\t\t\tprodutoTotal = emi.getProduto();\n\n\t\t}\n\n\t\tMovimentoPorCanalDeVendaVO totalValor = new MovimentoPorCanalDeVendaVO();\n\t\tMovimentoPorCanalDeVendaVO totalQuantidade = new MovimentoPorCanalDeVendaVO();\n\n\t\ttotalValor.setCanalDeVenda(\"Total\");\n\t\ttotalValor.setProduto(produtoTotal);\n\t\ttotalValor.setTipo(\"Valor\");\n\t\ttotalValor.setAno(anoTotal);\n\t\ttotalValor.setMeses(mesesTotaisValor);\n\t\tlistTotal.add(totalValor);\n\n\t\ttotalQuantidade.setCanalDeVenda(\"Total\");\n\t\ttotalQuantidade.setProduto(produtoTotal);\n\t\ttotalQuantidade.setTipo(\"Quantidade\");\n\t\ttotalQuantidade.setAno(anoTotal);\n\t\ttotalQuantidade.setMeses(mesesTotaisQuantidade);\n\t\tlistTotal.add(totalQuantidade);\n\n\t\t/*\n\t\t * ===Agora calculo os percentuais=========\n\t\t */\n\n\t\tfinal int VALOR = 0;\n\t\tfinal int QUANTIDADE = 1;\n\n\t\tDecimalFormat percentForm = new DecimalFormat(\"0.00%\");\n\t\tDecimalFormat roundForm = new DecimalFormat(\"0.00\");\n\t\tUteis uteis = new Uteis();\n\t\tList<MovimentoPorCanalDeVendaVO> listFinal = new ArrayList<MovimentoPorCanalDeVendaVO>();\n\n\t\tfor (int i = 0; i < list.size() / 2; i++) {\n\t\t\tMovimentoPorCanalDeVendaVO emissaoValor = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===VALOR==== */\n\t\t\temissaoValor.setCanalDeVenda(list.get(i).getCanalDeVenda());\n\t\t\temissaoValor.setTipo(list.get(i).getTipo());\n\t\t\temissaoValor.setMeses(list.get(i).getMeses());\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoValorPercent = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===%=VALOR==== */\n\t\t\temissaoValorPercent.setCanalDeVenda(list.get(i).getCanalDeVenda());\n\t\t\temissaoValorPercent.setTipo(\"% \" + list.get(i).getTipo());\n\n\t\t\tString[] mesesPercentValor = new String[12];\n\t\t\tfor (int k = 0; k < list.get(i).getMeses().length; k++) {\n\n\t\t\t\ttry {\n\t\t\t\t\tdouble total = Double.parseDouble(new BigDecimal(list.get(i).getMeses()[k])\n\t\t\t\t\t\t\t.divide(new BigDecimal(listTotal.get(VALOR).getMeses()[k]), 5, RoundingMode.HALF_DOWN)\n\t\t\t\t\t\t\t.toString());\n\t\t\t\t\tmesesPercentValor[k] = percentForm.format(total);\n\n\t\t\t\t} catch (ArithmeticException e) {\n\t\t\t\t\tmesesPercentValor[k] = \"0%\";\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\temissaoValorPercent.setMeses(mesesPercentValor);\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoQuantidade = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===QUANTIDADE==== */\n\t\t\tint j = list.size() / 2;\n\t\t\temissaoQuantidade.setCanalDeVenda(list.get(j + i).getCanalDeVenda());\n\t\t\temissaoQuantidade.setTipo(list.get(j + i).getTipo());\n\t\t\temissaoQuantidade.setMeses(list.get(j + i).getMeses());\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoQuantidadePercent = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===%=QUANTIDADE==== */\n\t\t\temissaoQuantidadePercent.setCanalDeVenda(list.get(j + i).getCanalDeVenda());\n\t\t\temissaoQuantidadePercent.setTipo(\"% \" + list.get(j + i).getTipo());\n\n\t\t\tString[] mesesPercentQuantidade = new String[12];\n\t\t\tfor (int k = 0; k < list.get(j + i).getMeses().length; k++) {\n\n\t\t\t\ttry {\n\n\t\t\t\t\tdouble total = Double.parseDouble(list.get(j + i).getMeses()[k])\n\t\t\t\t\t\t\t/ Double.parseDouble(listTotal.get(QUANTIDADE).getMeses()[k]);\n\t\t\t\t\tmesesPercentQuantidade[k] = percentForm\n\t\t\t\t\t\t\t.format(Double.toString(total).equalsIgnoreCase(\"NaN\") ? 0.0 : total);\n\n\t\t\t\t} catch (ArithmeticException e) {\n\t\t\t\t\tmesesPercentQuantidade[k] = \"0%\";\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\temissaoQuantidadePercent.setMeses(mesesPercentQuantidade);\n\n\t\t\tString[] valorFormatado = new String[12];\n\t\t\tfor (int k = 0; k < emissaoValor.getMeses().length; k++) {\n\t\t\t\tvalorFormatado[k] = uteis\n\t\t\t\t\t\t.insereSeparadoresMoeda(roundForm.format(Double.parseDouble(emissaoValor.getMeses()[k])));\n\n\t\t\t}\n\t\t\temissaoValor.setMeses(valorFormatado);\n\n\t\t\tString[] valorFormatado2 = new String[12];\n\t\t\tfor (int k = 0; k < emissaoQuantidade.getMeses().length; k++) {\n\t\t\t\tvalorFormatado2[k] = uteis.insereSeparadores(emissaoQuantidade.getMeses()[k]);\n\t\t\t}\n\t\t\temissaoQuantidade.setMeses(valorFormatado2);\n\n\t\t\tlistFinal.add(emissaoValor);\n\t\t\tlistFinal.add(emissaoValorPercent);\n\t\t\tlistFinal.add(emissaoQuantidade);\n\t\t\tlistFinal.add(emissaoQuantidadePercent);\n\n\t\t}\n\n\t\treturn listFinal;\n\n\t}", "protected boolean puedeDisparar(int tamanoBala) {\n return municion >= tamanoBala;\n }", "@Test\n public void nao_deve_aceitar_tamanho_telefone_fixo_com_menos_de_8_numeros() {\n telefone.setTamanho(7);\n assertFalse(isValid(telefone, \"O tamanho do telefone não pode ser menor que 8.\", Find.class));\n }", "private boolean hayCamposVacios() {\r\n\t\tif(nomTextField.getText().isEmpty()\r\n\t\t\t|| claveTextField.getText().isEmpty()\r\n\t\t\t\t|| reingresoTextField.getText().isEmpty()\r\n\t\t\t\t\t|| preguntaTextField.getText().isEmpty()\r\n\t\t\t\t\t\t|| respuestaTextField.getText().isEmpty())\r\n\t\t\treturn true;\t\t\r\n\t\treturn false;\r\n\t}", "private void verificarDatos(int fila) {\n try {\n colValidada = -1;\n\n float cantidad = 1;\n float descuento = 0;\n float precio = 1;\n float stock = 1;\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colCantidad) != null) {\n cantidad = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colCantidad).toString());\n }\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colPrecioConIGV) != null) {\n precio = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colPrecioConIGV).toString());\n }\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colDescuento) != null) {\n descuento = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colDescuento).toString());\n }\n\n if (precio < 0) {\n JOptionPane.showMessageDialog(this, \"el precio debe ser mayor a cero\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colPrecioConIGV);\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colImporSinDesc);\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colImporSinDescConIgv);\n colValidada = oCLOrdenCompra.colPrecioConIGV;\n return;\n }\n\n if (descuento > cantidad * precio) {\n JOptionPane.showMessageDialog(this, \"El descuento no puede ser mayor al Importe Bruto\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colDescuento);\n descuento = 0;\n TblOrdenCompraDetalle.setValueAt(CLRedondear.Redondear((cantidad * precio) - descuento, 2), fila, oCLOrdenCompra.colImporConDesc);//con\n oCLOrdenCompra.CalcularSubtotales();\n oCLOrdenCompra.calcularImportes();\n\n colValidada = oCLOrdenCompra.colDescuento;\n return;\n }\n\n if (descuento < 0) {\n JOptionPane.showMessageDialog(this, \"El descuento no puede ser menor a cero\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colDescuento);\n descuento = 0;\n TblOrdenCompraDetalle.setValueAt(CLRedondear.Redondear((cantidad * precio) - descuento, 2), fila, oCLOrdenCompra.colImporConDesc);//con\n colValidada = oCLOrdenCompra.colDescuento;\n return;\n }\n\n if (cantidad <= 0) {\n JOptionPane.showMessageDialog(this, \"La cantidad debe ser mayor a cero\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colCantidad);\n colValidada = oCLOrdenCompra.colCantidad;\n return;\n }\n /* if(precio<=0)\n {\n JOptionPane.showMessageDialog(null,\"El precio tiene q ser mayor a cero\");\n colValidada=oCLOrdenCompra.colPrecio;\n return;\n }*/\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colStock) != null) {\n stock = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colStock).toString());\n }\n if (cantidad > stock) {\n /* JOptionPane.showMessageDialog(null,\"La cantidad no debe ser mayor al stock disponible\");\n TblOrdenCompraDetalle.setValueAt(null, fila,oCLOrdenCompra.colCantidad);\n colValidada=oCLOrdenCompra.colCantidad;\n return;*/\n }\n\n int col = TblOrdenCompraDetalle.getSelectedColumn();\n if (!eventoGuardar) {\n if (col == oCLOrdenCompra.colCantidad) {\n oCLOrdenCompra.calcularPrecio(fila);\n }\n }\n\n } catch (Exception e) {\n cont++;\n System.out.println(\"dlgGestionOrdenCompra-metodo Verificar datos: \"+e);\n }\n }", "public boolean validarIngresosUsuario_interno(JTextField motivoTF, JTextField detalleTF,\n\t\t\tJTextField montoTF){\n\t\t\n\t\tif(!validarDouble(montoTF.getText())) return false;\n\t\tif(montoTF.getText().length() >30) return false;\n\t\tif(!validarInt(motivoTF.getText())) return false;\n\t\tif(motivoTF.getText().length() >30) return false;\n\t\tif(detalleTF.getText().equals(\"\")) return false;\n\t\tif(detalleTF.getText().length() >100) return false;\n\t\t//if(numero < 0) return false;\n\t\tif(numero_double < 0) return false;\n\t\n\t\treturn true;\n\t}", "private void enviarRequisicaoPalpite() {\n if (servidor.verificarPalpitar(nomeJogador)) {\n String palpite = NomeDialogo.nomeDialogo(null, \"Informe o seu palpite\", \"Digite o seu palpite:\", false);\n if (palpite != null && !servidor.palpitar(nomeJogador, Integer.parseInt(palpite))) {\n JanelaAlerta.janelaAlerta(null, \"Este palpite já foi dado!\", null);\n }\n }\n }", "public String validarObrigatoriedadeCampos(String nome, int radioSelecionado){\n if(nome.isEmpty()) {\n return context.getString(R.string.msg_cadastrar_receita_obrigatorio_nome);\n }\n else if(radioSelecionado < 0) {\n return context.getString(R.string.msg_cadastrar_receita_obrigatorio_tipo);\n }\n\n return null;\n }", "int isProduitFormateUniteValide(ProduitFormate produitFormate, Uniteproduit uniteproduit);", "private boolean correcto() {\r\n return (casillas.size()>numCasillaCarcel); //&&tieneJuez\r\n }", "private void cargaComboBoxTipoGrano() {\n Session session = Conexion.getSessionFactory().getCurrentSession();\n Transaction tx = session.beginTransaction();\n\n Query query = session.createQuery(\"SELECT p FROM TipoGranoEntity p\");\n java.util.List<TipoGranoEntity> listaTipoGranoEntity = query.list();\n\n Vector<String> miVectorTipoLaboreo = new Vector<>();\n for (TipoGranoEntity tipoGrano : listaTipoGranoEntity) {\n miVectorTipoLaboreo.add(tipoGrano.getTgrNombre());\n cbxSemillas.addItem(tipoGrano);\n\n// cboCampania.setSelectedItem(null);\n }\n tx.rollback();\n }", "@Override\n public boolean isTipoValido() {\n return true;\n }", "public boolean validar_ingresoUsuario_inasistencia(ArrayList<JTextField> ar){\n\t\t\tfor(JTextField tf : ar){\n\t\t\t\t\n\t\t\t\tif(!validarInt(tf.getText())) return false;\n\t\t\t\tif(tf.getText().length() >30) return false;\n\t\t\t\t//if(numero < 0) return false;\n\t\t\t\tif(numero < 0) return false;\n\t\t\t}\n\t\t\n\t\treturn true;\n\t}", "public boolean isSetCoResultadoExameFundoOlho() {\n return EncodingUtils.testBit(__isset_bitfield, __CORESULTADOEXAMEFUNDOOLHO_ISSET_ID);\n }", "private void carregarComboMarca(){\r\n\t\tMarcaEquipamentoDAO marcaDAO = new MarcaEquipamentoDAO(FormEquipamento.this);\r\n\t\tlistaCombo = marcaDAO.listar() ;\r\n\t\tif (!listaCombo.isEmpty()){\r\n\t\t\tArrayAdapter<MarcaEquipamento> adaptador = new ArrayAdapter<MarcaEquipamento>(FormEquipamento.this , \r\n\t\t\t\t\tandroid.R.layout.simple_spinner_item, \r\n\t\t\t\t\tlistaCombo );\r\n\t\t\tadaptador.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\r\n\t\t\tcomboMarca.setAdapter(adaptador);\r\n\t\t}\r\n\t}", "public void verComprobante() {\r\n if (tab_tabla1.getValorSeleccionado() != null) {\r\n if (!tab_tabla1.isFilaInsertada()) {\r\n Map parametros = new HashMap();\r\n parametros.put(\"ide_cnccc\", Long.parseLong(tab_tabla1.getValorSeleccionado()));\r\n parametros.put(\"ide_cnlap_debe\", p_con_lugar_debe);\r\n parametros.put(\"ide_cnlap_haber\", p_con_lugar_haber);\r\n vpdf_ver.setVisualizarPDF(\"rep_contabilidad/rep_comprobante_contabilidad.jasper\", parametros);\r\n vpdf_ver.dibujar();\r\n } else {\r\n utilitario.agregarMensajeInfo(\"Debe guardar el comprobante\", \"\");\r\n }\r\n\r\n } else {\r\n utilitario.agregarMensajeInfo(\"No hay ningun comprobante seleccionado\", \"\");\r\n }\r\n }", "public void buscarPessoa(){\n\t\tstrCelular = CareFunctions.limpaStrFone(strCelular);\n\t\t System.out.println(\"Preparar \" + strCelular);//\n\t\t \n\t\tif (strCelular.trim().length() > 0){\n\t\t\tSystem.out.println(\"Buscar \" + strCelular);//\n\t\t\tList<Usuario> lstusuario = usuarioDAO.listPorcelular(strCelular);\n\t\t\tSystem.out.println(\"Buscou \" + lstusuario.size());\n\t\t\tsetBooIdentifiquese(false);\n\t\t\tif (lstusuario.size() > 0){\n\t\t\t\tusuario = lstusuario.get(0);\n\t\t\t\tsetBooSelecionouUsuario(true);\n\t\t\t}else{\n\t\t\t\tsetBooSelecionouUsuario(false);\t\t\t\t\n\t\t\t\tsetBooCadastrandose(true);\n\t\t\t\tusuario = new Usuario();\n\t\t\t\tusuario.setUsu_celular(strCelular);\n\t\t\t}\n\t\t\tFacesContext.getCurrentInstance().addMessage(\n\t\t\t\t\tnull,\n\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\t\t\"Ahoe\", \"Bem Vindo\"));\t\n\t\t}else{\n\t\t\tSystem.out.println(\"Buscar \" + strCelular);//\n\t\t\tFacesContext.getCurrentInstance().addMessage(\n\t\t\t\t\tnull,\n\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\t\t\"Você deve informar o Celular\", \"Não foi possível pesquisar\"));\t\t\t\n\t\t}\n\t}", "public boolean isSetNumPoliza() {\r\n return this.numPoliza != null;\r\n }", "public void validorolin() {\n if (roli.equals(\"Menaxher\")) {\n madministrimi.setVisible(false);\n }\n\n }", "public static String chequeoCampos (JTextField nombre, JTextField apellido, \r\n JTextField cedula, JTextArea Direccion, JTextField email,\r\n JPasswordField password, JPasswordField comprobacion,\r\n JLabel errorCampos, JTextField username, JDateChooser DoB, VentanaBase ventana) {\n\t\t\r\n\t\tint errores = 0;\r\n String pass1 = \"0\", pass2 = \"0\";\r\n\t\t\r\n\t\tif (nombre.getText().equals(\"\") || apellido.getText().equals(\"\") || email.getText().equals(\"\") || comprobacion.getPassword().equals(\"\")\r\n\t\t\t\t || password.getPassword().equals(\"\") || comprobacion.getPassword().equals(\"\")) { //Si algun campo est� lleno, debe mostrar la etiqueta de error\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\terrorCampos.setVisible(true); //Con esto habilita la etiqueta de error\r\n errorCampos.setText(\"Campos incompletos, por favor revise nuevamente.\");\r\n\t\t\t\terrorCampos.setForeground(Color.red); // Y la pone en color rojo\t\r\n\t\t\t\terrores++;\r\n \r\n pass1 = password.getText();\r\n pass2 = comprobacion.getText();\r\n\t\t\t\r\n\t\t}\r\n\t \t \r\n\t\t//if (!password.getPassword().equals(comprobacion.getPassword())) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n if (!pass1.equals(pass2)) {\r\n\t\t\t if (!password.getPassword().equals(\"\")) {\r\n\t\t\t\terrorCampos.setText(\"Campos incompletos, por favor revise nuevamente.\");\t\t\t\t\t\r\n\t\t\t\terrorCampos.setVisible(true); //Con esto habilita la etiqueta de error\r\n\t\t\t\terrorCampos.setForeground(Color.red); // Y la pone en color rojo\r\n\t\t\t\terrores++;\r\n\t\t\t\t\r\n\t\t\t }\r\n\t\t}\r\n\t\t\r\n\t\tif ((password.getPassword().length < 4 || password.getPassword().length > 12) && password.getPassword().equals(\"\")){ \r\n\t\t\t//Si la contrase�a tiene entre 4 y 12 caracteres.\r\n\t\t\t\r\n //REVISAR AQUI, CORRECCION??\r\n\t\t\terrorCampos.setText(\"La contrasena debe tener entre 4 y 12 caracteres\");\r\n\t\t\terrorCampos.setVisible(true); //Con esto habilita la etiqueta de error\r\n\t\t\terrorCampos.setForeground(Color.red); // Y la pone en color rojo\r\n\t\t\terrores++;\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(pass1+ \" ---> \" + pass2 + \" \" + password.getText());\r\n\t\t\r\n\t\tif (errores > 0) {\r\n\t\t return (\"ErrorSistema\"); }\r\n\t\telse {\r\n \r\n //Si entra por aca, todo está en orden y procederá a registrar al usuario\r\n \r\n \r\n RegistroUsuario( nombre.getText(), apellido.getText(), \r\n cedula.getText(), username.getText(), password.getText(), \r\n email.getText(), DoB.getDate(), Direccion.getText());\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\treturn (\"RegistroAprobado\");\r\n\t\t\t}", "private boolean checkData() {\n if (txtMaMay.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(this, \"Mã máy không được để trống!\\n\"\n + \"Quy tắc đặt tên mã máy: số hiệu máy+mã phòng\");\n return false;\n } else if (txtcauhinh.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(this, \"Cấu hình máy không được để trống!\");\n return false;\n } else if (txtTinhtrang.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(this, \"Tình trạng máy không được để trống!\");\n return false;\n } else if (txtphanmem.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(this, \"Mã phòng không được để trống!\");\n return false;\n }\n return true;\n }", "public void validarLocalidad(ActionEvent e) {\n CommandButton botonSelecionado = (CommandButton) e.getSource();\n\n // if (this.getPersona().getLugarNacimiento() != null) {\n //this.setsDireccion(this.getPersona().getLugarNacimiento().getDepartamento().getDescripcion() + \", \" + this.getPersona().getLugarNacimiento().getDescripcion());\n RequestContext context = RequestContext.getCurrentInstance();\n\n if (botonSelecionado.getId().equals(\"cbDomicilio\")) {\n context.execute(\"PF('dgDomicilio').hide();\");\n context.update(\":frmPri:pnDomicilio\");\n }\n\n// } else {\n// FacesMessage fm = new FacesMessage(FacesMessage.SEVERITY_INFO, \"No seleccionó localidad!!\\n \"\n// + \"si no existe, comuniquese con el administrador\", null);\n// FacesContext fc = FacesContext.getCurrentInstance();\n// fc.addMessage(null, fm);\n//\n//\n// }\n }", "public boolean tengoPropiedades(){\n return this.propiedades.size() > 0;\n }", "public boolean isSetCoResultadoRessonanciaMagnetica() {\n return EncodingUtils.testBit(__isset_bitfield, __CORESULTADORESSONANCIAMAGNETICA_ISSET_ID);\n }", "public boolean validarForm() throws Exception {\r\n\r\n tbxNro_identificacion\r\n .setStyle(\"text-transform:uppercase;background-color:white\");\r\n lbxNro_ingreso.setStyle(\"background-color:white\");\r\n tbxCodigo_prestador\r\n .setStyle(\"text-transform:uppercase;background-color:white\");\r\n tbxCodigo_diagnostico_principal\r\n .setStyle(\"text-transform:uppercase;background-color:white\");\r\n tbxCausa_muerte\r\n .setStyle(\"text-transform:uppercase;background-color:white\");\r\n lbxEstado_salida.setStyle(\"background-color:white\");\r\n dtbxFecha_ingreso.setStyle(\"background-color:white\");\r\n\r\n Admision admision = ((Admision) lbxNro_ingreso.getSelectedItem()\r\n .getValue());\r\n\r\n boolean valida = true;\r\n\r\n String mensaje = \"Los campos marcados con (*) son obligatorios\";\r\n\r\n if (tbxNro_identificacion.getText().trim().equals(\"\")) {\r\n tbxNro_identificacion\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n if (tbxCodigo_prestador.getText().trim().equals(\"\")) {\r\n tbxCodigo_prestador\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n if (admision == null) {\r\n lbxNro_ingreso.setStyle(\"background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n if (tbxCodigo_diagnostico_principal.getText().trim().equals(\"\")) {\r\n tbxCodigo_diagnostico_principal\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n\r\n if (lbxCausa_externa.getSelectedIndex() == 0) {\r\n lbxCausa_externa\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n\r\n if (valida) {\r\n if (lbxEstado_salida.getSelectedItem().getValue().equals(\"2\")\r\n && tbxCausa_muerte.getText().trim().equals(\"\")) {\r\n tbxCausa_muerte\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n mensaje = \"Usted selecciono el estado de la salida como muerto(a) \\npor lo tanto debe seleccionar la causa de muerte\";\r\n valida = false;\r\n }\r\n }\r\n\r\n if (valida) {\r\n if (!lbxEstado_salida.getSelectedItem().getValue().equals(\"2\")\r\n && !tbxCausa_muerte.getText().trim().equals(\"\")) {\r\n lbxEstado_salida.setStyle(\"background-color:#F6BBBE\");\r\n mensaje = \"Usted selecciono una casua de muerte \\npor lo tanto debe seleccionar el estado a la salida como muerto (a)\";\r\n valida = false;\r\n }\r\n }\r\n\r\n if (valida) {\r\n if (dtbxFecha_ingreso.getValue().compareTo(\r\n dtbxFecha_egreso.getValue()) > 0) {\r\n dtbxFecha_ingreso.setStyle(\"background-color:#F6BBBE\");\r\n mensaje = \"La fecha de ingreso no puede ser mayor a la fecha de egreso\";\r\n valida = false;\r\n }\r\n }\r\n\r\n if (!valida) {\r\n Messagebox.show(mensaje,\r\n usuarios.getNombres() + \" recuerde que...\", Messagebox.OK,\r\n Messagebox.EXCLAMATION);\r\n }\r\n\r\n return valida;\r\n }", "private boolean validarCampos() {\n\t\t// TODO Auto-generated method stub\n\t\tif (txtCedula.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese un numero de cedula\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtNombre.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese un nombre\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtApellidos.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese los apellidos\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtCorreo.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese el correo\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!Utilidades.validarEmailFuerte(txtCorreo.getText().trim())) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese un correo valido\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtDireccion.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese la direccion\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtTelefono.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese el numero de telefono\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtUsuario.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese el nombre de usuario\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtContrasenia.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese una contraseña\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean test_entry() {\n\t\tboolean t = false;\n\t\tdouble val = Double.parseDouble(numericfield.getText());\n\n\t\tif (val == opt) {\n\t\t\tt = true;\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Vous avez trouvé le bon parametre pour ce remede\");\n\t\t}\n\t\t// case init > opt ---> on doit diminuer la valeur !!!!\n\t\tif (init > opt) {\n\t\t\tif (init > val && val > opt)\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\"Vous allez dans le bon sens , continuez\");\n\t\t\tif (init > val && opt > val)\n\t\t\t\tJOptionPane\n\t\t\t\t\t\t.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\" Vous avez raté le parametre optimale et vous allez dans le mauvais sens\");\n\t\t\tif (val > init)\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\" Vous allez dans le mauvais sens\");\n\t\t}\n\n\t\t// case init < opt ---> on doit augmenter la valeur !!!!\n\t\tif (init < opt) {\n\t\t\tif (init < val && val < opt)\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\"Vous allez dans le bon sens , continuez\");\n\t\t\tif (init < val && opt < val)\n\t\t\t\tJOptionPane\n\t\t\t\t\t\t.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\" Vous avez raté le parametre optimale et vous allez dans le mauvais sens\");\n\t\t\tif (val < init)\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\" Vous allez dans le mauvais sens\");\n\t\t}\n\t\treturn t;\n\t}" ]
[ "0.6479267", "0.6207584", "0.6086954", "0.605187", "0.6017645", "0.59010404", "0.5826492", "0.57971406", "0.57473874", "0.5724452", "0.5717537", "0.56961083", "0.5678598", "0.56635636", "0.5599929", "0.5572977", "0.55635345", "0.55600315", "0.55583155", "0.5556062", "0.55300236", "0.551248", "0.55032635", "0.54921937", "0.5350549", "0.5348779", "0.5342936", "0.53429276", "0.53339833", "0.53284603", "0.53277856", "0.5306235", "0.52916104", "0.52839535", "0.52710646", "0.5255392", "0.52458733", "0.5234812", "0.5229986", "0.5229359", "0.5228981", "0.5228336", "0.5227412", "0.52216524", "0.5218165", "0.5212026", "0.52032495", "0.51987535", "0.518321", "0.51803523", "0.51757115", "0.5175656", "0.517399", "0.51627076", "0.51575387", "0.51531047", "0.51525146", "0.5123616", "0.5120817", "0.5112379", "0.5106673", "0.5102013", "0.50981015", "0.5091727", "0.5083417", "0.50732005", "0.5070987", "0.506921", "0.5066233", "0.5062576", "0.5061356", "0.50592047", "0.50581086", "0.5057748", "0.50526613", "0.5052041", "0.504451", "0.50437087", "0.50392807", "0.5034369", "0.5033556", "0.5030627", "0.5030161", "0.5026892", "0.50249636", "0.50209826", "0.5020903", "0.5020376", "0.50174695", "0.50167286", "0.5014246", "0.50078255", "0.50026196", "0.49928102", "0.4989876", "0.49898604", "0.49886832", "0.49843416", "0.49786216", "0.49772358" ]
0.73375726
0
Passa um Timestamp e retorna a HH:mm:ss como String
public static String getHoraMinutoSegundoTimestamp(Timestamp timestamp) { Long time = timestamp.getTime(); String retorno = new SimpleDateFormat("HH:mm:ss", new Locale("pt", "BR")).format(new Date(time)); return retorno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getTimestamp();", "java.lang.String getTimestamp();", "String getTimestamp();", "String getTimestamp();", "public static String timestamp()\n\t{\n\t\t/**\n\t\t * Get the current time formatted as HH:mm:ss.\n\t\t */\t\t\n\t\treturn new SimpleDateFormat(\"HH:mm:ss\").format(new Date());\n\t}", "public static String getTimestamp() {\r\n\t\t\r\n\t\treturn new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t}", "public static String getTimeStamp() {\r\n\r\n\t\tlong now = (System.currentTimeMillis() - startTime) / 1000;\r\n\r\n\t\tlong hours = (now / (60 * 60)) % 24;\r\n\t\tnow -= (hours / (60 * 60)) % 24;\r\n\r\n\t\tlong minutes = (now / 60) % 60;\r\n\t\tnow -= (minutes / 60) % 60;\r\n\r\n\t\tlong seconds = now % 60;\r\n\r\n\t return String.format(\"%02d:%02d:%02d\", hours, minutes, seconds);\r\n\t}", "private static String getTimeStamp()\r\n\t{\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd_HH.mm.ss\");\r\n\t\tDate date = new Date();\r\n\t\treturn dateFormat.format(date);\r\n\t}", "public static String getTimestamp() {\n\t\tCalendar cal = Calendar.getInstance();\n\t\t//define the format of time stamp\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\treturn sdf.format(cal.getTime());\n\n\t}", "public static String timestamp(){\n\t\tDate date = new Date();\n\t\tDateFormat hourdateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss \");\n\t\treturn hourdateFormat.format(date);\n\t}", "public String getTimeStamp() {\n return new SimpleDateFormat(\"dd.MM.yyyy HH.mm.ss\").format(new Date());\n }", "public static String getTime()\n {\n Date time = new Date();\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"HH:mm:ss\");\n return timeFormat.format(time);\n }", "public String getFormattedTimestamp() {\n\t\tDateFormat dateFormat = SimpleDateFormat.getDateTimeInstance();\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTimeInMillis(timestamp);\n\t\treturn dateFormat.format(cal.getTime());\n\t}", "public String getTimeStamp() {\n Calendar instance = Calendar.getInstance();\n SimpleDateFormat sdf = new SimpleDateFormat(\"MMM-dd-yyyy-HH:mm:ss:ms\");\n return sdf.format(instance.getTime());\n }", "@Override\n\tpublic String getTimestamp()\n\t{\n\t\treturn new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss.SSS\").format(new Date());\n\t}", "public String getFormattedTime(){\r\n\t\tlong timestampInMs = ((long) timestamp * 1000);\r\n\t\tmessageTimestampTimeFormat = new SimpleDateFormat(messageTimestampTimeFormatString, Locale.getDefault()); \t//Initialise the time object we will use\r\n\t\tmessageTimestampTimeFormat.setTimeZone(TimeZone.getDefault());\r\n\t\tString messageSentString = messageTimestampTimeFormat.format(new Date(timestampInMs));\r\n\t\treturn messageSentString;\r\n\t}", "static public String getTimeStamp(long timestamp) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy.MM.dd-HH:mm:ss\", Locale.US);\n return sdf.format(new Date(timestamp));\n }", "public String getTimestamp() \n{\n Calendar now = Calendar.getInstance();\n return String.format(\"20%1$ty-%1$tm-%1$td_%1$tHh%1$tMm%1$tSs\", now);\n}", "public String getTimeInString() {\n int minutes = (time % 3600) / 60;\n int seconds = time % 60;\n String timeString = String.format(\"%02d:%02d\", minutes, seconds);\n\n return timeString;\n }", "public String getTimestampString() throws SQLException {\n\t\tloadFromDB();\n\t\treturn DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM)\n\t\t\t\t\t.format(rev_timestamp);\n\t}", "private String getTimestamp() {\n return Calendar.getInstance().getTime().toString();\n }", "public static String getTimeString() {\n\t\treturn getTimeString(time);\n\t}", "String timeStamp() {\n\n\t\tCalendar now = Calendar.getInstance();\n\n\t\t String y = String.valueOf(now.get(now.YEAR));\n\t\t String mo = String.valueOf(now.get(now.MONTH)+1);\n\t\t String d = String.valueOf(now.get(now.DAY_OF_MONTH));\n\t\t String h = String.valueOf(now.get(now.HOUR_OF_DAY));\n\t\t String m = String.valueOf(now.get(now.MINUTE));\n\t\t String s = String.valueOf(now.get(now.SECOND));\n\t\t String ms = String.valueOf(now.get(now.MILLISECOND));\n\n\n\t return h + m + s + ms;\n\n\n\n }", "public static String getTimeStamp() {\n\t\tDate date = new Date();\n\t\treturn date.toString().replaceAll(\":\", \"_\").replaceAll(\" \", \"_\");\n\n\t}", "java.lang.String getTime();", "public static String getNowAsTimestamp() {\r\n\r\n DateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT_PATTERN);\r\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\r\n return dateFormat.format(new Date()).replaceAll(\"\\\\+0000\", \"Z\").replaceAll(\"([+-][0-9]{2}):([0-9]{2})\", \"$1$2\");\r\n }", "public String getTime() {\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tString time = dateFormat.format(cal.getTime());\n\t\t\treturn time;\n\t\t}", "public static String timestampTilStrengForKalender(Timestamp timestamp) {\r\n\t\tString dato = timestamp.toString();\r\n\t\tif (dato == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tString[] datoOgKlokke = dato.split(\" \");\r\n\t\tString[] fiksdatoen = datoOgKlokke[0].split(\"-\");\r\n\t\tString str = String.join(\"-\", fiksdatoen);\r\n\t\tString finalDato = str + \"T\" + datoOgKlokke[1];\r\n\t\treturn finalDato.substring(0, 16) + \":00\";\r\n\t}", "public static String timeStamp()\n {\n DateFormat format = new SimpleDateFormat(\"ddMMyyHHmmSS\");\n return format.format(new Date());\n }", "public String getTimeString() {\n DateFormat format = new SimpleDateFormat(\"HH:mm\");\n return format.format(mDate);\n }", "public String getCurrentTimeHourMinSec() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "private String getcurrentTimeStamp() {\n\t\tDateTimeFormatter format = DateTimeFormatter\n\t\t\t\t.ofPattern(RidGeneratorPropertyConstant.TIMESTAMP_FORMAT.getProperty());\n\t\treturn LocalDateTime.now().format(format);\n\t}", "public String getTimestamp() {\n Object ref = timestamp_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n timestamp_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getTime(){\r\n\t\tDate date = new GregorianCalendar().getTime();\r\n\r\n\t\tString time= new SimpleDateFormat(\"HH:mm:ss\").format(date.getTime());\r\n\t\t\r\n\t\treturn time;\r\n\t}", "public String getTimestamp() {\n Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n }\n }", "public String getCurrentDateTimeHourMinSec() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "public String getTimeStamp()\n\t{\n\t\tString timeStamp = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(Calendar.getInstance().getTime());\n\t\treturn timeStamp; \n\t}", "public String toString() {\n return this.time != null ? this.time.format(TIME_FORMATTER) : \"\";\n }", "public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getTime(){\n String mt=\"\";\n String hr=\"\";\n if(minute<10){\n mt=0+(String.valueOf(minute));\n }\n\n else{\n mt=String.valueOf(minute);\n }\n\n if(hour<10){\n hr=0+(String.valueOf(hour));\n }\n else{\n hr=String.valueOf(hour);\n }\n //return hour:minute\n return (hr+\":\"+mt);\n }", "public static String getPrintToTextTime() {\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n return sdf.format(System.currentTimeMillis());\n }", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "long getTimestamp();", "public static String createTimeStamp(){\n return new SimpleDateFormat( \"yyyy.MM.dd.HH.mm.ss\").format(new Date());\n }", "public static String getTime(LocalDateTime ldt)\n\t{\n\t\treturn ldt.getHour() + \":\" + ldt.getMinute() + \":\" + ldt.getSecond() + \",\" + ldt.getNano()/1000000;\n\t}", "public static String timestampToString(final Timestamp timestamp) {\n\t\tString s = String.valueOf(timestamp.getSeconds());\n\t\tif (timestamp.getNanos() != 0) {\n\t\t\ts += \".\" + timestamp.getNanos();\n\t\t}\n\t\treturn s;\n\t}", "public String getTimestamp()\n {\n return timestamp;\n }", "protected String toXSTime() {\n\t\treturn String.format(\"%s,%s,%s,%s\",\"{0:00}:{1:00}:{2:00}\",\n\t\t\t\tthis.getHours(), this\n\t\t\t\t.getMinutes(), this.getSeconds());\n\t}", "public static String getFormattedTime(long timestamp){\n\t\tif(timestamp != -1){\t\t\t\n\t\t\tDate date = new Date(timestamp); // *1000 is to convert seconds to milliseconds\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd.MM.YYYY - HH:mm:ss\"); // the format of your date\n\t\t\tsdf.setTimeZone(TimeZone.getTimeZone(\"GMT\")); // give a timezone reference for formating (see comment at the bottom\n\t\t\tString formattedDate = sdf.format(date);\n\t\t\treturn formattedDate;\n\t\t} \n\t\treturn \"no date available\";\n\t}", "public java.lang.String getTimestamp() {\n return timestamp;\n }", "public String getTime() {\n return String.format(\"%02d\", hours) + \":\" + String.format(\"%02d\", minutes);\n }", "public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n }\n }", "public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n }\n }", "public long getTimestamp();", "public long getTimestamp();", "public static String time_str(double t) {\n int hours = (int) t/3600;\n int rem = (int) t - hours*3600;\n int mins = rem / 60;\n int secs = rem - mins*60;\n return String.format(\"%02d:%02d:%02d\", hours, mins, secs);\n //return hoursMinutesSeconds(t);\n }", "public String getTimeString() {\n // Converts slot to the minute it starts in the day\n int slotTimeMins =\n SlopeManagerApplication.OPENING_TIME * 60 + SESSION_LENGTHS_MINS * getSlot();\n\n Calendar cal = Calendar.getInstance();\n cal.set(Calendar.HOUR_OF_DAY, slotTimeMins/60);\n cal.set(Calendar.MINUTE, slotTimeMins % 60);\n cal.set(Calendar.SECOND, 0);\n cal.set(Calendar.MILLISECOND, 0);\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm\");\n return sdf.format(cal.getTime());\n }", "public String formatTime() {\n if ((myGameTicks / 16) + 1 != myOldGameTicks) {\n myTimeString = \"\";\n myOldGameTicks = (myGameTicks / 16) + 1;\n int smallPart = myOldGameTicks % 60;\n int bigPart = myOldGameTicks / 60;\n myTimeString += bigPart + \":\";\n if (smallPart / 10 < 1) {\n myTimeString += \"0\";\n }\n myTimeString += smallPart;\n }\n return (myTimeString);\n }", "int getTimestamp();", "public String toString() {\n if (time != null) {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm\");\n return time.format(formatter);\n } else {\n return \"INVALID TIME\";\n }\n }", "public String getDateTimeInsertString(java.sql.Timestamp aTimestamp){\r\n return \"'\" + DBUtil.getDBDateTimeString(aTimestamp) + \"'\";\r\n }", "public String getSQLTimestampFormat();", "public java.lang.String getTimestamp() {\n return timestamp;\n }", "com.google.protobuf.Timestamp getSendTime();", "long getTimestamp();", "public final String get_mode_timestamp_as_string () {\n\t\treturn SimpleUtils.time_raw_and_string (mode_timestamp);\n\t}", "private String syncTimeStamp(String timestamp){\r\n StringBuilder dateBuilder = new StringBuilder(timestamp);\r\n String time = dateBuilder.toString().split(\"T\")[1].substring(0, 8);\r\n String[] timeArr = time.split(\":\");\r\n String seconds = timeArr[2];\r\n String dd = dateBuilder.toString().split(\"T\")[0].split(\"-\")[2];\r\n String mm = dateBuilder.toString().split(\"T\")[0].split(\"-\")[1];\r\n String yyyy = dateBuilder.toString().split(\"T\")[0].split(\"-\")[0];\r\n int hour = Integer.parseInt(timeArr[0]);\r\n int minutes = Integer.parseInt(timeArr[1]);\r\n minutes += 30;\r\n hour+=5;\r\n if (minutes>=60){\r\n hour += 1;\r\n minutes -= 60;\r\n }\r\n if (hour >= 24){\r\n hour -= 24;\r\n dd = Integer.toString(Integer.parseInt(dd) + 1);\r\n if (Integer.parseInt(dd) < 10)\r\n dd = \"0\" + dd;\r\n }\r\n String minutesString;\r\n if (minutes < 10)\r\n minutesString = \"0\" + Integer.toString(minutes);\r\n else\r\n minutesString = Integer.toString(minutes);\r\n\r\n String hoursString;\r\n if (hour < 10)\r\n hoursString = \"0\" + Integer.toString(hour);\r\n else\r\n hoursString = Integer.toString(hour);\r\n String finalTime = hoursString + \":\" + minutesString + \":\" + seconds;\r\n String finalDate = dd + \"-\" + mm + \"-\" + yyyy;\r\n\r\n return (finalDate + \" \" + finalTime);\r\n }", "private static String currentTimestamp()\r\n {\n \r\n long currentTime = System.currentTimeMillis();\r\n sCalendar.setTime(new Date(currentTime));\r\n \r\n String str = \"\";\r\n str += sCalendar.get(Calendar.YEAR) + \"-\";\r\n \r\n final int month = sCalendar.get(Calendar.MONTH) + 1;\r\n if (month < 10)\r\n {\r\n str += 0;\r\n }\r\n str += month + \"-\";\r\n \r\n final int day = sCalendar.get(Calendar.DAY_OF_MONTH);\r\n if (day < 10)\r\n {\r\n str += 0;\r\n }\r\n str += day;\r\n \r\n str += \"T\";\r\n \r\n final int hour = sCalendar.get(Calendar.HOUR_OF_DAY);\r\n if (hour < 10)\r\n {\r\n str += 0;\r\n }\r\n str += hour + \":\";\r\n \r\n final int minute = sCalendar.get(Calendar.MINUTE);\r\n if (minute < 10)\r\n {\r\n str += 0;\r\n }\r\n str += minute + \":\";\r\n \r\n final int second = sCalendar.get(Calendar.SECOND);\r\n if (second < 10)\r\n {\r\n str += 0;\r\n }\r\n str += second + \".\";\r\n \r\n final int milli = sCalendar.get(Calendar.MILLISECOND);\r\n str += milli;\r\n \r\n str += \"Z\";\r\n \r\n return str;\r\n }", "public String getTimeStamp() {\n return timeStamp;\n }", "public java.lang.String getTimeStamp(){\r\n return localTimeStamp;\r\n }", "public String getTimeString() {\n int hour = date.get(Calendar.HOUR);\n int minute = date.get(Calendar.MINUTE);\n\n String AM_PM = \"PM\";\n if (date.get(Calendar.AM_PM) == Calendar.AM) AM_PM = \"AM\";\n\n String hour_fixed = String.valueOf(hour);\n if (hour == 0) hour_fixed = \"12\";\n\n String minute_fixed = String.valueOf(minute);\n while (minute_fixed.length() < 2) {\n minute_fixed = \"0\" + minute_fixed;\n }\n\n return hour_fixed + \":\" + minute_fixed + ' ' + AM_PM;\n }", "public String getTimeString(){\n StringBuilder sBuilder = new StringBuilder();\n sBuilder.append(hourPicker.getValue())\n .append(':')\n .append(minutePicker.getValue())\n .append(':')\n .append(secondsPicker.getValue())\n .append('.')\n .append(decimalPicker.getValue());\n return sBuilder.toString();\n }", "public String getTime() {\n return dateTime.format(c.getTime());\n }", "public static String getNowTime(){\r\n\t\tDate date = new Date();\r\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\tString time = format.format(date);\r\n\t\treturn time;\r\n\t}", "public static String getNowTimeHHMM() {\n\t\tSimpleDateFormat timeFormat = new SimpleDateFormat(\"HH:mm\");\n\t\treturn timeFormat.format(new Date());\n\t}", "public static String timestamp() {\n\t\tString t = new SimpleDateFormat(\"yyyy-MM-dd HH-mm-ss\").format(new Date());\n\t\t// File f=new\n\t\t// File(String.format(\"%s.%s\",t,RandomStringUtils.randomAlphanumeric(8)));\n\t\tSystem.out.println(\"Time is :\" + t);\n\t\treturn t;\n\t}", "public String getTime() {\n return time;\n }", "@SimpleFunction(description = \"Gets the current time.\"\n + \"It is formatted correctly for iSENSE\")\n public String GetTime() {\n Calendar cal = Calendar.getInstance();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\");\n return sdf.format(cal.getTime()).toString();\n }", "Long timestamp();", "public String getTime(){\n return time;\n }", "public String timeToString() {\n\t\tString start = \"\";\n\t\tString hmSep = \":\";\n\t\tString msSep = \":\";\n\t\tif (hour < 10)\n\t\t\tstart = new String(\"0\");\n\t\tif (minute < 10)\n\t\t\thmSep = new String(\":0\");\n\t\tif (second < 10)\n\t\t\tmsSep = new String(\":0\");\n\t\treturn new String(start\n\t\t\t\t+ hour + hmSep\n\t\t\t\t+ minute + msSep\n\t\t\t\t+ second);\n\t}", "@Override\n\tpublic String toString() {\n\t\tLocalTime lT = LocalTime.of(hour, minute);\n\t\tDateTimeFormatter.ofPattern(\"hh:mm\").format(lT);\n\t\treturn lT.toString() + \" \" + timeType;\n\t}", "com.google.protobuf.Timestamp getTimestamp();", "private static String getStamp() {\n\t\t\t return new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t\t}", "public String getTimeString()\n\t{\n\t\treturn TimeUtils.getTimeString(this.timesCurrentMillis);\n\t}" ]
[ "0.79843545", "0.79843545", "0.7696338", "0.7696338", "0.7603203", "0.7474105", "0.7451186", "0.74363315", "0.7387218", "0.7298683", "0.7169296", "0.7132048", "0.7119116", "0.70955753", "0.7077651", "0.7057535", "0.70389843", "0.6995065", "0.6981731", "0.6967791", "0.696339", "0.69481236", "0.6901706", "0.6895713", "0.6889541", "0.68861914", "0.6859514", "0.6813378", "0.6803339", "0.68015087", "0.6797761", "0.67790323", "0.677675", "0.6752944", "0.6746978", "0.6734628", "0.67122054", "0.6707804", "0.6698749", "0.6698749", "0.6698263", "0.66959006", "0.6695537", "0.6695537", "0.6695537", "0.6695537", "0.6695537", "0.6695537", "0.6695537", "0.6695537", "0.6695537", "0.6695537", "0.6695537", "0.6695537", "0.6695537", "0.6695537", "0.6695537", "0.6695537", "0.66904473", "0.6686018", "0.6664444", "0.6645647", "0.66406715", "0.6633282", "0.6604493", "0.66003704", "0.65863085", "0.65863085", "0.6584359", "0.6584359", "0.6568572", "0.65556616", "0.65554494", "0.6546679", "0.65446377", "0.654308", "0.6542344", "0.6532554", "0.6523036", "0.65111196", "0.65067697", "0.6499607", "0.64638025", "0.64613676", "0.64574516", "0.6457358", "0.64458823", "0.6440809", "0.64376915", "0.6434106", "0.6433338", "0.6419579", "0.6410421", "0.6410379", "0.6409696", "0.6407614", "0.6400703", "0.6397832", "0.6384609", "0.63782465" ]
0.72803736
10
Formata um bigDecimal para String tirando os pontos.
public static String formatarBigDecimalParaStringComVirgula(BigDecimal valor) { String valorItemAnterior = "" + valor; valorItemAnterior = valorItemAnterior.replace(".", ","); return valorItemAnterior; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String bigDecimalToString(BigDecimal bd) {\n BigDecimal cur = bd.stripTrailingZeros();\n StringBuilder sb = new StringBuilder();\n\n for (int numConverted = 0; numConverted < MAX_CHARS; numConverted++) {\n cur = cur.multiply(ONE_PLACE);\n int curCodePoint = cur.intValue();\n if (0 == curCodePoint) {\n break;\n }\n\n cur = cur.subtract(new BigDecimal(curCodePoint));\n sb.append(Character.toChars(curCodePoint));\n }\n\n return sb.toString();\n }", "public String addDecimal();", "@Test\n public void test_conversion_of_big_decimal_value() {\n String className = \"ClipboardPageWithBigDecimal\";\n\n ClipboardPage page = api.createPage(className, \"\");\n BigDecimal expected = new BigDecimal(\"223355771111.1313\");\n page.getProperty(\"bigDecimalField\").setValue(expected);\n\n Schema pageSchema = SchemaBuilder\n .record(className)\n .fields()\n .name(\"bigDecimalField\").type().stringType().noDefault()\n .endRecord();\n\n // When\n GenericRecord record = converter.convertClipboardPageToGenericRecord(page, pageSchema);\n\n // Then\n assertEquals(\"223355771111.1313\", record.get(\"bigDecimalField\"));\n }", "public static String formatG(BigDecimal b) {\n\t\tString s = format(b);\n\t\tchar[] charArray = s.toCharArray();\n\t\tStringBuffer sb = new StringBuffer();\n\t\tint cnt = -1;\n\t\tif (!s.contains(\".\")) {\n\t\t\tcnt = 0;\n\t\t}\n\t\tfor (int i = charArray.length - 1; i > -1; i--) {\n\t\t\tchar c = charArray[i];\n\t\t\tsb.append(c);\n\t\t\tif ('.' == c) {\n\t\t\t\tcnt = 0;\n\t\t\t} else if (cnt >= 0) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t\tif (cnt == 3 && i != 0) {\n\t\t\t\tsb.append(\",\");\n\t\t\t\tcnt = 0;\n\t\t\t}\n\t\t}\n\t\treturn sb.reverse().toString();\n\t}", "private static String canonicalDecimalStr_X(BigDecimal d) {\n String x = d.toPlainString() ;\n\n // The part after the \".\"\n int dotIdx = x.indexOf('.') ;\n if ( dotIdx < 0 )\n // No DOT.\n return x+\".0\";\n\n // Has a DOT.\n int i = x.length() - 1 ;\n // dotIdx+1 to leave at least \".0\"\n while ((i > dotIdx + 1) && x.charAt(i) == '0')\n i-- ;\n if ( i < x.length() - 1 )\n // And trailing zeros.\n x = x.substring(0, i + 1) ;\n // Avoid replaceAll as it is expensive.\n // Leading zeros.\n int j = 0;\n for ( ; j < x.length() ; j++ ) {\n if ( x.charAt(j) != '0')\n break;\n }\n // At least one zero before dot.\n if ( j == dotIdx )\n j--;\n if ( j > 0 )\n x = x.substring(j, x.length());\n return x;\n }", "public String getModifiedNumber(BigDecimal bd) {\r\n String str = \"\";\r\n String temp = \"\";\r\n str = bd.toString();\r\n double num = Double.parseDouble(str);\r\n double doubleVal;\r\n\r\n NumberFormat nFormat = NumberFormat.getInstance(Locale.US);\r\n nFormat.setMaximumFractionDigits(1);\r\n nFormat.setMinimumFractionDigits(1);\r\n\r\n /*\r\n * if ((num / getPowerOfTen(12)) > 0.99) // check for Trillion {\r\n * doubleVal = (num / getPowerOfTen(12)); temp =\r\n * String.valueOf(truncate(doubleVal)) + \"Tn\"; } else if ((num /\r\n * getPowerOfTen(9)) > 0.99) // check for Billion { doubleVal = (num /\r\n * getPowerOfTen(9)); temp = String.valueOf(truncate(doubleVal)) + \"Bn\";\r\n * } else\r\n */\r\n if ((num / getPowerOfTen(6)) > 0.99) // check for Million\r\n {\r\n doubleVal = (num / getPowerOfTen(6));\r\n //temp = String.valueOf(truncate(doubleVal)) + \"M\";\r\n temp= nFormat.format(doubleVal) + \"M\";\r\n } else if ((num / getPowerOfTen(3)) > 0.99) // check for K\r\n {\r\n doubleVal = (num / getPowerOfTen(3));\r\n //temp = String.valueOf(truncate(doubleVal)) + \"K\";\r\n temp =nFormat.format(doubleVal) + \"K\";\r\n } else {\r\n //temp = String.valueOf(num);\r\n temp = nFormat.format(num);\r\n }\r\n return temp;\r\n }", "String getDecimalEncoding();", "public static String formatarBigDecimalComPonto(BigDecimal numero) {\r\n\r\n\t\tif (numero == null) {\r\n\t\t\tnumero = new BigDecimal(\"0.00\");\r\n\t\t}\r\n\r\n\t\tNumberFormat formato = NumberFormat.getInstance(new Locale(\"pt\", \"BR\"));\r\n\t\tformato.setMaximumFractionDigits(2);\r\n\t\tformato.setMinimumFractionDigits(2);\r\n\t\tformato.setGroupingUsed(false);\r\n\r\n\t\treturn (formato.format(numero)).replace(\",\", \".\");\r\n\t}", "public static String canonicalDecimalStrNoIntegerDot(BigDecimal bd) {\n if ( bd.signum() == 0 )\n return \"0\";\n if ( bd.scale() <= 0 )\n // No decimal part.\n return bd.toPlainString();\n return bd.stripTrailingZeros().toPlainString();\n }", "private String formatNumber(BigDecimal num) {\n return num.toPlainString();\n }", "public static String canonicalDecimalStr(BigDecimal decimal) {\n if ( decimal.signum() == 0 )\n return \"0.0\";\n if ( decimal.scale() <= 0 )\n // No decimal part.\n return decimal.toPlainString()+\".0\";\n String str = decimal.stripTrailingZeros().toPlainString();\n // Maybe the decimal part was only zero.\n int dotIdx = str.indexOf('.') ;\n if ( dotIdx < 0 )\n // No DOT.\n str = str + \".0\";\n return str;\n }", "String getPrecio();", "public String decimalNumberOct(double d) {\n m = \"\";\n c = 0;\n i = 0;\n long z = (long) d;\n while (z != 0) {\n //11001 ------- 25\n c += ((z % 10) * (Math.pow(8, i)));\n z /= 10;\n i++;\n }\n if ((long) d != d) {\n i = -1;\n m += d;\n f = m.indexOf('.') + 1;\n f = m.length() - f;\n f = -f;\n double a = d - (long) d;\n while (i >= f) {\n //11001 ------- 25\n a *= 10;\n c += (long) a * ((Math.pow(8, i)));\n i--;\n a -= (long) a;\n }\n }\n m = \"\";\n m += c;\n return m;\n }", "public static String formatoDecimal(Double valor) \n\t{\n\t\treturn decimal.format(valor);\n\t}", "static void printBinary(String num, int precision) {\n int intPart = Integer.parseInt(num.split(\"\\\\.\")[0]);\n double decPart = Double.parseDouble(\".\" + num.split(\"\\\\.\")[1]);\n\n String intBinary = \"\";\n String decBinary = \"\";\n while (intPart > 0) {\n int rem = intPart % 2;\n intPart >>= 1;\n intBinary = rem + intBinary;\n }\n\n int len = 0;\n while (decPart > 0 && len != precision) {\n decPart *= 2;\n len++;\n if (decPart >= 1) {\n decBinary += 1;\n decPart -= 1;\n } else {\n decBinary += 0;\n }\n }\n\n System.out.println(intBinary + \".\" + decBinary);\n }", "public static String parseBigDecimalToString(BigDecimal ingresoPromedio, String numericMask, String prefijoSoles) {\n double temporal;\n DecimalFormatSymbols otherSymbols = new DecimalFormatSymbols();\n otherSymbols.setDecimalSeparator('.');\n otherSymbols.setGroupingSeparator(',');\n DecimalFormat formatDouble = new DecimalFormat(numericMask, otherSymbols);\n\n try {\n temporal = ingresoPromedio.doubleValue();\n } catch (NumberFormatException e) {\n // TODO Auto-generated catch block\n return \"\";\n }\n return prefijoSoles.concat(formatDouble.format(temporal).trim());\n\n }", "public StringBuffer format(BigInteger number, StringBuffer toAppendTo, FieldPosition pos)\n/* */ {\n/* 1137 */ return format(new com.ibm.icu.math.BigDecimal(number), toAppendTo, pos);\n/* */ }", "public static String getNoDecimal(float temp) {\n\n BigDecimal bigDecimal = new BigDecimal(String.valueOf(temp));\n bigDecimal = bigDecimal.setScale(0, BigDecimal.ROUND_HALF_UP);\n DecimalFormat decimalFormat = new DecimalFormat();\n decimalFormat.applyPattern(\"#,##0\");\n\n return decimalFormat.format(bigDecimal);\n }", "public static void bigDecimal() {\n\n\t\tSystem.out.println(\"BigDecimalExample.bigDecimal()\");\n\t\tBigDecimal n1 = new BigDecimal(123.456);\n\t\tBigDecimal n2 = new BigDecimal(789.012);\n\t\tBigDecimal n3 = new BigDecimal(-2.0);\n\n\t\tSystem.out.println(\"n1: \" + n1);\n\t\tSystem.out.println(\"n2: \" + n2);\n\t\tSystem.out.println(\"n3: \" + n3);\n\t\t// System.out.println(\"n2.toEngineeringString(): \" + n2.toEngineeringString());\n\t\t// System.out.println(\"n2.toPlainString(): \" + n2.toPlainString());\n\t\tSystem.out.println();\n\n\t\tSystem.out.println(\"n1.add(n2): \" + n1.add(n2));\n\t\tSystem.out.println(\"n1: \" + n1); // n1.add(n2) returns a new BigDecimal, it does not modify n1 itself\n\t\tSystem.out.println(\"n1.subtract(n2): \" + n1.subtract(n2));\n\t\tSystem.out.println(\"n2.divide(n1): \" + n1.divide(n3));\n\t\tSystem.out.println(\"n2.multiply(n1): \" + n1.multiply(n1));\n\t\tSystem.out.println(\"n3.pow(4): \" + n3.pow(4));\n\t\tSystem.out.println(\"n2.remainder(n1): \" + n2.remainder(n1));\n\t\tSystem.out.println();\n\n\t\tSystem.out.println(\"n3.abs(): \" + n3.abs());\n\t\tSystem.out.println(\"n2.negate(): \" + n2.negate());\n\t\tSystem.out.println(\"n3.negate(): \" + n3.negate());\n\t\tSystem.out.println(\"n2.plus(): \" + n2.plus());\n\t\tSystem.out.println(\"n3.plus(): \" + n3.plus());\n\t\tSystem.out.println();\n\n\t\t// Since there are no relational operators available, you need to use compareTo\n\t\tSystem.out.println(\"n1.compareTo(n1): \" + n1.compareTo(n1)); // equal\n\t\tSystem.out.println(\"n1.compareTo(n2): \" + n1.compareTo(n2)); // less than\n\t\tSystem.out.println(\"n1.compareTo(n3): \" + n1.compareTo(n3)); // greater than\n\t\tSystem.out.println();\n\n\t\tSystem.out.println(\"n2: \" + n2);\n\t\tSystem.out.println(\"n2.scale(): \" + n2.scale()); // scale = number of digits after the decimal point\n\t\tSystem.out.println(\"n2.precision(): \" + n2.precision()); // precision = number of digits in unscaled value\n\t\tSystem.out.println(\"n2.movePointRight(3): \" + n2.movePointRight(3));\n\t\tSystem.out.println(\"n2.movePointLeft(3) : \" + n2.movePointLeft(3));\n\t\tSystem.out.println(\"n2.movePointRight(3): \" + n2.movePointRight(3));\n\t\tSystem.out.println(\"n2.scaleByPowerOfTen(3): \" + n2.scaleByPowerOfTen(3));\n\t\tSystem.out.println(\"n2.scaleByPowerOfTen(-3): \" + n2.scaleByPowerOfTen(-3));\n\n\t\tSystem.out.println();\n\n\t\tSystem.out.println(\"n2.min(n1): \" + n2.min(n1));\n\t\tSystem.out.println(\"n2.max(n1): \" + n2.max(n1));\n\n\t}", "public String getFormattedPrice() {\n NumberFormat ukFormat = NumberFormat.getCurrencyInstance(Locale.UK);\n ukFormat.setMinimumFractionDigits(2);\n ukFormat.setMaximumFractionDigits(2);\n BigDecimal result = new BigDecimal(\"0.00\");\n if (baseSize != null) {\n result = baseSize.getPrice();\n Double multiplier = baseSize.getMultiplier();\n for (ToppingEntity topping : toppings) {\n topping.setMultiplier(multiplier);\n result = result.add(topping.getPrice());\n }\n }\n return ukFormat.format(result.doubleValue());\n }", "private static String formatPRECIO(String var1)\r\n\t{\r\n\t\tString temp = var1.replace(\".\", \"\");\r\n\t\t\r\n\t\treturn( String.format(\"%09d\", Integer.parseInt(temp)) );\r\n\t}", "private String peso(long peso,int i)\n {\n DecimalFormat df=new DecimalFormat(\"#.##\");\n //aux para calcular el peso\n float aux=peso;\n //string para guardar el formato\n String auxPeso;\n //verificamos si el peso se puede seguir dividiendo\n if(aux/1024>1024)\n {\n //variable para decidir que tipo es \n i=i+1;\n //si aun se puede seguir dividiendo lo mandamos al mismo metodo\n auxPeso=peso(peso/1024,i);\n }\n else\n {\n //si no se puede dividir devolvemos el formato\n auxPeso=df.format(aux/1024)+\" \"+pesos[i];\n }\n return auxPeso;\n }", "@Override\n\tpublic String toStringMaxDecimalDigits(final int afterDecimalPoint) {\n\t\treturn null;\n\t}", "public static String converteBigDecimalToString(BigDecimal valor, final String formato) {\n String retorno;\n try {\n DecimalFormat df = new DecimalFormat(formato);\n retorno = df.format(valor);\n } catch (NumberFormatException e) {\n retorno = null;\n } catch (NullPointerException e) {\n retorno = null;\n }\n return retorno;\n }", "public String getPriceString() {\n\t\treturn Utils.formatCurrencyNumber(price);//Double.toString(price.doubleValue()); //price.toString();\n\t}", "public static String formatMoney(BigDecimal value) {\n if (value != null) {\n return DEFAULT_DECIMAL_FORMAT.format(value);\n }\n return \"R$ -\";\n }", "public StringBuffer format(com.ibm.icu.math.BigDecimal number, StringBuffer toAppendTo, FieldPosition pos)\n/* */ {\n/* 1162 */ return format(number.doubleValue(), toAppendTo, pos);\n/* */ }", "public List<String> putDecimal(String p) {\n List<String> decCoordinates = new ArrayList<>();\n decCoordinates.add(p);\n\n //add a decimal point in between every index in s and add the value to the list of decimal coordinates\n for (int i = 1; i < p.length(); i++) {\n decCoordinates.add(p.substring(0, i) + \".\" + p.substring(i));\n }\n return decCoordinates;\n }", "public String toString(){\n\t\tString s = \"\";\n\t\ts += \"El deposito de la moneda \"+nombreMoneda+\" (\" +valor+ \" centimos) contiene \"+cantidad+\" monedas\\n\";\n\t\treturn s;\n\t}", "BigDecimal getEBigDecimal();", "public StringBuffer format(java.math.BigDecimal number, StringBuffer toAppendTo, FieldPosition pos)\n/* */ {\n/* 1149 */ return format(new com.ibm.icu.math.BigDecimal(number), toAppendTo, pos);\n/* */ }", "@Override public String toDot() {\r\n return value.toDot(); \r\n }", "java.lang.String getPkpfe1000();", "public static double formateaDecimal(double numeroFormatea) {\n\t\treturn (double) Math.round(numeroFormatea * 100d) / 100d;\n\t}", "public BigDecimal getDecimalValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a big decimal.\");\n }", "public String decimalToBinario(int numero) {\n\t\tSystem.out.print(\"Convirtiendo decimal (\" + numero + \") a binario >> \");\n\t\treturn Integer.toBinaryString(numero);\n\t}", "public String getProductPaperBackPrice() {\n\t\tString paperBackWholePrice = driver\n\t\t\t\t.findElements(By.cssSelector(getLocator(search_result_page_prod_paper_price_whole))).get(0).getText();\n\t\tString paperBackCurrency = driver\n\t\t\t\t.findElements(By.cssSelector(getLocator(search_result_page_prod_paper_price_currency))).get(0)\n\t\t\t\t.getText();\n\t\tString paperBackFracPrice = driver\n\t\t\t\t.findElements(By.cssSelector(getLocator(search_result_page_prod_paper_price_fractional))).get(0)\n\t\t\t\t.getText();\n\t\tString paperBackPrice = paperBackCurrency + paperBackWholePrice + \".\" + paperBackFracPrice;\n\t\treturn paperBackPrice;\n\t}", "public String toString() {\n\t\treturn toString(Constants.get_output_precision());\n\t}", "@Test\n public void roundOffDecimalPoints() throws IOException {\n BigDecimal actual = Utils.roundOffDecimalPoints(new BigDecimal(1), 2, 2);\n Assert.assertEquals(\"100.00\", actual.toString());\n }", "private String getDecimalPattern(String str) {\n int decimalCount = str.length() - str.indexOf(\".\") - 1;\n StringBuilder decimalPattern = new StringBuilder();\n for (int i = 0; i < decimalCount && i < MAX_DECIMAL; i++) {\n decimalPattern.append(\"0\");\n }\n return decimalPattern.toString();\n }", "public String toString( int probPrecision )\n {\n String s = \"\";\n for( int i = 0; i < tags.length; i++ )\n {\n s += tokens[i] + \"/\" + tags[i];\n if( probs != null )\n s += \"/\" + new java.math.BigDecimal( probs[i] ).setScale( probPrecision, java.math.RoundingMode.UP );\n \n if(i < tags.length-1)\n s += \" \";\n }\n return s;\n }", "public static String getDadoFormatado(BigDecimal pDado, TiposDadosQuery pTipo) {\n StringBuilder dadoFormatado = new StringBuilder(\"\");\n \n if (pDado == null) {\n dadoFormatado.append(\"null\");\n }\n else {\n dadoFormatado.append(pDado.toPlainString());\n }\n \n return dadoFormatado.toString();\n \n }", "private String doubleToDecimalString(double toFormat){\r\n\r\n String d = \"\";\r\n DecimalFormat df = new DecimalFormat(\"0.00\");\r\n d = df.format(toFormat);\r\n\r\n return d;\r\n }", "@Override\n public String toString() {\n String printString;\n if (cents == 0) {\n printString = String.format(\"$%d.00\", dollars);\n } else {\n printString = String.format(\"$%d.%d\", dollars, cents);\n }\n return printString;\n }", "BigDecimal getPrice();", "public Double getBigDoublePositiveDecimal() throws ServiceException {\n try {\n Call<ResponseBody> call = service.getBigDoublePositiveDecimal();\n ServiceResponse<Double> response = getBigDoublePositiveDecimalDelegate(call.execute(), null);\n return response.getBody();\n } catch (ServiceException ex) {\n throw ex;\n } catch (Exception ex) {\n throw new ServiceException(ex);\n }\n }", "@Override\n\t\tpublic java.math.BigDecimal convert(String s) {\n\t\t\treturn new java.math.BigDecimal(s);\n\t\t}", "public String converterNumeroParaExtensoReal(BigDecimal numero){\r\n\t\treturn null;\r\n\t}", "public static String toDecimal2(int n, int b){\n\t\tString chars = \"0123456789ABCDEFGHIJ\";\n\t\tString res = \"\";\n\t\twhile(n >0){\n\t\t\tres = chars.charAt(n%b) + res;\n\t\t\tn /= b;\n\t\t}\n\t\treturn res;\n\t}", "public String check_after_decimal_point(double decimal) {\n String result = null;\n String[] after_point = String.valueOf(decimal).split(\"[:.]\");\n if (after_point[after_point.length - 1].equals(\"0\")) {\n result = after_point[0];\n } else {\n result = String.valueOf(decimal).replace(\".\", \",\");\n }\n return result;\n }", "@Override\n public String toString() {\n return denominacion;\n }", "abstract String toDot();", "private final BigDecimal get_DECIMAL(int column) {\n return Decimal.getBigDecimal(dataBuffer_,\n columnDataPosition_[column - 1],\n getColumnPrecision(column - 1),\n getColumnScale(column - 1));\n }", "void insertDecimalPoint();", "private static String getBinaryFromDecimal(int decimal)\n\t{\n\n\t\tif( decimal == 0 )\n\t\t{\n\t\t\treturn \"00000000\";\n\t\t}\n\n\t\tif( decimal == 1 )\n\t\t{\n\t\t\treturn \"00000001\";\n\t\t}\n\n\t\tchar[] binary = {'0', '0', '0', '0', '0', '0', '0', '0'};\n\t\tint exponent, value;\n\n\t\tdo\n\t\t{\n\t\t\texponent = getNearestPowerOfTwo(decimal);\n\t\t\tbinary[7-exponent] = '1';\n\t\t\tvalue = (int)Math.pow(2, exponent);\n\t\t\tdecimal = decimal - value;\n\t\t}\n\t\twhile( decimal > 0 );\n\n\t\treturn new String(binary);\n\t}", "public static void main(String[] args) {\n\t\tString str = \"1.382700047E10\";\n\t\tBigDecimal d = new BigDecimal(str);\n\n\t\t// double num = 1.382700047E10; //或 long num;\n\t\tSystem.out.println(d.toBigInteger().toString());\n\n\t}", "public static String byteConvertToLabel(final long value) {\r\n\t\tfinal long[] dividers = new long[] { T, G, M, K, 1 };\r\n\t\tfinal String[] units = new String[] { \"TB\", \"GB\", \"MB\", \"KB\", \"B\" };\r\n\t\tif (value < 0)\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid file size: \" + value);\r\n\t\tString result = null;\r\n\t\tfor (int i = 0; i < dividers.length; i++) {\r\n\t\t\tfinal long divider = dividers[i];\r\n\t\t\tif (value >= divider) {\r\n\t\t\t\tresult = decimalFormatLabel(value, divider, units[i]);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "private static String stringFromBytes(byte[] bytes, int precision) {\n int[] comps = extractFromBytes(bytes, precision);\n StringBuilder sb = new StringBuilder(TimestampDefImpl.DEF_STRING_FORMAT);\n if (precision > 0) {\n sb.append(\".\");\n sb.append(\"%0\");\n sb.append(precision);\n sb.append(\"d\");\n int fs = comps[6] / (int)Math.pow(10, (MAX_PRECISION - precision));\n return String.format(sb.toString(), comps[0], comps[1], comps[2],\n comps[3], comps[4], comps[5], fs);\n }\n return String.format(sb.toString(), comps[0], comps[1], comps[2],\n comps[3], comps[4], comps[5]);\n }", "public static BigDecimal converteStringToBigDecimal(String valor) {\n BigDecimal retorno;\n try {\n String valorSemFormatacao = valor.replace(StringUtil.CARACTER_PONTO, \"\").replace(StringUtil.CARACTER_VIRGULA, StringUtil.CARACTER_PONTO);\n retorno = new BigDecimal(valorSemFormatacao);\n } catch (NumberFormatException e) {\n retorno = null;\n } catch (NullPointerException e) {\n retorno = null;\n }\n return retorno;\n }", "public String getString() { \n return new BigInteger(this.value).toString();\n }", "public static String bytesToMegaBytes(long bytes) {\n double megaBytes = (double) bytes / (double) MEGABYTES_DIVIDER;\n return new DecimalFormat(\"##0.00\").format(megaBytes) + \" MB\";\n }", "public static Symbol decimal(String text)\r\n\t{\r\n\t\treturn number(text, 10);\r\n\t}", "public String getBSCA_PrintPrice2();", "public static String satoshiToString(BigInteger value) {\n //\n // Format the BTC amount\n //\n // BTC values are represented as integer values expressed in Satoshis (1 Satoshi = 0.00000001 BTC)\n //\n BigInteger bvalue = value;\n boolean negative = bvalue.compareTo(BigInteger.ZERO) < 0;\n if (negative)\n bvalue = bvalue.negate();\n //\n // Get the BTC amount as a formatted string with 8 decimal places\n //\n BigDecimal dvalue = new BigDecimal(bvalue, 8);\n String formatted = dvalue.toPlainString();\n //\n // Drop trailing zeroes beyond 4 decimal places\n //\n int decimalPoint = formatted.indexOf(\".\");\n int toDelete = 0;\n for (int i=formatted.length()-1; i>decimalPoint+4; i--) {\n if (formatted.charAt(i) == '0')\n toDelete++;\n else\n break;\n }\n String text = (negative?\"-\":\"\") + formatted.substring(0, formatted.length()-toDelete);\n return text;\n }", "public static String promoConverter(double value,int decimalDigits)\n {\n return String.format(\"%.2f\", value);\n\n }", "public String toString() {\n\t\treturn \"(\" + roundToOneDecimal(x) + \", \" + roundToOneDecimal(y) + \")\";\n\t}", "private String nanoFormat(String amount) {\n BigDecimal amountBigDecimal;\n try {\n amountBigDecimal = new BigDecimal(sanitizeNoCommas(amount));\n } catch(NumberFormatException e) {\n return amount;\n }\n\n if (amountBigDecimal.compareTo(new BigDecimal(0)) == 0) {\n return amount;\n } else {\n String decimal;\n String whole;\n String[] split = amount.split(\"\\\\.\");\n if (split.length > 1) {\n // keep decimal length at 10 total\n whole = split[0];\n decimal = split[1];\n decimal = decimal.substring(0, Math.min(decimal.length(), MAX_NANO_DISPLAY_LENGTH));\n\n // add commas to the whole amount\n if (whole.length() > 0) {\n DecimalFormat df = new DecimalFormat(\"#,###\");\n whole = df.format(new BigDecimal(sanitizeNoCommas(whole)));\n }\n\n amount = whole + \".\" + decimal;\n } else if (split.length == 1) {\n // no decimals yet, so just add commas\n DecimalFormat df = new DecimalFormat(\"#,###\");\n amount = df.format(new BigDecimal(sanitizeNoCommas(amount)));\n }\n return amount;\n }\n }", "public String formatoDecimales(double valorInicial, int numeroDecimales ,int espacios) { \n String number = String.format(\"%.\"+numeroDecimales+\"f\", valorInicial);\n String str = String.valueOf(number);\n String num = str.substring(0, str.indexOf(',')); \n String numDec = str.substring(str.indexOf(',') + 1);\n \n for (int i = num.length(); i < espacios; i++) {\n num = \" \" + num;\n }\n \n for (int i = numDec.length(); i < espacios; i++) {\n numDec = numDec + \" \";\n }\n \n return num +\".\" + numDec;\n }", "public String formatMoney(BigDecimal amount) {\n String result = \"\";\n if (amount != null) {\n try {\n result = moneyFormat.valueToString(amount);\n } catch (ParseException ex) {\n }\n }\n return result;\n }", "public void testFormat() throws Exception {\n final BigDecimal bigDec = new BigDecimal(\"123.45678909E+10\");\r\n assertTrue(bigDec.toString().endsWith(\"E+12\"));\r\n assertEquals(\"1234567890900cm\", LengthUnit.CM.format(bigDec));\r\n // assert that we don't use BigDecimal internally (otherwise we would have the exact\r\n // approximation of 2.357f, e.g. 2.3570001125335693)\r\n assertEquals(\"2.357cm\", LengthUnit.CM.format(2.357f));\r\n }", "public static String converterEmValorMonetarioBrasileiroSimples(BigDecimal valor) {\n\t\tLocale locale = new Locale(\"pt\",\"BR\");\n\t\treturn valor == null ? null : NumberFormat.getCurrencyInstance(locale).format(valor).replace(\"R$ \", \"\");\n\t}", "public static JSONNumber BigDecimal(BigDecimal bigDecimalVal) {\n\t\tJSONNumber number = new JSONNumber( bigDecimalVal.toString() );\n\t\tnumber.bigDecimalVal = bigDecimalVal;\n\t\treturn number;\n\t}", "@Override\n public String toString() {\n return super.toString() + pizzaPrice() + \".00\\n\";\n }", "BigDecimal getValue();", "static String double2String (Double a){\n String s = \"\"+a;\n String[] arr = s.split(\"\\\\.\");\n if (arr[1].length()==1) s+=\"0\";\n return s;\n }", "public int toDecimal() {\n double bidecimal = 0;\n for(int i = 0; i < data.length; i++){\n bidecimal = bidecimal+(data[i]*Math.pow(2, i));\n }\n return (int) bidecimal;\n }", "private String decimalToBinary(int num) {\n String result = \"\";\n \n while(num > 0 ) \n {\n \n \n //get the remainder\n result = num % 2 + result;\n \n // Divide the positive decimal number by two( then divide the quotient by two)\n num = num /2;\n }\n \n return result;\n }", "public String toString() {\n final StringBuilder buffer = new StringBuilder() ;\n final DecimalFormat df = new DecimalFormat( \"#00.00\" ) ;\n\n buffer.append( StringUtil.rightPad( this.symbol, 20 ) ) ;\n buffer.append( StringUtil.leftPad( \"\" + getNumActiveCashUnits(), 5 ) ) ;\n buffer.append( StringUtil.leftPad( df.format( this.avgCashUnitPrice ), 10 ) ) ;\n buffer.append( StringUtil.leftPad( df.format( this.realizedProfit ), 10 ) ) ;\n buffer.append( StringUtil.leftPad( df.format( getUnRealizedCashProfit() ), 10 ) ) ;\n\n return buffer.toString() ;\n }", "public String getUnitAmountDecimal() {\n return this.unitAmountDecimal;\n }", "public java.math.BigDecimal getDecimal() {\n return localDecimal;\n }", "public String toFloatString() {\n\t\treturn this.toFloatString(DEFAULT_NUM_DECIMALS);\n\t}", "private static String toPsString(double d) {\n return \"(\" + d + \")\";\n }", "private String formatHex(int decimal) {\n char[] bin = Integer.toBinaryString(decimal).toCharArray();\n //System.out.println(\"bin is \"+String.valueOf(bin) +\" length:\"+bin.length);\n while(bin.length< 4) {\n for(int i =4-bin.length; i<4;i++){\n bin = (\"0\"+ String.valueOf(bin)).toCharArray();\n }\n }\n //System.out.println(\"bin is \"+String.valueOf(bin));\n int len = bin.length -1;\n char[] temp = {bin[len-3], bin[len-2], bin[len-1], bin[len] };\n return formatHex(Integer.toHexString(Integer.parseInt(String.valueOf(temp), 2 )));\n }", "@Override\n public String toString() {\n return String.format(\"Pizza %s, prezzo %f€\", this.gusto, this.prezzo);\n }", "private String filterDecimalString(String string) {\n return string\n .replaceAll(\"[^0-9.]\", \"\")\n .replaceFirst(\"\\\\.\", \"@\")\n .replaceAll(\"\\\\.\", \"\")\n .replaceFirst(\"@\", \".\");\n }", "public String centsToDollar() {\n return partieEntier + \".\" +\n String.format(\"%02d\", partieFractionnaire) + \"$\";\n }", "public static String bytesToString(long size)\n {\n final long KB = 1 * 1024;\n final long MB = KB * 1024;\n final long GB = MB * 1024;\n DecimalFormat df = new DecimalFormat(\"#.#\");\n\n if (size >= GB) return df.format((double)size / GB) + \"GB\";\n if (size >= MB) return df.format((double)size / MB) + \"MB\";\n if (size >= KB) return df.format((double)size / KB) + \"KB\";\n return df.format(size) + \"B \";\n }", "public String toString() {\n return \"$\"+getDollars() +\".\"+ getCents();\n }", "public static String getBytesString(long bytes) {\n String[] quantifiers = new String[] {\n \"KB\", \"MB\", \"GB\", \"TB\"\n };\n double speedNum = bytes;\n for (int i = 0;; i++) {\n if (i >= quantifiers.length) {\n return \"\";\n }\n speedNum /= 1024;\n if (speedNum < 512) {\n return String.format(\"%.2f\", speedNum) + \" \" + quantifiers[i];\n }\n }\n }", "public String toString() {\r\n\t\tStringBuilder s = new StringBuilder();\r\n\t\tif(!this.isEmpty()) {\r\n\t\t\ts.append(\"Peso(\"+this.getPeso()+\"kg): [\");\r\n\t\t\tIterator<Attrezzo> i = this.attrezzi.iterator();\r\n\t\t\twhile(i.hasNext())s.append( i.next().toString()+\" \");\r\n s.append(\"]\");\t\t\r\n\t\t}\r\n\t\telse\r\n\t\t\ts.append(\"La borsa è vuota!\");\r\n\t\treturn s.toString();\r\n\t}", "String floatWrite();", "public void printDecimal(String title, int processType, int unitNum, String binaryChunk, String type) {\n\n // Convert string to a decimal value\n int decimal = Integer.parseInt(binaryChunk, 2);\n\n // The resulting value\n String result = title == \"Type\" ? decimal + getICMPType(decimal) : \"\" + decimal;\n\n // Print the values\n String formatted = String.format(type + \"%-25s = %20s\", title, result);\n System.out.println(formatted);\n }", "@Override\n public String toString() {\n return \"\" + currency + amount;\n }", "private static boolean bigDecimalCanConvertToString(BigDecimal bigDecimal) {\n if (bigDecimal == null) {\n return false;\n }\n boolean result = false;\n BigDecimal bigDecimalAbs = bigDecimal.abs();\n if ((bigDecimalAbs.compareTo(new BigDecimal(DECIMAL_MIN_VALUE_CHANGE_TO_EXPR)) <= 0) || (bigDecimalAbs.compareTo(new BigDecimal(INTEGER_MIN_VALUE_CHANGE_TO_EXPR)) >= 0)) {\n result = true;\n }\n if (bigDecimalAbs.compareTo(new BigDecimal(0)) == 0) {\n result = false;\n }\n return result;\n }", "@Override\n public String toString() {\n return new GsonBuilder().serializeSpecialFloatingPointValues().create().toJson(this);\n }", "public String getProdDetailsPrice(){\n String prodPrice = productDetailsPrice.toString();\n return prodPrice;\n }", "public String formatDecimals(final double value) {\n String result = \"\";\n \n // The number of decimals.\n int decimals = 0;\n // The factor to divide the value by.\n int factor = 1;\n // The numeric symbol, e.g. K for thousands.\n String symbol = \"\";\n \n if (this.metricDecimals == MetricDecimals.ONE_PLACE) {\n decimals = 1;\n \n } else if (this.metricDecimals == MetricDecimals.TWO_PLACES) {\n decimals = 2;\n \n } else if (this.metricDecimals == MetricDecimals.HUNDREDS) {\n factor = FACTOR_100;\n symbol = \"H\";\n \n } else if (this.metricDecimals == MetricDecimals.THOUSANDS) {\n factor = FACTOR_1000;\n symbol = \"K\";\n \n } else if (this.metricDecimals == MetricDecimals.MILLIONS) {\n factor = FACTOR_1000000;\n symbol = \"M\";\n \n } else if (this.metricDecimals == MetricDecimals.BILLIONS) {\n factor = FACTOR_1000000000;\n symbol = \"G\";\n }\n \n final NumberFormat format = NumberFormat.getInstance(this.locale);\n format.setMaximumFractionDigits(decimals);\n format.setMinimumFractionDigits(decimals);\n result = format.format(value / factor) + symbol;\n \n return result;\n }", "public String TO_NUMBER (BigDecimal number, int displayType)\n\t{\n\t\tif (number == null)\n\t\t\treturn \"NULL\";\n\t\tBigDecimal result = number;\n\t\tint scale = DisplayType.getDefaultPrecision(displayType);\n\t\tif (scale > number.scale())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tresult = number.setScale(scale, BigDecimal.ROUND_HALF_UP);\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t//\tlog.severe(\"Number=\" + number + \", Scale=\" + \" - \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn result.toString();\n\t}", "private String getFormattedPrice(double unformattedPrice) {\n String formattedData = String.format(\"%.02f\", unformattedPrice);\n return formattedData;\n }", "public Hexadecimal(int decimal){\n this.decimal = decimal;\n HexadecConverter hexCon = new HexadecConverter();\n this.hexString = new StringBuilder(hexCon.decToStr(decimal));\n }" ]
[ "0.72066593", "0.6676065", "0.66143006", "0.6586891", "0.65693295", "0.6473845", "0.63855565", "0.6367788", "0.632921", "0.6283473", "0.6255881", "0.59450513", "0.5933156", "0.58794135", "0.5839738", "0.5825037", "0.5766861", "0.5764864", "0.5758748", "0.5755245", "0.5751029", "0.5738569", "0.57224786", "0.5706878", "0.5705654", "0.5703927", "0.5693641", "0.56800693", "0.56735706", "0.5671793", "0.564886", "0.56144565", "0.5612588", "0.55993474", "0.55723697", "0.55722034", "0.55710655", "0.55640215", "0.5557081", "0.5548332", "0.5538558", "0.55376095", "0.55375886", "0.553499", "0.5520754", "0.5519538", "0.551283", "0.5511541", "0.550452", "0.54896224", "0.5486208", "0.54859954", "0.54730356", "0.54616666", "0.5445376", "0.54326874", "0.54248714", "0.54212505", "0.54045", "0.5403703", "0.5390859", "0.53737795", "0.53705657", "0.53682035", "0.536639", "0.5358311", "0.53558195", "0.53550285", "0.5348158", "0.5337435", "0.53358585", "0.53257126", "0.53206104", "0.53157014", "0.530469", "0.5304066", "0.52988976", "0.52971524", "0.5284041", "0.5283461", "0.52771175", "0.5265124", "0.5263251", "0.5259422", "0.52545846", "0.52514124", "0.52504516", "0.52456546", "0.52411747", "0.52394193", "0.5237258", "0.5235607", "0.5230921", "0.52305394", "0.52249485", "0.5220361", "0.52161217", "0.52157116", "0.520906", "0.519852" ]
0.6201338
11
Converte uma string no formato AAMMDD para um objeto do tipo Date
public static Date converteStringInvertidaSemBarraAAMMDDParaDate(String data) { Date retorno = null; String dataInvertida = data.substring(4, 6) + "/" + data.substring(2, 4) + "/20" + data.substring(0, 2); SimpleDateFormat dataTxt = new SimpleDateFormat("dd/MM/yyyy"); try { retorno = dataTxt.parse(dataInvertida); } catch (ParseException e) { throw new IllegalArgumentException(data + " não tem o formato dd/MM/yyyy."); } return retorno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Date convertirStringADateUtil(String s){\n\t\tFORMATO_FECHA.setLenient(false);\n\t\tDate fecha = null;\n\t\ttry {\n\t\t\tfecha = FORMATO_FECHA.parse(s);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn fecha;\n\t}", "public static Date toDate(String dateStr, SimpleDateFormat format) throws ParseException {\r\n\t\treturn format.parse(dateStr);\r\n\t}", "public static Date converteStringInvertidaSemBarraAAAAMMDDParaDate(String data) {\r\n\t\tDate retorno = null;\r\n\r\n\t\tString dataInvertida = data.substring(6, 8) + \"/\" + data.substring(4, 6) + \"/\" + data.substring(0, 4);\r\n\r\n\t\tSimpleDateFormat dataTxt = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\ttry {\r\n\t\t\tretorno = dataTxt.parse(dataInvertida);\r\n\t\t} catch (ParseException e) {\r\n\t\t\tthrow new IllegalArgumentException(data + \" não tem o formato dd/MM/yyyy.\");\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public Date stringToDate(String d)\n\t{\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"MMM-yyyy\");\n\t\t\n\t\tDate date = new Date();\n\t\t\n\t\ttry \n\t\t{\n\t\t\tdate = format.parse(d);\n\t\t} \n\t\tcatch (ParseException e) \n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn date;\n\t}", "public static Date StringToDate(String strFecha) throws ParseException {\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\r\n return simpleDateFormat.parse(strFecha);\r\n }", "private Date convertStringToDate(String dateInString){\n DateFormat format = new SimpleDateFormat(\"d-MM-yyyy HH:mm\", Locale.ENGLISH);\n Date date = null;\n try {\n date = format.parse(dateInString);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return date;\n }", "public static Date strToDate(String strDate)\r\n/* 127: */ {\r\n/* 128:178 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\r\n/* 129:179 */ ParsePosition pos = new ParsePosition(0);\r\n/* 130:180 */ Date strtodate = formatter.parse(strDate, pos);\r\n/* 131:181 */ return strtodate;\r\n/* 132: */ }", "public static Date stringToDate(String date)\r\n/* 29: */ {\r\n/* 30: 39 */ log.debug(\"DateUtil.stringToDate()\");\r\n/* 31: */ try\r\n/* 32: */ {\r\n/* 33: 41 */ return sdfDate.parse(date);\r\n/* 34: */ }\r\n/* 35: */ catch (ParseException e)\r\n/* 36: */ {\r\n/* 37: 43 */ log.fatal(\"DateUtil.stringToDate抛出异常\", e);\r\n/* 38: */ }\r\n/* 39: 44 */ return new Date();\r\n/* 40: */ }", "public static Date convertStringToDate(String date) throws ParseException {\n\t return new SimpleDateFormat(\"yyyy-MM-dd\").parse(date); \n\t}", "public Date convertStringToDate(String s) throws ParseException {\n\t\tDate dateTime = SDF.parse(s);\n\t\treturn dateTime;\n\t}", "private Date stringToDate(String s) throws ParseException{\r\n\t\tSimpleDateFormat fmt = new SimpleDateFormat(DATE_FORMAT);\r\n\t\treturn fmt.parse(s);\r\n\t}", "public Date convertStringToDate(String dateToParse, String format) {\n SimpleDateFormat formatter = new SimpleDateFormat(format);\n Date result = null;\n try {\n result = formatter.parse(dateToParse);\n } catch (Exception exception1) {\n System.err.println(\n String.format(\"ERROR, converting from String %s to date with format %s\", dateToParse, format)\n );\n result = null;\n }\n return result;\n }", "public static Date String2Date(String date){\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n\n Date currentDate = null;\n try {\n currentDate = format.parse(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return currentDate;\n }", "public Date stringToDate(String date) throws ParseException {\n String[] splitDate = date.split(\"T\");\n String day = splitDate[0];\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date dayDate = dateFormat.parse(day);\n return dayDate;\n }", "public static Date stringToDate(String dateString) {\n for(String format: DATE_FORMATS){\n try {\n return new SimpleDateFormat(format).parse(dateString);\n }\n catch (Exception e){}\n }\n throw new IllegalArgumentException(\"Date is not parsable\");\n }", "public static Date stringToDate(String date) {\n\t\tDate result = null;\n\t\tif (date != null && !\"\".equals(date)) {\n\t\t\tDateTimeFormatter f = DateTimeFormat.forPattern(SmartMoneyConstants.DATE_FORMAT);\n\t\t\tDateTime dateTime = f.parseDateTime(date);\n\t\t\tresult = dateTime.toDate();\n\t\t}\n\n\t\treturn result;\n\t}", "public static Date stringToDate(String dateAsString){\r\n try { \r\n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\"); \r\n return df.parse(dateAsString);\r\n } catch (ParseException ex) {\r\n ex.printStackTrace();\r\n return null;\r\n }\r\n }", "@Test\n\t@DisplayName(\"string to date\")\n\tpublic void testStringToDate() throws ParseException\n\t{\n\t\tDateConverter d = new DateConverter(string1);\n\t\t\n\t\tString dateInString = \"1997-03-19\";\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\ttry {\n\t\t date1 = formatter.parse(dateInString);\n\t\t} catch (ParseException e) {\n\t\t //handle exception if date is not in \"dd-MMM-yyyy\" format\n\t\t}\n\t\tassertEquals(date1, d.getDate());\n\t}", "public Date parse (String dateAsString , String dateFormat) throws Exception ;", "public static Date parseDate(String date) {\n return DateUtil.toDate(date);\n }", "public static java.util.Date convertFromStringToDate(String strDate){\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd-MMM-yyyy\"); /*This stringDate is come from UI*/\n\t\tjava.util.Date date = null;\n\t\tif(strDate != null && !strDate.trim().isEmpty()){\n\t\t\ttry {\n\t\t\t\tdate = format.parse(strDate);\n\t\t\t\tSystem.out.println(strDate);\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\t\n\t\treturn date;\n\t}", "public Date ToDate(String line){\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy/MM/dd\");\n try {\n Date d = sdf.parse(line);\n return d;\n } catch (ParseException ex) {\n\n Log.v(\"Exception\", ex.getLocalizedMessage());\n return null;\n }\n }", "public static Date parseDate(String date)\n {\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date dt = null;\n try {\n dt = format.parse(date);\n } \n catch (ParseException ex) \n {\n System.out.println(\"Unexpected error during the conversion - \" + ex);\n }\n return dt;\n }", "public static Date convertStringToDate(String strDate)\n\t\t\tthrows ParseException {\n\t\tDate aDate = null;\n\n\t\ttry {\n\t\t\tif (log.isDebugEnabled()) {\n\t\t\t\tlog.debug(\"converting date with pattern: \" + getDatePattern());\n\t\t\t}\n\n\t\t\taDate = convertStringToDate(getDatePattern(), strDate);\n\t\t} catch (ParseException pe) {\n\t\t\tlog.error(\"Could not convert '\" + strDate\n\t\t\t\t\t+ \"' to a date, throwing exception\");\n\t\t\tpe.printStackTrace();\n\t\t\tthrow new ParseException(pe.getMessage(), pe.getErrorOffset());\n\t\t}\n\n\t\treturn aDate;\n\t}", "public static Date convertStringToDate(String strDate)\n\t {\n\t Date myDate = null;\n\t if (strDate.length() > 0)\n\t {\n\t DateFormat formatter = new SimpleDateFormat(EProcurementConstants.INPUT_DATE_FORMAT);\n\t try\n\t {\n\t myDate = formatter.parse(strDate);\n\t } catch (ParseException e)\n\t {\n\t LOGGER.error(\"Not able to parse \" + strDate + \" into date ..\" + e.getMessage());\n\t }\n\t }\n\t return myDate;\n\t }", "public static Date parseDate(String date)\n\t{\n\t\treturn parseFormatDate(date, getDateFormat());\n\t}", "@TypeConverter\n public static Date toDate(String value) {\n if (value == null) return null;\n\n try {\n return df.parse(value);\n } catch (ParseException e) {\n e.printStackTrace();\n return null;\n }\n }", "public static Date fromString(String fullDate) {\n\t\tString[] parsed = fullDate.split(\",\");\n\t\tif (parsed.length != 3 && parsed.length != 5) {\n\t\t\tthrow new InvalidParsingStringException(Date.class.getName());\n\t\t}\n\t\tDate date = new Date();\n\t\tdate.setYear(Integer.valueOf(parsed[0]));\n\t\tdate.setMonth(Integer.valueOf(parsed[1]));\n\t\tdate.setDay(Integer.valueOf(parsed[2]));\n\t\tif (parsed.length == 5) {\n\t\t\tdate.setHour(Integer.valueOf(parsed[3]));\n\t\t\tdate.setMin(Integer.valueOf(parsed[4]));\n\t\t}\n\t\treturn date;\n\t}", "private static final Date convertStringToDate(String aMask, String strDate) {\n SimpleDateFormat df = null;\n Date date = null;\n df = new SimpleDateFormat(aMask);\n try {\n date = df.parse(strDate);\n } catch (ParseException pe) {\n throw new ValidateException(\"日期转换出现异常,\"+pe.getMessage(), pe);\n }\n\n return (date);\n }", "public static Date convertStringToDate(String aMask, String strDate)\n\t\t\tthrows ParseException {\n\t\tSimpleDateFormat df;\n\t\tDate date;\n\t\tdf = new SimpleDateFormat(aMask);\n\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"converting '\" + strDate + \"' to date with mask '\"\n\t\t\t\t\t+ aMask + \"'\");\n\t\t}\n\n\t\ttry {\n\t\t\tdate = df.parse(strDate);\n\t\t} catch (ParseException pe) {\n\t\t\t// log.error(\"ParseException: \" + pe);\n\t\t\tthrow new ParseException(pe.getMessage(), pe.getErrorOffset());\n\t\t}\n\n\t\treturn (date);\n\t}", "public static Date stringToDate (String s) {\n\t\tint year=0 , month=0 , date=0;\n\t\tCalendar cal = Calendar.getInstance(Locale.getDefault());\n\t\t\n\t\tStringTokenizer st = new StringTokenizer (s,\"/\");\n\t\t\n\t\tdate = Integer.parseInt(st.nextToken());\n\t\tmonth = Integer.parseInt(st.nextToken());\n\t\tyear = Integer.parseInt(st.nextToken());\n\t\tcal.clear();\n\t\tcal.set(year,month-1,date);\n\t\t//System.out.println(\"\\nDate : \"+getStringFromDate(cal.getTime()));\n\t\treturn (Date)cal.getTime().clone();\n\t}", "public static Date de_STRING_a_DATE(String fechaEnString) {\n SimpleDateFormat miFormato2 = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date fechaenjava = null;\n try {\n fechaenjava = miFormato2.parse(fechaEnString);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return fechaenjava;\n }", "public static Date date(String str) throws Exception {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n\n return sdf.parse( str );\n }", "public static Date stringToDate(String string_date){\n Date myDate = null;\n \n try {\n java.util.Date utilDate = new SimpleDateFormat(\"yyyy-MM-dd\").parse(string_date);\n myDate = new java.sql.Date(utilDate.getTime());\n } catch (Exception e) {\n // Si hay una excepcion se imprime un mensaje\n System.err.println(e.getMessage());\n }\n \n return myDate;\n }", "private Date stringToSQLDate(String fecha){\n\t\t\n\t\t\n\t\tint ano=Integer.parseInt(fecha.substring(0,4));\n\t\tint mes =Integer.parseInt(fecha.substring(5,7));\n\t\tint dia =Integer.parseInt( fecha.substring(8));\n\t\t\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tDate tmp = new Date(ano-1900,mes-1,dia);\n\t\t\n\t\treturn tmp;\n\t}", "public static Date stringToDate(String date) throws InvalidDateException{\n DateFormat format = new SimpleDateFormat(Constants.BIRTH_DATE_FORMAT);\n format.setLenient(false); //é uma flag para que a data esteja sempre entre os limites corretos\n try {\n return format.parse(date);\n } catch (ParseException ignored) {\n throw new InvalidDateException(\"Invalid date\");\n }\n }", "public static Date parseDate(String s) {\n\t\tDate d = null;\n\t\tif (s == null) {\n\t\t\treturn d;\n\t\t}\n\n\t\tString pattern = \"\";\n\n\t\tif (s.indexOf(':') >= 0) {\n\t\t\tif (s.length() > 20) {\n\t\t\t\tpattern = \"yyyy-MM-dd HH:mm:ss.SSS\";\n\t\t\t} else {\n\t\t\t\tif (s.lastIndexOf(':') != s.indexOf(':'))\n\t\t\t\t\tpattern = DD_MM_YYYY_HH_MM_SS;\n\t\t\t\telse\n\t\t\t\t\tpattern = \"dd/MM/yyyy HH:mm\";\n\t\t\t}\n\t\t} else {\n\t\t\tpattern = DD_MM_YYYY;\n\t\t}\n\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(pattern);\n\t\tsdf.setTimeZone(TimeZone.getDefault());\n\t\tif (s.length() > 0) {\n\t\t\ttry {\n\t\t\t\td = sdf.parse(s);\n\t\t\t} catch (ParseException e) {\n\t\t\t\tthrow new FenixException(\"Errore nella conversione della data. \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "public static Date parseDate(String date) {\r\n return parseDateWithPattern(date, \"dd/MM/yyyy\");\r\n }", "private Date stringToDate(String datum)\r\n\t{\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDate d = df.parse(datum);\r\n\t\t\treturn d;\r\n\t\t}\r\n\t\tcatch (ParseException e)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "private Date convertirStringEnFecha(String dia, String hora)\n {\n String fecha = dia + \" \" + hora;\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy hh:mm\");\n Date fecha_conv = new Date();\n try\n {\n fecha_conv = format.parse(fecha);\n }catch (ParseException e)\n {\n Log.e(TAG, e.toString());\n }\n return fecha_conv;\n }", "public static Date StringToDate(String dateString) {\n int y = new Integer(dateString.substring(0, 4));\n int m = new Integer(dateString.substring(4, 6));\n int d = new Integer(dateString.substring(6, 8));\n int h = new Integer(dateString.substring(8, 10));\n int min = new Integer(dateString.substring(10, 12));\n\n try {\n Calendar convCal = Calendar.getInstance();\n convCal.set(y, m - 1, d, h, min);\n Date date = convCal.getTime();\n\n return date;\n } catch (Exception ex) {\n System.out.println(\"BwInfo.convertStringToDate() \" + ex);\n return null;\n }\n\n }", "@Override\n\tpublic Date convert(String source) {\n\t\tif (StringUtils.isValid(source)) {\n\t\t\tDateFormat dateFormat;\n\t\t\tif (source.indexOf(\":\") != -1) {\n\t\t\t\tdateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t} else {\n\t\t\t\tdateFormat = new SimpleDateFormat(\"yyyy-MM-dd\"); \n\t\t\t}\n\t\t\t//日期转换为严格模式\n\t\t dateFormat.setLenient(false); \n\t try {\n\t\t\t\treturn dateFormat.parse(source);\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\t\treturn null;\n\t}", "public static Date toDate(final String data, final String sFormat, final Locale locale) {\n final SimpleDateFormat formato = new SimpleDateFormat(sFormat, locale == null ? getLocale(CalendarParams.LOCALE_PT) : locale);\n Date date = null;\n try {\n date = formato.parse(data);\n } catch (ParseException e) {\n // LOG.error(\"Date dont convert \", e);\n System.out.println(e.getMessage());\n }\n return date;\n }", "private static Date convertFromString(String dateString) throws ParseException {\n return new SimpleDateFormat(\"yyyyMMddHHmm\").parse(dateString);\n }", "public static Date getFecha(String strfecha) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date fechaSQL = null;\n try {\n java.util.Date fechaJAVA = sdf.parse(strfecha);\n fechaSQL = new Date(fechaJAVA.getTime());\n } catch (ParseException ex) {\n ex.printStackTrace(System.out);\n }\n return fechaSQL;\n }", "public static String parseDate(String input) {\n String year = input.substring(0, 4);\n String month = input.substring(5, 7);\n String day = input.substring(8, 10);\n return year + \"-\" + month + \"-\" + day;\n }", "public static Date createDate(String dateStr) throws ParseException {\n\t\tSimpleDateFormat date = new SimpleDateFormat(\"yyyy/MM/dd\");\n\t\treturn date.parse(dateStr);\n\t}", "public Date parseDate(String date, String format) {\n return this.convertStringToDate(date, format);\n }", "public Date formatForDate(String data) throws ParseException{\n //definindo a forma da Data Recebida\n DateFormat formatUS = new SimpleDateFormat(\"dd-MM-yyyy\");\n return formatUS.parse(data);\n }", "public static Date FormatStringToDate(String dateString) {\r\n SimpleDateFormat dF = new SimpleDateFormat(\"dd/mm/yyyy HH:mm:ss\");\r\n Date date = null;\r\n try {\r\n date = dF.parse(dateString);\r\n } catch (ParseException e) {\r\n e.printStackTrace();\r\n }\r\n return date;\r\n }", "public static Date convertToDate(String value) {\r\n if (StringUtils.isEmpty(value)) {\r\n return null;\r\n }\r\n\r\n Date result = null;\r\n String dateFormat = ResourceUtil.getMessageResourceString(\"application.pattern.timestamp\");\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(dateFormat);\r\n try {\r\n result = simpleDateFormat.parse(value);\r\n } catch (ParseException ex) {\r\n LOGGER.error(ex.getMessage(), ex);\r\n }\r\n\r\n return result;\r\n }", "public static Date parseDate(DateFormat format, String dateStr) throws ParseException {\n\t\tDate date = null;\n\t\tif (dateStr != null && !dateStr.isEmpty()) {\n\t\t\tdate = format.parse(dateStr);\n\t\t}\n\t\treturn date;\n\t}", "public static Date parseDate(String val) {\n\n\t\tDate d = null;\n\n\t\tif (val != null && !val.equals(\"0\")) {\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"MMM/dd/yyyy\");\n\t\t\ttry {\n\t\t\t\td = format.parse(val);\n\t\t\t} catch (ParseException e) {\n\t\t\t}\n\t\t}\n\n\t\treturn d;\n\n\t}", "public static Date getDateFromString(String date) {\r\n Date newdate = null;\r\n SimpleDateFormat dateformat = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n\r\n try {\r\n newdate = dateformat.parse(date);\r\n System.out.println(newdate);\r\n } catch (ParseException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return newdate;\r\n }", "public static Date parseDateTime(String date)\n\t{\n\t\treturn parseFormatDate(date, getDateTimeFormat());\n\t}", "private String convertToDateFormat(String inputDateString) throws DateTimeParseException {\n\t\treturn inputDateString;\n\t}", "public static Date convertStringToDate(String dateString) {\n\t\tLocalDate date = null;\n\t\t\n\t\ttry {\n\t\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(Constants.ddmmyyydateFormatInCSV);\n\t\t\tdate = LocalDate.parse(dateString, formatter);\n\n\t\t} catch (DateTimeParseException ex) {\n\t\t\tthrow new SalesException(\"enter the proper date in \" + Constants.ddmmyyydateFormatInCSV + \" format\");\n\t\t} catch (SalesException ex) {\n\t\t\tthrow new SalesException(\"Recevied excepion during date parser \" + ex.getMessage());\n\t\t}\n\t\treturn Date.valueOf(date);\n\t}", "private Date deserializeToDate(String object) {\n synchronized (this) {\n Object object2;\n boolean bl2;\n Object object3 = this.dateFormats;\n object3 = object3.iterator();\n while (bl2 = object3.hasNext()) {\n object2 = object3.next();\n object2 = (DateFormat)object2;\n try {\n return ((DateFormat)object2).parse((String)object);\n }\n catch (ParseException parseException) {\n }\n }\n try {\n bl2 = false;\n object2 = null;\n object3 = new ParsePosition(0);\n return ISO8601Utils.parse((String)object, (ParsePosition)object3);\n }\n catch (ParseException object22) {\n object2 = new JsonSyntaxException((String)object, object22);\n throw object2;\n }\n }\n }", "@Override\n\t\tpublic java.sql.Date convert(String s) throws ParseException {\n\t\t\ts = supportHtml5DateTimePattern(s);\n\t\t\t\n\t\t\tif (timeStampWithoutSecPatternLen == s.length()) {\n\t\t\t\ts = s + \":00\";\n\t\t\t}\n\t\t\tif (s.length() > dateLen) {\t// if (x < timeStampLen) 改用 datePattern 转换,更智能\n\t\t\t\t// return new java.sql.Date(java.sql.Timestamp.valueOf(s).getTime());\t// error under jdk 64bit(maybe)\n\t\t\t\treturn new java.sql.Date(getFormat(timeStampPattern).parse(s).getTime());\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// return new java.sql.Date(java.sql.Date.valueOf(s).getTime());\t// error under jdk 64bit\n\t\t\t\treturn new java.sql.Date(getFormat(datePattern).parse(s).getTime());\n\t\t\t}\n\t\t}", "public static Date ParseFecha(String fecha)\n {\n //SimpleDateFormat formato = new SimpleDateFormat(\"dd-MM-yyyy\");\n SimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date fechaDate = null;\n try {\n if(!fecha.equals(\"0\")){\n fechaDate = formato.parse(fecha);\n }\n\n }\n catch (ParseException ex)\n {\n System.out.println(ex);\n }\n return fechaDate;\n }", "private static Date toDate(final Object value, final String identifier) throws ParseException {\n if (value == null) {\n return null;\n }\n if (value instanceof Number) {\n return new Date(((Number) value).longValue());\n }\n final String t = (String) value;\n if (t.indexOf('-') < 0) try {\n return new Date(Long.valueOf(t));\n } catch (NumberFormatException e) {\n throw new ParseException(\"Illegal date: \" + value + \" (property:\" + identifier +\")\", e);\n }\n try {\n synchronized (JsonMetadataConstants.DATE_FORMAT) {\n return JsonMetadataConstants.DATE_FORMAT.parse((String) value);\n }\n } catch (java.text.ParseException e) {\n throw new ParseException(\"Illegal date: \" + value + \" (property:\" + identifier +\")\", e);\n }\n }", "public static synchronized Date parseDate(String s) throws ParseException {\n return dateFormat.parse(s);\n }", "public void parseDate(String d)\n {\n\tdate.set(d);\n String [] dateList = d.split(\"-\");\n \n year.set(Integer.valueOf(dateList[0]));\n month.set(Integer.valueOf(dateList[1]));\n day.set(Integer.valueOf(dateList[2]));\n }", "private static String convertDate(String dateString) {\n String date = null;\n\n try {\n //Parse the string into a date variable\n Date parsedDate = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\").parse(dateString);\n\n //Now reformat it using desired display pattern:\n date = new SimpleDateFormat(DATE_FORMAT).format(parsedDate);\n\n } catch (ParseException e) {\n Log.e(TAG, \"getDate: Error parsing date\", e);\n e.printStackTrace();\n }\n\n return date;\n }", "public static Date isoStringToDate(String d) {\n\t\tDateTime dt = XML_DATE_TIME_FORMAT.parseDateTime(d);\n\t\treturn dt.toDate();\n\t}", "public static final DataType<Date> createDate(final String format) {\r\n return new ARXDate(format);\r\n }", "public String convertDateFormate(String dt) {\n String formatedDate = \"\";\n if (dt.equals(\"\"))\n return \"1970-01-01\";\n String[] splitdt = dt.split(\"-\");\n formatedDate = splitdt[2] + \"-\" + splitdt[1] + \"-\" + splitdt[0];\n \n return formatedDate;\n \n }", "@SuppressWarnings(\"deprecation\")\n\tpublic static Date getDateForString(String dateString) {\n\t\tString[] separation1 = dateString.split(\" \");\n\t\tString[] separation2 = separation1[0].split(\"/\");\n\t\tString[] separation3 = separation1[1].split(\":\");\n\t\treturn new Date(Integer.parseInt(separation2[2])-1900, (Integer.parseInt(separation2[1])-1), Integer.parseInt(separation2[0]), Integer.parseInt(separation3[0]), Integer.parseInt(separation3[1]), Integer.parseInt(separation3[2]));\n\t}", "public static Date stringToDate(String fecha, String formato){\n if(fecha==null || fecha.equals(\"\")){\n return null;\n } \n GregorianCalendar gc = new GregorianCalendar();\n try {\n fecha = nullToBlank(fecha);\n SimpleDateFormat df = new SimpleDateFormat(formato);\n gc.setTime(df.parse(fecha));\n } catch (Exception e) {\n e.printStackTrace();\n }\n return gc.getTime();\n }", "public static Date dateFromString(String date, String pattern, Locale locale) throws ParseException {\n DateFormat format = new SimpleDateFormat(pattern, locale);\n return format.parse(date);\n }", "public static Date getDateFromString(String date, String format)\n {\n SimpleDateFormat formatter = new SimpleDateFormat(format);\n ParsePosition pos = new ParsePosition(0);\n\n // Parse the string back into a Time Stamp.\n return formatter.parse(date, pos);\n }", "public Date formatDate( String dob )\n throws ParseException {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n dateFormat.setLenient(false);\n return dateFormat.parse(dob);\n }", "public static Date parseDateYYYYMMDD(String val) {\n\n\t\tDate d = null;\n\n\t\tif (val != null && !val.equals(\"0\")) {\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\ttry {\n\t\t\t\td = format.parse(val);\n\t\t\t} catch (ParseException e) {\n\t\t\t}\n\t\t}\n\n\t\treturn d;\n\n\t}", "public static Date toDateFormat_1(String dateString) {\r\n\t\treturn stringToDate(dateString, DATE_FORMAT_1);\r\n\t}", "public static Date convert(String timeString){\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MMM/yyyy:HH:mm:ss ZZZZ\");\n // set default timezone to be runtime independent\n TimeZone.setDefault(TimeZone.getTimeZone(\"UTC\"));\n try {\n return dateFormat.parse(timeString);\n } catch (ParseException e) {\n LOGGER.log(Level.SEVERE, \"Date cannot be parsed: \"+ timeString, e);\n return null;\n }\n }", "public static String convertDate(String dbDate) throws ParseException //yyyy-MM-dd\n {\n String convertedDate = \"\";\n\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(dbDate);\n\n convertedDate = new SimpleDateFormat(\"MM/dd/yyyy\").format(date);\n\n return convertedDate ;\n }", "public static Date convertStringToDate(String stringDate) {\n\n\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\"); \n\t\tDate startDate = null;\n\n\t\ttry {\n\t\t startDate = df.parse(stringDate);\n\n\t\t} catch (ParseException e) {\n\t\t e.printStackTrace();\n\t\t}\n\t\treturn startDate;\n\t\t\n\t}", "public Date getConvertedDate(String dateToBeConverted) {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yy hh:mm:ss\");\n\t\ttry{\n\t\t\tbookedDate = sdf.parse(dateToBeConverted);\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn bookedDate;\n\t}", "public String getDDMMMYYYYDate(String date) throws Exception {\n HashMap<Integer, String> month = new HashMap<Integer, String>();\n month.put(1, \"Jan\");\n month.put(2, \"Feb\");\n month.put(3, \"Mar\");\n month.put(4, \"Apr\");\n month.put(5, \"May\");\n month.put(6, \"Jun\");\n month.put(7, \"Jul\");\n month.put(8, \"Aug\");\n month.put(9, \"Sep\");\n month.put(10, \"Oct\");\n month.put(11, \"Nov\");\n month.put(12, \"Dec\");\n\n try {\n String[] dtArray = date.split(\"-\");\n return dtArray[1] + \"-\" + month.get(Integer.parseInt(dtArray[1])) + \"-\" + dtArray[0];\n } catch (Exception e) {\n throw new Exception(\"getDDMMMYYYYDate : \" + date + \" : \" + e.toString());\n }\n\n }", "public String ConvertDate(){\r\n//\t\tDate date=JavaUtils.getSystemDate();\r\n//\t DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n\t String pattern = \"yyyy-MM-dd\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n\r\n\t String date = simpleDateFormat.format(new Date());\r\n//\t System.out.println(date);\r\n\t \r\n//\t String s = df.format(date);\r\n//\t String result = s;\r\n//\t try {\r\n//\t date=df.parse(result);\r\n//\t } catch (ParseException e) {\r\n//\t // TODO Auto-generated catch block\r\n//\t e.printStackTrace();\r\n//\t }\r\n\t return date;\r\n\t }", "public static Date convertString2Date(String strTime) {\r\n\t\t Calendar calendar = Calendar.getInstance();\r\n\t\t calendar.setTimeInMillis(Long.valueOf(strTime));\r\n\t\t return calendar.getTime();\r\n\t}", "public static Date dateFromShortString(String dateString) {\n SimpleDateFormat fmt = new SimpleDateFormat(\"dd-MMM-yyyy\", Locale.getDefault());\n try {\n return fmt.parse(dateString);\n } catch (ParseException e) {\n e.printStackTrace();\n return new Date();\n }\n }", "public static Date fotmatDate18(String myDate) {\n\t\tif(myDate == null || \"\".equals(myDate)) return null;\r\n\t\tDate dDate = (Date) new SimpleDateFormat(\"yyyyMMddHHmmss\").parse(myDate,\r\n\t\t\t\tnew ParsePosition(0));\r\n\t\treturn dDate;\r\n\t}", "private static Date getDate(String sdate)\n\t{\n\t\tDate date = null;\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\ttry {\n\t\t\tdate = formatter.parse(sdate);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn date;\n\t}", "public static Date fromOADate(double oaDate) {\n Date date = new Date();\n //long t = (long)((oaDate - 25569) * 24 * 3600 * 1000);\n //long t = (long) (oaDate * 1000000);\n long t = (long)BigDecimalUtil.mul(oaDate, 1000000);\n date.setTime(t);\n return date;\n }", "public static Date parse(String input) throws java.text.ParseException {\n\t\treturn new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.S\").parse(input);\n\n\t}", "protected static Date parseDate(String dateStr) {\n if (dateStr != null) {\n try {\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n return df.parse(dateStr);\n }\n catch (Exception e) {\n throw new IllegalArgumentException(\"Expected date in format yyyy-MM-dd but got \" + dateStr, e);\n }\n }\n return null;\n }", "public static Date strToTime(String strDate)\r\n/* 135: */ {\r\n/* 136:192 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd HH:mm:ss\");\r\n/* 137:193 */ ParsePosition pos = new ParsePosition(0);\r\n/* 138:194 */ Date strtodate = formatter.parse(strDate, pos);\r\n/* 139:195 */ return strtodate;\r\n/* 140: */ }", "public Date parseString(String dateString) throws ParseException {\n return dateFormat.parse(dateString);\n }", "public static Date toDateFormat_4(String dateString) {\r\n\t\treturn stringToDate(dateString, DATE_FORMAT_4);\r\n\t}", "public static Date GetDateObjectFromString(String dateAsString) {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tDate tempDate = null;\n\t\ttry {\n\t\t\tif (dateAsString != null && !dateAsString.equalsIgnoreCase(\"null\"))\n\t\t\t\ttempDate = sdf.parse(dateAsString);\n\t\t} catch (Exception e) {\n\t\t\t// do some error reporting here\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn tempDate;\n\t}", "public static java.util.Date convertToUDate(String dateInString) {\n\t\tif (dateInString == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\tjava.util.Date uDate = null;\n\t\t\ttry {\n\t\t\t\tuDate = dateFormat.parse(dateInString);\n\t\t\t} catch (ParseException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn uDate;\n\t\t}\n\t}", "public static Date parseDate(String date) throws java.text.ParseException {\n if(date == null) return null;\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n try {\n return sdf.parse(date);\n\n } catch(ParseException e) {\n sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\n try {\n return sdf.parse(date);\n\n } catch(ParseException e2) {\n sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.parse(date);\n }\n } \n }", "public static String convertDate(String input) {\n String res = \"\";\n\n String[] s = input.split(\" \");\n\n res += s[2] + \"-\";\n switch (s[1]) {\n case \"January\":\n res += \"01\";\n break;\n case \"February\":\n res += \"02\";\n break;\n case \"March\":\n res += \"03\";\n break;\n case \"April\":\n res += \"04\";\n break;\n case \"May\":\n res += \"05\";\n break;\n case \"June\":\n res += \"06\";\n break;\n case \"July\":\n res += \"07\";\n break;\n case \"August\":\n res += \"08\";\n break;\n case \"September\":\n res += \"09\";\n break;\n case \"October\":\n res += \"10\";\n break;\n case \"November\":\n res += \"11\";\n break;\n case \"December\":\n res += \"12\";\n break;\n default:\n res += \"00\";\n break;\n }\n\n res += \"-\";\n if (s[0].length() == 1) {\n res += \"0\" + s[0];\n }\n else {\n res += s[0];\n }\n return res;\n }", "public static java.util.Date parseStringToDate(String data, String pattern) {\r\n\t\tjava.util.Date retorno = null;\r\n\r\n\t\tif (data != null && pattern != null) {\r\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(pattern);\r\n\t\t\tformat.setLenient(false);\r\n\t\t\ttry {\r\n\t\t\t\tretorno = format.parse(data);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public static String convertDateToSend(String gotdate){\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(Long.parseLong(gotdate));\n SimpleDateFormat inputFormat = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n SimpleDateFormat outputFormat = new SimpleDateFormat(\"dd MMM yyyy\");\n /*Date parsedDate = null;\n try {\n parsedDate = inputFormat.parse(gotdate);\n } catch (ParseException e) {\n e.printStackTrace();\n }*/\n String formattedDate = outputFormat.format(calendar.getTime());\n return formattedDate;\n }", "public static HISDate valueOf(String datStr) throws HISDateException {\r\n return HISDate.valueOf(datStr, null);\r\n }", "public Date(String icalStr) throws ParseException, BogusDataException\r\n\t{\r\n\t\tsuper(icalStr);\r\n\r\n\t\tyear = month = day = 0;\r\n\t\thour = minute = second = 0;\r\n\r\n\t\tfor (int i = 0; i < attributeList.size(); i++)\r\n\t\t{\r\n\t\t\tAttribute a = attributeAt(i);\r\n\t\t\tString aname = a.name.toUpperCase(Locale.ENGLISH);\r\n\t\t\tString aval = a.value.toUpperCase(Locale.ENGLISH);\r\n\t\t\t// TODO: not sure if any attributes are allowed here...\r\n\t\t\t// Look for VALUE=DATE or VALUE=DATE-TIME\r\n\t\t\t// DATE means untimed for the event\r\n\t\t\tif (aname.equals(\"VALUE\"))\r\n\t\t\t{\r\n\t\t\t\tif (aval.equals(\"DATE\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tdateOnly = true;\r\n\t\t\t\t} else if (aval.equals(\"DATE-TIME\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tdateOnly = false;\r\n\t\t\t\t}\r\n\t\t\t} else if (aname.equals(\"TZID\"))\r\n\t\t\t{\r\n\t\t\t\ttzid = a.value;\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\t// TODO: anything else allowed here?\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tString inDate = value;\r\n\r\n\t\tif (inDate.length() < 8)\r\n\t\t{\r\n\t\t\t// Invalid format\r\n\t\t\tthrow new ParseException(\"Invalid date format '\" + inDate + \"'\",\r\n\t\t\t\t\tinDate);\r\n\t\t}\r\n\r\n\t\t// Make sure all parts of the year are numeric.\r\n\t\tfor (int i = 0; i < 8; i++)\r\n\t\t{\r\n\t\t\tchar ch = inDate.charAt(i);\r\n\t\t\tif (ch < '0' || ch > '9')\r\n\t\t\t{\r\n\t\t\t\tthrow new ParseException(\r\n\t\t\t\t\t\t\"Invalid date format '\" + inDate + \"'\", inDate);\r\n\t\t\t}\r\n\t\t}\r\n\t\tyear = Integer.parseInt(inDate.substring(0, 4));\r\n\t\tmonth = Integer.parseInt(inDate.substring(4, 6));\r\n\t\tday = Integer.parseInt(inDate.substring(6, 8));\r\n\t\tif (day < 1 || day > 31 || month < 1 || month > 12)\r\n\t\t\tthrow new BogusDataException(\"Invalid date '\" + inDate + \"'\",\r\n\t\t\t\t\tinDate);\r\n\t\t// Make sure day of month is valid for specified month\r\n\t\tif (year % 4 == 0)\r\n\t\t{\r\n\t\t\t// leap year\r\n\t\t\tif (day > leapMonthDays[month - 1])\r\n\t\t\t{\r\n\t\t\t\tthrow new BogusDataException(\"Invalid day of month '\" + inDate\r\n\t\t\t\t\t\t+ \"'\", inDate);\r\n\t\t\t}\r\n\t\t} else\r\n\t\t{\r\n\t\t\tif (day > monthDays[month - 1])\r\n\t\t\t{\r\n\t\t\t\tthrow new BogusDataException(\"Invalid day of month '\" + inDate\r\n\t\t\t\t\t\t+ \"'\", inDate);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// TODO: parse time, handle localtime, handle timezone\r\n\t\tif (inDate.length() > 8)\r\n\t\t{\r\n\t\t\t// TODO make sure dateOnly == false\r\n\t\t\tif (inDate.charAt(8) == 'T')\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\thour = Integer.parseInt(inDate.substring(9, 11));\r\n\t\t\t\t\tminute = Integer.parseInt(inDate.substring(11, 13));\r\n\t\t\t\t\tsecond = Integer.parseInt(inDate.substring(13, 15));\r\n\t\t\t\t\tif (hour > 23 || minute > 59 || second > 59)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tthrow new BogusDataException(\r\n\t\t\t\t\t\t\t\t\"Invalid time in date string '\" + inDate + \"'\",\r\n\t\t\t\t\t\t\t\tinDate);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (inDate.length() > 15)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tisUTC = inDate.charAt(15) == 'Z';\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (NumberFormatException nef)\r\n\t\t\t\t{\r\n\t\t\t\t\tthrow new BogusDataException(\r\n\t\t\t\t\t\t\t\"Invalid time in date string '\" + inDate + \"' - \"\r\n\t\t\t\t\t\t\t\t\t+ nef, inDate);\r\n\t\t\t\t}\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\t// Invalid format\r\n\t\t\t\tthrow new ParseException(\r\n\t\t\t\t\t\t\"Invalid date format '\" + inDate + \"'\", inDate);\r\n\t\t\t}\r\n\t\t} else\r\n\t\t{\r\n\t\t\t// Just date, no time\r\n\t\t\tdateOnly = true;\r\n\t\t}\r\n\r\n\t\tif (isUTC && !dateOnly)\r\n\t\t{\r\n\t\t\t// Use Joda Time to convert UTC to localtime\r\n\t\t\tDateTime utcDateTime = new DateTime(DateTimeZone.UTC);\r\n\t\t\tutcDateTime = utcDateTime.withDate(year, month, day).withTime(hour,\r\n\t\t\t\t\tminute, second, 0);\r\n\t\t\tDateTime localDateTime = utcDateTime.withZone(DateTimeZone\r\n\t\t\t\t\t.getDefault());\r\n\t\t\tyear = localDateTime.getYear();\r\n\t\t\tmonth = localDateTime.getMonthOfYear();\r\n\t\t\tday = localDateTime.getDayOfMonth();\r\n\t\t\thour = localDateTime.getHourOfDay();\r\n\t\t\tminute = localDateTime.getMinuteOfHour();\r\n\t\t\tsecond = localDateTime.getSecondOfMinute();\r\n\t\t} else if (tzid != null)\r\n\t\t{\r\n\t\t\tDateTimeZone tz = DateTimeZone.forID(tzid);\r\n\t\t\tif (tz != null)\r\n\t\t\t{\r\n\t\t\t\t// Convert to localtime\r\n\t\t\t\tDateTime utcDateTime = new DateTime(tz);\r\n\t\t\t\tutcDateTime = utcDateTime.withDate(year, month, day).withTime(\r\n\t\t\t\t\t\thour, minute, second, 0);\r\n\t\t\t\tDateTime localDateTime = utcDateTime.withZone(DateTimeZone\r\n\t\t\t\t\t\t.getDefault());\r\n\t\t\t\tyear = localDateTime.getYear();\r\n\t\t\t\tmonth = localDateTime.getMonthOfYear();\r\n\t\t\t\tday = localDateTime.getDayOfMonth();\r\n\t\t\t\thour = localDateTime.getHourOfDay();\r\n\t\t\t\tminute = localDateTime.getMinuteOfHour();\r\n\t\t\t\tsecond = localDateTime.getSecondOfMinute();\r\n\t\t\t\t// Since we have converted to localtime, remove the TZID\r\n\t\t\t\t// attribute\r\n\t\t\t\tthis.removeNamedAttribute(\"TZID\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tisUTC = false;\r\n\r\n\t\t// Add attribute that says date-only or date with time\r\n\t\tif (dateOnly)\r\n\t\t\taddAttribute(\"VALUE\", \"DATE\");\r\n\t\telse\r\n\t\t\taddAttribute(\"VALUE\", \"DATE-TIME\");\r\n\r\n\t}", "public static Date changeDateFormat(String date, String format){\n SimpleDateFormat sdf = new SimpleDateFormat(format);\n try {\n return sdf.parse(date);\n } catch (ParseException e) {\n e.printStackTrace();\n return null;\n }\n }", "public static Date parseToDate(String dateAParser, String type){\n\t\tDateFormat dfTmp = \"US\".equals(type) ? df : dfr;\n\t\tDate retour = null;\n\t\ttry {\n\t\t\tif(dateAParser != null){\n\t\t\t\tretour = df.parse(dateAParser);\n \n\t\t\t}\n\t\t} catch (ParseException e) {\n\t\t\t//TODO : add log\n\t\t}\n\t\treturn retour;\n\t}" ]
[ "0.7128753", "0.66758424", "0.6668269", "0.6564416", "0.6516368", "0.64886224", "0.64732814", "0.64382535", "0.6397164", "0.63935024", "0.6373945", "0.6354668", "0.63499004", "0.6316702", "0.6300565", "0.6291686", "0.6276653", "0.624754", "0.6245499", "0.6241071", "0.6209454", "0.6183469", "0.61758715", "0.6165755", "0.6163936", "0.6162372", "0.6161481", "0.61504126", "0.6125099", "0.6100906", "0.60933584", "0.6082187", "0.60784394", "0.607454", "0.6071152", "0.60450214", "0.6018229", "0.59970033", "0.599033", "0.59875077", "0.59492826", "0.5945502", "0.5942703", "0.59370685", "0.59071946", "0.5898971", "0.58848923", "0.58725536", "0.5847359", "0.5845098", "0.5818364", "0.5803428", "0.5803099", "0.5803041", "0.5796448", "0.579566", "0.57952994", "0.578453", "0.5760686", "0.57479", "0.5736671", "0.5735518", "0.57106304", "0.57013816", "0.57007027", "0.5694692", "0.5692901", "0.5691795", "0.5689015", "0.5684184", "0.56655127", "0.5651239", "0.5636676", "0.5628124", "0.5613303", "0.5612066", "0.55929416", "0.5583441", "0.5577259", "0.5550014", "0.5548023", "0.55466807", "0.5542805", "0.55365336", "0.55234736", "0.5521239", "0.5513111", "0.5495385", "0.5494543", "0.5493689", "0.5492904", "0.5462284", "0.54557097", "0.5455278", "0.5432353", "0.54196036", "0.5416803", "0.5397829", "0.5396824", "0.53944963" ]
0.6908813
1
Retorna matricula sem o digito verificador.
public static String obterMatriculaSemDigitoVerificador(String matriculaComDigito) { String matriculaSemDigito = ""; if (matriculaComDigito.length() > 0) { int tamanhoMatricula = matriculaComDigito.length(); matriculaSemDigito = matriculaComDigito.substring(0, tamanhoMatricula - 1); } return matriculaSemDigito; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTxt_matricula() {\r\n\t\treturn txt_matricula.getText();\r\n\t}", "public long getMatricula() {\r\n return matricula;\r\n }", "public String verMarcacion(){\n\t\t limpiar();\n\t\t\tString vista=\"pretty:misMarcacionesPretty\";\n\t //CODIGO\n\t return vista;\n\t\t}", "@Override\n\tpublic Vehiculo leerVehiculos(String matricula) {\n\t\treturn null;\n\t}", "float[] getMVPMatrix();", "public native boolean getMatte() throws MagickException;", "public char[][] getMatriz() {\r\n\t\treturn matriz;\r\n\t}", "public static int[][] trabalhaMatriz(QRCode qr, BitVector vector){\n \tint versao = qr.getVersion().getBits();\n \tint ecLevel = qr.getErrorCorrectionLevel().getBits();\n int[][] a = new int[largura][altura];\n\n //instanciacao elemento a elemento dos arrays\n int m=0, n=0;\n for(m=0; m<largura; m++)\n for(n=0; n<altura; n++)\n a[m][n]=3; //valor de iniciacao = indica disponibilidade de uso\n\n //System.err.println(\"Debugando em 2\");\n \n //Desenha os Detectores de Posicao da Mascara\n int aX=3, aY=3;\n\n //formando os quadrados de dentro pra fora\n //quadrado superior esquerdo\n a[aX][aY]=1;\n a[aX-1][aY-1]=1; a[aX][aY-1]=1;a[aX+1][aY-1]=1;a[aX+1][aY]=1;a[aX+1][aY+1]=1;a[aX][aY+1]=1;a[aX-1][aY+1]=1;a[aX-1][aY]=1;\n a[aX-2][aY-2]=0;a[aX-1][aY-2]=0;a[aX][aY-2]=0;a[aX+1][aY-2]=0;a[aX+2][aY-2]=0;a[aX+2][aY-1]=0;a[aX+2][aY]=0;a[aX+2][aY+1]=0;a[aX+2][aY+2]=0;a[aX+1][aY+2]=0;a[aX][aY+2]=0;a[aX-1][aY+2]=0;a[aX-2][aY+2]=0;a[aX-2][aY+1]=0;a[aX-2][aY]=0;a[aX-2][aY-1]=0;\n a[aX-3][aY-3]=1;a[aX-2][aY-3]=1;a[aX-1][aY-3]=1;a[aX][aY-3]=1;a[aX+1][aY-3]=1;a[aX+2][aY-3]=1;a[aX+3][aY-3]=1;a[aX+3][aY-2]=1;a[aX+3][aY-1]=1;a[aX+3][aY]=1;a[aX+3][aY+1]=1;a[aX+3][aY+2]=1;a[aX+3][aY+3]=1;a[aX+2][aY+3]=1;a[aX+1][aY+3]=1;a[aX][aY+3]=1;a[aX-1][aY+3]=1;a[aX-2][aY+3]=1;a[aX-3][aY+3]=1;a[aX-3][aY+2]=1;a[aX-3][aY+1]=1;a[aX-3][aY]=1;a[aX-3][aY-1]=1;a[aX-3][aY-2]=1;\n for(int g=aX-3; g<8; g++)\n a[g][aY+4]=0;\n for(int f=aY+4; f>=0; f--)\n a[aX+4][f]=0;\n\n //quadrado inferior esquerdo\n aX=3; aY=altura-4;\n a[aX][aY]=1;\n a[aX-1][aY-1]=1; a[aX][aY-1]=1;a[aX+1][aY-1]=1;a[aX+1][aY]=1;a[aX+1][aY+1]=1;a[aX][aY+1]=1;a[aX-1][aY+1]=1;a[aX-1][aY]=1;\n a[aX-2][aY-2]=0;a[aX-1][aY-2]=0;a[aX][aY-2]=0;a[aX+1][aY-2]=0;a[aX+2][aY-2]=0;a[aX+2][aY-1]=0;a[aX+2][aY]=0;a[aX+2][aY+1]=0;a[aX+2][aY+2]=0;a[aX+1][aY+2]=0;a[aX][aY+2]=0;a[aX-1][aY+2]=0;a[aX-2][aY+2]=0;a[aX-2][aY+1]=0;a[aX-2][aY]=0;a[aX-2][aY-1]=0;\n a[aX-3][aY-3]=1;a[aX-2][aY-3]=1;a[aX-1][aY-3]=1;a[aX][aY-3]=1;a[aX+1][aY-3]=1;a[aX+2][aY-3]=1;a[aX+3][aY-3]=1;a[aX+3][aY-2]=1;a[aX+3][aY-1]=1;a[aX+3][aY]=1;a[aX+3][aY+1]=1;a[aX+3][aY+2]=1;a[aX+3][aY+3]=1;a[aX+2][aY+3]=1;a[aX+1][aY+3]=1;a[aX][aY+3]=1;a[aX-1][aY+3]=1;a[aX-2][aY+3]=1;a[aX-3][aY+3]=1;a[aX-3][aY+2]=1;a[aX-3][aY+1]=1;a[aX-3][aY]=1;a[aX-3][aY-1]=1;a[aX-3][aY-2]=1;\n for(int g=aX-3; g<8; g++)\n a[g][aY-4]=0;\n for(int f=aY-4; f<altura; f++)\n a[aX+4][f]=0;\n\n //quadrado superior direito\n aX=largura-4; aY=3;\n a[aX][aY]=1;\n a[aX-1][aY-1]=1; a[aX][aY-1]=1;a[aX+1][aY-1]=1;a[aX+1][aY]=1;a[aX+1][aY+1]=1;a[aX][aY+1]=1;a[aX-1][aY+1]=1;a[aX-1][aY]=1;\n a[aX-2][aY-2]=0;a[aX-1][aY-2]=0;a[aX][aY-2]=0;a[aX+1][aY-2]=0;a[aX+2][aY-2]=0;a[aX+2][aY-1]=0;a[aX+2][aY]=0;a[aX+2][aY+1]=0;a[aX+2][aY+2]=0;a[aX+1][aY+2]=0;a[aX][aY+2]=0;a[aX-1][aY+2]=0;a[aX-2][aY+2]=0;a[aX-2][aY+1]=0;a[aX-2][aY]=0;a[aX-2][aY-1]=0;\n a[aX-3][aY-3]=1;a[aX-2][aY-3]=1;a[aX-1][aY-3]=1;a[aX][aY-3]=1;a[aX+1][aY-3]=1;a[aX+2][aY-3]=1;a[aX+3][aY-3]=1;a[aX+3][aY-2]=1;a[aX+3][aY-1]=1;a[aX+3][aY]=1;a[aX+3][aY+1]=1;a[aX+3][aY+2]=1;a[aX+3][aY+3]=1;a[aX+2][aY+3]=1;a[aX+1][aY+3]=1;a[aX][aY+3]=1;a[aX-1][aY+3]=1;a[aX-2][aY+3]=1;a[aX-3][aY+3]=1;a[aX-3][aY+2]=1;a[aX-3][aY+1]=1;a[aX-3][aY]=1;a[aX-3][aY-1]=1;a[aX-3][aY-2]=1;\n for(int g=aX-3; g<largura; g++)\n a[g][aY+4]=0;\n for(int f=aY-3; f<8; f++)\n a[aX-4][f]=0;\n\n //Adjustment Pattern = ajuste padronizado\n int auxilia0[]=getListaAdjustmentPattern(versao);\n if(auxilia0[0]!=0){\n for(int hi=0; hi<auxilia0.length; hi++){\n aX=auxilia0[hi];\n for(int hj=0; hj<auxilia0.length; hj++){\n aY=auxilia0[hj];\n if(a[aX][aY]==3){\n a[aX][aY]=1;\n a[aX-1][aY-1]=0;a[aX][aY-1]=0;a[aX+1][aY-1]=0;a[aX+1][aY]=0;a[aX+1][aY+1]=0;a[aX][aY+1]=0;a[aX-1][aY+1]=0;a[aX-1][aY]=0;\n a[aX-2][aY-2]=1;a[aX-1][aY-2]=1;a[aX][aY-2]=1;a[aX+1][aY-2]=1;a[aX+2][aY-2]=1;a[aX+2][aY-1]=1;a[aX+2][aY]=1;a[aX+2][aY+1]=1;a[aX+2][aY+2]=1;a[aX+1][aY+2]=1;a[aX][aY+2]=1;a[aX-1][aY+2]=1;a[aX-2][aY+2]=1;a[aX-2][aY+1]=1;a[aX-2][aY]=1;a[aX-2][aY-1]=1;\n }\n }\n }\n }\n\n //System.err.println(\"Debugando em 3\");\n\n //Caminho dos Timing Patterns\n // *Horizontal\n int x=0, y=0;\n for(x=3+5, y=6; x<largura-8; x++){\n if(x%2==0){\n a[x][y]=1;//infoTimingH[x-8];}\n } else {\n a[x][y]=0;}\n }\n // *Vertical\n for(x=3+3, y=3+5; y<largura-8; y++){\n if(y%2==0){\n a[x][y]=1;//infoTimingV[x-8];}\n } else {\n a[x][y]=0;}\n }\n\n //Desenha o Black pixel\n a[8][altura-8]=1;\n\n\n int z=0;\n //Type Version Information = Tipo de Informacao\n int[] typeInformationMask = getTypeInformationMask(ecLevel, 0);\n\n // *bit 0 a 7\n x=0; y=0;\n for(x=largura-1, y=8, z=14; x>largura-9; x--, z--)\n a[x][y]=typeInformationMask[z];\n for(x=8, y=0, z=14; y<9; y++)\n if(a[x][y]==3){\n a[x][y]=typeInformationMask[z];\n z--;\n }\n // *bit 8 a 14\n for(x=7, y=8, z=6; x>=0; x--)\n if(a[x][y]==3){\n a[x][y]=typeInformationMask[z];\n z--;\n }\n for(x=8, y=altura-7, z=6; y<altura; y++, z--)\n a[x][y]=typeInformationMask[z];\n\n //System.err.println(\"Debugando em 4\");\n\n //Version Information\n if(versao>=7){\n int[] versionInformation = getVersionInformation(versao);\n // *Vertical\n x=0; y=0; z=0;\n for(y=0, x=largura-11, z=0; y<7 && z<18; y++)\n for(x=largura-11; x<largura-8; x++, z++)\n a[x][y]=versionInformation[z];\n\n // *Horizontal\n x=0; y=0; z=0;\n for(x=0, y=altura-11, z=0; x<7 && z<18; x++)\n for(y=altura-11; y<largura-8; y++, z++)\n a[x][y]=versionInformation[z];\n }\n\n //System.err.println(\"Debugando em 5\");\n \n //Insercao do Vetor Data de Binario\n int loop=largura-1;\n int aI=0;\n x=largura-1; y=altura-1;\n int teste=0;\n int itera=0;\n do{\n \t System.out.println(vector.getBitWise(itera));\n for(y=largura-1, x=loop; y>=0 && (x==loop || x==loop-1) && loop>=0; y--){\n x=loop;\n if(UseMaskPatt(x,y,0)==1 && a[x][y]==3) {\n if(vector.getBitWise(itera)==1)\n a[x][y]=0;\n else\n a[x][y]=1;\n itera++;\n aI=itera;\n } else if(UseMaskPatt(x,y,0)==0 && a[x][y]==3){\n a[x][y]=vector.getBitWise(itera);\n itera++;\n aI=itera;\n }\n if(loop>0){\n x=loop-1;\n if(UseMaskPatt(x,y,0)==1 && a[x][y]==3) {\n if(vector.getBitWise(itera)==1)\n a[x][y]=0;\n else\n a[x][y]=1;\n itera++;\n aI=itera;\n } else if(UseMaskPatt(x,y,0)==0 && a[x][y]==3){\n a[x][y]=vector.getBitWise(itera);\n itera++;\n aI=itera;\n }\n }\n }\n if(aI!=0)\n loop=loop-2;\n for(y=0, x=loop; y<=largura-1 && (x==loop || x==loop-1) && loop>=0; y++){\n x=loop;\n if(UseMaskPatt(x,y,0)==1 && a[x][y]==3) {\n if(vector.getBitWise(itera)==1)\n a[x][y]=0;\n else\n a[x][y]=1;\n itera++;\n aI=itera;\n } else if(UseMaskPatt(x,y,0)==0 && a[x][y]==3){\n a[x][y]=vector.getBitWise(itera);\n itera++;\n aI=itera;\n }\n if(loop>0){\n x=loop-1;\n if(UseMaskPatt(x,y,0)==1 && a[x][y]==3) {\n if(vector.getBitWise(itera)==1)\n a[x][y]=0;\n else\n a[x][y]=1;\n itera++;\n aI=itera;\n } else if(UseMaskPatt(x,y,0)==0 && a[x][y]==3){\n a[x][y]=vector.getBitWise(itera);\n itera++;\n aI=itera;\n }\n }\n }\n if(aI!=0)\n loop=loop-2;\n aI=0;\n if(x<=0 && y<=0) break;\n //System.err.println(\"Debugando em 6... com itera: \"+itera+\" e aI: \"+aI+\" e x: \"+x+\" e y: \"+y);\n }while(itera<(vector.getOffset()));\n\n\n System.err.println(\"[1] Matriz de inteiros como representacao do QR Code gerada com sucesso!\");\n System.out.println(\"Ultimo valor do itera: \"+itera);\n\n System.err.println(\"[1.5] Testando Penalizar Máscara!\");\n System.out.println(\"Valor de penalização: \"+PenalizeMask.TestMask(a, largura));\n\n return a;\n }", "public java.lang.String getMATNR() {\n return MATNR;\n }", "public void verificarMatriculado() {\r\n\t\ttry {\r\n\t\t\tif (periodo == null)\r\n\t\t\t\tMensaje.crearMensajeERROR(\"ERROR AL BUSCAR PERIODO HABILITADO\");\r\n\t\t\telse {\r\n\t\t\t\tif (mngRes.buscarNegadoPeriodo(getDniEstudiante(), periodo.getPrdId()))\r\n\t\t\t\t\tMensaje.crearMensajeWARN(\r\n\t\t\t\t\t\t\t\"Usted no puede realizar una reserva. Para más información diríjase a las oficinas de Bienestar Estudiantil.\");\r\n\t\t\t\telse {\r\n\t\t\t\t\testudiante = mngRes.buscarMatriculadoPeriodo(getDniEstudiante(), periodo.getPrdId());\r\n\t\t\t\t\tif (estudiante == null) {\r\n\t\t\t\t\t\tMensaje.crearMensajeWARN(\r\n\t\t\t\t\t\t\t\t\"Usted no esta registrado. Para más información diríjase a las oficinas de Bienestar Universitario.\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tmngRes.generarEnviarToken(getEstudiante());\r\n\t\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('dlgtoken').show();\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tMensaje.crearMensajeERROR(\"Error verificar matrícula: \" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private static String representacaoAM(Graph grafo) {\r\n\t\tfloat[][] matriz = new float[grafo.getVertexNumber()][grafo.getVertexNumber()];\r\n\r\n\t\tfor (Aresta aresta : grafo.getArestas()) {\r\n\t\t\tint valorA = aresta.getV1().getValor();\r\n\t\t\tint valorB = aresta.getV2().getValor();\r\n\r\n\t\t\tmatriz[valorA][valorB] = aresta.getPeso(); // vale nos dois sentidos\r\n\t\t\tmatriz[valorB][valorA] = aresta.getPeso(); // vale nos dois sentidos\r\n\t\t}\r\n\r\n\t\tStringBuilder result = new StringBuilder();\r\n\r\n\t\tfor (int i = 0; i < matriz.length; i++) {\r\n\t\t\tfor (int j = 0; j < matriz.length; j++) {\r\n\t\t\t\tresult.append(matriz[i][j] + \" \");\r\n\t\t\t}\r\n\t\t\tresult.append(\"\\n\");\r\n\t\t}\r\n\r\n\t\treturn result.toString();\r\n\t}", "public List<Matricula> getMatriculas(){\n\t\t\n\t\ttry {\n\t\t\treturn matricula.leerMatriculasSecretaria();\n\t\t} catch (MatriculaException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public int[][] getMatriceValeurs()\n {\n return matriceValeurs;\n }", "public MatricesPN getMatriz() {\n\t\treturn this.matriz;\n\t}", "public Matrice getMatrice(){\n int t = this.sommets.size();\n Matrice ret = new Matrice( (t), (t));\n\n List<Arc<T>> arcsTemps ;\n\n for(int i=0 ; i < t ;i++){\n arcsTemps = getArcsDepuisSource(this.sommets.get(i));\n\n for (Arc<T> arcsTemp : arcsTemps) {\n System.out.println(i + \" == \" + arcsTemp.getDepart().getInfo()+ \" , \" +arcsTemp.getArrivee().getId());\n ret.setValue(i, arcsTemp.getArrivee().getId(), 1);\n }\n System.out.println(\"***\");\n }\n\n return ret;\n }", "public String getMatricule() {\n\t\treturn matricule;\n\t}", "List<Matricula> listarMatriculas();", "public int[][] getMatriuSolucio() {\n\t\treturn null;\n\t}", "C15430g mo56154a();", "public final aji mo15444g() {\n return this.f13323b;\n }", "java.lang.String getField1394();", "public double[][] convert_img_mat()\n\t{\n\t\tif(orderflag)\n\t\t{\n\t\t\tputpixel_1();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//rotate the image and get the pixels as usual form\t\n \t\tputpixel_2();\n\t\t}\n\treturn matrix;\n\t}", "@Override\n\tpublic Mat GetRomateMatrix()\n\t{\n\t\treturn mR;\n\t}", "void iniciaMatriz() {\r\n int i, j;\r\n for (i = 0; i < 5; i++) {\r\n for (j = 0; j <= i; j++) {\r\n if (j <= i) {\r\n m[i][j] = 1;\r\n } else {\r\n m[i][j] = 0;\r\n }\r\n }\r\n }\r\n m[0][1] = m[2][3] = 1;\r\n\r\n// Para los parentesis \r\n for (j = 0; j < 7; j++) {\r\n m[5][j] = 0;\r\n m[j][5] = 0;\r\n m[j][6] = 1;\r\n }\r\n m[5][6] = 0; // Porque el m[5][6] quedo en 1.\r\n \r\n for(int x=0; x<7; x++){\r\n for(int y=0; y<7; y++){\r\n // System.out.print(\" \"+m[x][y]);\r\n }\r\n //System.out.println(\"\");\r\n }\r\n \r\n }", "public C4463h2 mo15531a() {\n return this.f11024a;\n }", "public Matriu() {\n \t/** <p><b>Pre:</b></p> <Ul>Cert.</Ul>\n\t\t * <p><b>Post:</b></p> <Ul> S'inicialitza una matriu esparsa buida. </Ul>\n\t\t * \n\t\t*/\n this.M = new HashMap<>(0);\n this.MatriuTF_IDF = new HashMap<>(0);\n this.IDFJ = new TreeMap<>();\n }", "public boolean getMatrixCheck(){\r\n \treturn this.matrixCheck;\r\n \t}", "public char[][] getMatrixForm( String aColor )\r\n{\r\n\tchar c = constructionCharacter; // for brevity\r\n\r\n\t// Fill in the actual big letter. line by line\t\r\n\tmatrix[0][0] = c; matrix[0][1] = c; matrix[0][2] = c; \r\n\tmatrix[1][0] = c; matrix[1][4] = c;\r\n\tmatrix[2][0] = c; matrix[2][4] = c;\r\n\tmatrix[3][0] = c; matrix[3][1] = c;\r\n\tmatrix[4][0] = c; matrix[4][4] = c;\r\n\tmatrix[5][0] = c; matrix[5][4] = c;\r\n\tmatrix[6][0] = c; matrix[6][1] = c; matrix[6][2] = c; \r\n\t\r\n\t// Superimpose the color characters across the middle\t\r\n\tmatrix[3][0] = '-'; // required to precede the color characters as in \"-red\"\r\n\tfor( int i = 1; i < BigChar.MATRIX_WIDTH; ++i ) // go all the way across \r\n\t\tif( i <= aColor.length() ) // there is a color character to pick up\t\r\n\t\t\tmatrix[ 3 ][ i ] = aColor.charAt( i -1 ); // fill in the next color character\r\n\t\telse\r\n\t\t\tmatrix[ 3 ][ i ] = ' '; // pad on right with blanks\r\n\t\r\n\treturn matrix; \r\n}", "public static int[][] constructMatrix(int version, int mask) {\n\t\n\t\tint[][] matrix = initializeMatrix(version);\n\t\t\n\t\taddFinderPatterns(matrix);\n\t\taddAlignmentPatterns(matrix, version);\n\t\taddTimingPatterns(matrix);\n\t\taddDarkModule(matrix);\n\t\taddFormatInformation(matrix, mask);\n\t\t\n\t\treturn matrix;\n\t}", "public int[][] getMat() {\n // Note: java has no return read-only so we won't return matrix;\n // b\\c that would expose internal representation. Instead we will\n // copy each row into a new matrix, and return that.\n return Helper.cloneMatrix(matrix);\n }", "private void getLactanciasMaternas() {\n mLactanciasMaternas = estudioAdapter.getListaLactanciaMaternasSinEnviar();\n //ca.close();\n }", "public String mo23344a() {\n return this.f13985l;\n }", "boolean mo25265c();", "String getMGFAlgorithm();", "public String[] mo12393d() {\n return this.f17341k.f17235g;\n }", "int getM();", "public String mo133920j() {\n return this.f114451f;\n }", "public void printMatriz( )\n {\n //definir dados\n int lin;\n int col;\n int i;\n int j;\n\n //verificar se matriz e' valida\n if( table == null )\n {\n IO.println(\"ERRO: Matriz invalida. \" );\n } //end\n else\n {\n //obter dimensoes da matriz\n lin = lines();\n col = columns();\n IO.println(\"Matriz com \"+lin+\"x\"+col+\" posicoes.\");\n //pecorrer e mostrar posicoes da matriz\n for(i = 0; i < lin; i++)\n {\n for(j = 0; j < col; j++)\n {\n IO.print(\"\\t\"+table[ i ][ j ]);\n } //end repetir\n IO.println( );\n } //end repetir\n } //end se\n }", "public int[][] MatrizPesos(){\n return this.mat;\n }", "public static void main (String args[]){\n Scanner leitor = new Scanner(System.in);\n \n //Define as variáveis locais\n int x, y;\n \n //Lê:\n System.out.print(\"Informe o primeiro valor: \");\n x = leitor.nextInt();\n \n System.out.print(\"Informe o segundo valor: \");\n y = leitor.nextInt();\n \n //Cria a intância da classe Matematica utilizando o construtor\n Matematica mat = new Matematica(x, y);\n \n //Imprime o resultado das operações através de \n //chamadasaos métodos da classe Matematica\n System.out.println(\"--------------------\"); //Apenas para organiar a saída\n System.out.println(\"O valor da soma é: \" + mat.soma());\n System.out.println(\"O valor da subtração é: \" + mat.subtrai());\n System.out.println(\"O valor da multiplicação é: \" + mat.multiplica());\n System.out.println(\"O valor da divisão é: \" + mat.divide());\n System.out.println(\"--------------------\"); //Apenas para organiar a saída\n }", "String getMaterial();", "public final A mo131916a() {\n return this.f111800a;\n }", "public byte[][] mo35424a() {\n return C14035y.m44323a(this.f30991a);\n }", "public String[] mo12392c() {\n return this.f17341k.f17234f;\n }", "public final amg mo10649a() {\n return this.zzffb == null ? amg.m2741c() : this.zzffb;\n }", "public Mat4x4 getMatView() {\n Mat4x4 matCameraRotX = MatrixMath.matrixMakeRotationX(cameraRot.getX());\n Mat4x4 matCameraRotY = MatrixMath.matrixMakeRotationY(cameraRot.getY());\n Mat4x4 matCameraRotZ = MatrixMath.matrixMakeRotationZ(cameraRot.getZ());\n Mat4x4 matCameraRotXY = MatrixMath.matrixMultiplyMatrix(matCameraRotX, matCameraRotY);\n Mat4x4 matCameraRot = MatrixMath.matrixMultiplyMatrix(matCameraRotXY, matCameraRotZ);\n matCamera = calculateMatCamera(up, target, matCameraRot);\n matView = MatrixMath.matrixQuickInverse(matCamera);\n return matView;\n }", "public String mo81386a() {\n String d = C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\");\n WebUtil.m68654a(d, C6969H.m41409d(\"G6691DC1DB63E9E3BEA54D0\") + this.f58070b);\n if (TextUtils.isEmpty(this.f58070b)) {\n return \"\";\n }\n this.f58071c = Uri.parse(this.f58070b);\n this.f58083o = m81839a(this.f58071c.getScheme());\n String m = m81849m();\n m81850n();\n m81852p();\n m81853q();\n m81854r();\n m81855s();\n m81856t();\n return m;\n }", "public final Map<Integer, C1844cm> mo34040c() {\n return this.f589f;\n }", "public String m3140a() {\n return this.f2413g;\n }", "C11316t5 mo29022j0();", "private static ArrayList<String> construireMatriceCalcul() throws Exception_AbsenceExperienceBiomass, Exception_ParseException,IOException, Exception_SparqlConnexion {\n\n /*Pour chaque objetc : Object_TIEG de vDocExp construire le vecteur d'entrée au calul*/\n /*Le vecteur résultant sera placé sur : vVecteurCalculGlobal*/\n /*En cas de valeurs manquantes, le vecteur sera null, un message indiquant l'emplacement du manque ser transmis à la servlet*/\n \n Object_RapportCalculVecteur rapport;\n \n ArrayList<String> message= new ArrayList<>();\n \n if(vDocExp.size() > 0)\n {\n \n for(Object_TIEG obj : vDocExp)\n {\n try { \n\n if((rapport=InterrogationDataRDF.getVecteurCalcul(vPathRacine, obj, vTopicOperations, vRelationParametres)).getVecteurCalcul()!=null)\n {\n vVecteurCalculGlobal.add(rapport.getVecteurCalcul());\n }\n else\n {\n if(rapport.getMessage()!=null)\n {\n message.add(rapport.getMessage());\n }\n \n }\n \n } catch (Exception_ParseException ex) {\n \n throw ex;\n }\n }\n }\n else\n {\n throw new Exception_AbsenceExperienceBiomass();\n }\n \n return message;\n \n }", "@Test\n public void testParseMatrix() {\n String path1 = \"c:\\\\Voici\\\\input.txt\";\n MatrixReader reader = new MatrixReader(path1);\n Matrix data = reader.getMatrix();\n Matrix[] parsedMatrix = MatrixReader.parseMatrix(data, 10);\n assertEquals(parsedMatrix[0].get(4, 2), data.get(4, 2), 0.001);\n assertEquals(parsedMatrix[2].get(0, 0), data.get(32, 0), 0.001);\n assertEquals(parsedMatrix[1].get(0, 0), data.get(16, 0), 0.001);\n }", "public ArrayList<Matka> getMatkat() {\n return matkat;\n }", "public C4252xc mo41790a() {\n return C4252xc.AES_RSA;\n }", "public List<Matricula> getMatriculaAlumno() throws MatriculaException{\n\t\tList<Matricula> matalum = new ArrayList<Matricula>();\n\t\t\n for (Expediente ex : infosesion.getAlumno().getExpedientes()) {\n\t\t\tfor (Matricula matricula : matricula.buscarMatriculas(ex)) {\n\t\t\t\tmatalum.add(matricula);\n\t\t\t}\n\t\t}\n return matalum;\n\t}", "public String mo1475b() {\n return this.f5051a;\n }", "public static String[] MatrixSolve(Matrix M){\n String[] retArray = new String[M.kol];\n for (int i=1; i<M.kol; i++) {\n retArray[i] = Character.toString((char) (i + 96));\n }\n for (int i=M.bar; i>=1; i--) {\n if (!M.IsRowCoefZero(i)) {\n if (M.OnlyLeadingOne(i)) {\n //Hanya ada leading one pada baris ke-i\n retArray[M.PosLeadingElmt(i)] = Double.toString(M.Elmt(i,M.kol));\n }else{\n //Ada elemen non-0 setelah leading one pada baris ke-i\n double resDouble = M.Elmt(i,M.kol);\n String resString = \"\";\n for (int j=M.PosLeadingElmt(i)+1; j<M.kol; j++) {\n if (M.Elmt(i,j) != 0) {\n //Kondisi elemen M ke i,j bukan 0\n try {\n //Jika hasil ke-x merupakan bilangan, maka jumlahkan dengan elemen hasil\n if (retArray[j].contains(\"d\")) {\n throw new NumberFormatException(\"contains d\");\n }\n resDouble += (-1)*M.Elmt(i,j)*Double.valueOf(retArray[j]);\n } catch(NumberFormatException e) {\n //Jika hasil ke-x bukan bilangan, sambungkan koefisien dengan parameter yang sesuai\n resString += ConCoefParam((-1)*M.Elmt(i,j),retArray[j]);\n }\n }\n }\n //Gabungkan bilangan hasil dengan parameter\n if (resDouble != 0) {\n retArray[M.PosLeadingElmt(i)] = String.format(\"%.3f\",resDouble) + resString;\n }else if (resDouble == 0 && resString == \"\"){\n retArray[M.PosLeadingElmt(i)] = String.format(\"%.3f\",resDouble);\n }else{\n retArray[M.PosLeadingElmt(i)] = resString;\n }\n\n if (retArray[M.PosLeadingElmt(i)].startsWith(\"+\")){\n retArray[M.PosLeadingElmt(i)] = retArray[M.PosLeadingElmt(i)].substring(1);\n }\n }\n }\n }\n return retArray;\n}", "public static String[][] m3427b() {\n Vector vector = new Vector();\n String[][] f = C5030by.m3323f();\n if (f != null) {\n for (int length = f.length - 1; length >= 0; length--) {\n vector.addElement(f[length]);\n }\n }\n String[][] a = C5047co.m3446a();\n if (a != null) {\n for (int length2 = a.length - 1; length2 >= 0; length2--) {\n vector.addElement(a[length2]);\n }\n }\n String[][] a2 = C5075dp.m3559a();\n if (a2 != null) {\n for (int length3 = a2.length - 1; length3 >= 0; length3--) {\n vector.addElement(a2[length3]);\n }\n }\n String[][] a3 = C5070dk.m3552a();\n if (a3 != null) {\n for (int length4 = a3.length - 1; length4 >= 0; length4--) {\n vector.addElement(a3[length4]);\n }\n }\n String[][] a4 = C5061db.m3525a();\n if (a4 != null) {\n for (int length5 = a4.length - 1; length5 >= 0; length5--) {\n vector.addElement(a4[length5]);\n }\n }\n String[][] o = C5034cb.m3377o();\n if (o != null) {\n for (int length6 = o.length - 1; length6 >= 0; length6--) {\n vector.addElement(o[length6]);\n }\n }\n String[][] a5 = C4984aq.m3190a();\n if (a5 != null) {\n for (int length7 = a5.length - 1; length7 >= 0; length7--) {\n vector.addElement(a5[length7]);\n }\n }\n String[][] a6 = m3426a();\n if (a6 != null) {\n for (int length8 = a6.length - 1; length8 >= 0; length8--) {\n vector.addElement(a6[length8]);\n }\n }\n String[][] strArr = (String[][]) Array.newInstance(String.class, new int[]{vector.size(), 4});\n if (strArr != null) {\n for (int length9 = strArr.length - 1; length9 >= 0; length9--) {\n strArr[length9] = (String[]) vector.elementAt(length9);\n }\n }\n return strArr;\n }", "private void\ngetMatrix( SoNode node)\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoPath xfPath; // ptr\n\n // Construct a path from the root down to this node. Use the given\n // path if it's the same\n if (node == null || node == SoFullPath.cast(path).getTail())\n xfPath = path;\n\n else {\n int index = getNodeIndex(node);\n xfPath = path.copy(0, index + 1);\n xfPath.ref();\n }\n\n // Create an action instance if necessary, then apply it to the path\n if (matrixAction == null)\n matrixAction = new SoGetMatrixAction(vpRegion);\n matrixAction.apply(xfPath);\n\n if (xfPath != path)\n xfPath.unref();\n}", "public String getMatricNum() {\r\n\t\treturn matricNum;\r\n\t}", "boolean mo6498O(C41531v c41531v);", "public String mo9272b() {\n return this.f1309f;\n }", "public final String mo1685d() {\n return this.f1355g;\n }", "String getMIDINotation();", "public String mo10149a() {\n return this.f8346a;\n }", "public final String mo15029a() {\n return this.f6006a;\n }", "int mo13164g();", "public static boolean verificaMatricolaDipendente(String matricola){\r\n\t\tif (Pattern.matches(\"[0-9]{7}\", matricola)) return true;\r\n\t\treturn false;\r\n\t}", "String getCmt();", "public static String matToString(PMatrix3D matrix) {\n int big = (int) Math.abs(PApplet.max(PApplet.max(PApplet.max(PApplet.max(PApplet.abs(matrix.m00), PApplet.abs(matrix.m01)),\n PApplet.max(PApplet.abs(matrix.m02), PApplet.abs(matrix.m03))),\n PApplet.max(PApplet.max(PApplet.abs(matrix.m10), PApplet.abs(matrix.m11)),\n PApplet.max(PApplet.abs(matrix.m12), PApplet.abs(matrix.m13)))),\n PApplet.max(PApplet.max(PApplet.max(PApplet.abs(matrix.m20), PApplet.abs(matrix.m21)),\n PApplet.max(PApplet.abs(matrix.m22), PApplet.abs(matrix.m23))),\n PApplet.max(PApplet.max(PApplet.abs(matrix.m30), PApplet.abs(matrix.m31)),\n PApplet.max(PApplet.abs(matrix.m32), PApplet.abs(matrix.m33))))));\n\n int digits = 1;\n if (Float.isNaN(big) || Float.isInfinite(big)) { // avoid infinite loop\n digits = 5;\n } else {\n while ((big /= 10) != 0) {\n digits++; // cheap log()\n }\n }\n\n StringBuilder output = new StringBuilder();\n output.append(PApplet.nfs(matrix.m00, digits, 4) + \" \"\n + PApplet.nfs(matrix.m01, digits, 4) + \" \"\n + PApplet.nfs(matrix.m02, digits, 4) + \" \"\n + PApplet.nfs(matrix.m03, digits, 4) + \"\\n\");\n\n output.append(PApplet.nfs(matrix.m10, digits, 4) + \" \"\n + PApplet.nfs(matrix.m11, digits, 4) + \" \"\n + PApplet.nfs(matrix.m12, digits, 4) + \" \"\n + PApplet.nfs(matrix.m13, digits, 4) + \"\\n\");\n\n output.append(PApplet.nfs(matrix.m20, digits, 4) + \" \"\n + PApplet.nfs(matrix.m21, digits, 4) + \" \"\n + PApplet.nfs(matrix.m22, digits, 4) + \" \"\n + PApplet.nfs(matrix.m23, digits, 4) + \"\\n\");\n\n output.append(PApplet.nfs(matrix.m30, digits, 4) + \" \"\n + PApplet.nfs(matrix.m31, digits, 4) + \" \"\n + PApplet.nfs(matrix.m32, digits, 4) + \" \"\n + PApplet.nfs(matrix.m33, digits, 4) + \"\\n\");\n\n return output.toString();\n }", "@Override\n\tpublic Retorno verMapa() {\n\t\tRetorno r = new Retorno();\n\t\tthis.mapa.levantarMapaEnBrowser(abb);\n\t\tr.resultado = Retorno.Resultado.OK;\n\t\treturn r;\n\t}", "java.lang.String getField1408();", "@Test\n public void testGetMatrix() {\n String path1 = \"c:\\\\Voici\\\\input.txt\";\n MatrixReader reader = new MatrixReader(path1);\n assertEquals(reader.getMatrix().get(0, 0), -10.615, 0.001);\n assertEquals(reader.getMatrix().get(9, 1), 10.148, 0.001);\n }", "public C4385q mo4640x() {\n Object a = new C2978a().m14527a(\"licence_num\", this.f21055o).m14527a(\"body\", this.f21057q).m14527a(\"dob\", this.f21056p).m14528a();\n C2885g.m13907a(a, \"formBuilder.build()\");\n return a;\n }", "public static String[][] m3426a() {\n return f5396f;\n }", "public cv mo1971n() throws cf {\r\n int E = m10257E();\r\n int u = E == 0 ? 0 : mo1978u();\r\n return new cv(m10269d((byte) (u >> 4)), m10269d((byte) (u & 15)), E);\r\n }", "public PMVMatrix(boolean useBackingArray) {\n projectFloat = new ProjectFloat();\n \n // I Identity\n // T Texture\n // P Projection\n // Mv ModelView\n // Mvi Modelview-Inverse\n // Mvit Modelview-Inverse-Transpose\n if(useBackingArray) {\n matrixBufferArray = new float[6*16];\n matrixBuffer = null;\n // matrixBuffer = FloatBuffer.wrap(new float[12*16]);\n } else {\n matrixBufferArray = null;\n matrixBuffer = Buffers.newDirectByteBuffer(6*16 * Buffers.SIZEOF_FLOAT);\n matrixBuffer.mark();\n }\n \n matrixIdent = slice2Float(matrixBuffer, matrixBufferArray, 0*16, 1*16); // I\n matrixTex = slice2Float(matrixBuffer, matrixBufferArray, 1*16, 1*16); // T\n matrixPMvMvit = slice2Float(matrixBuffer, matrixBufferArray, 2*16, 4*16); // P + Mv + Mvi + Mvit \n matrixPMvMvi = slice2Float(matrixBuffer, matrixBufferArray, 2*16, 3*16); // P + Mv + Mvi\n matrixPMv = slice2Float(matrixBuffer, matrixBufferArray, 2*16, 2*16); // P + Mv\n matrixP = slice2Float(matrixBuffer, matrixBufferArray, 2*16, 1*16); // P\n matrixMv = slice2Float(matrixBuffer, matrixBufferArray, 3*16, 1*16); // Mv\n matrixMvi = slice2Float(matrixBuffer, matrixBufferArray, 4*16, 1*16); // Mvi\n matrixMvit = slice2Float(matrixBuffer, matrixBufferArray, 5*16, 1*16); // Mvit\n \n if(null != matrixBuffer) {\n matrixBuffer.reset();\n } \n ProjectFloat.gluMakeIdentityf(matrixIdent);\n \n vec3f = new float[3];\n matrixMult = new float[16];\n matrixTrans = new float[16];\n matrixRot = new float[16];\n matrixScale = new float[16];\n matrixOrtho = new float[16];\n matrixFrustum = new float[16];\n ProjectFloat.gluMakeIdentityf(matrixTrans, 0);\n ProjectFloat.gluMakeIdentityf(matrixRot, 0);\n ProjectFloat.gluMakeIdentityf(matrixScale, 0);\n ProjectFloat.gluMakeIdentityf(matrixOrtho, 0);\n ProjectFloat.gluMakeZero(matrixFrustum, 0);\n \n matrixPStack = new ArrayList<float[]>();\n matrixMvStack= new ArrayList<float[]>();\n \n // default values and mode\n glMatrixMode(GL_PROJECTION);\n glLoadIdentity();\n glMatrixMode(GL_MODELVIEW);\n glLoadIdentity();\n glMatrixMode(GL.GL_TEXTURE);\n glLoadIdentity();\n setDirty();\n update();\n }", "public java.lang.String getMATERIAL_VERSION() {\r\n return MATERIAL_VERSION;\r\n }", "public Bitmap mo1282a() {\n Bitmap bitmap = (Bitmap) this.f9476f.m3537a();\n if (bitmap != null) {\n m11981a(Integer.valueOf(C0987h.m3406a(bitmap)), bitmap.getConfig());\n }\n return bitmap;\n }", "public String toString() {\r\n\t\tString Array = (\"Matricola:\" + matricola + \" mediaVoti: \" + mediaVoti + \" nroEsamiSostenuti: \" + nroEsamiSostenuti\r\n\t\t\t\t+ \" nroLodi: \" + nroLodi);\r\n\t\treturn Array;\r\n\t}", "float[] getProjectionMatrix();", "public boolean tieneRepresentacionGrafica();", "boolean mo54431c();", "public Matrix4f getTranslationMat() {\n\t\treturn m_xforms[NvCameraXformType.MAIN].m_translateMat;\n\t}", "@Test\n public void checkCompactFormat()\n {\n int height = 10;\n int width = 5;\n\n QRDecomposition<DMatrixRMaj> alg = createQRDecomposition();\n\n SimpleMatrix A = new SimpleMatrix(height,width, DMatrixRMaj.class);\n RandomMatrices_DDRM.fillUniform((DMatrixRMaj)A.getMatrix(),rand);\n\n alg.decompose((DMatrixRMaj)A.getMatrix());\n\n SimpleMatrix Q = new SimpleMatrix(height,width, DMatrixRMaj.class);\n alg.getQ((DMatrixRMaj)Q.getMatrix(), true);\n\n // see if Q has the expected properties\n assertTrue(MatrixFeatures_DDRM.isOrthogonal((DMatrixRMaj)Q.getMatrix(),UtilEjml.TEST_F64_SQ));\n\n // try to extract it with the wrong dimensions\n Q = new SimpleMatrix(height,height, DMatrixRMaj.class);\n alg.getQ((DMatrixRMaj)Q.getMatrix(), true);\n assertEquals(height,Q.numRows());\n assertEquals(width,Q.numCols());\n }", "public final String mo1310c() {\n m2025d();\n return this.f2310e;\n }", "java.lang.String getField1101();", "java.lang.String getField1305();", "C12017a mo41088c();", "public final C2260u mo10154c() {\n return this.f8348c;\n }", "int mo1505l();", "public final C3890iv mo15432a() {\n return this.f13324c;\n }", "public final A mo131918c() {\n return this.f111800a;\n }", "public C2994r mo3614b() {\n return this.f18084e;\n }", "public void exibeMatriculaJaExiste() {\n JOptionPane.showMessageDialog(\n null,\n Constantes.GERENCIAR_FUNCIONARIO_MATRICULA_JA_EXISTENTE,\n Constantes.GERENCIAR_FUNCIONARIO_TITULO,\n JOptionPane.PLAIN_MESSAGE\n );\n }", "private Matrix getV(List<T> landmarks,\n\t\t\tHashtable<T, ratingCoord<T>> landmark_x) {\n\t\tint n=landmarks.size();\n\t\tint p=dim;\n\t\tMatrix mat=new DenseMatrix(n,p,0);\n\t\t\n\t\tIterator<T> ier = landmarks.iterator();\n\t\tint indexRow=0;\n\t\twhile(ier.hasNext()){\n\t\t\tT tmp = ier.next();\n\t\t\tif(!landmark_x.containsKey(tmp)){\n\t\t\t\tSystem.err.println(\"V: missing: \"+tmp);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tVec uu = landmark_x.get(tmp).q;\n\t\t\tfor(int i=0;i<p;i++){\n\t\t\t\tmat.setValue(indexRow, i, uu.direction[i]);\n\t\t\t}\n\t\t\tindexRow++;\n\t\t}\n\t\treturn mat;\t\n\t}", "public final synchronized String m107v() {\n String str;\n Object obj = null;\n synchronized (this) {\n if (this.f108T == null) {\n int i;\n Object obj2;\n StringBuilder stringBuilder = new StringBuilder();\n Context context = this.f139z;\n String a = C0048a.m259a(context, \"ro.miui.ui.version.name\");\n if (a == null || a.trim().length() <= 0) {\n i = 1;\n } else {\n obj2 = null;\n }\n if (obj2 != null || a.equals(\"fail\")) {\n a = C0048a.m259a(context, \"ro.build.version.emui\");\n if (a == null || a.trim().length() <= 0) {\n i = 1;\n } else {\n obj2 = null;\n }\n if (obj2 != null || a.equals(\"fail\")) {\n a = C0048a.m259a(context, \"ro.lenovo.series\");\n if (a == null || a.trim().length() <= 0) {\n i = 1;\n } else {\n obj2 = null;\n }\n if (obj2 != null || a.equals(\"fail\")) {\n a = C0048a.m259a(context, \"ro.build.nubia.rom.name\");\n if (a == null || a.trim().length() <= 0) {\n i = 1;\n } else {\n obj2 = null;\n }\n if (obj2 != null || a.equals(\"fail\")) {\n a = C0048a.m259a(context, \"ro.meizu.product.model\");\n if (a == null || a.trim().length() <= 0) {\n i = 1;\n } else {\n obj2 = null;\n }\n if (obj2 != null || a.equals(\"fail\")) {\n a = C0048a.m259a(context, \"ro.build.version.opporom\");\n if (a == null || a.trim().length() <= 0) {\n i = 1;\n } else {\n obj2 = null;\n }\n if (obj2 != null || a.equals(\"fail\")) {\n a = C0048a.m259a(context, \"ro.vivo.os.build.display.id\");\n if (a == null || a.trim().length() <= 0) {\n i = 1;\n } else {\n obj2 = null;\n }\n if (obj2 != null || a.equals(\"fail\")) {\n a = C0048a.m259a(context, \"ro.aa.romver\");\n if (a == null || a.trim().length() <= 0) {\n i = 1;\n } else {\n obj2 = null;\n }\n if (obj2 != null || a.equals(\"fail\")) {\n a = C0048a.m259a(context, \"ro.lewa.version\");\n if (a == null || a.trim().length() <= 0) {\n i = 1;\n } else {\n obj2 = null;\n }\n if (obj2 != null || a.equals(\"fail\")) {\n a = C0048a.m259a(context, \"ro.gn.gnromvernumber\");\n if (a == null || a.trim().length() <= 0) {\n i = 1;\n } else {\n obj2 = null;\n }\n if (obj2 != null || a.equals(\"fail\")) {\n String a2 = C0048a.m259a(context, \"ro.build.tyd.kbstyle_version\");\n if (a2 == null || a2.trim().length() <= 0) {\n int i2 = 1;\n }\n str = (obj != null || a2.equals(\"fail\")) ? C0048a.m259a(context, \"ro.build.fingerprint\") + \"/\" + C0048a.m259a(context, \"ro.build.rom.id\") : \"dido/\" + a2;\n } else {\n str = \"amigo/\" + a + \"/\" + C0048a.m259a(context, \"ro.build.display.id\");\n }\n } else {\n str = \"tcl/\" + a + \"/\" + C0048a.m259a(context, \"ro.build.display.id\");\n }\n } else {\n str = \"htc/\" + a + \"/\" + C0048a.m259a(context, \"ro.build.description\");\n }\n } else {\n str = \"vivo/FUNTOUCH/\" + a;\n }\n } else {\n str = \"Oppo/COLOROS/\" + a;\n }\n } else {\n str = \"Meizu/FLYME/\" + C0048a.m259a(context, \"ro.build.display.id\");\n }\n } else {\n str = \"Zte/NUBIA/\" + a + \"_\" + C0048a.m259a(context, \"ro.build.nubia.rom.code\");\n }\n } else {\n str = \"Lenovo/VIBE/\" + C0048a.m259a(context, \"ro.build.version.incremental\");\n }\n } else {\n str = \"HuaWei/EMOTION/\" + a;\n }\n } else {\n str = \"XiaoMi/MIUI/\" + a;\n }\n this.f108T = stringBuilder.append(str).toString();\n C0073w.m519a(\"rom:%s\", this.f108T);\n }\n str = this.f108T;\n }\n return str;\n }", "C0043i mo12153d();", "private static BitMatrix gerarBitMatrix(String conteudo, int width,\n\t\t\tint height) throws WriterException {\n\t\tQRCodeWriter writer = new QRCodeWriter();\n\t\tBitMatrix bm = writer.encode(conteudo, BarcodeFormat.QR_CODE, width,\n\t\t\t\theight);\n\t\treturn bm;\n\t}", "public Matrix asMatrix() {\n Matrix result;\n try {\n result = new Matrix(COMPONENTS, 1);\n asMatrix(result);\n } catch (final WrongSizeException ignore) {\n // never happens\n result = null;\n }\n return result;\n }" ]
[ "0.6012", "0.5815156", "0.57537496", "0.5646555", "0.55797696", "0.5555258", "0.54910856", "0.54699206", "0.5408694", "0.53969806", "0.5323507", "0.52747416", "0.5248673", "0.52352005", "0.5212864", "0.5127658", "0.5127475", "0.50754267", "0.5055701", "0.5030277", "0.50193286", "0.50050664", "0.49974883", "0.49936566", "0.49754104", "0.49693808", "0.49295056", "0.49209917", "0.48924497", "0.48918906", "0.48682567", "0.48674968", "0.48576596", "0.48554498", "0.48533008", "0.48494184", "0.48450577", "0.48436835", "0.48435155", "0.48377037", "0.48330307", "0.48269346", "0.4801307", "0.479746", "0.47960886", "0.47912842", "0.47910538", "0.47899657", "0.47818238", "0.4781263", "0.47722507", "0.47712234", "0.4758838", "0.47580576", "0.4749179", "0.47490317", "0.47488698", "0.47463682", "0.4742789", "0.47423822", "0.47396177", "0.47373983", "0.47310418", "0.4728205", "0.47190735", "0.4716184", "0.47100687", "0.47062868", "0.47037727", "0.47010574", "0.47009164", "0.46987602", "0.46985054", "0.4694887", "0.4690836", "0.4689906", "0.46758845", "0.46755186", "0.46743628", "0.4670929", "0.4667383", "0.46661735", "0.4664803", "0.46641672", "0.4659939", "0.4659862", "0.46591488", "0.46580258", "0.46555325", "0.465547", "0.46533093", "0.46515787", "0.46510375", "0.4644502", "0.46444136", "0.4642695", "0.46425337", "0.46402285", "0.46389368", "0.4637939" ]
0.5642213
4
Metodo responsavel por retornar o percentual da memoria que esta sendo usada na JVM. Verifica a memoria heap responsavel por alo
public static String retornaPercentualUsadoDeMemoriaJVM() { Runtime runtime = Runtime.getRuntime(); long max = runtime.maxMemory(); long free = runtime.freeMemory(); long used = max - free; NumberFormat format = NumberFormat.getInstance(); // Retorna o percentual da memoria usada String percentualMemoriaUsada = format.format(((used * 100) / max)); return percentualMemoriaUsada; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private long getMemoryFootprint() {\n Runtime runtime = Runtime.getRuntime();\n long memAfter = runtime.totalMemory() - runtime.freeMemory();\n long memBefore = memAfter + 1;\n while (memBefore != memAfter) {\n memBefore = memAfter;\n System.gc();\n memAfter = runtime.totalMemory() - runtime.freeMemory();\n }\n return memAfter;\n }", "public int heapSize();", "public abstract long estimateMemorySize();", "long getLocalOffHeapSizeInBytes();", "long getMemLimit();", "long getLocalOnHeapSizeInBytes();", "long memoryUnused();", "private boolean hasEnoughHeapMemoryForScreenshot() {\n final Runtime runtime = Runtime.getRuntime();\n\n // Auto casting to floats necessary for division\n float free = runtime.freeMemory();\n float total = runtime.totalMemory();\n float remaining = free / total;\n\n TurbolinksLog.d(\"Memory remaining percentage: \" + remaining);\n\n return remaining > .10;\n }", "int getLocalOffHeapSize();", "long memoryUsed();", "long getMemory();", "long getMemory();", "long getMaxMemory();", "public abstract Extent getHeapSize();", "@Test\n public void testHeapMetricUsageNotStatic() throws Exception {\n final InterceptingOperatorMetricGroup heapMetrics = new InterceptingOperatorMetricGroup();\n\n MetricUtils.instantiateHeapMemoryMetrics(heapMetrics);\n\n @SuppressWarnings(\"unchecked\")\n final Gauge<Long> used = (Gauge<Long>) heapMetrics.get(MetricNames.MEMORY_USED);\n\n runUntilMetricChanged(\"Heap\", 10, () -> new byte[1024 * 1024 * 8], used);\n }", "int getLocalOnHeapSize();", "public void testPhysicalMemoryLessThanJvmAllocation() {\n String jvmOptions = \"-Xmx1024M -XX:MaxPermSize=128M\";\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.getJvm().setPhysicalMemory(1207959551);\n jvmRun.doAnalysis();\n Assert.assertTrue(Analysis.ERROR_PHYSICAL_MEMORY + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.ERROR_PHYSICAL_MEMORY));\n }", "abstract int getMaxMemoryUsage();", "private long getSystemMemoryInGB() {\n long memorySize = ((com.sun.management.OperatingSystemMXBean) ManagementFactory\n .getOperatingSystemMXBean()).getTotalPhysicalMemorySize();\n return memorySize / ONE_BILLION;\n }", "private float getMemoryUsage() {\n\t\tRuntime runtime = Runtime.getRuntime();\n\t\tlong allocatedMemory = runtime.totalMemory();\n\t\tlong freeMemory = runtime.freeMemory();\n\t\treturn (allocatedMemory - freeMemory);\n\t}", "int memSize() {\r\n\t\treturn BASE_NODE_SIZE + 5 * 4;\r\n\t}", "public void testPhysicalMemoryEqualJvmAllocation() {\n String jvmOptions = \"-Xmx1024M -XX:MaxPermSize=128M\";\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.getJvm().setPhysicalMemory(1207959552);\n jvmRun.doAnalysis();\n Assert.assertFalse(Analysis.ERROR_PHYSICAL_MEMORY + \" analysis incorrectly identified.\",\n jvmRun.getAnalysis().contains(Analysis.ERROR_PHYSICAL_MEMORY));\n }", "public long memoriaRamDisponivel(){\n return hardware.getMemory().getAvailable();\n }", "public static void initializeMetrics()\n {\n // Get the Java runtime\n Runtime runtime = Runtime.getRuntime();\n // Run the garbage collector\n runtime.gc();\n \tstartingMemory = runtime.totalMemory() - runtime.freeMemory();\n }", "int memSize() {\n // treat Code as free\n return BASE_NODE_SIZE + 3 * 4;\n }", "BigDecimal getCacheSpaceAvailable();", "@Test\n\tpublic void testHeap() {\n\t\t// merely a suggestion \n\t}", "public native int getTotalMemory();", "public static void main(String[] args) {\r\n\t\tmeasureHeapMemory();\r\n\t}", "static long getPresumableFreeMemory() {\n System.gc();\n final long allocatedMemory = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n return Runtime.getRuntime().maxMemory() - allocatedMemory;\n }", "@FXML\n public void checkMemory()\n {\n long heapSize = Runtime.getRuntime().totalMemory(); \n System.out.println(\"Current: \" +heapSize);\n // Get maximum size of heap in bytes. The heap cannot grow beyond this size.// Any attempt will result in an OutOfMemoryException.\n long heapMaxSize = Runtime.getRuntime().maxMemory();\n System.out.println(\"Max: \" + heapMaxSize);\n }", "default long getUnusedMemory() {\n return getMaxMemory() - getMemory();\n }", "public static long getMemoryFree() throws IOException, InterruptedException {\n \treturn pi4jSystemInfoConnector.getMemoryFree();\r\n }", "public double getOccupiedRamGB () { return getRamBaseResource().getOccupiedCapacity(); }", "private void collectCpuMemoryUsage(){\r\n\t\tHmDomain hmDomain = CacheMgmt.getInstance().getCacheDomainByName(\"home\");\r\n\t\tfloat cpuUsage = LinuxSystemInfoCollector.getInstance().getCpuInfo() * 100;\r\n\t\tfloat memoryUsage = 0;\r\n\t\ttry {\r\n\t\t\tlong count[] = LinuxSystemInfoCollector.getInstance().getMemInfo();\r\n\t\t\tif(count[0] != 0){\r\n\t\t\t\tmemoryUsage = ((float)(count[0] - count[1] - count[2] - count[3]) * 100 / count[0]);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tBeLogTools.error(HmLogConst.M_PERFORMANCE,\"calculate memory usage failure.\", e);\r\n\t\t}\r\n\t\tCpuMemoryUsage cmu = new CpuMemoryUsage();\r\n\t\tcmu.setCpuUsage(cpuUsage);\r\n\t\tcmu.setMemUsage(memoryUsage);\r\n\t\tcmu.setOwner(hmDomain);\r\n\t\tcmu.setTimeStamp((new Date()).getTime());\r\n\t\ttry {\r\n\t\t\tQueryUtil.createBo(cmu);\r\n\t\t} catch (Exception e) {\r\n\t\t\tBeLogTools.error(HmLogConst.M_PERFORMANCE,\"create CpuMemoryUsage failure.\", e);\r\n\t\t}\r\n\t}", "public native int getFreeMemory();", "public long memory() {\n\treturn 0;\n }", "public native long memoryConsumed();", "long getMemorySize() {\n return MemoryBudget.DELTAINFO_OVERHEAD +\n MemoryBudget.byteArraySize(key.length);\n }", "public static long getCommitedHeapMemory() {\n\t\tMemoryMXBean memBean = ManagementFactory.getMemoryMXBean();\n\t\tMemoryUsage heap = memBean.getHeapMemoryUsage();\n\n\t\treturn heap.getCommitted();\n\t}", "public static native int getMaxCacheMem();", "public static void main(String[] args) {\n\n printMemory();\n\n byte[] buf1 = new byte[1*1024*1024];\n printMemory(\"分配1M内存\");\n\n byte[] buf2 = new byte[4*1024*1024];\n printMemory(\"分配4M内存\");\n }", "protected long calculateLiveMemoryUsage() {\n // NOTE: MemoryUsageGaugeSet provides memory usage statistics but we do not use them\n // here since it will require extra allocations and incur cost, hence it is cheaper to use\n // MemoryMXBean directly. Ideally, this call should not add noticeable\n // latency to a query -- but if it does, please signify on SOLR-14588\n return MEMORY_MX_BEAN.getHeapMemoryUsage().getUsed();\n }", "public static void showMemoryInfo()\r\n\t{ \r\n\t\tRuntime rt = Runtime.getRuntime(); \r\n\t\tpf(\"Maxx : \\t %d Kb\\n\", rt.maxMemory() / 1024); \r\n\t\tpf(\"Free : \\t %d Kb\\n\", rt.freeMemory() / 1024); \r\n\t\tpf(\"Totl : \\t %d Kb\\n\", rt.totalMemory() / 1024); \r\n\t\tpf(\"Used : \\t %d Kb\\n\", (rt.totalMemory()-rt.freeMemory()) / 1024); \r\n\t}", "@Override\n public int getLocalMaxMemory() {\n if (offHeap && !localMaxMemoryExists) {\n int value = computeOffHeapLocalMaxMemory();\n if (localMaxMemoryExists) {\n // real value now exists so set it and return\n localMaxMemory = value;\n }\n }\n checkLocalMaxMemoryExists();\n return localMaxMemory;\n }", "@Nullable\n BigInteger getMemoryMb();", "public static long getMemoryCached() throws IOException, InterruptedException {\n \treturn pi4jSystemInfoConnector.getMemoryCached();\r\n }", "public abstract int getPageFreeSpace(int bucket);", "long getTotalFreeSpaceInBytes();", "long getTotalFreeSpaceInBytes();", "public static double getMaxMemory()\n {\n \treturn (double) Runtime.getRuntime().maxMemory() / 1024/1024;\n }", "public static void getMemoryUsage(){\r\n MemoryMeasurement actMemoryStatus = new MemoryMeasurement();\r\n //MemoryMeasurement.printMemoryUsage(actMemoryStatus);\r\n memoryUsageList.add(actMemoryStatus);\r\n }", "public static long getMaxHeapMemory() {\n\t\tMemoryMXBean memBean = ManagementFactory.getMemoryMXBean();\n\t\tMemoryUsage heap = memBean.getHeapMemoryUsage();\n\n\t\treturn heap.getMax();\n\t}", "public static int checkMis(int mis,long datasize,FileSystem fs) throws IOException\r\n\t{\r\n\t /*int checkmis = -1;\r\n\t long mb = 1024*1024;\r\n\t long lmis = mis*mb;\r\n\t OperatingSystemMXBean operatingSystemMXBean = ManagementFactory.getOperatingSystemMXBean();\r\n //free memory size\r\n long freememory= ((com.sun.management.OperatingSystemMXBean)operatingSystemMXBean).getFreePhysicalMemorySize();\r\n\t \r\n\t DistributedFileSystem dfs = (DistributedFileSystem) fs;\r\n\t DatanodeInfo[] live = dfs.getClient().datanodeReport(DatanodeReportType.LIVE);\r\n\t \r\n\t String mapredheap_str = fs.getConf().get(\"mapred.child.java.opts\");\r\n String lastchar = String.valueOf(mapredheap_str.charAt(mapredheap_str.length()-1));\r\n long mapredheap = Long.valueOf(mapredheap_str.replaceAll(\"[^0-9]*\",\"\"));\r\n if(lastchar.matches(\"[mM]+\"))\r\n mapredheap = mapredheap*1024*1024;\r\n else\r\n mapredheap = mapredheap*1024*1024*1024;\r\n\t \t \r\n\t //(physical machine free memory) > (mpared child heap size)*(datasize/mis+1)/(# of data nodes)\r\n\t // Free Memory > Required Memory for per node (Assume free memory of master node and slave node are equal, because it only detect memory usage of master node.)\r\n\t //System.out.println(\"FreeMemory: \"+freememory+\", RequiredMemory: \"+mapredheap*(datasize/lmis+1)/live.length+\" for per node of cluster\");\r\n\t if(freememory > mapredheap*(datasize/lmis+1)/live.length)\r\n\t checkmis = mis;\r\n\t else //mis is too small, enlarge and re-check\r\n\t checkmis = checkMis(mis*2,datasize,fs);\r\n\t if(checkmis!=mis)\r\n\t\tSystem.out.println(\"Argument \\\"mis\\\" is too small: \"+mis+\", automatically increace to: \"+checkmis);\r\n\t return checkmis;*/\r\n\t //recent day, in the SSBDS this part has some weird error...\r\n\t return mis;\r\n\t}", "private int computeOffHeapLocalMaxMemory() {\n\n long availableOffHeapMemoryInMB = 0;\n if (testAvailableOffHeapMemory != null) {\n availableOffHeapMemoryInMB =\n OffHeapStorage.parseOffHeapMemorySize(testAvailableOffHeapMemory) / (1024 * 1024);\n } else if (InternalDistributedSystem.getAnyInstance() == null) {\n localMaxMemoryExists = false;\n // fix 52033: return non-negative, non-zero temporary placeholder for offHeapLocalMaxMemory\n return OFF_HEAP_LOCAL_MAX_MEMORY_PLACEHOLDER;\n } else {\n String offHeapSizeConfigValue =\n InternalDistributedSystem.getAnyInstance().getOriginalConfig().getOffHeapMemorySize();\n availableOffHeapMemoryInMB =\n OffHeapStorage.parseOffHeapMemorySize(offHeapSizeConfigValue) / (1024 * 1024);\n }\n\n if (availableOffHeapMemoryInMB > Integer.MAX_VALUE) {\n logger.warn(\n \"Reduced local max memory for partition attribute when setting from available off-heap memory size\");\n return Integer.MAX_VALUE;\n }\n\n localMaxMemoryExists = true;\n return (int) availableOffHeapMemoryInMB;\n }", "default boolean hasEnoughMemory(long memory){\n return getUnusedMemory() >= memory;\n }", "public long memoriaDisponível() {\n int numeroDeParticoes = numeroDeParticoesDeDisco();\n long memoriaDisponivel = 0;\n for (int i = 0; i < numeroDeParticoes; i++) {\n memoriaDisponivel += operatingSystem.getFileSystem().getFileStores()[i].getUsableSpace();\n }\n return memoriaDisponivel;\n }", "public interface MemoryEstimator {\n\n /**\n * Returns an estimate of how much memory an object consumes.\n * @param instance the object instance\n * @return the estimated memory in bytes\n */\n long getObjectSize(Object instance);\n\n\n /**\n * A MemoryEstimator implementation that leverages org.github.jamm.MemoryMeter\n */\n class DefaultMemoryEstimator implements MemoryEstimator {\n\n private Object meter;\n private Method measureDeep;\n\n /**\n * Constructor\n */\n public DefaultMemoryEstimator() {\n try {\n final Class<?> clazz = Class.forName(\"org.github.jamm.MemoryMeter\");\n final Method method = clazz.getDeclaredMethod(\"hasInstrumentation\");\n final boolean instrumentation = (Boolean) method.invoke(clazz);\n if (instrumentation) {\n this.meter = clazz.newInstance();\n this.measureDeep = clazz.getDeclaredMethod(\"measureDeep\", Object.class);\n }\n } catch (ClassNotFoundException ex) {\n System.err.println(\"Unable to initialize MemoryMeter, class not found\");\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n\n @Override\n public long getObjectSize(Object instance) {\n try {\n final Object result = measureDeep != null ? measureDeep.invoke(meter, instance) : -1;\n return result instanceof Number ? ((Number)result).longValue() : -1;\n } catch (Exception ex) {\n throw new RuntimeException(\"Failed to measure memory for instance: \" + instance, ex);\n }\n }\n }\n\n}", "public MemoryCache() {\n\t\t// use 25% of available heap size\n\t\tsetLimit(Runtime.getRuntime().maxMemory() / 10);\n\t}", "public void MIPSme()\n {\n sir_MIPS_a_lot.getInstance().heap_allocate(size, targetReg);\n }", "public static long getAvailableUnusedMemory() {\n Runtime r = Runtime.getRuntime();\n return r.maxMemory() // how large the JVM heap can get\n - r.totalMemory() // current size of heap (<= r.maxMemory())\n + r.freeMemory(); // how much of currently allocated heap is unused\n }", "int getCacheSizeInMiB();", "@Deprecated\n long getOffHeapSizeInBytes();", "public static long getMemoryTotal() throws IOException, InterruptedException {\n \treturn pi4jSystemInfoConnector.getMemoryTotal();\r\n }", "@Override\n public int getEstimatedMemoryUsage(DataSetDescription datasetDesc) {\n int estimatedMemory = HugeDoubleMatrix.getEstimatedMemory(datasetDesc.getNumUsers()+\n datasetDesc.getNumItems(), this.numFactors );\n //Add 1 Mb of slack (Huge double matrix assigns memory in 1 Mb chunks.)\n estimatedMemory += 1;\n return estimatedMemory;\n }", "public double getMaxMemUsage() {\n return maxMemory;\n }", "public static double getUsedMemory()\n {\n\t\tMemoryUsage heapMemoryUsage = ManagementFactory.getMemoryMXBean().getHeapMemoryUsage();\n \t//return (double) (Runtime.getRuntime().maxMemory() - Runtime.getRuntime().freeMemory()) / 1024/1024;\n \treturn (double) (heapMemoryUsage.getUsed()) / 1024/1024;\n }", "public int memUsage(){\n\t\tint usage = 36;\n\t\tusage += 12 * point.length;\n\t\tusage += 4 * glComannd.length;\n\t\tusage += 12 * glVertex.length;\n\t\tusage += 24 * state.length;\n\t\treturn usage;\n\t}", "private final Map<String, String> memoryStats() {\n HashMap<String, String> map = new HashMap<String, String>();\r\n map.put(\"tableIndexChunkSize\", (!RAMIndex) ? \"0\" : Integer.toString(index.row().objectsize));\r\n map.put(\"tableIndexCount\", (!RAMIndex) ? \"0\" : Integer.toString(index.size()));\r\n map.put(\"tableIndexMem\", (!RAMIndex) ? \"0\" : Integer.toString((int) (index.row().objectsize * index.size() * kelondroRowCollection.growfactor)));\r\n return map;\r\n }", "private PhysicalMachineVec getUsedPhysicalMachines(PriorityQueue<UsageInfo> pm_heap) {\n PhysicalMachineVec used_pms = new PhysicalMachineVec();\n for (Iterator<UsageInfo> it = pm_heap.iterator(); it.hasNext();) {\n UsageInfo info = it.next();\n if (!info.isEmpty()) {\n used_pms.push(info.getPhysicalMachine());\n }\n }\n return used_pms;\n }", "double getLeftoverMemoryPercentile() {\n return MathUtils.toPercentile(getLeftoverMemory(), pm.getMemory());\n }", "public static void main(String[] args) {\n\n Set<Long> ids = LongStream.range(0, 1_000_000).boxed().collect(Collectors.toSet());\n // HashSet\n // ArrayList\n // Long[]\n // long[]\n // int[]\n // LinkedList\n System.out.println(\"Allocated!\");\n\n System.out.println(PerformanceUtil.getUsedHeap());\n }", "public static void main(String[] args) {\n Maxheap<Integer> maxheap = new Maxheap<>();\n double time=0;\n int opCount = 10000000;\n time = testHeap(maxheap,opCount,true);\n System.out.println(\"Test heapify completed: \"+time+ \"s\");\n time = testHeap(maxheap,opCount,false);\n System.out.println(\"Test completed: \"+time+ \"s\");\n\n\n// time = debugHeap(maxheap,5,true);\n// System.out.println(\"Test completed: \"+time+ \"s\");\n }", "public static long getMaxNonHeapMemory() {\n\t\tMemoryMXBean memBean = ManagementFactory.getMemoryMXBean();\n\t\tMemoryUsage nonHeap = memBean.getNonHeapMemoryUsage();\n\n\t\treturn nonHeap.getMax();\n\t}", "public static long totalMemory() {\n return Native.totalMemory(false);\n }", "public static long[] estimateSizeOnHeap(int numberOfEntries, int\n maxNumberOfBits) {\n \n long ww = maxNumberOfBits;\n \n long maxNumber = (1L << ww) - 1;\n \n long binSz = maxNumberOfBits;\n \n int nBins = (int)Math.ceil((double)maxNumber/(double)binSz);\n \n long total = 0;\n \n ObjectSpaceEstimator est = new ObjectSpaceEstimator();\n est.setNIntFields(2);\n est.setNLongFields(3);\n est.setNBooleanFields(1);\n //objects: xft, xftReps, rbs\n est.setNObjRefsFields(3);\n \n total += est.estimateSizeOnHeap();\n \n // --------- include contents of the objects --------------\n \n /*\n the minimum of each bin range, if it is populated, is the representative\n node, and that is held in 2 data structures:\n xft holds the number, allowing fast repr prev and next lookups.\n xftReps holds the repr as the value, found by key = binNumber.\n * the max number of trie entries will be nBins\n but there will be prefix trie nodes too\n private final XFastTrieLong<XFastTrieNodeLong<Long>, Long> xft;\n \n // key = bin index (which is node/binSz), value = repr value.\n // each repr value is the minimum stored in the bin.\n // * the max number of map entries will be nBins.\n private final TLongLongMap xftReps = new TLongLongHashMap();\n \n // all inserts of this class are held in \n // * at most nBins number of trees which each \n // hold at most binSz number of entries.\n // each list item is a sorted binary search tree of numbers in that bin.\n // the value in the tree holds multiplicity of the number.\n // each list index can be found by node/binSz\n // each sorted tree has \n // key = node (inserted number), w/ value=\n // the number of times that number is present (multiplicity).\n TLongObjectMap<RedBlackBSTLongInt2> rbs;\n */\n \n // returning 2 estimates\n // (1) estimate using all bins w/ factor 5 for tries\n // (2) estimate from using nBinsSparse of the nBins w/ factor 3 for tries\n \n int nBinsSparse = nBins/10;\n if (nBinsSparse < 1) {\n nBinsSparse = 1;\n }\n \n // using factor of 5 for total w/ prefix nodes\n long total2_1 = numberOfEntries * 5 *\n XFastTrieNode.estimateSizeOnHeap();\n \n // all nBins are filled w/ a repr\n total2_1 += XFastTrie.estimateSizeOnHeap(numberOfEntries);\n \n long total2_2 = numberOfEntries * 3 *\n XFastTrieNode.estimateSizeOnHeap();\n \n // nBinsSparse of nBins are filled w/ a repr\n total2_2 += XFastTrie.estimateSizeOnHeap(numberOfEntries);\n \n \n //TLongLongMap\n total2_1 += ObjectSpaceEstimator.estimateTLongLongHashMap();\n \n //nBins number of repr entries in map\n total2_1 += (2 * nBins * ObjectSpaceEstimator.estimateLongSize());\n \n \n //TLongLongMap\n total2_2 += ObjectSpaceEstimator.estimateTLongLongHashMap();\n \n //nBins/4 number of repr entries in map\n total2_2 += (2 * nBinsSparse * ObjectSpaceEstimator.estimateLongSize());\n \n \n // 1 TLongObjectMap<RedBlackBSTLongInt> rbs;\n total2_1 += ObjectSpaceEstimator.estimateTLongObjectHashMap();\n \n total2_2 += ObjectSpaceEstimator.estimateTLongObjectHashMap();\n \n // nBins number of TreeMap<Integer, Integer> \n ObjectSpaceEstimator est2 = new ObjectSpaceEstimator();\n est2.setNBooleanFields(1);\n est2.setNObjRefsFields(2);\n long totalEntry = est2.estimateSizeOnHeap();\n totalEntry += 3. * totalEntry;\n est2 = new ObjectSpaceEstimator();\n est2.setNIntFields(2);\n long rbtree = est2.estimateSizeOnHeap() + totalEntry;\n long rbtreeNodes = numberOfEntries * totalEntry;\n \n total2_1 += (nBins * rbtree);\n \n total2_2 += (nBinsSparse * rbtree);\n \n \n // nEntries number of long, int nodes\n \n total2_1 += rbtreeNodes;\n \n total2_2 += rbtreeNodes;\n \n return new long[]{total2_1 + total, total2_2 + total};\n }", "public native int getUsedMemory();", "public void testPercentSwapFreeAtThreshold() {\n String jvmOptions = null;\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.getJvm().setSwap(1000);\n jvmRun.getJvm().setSwapFree(946);\n jvmRun.doAnalysis();\n Assert.assertEquals(\"Percent swap free not correct.\", 95, jvmRun.getJvm().getPercentSwapFree());\n Assert.assertFalse(Analysis.INFO_SWAPPING + \" analysis incorrectly identified.\",\n jvmRun.getAnalysis().contains(Analysis.INFO_SWAPPING));\n }", "public static long getUsedHeapMemory() {\n\t\tMemoryMXBean memBean = ManagementFactory.getMemoryMXBean();\n\t\tMemoryUsage heap = memBean.getHeapMemoryUsage();\n\n\t\treturn heap.getUsed();\n\t}", "public native long memoryRemaining();", "public synchronized void updateMemory(){\n \tint memory = Math.round(System.getRuntime().totalMemory()/System.getRuntime().freeMemory());\n \tstore(new DisplayableData(\"memory\", \"M\"+memory+\"%\", memory));\n }", "public static long getUsedNonHeapMemory() {\n\t\tMemoryMXBean memBean = ManagementFactory.getMemoryMXBean();\n\t\tMemoryUsage nonHeap = memBean.getNonHeapMemoryUsage();\n\n\t\treturn nonHeap.getUsed();\n\t}", "int memSize() {\n return super.memSize() + 4 * 4; }", "public static long getCommitedNonHeapMemory() {\n\t\tMemoryMXBean memBean = ManagementFactory.getMemoryMXBean();\n\t\tMemoryUsage nonHeap = memBean.getNonHeapMemoryUsage();\n\n\t\treturn nonHeap.getCommitted();\n\t}", "public double getTotalRamGB () { return n.getResources(RESOURCETYPE_RAM).stream().mapToDouble(r->r.getCapacity()).sum (); }", "public static long getMemoryBuffers() throws IOException, InterruptedException {\n \treturn pi4jSystemInfoConnector.getMemoryBuffers();\r\n }", "public static long getMemoryUsed() throws IOException, InterruptedException {\n \treturn pi4jSystemInfoConnector.getMemoryUsed();\r\n }", "public BitmapMemoryCache() {\r\n //use 25% of available heap size\r\n setLimit(Runtime.getRuntime().maxMemory() / 4);\r\n }", "public static String getMemoryInfo() {\r\n\t\tRuntime rt = Runtime.getRuntime();\r\n\t\tint maxMemory = (int)(rt.maxMemory() / (1024 * 1024)); // Max memory in MB\r\n\t\tint currentTotalMemory = (int)(rt.totalMemory() / (1024 * 1024)); // Total memory in MB\r\n\t\tdouble freeMemory = (double)(((int)rt.freeMemory()) / (1024.0 * 1024.0)); // Free memory in MB with decimal places\r\n\t\treturn \"Current Memory (Heap) Size: \" + currentTotalMemory + \" MB\" + \r\n\t\t\t\t\"\\nMaximum Memory Size: \" + maxMemory + \" MB\" +\r\n\t\t\t\t\"\\nMemory Free: \" + String.format(\"%.1f\", freeMemory) + \" MB\" +\r\n\t\t\t\t\"\\n\\n(Reserved areas not included)\";\r\n\t}", "public static void getOutOfMemoryErrorHeapSpace() {\n LOGGER.info(String.format(MESSAGE, \"OutOfMemoryError\", \"big array size\"));\n int[] array = new int[Integer.MAX_VALUE - 3];\n }", "public static void main(String[] var0) {\n\n// for(int i =0;i<10;i++){\n// Object object = new byte[2*1024*1024];\n// map.put(i+\"\",object);\n// }\n // map =null;\n System.gc();\n// System.out.println(\"打印出了最大可用堆内存\");\n// System.out.println(\"-Xmx\" + Runtime.getRuntime().maxMemory() / 1024L / 1024L + \"M\");\n }", "long getOccupiedSize();", "private void setMemorySize() { }", "public void testPercentSwapFreeBelowThreshold() {\n String jvmOptions = null;\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.getJvm().setSwap(1000);\n jvmRun.getJvm().setSwapFree(945);\n jvmRun.doAnalysis();\n Assert.assertEquals(\"Percent swap free not correct.\", 94, jvmRun.getJvm().getPercentSwapFree());\n Assert.assertTrue(Analysis.INFO_SWAPPING + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.INFO_SWAPPING));\n }", "public boolean isInNativeHeap();", "long getOwnedEntryMemoryCost();", "private void detectLowMemory() throws Exception {\r\n\t\tif (Runtime.getRuntime().freeMemory() < 10000000) {\r\n\t\t\tthrow new Exception(\"Low on memory, please choose a report with less memory usage\");\r\n\t\t}\r\n\t}", "@Test\n public void testMemoryMetric() {\n MetricValue mv = new MetricValue.Builder().load(40).add();\n\n MEMORY_METRICS.forEach(cmt -> testUpdateMetricWithoutId(cmt, mv));\n MEMORY_METRICS.forEach(cmt -> testLoadMetric(nodeId, cmt, mv));\n }", "@GetMapping(value = \"/memFree\")\n public ResponseEntity<Long> memFree(){\n try {\n String s = CommandExecutor.execute(Commands.mem);\n s = findLine(s, \"MemFree\");\n System.out.println(s);\n s = filterForNumbers(s);\n Long memFree = Long.parseLong(s)/1_000_000;\n return ResponseEntity.ok(memFree);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return ResponseEntity.status(500).build();\n }", "public int getMemory()\n\t{\n\t\treturn memorySize;\n\t}" ]
[ "0.7285024", "0.71349907", "0.69524306", "0.692726", "0.6895024", "0.687676", "0.686845", "0.6860169", "0.6857955", "0.68520254", "0.6832765", "0.6832765", "0.68027574", "0.67752564", "0.6742055", "0.67068154", "0.668288", "0.66735494", "0.66551346", "0.66170204", "0.64848566", "0.6481133", "0.64791995", "0.64762384", "0.6473885", "0.6462753", "0.64237446", "0.64228094", "0.64120686", "0.6407684", "0.63481593", "0.63235235", "0.6288995", "0.6260534", "0.6259612", "0.62446487", "0.6228433", "0.6225736", "0.6211508", "0.6178641", "0.6167766", "0.6167399", "0.61656183", "0.6153597", "0.6152542", "0.6135099", "0.6120991", "0.61114305", "0.61089396", "0.61089396", "0.61007273", "0.6094053", "0.6092523", "0.60838026", "0.6083126", "0.6072625", "0.6069086", "0.6042344", "0.6038337", "0.60186946", "0.600506", "0.59984404", "0.5996017", "0.5993212", "0.59870404", "0.5967439", "0.59566766", "0.5930743", "0.59277004", "0.5926412", "0.5921723", "0.59146655", "0.59107333", "0.590964", "0.59083545", "0.5900085", "0.5895051", "0.58897513", "0.58789515", "0.58752143", "0.5871383", "0.5866712", "0.5865046", "0.58399606", "0.58385634", "0.58191204", "0.5814975", "0.5814462", "0.58138716", "0.5813475", "0.5809379", "0.5808693", "0.580331", "0.58001906", "0.57966673", "0.5778552", "0.5751355", "0.57494634", "0.5747112", "0.57374084" ]
0.7004721
2
Converte uma string no formato AAMMDD para um objeto do tipo Date
public static Date converteStringInvertidaSemBarraAAAAMMDDParaDate(String data) { Date retorno = null; String dataInvertida = data.substring(6, 8) + "/" + data.substring(4, 6) + "/" + data.substring(0, 4); SimpleDateFormat dataTxt = new SimpleDateFormat("dd/MM/yyyy"); try { retorno = dataTxt.parse(dataInvertida); } catch (ParseException e) { throw new IllegalArgumentException(data + " não tem o formato dd/MM/yyyy."); } return retorno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Date convertirStringADateUtil(String s){\n\t\tFORMATO_FECHA.setLenient(false);\n\t\tDate fecha = null;\n\t\ttry {\n\t\t\tfecha = FORMATO_FECHA.parse(s);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn fecha;\n\t}", "public static Date converteStringInvertidaSemBarraAAMMDDParaDate(String data) {\r\n\t\tDate retorno = null;\r\n\r\n\t\tString dataInvertida = data.substring(4, 6) + \"/\" + data.substring(2, 4) + \"/20\" + data.substring(0, 2);\r\n\r\n\t\tSimpleDateFormat dataTxt = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\ttry {\r\n\t\t\tretorno = dataTxt.parse(dataInvertida);\r\n\t\t} catch (ParseException e) {\r\n\t\t\tthrow new IllegalArgumentException(data + \" não tem o formato dd/MM/yyyy.\");\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public static Date toDate(String dateStr, SimpleDateFormat format) throws ParseException {\r\n\t\treturn format.parse(dateStr);\r\n\t}", "public Date stringToDate(String d)\n\t{\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"MMM-yyyy\");\n\t\t\n\t\tDate date = new Date();\n\t\t\n\t\ttry \n\t\t{\n\t\t\tdate = format.parse(d);\n\t\t} \n\t\tcatch (ParseException e) \n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn date;\n\t}", "public static Date StringToDate(String strFecha) throws ParseException {\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\r\n return simpleDateFormat.parse(strFecha);\r\n }", "private Date convertStringToDate(String dateInString){\n DateFormat format = new SimpleDateFormat(\"d-MM-yyyy HH:mm\", Locale.ENGLISH);\n Date date = null;\n try {\n date = format.parse(dateInString);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return date;\n }", "public static Date strToDate(String strDate)\r\n/* 127: */ {\r\n/* 128:178 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\r\n/* 129:179 */ ParsePosition pos = new ParsePosition(0);\r\n/* 130:180 */ Date strtodate = formatter.parse(strDate, pos);\r\n/* 131:181 */ return strtodate;\r\n/* 132: */ }", "public static Date stringToDate(String date)\r\n/* 29: */ {\r\n/* 30: 39 */ log.debug(\"DateUtil.stringToDate()\");\r\n/* 31: */ try\r\n/* 32: */ {\r\n/* 33: 41 */ return sdfDate.parse(date);\r\n/* 34: */ }\r\n/* 35: */ catch (ParseException e)\r\n/* 36: */ {\r\n/* 37: 43 */ log.fatal(\"DateUtil.stringToDate抛出异常\", e);\r\n/* 38: */ }\r\n/* 39: 44 */ return new Date();\r\n/* 40: */ }", "public static Date convertStringToDate(String date) throws ParseException {\n\t return new SimpleDateFormat(\"yyyy-MM-dd\").parse(date); \n\t}", "public Date convertStringToDate(String s) throws ParseException {\n\t\tDate dateTime = SDF.parse(s);\n\t\treturn dateTime;\n\t}", "private Date stringToDate(String s) throws ParseException{\r\n\t\tSimpleDateFormat fmt = new SimpleDateFormat(DATE_FORMAT);\r\n\t\treturn fmt.parse(s);\r\n\t}", "public Date convertStringToDate(String dateToParse, String format) {\n SimpleDateFormat formatter = new SimpleDateFormat(format);\n Date result = null;\n try {\n result = formatter.parse(dateToParse);\n } catch (Exception exception1) {\n System.err.println(\n String.format(\"ERROR, converting from String %s to date with format %s\", dateToParse, format)\n );\n result = null;\n }\n return result;\n }", "public static Date String2Date(String date){\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n\n Date currentDate = null;\n try {\n currentDate = format.parse(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return currentDate;\n }", "public Date stringToDate(String date) throws ParseException {\n String[] splitDate = date.split(\"T\");\n String day = splitDate[0];\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date dayDate = dateFormat.parse(day);\n return dayDate;\n }", "public static Date stringToDate(String dateString) {\n for(String format: DATE_FORMATS){\n try {\n return new SimpleDateFormat(format).parse(dateString);\n }\n catch (Exception e){}\n }\n throw new IllegalArgumentException(\"Date is not parsable\");\n }", "public static Date stringToDate(String date) {\n\t\tDate result = null;\n\t\tif (date != null && !\"\".equals(date)) {\n\t\t\tDateTimeFormatter f = DateTimeFormat.forPattern(SmartMoneyConstants.DATE_FORMAT);\n\t\t\tDateTime dateTime = f.parseDateTime(date);\n\t\t\tresult = dateTime.toDate();\n\t\t}\n\n\t\treturn result;\n\t}", "public static Date stringToDate(String dateAsString){\r\n try { \r\n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\"); \r\n return df.parse(dateAsString);\r\n } catch (ParseException ex) {\r\n ex.printStackTrace();\r\n return null;\r\n }\r\n }", "@Test\n\t@DisplayName(\"string to date\")\n\tpublic void testStringToDate() throws ParseException\n\t{\n\t\tDateConverter d = new DateConverter(string1);\n\t\t\n\t\tString dateInString = \"1997-03-19\";\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\ttry {\n\t\t date1 = formatter.parse(dateInString);\n\t\t} catch (ParseException e) {\n\t\t //handle exception if date is not in \"dd-MMM-yyyy\" format\n\t\t}\n\t\tassertEquals(date1, d.getDate());\n\t}", "public Date parse (String dateAsString , String dateFormat) throws Exception ;", "public static Date parseDate(String date) {\n return DateUtil.toDate(date);\n }", "public static java.util.Date convertFromStringToDate(String strDate){\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd-MMM-yyyy\"); /*This stringDate is come from UI*/\n\t\tjava.util.Date date = null;\n\t\tif(strDate != null && !strDate.trim().isEmpty()){\n\t\t\ttry {\n\t\t\t\tdate = format.parse(strDate);\n\t\t\t\tSystem.out.println(strDate);\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\t\n\t\treturn date;\n\t}", "public Date ToDate(String line){\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy/MM/dd\");\n try {\n Date d = sdf.parse(line);\n return d;\n } catch (ParseException ex) {\n\n Log.v(\"Exception\", ex.getLocalizedMessage());\n return null;\n }\n }", "public static Date parseDate(String date)\n {\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date dt = null;\n try {\n dt = format.parse(date);\n } \n catch (ParseException ex) \n {\n System.out.println(\"Unexpected error during the conversion - \" + ex);\n }\n return dt;\n }", "public static Date convertStringToDate(String strDate)\n\t\t\tthrows ParseException {\n\t\tDate aDate = null;\n\n\t\ttry {\n\t\t\tif (log.isDebugEnabled()) {\n\t\t\t\tlog.debug(\"converting date with pattern: \" + getDatePattern());\n\t\t\t}\n\n\t\t\taDate = convertStringToDate(getDatePattern(), strDate);\n\t\t} catch (ParseException pe) {\n\t\t\tlog.error(\"Could not convert '\" + strDate\n\t\t\t\t\t+ \"' to a date, throwing exception\");\n\t\t\tpe.printStackTrace();\n\t\t\tthrow new ParseException(pe.getMessage(), pe.getErrorOffset());\n\t\t}\n\n\t\treturn aDate;\n\t}", "public static Date convertStringToDate(String strDate)\n\t {\n\t Date myDate = null;\n\t if (strDate.length() > 0)\n\t {\n\t DateFormat formatter = new SimpleDateFormat(EProcurementConstants.INPUT_DATE_FORMAT);\n\t try\n\t {\n\t myDate = formatter.parse(strDate);\n\t } catch (ParseException e)\n\t {\n\t LOGGER.error(\"Not able to parse \" + strDate + \" into date ..\" + e.getMessage());\n\t }\n\t }\n\t return myDate;\n\t }", "public static Date parseDate(String date)\n\t{\n\t\treturn parseFormatDate(date, getDateFormat());\n\t}", "@TypeConverter\n public static Date toDate(String value) {\n if (value == null) return null;\n\n try {\n return df.parse(value);\n } catch (ParseException e) {\n e.printStackTrace();\n return null;\n }\n }", "public static Date fromString(String fullDate) {\n\t\tString[] parsed = fullDate.split(\",\");\n\t\tif (parsed.length != 3 && parsed.length != 5) {\n\t\t\tthrow new InvalidParsingStringException(Date.class.getName());\n\t\t}\n\t\tDate date = new Date();\n\t\tdate.setYear(Integer.valueOf(parsed[0]));\n\t\tdate.setMonth(Integer.valueOf(parsed[1]));\n\t\tdate.setDay(Integer.valueOf(parsed[2]));\n\t\tif (parsed.length == 5) {\n\t\t\tdate.setHour(Integer.valueOf(parsed[3]));\n\t\t\tdate.setMin(Integer.valueOf(parsed[4]));\n\t\t}\n\t\treturn date;\n\t}", "private static final Date convertStringToDate(String aMask, String strDate) {\n SimpleDateFormat df = null;\n Date date = null;\n df = new SimpleDateFormat(aMask);\n try {\n date = df.parse(strDate);\n } catch (ParseException pe) {\n throw new ValidateException(\"日期转换出现异常,\"+pe.getMessage(), pe);\n }\n\n return (date);\n }", "public static Date convertStringToDate(String aMask, String strDate)\n\t\t\tthrows ParseException {\n\t\tSimpleDateFormat df;\n\t\tDate date;\n\t\tdf = new SimpleDateFormat(aMask);\n\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"converting '\" + strDate + \"' to date with mask '\"\n\t\t\t\t\t+ aMask + \"'\");\n\t\t}\n\n\t\ttry {\n\t\t\tdate = df.parse(strDate);\n\t\t} catch (ParseException pe) {\n\t\t\t// log.error(\"ParseException: \" + pe);\n\t\t\tthrow new ParseException(pe.getMessage(), pe.getErrorOffset());\n\t\t}\n\n\t\treturn (date);\n\t}", "public static Date stringToDate (String s) {\n\t\tint year=0 , month=0 , date=0;\n\t\tCalendar cal = Calendar.getInstance(Locale.getDefault());\n\t\t\n\t\tStringTokenizer st = new StringTokenizer (s,\"/\");\n\t\t\n\t\tdate = Integer.parseInt(st.nextToken());\n\t\tmonth = Integer.parseInt(st.nextToken());\n\t\tyear = Integer.parseInt(st.nextToken());\n\t\tcal.clear();\n\t\tcal.set(year,month-1,date);\n\t\t//System.out.println(\"\\nDate : \"+getStringFromDate(cal.getTime()));\n\t\treturn (Date)cal.getTime().clone();\n\t}", "public static Date de_STRING_a_DATE(String fechaEnString) {\n SimpleDateFormat miFormato2 = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date fechaenjava = null;\n try {\n fechaenjava = miFormato2.parse(fechaEnString);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return fechaenjava;\n }", "public static Date date(String str) throws Exception {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n\n return sdf.parse( str );\n }", "public static Date stringToDate(String string_date){\n Date myDate = null;\n \n try {\n java.util.Date utilDate = new SimpleDateFormat(\"yyyy-MM-dd\").parse(string_date);\n myDate = new java.sql.Date(utilDate.getTime());\n } catch (Exception e) {\n // Si hay una excepcion se imprime un mensaje\n System.err.println(e.getMessage());\n }\n \n return myDate;\n }", "private Date stringToSQLDate(String fecha){\n\t\t\n\t\t\n\t\tint ano=Integer.parseInt(fecha.substring(0,4));\n\t\tint mes =Integer.parseInt(fecha.substring(5,7));\n\t\tint dia =Integer.parseInt( fecha.substring(8));\n\t\t\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tDate tmp = new Date(ano-1900,mes-1,dia);\n\t\t\n\t\treturn tmp;\n\t}", "public static Date stringToDate(String date) throws InvalidDateException{\n DateFormat format = new SimpleDateFormat(Constants.BIRTH_DATE_FORMAT);\n format.setLenient(false); //é uma flag para que a data esteja sempre entre os limites corretos\n try {\n return format.parse(date);\n } catch (ParseException ignored) {\n throw new InvalidDateException(\"Invalid date\");\n }\n }", "public static Date parseDate(String s) {\n\t\tDate d = null;\n\t\tif (s == null) {\n\t\t\treturn d;\n\t\t}\n\n\t\tString pattern = \"\";\n\n\t\tif (s.indexOf(':') >= 0) {\n\t\t\tif (s.length() > 20) {\n\t\t\t\tpattern = \"yyyy-MM-dd HH:mm:ss.SSS\";\n\t\t\t} else {\n\t\t\t\tif (s.lastIndexOf(':') != s.indexOf(':'))\n\t\t\t\t\tpattern = DD_MM_YYYY_HH_MM_SS;\n\t\t\t\telse\n\t\t\t\t\tpattern = \"dd/MM/yyyy HH:mm\";\n\t\t\t}\n\t\t} else {\n\t\t\tpattern = DD_MM_YYYY;\n\t\t}\n\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(pattern);\n\t\tsdf.setTimeZone(TimeZone.getDefault());\n\t\tif (s.length() > 0) {\n\t\t\ttry {\n\t\t\t\td = sdf.parse(s);\n\t\t\t} catch (ParseException e) {\n\t\t\t\tthrow new FenixException(\"Errore nella conversione della data. \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "public static Date parseDate(String date) {\r\n return parseDateWithPattern(date, \"dd/MM/yyyy\");\r\n }", "private Date stringToDate(String datum)\r\n\t{\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDate d = df.parse(datum);\r\n\t\t\treturn d;\r\n\t\t}\r\n\t\tcatch (ParseException e)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "private Date convertirStringEnFecha(String dia, String hora)\n {\n String fecha = dia + \" \" + hora;\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy hh:mm\");\n Date fecha_conv = new Date();\n try\n {\n fecha_conv = format.parse(fecha);\n }catch (ParseException e)\n {\n Log.e(TAG, e.toString());\n }\n return fecha_conv;\n }", "public static Date StringToDate(String dateString) {\n int y = new Integer(dateString.substring(0, 4));\n int m = new Integer(dateString.substring(4, 6));\n int d = new Integer(dateString.substring(6, 8));\n int h = new Integer(dateString.substring(8, 10));\n int min = new Integer(dateString.substring(10, 12));\n\n try {\n Calendar convCal = Calendar.getInstance();\n convCal.set(y, m - 1, d, h, min);\n Date date = convCal.getTime();\n\n return date;\n } catch (Exception ex) {\n System.out.println(\"BwInfo.convertStringToDate() \" + ex);\n return null;\n }\n\n }", "@Override\n\tpublic Date convert(String source) {\n\t\tif (StringUtils.isValid(source)) {\n\t\t\tDateFormat dateFormat;\n\t\t\tif (source.indexOf(\":\") != -1) {\n\t\t\t\tdateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t} else {\n\t\t\t\tdateFormat = new SimpleDateFormat(\"yyyy-MM-dd\"); \n\t\t\t}\n\t\t\t//日期转换为严格模式\n\t\t dateFormat.setLenient(false); \n\t try {\n\t\t\t\treturn dateFormat.parse(source);\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\t\treturn null;\n\t}", "public static Date toDate(final String data, final String sFormat, final Locale locale) {\n final SimpleDateFormat formato = new SimpleDateFormat(sFormat, locale == null ? getLocale(CalendarParams.LOCALE_PT) : locale);\n Date date = null;\n try {\n date = formato.parse(data);\n } catch (ParseException e) {\n // LOG.error(\"Date dont convert \", e);\n System.out.println(e.getMessage());\n }\n return date;\n }", "private static Date convertFromString(String dateString) throws ParseException {\n return new SimpleDateFormat(\"yyyyMMddHHmm\").parse(dateString);\n }", "public static Date getFecha(String strfecha) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date fechaSQL = null;\n try {\n java.util.Date fechaJAVA = sdf.parse(strfecha);\n fechaSQL = new Date(fechaJAVA.getTime());\n } catch (ParseException ex) {\n ex.printStackTrace(System.out);\n }\n return fechaSQL;\n }", "public static String parseDate(String input) {\n String year = input.substring(0, 4);\n String month = input.substring(5, 7);\n String day = input.substring(8, 10);\n return year + \"-\" + month + \"-\" + day;\n }", "public static Date createDate(String dateStr) throws ParseException {\n\t\tSimpleDateFormat date = new SimpleDateFormat(\"yyyy/MM/dd\");\n\t\treturn date.parse(dateStr);\n\t}", "public Date parseDate(String date, String format) {\n return this.convertStringToDate(date, format);\n }", "public Date formatForDate(String data) throws ParseException{\n //definindo a forma da Data Recebida\n DateFormat formatUS = new SimpleDateFormat(\"dd-MM-yyyy\");\n return formatUS.parse(data);\n }", "public static Date FormatStringToDate(String dateString) {\r\n SimpleDateFormat dF = new SimpleDateFormat(\"dd/mm/yyyy HH:mm:ss\");\r\n Date date = null;\r\n try {\r\n date = dF.parse(dateString);\r\n } catch (ParseException e) {\r\n e.printStackTrace();\r\n }\r\n return date;\r\n }", "public static Date convertToDate(String value) {\r\n if (StringUtils.isEmpty(value)) {\r\n return null;\r\n }\r\n\r\n Date result = null;\r\n String dateFormat = ResourceUtil.getMessageResourceString(\"application.pattern.timestamp\");\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(dateFormat);\r\n try {\r\n result = simpleDateFormat.parse(value);\r\n } catch (ParseException ex) {\r\n LOGGER.error(ex.getMessage(), ex);\r\n }\r\n\r\n return result;\r\n }", "public static Date parseDate(DateFormat format, String dateStr) throws ParseException {\n\t\tDate date = null;\n\t\tif (dateStr != null && !dateStr.isEmpty()) {\n\t\t\tdate = format.parse(dateStr);\n\t\t}\n\t\treturn date;\n\t}", "public static Date parseDate(String val) {\n\n\t\tDate d = null;\n\n\t\tif (val != null && !val.equals(\"0\")) {\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"MMM/dd/yyyy\");\n\t\t\ttry {\n\t\t\t\td = format.parse(val);\n\t\t\t} catch (ParseException e) {\n\t\t\t}\n\t\t}\n\n\t\treturn d;\n\n\t}", "public static Date getDateFromString(String date) {\r\n Date newdate = null;\r\n SimpleDateFormat dateformat = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n\r\n try {\r\n newdate = dateformat.parse(date);\r\n System.out.println(newdate);\r\n } catch (ParseException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return newdate;\r\n }", "private String convertToDateFormat(String inputDateString) throws DateTimeParseException {\n\t\treturn inputDateString;\n\t}", "public static Date parseDateTime(String date)\n\t{\n\t\treturn parseFormatDate(date, getDateTimeFormat());\n\t}", "public static Date convertStringToDate(String dateString) {\n\t\tLocalDate date = null;\n\t\t\n\t\ttry {\n\t\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(Constants.ddmmyyydateFormatInCSV);\n\t\t\tdate = LocalDate.parse(dateString, formatter);\n\n\t\t} catch (DateTimeParseException ex) {\n\t\t\tthrow new SalesException(\"enter the proper date in \" + Constants.ddmmyyydateFormatInCSV + \" format\");\n\t\t} catch (SalesException ex) {\n\t\t\tthrow new SalesException(\"Recevied excepion during date parser \" + ex.getMessage());\n\t\t}\n\t\treturn Date.valueOf(date);\n\t}", "private Date deserializeToDate(String object) {\n synchronized (this) {\n Object object2;\n boolean bl2;\n Object object3 = this.dateFormats;\n object3 = object3.iterator();\n while (bl2 = object3.hasNext()) {\n object2 = object3.next();\n object2 = (DateFormat)object2;\n try {\n return ((DateFormat)object2).parse((String)object);\n }\n catch (ParseException parseException) {\n }\n }\n try {\n bl2 = false;\n object2 = null;\n object3 = new ParsePosition(0);\n return ISO8601Utils.parse((String)object, (ParsePosition)object3);\n }\n catch (ParseException object22) {\n object2 = new JsonSyntaxException((String)object, object22);\n throw object2;\n }\n }\n }", "@Override\n\t\tpublic java.sql.Date convert(String s) throws ParseException {\n\t\t\ts = supportHtml5DateTimePattern(s);\n\t\t\t\n\t\t\tif (timeStampWithoutSecPatternLen == s.length()) {\n\t\t\t\ts = s + \":00\";\n\t\t\t}\n\t\t\tif (s.length() > dateLen) {\t// if (x < timeStampLen) 改用 datePattern 转换,更智能\n\t\t\t\t// return new java.sql.Date(java.sql.Timestamp.valueOf(s).getTime());\t// error under jdk 64bit(maybe)\n\t\t\t\treturn new java.sql.Date(getFormat(timeStampPattern).parse(s).getTime());\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// return new java.sql.Date(java.sql.Date.valueOf(s).getTime());\t// error under jdk 64bit\n\t\t\t\treturn new java.sql.Date(getFormat(datePattern).parse(s).getTime());\n\t\t\t}\n\t\t}", "public static Date ParseFecha(String fecha)\n {\n //SimpleDateFormat formato = new SimpleDateFormat(\"dd-MM-yyyy\");\n SimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date fechaDate = null;\n try {\n if(!fecha.equals(\"0\")){\n fechaDate = formato.parse(fecha);\n }\n\n }\n catch (ParseException ex)\n {\n System.out.println(ex);\n }\n return fechaDate;\n }", "private static Date toDate(final Object value, final String identifier) throws ParseException {\n if (value == null) {\n return null;\n }\n if (value instanceof Number) {\n return new Date(((Number) value).longValue());\n }\n final String t = (String) value;\n if (t.indexOf('-') < 0) try {\n return new Date(Long.valueOf(t));\n } catch (NumberFormatException e) {\n throw new ParseException(\"Illegal date: \" + value + \" (property:\" + identifier +\")\", e);\n }\n try {\n synchronized (JsonMetadataConstants.DATE_FORMAT) {\n return JsonMetadataConstants.DATE_FORMAT.parse((String) value);\n }\n } catch (java.text.ParseException e) {\n throw new ParseException(\"Illegal date: \" + value + \" (property:\" + identifier +\")\", e);\n }\n }", "public static synchronized Date parseDate(String s) throws ParseException {\n return dateFormat.parse(s);\n }", "public void parseDate(String d)\n {\n\tdate.set(d);\n String [] dateList = d.split(\"-\");\n \n year.set(Integer.valueOf(dateList[0]));\n month.set(Integer.valueOf(dateList[1]));\n day.set(Integer.valueOf(dateList[2]));\n }", "private static String convertDate(String dateString) {\n String date = null;\n\n try {\n //Parse the string into a date variable\n Date parsedDate = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\").parse(dateString);\n\n //Now reformat it using desired display pattern:\n date = new SimpleDateFormat(DATE_FORMAT).format(parsedDate);\n\n } catch (ParseException e) {\n Log.e(TAG, \"getDate: Error parsing date\", e);\n e.printStackTrace();\n }\n\n return date;\n }", "public static Date isoStringToDate(String d) {\n\t\tDateTime dt = XML_DATE_TIME_FORMAT.parseDateTime(d);\n\t\treturn dt.toDate();\n\t}", "public String convertDateFormate(String dt) {\n String formatedDate = \"\";\n if (dt.equals(\"\"))\n return \"1970-01-01\";\n String[] splitdt = dt.split(\"-\");\n formatedDate = splitdt[2] + \"-\" + splitdt[1] + \"-\" + splitdt[0];\n \n return formatedDate;\n \n }", "public static final DataType<Date> createDate(final String format) {\r\n return new ARXDate(format);\r\n }", "@SuppressWarnings(\"deprecation\")\n\tpublic static Date getDateForString(String dateString) {\n\t\tString[] separation1 = dateString.split(\" \");\n\t\tString[] separation2 = separation1[0].split(\"/\");\n\t\tString[] separation3 = separation1[1].split(\":\");\n\t\treturn new Date(Integer.parseInt(separation2[2])-1900, (Integer.parseInt(separation2[1])-1), Integer.parseInt(separation2[0]), Integer.parseInt(separation3[0]), Integer.parseInt(separation3[1]), Integer.parseInt(separation3[2]));\n\t}", "public static Date stringToDate(String fecha, String formato){\n if(fecha==null || fecha.equals(\"\")){\n return null;\n } \n GregorianCalendar gc = new GregorianCalendar();\n try {\n fecha = nullToBlank(fecha);\n SimpleDateFormat df = new SimpleDateFormat(formato);\n gc.setTime(df.parse(fecha));\n } catch (Exception e) {\n e.printStackTrace();\n }\n return gc.getTime();\n }", "public static Date dateFromString(String date, String pattern, Locale locale) throws ParseException {\n DateFormat format = new SimpleDateFormat(pattern, locale);\n return format.parse(date);\n }", "public static Date getDateFromString(String date, String format)\n {\n SimpleDateFormat formatter = new SimpleDateFormat(format);\n ParsePosition pos = new ParsePosition(0);\n\n // Parse the string back into a Time Stamp.\n return formatter.parse(date, pos);\n }", "public Date formatDate( String dob )\n throws ParseException {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n dateFormat.setLenient(false);\n return dateFormat.parse(dob);\n }", "public static Date parseDateYYYYMMDD(String val) {\n\n\t\tDate d = null;\n\n\t\tif (val != null && !val.equals(\"0\")) {\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\ttry {\n\t\t\t\td = format.parse(val);\n\t\t\t} catch (ParseException e) {\n\t\t\t}\n\t\t}\n\n\t\treturn d;\n\n\t}", "public static Date toDateFormat_1(String dateString) {\r\n\t\treturn stringToDate(dateString, DATE_FORMAT_1);\r\n\t}", "public static String convertDate(String dbDate) throws ParseException //yyyy-MM-dd\n {\n String convertedDate = \"\";\n\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(dbDate);\n\n convertedDate = new SimpleDateFormat(\"MM/dd/yyyy\").format(date);\n\n return convertedDate ;\n }", "public static Date convert(String timeString){\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MMM/yyyy:HH:mm:ss ZZZZ\");\n // set default timezone to be runtime independent\n TimeZone.setDefault(TimeZone.getTimeZone(\"UTC\"));\n try {\n return dateFormat.parse(timeString);\n } catch (ParseException e) {\n LOGGER.log(Level.SEVERE, \"Date cannot be parsed: \"+ timeString, e);\n return null;\n }\n }", "public static Date convertStringToDate(String stringDate) {\n\n\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\"); \n\t\tDate startDate = null;\n\n\t\ttry {\n\t\t startDate = df.parse(stringDate);\n\n\t\t} catch (ParseException e) {\n\t\t e.printStackTrace();\n\t\t}\n\t\treturn startDate;\n\t\t\n\t}", "public Date getConvertedDate(String dateToBeConverted) {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yy hh:mm:ss\");\n\t\ttry{\n\t\t\tbookedDate = sdf.parse(dateToBeConverted);\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn bookedDate;\n\t}", "public String getDDMMMYYYYDate(String date) throws Exception {\n HashMap<Integer, String> month = new HashMap<Integer, String>();\n month.put(1, \"Jan\");\n month.put(2, \"Feb\");\n month.put(3, \"Mar\");\n month.put(4, \"Apr\");\n month.put(5, \"May\");\n month.put(6, \"Jun\");\n month.put(7, \"Jul\");\n month.put(8, \"Aug\");\n month.put(9, \"Sep\");\n month.put(10, \"Oct\");\n month.put(11, \"Nov\");\n month.put(12, \"Dec\");\n\n try {\n String[] dtArray = date.split(\"-\");\n return dtArray[1] + \"-\" + month.get(Integer.parseInt(dtArray[1])) + \"-\" + dtArray[0];\n } catch (Exception e) {\n throw new Exception(\"getDDMMMYYYYDate : \" + date + \" : \" + e.toString());\n }\n\n }", "public String ConvertDate(){\r\n//\t\tDate date=JavaUtils.getSystemDate();\r\n//\t DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n\t String pattern = \"yyyy-MM-dd\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n\r\n\t String date = simpleDateFormat.format(new Date());\r\n//\t System.out.println(date);\r\n\t \r\n//\t String s = df.format(date);\r\n//\t String result = s;\r\n//\t try {\r\n//\t date=df.parse(result);\r\n//\t } catch (ParseException e) {\r\n//\t // TODO Auto-generated catch block\r\n//\t e.printStackTrace();\r\n//\t }\r\n\t return date;\r\n\t }", "public static Date convertString2Date(String strTime) {\r\n\t\t Calendar calendar = Calendar.getInstance();\r\n\t\t calendar.setTimeInMillis(Long.valueOf(strTime));\r\n\t\t return calendar.getTime();\r\n\t}", "public static Date dateFromShortString(String dateString) {\n SimpleDateFormat fmt = new SimpleDateFormat(\"dd-MMM-yyyy\", Locale.getDefault());\n try {\n return fmt.parse(dateString);\n } catch (ParseException e) {\n e.printStackTrace();\n return new Date();\n }\n }", "public static Date fotmatDate18(String myDate) {\n\t\tif(myDate == null || \"\".equals(myDate)) return null;\r\n\t\tDate dDate = (Date) new SimpleDateFormat(\"yyyyMMddHHmmss\").parse(myDate,\r\n\t\t\t\tnew ParsePosition(0));\r\n\t\treturn dDate;\r\n\t}", "private static Date getDate(String sdate)\n\t{\n\t\tDate date = null;\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\ttry {\n\t\t\tdate = formatter.parse(sdate);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn date;\n\t}", "public static Date fromOADate(double oaDate) {\n Date date = new Date();\n //long t = (long)((oaDate - 25569) * 24 * 3600 * 1000);\n //long t = (long) (oaDate * 1000000);\n long t = (long)BigDecimalUtil.mul(oaDate, 1000000);\n date.setTime(t);\n return date;\n }", "public static Date parse(String input) throws java.text.ParseException {\n\t\treturn new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.S\").parse(input);\n\n\t}", "protected static Date parseDate(String dateStr) {\n if (dateStr != null) {\n try {\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n return df.parse(dateStr);\n }\n catch (Exception e) {\n throw new IllegalArgumentException(\"Expected date in format yyyy-MM-dd but got \" + dateStr, e);\n }\n }\n return null;\n }", "public static Date strToTime(String strDate)\r\n/* 135: */ {\r\n/* 136:192 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd HH:mm:ss\");\r\n/* 137:193 */ ParsePosition pos = new ParsePosition(0);\r\n/* 138:194 */ Date strtodate = formatter.parse(strDate, pos);\r\n/* 139:195 */ return strtodate;\r\n/* 140: */ }", "public static Date toDateFormat_4(String dateString) {\r\n\t\treturn stringToDate(dateString, DATE_FORMAT_4);\r\n\t}", "public Date parseString(String dateString) throws ParseException {\n return dateFormat.parse(dateString);\n }", "public static Date GetDateObjectFromString(String dateAsString) {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tDate tempDate = null;\n\t\ttry {\n\t\t\tif (dateAsString != null && !dateAsString.equalsIgnoreCase(\"null\"))\n\t\t\t\ttempDate = sdf.parse(dateAsString);\n\t\t} catch (Exception e) {\n\t\t\t// do some error reporting here\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn tempDate;\n\t}", "public static java.util.Date convertToUDate(String dateInString) {\n\t\tif (dateInString == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\tjava.util.Date uDate = null;\n\t\t\ttry {\n\t\t\t\tuDate = dateFormat.parse(dateInString);\n\t\t\t} catch (ParseException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn uDate;\n\t\t}\n\t}", "public static String convertDate(String input) {\n String res = \"\";\n\n String[] s = input.split(\" \");\n\n res += s[2] + \"-\";\n switch (s[1]) {\n case \"January\":\n res += \"01\";\n break;\n case \"February\":\n res += \"02\";\n break;\n case \"March\":\n res += \"03\";\n break;\n case \"April\":\n res += \"04\";\n break;\n case \"May\":\n res += \"05\";\n break;\n case \"June\":\n res += \"06\";\n break;\n case \"July\":\n res += \"07\";\n break;\n case \"August\":\n res += \"08\";\n break;\n case \"September\":\n res += \"09\";\n break;\n case \"October\":\n res += \"10\";\n break;\n case \"November\":\n res += \"11\";\n break;\n case \"December\":\n res += \"12\";\n break;\n default:\n res += \"00\";\n break;\n }\n\n res += \"-\";\n if (s[0].length() == 1) {\n res += \"0\" + s[0];\n }\n else {\n res += s[0];\n }\n return res;\n }", "public static Date parseDate(String date) throws java.text.ParseException {\n if(date == null) return null;\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n try {\n return sdf.parse(date);\n\n } catch(ParseException e) {\n sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\n try {\n return sdf.parse(date);\n\n } catch(ParseException e2) {\n sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.parse(date);\n }\n } \n }", "public static java.util.Date parseStringToDate(String data, String pattern) {\r\n\t\tjava.util.Date retorno = null;\r\n\r\n\t\tif (data != null && pattern != null) {\r\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(pattern);\r\n\t\t\tformat.setLenient(false);\r\n\t\t\ttry {\r\n\t\t\t\tretorno = format.parse(data);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public static String convertDateToSend(String gotdate){\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(Long.parseLong(gotdate));\n SimpleDateFormat inputFormat = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n SimpleDateFormat outputFormat = new SimpleDateFormat(\"dd MMM yyyy\");\n /*Date parsedDate = null;\n try {\n parsedDate = inputFormat.parse(gotdate);\n } catch (ParseException e) {\n e.printStackTrace();\n }*/\n String formattedDate = outputFormat.format(calendar.getTime());\n return formattedDate;\n }", "public static HISDate valueOf(String datStr) throws HISDateException {\r\n return HISDate.valueOf(datStr, null);\r\n }", "public static Date changeDateFormat(String date, String format){\n SimpleDateFormat sdf = new SimpleDateFormat(format);\n try {\n return sdf.parse(date);\n } catch (ParseException e) {\n e.printStackTrace();\n return null;\n }\n }", "public Date(String icalStr) throws ParseException, BogusDataException\r\n\t{\r\n\t\tsuper(icalStr);\r\n\r\n\t\tyear = month = day = 0;\r\n\t\thour = minute = second = 0;\r\n\r\n\t\tfor (int i = 0; i < attributeList.size(); i++)\r\n\t\t{\r\n\t\t\tAttribute a = attributeAt(i);\r\n\t\t\tString aname = a.name.toUpperCase(Locale.ENGLISH);\r\n\t\t\tString aval = a.value.toUpperCase(Locale.ENGLISH);\r\n\t\t\t// TODO: not sure if any attributes are allowed here...\r\n\t\t\t// Look for VALUE=DATE or VALUE=DATE-TIME\r\n\t\t\t// DATE means untimed for the event\r\n\t\t\tif (aname.equals(\"VALUE\"))\r\n\t\t\t{\r\n\t\t\t\tif (aval.equals(\"DATE\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tdateOnly = true;\r\n\t\t\t\t} else if (aval.equals(\"DATE-TIME\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tdateOnly = false;\r\n\t\t\t\t}\r\n\t\t\t} else if (aname.equals(\"TZID\"))\r\n\t\t\t{\r\n\t\t\t\ttzid = a.value;\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\t// TODO: anything else allowed here?\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tString inDate = value;\r\n\r\n\t\tif (inDate.length() < 8)\r\n\t\t{\r\n\t\t\t// Invalid format\r\n\t\t\tthrow new ParseException(\"Invalid date format '\" + inDate + \"'\",\r\n\t\t\t\t\tinDate);\r\n\t\t}\r\n\r\n\t\t// Make sure all parts of the year are numeric.\r\n\t\tfor (int i = 0; i < 8; i++)\r\n\t\t{\r\n\t\t\tchar ch = inDate.charAt(i);\r\n\t\t\tif (ch < '0' || ch > '9')\r\n\t\t\t{\r\n\t\t\t\tthrow new ParseException(\r\n\t\t\t\t\t\t\"Invalid date format '\" + inDate + \"'\", inDate);\r\n\t\t\t}\r\n\t\t}\r\n\t\tyear = Integer.parseInt(inDate.substring(0, 4));\r\n\t\tmonth = Integer.parseInt(inDate.substring(4, 6));\r\n\t\tday = Integer.parseInt(inDate.substring(6, 8));\r\n\t\tif (day < 1 || day > 31 || month < 1 || month > 12)\r\n\t\t\tthrow new BogusDataException(\"Invalid date '\" + inDate + \"'\",\r\n\t\t\t\t\tinDate);\r\n\t\t// Make sure day of month is valid for specified month\r\n\t\tif (year % 4 == 0)\r\n\t\t{\r\n\t\t\t// leap year\r\n\t\t\tif (day > leapMonthDays[month - 1])\r\n\t\t\t{\r\n\t\t\t\tthrow new BogusDataException(\"Invalid day of month '\" + inDate\r\n\t\t\t\t\t\t+ \"'\", inDate);\r\n\t\t\t}\r\n\t\t} else\r\n\t\t{\r\n\t\t\tif (day > monthDays[month - 1])\r\n\t\t\t{\r\n\t\t\t\tthrow new BogusDataException(\"Invalid day of month '\" + inDate\r\n\t\t\t\t\t\t+ \"'\", inDate);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// TODO: parse time, handle localtime, handle timezone\r\n\t\tif (inDate.length() > 8)\r\n\t\t{\r\n\t\t\t// TODO make sure dateOnly == false\r\n\t\t\tif (inDate.charAt(8) == 'T')\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\thour = Integer.parseInt(inDate.substring(9, 11));\r\n\t\t\t\t\tminute = Integer.parseInt(inDate.substring(11, 13));\r\n\t\t\t\t\tsecond = Integer.parseInt(inDate.substring(13, 15));\r\n\t\t\t\t\tif (hour > 23 || minute > 59 || second > 59)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tthrow new BogusDataException(\r\n\t\t\t\t\t\t\t\t\"Invalid time in date string '\" + inDate + \"'\",\r\n\t\t\t\t\t\t\t\tinDate);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (inDate.length() > 15)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tisUTC = inDate.charAt(15) == 'Z';\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (NumberFormatException nef)\r\n\t\t\t\t{\r\n\t\t\t\t\tthrow new BogusDataException(\r\n\t\t\t\t\t\t\t\"Invalid time in date string '\" + inDate + \"' - \"\r\n\t\t\t\t\t\t\t\t\t+ nef, inDate);\r\n\t\t\t\t}\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\t// Invalid format\r\n\t\t\t\tthrow new ParseException(\r\n\t\t\t\t\t\t\"Invalid date format '\" + inDate + \"'\", inDate);\r\n\t\t\t}\r\n\t\t} else\r\n\t\t{\r\n\t\t\t// Just date, no time\r\n\t\t\tdateOnly = true;\r\n\t\t}\r\n\r\n\t\tif (isUTC && !dateOnly)\r\n\t\t{\r\n\t\t\t// Use Joda Time to convert UTC to localtime\r\n\t\t\tDateTime utcDateTime = new DateTime(DateTimeZone.UTC);\r\n\t\t\tutcDateTime = utcDateTime.withDate(year, month, day).withTime(hour,\r\n\t\t\t\t\tminute, second, 0);\r\n\t\t\tDateTime localDateTime = utcDateTime.withZone(DateTimeZone\r\n\t\t\t\t\t.getDefault());\r\n\t\t\tyear = localDateTime.getYear();\r\n\t\t\tmonth = localDateTime.getMonthOfYear();\r\n\t\t\tday = localDateTime.getDayOfMonth();\r\n\t\t\thour = localDateTime.getHourOfDay();\r\n\t\t\tminute = localDateTime.getMinuteOfHour();\r\n\t\t\tsecond = localDateTime.getSecondOfMinute();\r\n\t\t} else if (tzid != null)\r\n\t\t{\r\n\t\t\tDateTimeZone tz = DateTimeZone.forID(tzid);\r\n\t\t\tif (tz != null)\r\n\t\t\t{\r\n\t\t\t\t// Convert to localtime\r\n\t\t\t\tDateTime utcDateTime = new DateTime(tz);\r\n\t\t\t\tutcDateTime = utcDateTime.withDate(year, month, day).withTime(\r\n\t\t\t\t\t\thour, minute, second, 0);\r\n\t\t\t\tDateTime localDateTime = utcDateTime.withZone(DateTimeZone\r\n\t\t\t\t\t\t.getDefault());\r\n\t\t\t\tyear = localDateTime.getYear();\r\n\t\t\t\tmonth = localDateTime.getMonthOfYear();\r\n\t\t\t\tday = localDateTime.getDayOfMonth();\r\n\t\t\t\thour = localDateTime.getHourOfDay();\r\n\t\t\t\tminute = localDateTime.getMinuteOfHour();\r\n\t\t\t\tsecond = localDateTime.getSecondOfMinute();\r\n\t\t\t\t// Since we have converted to localtime, remove the TZID\r\n\t\t\t\t// attribute\r\n\t\t\t\tthis.removeNamedAttribute(\"TZID\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tisUTC = false;\r\n\r\n\t\t// Add attribute that says date-only or date with time\r\n\t\tif (dateOnly)\r\n\t\t\taddAttribute(\"VALUE\", \"DATE\");\r\n\t\telse\r\n\t\t\taddAttribute(\"VALUE\", \"DATE-TIME\");\r\n\r\n\t}", "public static Date parseToDate(String dateAParser, String type){\n\t\tDateFormat dfTmp = \"US\".equals(type) ? df : dfr;\n\t\tDate retour = null;\n\t\ttry {\n\t\t\tif(dateAParser != null){\n\t\t\t\tretour = df.parse(dateAParser);\n \n\t\t\t}\n\t\t} catch (ParseException e) {\n\t\t\t//TODO : add log\n\t\t}\n\t\treturn retour;\n\t}" ]
[ "0.71270263", "0.69078624", "0.66745096", "0.6561734", "0.6513729", "0.6486581", "0.6471145", "0.6435562", "0.639534", "0.6390626", "0.63715726", "0.63529813", "0.6348331", "0.6314276", "0.62984425", "0.628912", "0.627512", "0.6246001", "0.6244051", "0.6239527", "0.62075084", "0.61823535", "0.6174912", "0.61632764", "0.6161433", "0.6160569", "0.61602473", "0.61480814", "0.6124954", "0.60998994", "0.60908633", "0.60798", "0.60764736", "0.6073021", "0.60704154", "0.6042854", "0.6015128", "0.59951705", "0.5988644", "0.598649", "0.59473723", "0.59447867", "0.5940603", "0.5935225", "0.59058535", "0.58976614", "0.5882153", "0.5871194", "0.5846849", "0.5843289", "0.5816356", "0.58018064", "0.580152", "0.5801327", "0.5795064", "0.57942504", "0.5792925", "0.5783165", "0.5758885", "0.57476693", "0.57357645", "0.5732717", "0.57095367", "0.5700912", "0.5698204", "0.5693486", "0.5692848", "0.56887746", "0.56877637", "0.56815606", "0.5663086", "0.5651051", "0.56353503", "0.5627013", "0.5612708", "0.5612387", "0.5590357", "0.55831486", "0.5576446", "0.554977", "0.5546861", "0.5544366", "0.5539943", "0.55351084", "0.55245155", "0.5518841", "0.5511826", "0.5494398", "0.54925483", "0.54923767", "0.54916054", "0.54610914", "0.5455224", "0.5454349", "0.5430857", "0.54204065", "0.54136115", "0.53965956", "0.53959584", "0.5394243" ]
0.6667295
3
Formata um campo e o retorna ja com |
public static String formatarCampoParaConcatenacao(Object parametro) { if (parametro == null) { return "|"; } else { return parametro + "|"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_ISFICHA))\n\t\t{\n\t\t\tc=IDISFICHA;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS))\n\t\t{\n\t\t\tc=NOTAS;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_ANOTACIONES))\n\t\t{\n\t\t\tc=ANOTACIONES;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS_EJERCICIOS))\n\t\t{\n\t\t\tc=NOTAS_EJERCICIOS;\n\t\t}\n\t\treturn c;\n\t}", "public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_HAS_ISHORARIO_IDISHORARIO))\n\t\t{\n\t\t\tc=ISHORARIO_IDISHORARIO;\n\t\t}\n\t\telse if (campo.equals(Constantes.ID_HAS_ISAULA_IDISAULA))\n\t\t{\n\t\t\tc=ISAULA_IDISAULA;\n\t\t}\n\t\telse if (campo.equals(Constantes.ISHORARIO_HAS_ISAULA_ISCURSO_IDISCURSO))\n\t\t{\n\t\t\tc=ISCURSO_IDISCURSO;\n\t\t}\n\t\t\n\t\treturn c;\n\t}", "public void setComentario (String val) {\n this.comentario = val;\n }", "@AutoEscape\n\tpublic String getTelefono();", "java.lang.String getField1313();", "@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 abstract java.lang.String getAcma_valor();", "java.lang.String getField1005();", "@Override\n\tpublic String fieldConvert(String field) {\n\t\tif (!StringUtils.isEmpty(field)) {\n\t\t\tswitch (field) {\n\t\t\tcase \"code\":\n\t\t\t\treturn \"CODE\";\n\t\t\tcase \"name\":\n\t\t\t\treturn \"NAME\";\n\t\t\tcase \"createTime\":\n\t\t\t\treturn \"CREATE_TIME\";\n\t\t\tcase \"updateTime\":\n\t\t\t\treturn \"UPDATE_TIME\";\n\t\t\tdefault:\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}", "public String getComentario( )\n\t{\n\t\treturn comentario;\n\t}", "java.lang.String getField1015();", "java.lang.String getField1301();", "java.lang.String getField1710();", "java.lang.String getField1032();", "java.lang.String getField1202();", "public String obtenerValorCampo(String nombreCampo) {\n return columnas.get(nombreCampo);\n }", "private void aplicaMascara(JFormattedTextField campo) {\n\n DecimalFormat decimal = new DecimalFormat(\"##,###,###.00\");\n decimal.setMaximumIntegerDigits(7);\n decimal.setMinimumIntegerDigits(1);\n NumberFormatter numFormatter = new NumberFormatter(decimal);\n numFormatter.setFormat(decimal);\n numFormatter.setAllowsInvalid(false);\n DefaultFormatterFactory dfFactory = new DefaultFormatterFactory(numFormatter);\n campo.setFormatterFactory(dfFactory);\n }", "java.lang.String getField1362();", "public java.lang.String getValor();", "java.lang.String getField1610();", "java.lang.String getField1307();", "java.lang.String getField1300();", "java.lang.String getField1003();", "java.lang.String getField1120();", "java.lang.String getField1200();", "java.lang.String getField1064();", "public String getPrimoCampo(){\n return descrizione.split(\",\")[0];\n }", "java.lang.String getField1315();", "java.lang.String getField1382();", "public String getComentario () {\n return comentario;\n }", "java.lang.String getField1048();", "java.lang.String getField1201();", "java.lang.String getField1406();", "String getField();", "java.lang.String getField1513();", "java.lang.String getField1333();", "java.lang.String getField1350();", "java.lang.String getField1031();", "public String ordaindu() {\r\n\t\treturn textField_1.getText();\r\n\t}", "java.lang.String getField1414();", "public void limparCampos() {\n\t\tcodigoField.setText(\"\");\n\t\tdescricaoField.setText(\"\");\n\t\tcodigoField.setEditable(true);\n\t\tBorder border = BorderFactory.createLineBorder(Color.RED);\n\t\tcodigoField.setBorder(border);\n\t\tcodigoField.requestFocus();\n\t\tBorder border1 = BorderFactory.createLineBorder(Color.BLACK);\n\t\tdescricaoField.setBorder(border1);\n\t\t\n\t\t\n\t}", "java.lang.String getField1310();", "java.lang.String getField1312();", "java.lang.String getField1311();", "java.lang.String getField1533();", "public String getAutorizacionCompleto()\r\n/* 184: */ {\r\n/* 185:316 */ return this.establecimiento + \"-\" + this.puntoEmision + \" \" + this.autorizacion;\r\n/* 186: */ }", "java.lang.String getField1150();", "java.lang.String getField1309();", "java.lang.String getField1213();", "java.lang.String getField1212();", "java.lang.String getField1365();", "java.lang.String getField1582();", "@Override\n\tpublic String getAsString(FacesContext ctx, UIComponent component, Object obj) {\n\t\tif(obj == null || obj.equals(\"\")){\n\t\t\treturn null;\n\t\t}else{\n\t\t\tRelogio relogio = (Relogio) obj;\n\t\t\treturn String.valueOf(relogio.getId());\n\t\t}\n\t}", "java.lang.String getField1358();", "java.lang.String getField1399();", "java.lang.String getField1521();", "java.lang.String getField1216();", "java.lang.String getField1413();", "java.lang.String getField1007();", "java.lang.String getField1252();", "java.lang.String getField1231();", "java.lang.String getField1233();", "public void addField()\n {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) availableFieldsComp.getTree().getLastSelectedPathComponent();\n if (node == null || !node.isLeaf() || !(node.getUserObject() instanceof DataObjDataFieldWrapper) )\n {\n return; // not really a field that can be added, just empty or a string\n }\n\n Object obj = node.getUserObject();\n if (obj instanceof DataObjDataFieldWrapper)\n {\n DataObjDataFieldWrapper wrapper = (DataObjDataFieldWrapper) obj;\n String sep = sepText.getText();\n if (StringUtils.isNotEmpty(sep))\n {\n try\n {\n DefaultStyledDocument doc = (DefaultStyledDocument) formatEditor.getStyledDocument();\n if (doc.getLength() > 0)\n {\n doc.insertString(doc.getLength(), sep, null);\n }\n }\n catch (BadLocationException ble) {}\n \n }\n insertFieldIntoTextEditor(wrapper);\n setHasChanged(true);\n }\n }", "java.lang.String getField1515();", "java.lang.String getField1303();", "java.lang.String getField1550();", "java.lang.String getField1025();", "java.lang.String getField1997();", "java.lang.String getField1361();", "java.lang.String getField1392();", "java.lang.String getField1366();", "java.lang.String getField1314();", "java.lang.String getField1221();", "java.lang.String getField1522();", "java.lang.String getField1215();", "java.lang.String getField1133();", "java.lang.String getField1001();", "java.lang.String getField1033();", "public String getTelefono(){\n return telefono;\n }", "java.lang.String getField1592();", "java.lang.String getField1511();", "java.lang.String getField1115();", "java.lang.String getField1282();", "java.lang.String getField1040();", "java.lang.String getField1013();", "java.lang.String getField1565();", "java.lang.String getField1391();", "java.lang.String getField1012();", "java.lang.String getField1125();", "java.lang.String getField1113();", "java.lang.String getField1998();", "java.lang.String getField1512();", "String getClobField();", "java.lang.String getField1990();", "java.lang.String getField1028();", "java.lang.String getField1398();", "java.lang.String getField1102();", "java.lang.String getField1599();", "java.lang.String getField1265();", "java.lang.String getField1359();", "java.lang.String getField1385();" ]
[ "0.6479847", "0.64016414", "0.61841995", "0.60430896", "0.5989958", "0.5977483", "0.5965036", "0.5960608", "0.5913682", "0.5907636", "0.59070563", "0.588984", "0.58473736", "0.5844137", "0.58399355", "0.5838364", "0.58323467", "0.58272475", "0.5823969", "0.58165675", "0.5814453", "0.580982", "0.58066124", "0.58049655", "0.5804812", "0.5801957", "0.5801514", "0.5797874", "0.5794097", "0.57892215", "0.57827276", "0.5780464", "0.5772734", "0.5770374", "0.57665014", "0.5760193", "0.5753372", "0.57496285", "0.57469535", "0.57434803", "0.57409775", "0.57380426", "0.57364523", "0.5731638", "0.5731079", "0.5726051", "0.57246", "0.5721171", "0.5719637", "0.5710742", "0.57088125", "0.5704189", "0.5703362", "0.56985974", "0.5696916", "0.5695783", "0.5691159", "0.5687065", "0.5687053", "0.56850845", "0.56836915", "0.56823605", "0.56802875", "0.5679126", "0.5674414", "0.56726635", "0.5672192", "0.5671459", "0.5670828", "0.5670541", "0.56702197", "0.56693435", "0.5665743", "0.56649756", "0.5663981", "0.56634825", "0.5659647", "0.5659395", "0.5656025", "0.5653174", "0.5648416", "0.56480145", "0.5647406", "0.5646466", "0.5645584", "0.56451476", "0.56451386", "0.56438816", "0.5643312", "0.56431913", "0.564024", "0.5638544", "0.5636232", "0.5633365", "0.56304365", "0.56302774", "0.56299365", "0.56292343", "0.5628531", "0.56268626", "0.56264347" ]
0.0
-1
Formate um MesANo para um tipo Date
public static Date formatarMesAnoParaData(String mesAno, String dia, String hora) { Date retorno = null; String[] mesAnoArray = mesAno.split("/"); SimpleDateFormat formatoData = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss"); String dataCompleta = dia + "/" + mesAnoArray[0] + "/" + mesAnoArray[1] + " " + hora; try { retorno = formatoData.parse(dataCompleta); } catch (ParseException e) { e.printStackTrace(); } return retorno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getDateObject(){\n \n Date date = new Date(this.getAnio(), this.getMes(), this.getDia());\n return date;\n }", "public final String obtenerFechaFormateada() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MMM/yyyy\");\n return fechaDeLaVisita.get().format(formatter);\n }", "public String toDate(Date date) {\n DateFormat df = DateFormat.getDateInstance();\r\n String fecha = df.format(date);\r\n return fecha;\r\n }", "public String dar_fecha(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n return dateFormat.format(date).toString();\n\n }", "private String formatDate(String dateObject) {\n SimpleDateFormat input = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\"); // format kita \"HARUS SAMA TIDAK BOLEH FORMATNYA BEDA BAHKAN 1 CHAR PUN\n SimpleDateFormat output= new SimpleDateFormat(\"dd-MM-yyyy\");\n Date tanggal = null;\n try {\n tanggal = input.parse(dateObject);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return output.format(tanggal);\n\n }", "private String leerFecha() {\n\t\ttry {\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"YYYY/MM/dd\");\n\t\t\treturn sdf.format(txtFecha.getDate());\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(this, \"Seleccione una fecha válida\", \"Aviso\", 2);\n\t\t\treturn null;\n\t\t}\n\t}", "public void mostrarHora(String formato){\n Date objDate = new Date();\n SimpleDateFormat objSDF = new SimpleDateFormat(formato);\n //este sera el resultado de la fechas\n fecha=objSDF.format(objDate);\n }", "public String formatForAmericanModel(Date data){\n //definido modelo americano\n DateFormat formatBR = new SimpleDateFormat(\"yyyy-MM-dd\");\n return formatBR.format(data);\n \n }", "public static String formartDateMpesa(String mDate) {\n\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\tSimpleDateFormat outSDF = new SimpleDateFormat(\"dd-MM-yyyy\");\n\n\t\t\t String outDate = \"\";\n\t\t\t if (mDate != null) {\n\t\t\t try {\n\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t outDate = outSDF.format(date);\n\t\t\t } catch (Exception ex){ \n\t\t\t \tex.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t return outDate;\n\t\t}", "java.lang.String getToDate();", "private String createDate(){\n SimpleDateFormat date = new SimpleDateFormat(\"EEE, MMM d, yyyy\");\n String stringDate = date.format(new Date()); \n return stringDate;\n }", "Date getFechaNacimiento();", "public String convertDateFormate(String dt) {\n String formatedDate = \"\";\n if (dt.equals(\"\"))\n return \"1970-01-01\";\n String[] splitdt = dt.split(\"-\");\n formatedDate = splitdt[2] + \"-\" + splitdt[1] + \"-\" + splitdt[0];\n \n return formatedDate;\n \n }", "private static void formatDate (XmlDoc.Element date) throws Throwable {\n\t\tString in = date.value();\n\t\tString out = DateUtil.convertDateString(in, \"dd-MMM-yyyy\", \"yyyy-MM-dd\");\n\t\tdate.setValue(out);\n\t}", "public static String dateTran(String dateOri){\n\t\tDateFormat formatter1 ; \n\t\tDate date ; \n\t\tString newDate=null;\n\t\tformatter1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\ttry {\n\t\t\tdate=formatter1.parse(dateOri);\n\t\t\tSimpleDateFormat formatter = new SimpleDateFormat ( \"M/d/yy\" );\n\t\t\tnewDate = formatter.format(date);\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn newDate;\n\t}", "private String toDate(Date appDate) throws ParseException {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(appDate);\n\t\tString formatedDate = cal.get(Calendar.DATE) + \"/\" + (cal.get(Calendar.MONTH) + 1) + \"/\" + cal.get(Calendar.YEAR);\n\t\tSystem.out.println(\"formatedDate : \" + formatedDate); \n\t\treturn formatedDate;\n\t}", "public Date formatForDate(String data) throws ParseException{\n //definindo a forma da Data Recebida\n DateFormat formatUS = new SimpleDateFormat(\"dd-MM-yyyy\");\n return formatUS.parse(data);\n }", "private Date stringToSQLDate(String fecha){\n\t\t\n\t\t\n\t\tint ano=Integer.parseInt(fecha.substring(0,4));\n\t\tint mes =Integer.parseInt(fecha.substring(5,7));\n\t\tint dia =Integer.parseInt( fecha.substring(8));\n\t\t\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tDate tmp = new Date(ano-1900,mes-1,dia);\n\t\t\n\t\treturn tmp;\n\t}", "private String formatarData(Date data)\n {\n String sDate;\n String sDia = \"\";\n String sMes = \"\";\n\n GregorianCalendar calendar = new GregorianCalendar();\n calendar.setTime(data);\n int dia = calendar.get(GregorianCalendar.DAY_OF_MONTH);\n if (dia > 0) {\n if (dia < 10) {\n sDia = \"0\";\n }\n }\n sDia += dia;\n\n int mes = calendar.get(GregorianCalendar.MONTH);\n mes = mes + 1;\n if (mes > 0) {\n if (mes < 10) {\n sMes = \"0\";\n }\n }\n sMes += mes;\n\n int ano = calendar.get(GregorianCalendar.YEAR);\n\n int hora = calendar.get(GregorianCalendar.HOUR);\n // 0 = dia\n // 1 = noite\n int amPm = calendar.get(GregorianCalendar.AM_PM);\n\n if(amPm == 1)\n {\n if(hora>0 && hora < 13)\n {\n if(hora > 11)\n hora = 0;\n else\n hora += 12;\n }\n }\n\n String sHora = \" \";\n if(hora<=9)\n {\n sHora += \"0\";\n }\n String sMin=\":\";\n int min = calendar.get(GregorianCalendar.MINUTE);\n if(min <10)\n sMin += \"0\";\n sMin += String.valueOf(min);\n sHora += String.valueOf(hora) + sMin + \":00\";\n sDate = String.valueOf(ano) + \"-\" + sMes + \"-\" + sDia + sHora;\n return sDate;\n\n }", "public String formatDate(Object valor) {\r\n\t\tString aux = valor.toString();\r\n\t\tif (!aux.equalsIgnoreCase(\"&nbsp;\") && !aux.equalsIgnoreCase(\"\")) {\r\n\t\t\tString anio = aux.substring(0, 4);\r\n\t\t\tString mes = aux.substring(4, 6);\r\n\t\t\tString dia = aux.substring(6);\r\n\t\t\treturn dia + \"/\" + mes + \"/\" + anio;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn aux;\r\n\t}", "public String date(int lmao) {\r\n switch (lmao) {\r\n case 1:\r\n return time.showDay();\r\n\r\n case 2:\r\n return time.showMonth();\r\n\r\n case 3:\r\n return time.showYear();\r\n\r\n case 4:\r\n return time.showDay() + \"/\" + time.showMonth() + \"/\" + time.showYear();\r\n\r\n default:\r\n return \"error\";\r\n }\r\n }", "public Date date(Column column) {\r\n\t\treturn MappingUtils.parseDate(val(column));\r\n\t}", "java.lang.String getDate();", "public static Date converteStringInvertidaSemBarraAAMMDDParaDate(String data) {\r\n\t\tDate retorno = null;\r\n\r\n\t\tString dataInvertida = data.substring(4, 6) + \"/\" + data.substring(2, 4) + \"/20\" + data.substring(0, 2);\r\n\r\n\t\tSimpleDateFormat dataTxt = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\ttry {\r\n\t\t\tretorno = dataTxt.parse(dataInvertida);\r\n\t\t} catch (ParseException e) {\r\n\t\t\tthrow new IllegalArgumentException(data + \" não tem o formato dd/MM/yyyy.\");\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public String Get_date() \n {\n \n return date;\n }", "Date getDate();", "Date getDate();", "Date getDate();", "java.lang.String getFromDate();", "public String formatoCortoDeFecha(Date fecha){\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n return format.format(fecha);\n }", "private String getFecha() {\n\t\tLocalDateTime myDateObj = LocalDateTime.now();\n\t\tDateTimeFormatter myFormatObj = DateTimeFormatter.ofPattern(\"dd-MM-yyyy HH:mm:ss\");\n\t\tString formattedDate = myDateObj.format(myFormatObj);\n \n\t\treturn formattedDate;\n }", "public String convertDateToString(){\n\t\tString aDate = \"\";\n\t\taDate += Integer.toString(day);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(month);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(year);\n\t\treturn aDate;\n\t}", "public String getDateConvert() {\n SimpleDateFormat dateFormat1 = new SimpleDateFormat(\"MMM dd yyyy - hh:mm\");\n SimpleDateFormat dateFormat2 = new SimpleDateFormat(\"a\");\n String date = dateFormat1.format(this.timePost) + dateFormat2.format(this.timePost).toLowerCase();\n return date;\n }", "private String convertDateToCron(Date date) {\n if (date == null)\n return \"\";\n Calendar calendar = java.util.Calendar.getInstance();\n calendar.setTime(date);\n\n String hours = String.valueOf(calendar.get(Calendar.HOUR_OF_DAY));\n\n String mins = String.valueOf(calendar.get(Calendar.MINUTE));\n\n String days = String.valueOf(calendar.get(Calendar.DAY_OF_MONTH));\n\n String months = new java.text.SimpleDateFormat(\"MM\").format(calendar.getTime());\n\n String years = String.valueOf(calendar.get(Calendar.YEAR));\n\n return \"0 \" + mins+ \" \" + hours + \" \" + days + \" \" + months + \" ? \" + years;\n }", "public static String formartDate(String mDate) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"mm/dd/yyyy\");\n\t\t\t SimpleDateFormat outSDF = new SimpleDateFormat(\"yyyy-mm-dd\");\n\n\t\t\t \n\t\t\t String outDate = \"\";\n\t\t\t \n\t\t\t if (mDate != null) {\n\t\t\t try {\n\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t outDate = outSDF.format(date);\n\t\t\t \n\t\t\t \n\t\t\t } catch (Exception ex){ \n\t\t\t \tex.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t return outDate;\n\t\t}", "public static Date saisirDate() {\n Date result = null;\n\n System.out.println( \"Veuillez saisir l'attribut suivant : date_parution (aaaa-mm-jj)\" );\n String saisie = scanner.next();\n\n if ( !Pattern.matches( \"^[0-9]{4}(-[0-9]{2}){2}$\", saisie ) ) {\n System.err.println( \"Veuillez saisir une date au format 'aaaa-mm-jj' !\" );\n result = saisirDate();\n } else {\n try {\n result = Date.valueOf( saisie );\n } catch ( final IllegalArgumentException ex ) {\n System.err.println( \"Date incorrecte ! (\" + saisie + \")\" );\n result = saisirDate();\n }\n }\n\n return result;\n }", "public static Date convertirStringADateUtil(String s){\n\t\tFORMATO_FECHA.setLenient(false);\n\t\tDate fecha = null;\n\t\ttry {\n\t\t\tfecha = FORMATO_FECHA.parse(s);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn fecha;\n\t}", "private void setDate() {\n java.util.Date d1 = new java.util.Date();\n SimpleDateFormat df = new SimpleDateFormat(\"YYYY-MM-dd\");\n String formateDate = df.format(d1);\n lblDate.setText(formateDate); \n }", "public String getFecha(){\r\n return fechaInicial.get(Calendar.DAY_OF_MONTH)+\"/\"+(fechaInicial.get(Calendar.MONTH)+1)+\"/\"+fechaInicial.get(Calendar.YEAR);\r\n }", "public static Date converteStringInvertidaSemBarraAAAAMMDDParaDate(String data) {\r\n\t\tDate retorno = null;\r\n\r\n\t\tString dataInvertida = data.substring(6, 8) + \"/\" + data.substring(4, 6) + \"/\" + data.substring(0, 4);\r\n\r\n\t\tSimpleDateFormat dataTxt = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\ttry {\r\n\t\t\tretorno = dataTxt.parse(dataInvertida);\r\n\t\t} catch (ParseException e) {\r\n\t\t\tthrow new IllegalArgumentException(data + \" não tem o formato dd/MM/yyyy.\");\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "String getDate();", "String getDate();", "public abstract java.lang.String getFecha_inicio();", "public static String formartDateYOB(String mDate) {\n\t\t\t\t\n\t\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"dd/mm/yyyy\");\n\t\t\t\t SimpleDateFormat outSDF = new SimpleDateFormat(\"yyyy-mm-dd\");\n\n\t\t\t\t \n\t\t\t\t String outDate = \"\";\n\t\t\t\t \n\t\t\t\t if (mDate != null) {\n\t\t\t\t try {\n\t\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t\t outDate = outSDF.format(date);\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t } catch (Exception ex){ \n\t\t\t\t \tex.printStackTrace();\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t return outDate;\n\t\t\t}", "public static String dateConv(int date) {\n\t\tDate mills = new Date(date*1000L); \n\t\tString pattern = \"dd-MM-yyyy\";\n\t\tSimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n\t\tsimpleDateFormat.setTimeZone(TimeZone.getTimeZone(\"GMT+1\"));\n\t\tString formattedDate = simpleDateFormat.format(mills);\n\t\treturn formattedDate;\n\t}", "@TypeConverter\n public Date toDate(long l){\n return new Date(l);\n }", "public static Date fromOADate(double oaDate) {\n Date date = new Date();\n //long t = (long)((oaDate - 25569) * 24 * 3600 * 1000);\n //long t = (long) (oaDate * 1000000);\n long t = (long)BigDecimalUtil.mul(oaDate, 1000000);\n date.setTime(t);\n return date;\n }", "private String formatDate(Date dateObject) {\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"LLL dd, yyyy\");\r\n return dateFormat.format(dateObject);\r\n }", "public static Date toDate(Object obj) {\n return toDate(obj, (String) null, (TimeZone) null);\n }", "public static String formatterDate(Date date){\n\t\tString retour = null;\n\t\tif(date != null){\n\t\t\tretour = dfr.format(date);\n\t\t}\n\t\treturn retour;\n\t}", "Date getDateField();", "public String ConvertDate(){\r\n//\t\tDate date=JavaUtils.getSystemDate();\r\n//\t DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n\t String pattern = \"yyyy-MM-dd\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n\r\n\t String date = simpleDateFormat.format(new Date());\r\n//\t System.out.println(date);\r\n\t \r\n//\t String s = df.format(date);\r\n//\t String result = s;\r\n//\t try {\r\n//\t date=df.parse(result);\r\n//\t } catch (ParseException e) {\r\n//\t // TODO Auto-generated catch block\r\n//\t e.printStackTrace();\r\n//\t }\r\n\t return date;\r\n\t }", "public String getFechaSistema() {\n Date date = new Date();\n DateFormat formato = new SimpleDateFormat(\"dd/MM/yyyy\");\n //Aplicamos el formato al objeto Date y el resultado se\n //lo pasamos a la variable String\n fechaSistema = formato.format(date);\n \n return fechaSistema;\n }", "public String getFecha() {\n Calendar calendario = new GregorianCalendar();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(calendario.getTime());\n }", "private String formatDate(Date dateObject) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"LLL dd, yyyy\");\n return dateFormat.format(dateObject);\n }", "@TypeConverter\n public static Date toDate(String value) {\n if (value == null) return null;\n\n try {\n return df.parse(value);\n } catch (ParseException e) {\n e.printStackTrace();\n return null;\n }\n }", "public String getDateFormate() {\n return mDateFormat;\n }", "public void fechahoy(){\n Date fecha = new Date();\n \n Calendar c1 = Calendar.getInstance();\n Calendar c2 = new GregorianCalendar();\n \n String dia = Integer.toString(c1.get(Calendar.DATE));\n String mes = Integer.toString(c2.get(Calendar.MONTH));\n int mm = Integer.parseInt(mes);\n int nmes = mm +1;\n String memes = String.valueOf(nmes);\n if (nmes < 10) {\n memes = \"0\"+memes;\n }\n String anio = Integer.toString(c1.get(Calendar.YEAR));\n \n String fechoy = anio+\"-\"+memes+\"-\"+dia;\n \n txtFecha.setText(fechoy);\n \n }", "@Override\n public java.util.Date getFecha() {\n return _partido.getFecha();\n }", "public static final String getDate(Date aDate,String formate) {\r\n SimpleDateFormat df = null;\r\n String returnValue = \"\";\r\n\r\n if (aDate != null) {\r\n df = new SimpleDateFormat(formate);\r\n returnValue = df.format(aDate);\r\n }\r\n\r\n return (returnValue);\r\n }", "private String formatDate(Date dateObject) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"LLL dd, yyyy\", Locale.getDefault());\n return dateFormat.format(dateObject);\n }", "private Date convertirStringEnFecha(String dia, String hora)\n {\n String fecha = dia + \" \" + hora;\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy hh:mm\");\n Date fecha_conv = new Date();\n try\n {\n fecha_conv = format.parse(fecha);\n }catch (ParseException e)\n {\n Log.e(TAG, e.toString());\n }\n return fecha_conv;\n }", "public Date ToDate(String line){\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy/MM/dd\");\n try {\n Date d = sdf.parse(line);\n return d;\n } catch (ParseException ex) {\n\n Log.v(\"Exception\", ex.getLocalizedMessage());\n return null;\n }\n }", "public abstract java.lang.String getFecha_termino();", "public static String formartDateforGraph(String mDate) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\tSimpleDateFormat outSDF = new SimpleDateFormat(\"yyyy-MM-dd\");\n\n\t\t\t \n\t\t\t String outDate = \"\";\n\t\t\t \n\t\t\t if (mDate != null) {\n\t\t\t try {\n\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t outDate = outSDF.format(date);\n\t\t\t \n\t\t\t \n\t\t\t } catch (Exception ex){ \n\t\t\t \tex.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t return outDate;\n\t\t}", "private String formatDate (Date date) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"E, dd MMM yyyy HH:mm:ss\", Locale.ENGLISH);\n return sdf.format(date);\n }", "public String getFechatxt(Date d){\n \n try {\n String formato = selectorfecha.getDateFormatString();\n //Formato\n \n SimpleDateFormat sdf = new SimpleDateFormat(formato);\n String txtfechap = sdf.format(d);\n return txtfechap;\n } catch (NullPointerException ex) {\n JOptionPane.showMessageDialog(this, \"Al menos selecciona una fecha válida!\", \"Error!\", JOptionPane.INFORMATION_MESSAGE);\n return null;\n\n }\n\n\n \n }", "public Date(int d, int m, int a) {\n\t\tthis.dia = d;\n\t\tthis.mes = m;\n\t\tthis.ano = a;\n\t}", "public String getFormatedDate(Date date) {\r\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd/mm/yyyy\");\r\n\t\treturn sdf.format(date);\r\n\t}", "private static Date getFormattedDate(String date){\n\t\tString dateStr = null;\n\t\tif(date.length()<11){\n\t\t\tdateStr = date+\" 00:00:00.0\";\n\t\t}else{\n\t\t\tdateStr = date;\n\t\t}\n\t\tDate formattedDate = null;\n\t\ttry {\n\t\t\tformattedDate = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.S\").parse(dateStr);\n\t\t} catch (ParseException e) {\n\t\t\tCommonUtilities.createErrorLogFile(e);\n\t\t}\n\t\treturn formattedDate;\n\n\t}", "public final DateWithTypeDateFormat newDate() throws RIFCSException {\n return new DateWithTypeDateFormat(this.newElement(\n Constants.ELEMENT_DATE));\n }", "public Date getDataNascimentoToSQL() {\r\n\t\treturn new Date(dataNascimento.getTimeInMillis());\r\n\t}", "public E_Date(String value) throws ParseException {\n\t\tsuper(DATE_TIME.parse(value).toDate());\n\t}", "public String getDateCreationLibelle() {\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd/MM/yyyy hh:mm:ss\");\n\t\treturn this.dateCreation.format(format);\n\t}", "public static String formatarDataComTracoAAAAMMDD(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\t\t\tdataBD.append(\"-\");\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\t\t\tdataBD.append(\"-\");\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public Date getFecha_nacimiento() {\r\n\t\tDate result=null;\r\n\t\ttry {\r\n\t\t DateFormat df = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n\t\t \r\n\t\t\tresult = df.parse(calendario.getDia()+\"-\"+calendario.getMes()+\"-\"+calendario.getAno());\r\n\r\n\t\t} catch (ParseException e) {\r\n\t\t\tSystem.out.println(\"Fecha incorrecta\");\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\treturn result;\r\n\t}", "public void dataPadrao() {\n Calendar c = Calendar.getInstance();\n SimpleDateFormat s = new SimpleDateFormat(\"dd/MM/yyyy\");\n String dataAtual = s.format(c.getTime());\n c.add(c.MONTH, 1);\n String dataAtualMaisUm = s.format(c.getTime());\n dataInicial.setText(dataAtual);\n dataFinal.setText(dataAtualMaisUm);\n }", "private static String setDate() {\n mDate = new Date();\n DateFormat dateFormat = DateFormat.getDateInstance();\n String dateString = dateFormat.format(mDate);\n return dateString;\n }", "private String convertToMdy(String fechaDocumento)\n {\n String ahnio = fechaDocumento.substring(0, 4);\n String mes = fechaDocumento.substring(4, 6);\n String dia = fechaDocumento.substring(6, 8);\n \n return String.format( \"%s-%s-%s\", ahnio, mes, dia );\n }", "public static String convert( Date date )\r\n {\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat( \"yyyy-MM-dd\" );\r\n\r\n return simpleDateFormat.format( date );\r\n }", "public void makeValidDate() {\n\t\tdouble jd = swe_julday(this.year, this.month, this.day, this.hour, SE_GREG_CAL);\n\t\tIDate dt = swe_revjul(jd, SE_GREG_CAL);\n\t\tthis.year = dt.year;\n\t\tthis.month = dt.month;\n\t\tthis.day = dt.day;\n\t\tthis.hour = dt.hour;\n\t}", "@Override\r\n\t\t\t\tpublic String valueToString(Object value) throws ParseException {\n\t\t\t\t\tif(value != null) {\r\n\t\t\t\t\tCalendar cal=(Calendar) value;\r\n\t\t\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd-MMM-yyyy\");\r\n\t\t\t\t\tString strDate=format.format(cal.getTime());\r\n\t\t\t\t\treturn strDate;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn \" \";\r\n\t\t\t\t}", "public static Object changeDateFormat(String date)\r\n\t{\n\t\tString temp=\"\";\r\n\t\tint len = date.length();\r\n\t\tfor(int i=0;i<len;i++)\r\n\t\t{\r\n\t\t\tchar ch = date.charAt(i);\r\n\t\t\tif(ch == ',')\r\n\t\t\t{\r\n\t\t\t\ttemp = temp+'/';\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttemp = temp+ch;\r\n\t\t\t}\r\n\t\t}\r\n\t\tString n=\"\"+temp.charAt(3)+temp.charAt(4);\r\n\t\tint month=Integer.parseInt(n);\r\n\t\tString m=\"\";\r\n\t\tswitch(month)\r\n\t\t{\r\n\t\t\tcase 1:\r\n\t\t\t\tm=\"jan\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tm=\"feb\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\tm=\"mar\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 4:\r\n\t\t\t\tm=\"apr\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 5:\r\n\t\t\t\tm=\"may\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 6:\r\n\t\t\t\tm=\"jun\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 7:\r\n\t\t\t\tm=\"jul\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 8:\r\n\t\t\t\tm=\"aug\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 9:\r\n\t\t\t\tm=\"sep\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 10:\r\n\t\t\t\tm=\"oct\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 11:\r\n\t\t\t\tm=\"nov\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 12:\r\n\t\t\t\tm=\"dec\";\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"Enter a valid month\");\r\n\t\t\t}\r\n\t\t\tString s=(temp.substring(0, 3)+ m +temp.substring(5));\r\n\t\t\treturn s;\r\n\t\t}", "protected Date extractFormalizedDatetimeFromEntity(Member entity) {\r\n return convert(entity.getFormalizedDatetime(), Date.class);\r\n }", "public static String getFormatedDate(Date date, Locale locale) {\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd-nn-aaaa\"); \n \treturn formatter.format(date);\n }", "public String getFormatedDate() {\n DateFormat displayFormat = new SimpleDateFormat(\"EEEE', ' dd. MMMM yyyy\", Locale.GERMAN);\n return displayFormat.format(mEvent.getTime());\n }", "public int date2(int lmao) {\r\n switch (lmao) {\r\n case 1:\r\n return time.showDay2();\r\n\r\n case 2:\r\n return time.showMonth2();\r\n\r\n case 3:\r\n return time.showYear2();\r\n\r\n case 4:\r\n return time.showFullDay();\r\n\r\n default:\r\n return 0;\r\n }\r\n }", "public String GetDate(int semaine, int jour) {\n\t\tCalendar cal = Calendar.getInstance();\n\t\t\n\t\tcal.setWeekDate(2020, semaine, jour);\n\t\tjava.util.Date date = cal.getTime();\n\t\tString day = new SimpleDateFormat(\"dd\").format(date); \n\t\tString month = new SimpleDateFormat(\"MM\").format(date);\n\t\tString resultatString = new String();\n\t\tresultatString = (day + \"/\" +month);\n\t\treturn resultatString;\n\t}", "private static void formatDate(Date i) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yy\");\n\t\tformatter.setLenient(false);\n\t\tAnswer = formatter.format(i);\n\t}", "public static Date ParseFecha(String fecha)\n {\n //SimpleDateFormat formato = new SimpleDateFormat(\"dd-MM-yyyy\");\n SimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date fechaDate = null;\n try {\n if(!fecha.equals(\"0\")){\n fechaDate = formato.parse(fecha);\n }\n\n }\n catch (ParseException ex)\n {\n System.out.println(ex);\n }\n return fechaDate;\n }", "private java.sql.Date obtenerFechaEnSQL(JXDatePicker fecha) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(fecha.getDate());\n int year = cal.get(Calendar.YEAR) - 1900; //PORQUE PUTAS\n int month = cal.get(Calendar.MONTH);\n int day = cal.get(Calendar.DAY_OF_MONTH);\n java.sql.Date sqlDate;\n\n sqlDate = new java.sql.Date(year, month, day);\n return sqlDate;\n }", "public String getDate(){\n String d=\"\";\n String m=\"\";\n if(day<10){\n d=0+(String.valueOf(day));\n }\n else{\n d=String.valueOf(day);\n }\n\n if(month<10){\n m=0+(String.valueOf(month));\n }\n else{\n m=String.valueOf(month);\n }\n //returning day/month/year\n return (d+\"/\"+m+\"/\"+String.valueOf(year));\n }", "public static String formatarData(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH) + \"/\");\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH) + \"/\");\r\n\t\t\t}\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1 + \"/\");\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1) + \"/\");\r\n\t\t\t}\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public String DateFormatted(){\n\t\tSimpleDateFormat simDate = new SimpleDateFormat(\"E, dd/MM/yy hh:mm:ss a\");\n\t\treturn simDate.format(date.getTime());\n\t}", "private String formatDate(final Date date) {\r\n\t\tfinal Calendar calendar = Calendar.getInstance();\r\n\t\tcalendar.setTime(date);\r\n\r\n\t\tfinal String dayOfMonth = formatDayOfMonth(calendar);\r\n\t\tfinal String month = formatMonth(calendar);\r\n\t\tfinal String year = String.valueOf(calendar.get(Calendar.YEAR));\r\n\r\n\t\treturn String.format(\"%s/%s/%s\", year, month, dayOfMonth);\r\n\t}", "public String getDate()\n {\n return day + \"/\" + month + \"/\" + year;\n }", "public String getDate()\n {\n SimpleDateFormat newDateFormat = new SimpleDateFormat(\"EE d MMM yyyy\");\n String MySDate = newDateFormat.format(this.dueDate);\n return MySDate;\n }", "public static String formatterDateUS(Date date){\n\t\tString retour = null;\n\t\tif(date != null){\n\t\t\tretour = df.format(date);\n\t\t}\n\t\treturn retour;\n\t}", "private String formatDate(Date date) {\n String resultDate;\n SimpleDateFormat dateFormat;\n dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n resultDate = dateFormat.format(date);\n return resultDate;\n }", "public static String formatarDataAAAAMMDD(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "LocalDate getDate();" ]
[ "0.6580451", "0.6514836", "0.6418595", "0.6391166", "0.63517284", "0.63454217", "0.6278559", "0.624532", "0.6197472", "0.61383736", "0.61211896", "0.6094752", "0.60842913", "0.6076307", "0.6068773", "0.6067542", "0.6052943", "0.6023209", "0.6012588", "0.5981672", "0.5976068", "0.5952668", "0.59371746", "0.59230745", "0.58874404", "0.5880566", "0.5880566", "0.5880566", "0.58770126", "0.58725625", "0.58682", "0.5854083", "0.5843899", "0.58375007", "0.58228254", "0.580958", "0.5802002", "0.57834834", "0.5781794", "0.577948", "0.57786274", "0.57786274", "0.57764804", "0.57734156", "0.57727164", "0.5770393", "0.5766059", "0.57566327", "0.57563376", "0.5756318", "0.5742376", "0.57395643", "0.57322615", "0.572651", "0.5719259", "0.57190454", "0.5712212", "0.5704696", "0.5693406", "0.56921005", "0.56877744", "0.5683469", "0.56741214", "0.5673037", "0.56703115", "0.56547415", "0.56540716", "0.5637993", "0.5634993", "0.56275845", "0.5624658", "0.5618353", "0.5613468", "0.56131357", "0.560694", "0.5606558", "0.5601102", "0.5599588", "0.55955523", "0.55943584", "0.5592159", "0.5591909", "0.5584375", "0.55788726", "0.5575239", "0.5560487", "0.5546375", "0.55423665", "0.554142", "0.5538786", "0.5532934", "0.55323553", "0.5532015", "0.5528686", "0.55284953", "0.5522524", "0.5512791", "0.55124164", "0.55046564", "0.55034864", "0.5502026" ]
0.0
-1
Retorna data com a hora 00:00:00
public static Date getData(Date data) { Calendar calendar = Calendar.getInstance(); calendar.setTime(data); calendar.set(Calendar.HOUR_OF_DAY, 0); calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.SECOND, 0); calendar.set(Calendar.MILLISECOND, 0); return calendar.getTime(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getHoraInicial(){\r\n return fechaInicial.get(Calendar.HOUR_OF_DAY)+\":\"+fechaInicial.get(Calendar.MINUTE);\r\n }", "public String dar_hora(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n return dateFormat.format(date).toString();\n }", "public String getHora() {\n Calendar calendario = new GregorianCalendar();\n SimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n return sdf.format(calendario.getTime());\n }", "public LocalTime getHora() {\n\t\treturn hora;\n\t}", "public int getHora(){\n return minutosStamina;\n }", "@RequiresApi(api = Build.VERSION_CODES.O)\n public String obtenerHora(){\n this.hora = java.time.LocalDateTime.now().toString().substring(11,13);\n return this.hora;\n }", "public String[] getHora()\r\n\t{\r\n\t\treturn this.reloj.getFormatTime();\r\n\t}", "public abstract java.sql.Timestamp getFecha_ingreso();", "public String retornaHora(){\n\t\tCalendar calendar = new GregorianCalendar();\n\t\tSimpleDateFormat hora = new SimpleDateFormat(\"HH\");\n\t\tSimpleDateFormat minuto = new SimpleDateFormat(\"mm\");\n\t\tDate date = new Date();\n\t\tcalendar.setTime(date);\n\t\treturn hora.format(calendar.getTime()) + \"h\" + minuto.format(calendar.getTime());\n\t}", "long getRetrievedTime();", "public String getHoraFinal(){\r\n return fechaFinal.get(Calendar.HOUR_OF_DAY)+\":\"+fechaFinal.get(Calendar.MINUTE);\r\n }", "private Calendar modificarHoraReserva(Date horaInicio, int hora) {\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(horaInicio);\n calendar.set(Calendar.HOUR, hora);\n calendar.set(Calendar.MINUTE, 0);\n calendar.set(Calendar.MINUTE, 0);\n return calendar;\n }", "public void mostrarHora(String formato){\n Date objDate = new Date();\n SimpleDateFormat objSDF = new SimpleDateFormat(formato);\n //este sera el resultado de la fechas\n fecha=objSDF.format(objDate);\n }", "public java.sql.ResultSet consultaporhora(String hora){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where phm.horas='\"+hora+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporhora \"+ex);\r\n }\t\r\n return rs;\r\n }", "public int actualizarTiempo(int empresa_id,int idtramite, int usuario_id) throws ParseException {\r\n\t\tint update = 0;\r\n\t\t\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat formateador = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n\t\tString timeNow = formateador.format(date);\r\n\t\tSimpleDateFormat formateador2 = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tString fecha = formateador2.format(date);\r\n\t\tSimpleDateFormat formateador3 = new SimpleDateFormat(\"hh:mm:ss\");\r\n\t\tString hora = formateador3.format(date);\r\n\t\tSystem.out.println(timeNow +\" \"+ fecha+\" \"+hora );\r\n\t\t\r\n\t\t List<Map<String, Object>> rows = listatks(empresa_id, idtramite);\t\r\n\t\t System.out.println(rows);\r\n\t\t if(rows.size() > 0 ) {\r\n\t\t\t String timeCreate = rows.get(0).get(\"TIMECREATE_HEAD\").toString();\r\n\t\t\t System.out.println(\" timeCreate \" +timeCreate+\" timeNow: \"+ timeNow );\r\n\t\t\t Date fechaInicio = formateador.parse(timeCreate); // Date\r\n\t\t\t Date fechaFinalizo = formateador.parse(timeNow); //Date\r\n\t\t\t long horasFechas =(long)((fechaInicio.getTime()- fechaFinalizo.getTime())/3600000);\r\n\t\t\t System.out.println(\" horasFechas \"+ horasFechas);\r\n\t\t\t long diferenciaMils = fechaFinalizo.getTime() - fechaInicio.getTime();\r\n\t\t\t //obtenemos los segundos\r\n\t\t\t long segundos = diferenciaMils / 1000;\t\t\t \r\n\t\t\t //obtenemos las horas\r\n\t\t\t long horas = segundos / 3600;\t\t\t \r\n\t\t\t //restamos las horas para continuar con minutos\r\n\t\t\t segundos -= horas*3600;\t\t\t \r\n\t\t\t //igual que el paso anterior\r\n\t\t\t long minutos = segundos /60;\r\n\t\t\t segundos -= minutos*60;\t\t\t \r\n\t\t\t System.out.println(\" horas \"+ horas +\" min\"+ minutos+ \" seg \"+ segundos );\r\n\t\t\t double tiempoTotal = Double.parseDouble(horas+\".\"+minutos);\r\n\t\t\t // actualizar cabecera \r\n\t\t\t updateHeaderOut( idtramite, fecha, hora, tiempoTotal, usuario_id);\r\n\t\t\t for (Map<?, ?> row : rows) {\r\n\t\t\t\t Map<String, Object> mapa = new HashMap<String, Object>();\r\n\t\t\t\tint idd = Integer.parseInt(row.get(\"IDD\").toString());\r\n\t\t\t\tint idtramite_d = Integer.parseInt(row.get(\"IDTRAMITE\").toString());\r\n\t\t\t\tint cantidaMaletas = Integer.parseInt(row.get(\"CANTIDAD\").toString());\r\n\t\t\t\tdouble precio = Double.parseDouble(row.get(\"PRECIO\").toString());\t\t\t\t\r\n\t\t\t\tdouble subtotal = subtotal(precio, tiempoTotal, cantidaMaletas);\r\n\t\t\t\tString tipoDescuento = \"\";\r\n\t\t\t\tdouble porcDescuento = 0;\r\n\t\t\t\tdouble descuento = descuento(subtotal, porcDescuento);\r\n\t\t\t\tdouble precioNeto = precioNeto(subtotal, descuento);\r\n\t\t\t\tdouble iva = 0;\r\n\t\t\t\tdouble montoIVA = montoIVA(precioNeto, iva);\r\n\t\t\t\tdouble precioFinal = precioFinal(precioNeto, montoIVA);\r\n\t\t\t\t//actualizar detalle\r\n\t\t\t\tupdateBodyOut( idd, idtramite_d, tiempoTotal , subtotal, tipoDescuento, porcDescuento, descuento, precioNeto, iva, montoIVA, precioFinal );\r\n\t\t\t }\r\n\t\t\t \r\n\t\t }\r\n\t\treturn update;\r\n\t}", "public java.sql.Timestamp getFecha_envio();", "DateTime getTime();", "private Date getSamoaNow() {\n\t\t// Get the current datetime in UTC\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.setTime(new Date());\n\t\t\n\t\t// Get the datetime minus 11 hours (Samoa is UTC-11)\n\t\tcalendar.add(Calendar.HOUR_OF_DAY, -11);\n\t\t\n\t\treturn calendar.getTime();\n\t}", "public java.lang.String getLocalizaHoraHasta() {\n\t\treturn localizaHoraHasta;\n\t}", "public void setHora(LocalTime hora) {\n\t\tthis.hora = hora;\n\t}", "public java.sql.Timestamp getDia_especifico();", "public void hora()\n {\n horaTotal = HoraSalida - HoraLlegada;\n\n }", "public java.sql.ResultSet consultaporhorafecha(String hora,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where phm.horas='\"+hora+\"' and phm.fechas='\"+fecha+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporhorafecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public HiResDate getTime();", "public void setHoraCompra() {\n LocalTime hora=LocalTime.now();\n this.horaCompra = hora;\n }", "public Timestamp getFechaInicio() {\n return fechaInicio;\n }", "BigInteger getResponse_time();", "public static Date ahora() {\n return ahoraCalendar().getTime();\n }", "double getFullTime();", "public Timestamp getFechaEntrega() {\n return this.fechaEntrega.get();\n }", "public int getFechaYHora() {\r\n return fechaYHora;\r\n }", "private Date getDataInizio() {\n return (Date)this.getCampo(DialogoStatistiche.nomeDataIni).getValore();\n }", "T getEventTime();", "public long getEventTime();", "Date getLastTime();", "default LocalDateTime getLocalTime(int hour, int minute) {\n return getLocalTime(2017, 1, 31, hour, minute);\n }", "public java.sql.Timestamp getFecha();", "int getTime();", "int getTime();", "public static Calendar getFechaHoy(){\n\n Calendar cal = new GregorianCalendar();\n cal.set(Calendar.HOUR_OF_DAY,0);\n cal.set(Calendar.MINUTE, 0);\n cal.set(Calendar.SECOND, 0);\n cal.set(Calendar.MILLISECOND, 0);\n\n return cal;\n }", "public abstract java.sql.Timestamp getFecha_fin();", "public void consultaTest() throws Exception{\n\t\t\n\t ResultSet rs = statement.executeQuery(\"select * from statistics\");\n\t \n\t \n\t while(rs.next())\n\t {\n\t\t \n\t\t DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss.SSS\");\n\t\t Date date = df.parse(rs.getString(\"timeActual\"));\n\t\t Calendar cal = Calendar.getInstance();\n\t\t cal.setTime(date);\n\t\t \n\t\t String completoDay = cal.get(Calendar.YEAR)+\"-\"+(cal.get(Calendar.MONTH) + 1)+\"-\"+ cal.get(Calendar.DAY_OF_MONTH);\n\t\t \n\t System.out.println(\"id= \" + rs.getInt(\"id\") + \" memory= \" + rs.getInt(\"memory\") + \" cpu= \" \n\t \t+ rs.getInt(\"cpu\") + \" timeActual= \" + completoDay);\n\t }\n\t \n\t if(rs != null)\n\t\t rs.close();\n\t \n\t if(connection != null)\n\t connection.close();\n\t \n\t}", "public Timestamp getFechaReserva() {\n return this.fechaReserva.get();\n }", "public static Date formatarDataInicial(Date dataInicial) {\r\n\t\tCalendar calendario = GregorianCalendar.getInstance();\r\n\t\tcalendario.setTime(dataInicial);\r\n\t\tcalendario.set(Calendar.HOUR_OF_DAY, 0);\r\n\t\tcalendario.set(Calendar.MINUTE, 0);\r\n\t\tcalendario.set(Calendar.SECOND, 0);\r\n\t\treturn calendario.getTime();\r\n\t}", "private Timestamp GetDate(String email, PrintWriter out){\n Timestamp date = null;\n //select che ritorna data creazione link\n DBConnect db = new DBConnect(ip);\n try {\n PreparedStatement ps = db.conn.prepareStatement(\"SELECT countdown FROM users WHERE email = ?\");\n ps.setString(1, email);\n ResultSet rs = db.Query(ps);\n rs.next();\n \n String datevalue = rs.getString(\"countdown\");\n date = Timestamp.valueOf(datevalue);\n } catch (SQLException e) {\n }\n db.DBClose();\n return date;\n }", "public static void main(String[] args) throws Exception {\n Calendar cal = Calendar.getInstance();\n SimpleDateFormat simpleformat = new SimpleDateFormat(\"E, dd MMM yyyy HH:mm:ss Z\");\n System.out.println(\"Today's date and time = \"+simpleformat.format(cal.getTime()));\n // displaying date\n simpleformat = new SimpleDateFormat(\"dd/MMMM/yyyy\");\n String str = simpleformat.format(new Date());\n System.out.println(\"Current Date = \"+str);\n // current time\n simpleformat = new SimpleDateFormat(\"HH:mm:ss\");\n String strTime = simpleformat.format(new Date());\n System.out.println(\"Current Time = \"+strTime);\n // displaying hour in HH format\n simpleformat = new SimpleDateFormat(\"HH\");\n String strHour = simpleformat.format(new Date());\n System.out.println(\"Hour in HH format = \"+strHour);\n\n\n\n //formato ideal\n simpleformat = new SimpleDateFormat(\"dd/MM/yyyy - HH:mm:ss\");\n String strTimeDay = simpleformat.format(new Date());\n System.out.println(\"Dia e Hora = \" + strTimeDay);\n\n }", "public long getTime(InetAddress host) throws IOException {\n\t\treturn getTime(host, DEFAULT_PORT);\n\t}", "int getCreateTime();", "public ZonedDateTime getTime() {\n return time.withZoneSameInstant(ZoneOffset.UTC);\n }", "public Timestamp getDeCriacao() {\n return dataDeCriacao;\n }", "public static Date getDateNowSingl(){\n\t\tconfigDefaultsTimeZoneAndLocale();\r\n\t\t\r\n\t\t// o time millis é sempre GMT 0, a transformação fica por conta do Date\r\n\t\treturn new Date(System.currentTimeMillis()+getPropDefaultForAll(TIME_CORRECTION));\r\n\t}", "public JLabel getDataHora() {\n return dataHora;\n }", "public Date getAtTime() {\r\n return atTime;\r\n }", "private void inicializarFechaHora(){\n Calendar c = Calendar.getInstance();\r\n year1 = c.get(Calendar.YEAR);\r\n month1 = (c.get(Calendar.MONTH)+1);\r\n String mes1 = month1 < 10 ? \"0\"+month1 : \"\" +month1;\r\n String dia1 = \"01\";\r\n\r\n String date1 = \"\"+dia1+\"/\"+mes1+\"/\"+year1;\r\n txt_fecha_desde.setText(date1);\r\n\r\n\r\n day2 = c.getActualMaximum(Calendar.DAY_OF_MONTH) ;\r\n String date2 = \"\"+day2+\"/\"+mes1+\"/\"+ year1;\r\n\r\n Log.e(TAG,\"date2: \" + date2 );\r\n txt_fecha_hasta.setText(date2);\r\n\r\n }", "public static void main(String[] args) throws ParseException {\n LocalDate dataAtual = LocalDate.now(); //temos a data atual aqui\n\n System.out.println(\"Data Atual: \" + dataAtual);\n\n LocalTime horaAtual = LocalTime.now(); //hora de agora\n\n System.out.println(\"Hora atual: \" + horaAtual.format(DateTimeFormatter.ofPattern(\"HH:mm:ss\")));\n\n LocalDateTime dataAutalHoraAtual = LocalDateTime.now();\n\n System.out.println(\"Hora e data atual: \" + dataAutalHoraAtual.format(DateTimeFormatter.ofPattern(\"dd/MM/yyyy HH:mm\")));\n }", "protected Date getCurrentDateAndTime() {\n\t\tDate date = new Date();\n\t\tDate updatedDate = new Date((date.getTime() + (1000 * 60 * 60 * 24)));//(1000 * 60 * 60 * 24)=24 hrs. **** 120060 = 2 mins\n\t\treturn updatedDate;\n\t}", "private LocalDateTime getStartHour() {\n\t\treturn MoneroHourly.toLocalDateTime(startTimestamp);\r\n\t}", "public void calcularCost() {\r\n cost = 0;\r\n int a = 0;\r\n try {\r\n String r = DataR.toString()+ \" \" + horaR;\r\n String d = DataD.toString()+ \" \" + horaD;\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\r\n Date dateR = simpleDateFormat.parse(r);\r\n Date dateD = simpleDateFormat.parse(d);\r\n a = (int) ((dateD.getTime() - dateR.getTime())/(1000*3600));\r\n \r\n \r\n } catch (ParseException ex) {\r\n Logger.getLogger(Reserva.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if(a > 24) {\r\n cost += 15*(a/(24));\r\n a -= (((int)(a/24))*24);\r\n }\r\n if(a%3600 == 0) {\r\n cost += 1;\r\n }\r\n if(a%3600 > 0) {\r\n cost += 1;\r\n }\r\n \r\n }", "public void setFechaInicio(Timestamp fechaInicio) {\n this.fechaInicio = fechaInicio;\n }", "public int getTime() { return _time; }", "private String getTimingt(Long pastvalue) {\n DateTime zulu = DateTime.now(DateTimeZone.UTC);\n // DateTimeFormatter formatter = DateTimeFormat.forPattern(\"HH:mm:ss am\");\n Date date = new Date(pastvalue);\n// formattter\n SimpleDateFormat formatter= new SimpleDateFormat(\"hh:mm a\");\n formatter.setTimeZone(TimeZone.getDefault());\n// Pass date object\n return formatter.format(date );\n /*\n long mint = TimeUnit.MILLISECONDS.toMinutes(zulu.toInstant().getMillis() - pastvalue);\n\n if (mint < 60) {\n if (mint > 1)\n return \"Hace \" + mint + \" minutos\";\n else\n return \"Hace \" + mint + \" minuto\";\n } else {\n long horas = TimeUnit.MILLISECONDS.toHours(zulu.toDate().getTime() - pastvalue);\n\n if (horas < 24) {\n if (horas > 1)\n return \"Hace \" + horas + \" horas\";\n else\n return \"Hace \" + horas + \" hora\";\n } else {\n long dias = TimeUnit.MILLISECONDS.toDays(zulu.toDate().getTime() - pastvalue);\n\n if (dias > 1) {\n return \"Hace \" + dias + \" dias\";\n } else\n return \"Hace \" + dias + \" dia\";\n }\n\n\n }*/\n }", "long getCreateTime();", "long getCreateTime();", "public static LocalDateTime hawaiiLocalTimeDateNow() {\n return TimeService.hawaiiLocalTimeDateNow();\n }", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "double getClientTime();", "public Date getSOHTimestamp() {\r\n/* 265 */ return this._SOHTimestamp;\r\n/* */ }", "int getTimestamp();", "public java.sql.ResultSet consultaporespecialidadhora(String CodigoEspecialidad,String hora){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.horas='\"+hora+\"' and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidadhora \"+ex);\r\n }\t\r\n return rs;\r\n }", "private String getDate()\r\n\t{\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\r\n\t\treturn sdf.format(cal.getTime());\r\n\t}", "private void updateTimeEntryData()\n throws RedmineException\n {\n if (System.currentTimeMillis() > (timeEntriesUpdateTimeStamp+Settings.cacheExpireTime*1000))\n {\n synchronized(timeEntries)\n {\n // get total number of time entries\n int timeEntryCount = getDataLength(\"/time_entries\",\"time_entry\");\n for (int i = timeEntries.size(); i < timeEntryCount; i++)\n {\n timeEntries.add(TIME_ENTRY_NULL);\n }\n\n // get date of first time entry (Note: always sorted descending and cannot be changed)\n timeEntryStartDate = new Date();\n getData(\"/time_entries\",\"time_entry\",timeEntryCount-1,1,new ParseElementHandler<TimeEntry>()\n {\n public void data(Element element)\n {\n timeEntryStartDate = getDateValue(element,\"spent_on\");\n//Dprintf.dprintf(\"timeEntryStartDate=%s\",timeEntryStartDate);\n }\n });\n\n timeEntriesUpdateTimeStamp = System.currentTimeMillis();\n }\n }\n }", "@Test\n public void testDateTimeType() throws Exception {\n if(util.isHiveCatalogStoreRunning()) return;\n\n ResultSet res = null;\n TajoClient client = util.newTajoClient();\n try {\n String tableName = \"datetimetable\";\n String query = \"select col1, col2, col3 from \" + tableName;\n\n String [] table = new String[] {tableName};\n Schema schema = new Schema();\n schema.addColumn(\"col1\", Type.DATE);\n schema.addColumn(\"col2\", Type.TIME);\n schema.addColumn(\"col3\", Type.TIMESTAMP);\n Schema [] schemas = new Schema[] {schema};\n String [] data = {\n \"2014-01-01|01:00:00|2014-01-01 01:00:00\"\n };\n KeyValueSet tableOptions = new KeyValueSet();\n tableOptions.set(StorageConstants.TEXT_DELIMITER, StorageConstants.DEFAULT_FIELD_DELIMITER);\n\n res = TajoTestingCluster\n .run(table, schemas, tableOptions, new String[][]{data}, query, client);\n\n assertTrue(res.next());\n\n Date date = res.getDate(1);\n assertNotNull(date);\n assertEquals(Date.valueOf(\"2014-01-01\"), date);\n\n date = res.getDate(\"col1\");\n assertNotNull(date);\n assertEquals(Date.valueOf(\"2014-01-01\"), date);\n\n Time time = res.getTime(2);\n assertNotNull(time);\n assertEquals(Time.valueOf(\"01:00:00\"), time);\n\n time = res.getTime(\"col2\");\n assertNotNull(time);\n assertEquals(Time.valueOf(\"01:00:00\"), time);\n\n Timestamp timestamp = res.getTimestamp(3);\n assertNotNull(timestamp);\n assertEquals(Timestamp.valueOf(\"2014-01-01 01:00:00\"), timestamp);\n\n timestamp = res.getTimestamp(\"col3\");\n assertNotNull(timestamp);\n assertEquals(Timestamp.valueOf(\"2014-01-01 01:00:00\"), timestamp);\n\n // assert with timezone\n Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(\"GMT+9\"));\n date = res.getDate(1, cal);\n assertNotNull(date);\n assertEquals(\"2014-01-01\", date.toString());\n\n date = res.getDate(\"col1\", cal);\n assertNotNull(date);\n assertEquals(\"2014-01-01\", date.toString());\n\n time = res.getTime(2, cal);\n assertNotNull(time);\n assertEquals(\"10:00:00\", time.toString());\n\n time = res.getTime(\"col2\", cal);\n assertNotNull(time);\n assertEquals(\"10:00:00\", time.toString());\n\n timestamp = res.getTimestamp(3, cal);\n assertNotNull(timestamp);\n assertEquals(\"2014-01-01 10:00:00.0\", timestamp.toString());\n\n timestamp = res.getTimestamp(\"col3\", cal);\n assertNotNull(timestamp);\n assertEquals(\"2014-01-01 10:00:00.0\", timestamp.toString());\n } finally {\n if (res != null) {\n res.close();\n }\n\n client.close();\n }\n }", "private Date getDataFine() {\n return (Date)this.getCampo(DialogoStatistiche.nomeDataFine).getValore();\n }", "public Timestamp getHC_WorkStartDate2();", "private synchronized Date getDataInicioValidade(int idPromocao)\n\t{\n\t\tHashMap promocao = null;\n\t\t\n\t\tfor(int i = 0; i < listaPromocoes.size(); i++)\n\t\t{\n\t\t\tpromocao = (HashMap)listaPromocoes.get(i);\n\t\t\tif (((Integer)promocao.get(\"IDT_PROMOCAO\")).intValue() == idPromocao)\n\t\t\t{\n\t\t\t\treturn (Date)promocao.get(\"DAT_INICIO_VALIDADE\");\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "long getInhabitedTime();", "private String getDate() {\n\t\tSimpleDateFormat parseFormat = new SimpleDateFormat(\"hh:mm a\");\n\t\tDate date = new Date();\n\t\tString s = parseFormat.format(date);\n\t\treturn s;\n\t}", "private void getTiempo() {\n\t\ttry {\n\t\t\tStringBuilder url = new StringBuilder(URL_TIME);\n\t\t\tHttpGet get = new HttpGet(url.toString());\n\t\t\tHttpResponse r = client.execute(get);\n\t\t\tint status = r.getStatusLine().getStatusCode();\n\t\t\tif (status == 200) {\n\t\t\t\tHttpEntity e = r.getEntity();\n\t\t\t\tInputStream webs = e.getContent();\n\t\t\t\ttry {\n\t\t\t\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\t\t\t\tnew InputStreamReader(webs, \"iso-8859-1\"), 8);\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\tString line = null;\n\t\t\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\t\t\tsb.append(line + \"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\twebs.close();\n\t\t\t\t\tSuperTiempo = sb.toString();\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\tLog.e(\"log_tag\",\n\t\t\t\t\t\t\t\"Error convirtiendo el resultado\" + e1.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static Date fechaInicial(Date hoy) {\n\t\thoy=(hoy==null?new Date():hoy);\n\t\tLong fechaCombinada = configuracion().getFechaCombinada();\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.setTime(hoy);\n\t\tif (fechaCombinada == 1l) {\n\t\t\tcalendar.set(Calendar.DAY_OF_MONTH, calendar.get(Calendar.DAY_OF_MONTH) - 1);\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, 14);\n\t\t\tcalendar.set(Calendar.MINUTE, 0);\n\t\t\tcalendar.set(Calendar.SECOND, 0);\n\t\t} else {\n\t\t\tString fhoyIni = df.format(hoy);\n\t\t\ttry {\n\t\t\t\thoy = df.parse(fhoyIni);\n\t\t\t} catch (ParseException e) {\n\t\t\t\tlog.error(\"Error en fecha inicial\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, 0);\n\t\t\tcalendar.set(Calendar.MINUTE, 0);\n\t\t\tcalendar.set(Calendar.SECOND, 0);\n\t\t}\n\t\thoy = calendar.getTime();\n\t\treturn hoy;\n\t}", "public Date getDate(InetAddress host) throws IOException {\n\t\treturn new Date((getTime(host, DEFAULT_PORT) - SECONDS_1900_TO_1970) * 1000L);\n\t}", "Date getTimestamp();", "private void gettimes() {\n\t\tCursor c=mydb.rawQuery(\"SELECT * FROM timedata \", null);\n\t\t System.out.println(\" $$$$$$$$$$$$$$$$$$$$$$$ fetchdata after retriving completed @@@@@@@@@@@@@@@@@@@@@\");\n\t\t c.moveToFirst();\n\t\t \n\t\t if(c!=null)\n\t\t {\n\t\t\t do{\n\t\t\t\t \n\t\t\t\t int c1=c.getColumnIndex(\"fromtime\");\n\t\t\t\t if(c.getCount()>0)\n\t\t\t\t dfromtime=c.getString(c1);\n\t\t\t\t System.out.println(\" $$$$$$$$$$$$$$$$$$$$$$$ fetchdata \"+dfromtime);\n\t\t\t\t int c2=c.getColumnIndex(\"totime\");\n\t\t\t\t dtotime=c.getString(c2);\n\t\t\t\t \n\t\t\t }while(c.moveToNext());\n\t\t\t c.close();\n\t\t\t mydb.close();\n\t\t }\n\t}", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "@Override\n public void returnData(int hour, int min, int index) {\n switch (index) {\n case 1:\n mTimer1hour = hour;\n mTimer1min = min;\n\n //send data\n sendTimeData(1,true);\n break;\n case 2:\n mTimer2hour = hour;\n mTimer2min = min;\n\n //send data\n sendTimeData(2,true);\n break;\n }\n }", "public static String formatarHoraSemSegundos(Date data) {\r\n\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\tif (data != null) {\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tif (dataCalendar.get(Calendar.HOUR_OF_DAY) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.HOUR_OF_DAY));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.HOUR_OF_DAY));\r\n\t\t\t}\r\n\r\n\t\t\tdataBD.append(\":\");\r\n\r\n\t\t\tif (dataCalendar.get(Calendar.MINUTE) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MINUTE));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.MINUTE));\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn dataBD.toString();\r\n\t}", "public Date getReminderTimeByID(long id){\n return reminderDao.queryBuilder().where(ReminderDao.Properties.Id.eq(id)).unique().getReminderTime();\n }", "public Date getFechaSistema() {\n\t\tfechaSistema = new Date();\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.setTime(fechaSistema);\n\t\tcalendar.add(Calendar.HOUR, (-3));\n\t\tfechaSistema = calendar.getTime();\n\t\treturn fechaSistema;\n\t}", "UtcT time_stamp () throws BaseException;", "public String getCurrentTimeHourMinSec() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}" ]
[ "0.6838655", "0.68248105", "0.6480662", "0.63111573", "0.62579274", "0.6256307", "0.6006114", "0.5937573", "0.592316", "0.58845323", "0.586755", "0.58619654", "0.58494234", "0.58049953", "0.57953554", "0.574941", "0.5721496", "0.571663", "0.5702003", "0.56641865", "0.56595474", "0.56105244", "0.56045103", "0.5596015", "0.5568989", "0.55673313", "0.55649674", "0.55107546", "0.550564", "0.5504582", "0.5502157", "0.55012023", "0.54975086", "0.5492256", "0.54857695", "0.54786867", "0.5474839", "0.54741746", "0.54741746", "0.545192", "0.5445425", "0.5436", "0.5408655", "0.53870314", "0.5380273", "0.5375895", "0.53721046", "0.5368788", "0.5355968", "0.53533375", "0.5340892", "0.5335289", "0.5333875", "0.5330893", "0.5322214", "0.531472", "0.531316", "0.53094065", "0.5294627", "0.52849907", "0.5265942", "0.5253202", "0.5253202", "0.5248769", "0.5232091", "0.5232091", "0.5232091", "0.5232091", "0.5232091", "0.5232091", "0.5232091", "0.5232091", "0.5232091", "0.5232091", "0.5232091", "0.5232091", "0.5230883", "0.5230209", "0.5227957", "0.5217709", "0.52157265", "0.52141374", "0.5213944", "0.5209225", "0.5201227", "0.51928854", "0.5191019", "0.51888317", "0.5188579", "0.5175894", "0.5172913", "0.517123", "0.51709914", "0.516832", "0.5167117", "0.51627046", "0.5159851", "0.51538056", "0.5153615", "0.5153041" ]
0.5673022
19
considerase erro CNPJ's formados por uma sequencia de numeros iguais
public static boolean isCNPJ(String CNPJ) { if (CNPJ.equals("00000000000000") || CNPJ.equals("11111111111111") || CNPJ.equals("22222222222222") || CNPJ.equals("33333333333333") || CNPJ.equals("44444444444444") || CNPJ.equals("55555555555555") || CNPJ.equals("66666666666666") || CNPJ.equals("77777777777777") || CNPJ.equals("88888888888888") || CNPJ.equals("99999999999999") || (CNPJ.length() != 14)) return (false); char dig13, dig14; int sm, i, r, num, peso; try { // Calculo do 1o. Digito Verificador sm = 0; peso = 2; for (i = 11; i >= 0; i--) { // converte o i-ésimo caractere do CNPJ em um número: // por exemplo, transforma o caractere '0' no inteiro 0 // (48 eh a posição de '0' na tabela ASCII) num = (int) (CNPJ.charAt(i) - 48); sm = sm + (num * peso); peso = peso + 1; if (peso == 10) peso = 2; } r = sm % 11; if ((r == 0) || (r == 1)) dig13 = '0'; else dig13 = (char) ((11 - r) + 48); // Calculo do 2o. Digito Verificador sm = 0; peso = 2; for (i = 12; i >= 0; i--) { num = (int) (CNPJ.charAt(i) - 48); sm = sm + (num * peso); peso = peso + 1; if (peso == 10) peso = 2; } r = sm % 11; if ((r == 0) || (r == 1)) dig14 = '0'; else dig14 = (char) ((11 - r) + 48); // Verifica se os dígitos calculados conferem com os dígitos // informados. if ((dig13 == CNPJ.charAt(12)) && (dig14 == CNPJ.charAt(13))) return (true); else return (false); } catch (Exception erro) { return (false); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean validaCnpj(String cnpj){\n if (cnpj.equals(\"00000000000000\") || cnpj.equals(\"11111111111111\") || cnpj.equals(\"22222222222222\")\n || cnpj.equals(\"33333333333333\") || cnpj.equals(\"44444444444444\") || cnpj.equals(\"55555555555555\")\n || cnpj.equals(\"66666666666666\") || cnpj.equals(\"77777777777777\") || cnpj.equals(\"88888888888888\")\n || cnpj.equals(\"99999999999999\") || (cnpj.length() != 14))\n return (false);\n\n char dig13, dig14;\n int sm, i, r, num, peso;\n\n // \"try\" - protege o código para eventuais erros de conversao de tipo (int)\n try {\n // Calculo do 1o. Digito Verificador\n sm = 0;\n peso = 2;\n for (i = 11; i >= 0; i--) {\n // converte o i-ésimo caractere do CNPJ em um número:\n // por exemplo, transforma o caractere '0' no inteiro 0\n // (48 eh a posição de '0' na tabela ASCII)\n num = (int) (cnpj.charAt(i) - 48);\n sm = sm + (num * peso);\n peso = peso + 1;\n if (peso == 10)\n peso = 2;\n }\n\n r = sm % 11;\n if ((r == 0) || (r == 1))\n dig13 = '0';\n else\n dig13 = (char) ((11 - r) + 48);\n\n // Calculo do 2o. Digito Verificador\n sm = 0;\n peso = 2;\n for (i = 12; i >= 0; i--) {\n num = (int) (cnpj.charAt(i) - 48);\n sm = sm + (num * peso);\n peso = peso + 1;\n if (peso == 10)\n peso = 2;\n }\n\n r = sm % 11;\n if ((r == 0) || (r == 1))\n dig14 = '0';\n else\n dig14 = (char) ((11 - r) + 48);\n\n // Verifica se os dígitos calculados conferem com os dígitos informados.\n if ((dig13 == cnpj.charAt(12)) && (dig14 == cnpj.charAt(13)))\n return (true);\n else\n return (false);\n } catch (InputMismatchException erro) {\n return (false);\n }\n }", "private void obtieneError(int error) throws Excepciones{\n String[] err = {\n \"ERROR DE SYNTAXIS\",\n \"PARENTESIS NO BALANCEADOS\",\n \"NO EXISTE EXPRESION\",\n \"DIVISION POR CERO\"\n };\n throw new Excepciones(err[error]);\n}", "public boolean isCNPJ(String CNPJ) {\n\t\t// considera-se erro CNPJ's formados por uma sequencia de numeros iguais\n if (CNPJ.equals(\"00000000000000\") || CNPJ.equals(\"11111111111111\") ||\n CNPJ.equals(\"22222222222222\") || CNPJ.equals(\"33333333333333\") ||\n CNPJ.equals(\"44444444444444\") || CNPJ.equals(\"55555555555555\") ||\n CNPJ.equals(\"66666666666666\") || CNPJ.equals(\"77777777777777\") ||\n CNPJ.equals(\"88888888888888\") || CNPJ.equals(\"99999999999999\") ||\n (CNPJ.length() != 14))\n return(false);\n\n char dig13, dig14;\n int sm, i, r, num, peso;\n\n// \"try\" - protege o codigo para eventuais erros de conversao de tipo (int)\n try {\n// Calculo do 1o. Digito Verificador\n sm = 0;\n peso = 2;\n for (i=11; i>=0; i--) {\n// converte o i-�simo caractere do CNPJ em um n�mero:\n// por exemplo, transforma o caractere '0' no inteiro 0\n// (48 eh a posi��o de '0' na tabela ASCII)\n num = (int)(CNPJ.charAt(i) - 48);\n sm = sm + (num * peso);\n peso = peso + 1;\n if (peso == 10)\n peso = 2;\n }\n\n r = sm % 11;\n if ((r == 0) || (r == 1))\n dig13 = '0';\n else dig13 = (char)((11-r) + 48);\n\n// Calculo do 2o. Digito Verificador\n sm = 0;\n peso = 2;\n for (i=12; i>=0; i--) {\n num = (int)(CNPJ.charAt(i)- 48);\n sm = sm + (num * peso);\n peso = peso + 1;\n if (peso == 10)\n peso = 2;\n }\n\n r = sm % 11;\n if ((r == 0) || (r == 1))\n dig14 = '0';\n else dig14 = (char)((11-r) + 48);\n\n// Verifica se os d�gitos calculados conferem com os d�gitos informados.\n if ((dig13 == CNPJ.charAt(12)) && (dig14 == CNPJ.charAt(13)))\n return(true);\n else return(false);\n } catch (InputMismatchException erro) {\n return(false);\n }\n\t}", "@org.junit.Test(expected = IllegalArgumentException.class)\n public void testNumeroCaracteresDiferenteDeOnze() {\n System.out.println(\"verificaCPF\");\n int[] cpf = {5, 1, 7, 1, 8};\n CPF.verificaCPF(cpf);\n }", "private boolean verificarCnpj(String cnpj) {\n return true;\n \n// if (cnpj.length() != 14) {\n// return false;\n// }\n//\n// int soma = 0;\n// int dig = 0;\n//\n// String digitosIniciais = cnpj.substring(0, 12);\n// char[] cnpjCharArray = cnpj.toCharArray();\n//\n// /* Primeira parte da validação */\n// for (int i = 0; i < 4; i++) {\n// if (cnpjCharArray[i] - 48 >= 0 && cnpjCharArray[i] - 48 <= 9) {\n// soma += (cnpjCharArray[i] - 48) * (6 - (i + 1));\n// }\n// }\n//\n// for (int i = 0; i < 8; i++) {\n// if (cnpjCharArray[i + 4] - 48 >= 0 && cnpjCharArray[i + 4] - 48 <= 9) {\n// soma += (cnpjCharArray[i + 4] - 48) * (10 - (i + 1));\n// }\n// }\n//\n// dig = 11 - (soma % 11);\n//\n// digitosIniciais += (dig == 10 || dig == 11) ? \"0\" : Integer.toString(dig);\n//\n// /* Segunda parte da validação */\n// soma = 0;\n//\n// for (int i = 0; i < 5; i++) {\n// if (cnpjCharArray[i] - 48 >= 0 && cnpjCharArray[i] - 48 <= 9) {\n// soma += (cnpjCharArray[i] - 48) * (7 - (i + 1));\n// }\n// }\n//\n// for (int i = 0; i < 8; i++) {\n// soma += (cnpjCharArray[i + 5] - 48) * (10 - (i + 1));\n// }\n//\n// dig = 11 - (soma % 11);\n// digitosIniciais += (dig == 10 || dig == 11) ? \"0\" : Integer.toString(dig);\n\n// return cnpj.equals(digitosIniciais);\n }", "public int errorChecker()\n\t{\n\t\tboolean error = false;\n\t\tint checker=0; //variable to determine how many 1's in the number\n\t\tint row;\n\t\t\n\t\t//loops through the array identifying parity coverage\n\t\tfor (row=0;row<PARITYCOVERAGE.length; row++)\n\t\t{\n\t\t\t\n\t\t\t//calls the method to count the number of parity bits\n\t\t\tchecker = counter(row, true); \n\t\n\t\t\tint compare = 0; //the default value (odd parity)\n\t\t\t\n\t\t\t//checks whether it is even or odd parity\n\t\t\tif (parityType.contentEquals(\"e\"))\n\t\t\t{\n\t\t\t\t//value for even parity\n\t\t\t\tcompare=1;\n\t\t\t}\n\n\t\t\t//checks to see if the result is even or odd\n\t\t\tif (checker%2 ==compare) \n\t\t\t{\n\t\t\t\terror=true;\n\t\t\t\t\n\t\t\t\t//sets parity bit to 1, if parity is even/odd\n\t\t\t\terrorCode[row]=true;\n\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t//otherwise the bit is 0\n\t\t\t\terrorCode[row]=false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//if an error has been detected\n\t\tif (error)\n\t\t{\n\t\t\t\n\t\t\t//passes the binary code to the covertor\n\t\t\t//and returns the location of the error\n\t\t\treturn (binaryNumber.decimalConverter(errorCode)-1);\n\t\t\t\t\n\t\t}\n\t\t\n\t\t//if there is no error, returns a negative value\n\t\treturn -1;\n\t\t\t\t\t\n\t}", "private static void generateError(int i, int j, int k) {\n\t\t\n\t\tswitch(i) {\n\t\t\n\t\t\tcase 0: // CHEP\n\t\t\t\tswitch(k) {\n\t\t\t\t\tcase 1: // date\n\t\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid invoice number. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\t\treturn;;\n\t\t\t\t\tcase 2: // date\n\t\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid date. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\t\treturn;;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid region. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\t\treturn;\n\t\t\t\t\tcase 5:\n\t\t\t\t\t\terr_msg = \"Error: The percentages of total invoices are invalid. The sum of all percentages should be 100%\";\n\t\t\t\t\t\treturn;\n\t\t\t\t\tcase 6:\n\t\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid net total. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\t\treturn;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;;\n\t\t\t\t}\n\t\t\t\t\n\t\t\tcase 1: // Delivery\n\t\t\t\tswitch(k) {\n\t\t\t\tcase 2: \n\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid date. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\treturn;\n\t\t\t\tcase 4:\n\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid amount. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\treturn;\n\t\t\t\tcase 5: \n\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid reference number. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\treturn;\n\t\t\t\tcase 6:\n\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid delivery date. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\treturn;\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\t\n\t\t\tcase 2:\n\t\t\t\tswitch(k) {\n\t\t\t\t\tcase 2: \n\t\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid date. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\t\treturn;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid amount. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\t\treturn;\n\t\t\t\t\tcase 5: \n\t\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid reference number. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\t\treturn;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}", "private void check3(){\n \n if (errorCode == 0){\n \n if (firstDigit * fifthDigit * ninthDigit != 24){\n valid = false;\n errorCode = 3;\n }\n }\n\t}", "public static void notValidNumberErr(){\n printLine();\n System.out.println(\" Oops! Please enter a valid task number\");\n printLine();\n }", "String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }", "public int pedirNIF(){\n int NIF = 0;\n boolean validado = false;\n do{\n System.out.println(\"Introduce la NIF:\");\n try {\n NIF = Integer.parseInt(lector.nextLine());\n validado = true;\n\n if(NIF <= 0){\n validado = false;\n System.out.println(\"El NIF no puede ser un numero negativo\");\n }\n }catch (NumberFormatException nfe){\n System.out.println(\"Por favor, introduce un numero.\");\n }\n\n }while(!validado);\n return NIF;\n }", "public void ingresar() \r\n\t{\r\n\r\n\t\tString numeroCasilla = JOptionPane.showInputDialog(this, \"Ingresar numero en la casilla \" + sudoku.darFilaActual() + \",\" +sudoku.darColumnaActual());\r\n\t\tif (numeroCasilla == null || numeroCasilla ==\"\")\r\n\t\t{}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\tint numeroCasillaInt = Integer.parseInt(numeroCasilla);\r\n\t\t\t\tif(numeroCasillaInt > sudoku.darCantidadColumnasZona()*sudoku.darCantidadFilasZona() || numeroCasillaInt < 1)\r\n\t\t\t\t{\r\n\t\t\t\t\tJOptionPane.showMessageDialog( this, \"El numero ingresado no es valido. Debe ser un valor entre 1 y \" + sudoku.darCantidadColumnasZona()*sudoku.darCantidadFilasZona(), \"Error\", JOptionPane.ERROR_MESSAGE );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog( this, \"Debe ingresar un valor numerico entre 1 y \" + sudoku.darCantidadColumnasZona()*sudoku.darCantidadFilasZona(), \"Error\", JOptionPane.ERROR_MESSAGE );\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test095() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try { \n errorPage0.numberInput(\"3X{L(\", (CharSequence) null);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n verifyException(\"wheel.components.ComponentCreator\", e);\n }\n }", "boolean checkError() {\n Iterator<Integer> seq = sequence.iterator();\n Iterator<Integer> in = input.iterator();\n\n while (seq.hasNext() && in.hasNext()) {\n int a = seq.next();\n int b = in.next();\n if (a != b) {\n attempts++;\n return true;\n }\n }\n return false;\n }", "void showAlertForInvalidNumber();", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray0 = new byte[6];\n byteArray0[1] = (byte)78;\n Range range0 = Range.ofLength(0L);\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec1.iterator(byteArray0, range0);\n DefaultNucleotideCodec defaultNucleotideCodec2 = DefaultNucleotideCodec.INSTANCE;\n // Undeclared exception!\n try { \n defaultNucleotideCodec2.getNumberOfGapsUntil(byteArray0, (byte)78);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public static void findError() {\n\n for ( int year = 1900; year < 2050; year++ ) {\n List<ChthibiBirth> births = locateBirth.findBirth( year );\n\n // traitement list\n int compt = 0, found = 0, miss = 0;\n String texte = null;\n\n if ( births.isEmpty() == false ) {\n for ( int i = 0; i < births.size(); i++ ) {\n int k = i + 1;\n\n if ( k < births.size() ) {\n compt = births.get( k ).getNumber() - births.get( i ).getNumber();\n if ( compt > 1 ) {\n found++;\n texte = \"Erreur données manquantes entre : number => \" + births.get( i ).getNumber()\n + \" et number => \"\n + births.get( k ).getNumber() + \" Année : \"\n + year;\n texte += \"\\n\";\n miss += compt;\n }\n }\n }\n }\n // memorisation\n if ( found > 0 ) {\n found = 0;\n saveInFile( texte, year, miss );\n }\n }\n }", "private void check6(){\n \n if (errorCode == 0){\n \n int firstSecond = Integer.parseInt(number.substring(0,2));\n int seventhEight = Integer.parseInt(number.substring(6,8));\n \n if (firstSecond + seventhEight != 100){\n valid = false;\n errorCode = 6;\n }\n }\n\t}", "public static void checkErrorCode(byte[] buffer)throws TopicException{\n byte curr = buffer[1];\n StringBuilder string = new StringBuilder();\n for(int i = 7; i > -1; i--){\n string.append(getMybit(curr, i));\n }\n\n int val = Integer.parseInt(String.valueOf(string), Constants.TWO);\n if(0 != val){\n throw new TopicException(ErrorCode.UNEXPECTEDERRORCODE);\n }\n }", "public double cantidadGC(String seq){\n int countErrorInt=0;\n nG = 0;\n nC = 0;\n nA = 0;\n nT = 0;\n int tam=0;\n for (int i=0;i<seq.length();i++){\n char n= seq.charAt(i);\n if (n=='G')\n nG++;\n else if (n=='C')\n nC++;\n else if ((n=='T'))\n nT++;\n else if ((n=='A'))\n nA++;\n else\n countErrorInt++;\n }\n tam+=seq.length();\n error.add(countErrorInt);\n\t\t/*\n\t\t * nucleotido[0]=\"A\";\n\t\tnucleotido[1]=\"T\";\n\t\tnucleotido[2]=\"G\";\n\t\tnucleotido[3]=\"C\";\n\t\t */\n double total= (double)(nA+nG+nC+nT);\n nucCant[0]=nA/total;\n nucCant[1]=nT/total;\n nucCant[2]=nG/total;\n nucCant[3]=nC/total;\n return ((double)(nG+nC)/(double)(nA+nG+nC+nT))*100;\n\n }", "@Test(timeout = 4000)\n public void test00() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray0 = new byte[8];\n byteArray0[0] = (byte) (-19);\n Nucleotide nucleotide0 = Nucleotide.NotGuanine;\n Set<Nucleotide> set0 = nucleotide0.getAllPossibleAmbiguities();\n byte[] byteArray1 = defaultNucleotideCodec0.encode((Collection<Nucleotide>) set0);\n byteArray0[1] = (byte)0;\n byteArray0[2] = (byte) (-54);\n defaultNucleotideCodec0.isGap(byteArray0, (byte) (-54));\n byteArray0[3] = (byte) (-55);\n byteArray0[4] = (byte) (-88);\n defaultNucleotideCodec0.toString(byteArray1);\n byteArray0[5] = (byte)63;\n byteArray0[6] = (byte) (-23);\n byte[] byteArray2 = new byte[6];\n byteArray2[0] = (byte)1;\n byteArray2[1] = (byte) (-23);\n byteArray2[2] = (byte) (-55);\n byteArray2[3] = (byte) (-23);\n byteArray2[4] = (byte) (-54);\n byteArray2[5] = (byte)0;\n // Undeclared exception!\n try { \n defaultNucleotideCodec0.isGap(byteArray2, (-1962));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private boolean validarNumDistanc(double value) {\n\n String msjeError;\n if (value < 0) {\n\n msjeError = \"Valor No Aceptado\";\n this.jLabelError.setText(msjeError);\n this.jLabelError.setForeground(Color.RED);\n this.jLabelError.setVisible(true);\n\n this.jLabel5.setForeground(Color.red);\n return false;\n } else {\n\n this.jLabel5.setForeground(jlabelColor);\n this.jLabelError.setVisible(false);\n return true;\n }\n }", "public boolean ValidarCantidad(String c) {\n String numCuenta = c;\n int NOnum = 0;\n for (int i = 0; i < numCuenta.length(); i++) {\n if (!Character.isDigit(numCuenta.charAt(i))) {\n NOnum++;\n }\n }\n return NOnum == 0;\n }", "private boolean isPosicaoFerrovia(int posicao) {\n return (posicao == 5 || posicao == 15 || posicao == 25 || posicao == 35);\n }", "private void check4(){\n \n if (errorCode == 0){\n int sum = 0;\n \n for(int i = 0; i < number.length();){\n sum += Integer.parseInt(number.substring(i, ++i));\n }\n \n if (sum % 4 != 0){\n valid = false;\n errorCode = 4;\n }\n }\n\t}", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n DefaultNucleotideCodec.valueOf(\"INSTANCE\");\n byte[] byteArray0 = new byte[7];\n byteArray0[5] = (byte) (-50);\n byteArray0[1] = (byte) (-38);\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec0.decodedLengthOf(byteArray0);\n defaultNucleotideCodec0.iterator(byteArray0);\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec1.decode(byteArray0, 1L);\n DefaultNucleotideCodec defaultNucleotideCodec2 = DefaultNucleotideCodec.valueOf(\"INSTANCE\");\n // Undeclared exception!\n try { \n defaultNucleotideCodec2.isGap(byteArray0, 14286848);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void exibeDataNascimentoInvalida() {\n JOptionPane.showMessageDialog(\n null,\n Constantes.GERENCIAR_FUNCIONARIO_DATA_NASCIMENTO_INVALIDA,\n Constantes.GERENCIAR_FUNCIONARIO_TITULO,\n JOptionPane.PLAIN_MESSAGE\n );\n }", "public void codeJ(int number) {\n\tString d;\n\t\n\t//Scanner scan = new Scanner(System.in);\n\tdo {\n\tdo{\n\t\t\n\t\tif (App.SCANNER.hasNextInt()) {\n\t\t\n\t\t}else {\n\t\t\tSystem.out.println(\" Entrez Uniquement un code a \" + number + \"chiffres\");\n\t\t\tApp.SCANNER.next();\n\t\t}\n\t\t\n\t\n\t}while(!App.SCANNER.hasNextInt()) ;\n\tthis.codeHumain=App.SCANNER.nextInt();\n\td = Integer.toString(codeHumain);\n\t\n\tif(d.length() != number) {\n\t\tSystem.out.println(\" Entrez Uniquement un code a \" + number + \"chiffres svp\" );\n\t}else if(d.length() == number) {\n\t}\n\t\n\t\n\t\n\t}while(d.length() != number) ;\n\t\n\t//scan.close();\n\t}", "private void errorCheck(String nonterminal, int number) {\r\n if (nonterminal == null || !isNonTerminal(nonterminal) || number < 0) {\r\n throw new IllegalArgumentException();\r\n }\r\n }", "private int validate(final String lcono) {\n\n if (lcono == null || lcono.isEmpty())\n return 1;\n else if (!lcono.matches(\"\\\\d*\\\\.?\\\\d+\"))\n return 2;\n\n return 0;\n }", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n Form form0 = new Form(\"\\r\");\n // Undeclared exception!\n try { \n form0.numberInput(\"c0vJ@0?9*iT5S>\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\n public void test096() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n ErrorPage errorPage1 = (ErrorPage)errorPage0.clasS((CharSequence) \"`ymkk& +k:vlY+SnG\");\n Block block0 = (Block)errorPage0.samp();\n NumberInput numberInput0 = new NumberInput(errorPage0, \"`ymkk& +k:vlY+SnG\", \"`ymkk& +k:vlY+SnG\");\n // Undeclared exception!\n try {\n Component component0 = numberInput0.meta();\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Can't add components to a component that is not an instance of IContainer.\n //\n }\n }", "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(3, 5, 0, 10, false, 16), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test098() throws Throwable {\n NumberInput numberInput0 = new NumberInput((Component) null, \"\", \"m\", \"m\");\n // Undeclared exception!\n try {\n Component component0 = numberInput0.param((CharSequence) \"m\", (CharSequence) \"\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public NoDigitException(){\r\n\r\n\t}", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "@Test(timeout = 4000)\n public void test54() throws Throwable {\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n JSTerm jSTerm0 = new JSTerm();\n SystemInUtil.addInputLine(\"0(u\");\n int int0 = 369;\n // Undeclared exception!\n try { \n jSTerm0.toStr();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0 >= 0\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "public static int verif(String cadena) {\r\n Scanner l = new Scanner(System.in);\r\n int m1 = -1;\r\n do {\r\n try {\r\n System.out.println(cadena);\r\n m1 = l.nextInt();\r\n } catch (InputMismatchException e) {\r\n System.out.println(\"Valor no valido, ingrese un valor nuimerico\");\r\n }\r\n l.nextLine();\r\n } while (m1 < 0);\r\n\r\n return m1;\r\n }", "private void check5(){\n \n if (errorCode == 0){\n \n int firstSum = 0;\n int lastSum = 0;\n String firstFour = number.substring(0,4);\n String lastFour = number.substring(8,12);\n \n for(int i = 0; i < firstFour.length();){\n firstSum += Integer.parseInt(firstFour.substring(i, ++i));\n }\n \n for(int i = 0; i < lastFour.length();){\n lastSum += Integer.parseInt(lastFour.substring(i, ++i));\n }\n \n if (!(firstSum == lastSum - 1)){\n valid = false;\n errorCode = 5;\n }\n }\n\t}", "private int cantFantasmasRestantes() {\n // TODO implement here\n return 0;\n }", "private boolean isNumericoConFraccion(char unChar) {\r\n\t\tswitch (unChar) {\r\n\t\tcase '0':\r\n\t\t\treturn true;\r\n\t\tcase '1':\r\n\t\t\treturn true;\r\n\t\tcase '2':\r\n\t\t\treturn true;\r\n\t\tcase '3':\r\n\t\t\treturn true;\r\n\t\tcase '4':\r\n\t\t\treturn true;\r\n\t\tcase '5':\r\n\t\t\treturn true;\r\n\t\tcase '6':\r\n\t\t\treturn true;\r\n\t\tcase '7':\r\n\t\t\treturn true;\r\n\t\tcase '8':\r\n\t\t\treturn true;\r\n\t\tcase '9':\r\n\t\t\treturn true;\r\n\t\tcase '.':\r\n\t\t\treturn dotCountValidate();\r\n\t\tdefault:\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test08() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray0 = new byte[5];\n byte byte0 = (byte)0;\n byte byte1 = (byte)83;\n byte byte2 = (byte)3;\n byte byte3 = (byte)0;\n byte byte4 = (byte)0;\n Range range0 = Range.ofLength(3149L);\n // Undeclared exception!\n try { \n defaultNucleotideCodec0.iterator(byteArray0, range0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // range [ 0 .. 3148 ]/0B is out of range of sequence which is only [ 0 .. -1 ]/0B\n //\n verifyException(\"org.jcvi.jillion.core.residue.nt.DefaultNucleotideCodec$IteratorImpl\", e);\n }\n }", "static int findMissingNumber(String str) {\n\t\t// Try all lengths for first number\n\t\tfor (int m = 1; m <= MAX_DIGITS; ++m) {\n\t\t\t// Get value of first number with current\n\t\t\t// length/\n\t\t\tint n = getValue(str, 0, m);\n\t\t\tif (n == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// To store missing number of current length\n\t\t\tint missingNo = -1;\n\n\t\t\t// To indicate whether the sequence failed\n\t\t\t// anywhere for current length.\n\t\t\tboolean fail = false;\n\n\t\t\t// Find subsequent numbers with previous number as n\n\t\t\tfor (int i = m; i != str.length(); i += 1 + Math.log10(n)) {\n\t\t\t\t// If we haven't yet found the missing number\n\t\t\t\t// for current length. Next number is n+2. Note\n\t\t\t\t// that we use Log10 as (n+2) may have more\n\t\t\t\t// length than n.\n\t\t\t\tif ((missingNo == -1) && (getValue(str, i, (int) (1 + Math.log10(n + 2))) == n + 2)) {\n\t\t\t\t\tmissingNo = n + 1;\n\t\t\t\t\tn += 2;\n\t\t\t\t} // If next value is (n+1)\n\t\t\t\telse if (getValue(str, i, (int) (1 + Math.log10(n + 1))) == n + 1) {\n\t\t\t\t\tn++;\n\t\t\t\t} else {\n\t\t\t\t\tfail = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!fail) {\n\t\t\t\treturn missingNo;\n\t\t\t}\n\t\t}\n\t\treturn -1; // not found or no missing number\n\t}", "public int numeroDeRegistrosCargadosConError(String idProceso, String schema);", "public void extendedErrorCheck(int station) throws JposException {\r\n boolean[][] relevantconditions = new boolean[][]{\r\n new boolean[]{Data.JrnEmpty, Data.JrnCartridgeState == POSPrinterConst.PTR_CART_REMOVED, Data.JrnCartridgeState == POSPrinterConst.PTR_CART_EMPTY, Data.JrnCartridgeState == POSPrinterConst.PTR_CART_CLEANING },\r\n new boolean[]{Data.RecEmpty, Data.RecCartridgeState == POSPrinterConst.PTR_CART_REMOVED, Data.RecCartridgeState == POSPrinterConst.PTR_CART_EMPTY, Data.RecCartridgeState == POSPrinterConst.PTR_CART_CLEANING },\r\n new boolean[]{Data.SlpEmpty, Data.SlpCartridgeState == POSPrinterConst.PTR_CART_REMOVED, Data.SlpCartridgeState == POSPrinterConst.PTR_CART_EMPTY, Data.SlpCartridgeState == POSPrinterConst.PTR_CART_CLEANING }\r\n };\r\n int[][] exterrors = new int[][]{\r\n new int[]{POSPrinterConst.JPOS_EPTR_JRN_EMPTY, POSPrinterConst.JPOS_EPTR_JRN_CARTRIDGE_REMOVED, POSPrinterConst.JPOS_EPTR_JRN_CARTRIDGE_EMPTY, POSPrinterConst.JPOS_EPTR_JRN_HEAD_CLEANING},\r\n new int[]{POSPrinterConst.JPOS_EPTR_REC_EMPTY, POSPrinterConst.JPOS_EPTR_REC_CARTRIDGE_REMOVED, POSPrinterConst.JPOS_EPTR_REC_CARTRIDGE_EMPTY, POSPrinterConst.JPOS_EPTR_REC_HEAD_CLEANING},\r\n new int[]{POSPrinterConst.JPOS_EPTR_SLP_EMPTY, POSPrinterConst.JPOS_EPTR_SLP_CARTRIDGE_REMOVED, POSPrinterConst.JPOS_EPTR_SLP_CARTRIDGE_EMPTY, POSPrinterConst.JPOS_EPTR_SLP_HEAD_CLEANING},\r\n };\r\n String[] errortexts = { \"Paper empty\", \"Cartridge removed\", \"Cartridge empty\", \"Head cleaning\" };\r\n Device.check(Data.PowerNotify == JposConst.JPOS_PN_ENABLED && Data.PowerState != JposConst.JPOS_PS_ONLINE, JposConst.JPOS_E_FAILURE, \"POSPrinter not reachable\");\r\n Device.checkext(Data.CoverOpen, POSPrinterConst.JPOS_EPTR_COVER_OPEN, \"Cover open\");\r\n for (int j = 0; j < relevantconditions.length; j++) {\r\n if (station == SingleStations[j]) {\r\n for (int k = 0; k < relevantconditions[j].length; k++) {\r\n Device.checkext(relevantconditions[j][k], exterrors[j][k], errortexts[k]);\r\n }\r\n }\r\n }\r\n }", "private void checkAnnoRateo() {\n\t\tif(req.getRateo().getAnno()>=primaNota.getBilancio().getAnno()){\n\t\t\tthrow new BusinessException(ErroreCore.OPERAZIONE_NON_CONSENTITA.getErrore(\"L'anno del Rateo deve essere minore dell'anno della prima nota di partenza.\"));\n\t\t}\n\t}", "@Override\r\n\tpublic String getMessage() {\r\n\t\treturn \"Veuillez entrer un nombre positif\";\r\n\t}", "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_2() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(3, 5, 0, 10, false), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public void alterarDadosCadastraisNumeroInvalido() {\n\t\tAlterarDadosCadastraisPage alterarDadosCadastraisPage = new AlterarDadosCadastraisPage(driver);\n\t\talterarDadosCadastraisPage.getInputCel().clear();\n\t\talterarDadosCadastraisPage.getButtonSalvar().click();\n\t}", "private void err3() {\n\t\tString errMessage = CalculatorValue.checkMeasureValue(text_Operand3.getText());\n\t\tif (errMessage != \"\") {\n\t\t\t// System.out.println(errMessage);\n\t\t\tlabel_errOperand3.setText(CalculatorValue.measuredValueErrorMessage);\n\t\t\tif (CalculatorValue.measuredValueIndexofError <= -1)\n\t\t\t\treturn;\n\t\t\tString input = CalculatorValue.measuredValueInput;\n\t\t\toperand3ErrPart1.setText(input.substring(0, CalculatorValue.measuredValueIndexofError));\n\t\t\toperand3ErrPart2.setText(\"\\u21EB\");\n\t\t} else {\n\t\t\terrMessage = CalculatorValue.checkErrorTerm(text_Operand3.getText());\n\t\t\tif (errMessage != \"\") {\n\t\t\t\t// System.out.println(errMessage);\n\t\t\t\tlabel_errOperand3.setText(CalculatorValue.errorTermErrorMessage);\n\t\t\t\tString input = CalculatorValue.errorTermInput;\n\t\t\t\tif (CalculatorValue.errorTermIndexofError <= -1)\n\t\t\t\t\treturn;\n\t\t\t\toperand3ErrPart1.setText(input.substring(0, CalculatorValue.errorTermIndexofError));\n\t\t\t\toperand3ErrPart2.setText(\"\\u21EB\");\n\t\t\t}\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n Collection<Nucleotide> collection0 = null;\n byte[] byteArray0 = new byte[9];\n byteArray0[0] = (byte)0;\n byteArray0[1] = (byte)0;\n byteArray0[2] = (byte) (-72);\n byteArray0[3] = (byte) (-11);\n Range range0 = Range.of((long) (byte) (-11), 2L);\n // Undeclared exception!\n try { \n defaultNucleotideCodec0.iterator(byteArray0, range0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // range [ -11 .. 2 ]/0B is out of range of sequence which is only [ 0 .. 47348 ]/0B\n //\n verifyException(\"org.jcvi.jillion.core.residue.nt.DefaultNucleotideCodec$IteratorImpl\", e);\n }\n }", "@Test\r\n\tpublic void testPositiveGenerateInteger_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegers(10, 0, 10, false, 16), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n Scanner Misca = new Scanner (System.in);\r\n \r\n Integer edad; //Mayor a 0 y menos a 100\r\n Integer sueldo; //mayor a 0\r\n String sexo; //f o m\r\n String tipoAlumno; // C: Cursante - E: Egresado - L:Libre\r\n Integer temperatura; //-200 y +200\r\n String respuesta; //si o no\r\n \r\n System.out.println(\" Ingrese sueldo : \");\r\n sueldo=Misca.nextInt();\r\n \r\n while (sueldo>0){\r\n \r\n System.out.println(\" Error, reingrese sueldo : \");\r\n sueldo=Misca.nextInt();\r\n \r\n }\r\n \r\n System.out.println(\" Ingrese edad : \");\r\n edad=Misca.nextInt();\r\n \r\n while (edad<1 || edad>100 ){\r\n \r\n System.out.println(\" Error, reingrese la edad : \");\r\n edad=Misca.nextInt();\r\n \r\n }\r\n \r\n System.out.println(\" Ingrese la temperatura : \");\r\n temperatura = Misca.nextInt();\r\n \r\n while (temperatura<-200 || temperatura>200){\r\n \r\n System.out.println(\" Error, reingrese la temperatura : \");\r\n temperatura=Misca.nextInt();\r\n \r\n }\r\n \r\n System.out.println(\" Ingrese su sexo : \");\r\n sexo=Misca.next();\r\n \r\n while (!sexo.equalsIgnoreCase(\"f\") && !sexo.equalsIgnoreCase(\"m\")){\r\n \r\n System.out.println(\" Error, reingrese su sexo : \");\r\n sexo = Misca.next();\r\n sexo=sexo.toLowerCase();\r\n \r\n }\r\n \r\n System.out.println(\"Ingrese si es Cursante[C], libre [L] o egresado [E]\");\r\n tipoAlumno=Misca.next();\r\n \r\n while(!tipoAlumno.equalsIgnoreCase(\"c\") && !tipoAlumno.equalsIgnoreCase(\"l\") && !tipoAlumno.equalsIgnoreCase(\"e\"))\r\n {\r\n System.out.println(\"Error, re Ingrese si es Cursante[C], libre [L] o egresado [E]\");\r\n tipoAlumno=Misca.next();\r\n \r\n }\r\n \r\n System.out.println(\"Ingrese respuesta\");\r\n respuesta=Misca.next();\r\n \r\n while(!respuesta.equalsIgnoreCase(\"si\") && !respuesta.equalsIgnoreCase(\"no\"))\r\n {\r\n System.out.println(\"Error, re Ingrese respuesta\");\r\n respuesta=Misca.next();\r\n }\r\n }", "public NoDigitException(String message) {\r\n\t\tsuper(message);\r\n\t}", "public static String switchNumeriPosizioni(int numero, String pariOrDispari) {\n\t\tString valoreCorrispondente = \"\";\n\t\tswitch (numero) {\n\t\tcase 0:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"0\";\n\t\t\t} else valoreCorrispondente = \"1\";\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"1\";\n\t\t\t} else valoreCorrispondente = \"0\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"2\";\n\t\t\t} else valoreCorrispondente = \"5\";\n\t\t\tbreak;\n\t\tcase 3:\t\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"3\";\n\t\t\t} else valoreCorrispondente = \"7\";\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"4\";\n\t\t\t} else valoreCorrispondente = \"9\";\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"5\";\n\t\t\t} else valoreCorrispondente = \"13\";\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"6\";\n\t\t\t} else valoreCorrispondente = \"15\";\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"7\";\n\t\t\t} else valoreCorrispondente = \"17\";\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"8\";\n\t\t\t} else valoreCorrispondente = \"19\";\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"9\";\n\t\t\t} else valoreCorrispondente = \"21\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn valoreCorrispondente;\n\t}", "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_8() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT, BASE), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public boolean verificaNumero() {\n if (contemSomenteNumeros(jTextFieldDeposita.getText()) || contemSomenteNumeros(jTextFieldSaca.getText())\n || contemSomenteNumeros(jTextFieldTransfere.getText())) {\n return true;\n } else {\n JOptionPane.showMessageDialog(this, \"Digite somente números, por favor. \", \"Atenção !!\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n }", "static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }", "public String getMinSeqNo() throws Exception {\n return \"-1\";\n }", "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_7() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public int lecturaNumero()\n {\n boolean error = false; \n int numero = 0;\n System.out.print(\">\");\n try {\n numero = lectura.nextInt();\n\n } catch (InputMismatchException ime){\n error = true; \n lectura.next();\n }\n if (!error){\n return numero; \n }else{\n return -1;\n }\n }", "@Test\n\tpublic void TestR1NonIntegerParseableChars() {\n\t\tString invalid_solution = \"a74132865635897241812645793126489357598713624743526189259378416467251938381964572\";\n\t\tassertEquals(-1, sv.verify(invalid_solution));\n\t}", "@Test\n public void test9() {\n try {\n cashRegister.addPennies(-2);\n } catch (IllegalArgumentException e) {\n assertEquals(e.getMessage(), \"cant add negative value\");\n }\n try {\n cashRegister.addDimes(-1);\n } catch (IllegalArgumentException e) {\n assertEquals(e.getMessage(), \"cant add negative value\");\n }\n try {\n cashRegister.addDimes(-1);\n } catch (IllegalArgumentException e) {\n assertEquals(e.getMessage(), \"cant add negative value\");\n }\n try {\n cashRegister.addFives(-3);\n } catch (IllegalArgumentException e) {\n assertEquals(e.getMessage(), \"cant add negative value\");\n }\n try {\n cashRegister.addNickels(-100);\n } catch (IllegalArgumentException e) {\n assertEquals(e.getMessage(), \"cant add negative value\");\n }\n try {\n cashRegister.addNickels(-1);\n } catch (IllegalArgumentException e) {\n assertEquals(e.getMessage(), \"cant add negative value\");\n }\n try {\n cashRegister.addOnes(-1);\n } catch (IllegalArgumentException e) {\n assertEquals(e.getMessage(), \"cant add negative value\");\n }\n try {\n cashRegister.addQuarters(-5);\n } catch (IllegalArgumentException e) {\n assertEquals(e.getMessage(), \"cant add negative value\");\n }\n try {\n cashRegister.addTens(-5);\n } catch (IllegalArgumentException e) {\n assertEquals(e.getMessage(), \"cant add negative value\");\n }\n }", "private int getNucIndex(char c) {\n\t\tswitch(c) {\n\t\tcase 'A':\n\t\t\treturn 0;\n\t\tcase 'C':\n\t\t\treturn 1;\n\t\tcase 'G':\n\t\t\treturn 2;\n\t\tcase 'T':\n\t\t\treturn 3;\n\t\tcase '-':\n\t\t\treturn 4;\n\t\tdefault:\n\t\t\treturn 4;\n\t\t}\n\t}", "@Test\r\n public void testInvalidIncSuffixExpressionWithSIUnits() throws IOException {\n checkError(\"varS++\", \"0xA0170\");\r\n }", "public negativeNumberException (String info )\r\n\t {\r\n\t super(info);\r\n\t }", "@Test\n public void test009() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n FormElement formElement0 = errorPage0.numberInput(\"2CVo`z1\", (CharSequence) \"2CVo`z1\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n }\n }", "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_6() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public void ejercicio03() {\r\n\t\tcabecera(\"03\", \"Comparar numeros\");\r\n\r\n // Inicio modificacion\r\n\t\t\r\n NumeroEntero n1 = new NumeroEntero(10);\r\n NumeroEntero n2 = new NumeroEntero(10);\r\n\r\n if (n1.comapreTo(n2) == -1){\r\n \t System.out.println(\"N1-> \"+n1);\r\n System.out.println(\"N1 es mayor que N2\");\r\n }\r\n else if (n1.comapreTo(n2) ==1) {\r\n System.out.println(\"N1 -> \"+n1);\r\n System.out.println(\"N1 es menor que N2\");\r\n }\r\n else{\r\n System.out.println(\"N1 y N2 son iguales -> N1 ->\"+n1+\" N2 -> \"+n2);\r\n }\r\n\r\n\t\t// Fin modificacion\r\n\t\t\r\n\t}", "private String pedirCasilla(String mensaje) {\n char columna;\n int fila;\n String casilla;\n do {\n casilla = ManejoInfo.getTextoSimple(\"la casilla \" + mensaje);\n columna = casilla.charAt(0);\n fila = Character.getNumericValue(casilla.charAt(1));\n if (!validarColum(columna) && fila >= 9) {\n System.out.println(\"\\nIngrese una casilla valida!\\n\");\n }\n } while (!validarColum(columna) && fila >= 9);\n return casilla;\n }", "@Test(expectedExceptions=NumberFormatException.class)\r\n\tpublic void chkNumberFrmtExcep(){\r\n\t\tString x=\"100A\";\r\n\t\tint f=Integer.parseInt(x);//it will throw exception bcoz x=100A, if it is 100 it will not throw exception\r\n\t}", "private void check1(){\n \n\t\tif (firstDigit != 4){\n valid = false;\n errorCode = 1;\n }\n\t}", "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_1() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(3, 5, 0, 10), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n\tpublic void message_numeric() {\n\t\tString message = \"\";\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tQrCode expected = new QrCodeEncoder().setVersion(1).\n\t\t\t\t\tsetError(QrCode.ErrorLevel.M).\n\t\t\t\t\tsetMask(QrCodeMaskPattern.M011).\n\t\t\t\t\taddNumeric(message).fixate();\n\n\t\t\tQrCodeGeneratorImage generator = new QrCodeGeneratorImage(4);\n\t\t\tgenerator.render(expected);\n\t\t\tFastQueue<PositionPatternNode> pps = createPositionPatterns(generator);\n\n//\t\tShowImages.showWindow(generator.gray,\"QR Code\", true);\n//\t\tBoofMiscOps.sleep(100000);\n\n\t\t\tQrCodeDecoderImage<GrayU8> decoder = new QrCodeDecoderImage<>(null,GrayU8.class);\n\t\t\tdecoder.process(pps,generator.getGray());\n\n\t\t\tassertEquals(1,decoder.successes.size());\n\t\t\tQrCode found = decoder.getFound().get(0);\n\n\t\t\tassertEquals(expected.version,found.version);\n\t\t\tassertEquals(expected.error,found.error);\n\t\t\tassertEquals(expected.mode,found.mode);\n\t\t\tassertEquals(message,new String(found.message));\n\t\t\tmessage += (i%10)+\"\";\n\t\t}\n\t}", "public boolean validaCPF(String cpf){\n if (cpf.equals(\"00000000000\") || cpf.equals(\"11111111111\") || cpf.equals(\"22222222222\")\n || cpf.equals(\"33333333333\") || cpf.equals(\"44444444444\") || cpf.equals(\"55555555555\")\n || cpf.equals(\"66666666666\") || cpf.equals(\"77777777777\") || cpf.equals(\"88888888888\")\n || cpf.equals(\"99999999999\") || (cpf.length() != 11))\n return (false);\n\n char dig10, dig11;\n int sm, i, r, num, peso;\n\n // \"try\" - protege o codigo para eventuais erros de conversao de tipo (int)\n try {\n // Calculo do 1o. Digito Verificador\n sm = 0;\n peso = 10;\n for (i = 0; i < 9; i++) {\n // converte o i-esimo caractere do CPF em um numero:\n // por exemplo, transforma o caractere '0' no inteiro 0\n // (48 eh a posicao de '0' na tabela ASCII)\n num = (int) (cpf.charAt(i) - 48);\n sm = sm + (num * peso);\n peso = peso - 1;\n }\n\n r = 11 - (sm % 11);\n if ((r == 10) || (r == 11))\n dig10 = '0';\n else\n dig10 = (char) (r + 48); // converte no respectivo caractere numerico\n\n // Calculo do 2o. Digito Verificador\n sm = 0;\n peso = 11;\n for (i = 0; i < 10; i++) {\n num = (int) (cpf.charAt(i) - 48);\n sm = sm + (num * peso);\n peso = peso - 1;\n }\n\n r = 11 - (sm % 11);\n if ((r == 10) || (r == 11))\n dig11 = '0';\n else\n dig11 = (char) (r + 48);\n\n // Verifica se os digitos calculados conferem com os digitos informados.\n if ((dig10 == cpf.charAt(9)) && (dig11 == cpf.charAt(10)))\n return (true);\n else\n return (false);\n } catch (InputMismatchException erro) {\n return (false);\n }\n }", "public void setN_error(java.lang.Integer n_error) {\n this.n_error = n_error;\n }", "public ChromosomeMismatchException(String errorMsg, int wrong, int expected) {\n super(errorMsg);\n length = expected;\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray0 = new byte[7];\n byteArray0[0] = (byte)4;\n byteArray0[1] = (byte) (-1);\n byteArray0[2] = (byte)14;\n byteArray0[3] = (byte)0;\n byteArray0[4] = (byte)7;\n byteArray0[5] = (byte)0;\n byteArray0[6] = (byte) (-63);\n // Undeclared exception!\n try { \n defaultNucleotideCodec0.getNumberOfGaps(byteArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray0 = new byte[5];\n byteArray0[0] = (byte) (-3);\n byte byte0 = (byte) (-2);\n defaultNucleotideCodec0.getGappedOffsetFor(byteArray0, 2130);\n Nucleotide nucleotide0 = Nucleotide.NotCytosine;\n Set<Nucleotide> set0 = nucleotide0.getBasesFor();\n byte[] byteArray1 = defaultNucleotideCodec0.encode((Collection<Nucleotide>) set0);\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec1.toString(byteArray1);\n DefaultNucleotideCodec defaultNucleotideCodec2 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray2 = new byte[5];\n byteArray2[0] = (byte) (-2);\n byteArray2[1] = (byte) (-3);\n byteArray2[2] = (byte) (-3);\n byteArray2[3] = (byte) (-3);\n byteArray2[4] = (byte) (-3);\n // Undeclared exception!\n try { \n defaultNucleotideCodec2.toString(byteArray2);\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.lang.AbstractStringBuilder\", e);\n }\n }", "@Test\n public void testErrorDetectingOnCorrectMessage() {\n final int[] msgWithError = {0,0,1,0, 1,0,1,1, 1,0,0,0, 1,1,1,0};\n final int expectedErrorIndex = ResponseCode.NO_ERRORS.code;\n\n // When executing error detection\n final int errorIndex = HammingAlgorithm.calculateErrorIndex(msgWithError);\n\n // Then check if errorIndex is as expected\n assertThat(errorIndex).isEqualTo(expectedErrorIndex);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n } catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n Nucleotide nucleotide0 = Nucleotide.Amino;\n defaultNucleotideCodec0.encode(nucleotide0);\n int int0 = 15;\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n Range range0 = Range.ofLength(359L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range1 = Range.of(range_CoordinateSystem0, (-874L), (-874L));\n range0.isSubRangeOf(range1);\n // Undeclared exception!\n try { \n Range.ofLength((-2918L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // must be >=0\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "public static int validaEntradaOrdem() {\r\n\t\tint entrada = 0;\r\n\t\tboolean erro = false;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\terro = false;\r\n\t\t\t\tentrada = Leitura.lerInt();\r\n\t\t\t\tif (entrada > 2 || entrada < 0) {\r\n\t\t\t\t\tVisao.erroOrdemNum();\r\n\t\t\t\t\terro = true;\r\n\t\t\t\t}\r\n\t\t\t} catch (InputMismatchException excecao) {\r\n\t\t\t\tVisao.erroOrdemNum();\r\n\t\t\t\terro = true;\r\n\t\t\t}\r\n\r\n\t\t} while (erro);\r\n\t\treturn entrada;\r\n\t}", "private void validaDados(int numeroDePacientes, double gastosEmCongressos) throws Exception{\n\t\tif(numeroDePacientes >= 0) {\n\t\t\tthis.numeroDePacientes = numeroDePacientes;\n\t\t}else {\n\t\t\tthrow new Exception(\"O numero de pacientes atendidos pelo medico nao pode ser negativo.\");\n\t\t}\n\t\tif(gastosEmCongressos >= 0) {\n\t\t\tthis.gastosEmCongressos = gastosEmCongressos;\n\t\t}else {\n\t\t\tthrow new Exception(\"O total de gastos em congressos do medico nao pode ser negativo.\");\n\t\t}\n\t}", "public abstract String mensajeEliminarCelula(int f, int c);", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tint a[] = {10,10,10,10,15};\n\t\tint len =a.length;\n\t\tint j = a[0];\n\t\t//for(int i =0;i<len;i++) {\n\t\t//\tfor(int j=0;j<=10;j++) {\n\t\t\t\tfor(int i = 0;i<len;i++) {\n\t\t\t\t\n\t\t\t\n\t\t\t\tif(j != a[i]) {\n\t\t\t\t\tfor(int k =j;k<a[i];k++) {\n\t\t\t\t\tSystem.out.println(\"missing number is :\" + k);\n\t\t\t\t\t//j=a[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (j < a[i+1])\n\t\t\t\t\tj++;\n\t\t\t\t//\tj=a[i];\n\t\t\t}\n\t\t\t\t\t\t\n\t\t}", "@Test(timeout = 4000)\n public void test338() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try { \n errorPage0.numberInput(\"iW5kQK2`y/GM^W\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n verifyException(\"wheel.components.ComponentCreator\", e);\n }\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray0 = new byte[9];\n defaultNucleotideCodec0.toString(byteArray0);\n defaultNucleotideCodec0.decodedLengthOf(byteArray0);\n defaultNucleotideCodec0.decodedLengthOf(byteArray0);\n defaultNucleotideCodec0.getUngappedLength(byteArray0);\n Nucleotide nucleotide0 = Nucleotide.Gap;\n Set<Nucleotide> set0 = nucleotide0.getBasesFor();\n byte[] byteArray1 = defaultNucleotideCodec0.encode((Collection<Nucleotide>) set0);\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec1.decode(byteArray0, 0);\n DefaultNucleotideCodec defaultNucleotideCodec2 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray2 = defaultNucleotideCodec2.encode((Collection<Nucleotide>) set0);\n DefaultNucleotideCodec defaultNucleotideCodec3 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec3.toString(byteArray1);\n DefaultNucleotideCodec defaultNucleotideCodec4 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec4.isGap(byteArray0, 1553);\n defaultNucleotideCodec0.getNumberOfGapsUntil(byteArray2, (-3166));\n DefaultNucleotideCodec defaultNucleotideCodec5 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec5.isGap(byteArray0, 75);\n DefaultNucleotideCodec defaultNucleotideCodec6 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray3 = new byte[0];\n // Undeclared exception!\n try { \n defaultNucleotideCodec6.isGap(byteArray3, (-1));\n fail(\"Expecting exception: BufferUnderflowException\");\n \n } catch(BufferUnderflowException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.nio.Buffer\", e);\n }\n }", "private void txtphnoFocusLost(java.awt.event.FocusEvent evt) {\n String ph=txtphno.getText();\n char[]ch=ph.toCharArray();\n int j=0;\n if(ph.length()!=10)\n {\n JOptionPane.showMessageDialog(this, \"You Entered Wrong phone number\");\n }\n \n for(int i=0; i<ph.length(); i++)\n {\n if(ch[i]<48 || ch[i]>57)\n {\n j++;\n }\n }\n \n if(j!=0)\n {\n JOptionPane.showMessageDialog(this, \"Only Numerical Values should be Entered\");\n\n }\n }", "public void makeErrors() {\n Random rnd = new Random();\n String charset = \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz\";\n for (int i = 0; i < message.length(); i += 3) {\n message.setCharAt(i + rnd.nextInt(3),\n charset.charAt(rnd.nextInt(charset.length())));\n }\n }", "@Test(timeout = 4000)\n public void test294() throws Throwable {\n Form form0 = new Form(\"\\r\");\n // Undeclared exception!\n try { \n form0.numberInput(\"org.apache.commons.io.filefilter.WildcardFilter\", (CharSequence) \"org.apache.commons.io.filefilter.WildcardFilter\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public boolean applyErrors() {\n\t\t/*\n\t\tdouble erreur = Math.random(); // on genere un nombre entre 0 et 1\n\t\tSystem.out.print(this.error*erreur + \"\\n\");\n\t\tif (erreur * this.error < 0.07) { // on multiplie l'erreur aleatoire par l'error de la sonde (qui sera aussi compris entre 0 et 1)\n\t\t\treturn true;\t\t\t\t// si l'erreur finle (produit des deux erreur) est inferieur a 20%\n\t\t}\n\t\treturn false;\n\t\t*/\n\t\treturn true;\n\t}", "private void cuentaminas() {\n\t//TODO: falta por hacer que calcule lasminas en el borde exterior\n\t//Probar a hacerlo con un try catch\n\tint minas = 0;\n\n\tfor (int i = 0; i < filas; i++) {\n\t for (int j = 0; j < columnas; j++) {\n\t\t//\t1 2 3\n\t\t//\t4 X 5\n\t\t//\t6 7 8\n\t\ttry {\n\t\t minas += arrayBotones[i - 1][j - 1].getMina();//1\n\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i - 1][j].getMina();//2\n\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i - 1][j + 1].getMina();//3\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i][j - 1].getMina();//4\n\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i][j + 1].getMina();//5\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i + 1][j - 1].getMina();//6 \t\t \n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i + 1][j].getMina();//7\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t minas += arrayBotones[i + 1][j + 1].getMina();//8\n\t\t} catch (Exception e) {\n\t\t}\n\t\tarrayBotones[i][j].setNumeroMinasAlrededor(minas);\n\t\t//TODO: comentar la siguiente parte para que no aparezcan los numeros al iniciar\n//\t\tif (arrayBotones[i][j].getMina() == 0 && minas != 0) {\n//\t\t arrayBotones[i][j].setText(String.valueOf(minas));\n//\t\t}\n\t\tminas = 0;\n\t }\n\t}\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_9_nondecimal() {\n\t\tint i = 1;\r\n\t\t\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString ticketId = roc.createTickets(1, true)[0].get(\"ticketId\").getAsString();\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT, \r\n\t\t\t\t\t\tBASE, userData, ticketId);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, String[][].class, true, ticketId);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public BadTrackingNumberFormatException(){\n super(\"That tracking number is not correct.\");\n }", "public static int check() {\r\n\t\tint num = 0;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tnum = input.nextInt();\t\t\t// unos \r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t\t\t// hvatanje greske\r\n\t\t\t\tSystem.out.println(\"Pogresan unos, probajte ponovo\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (true);\r\n\t\treturn num;\r\n\t}" ]
[ "0.6382475", "0.6203041", "0.61842483", "0.61056256", "0.60592633", "0.5966478", "0.5935764", "0.5863586", "0.57848996", "0.5721471", "0.57104725", "0.5691752", "0.56890285", "0.56222826", "0.56182325", "0.56038535", "0.5603781", "0.5583417", "0.5550144", "0.55455226", "0.55379564", "0.55344313", "0.5530641", "0.5530458", "0.5507384", "0.5503879", "0.54985476", "0.54899913", "0.5487613", "0.547793", "0.5473624", "0.5467177", "0.54618454", "0.54252076", "0.54230464", "0.5422555", "0.54026335", "0.5401206", "0.53979576", "0.5392828", "0.5378779", "0.53746617", "0.53680325", "0.5367775", "0.5363341", "0.5358867", "0.5353639", "0.53475636", "0.53468037", "0.5343788", "0.5330953", "0.5325164", "0.53218615", "0.532105", "0.5318174", "0.5298452", "0.5282904", "0.5274547", "0.52706903", "0.5266264", "0.52658534", "0.5264227", "0.52640456", "0.52607906", "0.5258857", "0.52544665", "0.5248837", "0.5243709", "0.5240266", "0.5239475", "0.52355266", "0.523411", "0.5231225", "0.5227268", "0.5222729", "0.52194935", "0.5217471", "0.52157557", "0.5209221", "0.5201213", "0.51925004", "0.51915294", "0.5185412", "0.518537", "0.5185159", "0.5183347", "0.5182315", "0.51814014", "0.5180595", "0.5178792", "0.51739186", "0.5168597", "0.5168289", "0.516394", "0.516394", "0.516394", "0.516394", "0.516394", "0.5162628", "0.5160804", "0.51596874" ]
0.0
-1
fill up the data for the table if validation errors occured
@Override public Resolution handleValidationErrors(ValidationErrors errors) throws Exception { trips = facade.getAllTrips(); excursions = facade.getAllExcursions(); //return null to let the event handling continue return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validate() {\n for (DBRow row : rows) {\n for (DBColumn column : columns) {\n Cell cell = Cell.at(row, column);\n DBValue value = values.get(cell);\n notNull(value,\"Cell \" + cell);\n }\n }\n }", "private void validateData() {\n }", "private void fillData() {\n table.setRowList(data);\n }", "@Test\r\n\tpublic void view3_current_table_data_validation()\r\n\t{\t\r\n\t\t//Key on which we have to validate other values.\r\n\t\tString key = \"Calls In Queue\";\r\n\t\t//Text on which we will fetch other tables columns\r\n\t\tString check_text = \"Agents\";\r\n\r\n\t\t//Initialize Elements of tables and their columns data.\r\n\r\n\t\t//Table 1 - Data\r\n\t\tList<WebElement> data_of_table1 = driver.findElements(view3_Current_table_data_val);\r\n\t\t//Table 1 - Columns\r\n\t\tList<WebElement> col_of_table1 = driver.findElements(By.xpath(view3_curr_data_table));\r\n\t\t//Removing Column data from another table.\r\n\t\tdata_of_table1 = helper.modify_cols_data_of_table(col_of_table1, data_of_table1 , check_text );\r\n\t\t//Validating N/A and integer for columns\r\n\t\thelper.data_validate_Down(driver, key , col_of_table1, data_of_table1 );\r\n\t}", "public void validation() {\n ValidationData();\n if (Validation == null) {\n Toast.makeText(this, \"No Data Found\", Toast.LENGTH_SHORT).show();\n } else {\n getHistory();\n }\n }", "private boolean tableDataValid()\r\n {\r\n // if there are any form level validations that should go there\r\n int rowTotal = tblProtoCorresp.getRowCount();\r\n int colTotal = tblProtoCorresp.getColumnCount();\r\n for (int rowIndex = 0; rowIndex < rowTotal ; rowIndex++)\r\n {\r\n for (int colIndex = 0; colIndex < colTotal; colIndex++)\r\n {\r\n TableColumn column = codeTableColumnModel.getColumn(colIndex) ;\r\n\r\n ColumnBean columnBean = (ColumnBean)column.getIdentifier() ;\r\n\r\n if (columnBean.getColumnEditable()\r\n && !columnBean.getColumnCanBeNull())\r\n {\r\n if ( tblProtoCorresp.getValueAt(rowIndex,colIndex) != null)\r\n {\r\n if (tblProtoCorresp.getValueAt(rowIndex,colIndex).equals(\"\")\r\n || tblProtoCorresp.getValueAt(rowIndex,colIndex).toString().trim().equals(\"\") )\r\n {\r\n String msg = coeusMessageResources.parseMessageKey(\r\n \"checkInputValue_exceptionCode.2402\");\r\n String msgColName = \" \" + columnBean.getDisplayName() + \". \";\r\n CoeusOptionPane.showInfoDialog(msg + msgColName);\r\n tblProtoCorresp.changeSelection(rowIndex, colIndex, false, false) ;\r\n return false;\r\n }\r\n }\r\n else\r\n {\r\n String msg = coeusMessageResources.parseMessageKey(\r\n \"checkInputValue_exceptionCode.2402\");\r\n\r\n String msgColName = \" \" + columnBean.getDisplayName() + \". \";\r\n CoeusOptionPane.showInfoDialog(msg + msgColName);\r\n tblProtoCorresp.changeSelection(rowIndex, colIndex, false, false) ;\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n }\r\n return true ;\r\n }", "private void batchValidate() {\n lblIdError.setText(CustomValidator.validateLong(fieldId));\n lblNameError.setText(CustomValidator.validateString(fieldName));\n lblAgeError.setText(CustomValidator.validateInt(fieldAge));\n lblWageError.setText(CustomValidator.validateDouble(fieldWage));\n lblActiveError.setText(CustomValidator.validateBoolean(fieldActive));\n }", "private void validation() {\n Pattern pattern = validationfilterStringData();\n if (pattern.matcher(txtDrug.getText().trim()).matches() && pattern.matcher(txtGenericName.getText().trim()).matches()) {\n try {\n TblTreatmentadvise treatmentadvise = new TblTreatmentadvise();\n treatmentadvise.setDrugname(txtDrug.getText());\n treatmentadvise.setGenericname(txtGenericName.getText());\n treatmentadvise.setTiming(cmbDosestiming.getSelectedItem().toString());\n cmbtiming.setSelectedItem(cmbDosestiming);\n treatmentadvise.setDoses(loadcomboDoses());\n treatmentadvise.setDuration(loadcomboDuration());\n PatientService.saveEntity(treatmentadvise);\n JOptionPane.showMessageDialog(this, \"SAVE SUCCESSFULLY\");\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, \"STARTUP THE DATABASE CONNECTION\");\n }\n } else {\n JOptionPane.showMessageDialog(this, \"WRONG DATA ENTERED.\");\n }\n }", "@Test\r\n\tpublic void view3_COEs_table_data_validation()\r\n\t{\t\r\n\t\t//Key on which we have to validate other values.\r\n\t\tString key = \"Calls In Queue\";\r\n\t\t//Text on which we will fetch other tables columns\r\n\t\tString check_text = \"Agents\";\r\n\r\n\t\t//Initialize Elements of tables and their columns data.\r\n\t\t//Table 3 - Data .\r\n\t\tList<WebElement> data_of_table3 = driver.findElements(view3_COEs_table_data_val);\r\n\t\t//Table 3 - Columns\r\n\t\tList<WebElement> col_of_table3 = driver.findElements(By.xpath(view3_curr_agent_stats_col));\r\n\t\t//Table 1 - Data\r\n\t\tList<WebElement> updated_col_table1 = driver.findElements(view3_Current_table_data_val);\r\n\t\t//Table 1 - Colums\r\n\t\tList<WebElement> col_of_table1 = driver.findElements(By.xpath(view3_curr_data_table));\r\n\t\t\r\n\t\t//Adding Column data from another table.\r\n\t\tdata_of_table3 = helper.modify_cols_data_of_table(col_of_table1, data_of_table3, updated_col_table1 , check_text );\r\n\t\t//Validating N/A and integer for columns\r\n\t\thelper.data_validate_Down(driver, key , col_of_table3, data_of_table3 );\r\n\t}", "private void repopulateTableForAdd()\n {\n clearTable();\n populateTable(null);\n }", "@Test\r\n\tpublic void view3_todays_table_data_validation()\r\n\t{\t\r\n\t\t//Key on which we have to validate other values.\r\n\t\tString key = \"CML Service Level\";\r\n\r\n\t\t//Initialize Elements of tables and their columns data.\r\n\r\n\t\t//Table 1 - Data\r\n\t\tList<WebElement> data_of_table2 = driver.findElements(view3_todays_table_data_val);\r\n\t\t//Table 1 - Colums\r\n\t\tList<WebElement> col_of_table2 = driver.findElements(By.xpath(view3_today_data_table));\r\n\t\t//Validating N/A and integer for columns\r\n\t\thelper.data_validate_Down(driver, key , col_of_table2, data_of_table2 );\r\n\t}", "public void ValidationData() {\n try {\n ConnectionClass connectionClass = new ConnectionClass();\n connect = connectionClass.CONN();\n if (connect == null) {\n ConnectionResult = \"Check your Internet Connection\";\n } else {\n String query = \"Select No from machinestatustest where Line='\" + Line + \"' and Station = '\" + Station + \"'\";\n Statement stmt = connect.createStatement();\n ResultSet rs = stmt.executeQuery(query);\n if (rs.next()) {\n Validation = rs.getString(\"No\");\n }\n ConnectionResult = \"Successfull\";\n connect.close();\n }\n } catch (Exception ex) {\n ConnectionResult = ex.getMessage();\n }\n }", "private void fillMandatoryFields() {\n\n }", "private void fillData() {\n jTextField1.setEnabled(false);\n jTextField11.setEnabled(false);\n\n if (owners != null && owners.get(\"editedOwner\") != null) {\n this.jTextField1.setText(owners.get(\"editedOwner\").getAsJsonObject().get(\"rc\").getAsString());\n this.jTextField11.setText(owners.get(\"editedOwner\").getAsJsonObject().get(\"share\").getAsString());\n }\n String[] header = new String[]{\"Rodné čislo\", \"Podiel v %\"};\n dtm.setColumnIdentifiers(header);\n jTableOwnerships.setModel(dtm);\n if (owners != null && owners.get(\"ownerships\") != null) {\n for (JsonElement jsonElement : owners.get(\"ownerships\").getAsJsonArray()) {\n JsonObject owner = (JsonObject) jsonElement;\n dtm.addRow(new Object[]{owner.get(\"rc\").getAsString(), owner.get(\"share\").getAsString()});\n }\n }\n }", "@Test(enabled=true, priority =1)\r\n\tpublic void view3_validate_table_data() {\r\n\r\n\t\thelper.validate_table_names( driver.findElement(view3_curr_data) , \"Test_View3\" , \"view3_curr_data\" );\t\r\n\t\thelper.validate_table_columns( view3_curr_data_table , driver , \"\" , \"Test_View3\" , \"view3_curr_data_table\" );\r\n\r\n\t\thelper.validate_table_names( driver.findElement(view3_today_data) , \"Test_View3\" , \"view3_today_data\" );\r\n\t\thelper.validate_table_columns( view3_today_data_table , driver , \"\" , \"Test_View3\" , \"view3_today_data_table\" );\r\n\r\n\t\thelper.validate_table_names( driver.findElement(view3_curr_agent_stats_tbl) , \"Test_View3\" , \"view3_curr_agent_stats_tbl\" );\r\n\t\thelper.validate_table_columns( view3_curr_agent_stats_col , driver , \"\" , \"Test_View3\" , \"view3_curr_agent_stats_col\" );\r\n\r\n\t\thelper.validate_table_names( driver.findElement(view3_agent_details) , \"Test_View3\" , \"view3_agent_details\" );\t\r\n\t\thelper.validate_table_columns( view3_Agent_table_data_start , driver , view3_Agent_table_data_end , \"Test_View3\" , \"view3_Agent_table_data\" );\r\n\t}", "private void fillTable(){\n tblModel.setRowCount(0);// xoa cac hang trong bang\n \n for(Student st: list){\n tblModel.addRow(new String[]{st.getStudentId(), st.getName(), st.getMajor(),\"\"\n + st.getMark(), st.getCapacity(), \"\" + st.isBonnus()});\n // them (\"\" + )de chuyen doi kieu float va boolean sang string\n \n }\n tblModel.fireTableDataChanged();\n }", "public void populateDataOnTable() {\n /*Defining default table model*/\n DefaultTableModel dtm = new DefaultTableModel(){\n\n @Override\n public boolean isCellEditable(int row, int column) {\n //all cells false\n return false;\n }\n };\n \n try{\n dtm.addColumn(\"Client Id\");\n dtm.addColumn(\"Request Date\");\n dtm.addColumn(\"Request Id\");\n dtm.addColumn(\"Request Subject\");\n dtm.addColumn(\"Description\");\n dtm.addColumn(\"Response Date\");\n dtm.addColumn(\"Response Id\");\n dtm.addColumn(\"Response Subject\");\n dtm.addColumn(\"Description\");\n \n /*Getting the value of clientId and setting it to the request and response*/\n BLRequestResponse blRequestResponse = new BLRequestResponse();\n ResultSet rs = blRequestResponse.selectParticularClientRequestResponse(txt_username.getText()); \n \n while(rs.next()) {\n Object objData[] = new Object[9];\n //objData[0] = this.setInt(num);\n objData[0] = rs.getInt(\"clientId\");\n objData[1] = rs.getString(\"reqDate\");\n objData[2] = rs.getInt(\"requestId\");\n objData[3] = rs.getString(\"requestSubject\");\n objData[4] = rs.getString(\"requestDescrip\");\n objData[5] = rs.getString(\"resDate\");\n objData[6] = rs.getInt(\"responseId\");\n objData[7] = rs.getString(\"responseSubject\");\n objData[8] = rs.getString(\"responseDescrip\");\n \n dtm.addRow(objData);\n }\n this.jTable1.setModel(dtm);\n }catch(Exception ex){\n JOptionPane.showMessageDialog(null, ex.getMessage(), \"Exception\", JOptionPane.INFORMATION_MESSAGE);\n }\n }", "private void populateTableData() {\n DefaultTableModel model = (DefaultTableModel) jTable1.getModel();\n model.setRowCount(0);\n for (Organization o : organizationDirectory.getOrganizationList()) {\n Object[] row = new Object[1];\n row[0] = o;\n //row[1] = o.getOrgName();\n model.addRow(row);\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (record != null) {\n record.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (record != null) {\n record.validate();\n }\n }", "public void populateTable()\n {\n DefaultTableModel model = (DefaultTableModel)workRequestJTable.getModel();\n \n model.setRowCount(0);\n for(WorkRequest request : weatherOrganisation.getWorkQueue().getWorkRequestList())\n {\n Object[] row = new Object[5];\n row[0] = request;\n \n row[1] = request.getStatus();\n row[2] = request.getRequestDate();\n row[3] = request.getResolveDate();\n row[4] = request.getDriverAcknowledgement();\n \n model.addRow(row);\n \n }\n \n }", "private void validate() {\n\n etCardNumber.validate();\n\n etCardExpiryDate.validate();\n\n etCardCvv.validate();\n\n etCardHolderName.validate();\n\n etPhoneNumber.validate();\n\n etCustomerName.validate();\n }", "private void checkTableRecord(final String value) {\n final DataSource dsValidatation = DataSourceFactory.createDataSource();\n dsValidatation.addTable(AFM_TBLS);\n dsValidatation.addField(TABLE_NAME);\n dsValidatation.addRestriction(Restrictions.eq(AFM_TBLS, TABLE_NAME, value));\n if (dsValidatation.getRecords().isEmpty() && !isTableNameSelected(value)) {\n this.requiredTablesNames.add(value);\n this.isDependencyNeeded = true;\n }\n }", "public void validateAfterParse() \r\n\t{\n\t\tValidate.fieldNotBlank(getName(), \"name\");\r\n\t\t\r\n\t\t//Must have columns and they can't be null\r\n\t\tValidate.fieldNotEmptyWithNoNullElements(getColumns(), \"columns\");\r\n\t\t\r\n\t\tint numPrimaryKeysDefined = 0;\r\n\t\t\r\n\t\tfor (ColumnDefinition def : getColumns())\r\n\t\t{\r\n\t\t\tif (def.isPrimaryKey())\r\n\t\t\t{\r\n\t\t\t\tnumPrimaryKeysDefined++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Can only have 1 PK\r\n\t\tValidate.isTrue(numPrimaryKeysDefined == 1);\r\n\r\n\t\tfor (ColumnDefinition def : getColumns())\r\n\t\t{\r\n\t\t\tdef.validateAfterParse();\r\n\t\t}\r\n\t\t\r\n\t\t//Check over indexes, make sure each column name for the indexes actually exists\r\n\t\tfor(IndexDefinition def : getIndexes())\r\n\t\t{\r\n\t\t\tfor(String idxColName : def.getColumnNames())\r\n\t\t\t{\r\n\t\t\t Validate.isTrue(getColumns().contains(ColumnDefinition.valueOf(idxColName))); //Can't use containsColumn yet as that map gets initialized in postParse()\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void loadingTable() {\n this.setRowCount(1, true);\r\n this.setVisibleRangeAndClearData(this.getVisibleRange(), true);\r\n }", "private void refreshTable() {\n dataPanel.getModel().setRowCount(0);\n try {\n ResultSet resultSet = reg.get();\n while (resultSet.next()) {\n dataPanel.getModel().addRow(new Object[]{\n resultSet.getInt(\"id\"),\n resultSet.getString(\"first_name\"),\n resultSet.getString(\"last_name\"),\n resultSet.getString(\"username\"),\n resultSet.getString(\"password\"),\n resultSet.getInt(\"age\"),\n resultSet.getString(\"gender\"),\n });\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "public void setDataValidation(String dataValidation);", "private RowData() {\n initFields();\n }", "@Override\n protected void initData()\n {\n super.initData();\n\n entityProps = getFormSession().getAssemblingMessageEntityProperties();\n\n refreshDataTable(entityProps);\n }", "public void validate() {\n\t\tthis.invalidated = false;\n\t}", "private void validator() throws Exception {\n if (getDBTable() == null) throw new Exception(\"getDBTable missing\");\n if (getColumnsString() == null) throw new Exception(\"getColumnsString missing\");\n if (getColumnsType() == null || getColumnsType().size() <= 0) throw new Exception(\"getColumnsType missing\");\n if (getDuplicateUpdateColumnString() == null) {\n if (getColumnsString().split(\",\").length != getColumnsType().size())\n throw new Exception(\"mismatch for type and columns\");\n\n } else {\n if (getColumnsString().split(\",\").length +\n getDuplicateUpdateColumnString().split(\",\").length != getColumnsType().size())\n throw new Exception(\"mismatch for type and columns\");\n }\n }", "private boolean validateData() {\n if (!mCommon.validateData()) return false;\n\n Core core = new Core(this);\n\n // Due Date is required\n if (TextUtils.isEmpty(getRecurringTransaction().getDueDateString())) {\n core.alert(R.string.due_date_required);\n return false;\n }\n\n if (TextUtils.isEmpty(mCommon.viewHolder.dateTextView.getText().toString())) {\n core.alert(R.string.error_next_occurrence_not_populate);\n\n return false;\n }\n\n // Payments Left must have a value\n if (getRecurringTransaction().getPaymentsLeft() == null) {\n core.alert(R.string.payments_left_required);\n return false;\n }\n return true;\n }", "public void populateDiseaseTable() {\r\n DefaultTableModel dtm = (DefaultTableModel) tblDisease.getModel();\r\n dtm.setRowCount(0);\r\n for (Conditions disease : system.getConditionsList().getConditionList()) {\r\n Object[] row = new Object[2];\r\n row[0] = disease;\r\n row[1] = disease.getDiseaseId();\r\n dtm.addRow(row);\r\n }\r\n }", "private void setTable() {\n try {\n DefaultTableModel dtm = (DefaultTableModel) table.getModel();\n dtm.setRowCount(0);\n ArrayList<Item> itemList = ItemController.getAllItem();\n if (itemList != null) {\n for (Item item : itemList) {\n String qoh = BatchController.getQOH(item.getCode());\n if (qoh != null) {\n if (item.getRol() >= Integer.valueOf(qoh)) {\n Object row[] = {item.getCode(), item.getDesciption(), item.getRol(), qoh};\n dtm.addRow(row);\n }\n }\n\n }\n }\n if (dtm.getRowCount() == 0) {\n JOptionPane.showMessageDialog(this, \"Stock level is above ROL\");\n }\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(ROL.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(ROL.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "protected boolean isValidData() {\n return true;\n }", "protected void validate()\r\n\t{\r\n\t\tif( this.mapper==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the Mapper of this dataset.\");\r\n\t\tif( this.input_format==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the InputFormat of this dataset.\");\r\n\t\tif( this.inputs==null || this.inputs.size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the input path(s) of this dataset\");\r\n\t\tif ( this.getSchema()==null || this.getSchema().size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the schema of this dataset first\");\r\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "public void validate() throws org.apache.thrift.TException {\n if (tableType == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'tableType' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'numCols' because it's a primitive and you chose the non-beans generator.\n // alas, we cannot check 'numClusteringCols' because it's a primitive and you chose the non-beans generator.\n if (tableName == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'tableName' was not present! Struct: \" + toString());\n }\n if (dbName == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'dbName' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n if (hdfsTable != null) {\n hdfsTable.validate();\n }\n if (hbaseTable != null) {\n hbaseTable.validate();\n }\n if (dataSourceTable != null) {\n dataSourceTable.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (success != null) {\r\n success.validate();\r\n }\r\n }", "private void populateTable() {\n \n DefaultTableModel dtm = (DefaultTableModel) tblAllCars.getModel();\n dtm.setRowCount(0);\n \n for(Car car : carFleet.getCarFleet()){\n \n Object[] row = new Object[8];\n row[0]=car.getBrandName();\n row[1]=car.getModelNumber();\n row[2]=car.getSerialNumber();\n row[3]=car.getMax_seats();\n row[4]=car.isAvailable();\n row[5]=car.getYearOfManufacturing();\n row[6]=car.isMaintenenceCerticateExpiry();\n row[7]=car.getCity();\n \n dtm.addRow(row);\n \n }\n }", "public void validate() {\n\t\terrors.clear();\n\t\t\n\t\tif(!this.id.isEmpty()) {\n\t\t\ttry {\n\t\t\t\tLong.parseLong(this.id);\n\t\t\t} catch(NumberFormatException ex) {\n\t\t\t\terrors.put(\"id\", \"Id is not valid.\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(this.firstName.isEmpty()) {\n\t\t\terrors.put(\"firstName\", \"First name is obligatory!\");\n\t\t}\n\t\t\n\t\tif(this.lastName.isEmpty()) {\n\t\t\terrors.put(\"lastName\", \"Last name is obligatory!\");\n\t\t}\n\t\t\n\t\tif(this.nick.isEmpty()) {\n\t\t\terrors.put(\"nick\", \"Nick is obligatory!\");\n\t\t}\n\t\t\n\t\tif(DAOProvider.getDAO().doesNickAlreadyExist(nick)) {\n\t\t\terrors.put(\"nick\", \"Nick already exist!\");\n\t\t}\n\n\t\tif(this.email.isEmpty()) {\n\t\t\terrors.put(\"email\", \"EMail is obligatory!\");\n\t\t} else {\n\t\t\tint l = email.length();\n\t\t\tint p = email.indexOf('@');\n\t\t\tif(l<3 || p==-1 || p==0 || p==l-1) {\n\t\t\t\terrors.put(\"email\", \"EMail is not valid.\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(this.password.isEmpty()) {\n\t\t\terrors.put(\"password\", \"Password is obligatory!\");\n\t\t}\n\t}", "public void validate() throws org.apache.thrift.TException {\n if (success != null) {\n success.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (success != null) {\n success.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (success != null) {\n success.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (success != null) {\n success.validate();\n }\n }", "public void iniciarValidacaoCorrespondencias(Dataset dataset);", "private void repopulateTableForDelete()\n {\n clearTable();\n populateTable(null);\n }", "private void updateRecord() {\r\n int empId = -1;\r\n boolean hasError = false;\r\n try {\r\n empId = Integer.parseInt(employeeYearsOfWorkJTextField.getText());\r\n } catch (NumberFormatException e) {\r\n hasError = true;\r\n JOptionPane.showMessageDialog(this, \"Employee id must be integer\");\r\n }\r\n String telephone = employeeNumberJTextField.getText();\r\n String name = employeeNameJTextField.getText();\r\n int years = -1;\r\n try {\r\n years = Integer.parseInt(employeeYearsOfWorkJTextField.getText());\r\n } catch (NumberFormatException e) {\r\n hasError = true;\r\n JOptionPane.showMessageDialog(this, \"Years of works must be an integer\");\r\n }\r\n if (!hasError) {\r\n records.add(new Record(empId, telephone, name, years));\r\n }\r\n }", "private void checkAndCompleteData(Shipping3VO vo, boolean create) throws Exception {\r\n\t\tif (create) {\r\n\t\t\tif (vo.getShippingId() != null) {\r\n\t\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\t\"Primary key is already set! This must be done automatically. Please, set it to null!\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (vo.getShippingId() == null) {\r\n\t\t\t\tthrow new IllegalArgumentException(\"Primary key is not set for update!\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t// check value object\r\n\t\tvo.checkValues(create);\r\n\t\t// TODO check primary keys for existence in DB\r\n\t}", "public boolean Validate() {\n String[] testArr = {titleTxf.getText(), fNameTxf.getText(), sNameTxf.getText(),\n initialTxf.getText(), hNumTxf.getText(), cNumTxf.getText(), emailTxf.getText(), idNumTxf.getText(),\n (String) maritalCbx.getSelectedItem(), \n resTxf1.getText() + \"\" + resTxf2.getText(), zipResTxf.getText(),postTxf1.getText() + \"\" + postTxf2.getText(),\n zipPostTxf.getText() };\n\n // verify user has entered data into required fields\n String inputTest = \"\";\n\n for (int i = 0; i < testArr.length; i++) {\n if (testArr[i].equals(inputTest)) {\n\n JOptionPane.showMessageDialog(rootPane, \"please fill in all required fields\", \"ERROR\", ERROR_MESSAGE);\n \n return false;\n \n\n }\n \n \n }\n //verify Home number\n if(hNumTxf.getText().length()!=10){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild Home number\", \"ERROR\", ERROR_MESSAGE);\n errHNum.setText(\"!\");\n \n return false;\n }\n else{\n errHNum.setText(\"\");\n }\n //verify CellNo\n if(cNumTxf.getText().length()!=10){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild Cellphone number\", \"ERROR\", ERROR_MESSAGE);\n errCNum.setText(\"!\");\n \n return false;\n \n }\n else{\n errCNum.setText(\"\");\n }\n //verify email\n String email =emailTxf.getText(); \n if(!email.contains(\"@\")|| !email.contains(\".\")){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild email address\", \"ERROR\", ERROR_MESSAGE);\n errEmail.setText(\"!\");\n return false;\n }\n else{\n errEmail.setText(\"\");\n }\n \n //verify ID No. (Local)\n String ID = idNumTxf.getText();\n if(ID.length()!=13){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild ID number\", \"ERROR\", ERROR_MESSAGE);\n errID.setText(\"!\");\n return false;\n }\n else{\n errID.setText(\"\");\n }\n \n if(zipResTxf.getText().length()!=4){\n JOptionPane.showMessageDialog(rootPane, \"Invaild Zip Code\", \"ERROR\", ERROR_MESSAGE);\n errZipRes.setText(\"!\");\n return false;\n \n }\n else{\n \n errZipRes.setText(\"\");\n }\n if(zipPostTxf.getText().length()!=4){\n JOptionPane.showMessageDialog(rootPane, \"Invaild Zip Code\", \"ERROR\", ERROR_MESSAGE);\n errZipPost.setText(\"!\");\n return false;\n \n }\n else{\n \n errZipPost.setText(\"\");\n }\n \n \n return true;\n\n }", "protected void fillTable() {\r\n\t\ttabDate.setCellValueFactory(new PropertyValueFactory<TableRowAllTransactions, String>(\"transactionDate\"));\r\n\t\ttabSenderNumber.setCellValueFactory(new PropertyValueFactory<TableRowAllTransactions, String>(\"senderNumber\"));\r\n\t\ttabReceiverNumber\r\n\t\t\t\t.setCellValueFactory(new PropertyValueFactory<TableRowAllTransactions, String>(\"receiverNumber\"));\r\n\t\ttabAmount.setCellValueFactory(new PropertyValueFactory<TableRowAllTransactions, BigDecimal>(\"amount\"));\r\n\t\ttabReference.setCellValueFactory(new PropertyValueFactory<TableRowAllTransactions, String>(\"reference\"));\r\n\r\n\t\tList<TableRowAllTransactions> tableRows = new ArrayList<TableRowAllTransactions>();\r\n\r\n\t\tfor (Transaction transaction : transactionList) {\r\n\t\t\tTableRowAllTransactions tableRow = new TableRowAllTransactions();\r\n\t\t\ttableRow.setTransactionDate(\r\n\t\t\t\t\tnew SimpleDateFormat(\"dd.MM.yyyy HH:mm:ss\").format(transaction.getTransactionDate()));\r\n\t\t\ttableRow.setSenderNumber(transaction.getSender().getNumber());\r\n\t\t\ttableRow.setReceiverNumber(transaction.getReceiver().getNumber());\r\n\t\t\ttableRow.setAmount(transaction.getAmount());\r\n\t\t\ttableRow.setReferenceString(transaction.getReference());\r\n\t\t\ttableRows.add(tableRow);\r\n\r\n\t\t}\r\n\r\n\t\tObservableList<TableRowAllTransactions> data = FXCollections.observableList(tableRows);\r\n\t\ttabTransaction.setItems(data);\r\n\t}", "public void populateDataToTable() throws SQLException {\n model = (DefaultTableModel) tblOutcome.getModel();\n List<Outcome> ouc = conn.loadOutcome();\n int i = 1;\n for (Outcome oc : ouc) {\n Object[] row = new Object[5];\n row[0] = i++;\n row[1] = oc.getCode_outcome();\n row[2] = oc.getTgl_outcome();\n row[3] = oc.getJml_outcome();\n row[4] = oc.getKet_outcome();\n model.addRow(row);\n }\n }", "private void loadAllToTable() {\n try {\n ArrayList<ItemDTO> allItems=ip.getAllItems();\n DefaultTableModel dtm=(DefaultTableModel) tblItems.getModel();\n dtm.setRowCount(0);\n \n if(allItems!=null){\n for(ItemDTO item:allItems){\n \n Object[] rowdata={\n item.getiId(),\n item.getDescription(),\n item.getQtyOnHand(),\n item.getUnitPrice()\n \n };\n dtm.addRow(rowdata);\n \n }\n }\n } catch (Exception ex) {\n Logger.getLogger(AddItem.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n }", "private void loadData() {\n\n // connect the table column with the attributes of the patient from the Queries class\n id_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"pstiantID\"));\n name_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n date_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"reserveDate\"));\n time_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"reserveTime\"));\n\n try {\n\n // database related code \"MySql\"\n ps = con.prepareStatement(\"select * from visitInfo \");\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n\n // load data to the observable list\n editOL.add(new Queries(new SimpleStringProperty(rs.getString(\"id\")),\n new SimpleStringProperty(rs.getString(\"patiantID\")),\n new SimpleStringProperty(rs.getString(\"patiant_name\")),\n new SimpleStringProperty(rs.getString(\"visit_type\")),\n new SimpleStringProperty(rs.getString(\"payment_value\")),\n new SimpleStringProperty(rs.getString(\"reserve_date\")),\n new SimpleStringProperty(rs.getString(\"reserve_time\")),\n new SimpleStringProperty(rs.getString(\"attend_date\")),\n new SimpleStringProperty(rs.getString(\"attend_time\")),\n new SimpleStringProperty(rs.getString(\"payment_date\")),\n new SimpleStringProperty(rs.getString(\"attend\")),\n new SimpleStringProperty(rs.getString(\"attend_type\"))\n\n ));\n }\n\n // assigning the observable list to the table\n table_view_in_edit.setItems(editOL);\n\n ps.close();\n rs.close();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "public void initTable() {\n\t\n\t\temployeeTableModel.clearTable();\n\t\tfor (buchungssystem.models.employee.Employee employee : currentUser.getAllEmployees()) {\n\t\t\tObject [] row = new Object[7];\n\t\t\tif (employee.isValid() == true) {\n\t\t\t\trow[0] = employee.getFirstName();\n\t\t\t\trow[1] = employee.getLastName();\n\t\t\t\trow[2] = employee.getEmail();\n\t\t\t\trow[3] = employee.getPhoneNumber();\t\t\t\n\t\t\t\trow[4] = currentUser.getEmployeeRoleByID(employee.getRoleID()).getRole();\n\t\t\t\tif (employee.getUserID() != null) {\n\t\t\t\t\trow[5] = currentUser.getUserByID(employee.getUserID()).getLogin();\n\t\t\t\t} else {\n\t\t\t\t\trow[5] = \"keinen User angelegt\";\n\t\t\t\t}\n\t\t\t\trow[6] = employee.getId();\n\t\t\t\temployeeTableModel.addRow(row);\n\t\t\t}\n\n\t\t}\n\t\t//hide the Column with the Employee ID\n\t\temployeeTable.getColumnModel().getColumn(6).setMinWidth(0);\n\t\temployeeTable.getColumnModel().getColumn(6).setMaxWidth(0);\n\t\t//employeeTable.removeColumn(employeeTable.getColumnModel().getColumn(6));\n\t}", "private boolean triggerValidation()\r\n {\r\n System.out.println(\"*** Validation row : \" + selRow + \" col : \" + selColumn + \" ***\") ;\r\n /*\r\n * using the colIndex u can get the column bean for that column and then depending the\r\n * datatype of the column u apply appropriate validation rules\r\n */\r\n Object newValue = ((CoeusTextField)txtCell).getText();\r\n\r\n if (!tableStructureBeanPCDR.isIdAutoGenerated()\r\n && (selColumn == tableStructureBeanPCDR.getPrimaryKeyIndex(0)))\r\n {\r\n if (checkDependency(selRow, \"\"))\r\n {\r\n if(!CheckUniqueId(newValue.toString(), selRow, selColumn))\r\n {\r\n String msg = coeusMessageResources.parseMessageKey(\r\n \"chkPKeyUniqVal_exceptionCode.2401\");\r\n\r\n CoeusOptionPane.showInfoDialog(msg);\r\n //after failure of checking, make sure selecting the failed row\r\n\r\n return false; //fail in uniqueid check\r\n }\r\n else\r\n {\r\n return true;\r\n }\r\n }\r\n else\r\n {\r\n return false;//fail in dependency check\r\n }\r\n\r\n }\r\n else\r\n {\r\n return true;\r\n }\r\n\r\n\r\n }", "private void validateCreateTable(ConnectorTableMetadata meta)\n {\n validateColumns(meta);\n validateLocalityGroups(meta);\n if (!AccumuloTableProperties.isExternal(meta.getProperties())) {\n validateInternalTable(meta);\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (success != null) {\n success.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (success != null) {\n success.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (success != null) {\n success.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (success != null) {\n success.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (success != null) {\n success.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (success != null) {\n success.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (success != null) {\n success.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (success != null) {\n success.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (success != null) {\n success.validate();\n }\n }" ]
[ "0.7023302", "0.66613173", "0.66378176", "0.6496365", "0.6452378", "0.6441538", "0.63182205", "0.6305283", "0.62390506", "0.6198751", "0.61342543", "0.6049777", "0.5995553", "0.5973848", "0.5966794", "0.59132063", "0.58762395", "0.58048797", "0.5793437", "0.5793437", "0.57865644", "0.5776385", "0.575083", "0.5748658", "0.57037586", "0.56776047", "0.5657072", "0.5642674", "0.5635395", "0.5622485", "0.5617664", "0.5617417", "0.561495", "0.56131494", "0.5605156", "0.5595223", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.5581502", "0.55682033", "0.5558427", "0.5550474", "0.55425787", "0.55417097", "0.55417097", "0.55417097", "0.55417097", "0.55402106", "0.55345887", "0.55312645", "0.55282986", "0.55168426", "0.55146277", "0.55089945", "0.5505736", "0.5502529", "0.54916644", "0.54810286", "0.54694796", "0.54650784", "0.54650784", "0.54650784", "0.54650784", "0.54650784", "0.54650784", "0.54650784", "0.54650784", "0.54650784" ]
0.0
-1
part for deleting a book
public Resolution delete() { log.debug("delete() excursion={}", excursion); //only id is filled by the form excursion = facade.getExcursion(excursion.getId()); facade.deleteExcursion(excursion); getContext().getMessages().add(new LocalizableMessage("excursion.delete.message",escapeHTML(excursion.getDescription()))); return new RedirectResolution(this.getClass(), "list"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void deleteBook() {\n\t\t\n\t}", "private void deleteBook() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Delete the book only if mBookId matches DEFAULT_BOOK_ID\n if (mBookId != DEFAULT_BOOK_ID) {\n bookEntry.setId(mBookId);\n mDb.bookDao().deleteBook(bookEntry);\n }\n finish();\n }\n });\n\n }", "void delete(Book book);", "private void deleteBook() {\n // Only perform the delete if this is an existing book.\n if (currentBookUri != null) {\n // Delete an existing book.\n int rowsDeleted = getContentResolver().delete(currentBookUri, null,\n null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, R.string.delete_error, Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful, display a toast.\n Toast.makeText(this, R.string.delete_successful, Toast.LENGTH_SHORT).show();\n }\n }\n // Exit the activity.\n finish();\n }", "@Override\r\n\tpublic int deleteBook(int book_id) {\n\t\treturn 0;\r\n\t}", "private void deleteBook() {\n if (currentBookUri != null) {\n int rowsDeleted = getContentResolver().delete(currentBookUri, null, null);\n\n // Confirmation or failure message on whether row was deleted from database\n if (rowsDeleted == 0)\n Toast.makeText(this, R.string.editor_activity_book_deleted_error, Toast.LENGTH_SHORT).show();\n else\n Toast.makeText(this, R.string.editor_activity_book_deleted, Toast.LENGTH_SHORT).show();\n }\n finish();\n }", "public void delete(Book book){\n try{\n String query = \"DELETE FROM testdb.book WHERE id=\" + book.getId();\n DbConnection.update(query);\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }", "@Override\n\tpublic int deleteBook(int bookID) {\n\t\treturn 0;\n\t}", "public void deleteEntry(String book1)\n{\n}", "@Override\r\n\tpublic void deletebook(int seq) {\n\t\tsqlSession.delete(ns + \"deletebook\", seq);\r\n\t}", "int deleteByPrimaryKey(String bookId);", "public void delete(int bookId){ \n dbmanager.open();\n try (DBIterator keyIterator = dbmanager.getDB().iterator()) {\n keyIterator.seekToFirst();\n\n while (keyIterator.hasNext()) {\n String key = asString(keyIterator.peekNext().getKey());\n String[] splittedString = key.split(\"-\");\n\n if(!\"book\".equals(splittedString[0])){\n keyIterator.next();\n continue;\n }\n\n String resultAttribute = asString(dbmanager.getDB().get(bytes(key)));\n JSONObject jauthor = new JSONObject(resultAttribute);\n\n if(jauthor.getInt(\"idBOOK\")==bookId){\n \n dbmanager.getDB().delete(bytes(key));\n break;\n }\n keyIterator.next(); \n }\n } catch(Exception ex){\n ex.printStackTrace();\n } \n dbmanager.close();\n }", "public abstract void deleteAPriceBook(String priceBookName);", "public void deleteBook(int num)\n { \n bookList.remove(num); \n }", "int deleteByExample(BookExample example);", "@Override\n\tpublic boolean deleteBook(int idBook) throws DAOException {\n\t\treturn false;\n\t}", "int deleteByPrimaryKey(String bookIsbn);", "@Override\r\n\tpublic void remove(Book book) {\r\n\r\n\t}", "public void delete(String book_id){\n\t\tmap.remove(book_id);\n\t\t\n\t}", "@Test\n\tpublic void testDeleteBook() {\n\t\t//System.out.println(\"Deleting book from bookstore...\");\n\t\tstore.deleteBook(b1);\n\t\tassertFalse(store.getBooks().contains(b1));\n\t\t//System.out.println(store);\n\t}", "@Override\n\tpublic Response deleteOrder(BookDeleteRequest request) {\n\t\treturn null;\n\t}", "int deleteByPrimaryKey(Long integralBookId);", "int deleteByExample(IntegralBookExample example);", "public int delete(int rb_seq) {\n\t\t\n\t\tint ret = readBookDao.delete(rb_seq);\n\t\treturn ret;\n\t}", "@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\tdeleteBook(position);\n\t\t\t\t\tcandelete =-1;\n\t\t\t\t}", "@DeleteMapping(\"/{username}/books/{bookId}\")\n public void deleteBookFromLibrary(@PathVariable String username,\n @PathVariable Long bookId) {\n userService.deleteBook(username, bookId);\n }", "@Override\n public Optional<BookDto> deleteBook(Integer bookId) {\n try {\n Optional<BookEntity> bookEntity = bookRepository.findByBookId(bookId);\n if (bookEntity.isPresent()) {\n bookRepository.deleteByBookId(bookId);\n LogUtils.getInfoLogger().info(\"Book Deleted: {}\",bookEntity.get().toString());\n return Optional.of(bookDtoBookEntityMapper.bookEntityToBookDto(bookEntity.get()));\n } else {\n LogUtils.getInfoLogger().info(\"Book not Deleted\");\n return Optional.empty();\n }\n }catch (Exception exception){\n throw new BookException(exception.getMessage());\n }\n }", "boolean deleteAuthor(Author author) throws PersistenceException, IllegalArgumentException;", "void deleteBookingById(BookingKey bookingKey);", "public void deleteBook(String title)\n {\n for(int iterator = 0; iterator < bookList.size() ; iterator++)\n {\n if(bookList.get(iterator).getTitle().equals(title))\n {\n bookList.remove(iterator); \n }\n }\n }", "public void delete(Book book) {\n\t\tif (entityManager.contains(book))\n\t\t\tentityManager.remove(book);\n\t\tentityManager.remove(entityManager.merge(book));\n\t\treturn;\n\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString number=textFieldn.getText();\n\t\t\t\t\t\t\t\n\t\t\t\tBookModel bookModel=new BookModel();\n\t\t\t\tbookModel.setBook_number(number);\n\t\t\t\t\n\t\t\t\tBookDao bookDao=new BookDao();\n\t\t\t\t\n\t\t\t\tDbUtil dbUtil = new DbUtil();\n\t\t\t\tConnection con =null;\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\tcon = dbUtil.getCon();\n\t\t\t\t\tint db=bookDao.deletebook(con,bookModel);\n\t\t\t\t\t\n\t\t\t\t\tif(db==1) {\n\t\t\t\t\t JOptionPane.showMessageDialog(null, \"删除成功\");\n\t\t\t\t\t } \t\t\t\t\t\n\t\t\t\t}catch (Exception e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "@DeleteMapping(\"/book\")\n public ResponseEntity<?> delete(@RequestBody Book book) {\n bookService.delete(book);\n return ResponseEntity.ok().body(\"Book has been deleted successfully.\");\n }", "public boolean deleteBook(int book_id[]){\n String sql=\"delete from Book where id=?\";\n for (int i=0;i<book_id.length;i++){\n if( !dao.exeucteUpdate(sql,new Object[]{book_id[i]})){\n return false;\n }\n }\n return true;\n }", "@DeleteMapping(\"/{isbn}\")\n\tpublic ResponseEntity<?> deleteBook(@PathVariable(name = \"isbn\") String isbn){\n\t\treturn bookRepository.findByIsbn(isbn).\n\t\t\tmap(bookDelete -> {\n\t\t\t\tbookRepository.delete(bookDelete);\n\t\t\t\treturn new ResponseEntity<>(HttpStatus.NO_CONTENT);\n\t\t\t})\n\t\t\t.orElseThrow(() -> new BookNotFoundException(\"Wrong isbn\"));\n\t}", "@Override\r\n\tpublic boolean deleteBook(long ISBN) {\n\t\tif (searchBook(ISBN).getISBN() == ISBN) {\r\n\t\ttransactionTemplate.setReadOnly(false);\t\r\n\t\t\t\treturn transactionTemplate.execute(new TransactionCallback<Boolean>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic Boolean doInTransaction(TransactionStatus status) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\tboolean result = bookDAO.deleteBook(ISBN);\r\n\t\t\t\t\t\treturn result;\r\n\r\n\t\t\t\t} catch (Exception exception) {\r\n\t\t\t\t\tstatus.setRollbackOnly();\r\n\t\t\t\t}\r\n\t\t\t\treturn false;\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Test\n\tpublic void deleteBook_Nonexistent() {\n\t\tsystem.deleteBook(\"asdfasdfasdfaslkjdfasd\");\n\t}", "@FXML\n private void handleBookDeleteOption(ActionEvent event) {\n Book selectedItem = tableViewBook.getSelectionModel().getSelectedItem();\n if (selectedItem == null) {\n AlertMaker.showErrorMessage(\"No book selected\", \"Please select book for deletion.\");\n return;\n }\n if (DatabaseHandler.getInstance().isBookAlreadyIssued(selectedItem)) {\n AlertMaker.showErrorMessage(\"Cant be deleted\", \"This book is already issued and cant be deleted.\");\n return;\n }\n //confirm the opertion\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Deleting Book\");\n Stage stage = (Stage) alert.getDialogPane().getScene().getWindow();\n UtilitiesBookLibrary.setStageIcon(stage);\n alert.setHeaderText(null);\n alert.setContentText(\"Are u sure u want to Delete the book ?\");\n Optional<ButtonType> response = alert.showAndWait();\n if (response.get() == ButtonType.OK) {\n \n boolean result = dbHandler.deleteBook(selectedItem);\n if (result == true) {\n AlertMaker.showSimpleAlert(\"Book delete\", selectedItem.getTitle() + \" was deleted successfully.\");\n observableListBook.remove(selectedItem);\n } else {\n AlertMaker.showSimpleAlert(\"Failed\", selectedItem.getTitle() + \" unable to delete.\");\n\n }\n } else {\n AlertMaker.showSimpleAlert(\"Deletion Canclled\", \"Deletion process canclled.\");\n\n }\n\n }", "@DeleteMapping(\"/delete/{id}\")\n public void deleteBookById(@PathVariable(\"id\") Long id) throws BookNotFoundException {\n bookService.deleteBookById(id);\n }", "@RequestMapping(value=\"/book/{isbn}\",method=RequestMethod.DELETE)\n\t\t\tpublic @ResponseBody ResponseEntity<Books> deleteBookDetails(@PathVariable Long isbn)throws Exception{\n\t\t\t\tBooks book=null;\n\t\t\t\tbook=booksDAO.findOne(isbn);\n\t\t\t\tif(book!=null)\n\t\t\t\t{\ttry{\t\n\t\t\t\t\t\t\tbook.setLastModifiedTime(new Date());\n\t\t\t\t\t\t\tif(book.getIsActive())\n\t\t\t\t\t\t\t\tbook.setIsActive(false);\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tbook.setIsActive(true);\n\t\t\t\t\t\t\tbooksDAO.save(book);\n\t\t\t\t\t\t\treturn new ResponseEntity<Books>(book, HttpStatus.OK);\n\t\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\tthrow new Exception(\"Could not change the status of book. \",e);\n\t\t\t\t\t\t}\n\t\t\t\t}else\n\t\t\t\t\treturn new ResponseEntity<Books>(HttpStatus.NOT_FOUND); \n\t\t\t}", "@Override\n public void delete(int id) {\n Book bookDb = repository.findById(id)\n .orElseThrow(RecordNotFoundException::new);\n // delete\n repository.delete(bookDb);\n }", "public void remove()\r\n {\r\n if(bookCount>0)\r\n {\r\n bookCount-=1;\r\n }\r\n }", "@Override\n\tpublic void deleteBourse(Bourse brs) {\n\t\t\n\t}", "void deleteRecipe(RecipeObject recipe);", "public void delete(int id) {\n\tListIterator<Book> listItr = list.listIterator();\n\twhile(listItr.hasNext()) {\n\t\tBook book2 = listItr.next();\n\t\tif(book2.id == id) {\n\t\t\tlistItr.remove();\n\t\t\tSystem.out.println(\"Successfully deleted: \"+id);\n\t\t\treturn;\n\t\t}\n\t}\n\tSystem.out.println(\"No such Book ID exists\");\n}", "@RequestMapping(\"/book/delete/{id}\")\n public String delete(@PathVariable Long id){\n bookService.deleteBook(id);\n return \"redirect:/books\";\n }", "public void onClick(View v) {\n MySQLiteHelper.deleteBookByID(currentBookID);\n // Then go back to book list\n startActivity(new Intent(BookDetailActivity.this, BookListViewActivity.class));\n }", "@Test\n\tpublic void deleteBook() {\n\t\tRestAssured.baseURI = \"http://216.10.245.166\";\n\t\t given().log().all().queryParam(\"ID\", \"321wergt\")\n\t\t\t\t.header(\"Content-Type\", \"application/json\").when()\n\t\t\t\t.delete(\"/Library/DeleteBook.php\").then().log().all()\n\t\t\t\t.assertThat().statusCode(200);\n\n\t\n\t /*JsonPath js = new JsonPath(response); \n\t String id = js.get(\"ID\");\n\t System.out.println(id);*/\n\t \n\t }", "@RequestMapping(value = \"/{branch}/stackRoom/{book}\", method = RequestMethod.DELETE)\n public String removeBookFromStock(@PathVariable String branch, @PathVariable String book) {\n branchBookService.removeBook(branch, book);\n return \"Success\";\n }", "public void onClick(DialogInterface dialog, int id) {\n deleteBook();\n }", "public void onClick(DialogInterface dialog, int id) {\n deleteBook();\n }", "@Override\n\tpublic void delete(String id) {\n\t\tString query=\"Delete from Book Where id='\"+id+\"'\";\n\t\texecuteQuery(query);\n\t\tnotifyAllObservers();\n\t\t\n\t}", "@RequestMapping(value = \"/delete/{bookId}\", method = RequestMethod.GET)\n\tpublic @ResponseBody()\n\tStatus deleteEmployee(@PathVariable(\"bookId\") long bookId) {\n\t\ttry {\n\t\t\tbookService.deleteBook(bookId);;\n\t\t\treturn new Status(1, \"book deleted Successfully !\");\n\t\t} catch (Exception e) {\n\t\t\treturn new Status(0, e.toString());\n\t\t}\n\t}", "private void deleteEmployeeBooking() {\n BookingModel bookingModel1 = new BookingModel();\n try {\n bookingModel1.deleteBooking(employeeID);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "@Override\n\tpublic void delete(int chapter_id) {\n\t\trDao.delete(chapter_id);\n\t}", "@Override\n\tpublic void deleteKeyword(Integer bookId) {\n\t\tdao.removeKeyword(bookId);\n\t\t\n\t\t\n\t}", "void deleteAuthor(Long authorId) throws LogicException;", "@RequestMapping(value = \"/deleteBook/{id}\", method = RequestMethod.DELETE)\r\n public ResponseEntity<?> delete(@PathVariable(\"id\") long id) throws Exception{\r\n\t ProducerTemplate pt = camelContext.createProducerTemplate();\r\n\t String destination = \"direct:cm.delete\";\r\n\t\tSystem.out.println(\"Send message to \" + destination);\r\n\t\tpt.sendBody(destination, id);\r\n\t\t\r\n return ResponseEntity.ok().body(\"Book has been deleted successfully.\");\r\n }", "@Override\n\tpublic String removeBook(int bookId) {\n\t\treturn null;\n\t}", "public void delete(String so_cd);", "public void removeBook(Book book) {\n this.bookList.remove(book);\n }", "@GetMapping(\"/delete\")\n\tpublic String removeBookById(Map<String, Object> map, @ModelAttribute(\"bookCmd\") Book book, HttpServletRequest res,\n\t\t\tRedirectAttributes attribute) {\n\t\tString msg = null;\n\t\tList<BookModel> listmodel = null;\n\t\tmsg = service.deleteBookDetail(Integer.parseInt(res.getParameter(\"bookid\")));\n\t\tlistmodel = service.findAllBookDetails();\n\t\tattribute.addFlashAttribute(\"listmodel\", listmodel);\n\t\tattribute.addFlashAttribute(\"msg\", msg);\n\t\treturn \"redirect:/register\";\n\n\t}", "int deleteByPrimaryKey(Long authorId);", "private void delete() {\n\n\t}", "public abstract void delete() throws ArchEException;", "@Override\n public int deleteByUserIdAndBookshelfIdAndBookId(\n final int userId,\n final int shelfId,\n final int bookId) {\n return jdbcTemplate.update(\"delete from MyBook where user_id = ? \"\n + \"and book_id = ? and bookshelf_id = ?\",\n new Object[] {userId, bookId, shelfId});\n }", "private void deleteAllBooks() {\n int rowsDeleted = getContentResolver().delete(BookEntry.CONTENT_URI, null, null);\n // Update the message for the Toast\n String message;\n if (rowsDeleted == 0) {\n message = getResources().getString(R.string.inventory_delete_books_failed).toString();\n } else {\n message = getResources().getString(R.string.inventory_delete_books_successful).toString();\n }\n // Show toast\n Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n }", "@Override\n\tpublic void delete(BookInfoVO vo) {\n\t\tbookInfoDao.delete(vo);\n\t}", "@DeleteMapping(\"/{id}/shoppingcart\")\n public ShoppingCart removeBookFromShoppingCart(@PathVariable long id, @RequestBody Book book){\n Customer b = customerRepository.findById(id);\n ShoppingCart sc = b.getShoppingCart();\n sc.removeBook(book);\n b = customerRepository.save(b);\n \n return b.getShoppingCart();\n }", "void deleteBooking(int detail_id) throws DataAccessException;", "@Override\r\n\tpublic boolean deleteByBookId(String id) {\n\t\tConnection conn=null;\r\n\t\tPreparedStatement pst=null;\r\n\t\r\n\t\tboolean flag=false;\r\n\t\ttry {\r\n\t\t\tconn=Dbconn.getConnection();\r\n\t\t\tString sql = \"update books set tag=0 where id=?\";\r\n\t\t\tpst = conn.prepareStatement(sql);\r\n\t\t\tpst.setString(1, id);\r\n\t\t\tif(0<pst.executeUpdate()){\r\n\t\t\t\tflag=true;\r\n\t\t\t}\r\n\t\t\treturn flag;\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}finally{\r\n\t\t\tDbconn.closeConn(pst, null, conn);\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "public void delete(int biblio_id, String library_id, String sub_library_id) {\n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n //Object acqdocentry = null;\n\n try {\n tx = session.beginTransaction();\n //acqdocentry = session.load(BibliographicDetails.class, id);\n Query query = session.createQuery(\"DELETE FROM BibliographicDetails WHERE id.biblioId = :biblioId and id.libraryId = :libraryId and id.sublibraryId = :subLibraryId\");\n\n query.setInteger(\"biblioId\", biblio_id);\n query.setString(\"libraryId\", library_id);\n query.setString(\"subLibraryId\", sub_library_id);\n query.executeUpdate();\n tx.commit();\n //return (BibliographicDetails) query.uniqueResult();\n } catch (RuntimeException e) {\n\n tx.rollback();\n e.printStackTrace();\n } finally {\n session.close();\n }\n }", "public void delete(Book entity) {\n\t\tentityManager.remove(entityManager.contains(entity) ? entity : entityManager.merge(entity));\n\t}", "public void onClick(DialogInterface dialog,int which) {\n new deleteBook().execute();\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Books : {}\", id);\n booksRepository.deleteById(id);\n booksSearchRepository.deleteById(id);\n }", "@Override\n\tpublic void delete(Pessoa arg0) {\n\t\t\n\t}", "@GetMapping(\"/deleteBook\")\n public String deleteBook(@RequestParam(\"id\") int id, Model model){\n bookService.deleteBook(id);\n return \"redirect:/1\";\n }", "public void deleteStudent(){\r\n\t\t\r\n\t}", "@Override\n public Book removeBookById(int id) throws DaoException {\n DataBaseHelper helper = new DataBaseHelper();\n Book book = Book.newBuilder().build();\n try (Connection connection = SqlConnector.connect();\n PreparedStatement statementSelectById =\n helper.prepareStatementSelectById(connection, id);\n ResultSet resultSet = statementSelectById.executeQuery()) {\n while (resultSet.next()) {\n BookCreator bookCreator = new BookCreator();\n book = bookCreator.create(resultSet);\n resultSet.deleteRow();\n }\n if (book.getId() == 0) {\n throw new DaoException(\"There is no such book in warehouse!\");\n }\n } catch (SQLException e) {\n throw new DaoException(e);\n }\n return book;\n }", "private void deleteAllBooks(){\n int rowsDeleted = getContentResolver().delete(BookContract.BookEntry.CONTENT_URI, null, null);\n Log.v(\"MainActivity\", rowsDeleted + \" rows deleted from database\");\n }", "void removeInBookNo(Object oldInBookNo);", "@Override\r\n\tpublic boolean deleteBooking(Booking_IF bk) {\r\n\t\tPreparedStatement myStatement = null;\r\n\t\tString query = null;\r\n\t\tint count = 0;\r\n\t\ttry{\r\n\t\t\tquery = \"delete from Booking where Shift_ID = ? AND User_ID = ?\";\r\n\t\t\tmyStatement = myCon.prepareStatement(query);\r\n\t\t\tmyStatement.setInt(1, bk.getShiftid());\r\n\t\t\tmyStatement.setInt(2, bk.getUserid());\r\n\t\t\tcount = myStatement.executeUpdate();\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\ttry {\r\n\t\t\t\tif (myStatement != null)\r\n\t\t\t\t\tmyStatement.close();\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(count!=1){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public boolean deleteAuthorById(int id);", "private void deleteResource() {\n }", "public void delete(final Book key) {\n root = delete(root, key);\n }", "private void deleteCourse() {\n // Only perform the delete if this is an existing pet.\n if (mCurrentCourseUri != null) {\n // Call the ContentResolver to delete the pet at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentPetUri\n // content URI already identifies the pet that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentCourseUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_course_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_course_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }", "int deleteByExample(ComplainNoteDOExample example);", "@Override\n public void removeFromCart(Publication book) {\n if(shoppingCart.contains(book)){\n shoppingCart.remove(book);\n } else throw new NoSuchPublicationException();\n }", "public static int deleteBook(String itemCode) throws HibernateException{\r\n session=sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_deleteBook\").setString(\"itemCode\", itemCode);\r\n \r\n //Execute the query which delete the detail of the book from the database\r\n int res=query.executeUpdate();\r\n \r\n //check whether transaction is correctly done\r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return res;\r\n \r\n }", "public void delete(){\r\n\r\n }", "@Override\n\tpublic void deleteExam(ExamBean exam) {\n\t\t\n\t}", "public void delete() {\n\n\t}", "void delete(Exam exam);", "public void deleteArticle(Article article);", "@Override\n\tpublic void delete(String arg0) {\n\t\t\n\t}", "public void delete1(int biblio_id, String library_id, String sub_library_id) {\n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n \n\n try {\n tx = session.beginTransaction();\n \n Query query = session.createQuery(\"DELETE FROM DocumentDetails WHERE biblioId = :biblioId and id.libraryId = :libraryId and id.sublibraryId = :subLibraryId\");\n\n query.setInteger(\"biblioId\", biblio_id);\n query.setString(\"libraryId\", library_id);\n query.setString(\"subLibraryId\", sub_library_id);\n query.executeUpdate();\n tx.commit();\n \n } catch (RuntimeException e) {\n\n tx.rollback();\n e.printStackTrace();\n } finally {\n session.close();\n }\n }", "@Override\n\tpublic void delete(BatimentoCardiaco t) {\n\t\t\n\t}", "int deleteByExample(Question27Example example);", "@DeleteMapping(\"/books/{id}\")\n\tpublic ResponseEntity<Map<String, Boolean>> deleteBook(@PathVariable Long id)\n\t{\n\t\tBook book = bookRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Book Not found with id\" + id));\n\t\tbookRepository.delete(book);\n\t\tMap<String, Boolean> response = new HashMap<>();\n\t\tresponse.put(\"deleted\", Boolean.TRUE);\n\t\treturn ResponseEntity.ok(response);\n\t}", "public void deleteStudent(String rollNo) {\n\t\t\r\n\t}", "public void removeBook(Book book)\r\n\t{\r\n\t\tList<Book> oldValue = items;\r\n\t\titems = new ArrayList<Book>(items);\r\n\t\titems.remove(book);\r\n\t\tfirePropertyChange(\"books\", oldValue, items);\r\n\t\tfirePropertyChange(\"itemsCount\", oldValue.size(), items.size());\r\n\t}" ]
[ "0.856062", "0.8464637", "0.84493256", "0.82545793", "0.8214601", "0.8139353", "0.8040011", "0.77721065", "0.76898485", "0.7610753", "0.7534171", "0.75120777", "0.74618506", "0.7446132", "0.7405446", "0.738196", "0.7331489", "0.7245909", "0.7214298", "0.719016", "0.71284205", "0.7125814", "0.7069706", "0.70013124", "0.6991092", "0.69863", "0.693389", "0.6892431", "0.6871969", "0.6867219", "0.68621826", "0.68511045", "0.684965", "0.67902565", "0.6785221", "0.6784196", "0.67760897", "0.67566854", "0.67256945", "0.67247856", "0.67178875", "0.6713568", "0.6704314", "0.66607845", "0.6648201", "0.66419166", "0.6615394", "0.6577736", "0.6577709", "0.6571835", "0.6571835", "0.6563956", "0.6559716", "0.65409935", "0.65383327", "0.65357083", "0.65152323", "0.6501506", "0.64944303", "0.6489103", "0.6488224", "0.6481739", "0.6479406", "0.64729625", "0.6454596", "0.64436764", "0.6435932", "0.6434791", "0.64336663", "0.6433251", "0.642744", "0.64203244", "0.64181465", "0.64147544", "0.64130205", "0.6409983", "0.640522", "0.64038247", "0.6391266", "0.63906807", "0.63875526", "0.63779014", "0.6375358", "0.63662726", "0.635417", "0.63540614", "0.63395864", "0.633392", "0.63231057", "0.63134515", "0.63068146", "0.6300947", "0.6299115", "0.62972414", "0.6292379", "0.629045", "0.62845206", "0.6275781", "0.62677395", "0.62665385", "0.6264382" ]
0.0
-1
part for editing a book
@Before(stages = LifecycleStage.BindingAndValidation, on = {"edit", "save"}) public void loadExcursionFromDatabase() { String ids = getContext().getRequest().getParameter("excursion.id"); if (ids == null) return; excursion = facade.getExcursion(Long.parseLong(ids)); date = excursion.getExcursionDate().toString(DateTimeFormat.forPattern(pattern)); trips = facade.getAllTrips(); tripId = excursion.getTrip().getId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int editBook(bookInfo bookinfo) {\n\t\treturn 0;\n\t}", "public book edit(book editedbook) {\n\t\t\n\t\treturn repository.save(editedbook);\n\t}", "private void edit() {\n\n\t}", "@Override\r\n\tpublic void edit() {\n\t\t\r\n\t}", "void update(Book book);", "public void edit(int id, String name, String author, int issueDate, int returnDate) {\n\tListIterator<Book> listItr = list.listIterator();\n\twhile(listItr.hasNext()) {\n\t\tBook book2 = listItr.next();\n\t\tif(book2.id == id) {\n\t\t\tbook2.name = name;\n\t\t\tbook2.author = author;\n\t\t\tbook2.issueDate = issueDate;\n\t\t\tbook2.returnDate = returnDate;\n\t\t\tSystem.out.println(\"Successfully edited: \"+id);\n\t\t\treturn;\n\t\t}\n\t}\n\tSystem.out.println(\"No such Book ID exists\");\n\t\n}", "public void editOperation() {\n\t\t\r\n\t}", "public abstract void edit();", "public void edit(String title){\r\n \t\t\r\n \t char inpt;\r\n \t Scanner e;\r\n \t Scanner ttl;\r\n \t String t;\r\n \t\t\r\n \t boolean found = false;\t\t\t\t\t\r\n \t Iterator<Item> i = items.iterator();\r\n \t Item current = new Item();\r\n\r\n\t while(i.hasNext()){\r\n\t current = i.next();\r\n\t \r\n\t\t //First we have to find the title we want to edit.\r\n\t if(title.compareTo(current.getTitle()) == 0) {\r\n\t System.out.print(\"Found \" + current.toString());\r\n\t found = true;\r\n\t System.out.println(\"Is this the item you wish to edit? (Y/N)\");\r\n\t Scanner response = new Scanner(System.in);\r\n\t char r = response.next().toUpperCase().charAt(0);\r\n\t if(r == 'Y'){\r\n\t \t \r\n\t \t\t//Check if item is Book or magazine, then ask\r\n\t \t\t//user what element they wish to change.\r\n \t\t if(current.getItemType() == Item.ItemTypes.BOOK){\r\n \t\t System.out.println(\"Edit: (T)itle or (A)uthor.\");\r\n \t\t \t e = new Scanner(System.in);\r\n \t\t inpt = e.next().toUpperCase().charAt(0);\r\n \t\t\t\r\n \t\t if(inpt == 'T'){\r\n \t\t System.out.println(\"Enter the new title: \");\r\n \t\t\t ttl = new Scanner(System.in);\r\n \t\t\t t = ttl.nextLine();\r\n \t\t\t\t\r\n \t\t\t\t\t//set new title!\r\n \t\t\t current.setTitle(t);\r\n \t\t\t\t\r\n \t\t \t }else if(inpt == 'A'){\r\n \t\t\t\t\r\n \t\t System.out.println(\"Enter new authors name: \");\r\n \t\t Scanner a = new Scanner(System.in);\r\n \t\t String author = a.nextLine();\r\n \t\t \r\n \t\t ((Book)current).setAuthor(author);\r\n \t\t \t//This needded to be cast because setAuthor\r\n \t\t \t//is a method in the child class (Book),\r\n \t\t \t//not the parent class (Item.)\t\r\n \t\t }\r\n \t\t } else if(current.getItemType() == Item.ItemTypes.MAGAZINE){\r\n \t\t System.out.println(\"Edit: (T)itle or (Y)ear.\");\r\n \t\t e = new Scanner(System.in);\r\n \t\t inpt = e.next().toUpperCase().charAt(0);\r\n \t\t\t\r\n \t\t if(inpt == 'T'){\r\n \t\t System.out.println(\"Enter the new title: \");\r\n \t\t\t ttl = new Scanner(System.in);\r\n \t\t\t t = ttl.nextLine();\r\n \t\t\t\t\r\n \t\t\t\t \t//set new title!\r\n \t\t \t current.setTitle(t);\r\n \t\t\t\t\r\n \t\t } else if (inpt == 'Y'){\r\n \t\t \t\r\n \t\t System.out.println(\"Enter new year: \");\r\n \t\t Scanner y = new Scanner(System.in);\r\n \t\t int year = y.nextInt();\r\n \t\t \r\n \t\t ((Magazine)current).setYear(year);\t\r\n \t\t \t//This needded to be cast because setAuthor\r\n \t\t \t//is a method in the child class (Book),\r\n \t\t \t//not the parent class (Item.)\t\t\r\n \t\t }\r\n \t\t }\r\n\t }\r\n\t } \r\n }\r\n \r\n \t//If the title can't be found, print this.\r\n\t if(found != true){\r\n\t System.out.println(\"Title: \" + title + \" could not be found.\");\r\n\t System.out.println(\"Check the spelling and try again.\");\r\n\t }\r\n }", "protected abstract void editItem();", "private void selectBook(Book book){\n\t\tthis.book = book;\n\t\tshowView(\"ModifyBookView\");\n\t\tif(book.isInactive()){\n\t\t\tstateChangeRequest(Key.MESSAGE, new MessageEvent(MessageType.INFO, \"Heads Up! This book is archived. It must be recovered before it can be modified.\"));\n\t\t}else if(book.isLost()){\n\t\t\tstateChangeRequest(Key.MESSAGE, new MessageEvent(MessageType.INFO, \"Heads Up! This book is lost. It must be recovered before it can be modified.\"));\n\t\t}\n\t}", "@Override\n\tpublic Action.Forward exec(HttpServletRequest request, HttpServletResponse response) throws PersistentException {\n\t\tForward forward = new Forward(\"/author/book/edit.html\");\n\t\ttry {\n\t\t\tValidator<Book> validator = ValidatorFactory.createValidator(Book.class);\n\t\t\tBook book = validator.validate(request);\n\t\t\tBookService service = factory.getService(BookService.class);\n\t\t\tservice.save(book);\n\t\t\tforward.getAttributes().put(\"identity\", book.getIdentity());\n\t\t\tforward.getAttributes().put(\"message\", \"Данные книги успешно сохранены\");\n\t//\t\tlogger.info(String.format(\"User \\\"%s\\\" saved book with identity %d\", getAuthorizedUser().getLogin(), book.getIdentity()));\n\t\t} catch(IncorrectFormDataException e) {\n\t\t\tforward.getAttributes().put(\"message\", \"Были обнаружены некорректные данные\");\n\t//\t\tlogger.warn(String.format(\"Incorrect data was found when user \\\"%s\\\" tried to save book\", getAuthorizedUser().getLogin()), e);\n\t\t}\n\t\treturn forward;\n\t}", "void edit(Price Price);", "@RequestMapping(\"/book/edit/{id}\")\n public String edit(@PathVariable Long id, Model model){\n model.addAttribute(\"book\", bookService.getBookById(id));\n return \"bookform\";\n }", "@GetMapping(\"/editBook\")\n public String editBook(Model model, @RequestParam(\"id\") int id) {\n Book book = bookService.getBookById(id);\n modelAndList(model, book);\n return \"editBook\";\n }", "@Override\n\tpublic void editAction(int id) {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblLibrary = new javax.swing.JLabel();\n btnAdd = new javax.swing.JButton();\n btnDelete = new javax.swing.JButton();\n btnExit = new javax.swing.JButton();\n btnModify = new javax.swing.JButton();\n lblId = new javax.swing.JLabel();\n lbIdBook = new javax.swing.JLabel();\n jScrollPane = new javax.swing.JScrollPane();\n tblBooks = new javax.swing.JTable();\n lblShelve = new javax.swing.JLabel();\n cbIDShelve = new javax.swing.JComboBox<>();\n txtExistences = new javax.swing.JTextField();\n lblExistences = new javax.swing.JLabel();\n lblAuthor = new javax.swing.JLabel();\n cbIDAuthor = new javax.swing.JComboBox<>();\n txtEditorial = new javax.swing.JTextField();\n lblEditorial = new javax.swing.JLabel();\n txtTitle = new javax.swing.JTextField();\n txtId = new javax.swing.JTextField();\n\n setLayout(null);\n\n lblLibrary.setText(\"Edit Books\");\n add(lblLibrary);\n lblLibrary.setBounds(226, 6, 80, 16);\n\n btnAdd.setText(\"add\");\n btnAdd.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAddActionPerformed(evt);\n }\n });\n add(btnAdd);\n btnAdd.setBounds(530, 290, 50, 24);\n\n btnDelete.setText(\"delete\");\n btnDelete.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnDeleteActionPerformed(evt);\n }\n });\n add(btnDelete);\n btnDelete.setBounds(590, 290, 70, 24);\n\n btnExit.setText(\"exit\");\n btnExit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnExitActionPerformed(evt);\n }\n });\n add(btnExit);\n btnExit.setBounds(750, 290, 60, 24);\n\n btnModify.setText(\"modify\");\n btnModify.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnModifyActionPerformed(evt);\n }\n });\n add(btnModify);\n btnModify.setBounds(670, 290, 70, 24);\n\n lblId.setText(\"ID\");\n add(lblId);\n lblId.setBounds(516, 56, 12, 16);\n\n lbIdBook.setText(\"Title\");\n add(lbIdBook);\n lbIdBook.setBounds(516, 86, 60, 16);\n\n tblBooks.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n\n }\n ));\n tblBooks.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n tblBooks.setDoubleBuffered(true);\n tblBooks.setVerifyInputWhenFocusTarget(false);\n tblBooks.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tblBooksMouseClicked(evt);\n }\n });\n jScrollPane.setViewportView(tblBooks);\n\n add(jScrollPane);\n jScrollPane.setBounds(6, 36, 500, 307);\n\n lblShelve.setText(\"id Shelve\");\n add(lblShelve);\n lblShelve.setBounds(516, 206, 60, 16);\n\n cbIDShelve.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbIDShelveActionPerformed(evt);\n }\n });\n add(cbIDShelve);\n cbIDShelve.setBounds(586, 206, 220, 26);\n add(txtExistences);\n txtExistences.setBounds(586, 176, 220, 24);\n\n lblExistences.setText(\"Existences\");\n add(lblExistences);\n lblExistences.setBounds(516, 176, 60, 16);\n\n lblAuthor.setText(\"id Author\");\n add(lblAuthor);\n lblAuthor.setBounds(516, 146, 48, 16);\n\n cbIDAuthor.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbIDAuthorActionPerformed(evt);\n }\n });\n add(cbIDAuthor);\n cbIDAuthor.setBounds(586, 146, 220, 26);\n add(txtEditorial);\n txtEditorial.setBounds(586, 116, 220, 24);\n\n lblEditorial.setText(\"Editorial\");\n add(lblEditorial);\n lblEditorial.setBounds(516, 116, 45, 16);\n add(txtTitle);\n txtTitle.setBounds(586, 86, 220, 24);\n\n txtId.setFocusable(false);\n add(txtId);\n txtId.setBounds(586, 56, 60, 24);\n }", "void onEditClicked();", "public void edit(RequestBean request) {\n\t\t\r\n\t}", "@Test\n public void testEdit() {\n lib.addDVD(dvd1);\n lib.addDVD(dvd2);\n \n dvd1.setTitle(\"Ghostbusters II\");\n lib.edit(dvd1);\n \n Assert.assertEquals(\"Ghostbusters II\", lib.getById(0).getTitle());\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n final String updatedBookName = bookEditText.getText().toString();\n final String updatedAuthorName = authorEditText.getText().toString();\n if(!updatedBookName.isEmpty()) {\n changeBook(book.getId(), updatedBookName, updatedAuthorName);\n }\n }", "public void setupEditFields(Dialog dialog, HashMap bookData) {\n ButtonType addButtontype = new ButtonType(\"Confirm\", ButtonBar.ButtonData.OK_DONE);\r\n dialog.getDialogPane().getButtonTypes().addAll(addButtontype, ButtonType.CANCEL);\r\n\r\n // Creates TextFields\r\n GridPane grid = new GridPane();\r\n grid.setHgap(10);\r\n grid.setVgap(10);\r\n grid.setPadding(new Insets(20, 150, 10, 10));\r\n\r\n TextField title = new TextField();\r\n title.setPromptText(\"Book Title\");\r\n if (!bookData.isEmpty()) {\r\n title.setText(bookData.get(\"title\").toString());\r\n }\r\n\r\n TextField author = new TextField();\r\n author.setPromptText(\"Book Author\");\r\n if (!bookData.isEmpty()) {\r\n author.setText(bookData.get(\"authors\").toString());\r\n }\r\n\r\n TextField location = new TextField();\r\n location.setPromptText(\"Location\");\r\n if (!bookData.isEmpty()) {\r\n location.setText(bookData.get(\"location\").toString());\r\n }\r\n\r\n TextField copies = new TextField();\r\n copies.setPromptText(\"Copies\");\r\n if (!bookData.isEmpty()) {\r\n copies.setText(bookData.get(\"copies_in_stock\").toString());\r\n }\r\n\r\n grid.add(new Label(\"Title:\"), 0, 0);\r\n grid.add(title, 1, 0);\r\n\r\n grid.add(new Label(\"Author:\"), 0, 1);\r\n grid.add(author, 1, 1);\r\n\r\n TextField isbn = new TextField();\r\n if (bookData.isEmpty()) {\r\n isbn.setPromptText(\"ISBN\");\r\n grid.add(new Label(\"ISBN:\"), 0, 2);\r\n grid.add(isbn, 1, 2);\r\n }\r\n\r\n grid.add(new Label(\"Location:\"), 0, 3);\r\n grid.add(location, 1, 3);\r\n\r\n grid.add(new Label(\"Copies:\"), 0, 4);\r\n grid.add(copies, 1, 4);\r\n\r\n\r\n // Activate edit button when all fields have text\r\n Node addButton = dialog.getDialogPane().lookupButton(addButtontype);\r\n BooleanBinding booleanBind = title.textProperty().isEmpty()\r\n .or(author.textProperty().isEmpty())\r\n .or(location.textProperty().isEmpty())\r\n .or(copies.textProperty().isEmpty());\r\n\r\n addButton.disableProperty().bind(booleanBind);\r\n\r\n dialog.getDialogPane().setContent(grid);\r\n dialog.show();\r\n\r\n addButton.addEventFilter(ActionEvent.ACTION, clickEvent -> {\r\n try {\r\n if (this.books.getByColumn(\"isbn\", isbn.getText()).isEmpty()) {\r\n HashMap bookChange = new HashMap();\r\n if (bookData.isEmpty()) {\r\n bookChange.put(\"isbn\", isbn.getText());\r\n bookChange.put(\"title\", title.getText());\r\n bookChange.put(\"authors\", author.getText());\r\n bookChange.put(\"location\", location.getText());\r\n bookChange.put(\"copies_in_stock\", Integer.parseInt(copies.getText()));\r\n } else {\r\n bookChange.put(\"title\", QueryBuilder.escapeValue(title.getText()));\r\n bookChange.put(\"authors\", QueryBuilder.escapeValue(author.getText()));\r\n bookChange.put(\"location\", QueryBuilder.escapeValue(location.getText()));\r\n bookChange.put(\"copies_in_stock\", Integer.parseInt(copies.getText()));\r\n }\r\n\r\n if (bookData.isEmpty()) {\r\n this.books.insert(bookChange);\r\n } else {\r\n this.books.update(bookChange, Integer.parseInt(bookData.get(\"id\").toString()));\r\n }\r\n\r\n QueryBuilder queryBooks = new QueryBuilder(\"books\");\r\n twg.setTable(queryBooks.select(Books.memberVisibleFields).build(), tableBooks);\r\n\r\n } else {\r\n Screen.popup(\"WARNING\", \"The ISBN typed in already exists, please edit the existing entry.\");\r\n clickEvent.consume();\r\n }\r\n\r\n } catch (NumberFormatException e) {\r\n Screen.popup(\"WARNING\", \"The 'copies' field should contain a number.\");\r\n clickEvent.consume();\r\n }\r\n });\r\n\r\n Platform.runLater(() -> title.requestFocus());\r\n }", "public void updateBook(View view){\n update();\n }", "@Override\r\n\tpublic int updateBookInfo(Book book, int book_id) {\n\t\treturn 0;\r\n\t}", "public void editDoc(View view) {\n Intent intent = new Intent(this, EditActivity.class);\n intent.putExtra(\"text\", doc);\n startActivityForResult(intent, EDIT_DOC);//CTRL+ALT+C per canviar de 0 a una variable\n }", "void actionEdit(int position);", "private void saveBook() {\n // Read from input fields\n // Use trim to eliminate leading or trailing white space\n String productName = etTitle.getText().toString().trim();\n String author = etAuthor.getText().toString().trim();\n String price = etPrice.getText().toString().trim();\n String quantity = etEditQuantity.getText().toString().trim();\n String supplier = etSupplier.getText().toString().trim();\n String supplierPhoneNumber = etPhoneNumber.getText().toString().trim();\n\n // If this is a new book and all of the fields are blank.\n if (currentBookUri == null &&\n TextUtils.isEmpty(productName) && TextUtils.isEmpty(author) &&\n TextUtils.isEmpty(price) && quantity.equals(getString(R.string.zero)) &&\n TextUtils.isEmpty(supplier) && TextUtils.isEmpty(supplierPhoneNumber)) {\n // Exit the activity without saving a new book.\n finish();\n return;\n }\n\n // Make sure the book title is entered.\n if (TextUtils.isEmpty(productName)) {\n Toast.makeText(this, R.string.enter_title, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Make sure the author is entered.\n if (TextUtils.isEmpty(author)) {\n Toast.makeText(this, R.string.enter_author, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Make sure the price is entered.\n if (TextUtils.isEmpty(price)) {\n Toast.makeText(this, R.string.enter_price, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Make sure the quantity is entered if it is a new book.\n // Can be zero when editing book, in case the book is out of stock and user wants to change\n // other information, but hasn't received any new inventory yet.\n if (currentBookUri == null && (quantity.equals(getString(R.string.zero)) ||\n quantity.equals(\"\"))) {\n Toast.makeText(this, R.string.enter_quantity, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Make sure the supplier is entered.\n if (TextUtils.isEmpty(supplier)) {\n Toast.makeText(this, R.string.enter_supplier, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Make sure the supplier's phone number is entered.\n if (TextUtils.isEmpty(supplierPhoneNumber)) {\n Toast.makeText(this, R.string.enter_suppliers_phone_number,\n Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Convert the price to a double.\n double bookPrice = Double.parseDouble(price);\n\n // Convert the quantity to an int, if there is a quantity entered, if not set it to zero.\n int bookQuantity = 0;\n if (!quantity.equals(\"\")) {\n bookQuantity = Integer.parseInt(quantity);\n }\n\n // Create a new map of values, where column names are the keys\n ContentValues values = new ContentValues();\n values.put(BookEntry.COLUMN_BOOK_PRODUCT_NAME, productName);\n values.put(BookEntry.COLUMN_BOOK_AUTHOR, author);\n values.put(BookEntry.COLUMN_BOOK_PRICE, bookPrice);\n values.put(BookEntry.COLUMN_BOOK_QUANTITY, bookQuantity);\n values.put(BookEntry.COLUMN_BOOK_SUPPLIER, supplier);\n values.put(BookEntry.COLUMN_BOOK_SUPPLIER_PHONE_NUMBER, supplierPhoneNumber);\n\n // Check if this is a new or existing book.\n if (currentBookUri == null) {\n // Insert a new book into the provider, returning the content URI for the new book.\n Uri newUri = getContentResolver().insert(BookEntry.CONTENT_URI, values);\n\n // Show a toast message depending on whether or not the insertion was successful.\n if (newUri == null) {\n // If the row ID is null, then there was an error with insertion.\n Toast.makeText(this, R.string.save_error, Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the insertion was successful, display a toast.\n Toast.makeText(this, R.string.save_successful, Toast.LENGTH_SHORT).show();\n }\n } else {\n // Check to see if any updates were made if not, no need to update the database.\n if (!bookHasChanged) {\n // Exit the activity without updating the book.\n finish();\n } else {\n // Update the book.\n int rowsUpdated = getContentResolver().update(currentBookUri, values, null,\n null);\n\n // Show a toast message depending on whether or not the update was successful.\n if (rowsUpdated == 0) {\n // If no rows were updated, then there was an error with the update.\n Toast.makeText(this, R.string.update_error, Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the update was successful, display a toast.\n Toast.makeText(this, R.string.update_successful,\n Toast.LENGTH_SHORT).show();\n }\n }\n }\n\n // Exit the activity, called here so the user can enter all of the required fields.\n finish();\n }", "@Override\r\n\tpublic void updatebook(BookDto book) {\n\t\tsqlSession.update(ns + \"updatebook\", book);\r\n\t}", "public void setBookEdition(java.lang.String value);", "@Override\r\n\tpublic Book update(Book book) {\r\n\t\treturn null;\r\n\t}", "void editMyPost(Post post);", "public void updateChapter(Chapter chapter);", "@Override\r\n\tpublic Book updateBook(Book book) {\n\t\treturn bd.save(book);\r\n\t}", "public void modify(AddressBookDict addressBook) {\n\t\tlog.info(\"Enter the address book name whose contact you want to edit\");\n\t\tString addressBookName = obj.next();\n\t\tlog.info(\"Enter the name whose contact you want to edit\");\n\t\tString name = obj.next();\n\t\tPersonInfo p = addressBook.getContactByName(addressBookName, name);\n\t\tif (p == null) {\n\t\t\tlog.info(\"No such contact exists\");\n\t\t} else {\n\t\t\twhile (true) {\n\t\t\t\tlog.info(\n\t\t\t\t\t\t\"1. First name\\n 2.Last name\\n 3.Address\\n 4. City\\n 5. State\\n 6. Zip\\n 7. Phone number\\n 8.Email\\n 0. Exit\");\n\t\t\t\tlog.info(\"Enter the info to be modified\");\n\t\t\t\tint info_name = obj.nextInt();\n\t\t\t\tswitch (info_name) {\n\t\t\t\tcase 1:\n\t\t\t\t\tlog.info(\"Enter new First Name\");\n\t\t\t\t\tp.setFirst_name(obj.next());\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tlog.info(\"Enter new Last Name\");\n\t\t\t\t\tp.setLast_name(obj.next());\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tlog.info(\"Enter new Address\");\n\t\t\t\t\tp.setAddress(obj.next());\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tlog.info(\"Enter new City\");\n\t\t\t\t\tp.setCity(obj.next());\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tlog.info(\"Enter new State\");\n\t\t\t\t\tp.setState(obj.next());\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tlog.info(\"Enter new Zip Code\");\n\t\t\t\t\tp.setZip(obj.next());\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7:\n\t\t\t\t\tlog.info(\"Enter new Phone Number\");\n\t\t\t\t\tp.setPhno(obj.next());\n\t\t\t\t\tbreak;\n\t\t\t\tcase 8:\n\t\t\t\t\tlog.info(\"Enter new Email\");\n\t\t\t\t\tp.setEmail(obj.next());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (info_name == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "Product editProduct(Product product);", "private static void addBook() {\n\t\t\r\n\t\tString author = input(\"Enter author: \"); // varaible change A to author\r\n\t\tString title = input(\"Enter title: \"); // variable changes T to title\r\n\t\tString callNumber = input(\"Enter call number: \"); // variable name change C to callNumber\r\n\t\tbook B = lib.addBook(author, title, callNumber); //variable LIB changes to library,A to author,T to title,C to callNumber , method changes Add_book to addBook()\r\n\t\toutput(\"\\n\" + B + \"\\n\");\r\n\t\t\r\n\t}", "public void setBook(Book book) {\n this.book = book;\n }", "private void performDirectEdit() {\n\t}", "@GetMapping(\"/update\")\n\tpublic String updateBook(Map<String, Object> map, @ModelAttribute(\"bookCmd\") Book book, HttpServletRequest req) {\n\n\t\tList<BookModel> listmodel = null;\n\t\tBookModel model = null;\n\n\t\t// create model class object\n\t\tmodel = new BookModel();\n\t\t// use service\n\t\tmodel = service.findById(Integer.parseInt(req.getParameter(\"bookid\")));\n\n\t\t// copy model class to command class\n\t\tBeanUtils.copyProperties(model, book);\n\n\t\t// use service\n\t\tlistmodel = service.findAllBookDetails();\n\t\t\n\t\t//map \n\t\tmap.put(\"listmodel\", listmodel);\n\t\tmap.put(\"book\", book);\n\t\tSystem.out.println(book);\n\t\treturn \"register\";\n\n\t}", "@FXML\n void handleEdit(ActionEvent event) {\n if (checkFields()) {\n\n try {\n //create a pseudo new environment with the changes but same id\n Environment newEnvironment = new Environment(oldEnvironment.getId(), editTxtName.getText(), editTxtDesc.getText(), editClrColor.getValue());\n\n //edit the oldenvironment\n Environment.edit(oldEnvironment, newEnvironment);\n } catch (SQLException exception) {\n //failed to save a environment, IO with database failed\n Manager.alertException(\n resources.getString(\"error\"),\n resources.getString(\"error.10\"),\n this.dialogStage,\n exception\n );\n }\n //close the stage\n dialogStage.close();\n } else {\n //fields are not filled valid\n Manager.alertWarning(\n resources.getString(\"add.invalid\"),\n resources.getString(\"add.invalid\"),\n resources.getString(\"add.invalid.content\"),\n this.dialogStage);\n }\n Bookmark.refreshBookmarksResultsProperty();\n }", "public abstract void acceptEditing();", "@Override\n\tpublic void edit(HttpServletRequest request,HttpServletResponse response) {\n\t\tint id=Integer.parseInt(request.getParameter(\"id\"));\n\t\tQuestionVo qv=new QuestionVo().getInstance(id);\n\t\tcd.edit(qv);\n\t\ttry{\n\t\t\tresponse.sendRedirect(\"Admin/question.jsp\");\n\t\t\t}\n\t\t\tcatch(Exception e){}\n\t}", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n LinearLayout layout = new LinearLayout(BookListActivity.this);\n layout.setOrientation(LinearLayout.VERTICAL);\n\n final Book book = (Book) adapterView.getAdapter().getItem(i);\n\n //create edit texts and add to layout\n final EditText bookEditText = new EditText(BookListActivity.this);\n bookEditText.setText(book.getBook_name());\n layout.addView(bookEditText);\n final EditText authorEditText = new EditText(BookListActivity.this);\n authorEditText.setText(book.getAuthor_name());\n layout.addView(authorEditText);\n\n AlertDialog.Builder dialog = new AlertDialog.Builder(BookListActivity.this);\n dialog.setTitle(\"Edit Book\");\n dialog.setView(layout);\n dialog.setPositiveButton(\"Save\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //get updated book and author names\n final String updatedBookName = bookEditText.getText().toString();\n final String updatedAuthorName = authorEditText.getText().toString();\n if(!updatedBookName.isEmpty()) {\n changeBook(book.getId(), updatedBookName, updatedAuthorName);\n }\n }\n });\n dialog.setNegativeButton(\"Delete\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n deleteBook(book.getId());\n }\n });\n dialog.create();\n dialog.show();\n }", "private void rSButton8ActionPerformed(java.awt.event.ActionEvent evt) {\n try{\n String val1=jtext15.getText();\n String val2=jtext16.getText();\n String val3;\n val3 = (String) jComboBox4.getSelectedItem();\n String val4=jtext17.getText();\n String val5=jtext18.getText();\n String val6=jtext19.getText();\n String val7=jtext20.getText();\n String val8=jtext21.getText();\n \n String sql=\"update book set book_title='\"+val2+\"',category='\"+val3+\"',author_name='\"+val4+\"',publication='\"+val5+\"',edition='\"+val6+\"',pages='\"+val7+\"',price='\"+val8+\"' where book_id='\"+val1+\"'\";\n pst=(OraclePreparedStatement) conn.prepareStatement(sql);\n pst.execute();\n JOptionPane.showMessageDialog(null,\"Book Details Modified\"); \n refresh3();\n update1();\n }catch(Exception e)\n {\n JOptionPane.showMessageDialog(null,e); \n }\n }", "public boolean updateBook(Books books){\n String sql=\"update Book set book_name=?,book_publish_date=?,book_author=?,book_price=?,scraption=? where id=?\";\n boolean flag=dao.exeucteUpdate(sql,new Object[]{books.getBook_name(),books.getBook_publish_date(),\n books.getBook_author_name(),books.getBook_price(),books.getScraption(),books.getId()});\n return flag;\n }", "public UpdateBooks() {\n initComponents();\n showTable();\n }", "protected void doEdit (RenderRequest request,\n\t\t RenderResponse response)\n throws PortletException, java.io.IOException\n {\n throw new PortletException(\"doEdit method not implemented\");\n }", "@Override\r\n\tpublic boolean updateByBookId(Book book) {\n\t\tboolean flag=false;\r\n\t\tString sql=\"update books set title=?,author=?,publisherId=?,publishDate=?,isbn=?,wordsCount=?,unitPrice=?,contentDescription=?,aurhorDescription=?,editorComment=?,TOC=?,categoryId=?,booksImages=?,quantity=?,address=?,baoyou=? \"\r\n\t\t\t\t+ \"where id=?\";\r\n\t\tList<Object> list=new ArrayList<Object>();\r\n\t\tif(book!=null){\r\n\t\t\tlist.add(book.getTitle());\r\n\t\t\tlist.add(book.getAuthor());\r\n\t\t\tlist.add(book.getPublisherId());\r\n\t\t\tlist.add(book.getPublishDate());\r\n\t\t\tlist.add(book.getIsbn());\r\n\t\t\tlist.add(book.getWordsCount());\r\n\t\t\tlist.add(book.getUnitPrice());\r\n\t\t\tlist.add(book.getContentDescription());\r\n\t\t\tlist.add(book.getAurhorDescription());\r\n\t\t\tlist.add(book.getEditorComment());\r\n\t\t\tlist.add(book.getTOC());\r\n\t\t\tlist.add(book.getCategoryId());\r\n\t\t\t\r\n\t\t\tlist.add(book.getBooksImages());\r\n\t\t\tlist.add(book.getQuantity());\r\n\t\t\t\r\n\t\t\tlist.add(book.getAddress());\r\n\t\t\tif(book.getBaoyou()==\"0\"){\r\n\t\t\t\tbook.setBaoyou(\"不包邮\");\r\n\t\t\t}else{\r\n\t\t\t\tbook.setBaoyou(\"包邮\");\r\n\t\t\t}\r\n\t\t\tlist.add(book.getBaoyou());\r\n\t\t\tlist.add(book.getId());\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tint update = runner.update(sql, list.toArray());\r\n\t\t\tif(update>0){\r\n\t\t\t\tflag=true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn flag;\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 flag;\r\n\t}", "public abstract void checkEditing();", "Order editOrder(String orderId, Order editedOrder) throws \n OrderBookOrderException;", "private void saveBook() {\n // Read the data from the fields\n String productName = productNameEditText.getText().toString().trim();\n String price = priceEditText.getText().toString().trim();\n String quantity = Integer.toString(bookQuantity);\n String supplierName = supplierNameEditText.getText().toString().trim();\n String supplierPhone = supplierPhoneEditText.getText().toString().trim();\n\n // Check if any fields are empty, throw error message and return early if so\n if (productName.isEmpty() || price.isEmpty() ||\n quantity.isEmpty() || supplierName.isEmpty() ||\n supplierPhone.isEmpty()) {\n Toast.makeText(this, R.string.editor_activity_empty_message, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Format the price so it has 2 decimal places\n String priceFormatted = String.format(java.util.Locale.getDefault(), \"%.2f\", Float.parseFloat(price));\n\n // Create the ContentValue object and put the information in it\n ContentValues contentValues = new ContentValues();\n contentValues.put(BookEntry.COLUMN_BOOK_PRODUCT_NAME, productName);\n contentValues.put(BookEntry.COLUMN_BOOK_PRICE, priceFormatted);\n contentValues.put(BookEntry.COLUMN_BOOK_QUANTITY, quantity);\n contentValues.put(BookEntry.COLUMN_BOOK_SUPPLIER_NAME, supplierName);\n contentValues.put(BookEntry.COLUMN_BOOK_SUPPLIER_PHONE_NUMBER, supplierPhone);\n\n // Save the book data\n if (currentBookUri == null) {\n // New book, so insert into the database\n Uri newUri = getContentResolver().insert(BookEntry.CONTENT_URI, contentValues);\n\n // Show toast if successful or not\n if (newUri == null)\n Toast.makeText(this, getString(R.string.editor_insert_book_failed), Toast.LENGTH_SHORT).show();\n else\n Toast.makeText(this, getString(R.string.editor_insert_book_successful), Toast.LENGTH_SHORT).show();\n } else {\n // Existing book, so save changes\n int rowsAffected = getContentResolver().update(currentBookUri, contentValues, null, null);\n\n // Show toast if successful or not\n if (rowsAffected == 0)\n Toast.makeText(this, getString(R.string.editor_update_book_failed), Toast.LENGTH_SHORT).show();\n else\n Toast.makeText(this, getString(R.string.editor_update_book_successful), Toast.LENGTH_SHORT).show();\n\n }\n\n finish();\n }", "public void editBtnOnclick()\r\n\t{\r\n\t\tif(cardSet.getCards().size() != 0)\r\n\t\t\tMainRunner.getSceneSelector().switchToCardEditor();\r\n\t}", "public void edit() {\n\t\tSystem.out.println(\"编写java笔记\");\r\n\t}", "public static void editButtonAction(ActionContext actionContext){\n Table dataTable = actionContext.getObject(\"dataTable\");\n Shell shell = actionContext.getObject(\"shell\");\n Thing store = actionContext.getObject(\"store\");\n \n TableItem[] items = dataTable.getSelection();\n if(items == null || items.length == 0){\n MessageBox box = new MessageBox(shell, SWT.ICON_WARNING | SWT.OK);\n box.setText(\"警告\");\n box.setMessage(\"请先选择一条记录!\");\n box.open();\n return;\n }\n \n store.doAction(\"openEditForm\", actionContext, \"record\", items[0].getData());\n }", "void setEditore(String editore);", "public void setBook_id(int book_id) {\n\tthis.book_id = book_id;\n}", "@Test\r\n\tpublic void editChapterDriver() {\r\n\t\tfinal Object testingData[][] = {\r\n\t\t\t{ // Successful test\r\n\t\t\t\t\"producer3\", 315, null\r\n\t\t\t}, { // A producer tries to edit a content of another producer\r\n\t\t\t\t\"producer1\", 315, IllegalArgumentException.class\r\n\t\t\t}, { // A user tries to create a content\r\n\t\t\t\t\"user3\", 315, IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++)\r\n\t\t\tthis.editionChapterTemplate((String) testingData[i][0], (Integer) testingData[i][1], (Class<?>) testingData[i][2]);\r\n\t}", "@FXML\r\n private void modifyPartAction() throws IOException {\r\n \r\n if (!partsTbl.getSelectionModel().isEmpty()) {\r\n Part selected = partsTbl.getSelectionModel().getSelectedItem();\r\n partToMod = selected.getId();\r\n generateScreen(\"AddModifyPartScreen.fxml\", \"Modify Part\");\r\n }\r\n else {\r\n displayMessage(\"No part selected for modification\");\r\n }\r\n \r\n }", "@RequestMapping(value=\"/api/books/{id}\", method=RequestMethod.PUT)\n\t public Book update(@ModelAttribute(\"Book\") Book books, @PathVariable(\"id\") Long id, @RequestParam(value=\"title\") String title, @RequestParam(value=\"description\") String desc, @RequestParam(value=\"language\") String lang, @RequestParam(value=\"pages\") Integer numberOfPages) {\n\t Book book = bookService.findBook(id);\n\t book.setTitle(title);\n\t book.setDescription(desc);\n\t book.setNumberOfPages(numberOfPages);\n\t return book;\n\t }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n tfBookTitle = new javax.swing.JTextField();\n tfEdition = new javax.swing.JTextField();\n tfISBN = new javax.swing.JTextField();\n tfTotalCopy = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n taAuthors = new javax.swing.JTextArea();\n ddAuthor = new javax.swing.JComboBox<>();\n bAddAuthorDropDown = new javax.swing.JButton();\n tfCopyRight = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n bCancle = new javax.swing.JButton();\n bReset = new javax.swing.JButton();\n bUpdateFinalize = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setResizable(false);\n\n jLabel1.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 18)); // NOI18N\n jLabel1.setText(\"Update Book Information\");\n\n jLabel2.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 14)); // NOI18N\n jLabel2.setText(\"Title:\");\n\n jLabel3.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 14)); // NOI18N\n jLabel3.setText(\"Author:\");\n\n jLabel4.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 14)); // NOI18N\n jLabel4.setText(\"ISBN No.:\");\n\n jLabel5.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 14)); // NOI18N\n jLabel5.setText(\"Edition:\");\n\n jLabel6.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 14)); // NOI18N\n jLabel6.setText(\"Total Copy:\");\n\n tfBookTitle.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tfBookTitleActionPerformed(evt);\n }\n });\n\n tfEdition.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tfEditionActionPerformed(evt);\n }\n });\n\n tfISBN.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tfISBNActionPerformed(evt);\n }\n });\n\n tfTotalCopy.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tfTotalCopyActionPerformed(evt);\n }\n });\n\n taAuthors.setColumns(20);\n taAuthors.setRows(5);\n jScrollPane1.setViewportView(taAuthors);\n\n ddAuthor.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n bAddAuthorDropDown.setText(\"< Add\");\n bAddAuthorDropDown.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bAddAuthorDropDownActionPerformed(evt);\n }\n });\n\n jLabel7.setText(\"Copy Right:\");\n\n bCancle.setText(\"Cancel\");\n bCancle.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bCancleActionPerformed(evt);\n }\n });\n\n bReset.setText(\"Reset\");\n bReset.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bResetActionPerformed(evt);\n }\n });\n\n bUpdateFinalize.setText(\"Update\");\n bUpdateFinalize.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bUpdateFinalizeActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(105, 105, 105)\n .addComponent(jLabel1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(14, 14, 14)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(tfCopyRight, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tfTotalCopy))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(32, 32, 32)\n .addComponent(tfEdition))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(20, 20, 20)\n .addComponent(tfISBN))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 43, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tfBookTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 354, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(ddAuthor, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(bAddAuthorDropDown, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))))\n .addGap(13, 13, 13))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(bCancle, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(29, 29, 29)\n .addComponent(bReset, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(26, 26, 26)\n .addComponent(bUpdateFinalize, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(33, 33, 33))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addGap(36, 36, 36)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(tfBookTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addComponent(jLabel3))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(ddAuthor, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(bAddAuthorDropDown, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(tfISBN, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(25, 25, 25)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(tfEdition, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tfCopyRight, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(tfTotalCopy, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(bUpdateFinalize, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(bReset, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(bCancle, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel1Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {tfCopyRight, tfEdition});\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 .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }", "Trade editTrade(String tradeId, Trade editedTrade) throws \n OrderBookTradeException;", "void editTakingPrice() throws PresentationException {\n\t\tTakingPrice tp = null;\n\t\tint codebar_item;\n\t\tint code_supermarket;\n\t\tint newCodeItem;\n\n\t\tprinter.printMsg(\"Digite o código do item a ser alterado? \");\n\t\tcodebar_item = reader.readNumber();\n\n\t\tprinter.printMsg(\"Digite o código do supermercado a ser alterado? \");\n\t\tcode_supermarket = reader.readNumber();\n\n\t\tprinter.printMsg(\n\t\t\t\t\" Digite a data da tomada de preço do item: (Ex.Formato: '2017-12-16 10:55:53' para 16 de dezembro de 2017, 10 horas 55 min e 53 seg)\");\n\t\tString dateTP = reader.readText();\n\t\tdateTP = reader.readText();\n\n\t\tString pattern = \"yyyy-mm-dd hh:mm:ss\";\n\t\tSimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n\t\tDate dateTPF = null;\n\t\ttry {\n\t\t\tdateTPF = simpleDateFormat.parse(dateTP);\n\t\t} catch (ParseException e) {\n\t\t\tthrow new PresentationException(\"Não foi possível executar a formatação da data no padrão definido\", e);\n\t\t\t// e.printStackTrace();\n\t\t}\n\t\t// pensando em cadastrar o novo preço sem editar o preço antigo. Senão terei que\n\t\t// controlar por muitos atributos.\n\n\t\tif (tpm.checksExistence(codebar_item, code_supermarket, dateTPF)) {\n\t\t\ttp = tpm.getTakingPrice(codebar_item, code_supermarket, dateTPF);\n\t\t\tint codeSupermarket = tp.getCodeSupermarket();\n\t\t\tdouble priceItem = tp.getPrice();\n\t\t\tDate dateTPE = tp.getDate();\n\t\t\tint respEdit = 0;\n\n\t\t\ttpm.deleteTakingPrice(codebar_item, code_supermarket, dateTPE);\n\n\t\t\tdo {\n\t\t\t\ttry {\n\t\t\t\t\trespEdit = this.askWhatEdit(tp);\n\n\t\t\t\t} catch (NumeroInvalidoException e) {\n\t\t\t\t\tthrow new PresentationException(\"A opção digitada não é uma opção válida\", e);\n\t\t\t\t}\n\n\t\t\t\tif (respEdit == 1) {\n\t\t\t\t\tprinter.printMsg(\" Digite o novo código do item: \");\n\t\t\t\t\tnewCodeItem = reader.readNumber();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.saveTakingPrice(newCodeItem, priceItem, codeSupermarket, dateTPE);\n\t\t\t\t\t} catch (PresentationException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} else if (respEdit == 2) {\n\t\t\t\t\tprinter.printMsg(\" Digite o novo código do supermercado: \");\n\t\t\t\t\tint newCodeSupermarket = 0;\n\t\t\t\t\tnewCodeSupermarket = reader.readNumber();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.saveTakingPrice(codebar_item, priceItem, newCodeSupermarket, dateTPE);\n\t\t\t\t\t} catch (PresentationException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} else if (respEdit == 3) {\n\t\t\t\t\tprinter.printMsg(\" Digite o novo preço do item: \");\n\t\t\t\t\tdouble newPriceItem = 0;\n\t\t\t\t\tnewPriceItem = reader.readNumberDouble();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.saveTakingPrice(codebar_item, newPriceItem, codeSupermarket, dateTPE);\n\t\t\t\t\t} catch (PresentationException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} else if (respEdit == 4) {\n\t\t\t\t\tprinter.printMsg(\n\t\t\t\t\t\t\t\" Digite a nova data da tomada de preço do item: (Ex.Formato: '2017-12-16 10:55:53' para 16 de dezembro de 2017, 10 horas 55 min e 53 seg)\");\n\t\t\t\t\tString date = reader.readText();\n\t\t\t\t\tdate = reader.readText();\n\n\t\t\t\t\t// String pattern = \"yyyy-mm-dd hh:mm:ss\";\n\t\t\t\t\t// SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n\t\t\t\t\tDate newDateTP = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tnewDateTP = simpleDateFormat.parse(date);\n\t\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t\tthrow new PresentationException(\"A opção digitada não é uma opção válida\", e);\n\t\t\t\t\t\t// e.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"Date:\" + date);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.saveTakingPrice(codebar_item, priceItem, codeSupermarket, newDateTP);\n\t\t\t\t\t} catch (PresentationException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t} while (respEdit != 1 & respEdit != 2 & respEdit != 3 & respEdit != 4);\n\n\t\t} else\n\n\t\t{\n\t\t\tprinter.printMsg(\"Não existe tomada de preço com estes códigos cadastrados.\");\n\t\t}\n\n\t}", "public void editAss() throws IOException {\r\n\t\tif (listview.getSelectionModel().getSelectedItem() != null) {\r\n\t\t\tassToChoose = listview.getSelectionModel().getSelectedItem();\r\n\t\t\tfor (int i = 0; i < b.size(); i++) {\r\n\t\t\t\tif (b.get(i).getAssname().equals(assToChoose)) {\r\n\t\t\t\t\tassId = b.get(i).getAssId();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tconnectionmain.showTeacherEditAssGUI();\r\n\t\t}\r\n\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t\teditRecipe(recipeString);\n\t\t\t\t\t\t\t\t\t\tsavedDialog();\n\t\t\t\t\t\t\t\t\t}", "public void edit() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"editButton\").click();\n\t}", "public void editAuthor(final View view) {\n final Author author = (Author) view.getTag();\n\n final Dialog dialog = new Dialog(this);\n dialog.setContentView(R.layout.dialog_edit_author);\n dialog.setTitle(R.string.title_dialog_edit_author);\n\n final AutoCompleteTextView textAuthor = (AutoCompleteTextView) dialog.findViewById(R.id.editAuthor_textAuthor);\n textAuthor.setText(author.name);\n textAuthor.setAdapter(mAutoCompleteAdapter);\n\n Button saveButton = (Button) dialog.findViewById(R.id.editAuthor_confirm);\n Button cancelButton = (Button) dialog.findViewById(R.id.editAuthor_cancel);\n\n saveButton.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View v) {\n String authorName = textAuthor.getText().toString().trim();\n\n String errorMessage = null;\n if (authorName.length() == 0) {\n errorMessage = getString(R.string.message_author_missing);\n } else if (!author.name.equals(authorName)) {\n if (mAuthorMap.containsKey(authorName)) {\n String message = getString(R.string.message_author_already_present);\n errorMessage = String.format(message, authorName);\n } else {\n int authorIndex = mAuthorList.indexOf(author);\n\n Author a = new Author();\n a.name = authorName;\n Author authorDb = authorService.getAuthorByCriteria(a);\n\n if (authorDb != null) {\n a = authorDb;\n }\n mAuthorList.remove(authorIndex);\n mAuthorList.add(authorIndex, a);\n mAuthorArrayAdapter.notifyDataSetChanged();\n mAuthorMap.remove(author.name);\n mAuthorMap.put(authorName, a);\n }\n }\n\n if (errorMessage == null) {\n textAuthor.setText(null);\n textAuthor.setError(null);\n dialog.dismiss();\n } else {\n textAuthor.setError(errorMessage);\n }\n }\n });\n cancelButton.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n\n dialog.show();\n }", "private void editDVD() throws DVDLibraryDaoException {\n view.displayEditDVDBanner();\n String title = view.getDVDChoice();\n DVD currentDVD = dao.removeDVD(title); \n //here I have the DVD I want to edit and it has been removed from the collection\n boolean done = false; //loop so I can edit all the fields I want\n\n while (!done) {\n int selection = view.printEditMenuAndGetSelection();\n\n switch (selection) {\n case 1: //releasDate\n String releaseDate = view.editDVDField(\"Please enter updated release date\");\n currentDVD.setReleaseDate(releaseDate);\n break;\n case 2: //rating\n String rating = view.editDVDField(\"Please enter updated MPAA rating\");\n currentDVD.setMPAArating(rating);\n break;\n case 3: //director\n String directorName = view.editDVDField(\"Please enter the director's name\");\n currentDVD.setDirectorName(directorName);\n break;\n case 4: //studio\n String studio = view.editDVDField(\"Please enter the studio\");\n currentDVD.setStudio(studio);\n break;\n case 5: //notes\n String userNotes = view.editDVDField(\"Add additional notes if desired\");\n currentDVD.setUserNotes(userNotes);\n break;\n case 6:\n done = true;\n break;\n }\n }\n dao.addDVD(title, currentDVD); //adds DVD back to collection and writes t0 file\n view.displayEditSuccessBanner();\n }", "@FXML\n\tpublic void editClicked(ActionEvent e) {\n\t\tMain.getInstance().navigateToDialog(\n\t\t\t\tConstants.EditableCourseDataViewPath, course);\n\t}", "public void editMenuItem() {\n\t\tviewMenu();\n\n\t\t// Clean arraylist so that you can neatly add data from saved file\n\t\tmm.clear();\n\t\t\n\t\tString menuEdit;\n\t\tint editC;\n\n\t\tSystem.out.println(\"Which one do you want to edit?\");\n\n\t\tString toChange;\n\t\tDouble changePrice;\n\t\tScanner menuE = new Scanner(System.in);\n\t\tmenuEdit = menuE.next();\n\n\t\ttry \n\t\t{\n\t\t\t// Get data contents from saved file\n\t\t\tFileInputStream fis = new FileInputStream(\"menuData\");\n ObjectInputStream ois = new ObjectInputStream(fis);\n \n mm = (ArrayList<AlacarteMenu>) ois.readObject();\n \n ois.close();\n fis.close();\n \n try {\n \tfor (int i = 0; i < mm.size(); i++) {\n \t\t\tif (mm.get(i).getMenuName().equals(menuEdit.toUpperCase())) {\n \t\t\t\tSystem.out.println(\n \t\t\t\t\t\t\"Edit Option \\n 1 : Menu Description \\n 2 : Menu Price \\n 3 : Menu Type \");\n \t\t\t\teditC = menuE.nextInt();\n\n \t\t\t\tif (editC == 1) {\n \t\t\t\t\tmenuE.nextLine();\n \t\t\t\t\tSystem.out.println(\"Change in Menu Description : \");\n \t\t\t\t\ttoChange = menuE.nextLine();\n \t\t\t\t\tmm.get(i).setMenuDesc(toChange);\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t\telse if (editC == 2) {\n \t\t\t\t\tSystem.out.println(\"Change in Menu Price : \");\n \t\t\t\t\tchangePrice = menuE.nextDouble();\n \t\t\t\t\tmm.get(i).setMenuPrice(changePrice);\n \t\t\t\t\tbreak;\n \t\t\t\t} \n \t\t\t\telse if (editC == 3) {\n \t\t\t\t\tSystem.out.println(\"Change in Menu Type : \\n1 : Appetizers \\n2 : Main \\n3 : Sides \\n4 : Drinks\");\n \t\t\t\t\tchangePrice = menuE.nextDouble();\n \t\t\t\t\tif (changePrice == 1) {\n \t\t\t\t\t\tmm.get(i).setMenuType(\"Appetizers\");\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t}\n \t\t\t\t\telse if (changePrice == 2) {\n \t\t\t\t\t\tmm.get(i).setMenuType(\"Main\");\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t}\n \t\t\t\t\telse if (changePrice == 3) {\n \t\t\t\t\t\tmm.get(i).setMenuType(\"Sides\");\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t} \n \t\t\t\t\telse if (changePrice == 4) {\n \t\t\t\t\t\tmm.get(i).setMenuType(\"Drinks\");\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}\n \t\n \tFileOutputStream fos = new FileOutputStream(\"menuData\");\n\t\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\t\t\toos.writeObject(mm);\n\t\t\t\toos.close();\n\t\t\t\tfos.close();\n }\n catch (IOException e) {\n \t\t\tSystem.out.println(\"Error editing menu item!\");\n \t\t\treturn;\n \t\t}\n ois.close();\n fis.close();\n\t\t} \n\t\tcatch (IOException e) {\n\t\t\t//System.out.println(\"No menu items found!\");\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\tSystem.out.format(\"| Menu ID | Description | Price | Type |%n\");\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\treturn;\n\t\t}\n\t\tcatch (ClassNotFoundException c) {\n\t\t\tc.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}", "@Override\n\tpublic void modify(BookInfoVO vo) {\n\t\tbookInfoDao.modify(vo);\n\t}", "boolean openPageInEditMode();", "public boolean bookSave(Book book) {\n\t\t\r\n\t\treturn true;\r\n\t}", "@Override\n public void update(BookUpdateViewModel viewModel) {\n Book bookDb = repository.findById(viewModel.getId())\n .orElseThrow(RecordNotFoundException::new);\n\n\n // check the validity of the fields\n if (viewModel.getTitle().strip().length() < 5) {\n throw new DomainValidationException();\n }\n\n // apply the update\n BeanUtils.copyProperties(viewModel, bookDb);\n\n // save and flush\n repository.saveAndFlush(bookDb);\n }", "void viewBooks();", "private void btnEditActionPerformed(java.awt.event.ActionEvent evt) {\n edit();\n clear();\n readData();\n clearControl();\n\n }", "public void editReview() throws ServletException, IOException {\r\n\t\tInteger reviewId = Integer.parseInt(request.getParameter(\"id\"));\r\n\t\tReview review = reviewDAO.get(reviewId);\r\n\t\t\r\n\t\tif (review != null) {\r\n\t\t\trequest.setAttribute(\"review\", review);\r\n\t\t\t\r\n\t\t\tString editPage = \"review_form.jsp\";\r\n\t\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(editPage);\r\n\t\t\tdispatcher.forward(request, response);\t\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\tString message = \"Another user has already deleted review with ID \" + reviewId + \".\";\r\n\t\t\tlistAllReview(message);\r\n\t\t}\r\n\t}", "@Override\n public void checkEditing() {\n }", "public void update(int bookId, int quantity){ \n JSONObject jbook = dbmanager.getBmanager().readJSON(bookId);\n dbmanager.getBmanager().delete(bookId);\n jbook.remove(\"quantity\");\n jbook.put(\"quantity\", Integer.toString(quantity));\n dbmanager.open();\n dbmanager.createCommit(getNextBookId(),jbook);\n dbmanager.close();\n \n }", "@Override\n\tprotected void initForEdit(AWRequestContext requestContext) {\n\n\t}", "public void editaLivro(Livro livro) {\n itemLivroDAOBD.editarLivro(livro);\n }", "public void bookListMethod(){\r\n //make sure they selected something in the list\r\n if (bookList.getSelectedIndex() != -1){\r\n //remove from panels\r\n generalInventoryEditPanel.removeAll();\r\n tablePanel.removeAll();\r\n //initalize string and bookset and string array for the header\r\n String setName = (String)bookList.getSelectedValue();\r\n BookSet bookSet = bookInv.getBookSet(setName);\r\n String[] header = {\"Book ID\", \"Status\", \"Student Name\", \"Teacher Name\", \"Room #\"};\r\n //Creating the table from loaded information\r\n generalInventoryTable = new JTable(new DefaultTableModel(bookSet.getInfoArray(), header)){\r\n //Do not allow editing in the table\r\n public boolean isCellEditable(int row, int column){ \r\n return false; \r\n };\r\n };\r\n generalInventoryTable.getTableHeader().setReorderingAllowed(false);\r\n //Setting fonts of the table\r\n JPanel mainSubPanelGeneralInventoryEdit = new JPanel(new BorderLayout());\r\n \r\n generalInventoryTable.setFont(new Font(\"Arial\", Font.PLAIN, 13));\r\n generalInventoryTable.getTableHeader().setFont(new Font(\"Arial\", Font.BOLD, 15));\r\n //add to table panel\r\n tablePanel.add(new JScrollPane(generalInventoryTable));\r\n //add table panel to sub panel\r\n mainSubPanelGeneralInventoryEdit.add(tablePanel, BorderLayout.CENTER);\r\n //initialize panel\r\n JPanel editButtonPanel = new JPanel(new GridLayout(1,2));\r\n //add two buttons to panel\r\n editButtonPanel.add(removeBook);\r\n editButtonPanel.add(signOutBook);\r\n //add buttons to the GIeditpanel\r\n mainSubPanelGeneralInventoryEdit.add(editButtonPanel, BorderLayout.PAGE_END);\r\n generalInventoryEditPanel.add(mainSubPanelGeneralInventoryEdit,BorderLayout.CENTER);\r\n generalInventoryEditPanel.add(backToGeneralInventory,BorderLayout.SOUTH);\r\n //make the frame visible\r\n generalInventoryEditFrame.setVisible(true);\r\n }\r\n }", "public void actionPerformed(ActionEvent e){\n boolean sentinel = false;\n try{\n if(listOfEBooks.getSelectedItem() == null) {\n new errorWindow(\"No E-Book was selected\");\n return;\n }\n\n if(nameField.getText().equals(\"\")) {\n new errorWindow(\"Enter a name for the E-Book!\");\n sentinel = true;\n }\n if(classForField.getText().equals(\"\")){\n new errorWindow(\"Enter the name of the class for the E-Book\");\n sentinel = true;\n }\n if(redemptionCodeField.getText().equals(\"\")){\n new errorWindow(\"Enter the redemption code of the E-Book\");\n sentinel = true;\n }\n\n if(sentinel == true){\n return;\n }\n else {\n //Updates the E-Book when it is set to have no owner.\n if(redemptionStatusComboBox.getSelectedItem().equals(\"false\")){\n EBook temp = (EBook)listOfEBooks.getSelectedItem();\n books.remove(temp);\n redemptionCodes.remove(temp.getRedemptionCode()+\",\");\n temp.setBookName(nameField.getText());\n temp.setClassFor(classForField.getText());\n temp.setRedemptionCode(redemptionCodeField.getText());\n temp.setRedemptionStatus(Boolean.parseBoolean(redemptionStatusComboBox.getSelectedItem().toString()));\n books.put(temp);\n redemptionCodes.put(redemptionCodeField.getText()+\",\");\n DefaultTableModel table = (DefaultTableModel)database.getModel();\n table.setValueAt(nameField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 0);\n table.setValueAt(classForField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 1);\n table.setValueAt(redemptionCodeField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 2);\n table.setValueAt(redemptionStatusComboBox.getSelectedItem(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 3);\n dispose();\n }\n else {\n //Checks to see if the inputed changes are appropiate.\n EBook temp = (EBook)listOfEBooks.getSelectedItem();\n books.remove(temp);\n if(studentNameField.getText().equals(\"\")){\n new errorWindow(\"Insert a name\");\n sentinel = true;\n }\n if(gradeLevelField.getText().equals(\"\")){\n new errorWindow(\"Insert a grade level\");\n sentinel = true;\n }\n \n try{\n int gradeLevel = Integer.parseInt(gradeLevelField.getText().trim());\n if(Integer.parseInt(gradeLevelField.getText().trim()) < 1 || Integer.parseInt(gradeLevelField.getText().trim()) > 12){\n new errorWindow(\"Grade Level should be between 1 and 12th\");\n sentinel = true;\n }\n }catch(NumberFormatException nfe){\n new errorWindow(\"Grade Level must be a number\");\n }\n\n \n if(sentinel == true){\n return;\n }\n //Updates the E-Book for an E-Book that has no owner.\n if(temp.getRedemptionStatus() == false){\n redemptionCodes.remove(temp.getRedemptionCode()+\",\");\n unredeemedEBooks.remove(temp);\n temp.setBookName(nameField.getText());\n temp.setClassFor(classForField.getText());\n temp.setRedemptionCode(redemptionCodeField.getText());\n temp.setRedemptionStatus(Boolean.parseBoolean(redemptionStatusComboBox.getSelectedItem().toString()));\n temp.setOwner(new Student(studentNameField.getText(), Integer.parseInt(gradeLevelField.getText())));\n books.put(temp);\n redemptionCodes.put(redemptionCodeField.getText()+\",\");\n DefaultTableModel table = (DefaultTableModel)database.getModel();\n table.setValueAt(nameField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 0);\n table.setValueAt(classForField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 1);\n table.setValueAt(redemptionCodeField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 2);\n table.setValueAt(redemptionStatusComboBox.getSelectedItem(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 3);\n table.setValueAt(studentNameField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 4);\n table.setValueAt(gradeLevelField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 5);\n dispose();\n }\n //Updates the E-Book if the E-Book already has an owner.\n else {\n redemptionCodes.remove(temp.getRedemptionCode()+\",\");\n temp.setBookName(nameField.getText());\n temp.setClassFor(classForField.getText());\n temp.setRedemptionCode(redemptionCodeField.getText());\n temp.setRedemptionStatus(Boolean.parseBoolean(redemptionStatusComboBox.getSelectedItem().toString()));\n temp.setRedemptionStatus(Boolean.parseBoolean(redemptionStatusComboBox.getSelectedItem().toString()));\n temp.setOwner(new Student(studentNameField.getText(), Integer.parseInt(gradeLevelField.getText())));\n books.put(temp);\n redemptionCodes.put(redemptionCodeField.getText()+\",\");\n DefaultTableModel table = (DefaultTableModel)database.getModel();\n table.setValueAt(nameField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 0);\n table.setValueAt(classForField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 1);\n table.setValueAt(redemptionCodeField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 2);\n table.setValueAt(redemptionStatusComboBox.getSelectedItem(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 3);\n table.setValueAt(studentNameField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 4);\n table.setValueAt(gradeLevelField.getText(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 5);\n dispose();\n }\n }\n }\n }catch(IOException ex){\n ex.printStackTrace();\n }\n }", "public void updateAuthor(Author author);", "private void edit() {\n mc.displayGuiScreen(new GuiEditAccount(selectedAccountIndex));\n }", "@Override\n\tpublic void addBook() {\n\t\t\n\t}", "public void issueBook() {\n\t\t JTextField callno = new JTextField();\r\n\t\t JTextField name = new JTextField();\r\n\t\t JTextField id = new JTextField(); \r\n\t\t JTextField contact = new JTextField(); \r\n\t\t Object[] issued = {\r\n\t\t\t\t \"Bookcallno:\",callno,\r\n\t\t\t\t \"Student ID:\",id,\r\n\t\t\t\t \"Name:\",name,\r\n\t\t\t\t \"Contact:\",contact\r\n\t\t\t\t\r\n\t\t };\r\n\t\t int option = JOptionPane.showConfirmDialog(null, issued, \"New issued book\", JOptionPane.OK_CANCEL_OPTION);\r\n\t\t if(option==JOptionPane.OK_OPTION) {\r\n\t\t\tint check = checkBook(callno.getText());\r\n\t\t\tif(check==-1) {\r\n\t\t\t\t JOptionPane.showMessageDialog(null, \"Wrong book call number\", null, JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t return;\r\n\t\t\t}\r\n\t\t\telse if(check == 0) {\r\n\t\t\t\t JOptionPane.showMessageDialog(null, \"Book is not available right now\", null, JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t return;\r\n\t\t\t}\r\n // add to the Book database\r\n\t\t try {\r\n\t\t\t \r\n\t\t String query = \"insert into Issued(bookcallno,studentId,studentName,studentContact,issued_date)\"\r\n\t\t\t\t +\" values(?,?,?,?,GETDATE())\";\r\n\t\t \r\n\t\t PreparedStatement s = SimpleLibraryMangement.connector.prepareStatement(query);\r\n\t\t s.setString(1, callno.getText());\r\n\t\t s.setInt(2, Integer.parseInt(id.getText()));\r\n\t\t s.setString(3, name.getText());\r\n\t\t s.setString(4, contact.getText());\r\n\t\t \r\n\t\t s.executeUpdate();\r\n\t\t updateIssuedBook(callno.getText());\r\n\t\t JOptionPane.showMessageDialog(null, \"Issue book successfully\", null, JOptionPane.INFORMATION_MESSAGE);\r\n\r\n\t\t } catch(Exception e) {\r\n\t\t\t JOptionPane.showMessageDialog(null, \"Issue book failed\", null, JOptionPane.ERROR_MESSAGE);\r\n\t\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t } \r\n\t }", "public Book updateBook(Long id, Book book) {\n return this.sRepo.save(book);\n\n\t}", "private void editComic() {\n mainActivity.ISSUE_ID = comic.getComicID();\n\n //Load the edit fragment\n mainActivity.loadEditComicFragment();\n }", "private void update(){\n if(!((EditText)findViewById(R.id.bookTitle)).getText().toString().trim().isEmpty()){\n if(!appData.getCurrentBookId().isEmpty()){\n mRealm.executeTransactionAsync(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n BookInfo mBookInfo= realm.where(BookInfo.class).equalTo(\"mBookId\",\n appData.getCurrentBookId()).findFirst();\n mBookInfo.setBookTitle(((EditText) findViewById(R.id.bookTitle))\n .getText().toString());\n mBookInfo.setAuthorsNames(((EditText) findViewById(R.id.bookAuthor))\n .getText().toString());\n mBookInfo.setGenre(mSelectedGenre.get(\"position\"));\n }\n });\n Intent main = new Intent(this,BookListActivity.class);\n startActivity(main);\n finish();\n }else{\n\n mRealm.executeTransactionAsync(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n\n BookInfo mBookInfo = realm.createObject(BookInfo.class,\n UUID.randomUUID().toString());\n mBookInfo.setBookTitle(((EditText) findViewById(R.id.bookTitle))\n .getText().toString());\n mBookInfo.setAuthorsNames(((EditText) findViewById(R.id.bookAuthor))\n .getText().toString());\n mBookInfo.setGenre(mSelectedGenre.get(\"position\"));\n }\n });\n Intent main = new Intent(this,BookListActivity.class);\n startActivity(main);\n finish();\n\n }\n }else{\n new AlertDialog.Builder(EditOrAddBookActivity.this)\n .setTitle(\"No Book Title\")\n .setMessage(\"You must at the very least have a book title\")\n .setCancelable(false)\n .setPositiveButton(\"ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // Whatever...\n }\n }).show();\n }\n }", "public abstract void editQuestion();", "@FXML\n public void editSet(MouseEvent e) {\n AnchorPane root = null;\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/learn_update.fxml\"));\n try {\n root = loader.load();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n LearnUpdateController controller = loader.getController();\n controller.initData(txtTitle.getText(), rootController, learnController, apnLearn);\n rootController.setActivity(root);\n root.requestFocus();\n }", "private void updateBook(){\n String dateStarted = ((EditText)dialogView.findViewById(R.id.input_date_started_reading))\n .getText().toString();\n book.setDateStarted(dateStarted);\n\n String dateCompleted = ((EditText)dialogView.findViewById(R.id.input_date_completed))\n .getText().toString();\n book.setDateCompleted(dateCompleted);\n\n //update the book\n DatabaseReference mDatabase = FirebaseDatabase.getInstance().getReference();\n mDatabase.child(\"books\").child(book.getId()).setValue(book);\n\n //hide dialog\n dismiss();\n }", "public void setEditedItem(Object item) {editedItem = item;}", "public void Dbdisplay_For_Edit() {\n String Reg = editAccessionNoText.getText();\n\n try {\n con = DbConnection();\n\n st = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n\n ResultSet rs = st.executeQuery(\"select * from bookdetails where AccessionNo ='\" + Reg + \"'\");\n while (rs.next()) {\n editISBNNoText.setText(rs.getString(\"ISBNNo\"));\n editCLAccessiontext.setText(rs.getString(\"CL Accession\"));\n editBookTitletext.setText(rs.getString(\"BookTitle\"));\n editAuthorNametext.setText(rs.getString(\"Author Name\"));\n editEditionText.setText(rs.getString(\"Edition\"));\n editBookshelfNotext.setText(rs.getString(\"Book Self No\"));\n editColumnNotext.setText(rs.getString(\"Row No\"));\n editRowNotext.setText(rs.getString(\"Column No\"));\n\n }\n\n } catch (Exception ex) {\n Logger.getLogger(StudentInformation.class\n .getName()).log(Level.SEVERE, null, ex);\n\n }\n }", "public static void editcar(String ref) {\n\n Scanner sc = new Scanner(System.in);\n Cars xx = new Cars();\n System.out.println(\"edit car\");\n String target = ref.toUpperCase();\n int gotit = 0;\n for (int i = 0; i < listcars.size(); i++) {\n\n xx = listcars.get(i);\n String record = xx.getReference().toUpperCase();\n if (record.equals(target)) {\n System.out.println(\" Car found !\");\n System.out.println(\" reference: \" + xx.getReference());\n System.out.println(\"please select enter to continue or write a new reference\");\n ref = sc.nextLine();\n if (!ref.equals(\"\")) {xx.SetRef(ref);}\n\n System.out.println(\"Brand: \" + xx.getBrand());\n String brand = sc.nextLine();\n if (!brand.equals(\"\")) {xx.SetBrand(brand);}\n String mo;\n System.out.println(\"Model: \" + xx.getModel());\n mo = sc.nextLine();\n if (!mo.equals(\"\")) { xx.SetModel(mo); }\n\n String ye;\n System.out.println(\" Year: \" + String.valueOf(xx.getYear()));\n ye = sc.nextLine();\n if (!ye.equals(\"\")) { xx.SetYear(Integer.valueOf(sc.nextLine())); }\n\n System.out.println(\"car's information successfully updated \");\n ye = String.valueOf(xx.getYear());\n\n System.out.println(\"Brand: \"+ xx.getBrand()+ \",Model:\"+ xx.getModel()+ \", Reference:\"+ xx.getReference()+ \", Year: \" + ye);\n gotit = 1;\n\n }\n }\n if (gotit == 0) {\n System.out.println(\"user not found !\");\n }\n\n\n }", "public static void doEdit ( RunData data )\n\t{\n\t\tParameterParser params = data.getParameters ();\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\tMap current_stack_frame = pushOnStack(state);\n\n\t\tstate.setAttribute(STATE_LIST_SELECTIONS, new TreeSet());\n\n\t\t// cancel copy if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_COPY_FLAG)))\n\t\t{\n\t\t\tinitCopyContext(state);\n\t\t}\n\n\t\t// cancel move if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_MOVE_FLAG)))\n\t\t{\n\t\t\tinitMoveContext(state);\n\t\t}\n\n\t\tString id = NULL_STRING;\n\t\tid = params.getString (\"id\");\n\t\tif(id == null || id.length() == 0)\n\t\t{\n\t\t\t// there is no resource selected, show the alert message to the user\n\t\t\taddAlert(state, rb.getString(\"choosefile2\"));\n\t\t\treturn;\n\t\t}\n\n\t\tcurrent_stack_frame.put(STATE_STACK_EDIT_ID, id);\n\n\t\tString collectionId = (String) params.getString(\"collectionId\");\n\t\tif(collectionId == null)\n\t\t{\n\t\t\tcollectionId = ContentHostingService.getSiteCollection(ToolManager.getCurrentPlacement().getContext());\n\t\t\tstate.setAttribute(STATE_HOME_COLLECTION_ID, collectionId);\n\t\t}\n\t\tcurrent_stack_frame.put(STATE_STACK_EDIT_COLLECTION_ID, collectionId);\n\n\t\tEditItem item = getEditItem(id, collectionId, data);\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\t// got resource and sucessfully populated item with values\n\t\t\t// state.setAttribute (STATE_MODE, MODE_EDIT);\n\t\t\tstate.setAttribute(ResourcesAction.STATE_RESOURCES_HELPER_MODE, ResourcesAction.MODE_ATTACHMENT_EDIT_ITEM_INIT);\n\t\t\tstate.setAttribute(STATE_EDIT_ALERTS, new HashSet());\n\t\t\tcurrent_stack_frame.put(STATE_STACK_EDIT_ITEM, item);\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\tpopFromStack(state);\n\t\t}\n\n\t}", "private static void editStudent () {\n System.out.println(\"Here is a list of Students..\");\n showStudentDB();\n System.out.println(\"Enter Id of student you want to edit: \");\n int studentId = input.nextInt();\n input.nextLine();\n Student student = null;\n\n for(Student s: studentDB) {\n if(s.getID() == studentId) {\n student = s;\n }\n }\n\n if(student != null) {\n System.out.println(\"Enter New Name\");\n String str = input.nextLine();\n student.setName(str);\n System.out.println(\"Name is changed!\");\n System.out.println(\"Id: \" + student.getID() + \"\\n\" + \"Name: \" + student.getName() );\n } else {\n System.out.println(\"Invalid Person!\");\n }\n }", "public void onEdit(View view){\n\n Intent intent = new Intent(this,ACT_Edit_Course.class);\n intent.putExtra(\"refID\",selectedCategory);\n startActivity(intent);\n\n }", "@Override\n\tpublic void editTutorial() {\n\t\t\n\t}", "void addInBookNo(Object newInBookNo);", "@Override\n\tpublic void editExchange() {\n\t\t\n\t}" ]
[ "0.78359616", "0.7634996", "0.7395644", "0.6954646", "0.6929578", "0.6772403", "0.6756271", "0.6755238", "0.66973555", "0.6644628", "0.64925736", "0.64816564", "0.647672", "0.64587045", "0.6438472", "0.64214116", "0.6419906", "0.6402373", "0.63889927", "0.63835007", "0.6343178", "0.6337547", "0.632731", "0.6326798", "0.62957305", "0.6282437", "0.6270135", "0.6258059", "0.624351", "0.6239278", "0.6205134", "0.6173938", "0.61670566", "0.61566645", "0.6144302", "0.61436105", "0.6138657", "0.6124326", "0.61175954", "0.611404", "0.6109906", "0.6085857", "0.6070665", "0.606484", "0.60464287", "0.6032565", "0.6023267", "0.60136104", "0.60052085", "0.6004118", "0.59889174", "0.59889096", "0.5984345", "0.5981287", "0.5980093", "0.5969935", "0.5965866", "0.5962787", "0.5951321", "0.59352726", "0.59305984", "0.5910528", "0.59056056", "0.58948433", "0.58905447", "0.5883157", "0.58817947", "0.5880141", "0.5863241", "0.5859789", "0.58532864", "0.58463436", "0.58444405", "0.5840561", "0.58392805", "0.58354294", "0.58329386", "0.5826633", "0.5817681", "0.5813975", "0.5813632", "0.5812864", "0.580819", "0.5802922", "0.5802262", "0.5790339", "0.5787292", "0.5782621", "0.578046", "0.57784027", "0.57783806", "0.577275", "0.57712805", "0.5769297", "0.5768753", "0.5761497", "0.57609606", "0.57598376", "0.5756448", "0.57462627", "0.57427794" ]
0.0
-1
i18n code for display name Constructor
private ProcessStateObject(@NotNull Long id, @NotNull String name) { this.id = id; this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String nameLabel();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "String getDisplay_name();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "@Override\n public String getDisplayName() {\n\n return Messages.displayName();\n }", "public String getLocalizedName() {\n\t\treturn this.name().toUpperCase();\n\t}", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName();", "@NotNull\n String getDisplayName();", "private String getDisplayNameI18N() throws JspException {\n Object args[] = new Object[5];\n args[0] = arg0;\n args[1] = arg1;\n args[2] = arg2;\n args[3] = arg3;\n args[4] = arg4;\n\n\n if (getKey() == null) {\n\n Object o = null;\n\n if (getScope().equals(\"session\")) {\n\n o = pageContext.getAttribute(getName(), pageContext.SESSION_SCOPE);\n\n } else if (getScope().equals(\"request\")) {\n\n o = pageContext.getAttribute(getName(), pageContext.REQUEST_SCOPE);\n\n } else if (getScope().equals(\"page\")) {\n\n o = pageContext.getAttribute(getName(), pageContext.PAGE_SCOPE);\n\n }\n\n if (o != null) {\n\n try {\n\n String _property = getProperty();\n String innerPropertyName, innerGetterName;\n Method _method;\n\n while (_property.indexOf(\".\") > 0) {\n\n innerPropertyName = _property.substring(0, _property.indexOf(\".\"));\n innerGetterName = \"get\" + innerPropertyName.substring(0,1).toUpperCase() + innerPropertyName.substring(1);\n\n _method = o.getClass().getMethod(innerGetterName, null);\n\n o = _method.invoke(o, null);\n\n _property = _property.substring(_property.indexOf(\".\") +1);\n }\n\n String getterName = \"get\" + _property.substring(0,1).toUpperCase() + _property.substring(1);\n\n Method method = o.getClass().getMethod(getterName, null);\n\n if (method.getReturnType() == String.class) {\n String messageKey = (String)method.invoke(o, null);\n\n setKey(messageKey);\n }\n\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n } catch (SecurityException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n }\n }\n }\n\n // Retrieve the message string we are looking for\n String message = RequestUtils.message(pageContext, this.bundle,\n this.localeKey, this.key, args);\n if (message == null) {\n message = key;\n }\n\n return message;\n }", "public String getName() {\r\n\t\treturn LocalizedTextManager.getDefault().getProperty(name());\r\n\t}", "private String formulerMonNom() {\n\t return \"Je m'appelle \" + this.nom; // appel de la propriété nom\n\t }", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "@Override\n public String getDisplayName() {\n return \"Zanata Localization Sync\";\n }", "public final java.lang.String getDisplayName(java.util.Locale locale) { throw new RuntimeException(\"Stub!\"); }", "String displayName();", "String displayName();", "Caseless getName();", "public String getDisplayName () {\n return impl.getDisplayName ();\n }", "public String getDisplayText()\n {\n return (getName().length() > 0) ? getName() : \"Neuer Diätplan\";\n }", "public abstract Builder setDisplayNamesLocale(String value);", "String getPluralisedName();", "public SecName(FrillLoc loc) {\n MyLocation = loc;\n NameFont = new FontFinder(FontList.FONT_LABEL);\n }", "public String displayName() {\r\n\t\tString name = \"Unknown\";\r\n\t\tif(EUR.equals(this)) {\r\n\t\t\tname = \"Europe\";\r\n\t\t} else if(JPN.equals(this)) {\r\n\t\t\tname = \"Japan\";\r\n\t\t} else if(USA.equals(this)) {\r\n\t\t\tname = \"USA\";\r\n\t\t} else if(KOR.equals(this)) {\r\n\t\t\tname = \"Korea\";\r\n\t\t}\r\n\t\treturn name;\r\n\t}", "default String getDisplayName() {\r\n\t\treturn getClass().getSimpleName();\r\n\t}", "public String getTranslatedTabLabel()\n {\n return \"Harry Potter\";\n }", "public void setDisplayName(String name);", "String usernameLabel();", "String realmDisplayName();", "public LocalizedNameComparator(LocaleDisplayProvider provider) {\r\n this.provider = provider;\r\n userLocale = LocaleContextHolder.getLocale();\r\n }", "public String getLocalizedName() {\n return resourceMap.getString(getLocalizationKey());\n }", "void setDisplayName(@Nullable String pMessage);", "private String getName(final String name) {\n\t\treturn bundleI18N.getString(name);\n\t}", "public String getDisplayName(ULocale displayLocale) {\n/* 770 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public abstract String getShortName();", "public abstract String getShortName();", "public abstract String getShortName();", "@Transient\n\tpublic String getCaption(){\n\t return \"[\" + getCode() + \"] \" + getName();\n\t}", "@Override\n public String getDisplayName() {\n return this.name;\n }", "public final java.lang.String getDisplayName(android.icu.util.ULocale locale) { throw new RuntimeException(\"Stub!\"); }", "public String getName()\r\n/* 91: */ {\r\n/* 92:112 */ return k_() ? aL() : \"container.minecart\";\r\n/* 93: */ }", "public String getLocalizedName()\n {\n return StatCollector.translateToLocal(this.getUnlocalizedName() + \".\" + TreeOresLogs2.EnumType.DIAMOND.getUnlocalizedName() + \".name\");\n }", "public String getLocalizedName() {\n return LocalizationUtils.translateLocalWithColours(getUnlocalizedName(), getUnlocalizedName());\n }", "public static String getDisplayName(String localeID, ULocale displayLocale) {\n/* 790 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String getName() {\n return I18nUtil.getBundle().getString(\"CTL_I18nAction\");\n }", "@Override public String getLocalizedDisplayName(Map pSettings, String pLocalizedName) {\n return pLocalizedName + \" - \" +\n (pSettings.get(getSourceTypeInternalName() + HOST_MACHINE) + \":\" +\n pSettings.get(getSourceTypeInternalName() + PORT)) + \" - \" +\n pSettings.get(getSourceTypeInternalName() + PATH);\n }", "protected abstract String name ();", "public String getDisplayName()\n {\n return getString(\"DisplayName\");\n }", "public String getDisplayName(){return entryName;}", "public void setDisplayName(String name) {\r\n\t}", "public final java.lang.String getDisplayName() { throw new RuntimeException(\"Stub!\"); }", "public String getDisplayName() {\n return DISPLAY_NAME;\n }", "private String name() {\r\n return cls.getSimpleName() + '.' + mth;\r\n }", "public String asName() {\n return this.name().toLowerCase(Locale.getDefault());\n }", "String getShortName();", "public String getStrdisplayname() {\n return strdisplayname;\n }", "@Override\n public String getName() {\n return \"Custom - \" + getTitle();\n }", "public void showNAME() {\r\n\t\tSystem.out.println(getName().toUpperCase());\r\n\t}", "@Nonnull\r\n String getDisplayName();", "public void setDisplayName(String name) {\n\t}", "void updateDisplayName();", "@Override\n public String getDescription() {\n return name;\n }", "String getName() ;", "public String getName(Locale locale) {\n return Messages.getInstance().getText(locale, \"students.createStudent.pageTitle\");\n }", "public String getNotchianName();", "public abstract String getMachineUnlocalizedName();", "public StandardDTEDNameTranslator() {}", "public String getName() { return displayName; }", "protected abstract String getName();", "@Override\n\tpublic String getDisplayName() {\n\t\treturn getGivenName() + \" \" + getFamilyName();\n\t}", "public abstract String getTitle(Locale locale);", "@Override\n public IChatComponent getDisplayName() {\n return null;\n }", "@Override\n public IChatComponent getDisplayName() {\n return null;\n }", "@Override\n\tpublic ITextComponent getDisplayName() {\n\t\treturn null;\n\t}", "public static String getDisplayName(String localeID, String displayLocaleID) {\n/* 780 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();" ]
[ "0.6770327", "0.67252433", "0.67252433", "0.67252433", "0.67252433", "0.67252433", "0.67252433", "0.67082316", "0.6647534", "0.6647534", "0.6647534", "0.6647534", "0.6647534", "0.6647534", "0.6573484", "0.6572522", "0.6540228", "0.6540228", "0.6540228", "0.6540228", "0.6386475", "0.6337368", "0.63355374", "0.6300863", "0.62492543", "0.6243869", "0.6220217", "0.62139636", "0.62139636", "0.6199327", "0.61755705", "0.61666596", "0.6160946", "0.6156689", "0.6139069", "0.6101547", "0.6098881", "0.6097275", "0.60803765", "0.60449785", "0.6040172", "0.60360163", "0.60297835", "0.6022959", "0.6018855", "0.60107476", "0.5982144", "0.5982144", "0.5982144", "0.5975968", "0.5974128", "0.5960183", "0.5954985", "0.59531724", "0.595181", "0.5951451", "0.5943212", "0.59395194", "0.59374505", "0.5924265", "0.591907", "0.5916489", "0.5906683", "0.589156", "0.5891518", "0.5886999", "0.5878921", "0.5857885", "0.58534366", "0.58505917", "0.5849255", "0.5844337", "0.5844171", "0.5843467", "0.5837252", "0.5829877", "0.5828045", "0.5818545", "0.5816196", "0.58135915", "0.58101916", "0.5805409", "0.58054036", "0.5802979", "0.5802979", "0.58021665", "0.5783462", "0.5781622", "0.5781622", "0.5781622", "0.5781622", "0.5781622", "0.5781622", "0.5781622", "0.5781622", "0.5781622", "0.5781622", "0.5781622", "0.5781622", "0.5781622", "0.5781622" ]
0.0
-1
oppdaterer modulen. blir kalt uregelmessig
protected abstract void update();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void habilitarCamposModif() {\n\n listarPromotoresModif();\n //limpiarListaCrear();\n }", "protected abstract void iniciarModo();", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void perder() {\n // TODO implement here\n }", "public void Ordenamiento() {\n\n\t}", "public hesapekrani() {\n initComponents();\n getedits();\n \n \n }", "@Override\n public void alRechazarOperacion() {\n }", "public void verarbeite() {\n\t\t\r\n\t}", "@Override\n\tpublic void alterar() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void trenneVerbindung();", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void recreo() {\n\n\t}", "@Override\n\tpublic void pausaParaComer() {\n\n\t}", "protected void aktualisieren() {\r\n\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void posModify() {\n\t\t\n\t}", "@Override\n\tpublic void posModify() {\n\t\t\n\t}", "private void edit() {\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private void aumentarPuntos() {\r\n this.puntos++;\r\n this.form.AumentarPuntos(this.puntos);\r\n }", "public void inizializza() {\n\n /* invoca il metodo sovrascritto della superclasse */\n super.inizializza();\n\n }", "public void editOperation() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected Doodler() {\n\t}", "public void sendeSpielfeld();", "@Override\n\tpublic void modify() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "private void remplirPrestaraireData() {\n\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public Ficha_Ingreso_Egreso() {\n initComponents();\n limpiar();\n bloquear();\n \n }", "@Override\r\n public void prenderVehiculo() {\r\n System.out.println(\"___________________________________________________\");\r\n System.out.println(\"prender Jet\");\r\n }", "private void remplirMaterielData() {\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}", "public void defender(){setModopelea(1);}", "public VehiculoMod(Controlador controlador) {\n\t\tsuper(controlador);\n\t\t\n\t\tinitPanelBajaModVehiculo();\n\t\t\n\t\tthis.setVisible(true);\n\t\tfixButtons();\n\t}", "@Override\n protected void getExras() {\n }", "public void mo4359a() {\n }", "@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void modifier(){\r\n try {\r\n //affectation des valeur \r\n echeance_etudiant.setIdEcheanceEtu(getViewEtudiantInscripEcheance().getIdEcheanceEtu()); \r\n \r\n echeance_etudiant.setAnneeaca(getViewEtudiantInscripEcheance().getAnneeaca());\r\n echeance_etudiant.setNumetu(getViewEtudiantInscripEcheance().getNumetu());\r\n echeance_etudiant.setMatricule(getViewEtudiantInscripEcheance().getMatricule());\r\n echeance_etudiant.setCodeCycle(getViewEtudiantInscripEcheance().getCodeCycle());\r\n echeance_etudiant.setCodeNiveau(getViewEtudiantInscripEcheance().getCodeNiveau());\r\n echeance_etudiant.setCodeClasse(getViewEtudiantInscripEcheance().getCodeClasse());\r\n echeance_etudiant.setCodeRegime(getViewEtudiantInscripEcheance().getCodeRegime());\r\n echeance_etudiant.setDrtinscri(getViewEtudiantInscripEcheance().getInscriptionAPaye());\r\n echeance_etudiant.setDrtforma(getViewEtudiantInscripEcheance().getFormationAPaye()); \r\n \r\n echeance_etudiant.setVers1(getViewEtudiantInscripEcheance().getVers1());\r\n echeance_etudiant.setVers2(getViewEtudiantInscripEcheance().getVers2());\r\n echeance_etudiant.setVers3(getViewEtudiantInscripEcheance().getVers3());\r\n echeance_etudiant.setVers4(getViewEtudiantInscripEcheance().getVers4());\r\n echeance_etudiant.setVers5(getViewEtudiantInscripEcheance().getVers5());\r\n echeance_etudiant.setVers6(getViewEtudiantInscripEcheance().getVers6()); \r\n \r\n //modification de l'utilisateur\r\n echeance_etudiantFacadeL.edit(echeance_etudiant); \r\n } catch (Exception e) {\r\n System.err.println(\"Erreur de modification capturée : \"+e);\r\n } \r\n }", "@Override\r\n\tpublic void edit() {\n\t\t\r\n\t}", "void enableMod();", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "private void limpiarDatos() {\n\t\t\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void modifier(Catalogue catalogue) {\n\t\t\t\t\n\t\t\t}", "public void mostrarTareasEnPosicionImpar(){}", "private void Mueve() {\n\t\tpaleta1.Mueve_paletas();\n\t\tpaleta2.Mueve_paletas();\n\t\tpelota.Mueve_pelota();\n\t}", "@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "public Modify() {\n initComponents();\n }", "@Override\n\tpublic void iniciar() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "public void Exterior() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public boolean estaEnModoAvion();", "public void aktualisiere(PhysicalObject po){\n\t\tthis.po=po;\n\t\tKipper kipperObj= (Kipper) po;\t\t\n\t\tx = kipperObj.getX();\n\t\ty = kipperObj.getY();\n\t\tbreite=kipperObj.getBreite();\n\t\tlaenge=kipperObj.getLaenge();\n\t\twinkel=kipperObj.getWinkel();\n\t\tlkwfahrt=kipperObj.isFahrt();\t\t\n\t\tif (kipperObj.getMaterialListe().size() == 1) {\n\t\t\tmatRatio=kipperObj.getMaterialListe().get(0).getVolumen()/kipperObj.getMaxVolumen();\t\n\t\t\tif(matRatio > 1)\n\t\t\t\tmatRatio=1;\n\t\t}\t\t\n\t}", "@Override\r\n\tpublic void emettreOffre() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "void usada() {\n mazo.habilitarCartaEspecial(this);\n }", "@Override\n public void memoria() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void imprimir() {\n\t\t\n\t}", "@Override\n\tpublic void hacerDevolucion() {\n\t\tSystem.out.println(\"Hacer Devolucion pantalon\");\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "protected void paceoder() {\n\t\t\n\t\tif(!homepage.isimport){\n\t\t\tJOptionPane.showMessageDialog(null, \"先导入用户数据吧\");\n\t\t}else if((text_num.getText().isEmpty())|(text_price.getText().isEmpty())){\n \t\t\t\n \t\tJOptionPane.showMessageDialog(null, \"先输入数值喔\");\n \t}\n \telse if(!Userinfochange.isNumeric(text_num.getText())\n \t\t\t|!Userinfochange.isNumeric(text_price.getText())){\n \t\t\n \t\tJOptionPane.showMessageDialog(null, \"输入数字喔\");\n \t}\n \telse if( Integer.parseInt(text_num.getText())<0\n \t\t\t||Integer.parseInt(text_num.getText())%100!=0){\n\t\t\t\tJOptionPane.showMessageDialog(null, \"要输入整百股喔\");\n\t\t\t\t\n\t\t\t}\n \t \n \t\telse{\t\n \t\t\tMessageBox messagebox = new MessageBox(shell, SWT.YES | SWT.NO);\n \t\t\tmessagebox.setText(\"下单\");\n \t\t\tmessagebox.setMessage(\" 确认是否下单\");\n \n \t\t\tint val=messagebox.open();\n \t\t\t\n \t\t\tif(val == SWT.YES){\n \n \t\t\t\tString date = Integer.toString(text_dateTime.getYear())+\"/\"+Integer.toString(text_dateTime.getMonth()+1)+\n\t\t\t\t\t\t\t\"/\"+Integer.toString(text_dateTime.getDay());\n \t\t\tPlaceOder placeoder = new PlaceOder(tabitemindex,information[0].substring(21),text_code.getText(),\n\t\t\t\t\t\t\"卖空\",text_price.getText(),text_num.getText(),place,date);\n \t\t\tif(placeoder.update_trade()){\n \t\t\tMessagedialo window = new Messagedialo();\n \t\t\twindow.open(shell);\n \t\t\t}\n \t\t\telse{\n \t\t\t\t\n \t\t\t\thomepage.lbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n \t\t\t\thomepage.lbl_notice.setText(\"*卖空失败\");\n \t\t\t\t\t\n \t\t\t\tMessagedialofail window = new Messagedialofail();\n \t\t\twindow.open(shell);\n \t\t\t}\n \t\t\t}\n \t\t\n \t\n }\n\t\t\n\t}", "public void inizializza() {\n Navigatore nav;\n Portale portale;\n\n super.inizializza();\n\n try { // prova ad eseguire il codice\n\n Modulo modulo = getModuloRisultati();\n modulo.inizializza();\n// Campo campo = modulo.getCampoChiave();\n// campo.setVisibileVistaDefault(false);\n// campo.setPresenteScheda(false);\n// Vista vista = modulo.getVistaDefault();\n// vista.getElement\n// Campo campo = vista.getCampo(modulo.getCampoChiave());\n\n\n\n /* aggiunge il Portale Navigatore al pannello placeholder */\n nav = this.getNavigatore();\n portale = nav.getPortaleNavigatore();\n this.getPanNavigatore().add(portale);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "@Override\r\n\tprotected void doF2() {\n\t\t\r\n\t}", "public void Retroceder(){\r\n \r\n anim.jPanelXRight(PanelLibroMayor.getX(),PanelLibroMayor.getX()+920, 1, 5, PanelLibroMayor);\r\n anim.jPanelXRight(PanelLibroDiario.getX(), PanelLibroDiario.getX()+920, 1, 5, PanelLibroDiario);\r\n anim.jPanelXRight(PanelBalanceComprobacion.getX(),PanelBalanceComprobacion.getX()+920, 1, 5, PanelBalanceComprobacion);\r\n anim.jPanelXRight(PanelEstadoResultados.getX(), PanelEstadoResultados.getX()+920, 1, 5, PanelEstadoResultados);\r\n anim.jPanelXRight(PanelBalanceGeneral.getX(),PanelBalanceGeneral.getX()+920, 1, 5, PanelBalanceGeneral);\r\n \r\n }", "public articlesModify() {\n initComponents();\n }", "public void imprimirHijos(){\n\t\tmodCons.imprimirHijos();\n\t}", "@Override\r\n\tprotected void doPre() {\n\t\t\r\n\t}", "private void performDirectEdit() {\n\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void iniciarLabores() {\n\t\t\n\t}", "@Override\n\tpublic void iniciarLabores() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public Modification() {\r\n initComponents();\r\n this.setVisible(true);\r\n \r\n \r\n \r\n \r\n \r\n }", "public void onderbreek(){\n \n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "private void modifierParametre() {\n if (getSelectedParamatre() == null) return;\n FenetreModifierParametre fenetreModifierParametre = new FenetreModifierParametre(getSelectedParamatre());\n fenetreModifierParametre.showAndWait();\n if (fenetreModifierParametre.getParametre() == null) return;\n Parametre temp = fenetreModifierParametre.getParametre();\n getSelectedParamatre().setNom(temp.getNom());\n getSelectedParamatre().setType(temp.getType());\n parametreListView.refresh();\n }", "void berechneFlaeche() {\n\t}", "public VistaArticulosModif2() {\r\n\t\tsetTitle(\"Modificar_Art\\u00EDculos\");\r\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 403, 204);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\r\n\t\t// Definir el Diálogo Confirmar Modificaciones Artículo\r\n\t\tdlgConfModif.setLayout(new FlowLayout());\r\n\t\tdlgConfModif.add(lblConfModif);\r\n\t\tdlgConfModif.add(btnConfModifSi);\r\n\t\tdlgConfModif.add(btnConfModifNo);\r\n\t\tdlgConfModif.setSize(280, 150);\r\n\t\tdlgConfModif.setLocationRelativeTo(null);\r\n\t\tdlgConfModif.addWindowListener(this);\r\n\t\tbtnConfModifSi.addActionListener(this);\r\n\t\tbtnConfModifNo.addActionListener(this);\r\n\r\n\t\tJLabel lblDescripModif2 = new JLabel(\"Descripci\\u00F3n\");\r\n\t\tlblDescripModif2.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tlblDescripModif2.setBounds(10, 22, 100, 25);\r\n\t\tcontentPane.add(lblDescripModif2);\r\n\r\n\t\tJLabel lblPrecioModif2 = new JLabel(\"Precio\");\r\n\t\tlblPrecioModif2.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tlblPrecioModif2.setBounds(10, 54, 100, 19);\r\n\t\tcontentPane.add(lblPrecioModif2);\r\n\r\n\t\tJLabel lblCantModif2 = new JLabel(\"Cantidad\");\r\n\t\tlblCantModif2.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tlblCantModif2.setBounds(10, 84, 100, 25);\r\n\t\tcontentPane.add(lblCantModif2);\r\n\r\n\t\tsetTxtDescripModif2(new JTextField());\r\n\t\tgetTxtDescripModif2().setColumns(10);\r\n\t\tgetTxtDescripModif2().setBounds(103, 26, 274, 20);\r\n\t\tcontentPane.add(getTxtDescripModif2());\r\n\r\n\t\tsetTxtPrecioModif2(new JTextField());\r\n\t\tgetTxtPrecioModif2().setColumns(10);\r\n\t\tgetTxtPrecioModif2().setBounds(103, 53, 86, 20);\r\n\t\tcontentPane.add(getTxtPrecioModif2());\r\n\r\n\t\tsetTxtCantModif2(new JTextField());\r\n\t\tgetTxtCantModif2().setColumns(10);\r\n\t\tgetTxtCantModif2().setBounds(103, 84, 86, 20);\r\n\t\tcontentPane.add(getTxtCantModif2());\r\n\r\n\t\t// Botón Aceptar. Acción --> abre la ventana Confirmar_Modificaciones\r\n\t\tJButton btnAceptarModif2 = new JButton(\"ACEPTAR\");\r\n\t\tbtnAceptarModif2.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tdlgConfModif.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAceptarModif2.setBounds(21, 130, 89, 23);\r\n\t\tcontentPane.add(btnAceptarModif2);\r\n\r\n\t\t// Botón Limpiar. Acción --> limpia los TextField de la ventana VistaArticulosModif2\r\n\t\tJButton btnLimpiarModif2 = new JButton(\"LIMPIAR\");\r\n\t\tbtnLimpiarModif2.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tgetTxtDescripModif2().selectAll();\r\n\t\t\t\tgetTxtDescripModif2().setText(\"\");\r\n\t\t\t\tgetTxtPrecioModif2().selectAll();\r\n\t\t\t\tgetTxtPrecioModif2().setText(\"\");\r\n\t\t\t\tgetTxtCantModif2().selectAll();\r\n\t\t\t\tgetTxtCantModif2().setText(\"\");\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnLimpiarModif2.setBounds(145, 130, 89, 23);\r\n\t\tcontentPane.add(btnLimpiarModif2);\r\n\r\n\t\t// Botón Volver. Acción --> cierra la ventana VistaArticulosModif2\r\n\t\tJButton btnVolverModif2 = new JButton(\"VOLVER\");\r\n\t\tbtnVolverModif2.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnVolverModif2.setBounds(275, 130, 89, 23);\r\n\t\tcontentPane.add(btnVolverModif2);\r\n\t\tidArticulosModif1.setVisible(false);\r\n\t\tidArticulosModif1.setEnabled(false);\r\n\t\tidArticulosModif1.setBounds(10, 0, 46, 14);\r\n\t\tcontentPane.add(idArticulosModif1);\r\n\t}", "public v_pembelian() {\n initComponents();\n disable_info();\n setTabel();\n initFaktur();\n }", "public void modify() {\n }" ]
[ "0.65634835", "0.63888013", "0.6374206", "0.63455987", "0.6229793", "0.62238884", "0.6211352", "0.6147732", "0.61260605", "0.6111951", "0.61008024", "0.60835314", "0.6049262", "0.60430133", "0.5990611", "0.5943561", "0.59295374", "0.59292233", "0.5917268", "0.5908544", "0.5886665", "0.5847792", "0.5822569", "0.5813413", "0.5813413", "0.5809718", "0.5802101", "0.5795948", "0.57927907", "0.5780977", "0.5780349", "0.5762258", "0.57572234", "0.57567394", "0.5756499", "0.57429826", "0.5738331", "0.5733151", "0.57177055", "0.570912", "0.5701278", "0.56955284", "0.5694411", "0.56940114", "0.56940114", "0.5690523", "0.5688213", "0.5675849", "0.56754816", "0.56527776", "0.5652179", "0.5640404", "0.56288767", "0.5625141", "0.5616499", "0.56149906", "0.56082666", "0.5606545", "0.5602584", "0.5600282", "0.55980796", "0.5596799", "0.5594422", "0.55909127", "0.55841565", "0.5583198", "0.5577887", "0.55777645", "0.55770093", "0.55704945", "0.5565238", "0.5557215", "0.5556533", "0.5549264", "0.55443066", "0.5540472", "0.5539332", "0.5538482", "0.55369765", "0.55367935", "0.55246615", "0.55164874", "0.5516052", "0.55142957", "0.55087227", "0.5505607", "0.55005157", "0.5494524", "0.54932076", "0.54932076", "0.5478846", "0.5478846", "0.547487", "0.5470719", "0.5469843", "0.5459541", "0.5459364", "0.54577804", "0.54493594", "0.54452324", "0.54420114" ]
0.0
-1
/ START OF FACEBOOK SIGN IN PROCESS Function to login into facebook
public void loginToFacebook(View View) { Log.e("login to facbook",""+"log"); LoginManager.getInstance().logInWithReadPermissions(this, Arrays.asList("email", "user_photos", "public_profile","basic_info","user_birthday")); LoginManager.getInstance().registerCallback(callbackManager, new FacebookCallback<LoginResult>() { @Override public void onSuccess(LoginResult loginResult) { Log.e("sucess",""+"log"); GraphRequest request = GraphRequest.newMeRequest( loginResult.getAccessToken(), new GraphRequest.GraphJSONObjectCallback() { @Override public void onCompleted(JSONObject object, GraphResponse response) { String name = null; String email = null; String gender=null; String birthday=null; String id= null; //object.toString(); //String json=response.toString(); //JSONObject profile=new JSONObject(json); try { name = object.getString("name"); email =object.getString("email"); gender = object.getString("gender"); birthday = object.getString("birthday"); id=object.getString("id"); // ProfilePictureView profilePictureView=(ProfilePictureView)findViewById(R.id.profile_pic); // profilePictureView.setProfileId(id); usm.editor.putString(usm.KEY_NAME, name); usm.editor.putString(usm.KEY_EMAIL, email); usm.editor.putString(usm.KEY_BIRTHDAY,birthday); usm.editor.putString(usm.KEY_GENDER,gender); usm.editor.putString(usm.KEY_ID,id); usm.editor.putBoolean(usm.KEY_FACEBOOK_LOGIN, true); usm.editor.commit(); Conditionclass conditionclass=new Conditionclass(1); Log.e("facebook log","condition one"); gotoProfileActivity(); } catch (JSONException e) { e.printStackTrace(); } // Log.e("name",""+name); //Log.e("email",""+email); /*StringBuilder stringBuilder=new StringBuilder(); stringBuilder.append("profile"+"\n"+name+"\n"+email+"\n"+gender+"\n"+birthday ); textView=(TextView)findViewById(R.id.txt); textView.setText(stringBuilder); */ } }); Bundle parameters = new Bundle(); parameters.putString("fields", "id,name,email,gender, birthday"); request.setParameters(parameters); request.executeAsync(); } @Override public void onCancel() { Log.e("TAG", "" + "eroor"); } @Override public void onError(FacebookException error) { Log.e("TAG", "" + "cancel"); } }); // if (!facebook.isSessionValid()) // { // facebook.authorize(this, // // new String[] { "email", "publish_actions" }, // new String[] { "email"}, // new Facebook.DialogListener() // { // @Override // public void onCancel() // { // Function to handle cancel event // } // @Override // public void onComplete(Bundle values) // { // usm.editor.putString(usm.KEY_FACEBOOK_ACCESS_TOKEN, facebook.getAccessToken()); // usm.editor.putLong(usm.KEY_FACEBOOK_ACCESS_EXPIRES, facebook.getAccessExpires()); // usm.editor.putBoolean(usm.KEY_FACEBOOK_LOGIN, true); // usm.editor.putBoolean(usm.KEY_IS_USER_LOGIN, true); // usm.editor.commit(); // getFacebookProfileInformation(); // } // // @Override // public void onError(DialogError error) // { // Function to handle error // } // // @Override // public void onFacebookError(FacebookError fberror) // { // Function to handle Facebook errors // } // }); // } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void login() {\n String appId = \"404127593399770\";\n String redirectUrl = \"https://www.facebook.com/connect/login_success.html\";\n String loginDialogUrl = facebookClient.getLoginDialogUrl(appId, redirectUrl, scopeBuilder);\n Gdx.net.openURI(loginDialogUrl);\n }", "private void loginFacebook() {\n FaceBookManager.login(LoginActivity.this, this);\n }", "public void loginToFB()\r\n {\n \t\r\n\t String access_token = ThisUserConfig.getInstance().getString(ThisUserConfig.FBACCESSTOKEN);\r\n\t long expires = ThisUserConfig.getInstance().getLong(ThisUserConfig.FBACCESSEXPIRES);\r\n\t \r\n\t if (access_token != \"\") {\r\n\t facebook.setAccessToken(access_token);\r\n\t }\r\n\t \r\n\t if (expires != 0 && expires != -1) {\r\n\t facebook.setAccessExpires(expires);\r\n\t }\r\n \t\r\n \t if (!facebook.isSessionValid()) {\r\n \t\t ProgressHandler.dismissDialoge();\r\n \t\t facebook.authorize(underlying_activity, permissions, new LoginDialogListener()); \r\n \t\t \r\n \t }\r\n }", "void loginByFacebook(LoginByFacebookRequest loginByFacebookRequest);", "public void loginToFacebook() {\n\n\t\t mPrefs = getPreferences(MODE_PRIVATE);\n\t\t String access_token = mPrefs.getString(\"access_token\", null);\n\t\t long expires = mPrefs.getLong(\"access_expires\", 0);\n\n\t\t if (access_token != null) {\n\t\t\t facebook.setAccessToken(access_token);\n\t\t\t fb_access_token=access_token;\n\n\t\t\t Log.d(\"FB Sessions\", \"\" + facebook.isSessionValid());\n\t\t }\n\n\t\t if (expires != 0) {\n\t\t\t facebook.setAccessExpires(expires);\n\t\t }\n\n\t\t if (!facebook.isSessionValid() || facebook.isSessionValid()) {\n\t\t\t facebook.authorize(this,\n\t\t\t\t\t new String[] { \"email\",\"user_about_me\",\"public_profile\",\"publish_checkins\", \"publish_stream\" },\n\t\t\t\t\t new DialogListener() {\n\n\t\t\t\t @Override\n\t\t\t\t public void onCancel() {\n\t\t\t\t\t // Function to handle cancel event\n\t\t\t\t\t errorMessage = \"You cancelled Operation\";\n\t\t\t\t\t getResponse();\n\t\t\t\t }\n\n\t\t\t\t @Override\n\t\t\t\t public void onComplete(Bundle values) {\n\t\t\t\t\t // Function to handle complete event\n\t\t\t\t\t // Edit Preferences and update facebook acess_token\n\t\t\t\t\t SharedPreferences.Editor editor = mPrefs.edit();\n\t\t\t\t\t editor.putString(\"access_token\",\n\t\t\t\t\t\t\t facebook.getAccessToken());\n\t\t\t\t\t fb_access_token=facebook.getAccessToken();\n\t\t\t\t\t editor.putLong(\"access_expires\",\n\t\t\t\t\t\t\t facebook.getAccessExpires());\n\t\t\t\t\t editor.commit();\n\n\t\t\t\t\t // Making Login button invisible\n\t\t\t\t\t getProfileInformation();\n\t\t\t\t\t //Log.w(\"email\",uEmail);\n\n\n\t\t\t\t }\n\n\t\t\t\t @Override\n\t\t\t\t public void onError(DialogError error) {\n\t\t\t\t\t // Function to handle error\n\n\t\t\t\t\t errorMessage = \"Facebook Error Occured\";\n\t\t\t\t\t getResponse();\n\n\t\t\t\t }\n\n\t\t\t\t @Override\n\t\t\t\t public void onFacebookError(FacebookError fberror) {\n\t\t\t\t\t // Function to handle Facebook errors\n\n\t\t\t\t\t errorMessage = \"Facebook Error Occured\";\n\t\t\t\t\t getResponse();\n\t\t\t\t }\n\t\t\t });\n\t\t }\n\t }", "public void loginToFacebook() {\n\n\t\tmPrefs = getSharedPreferences(Constants.SOCIAL_MEDIA, MODE_PRIVATE);\n\t\tString access_token = mPrefs.getString(\"access_token\", null);\n\t\tlong expires = mPrefs.getLong(\"access_expires\", 0);\n\n\t\tif (access_token != null) {\n\t\t\tfacebook.setAccessToken(access_token);\n\t\t\n\t\t\tLog.d(\"FB Sessions\", \"\" + facebook.isSessionValid());\n\t\t}\n\n\t\tif (expires != 0) {\n\t\t\tfacebook.setAccessExpires(expires);\n\t\t}\n\n\t\tif (!facebook.isSessionValid()) {\n\t\t\tfacebook.authorize(this,\n\t\t\t\t\tnew String[] { \"user_photos\",\"user_about_me\",\"email\",\"publish_actions\",\"user_birthday\"},\n\t\t\t\t\tnew DialogListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onCancel() {\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onComplete(Bundle values) {\n\t\t\t\t\t\t\tSharedPreferences.Editor editor = mPrefs.edit();\n\t\t\t\t\t\t\teditor.putString(\"access_token\",\n\t\t\t\t\t\t\t\t\tfacebook.getAccessToken());\n\t\t\t\t\t\t\teditor.putLong(\"access_expires\",\n\t\t\t\t\t\t\t\t\tfacebook.getAccessExpires());\n\t\t\t\t\t\t\teditor.commit();\n\t\t\t\t\t\t\tLog.d(\"Arv\", \"Calling getProfileInformation\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tgetProfileInformation();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t//postImageonWall(mPrefs.getString(\"access_token\", null));\n\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\tif(Integer.parseInt(getIntent().getExtras().getString(\"from\"))==1){\n\t\t\t\t\t\t\t//postOnWall(\"testing arvind\");\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse{\n//\t\t\t\t\t\t\t\tgetProfileInformation();\n//\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onError(DialogError error) {\n\t\t\t\t\t\t\t// Function to handle error\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onFacebookError(FacebookError fberror) {\n\t\t\t\t\t\t\t// Function to handle Facebook errors\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\t\t}\n\t\telse{\n\t\t\t//postOnWall(\"testing arvind\");\n//\t\t\tif(Integer.parseInt(getIntent().getExtras().getString(\"from\"))==1){\n//\t\t\t\tpostOnWall(\"testing arvind\");\n//\t\t\t}\n//\t\t\telse{\n\t\t\t\tgetProfileInformation();\n//\t\t\t}\n\t\t\t\n\t\t\t//postImageonWall(mPrefs.getString(\"access_token\", null));\n\t\t\t//\n\t\t}\n\t}", "public void doLoginWithFacebook() {\n System.out.println(\"Fetching the Authorization URL...\");\n String authorizationUrl = service.getAuthorizationUrl(EMPTY_TOKEN);\n System.out.println(\"Got the Authorization URL!\");\n System.out.println(\"Now go and authorize Scribe here:\");\n this.authorizationUrl = authorizationUrl;\n }", "private void RegisterFacebookSignup() {\n\n\t\ttry {\n\t\t\tLocalData data = new LocalData(SplashActivity.this);\n\n\t\t\tArrayList<String> asName = new ArrayList<String>();\n\t\t\tArrayList<String> asValue = new ArrayList<String>();\n\n\t\t\tasName.add(\"email\");\n\t\t\tasName.add(\"firstname\");\n\t\t\tasName.add(\"gender\");\n\t\t\tasName.add(\"id\");\n\t\t\tasName.add(\"lastname\");\n\t\t\tasName.add(\"name\");\n\t\t\tasName.add(\"link\");\n\n\t\t\tasName.add(\"device_type\");\n\t\t\tasName.add(\"device_id\");\n\t\t\tasName.add(\"gcm_id\");\n\t\t\tasName.add(\"timezone\");\n\n\t\t\tasValue.add(data.GetS(LocalData.EMAIL));\n\t\t\tasValue.add(data.GetS(LocalData.FIRST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.GENDER));\n\t\t\tasValue.add(data.GetS(LocalData.ID));\n\t\t\tasValue.add(data.GetS(LocalData.LAST_NAME));\n\t\t\tasValue.add(data.GetS(LocalData.NAME));\n\t\t\tasValue.add(data.GetS(LocalData.LINK));\n\t\t\tasValue.add(\"A\");\n\n\t\t\tString android_id = Secure\n\t\t\t\t\t.getString(SplashActivity.this.getContentResolver(),\n\t\t\t\t\t\t\tSecure.ANDROID_ID);\n\n\t\t\tasValue.add(android_id);\n\n\t\t\tLocalData data1 = new LocalData(SplashActivity.this);\n\t\t\tasValue.add(data1.GetS(\"gcmId\"));\n\t\t\tasValue.add(Main.GetTimeZone());\n\n\t\t\tString sURL = StringURLs.FACEBOOK_LOGIN;\n\t\t\t// getQuery(StringURLs.FACEBOOK_LOGIN, asName, asValue);\n\n\t\t\tConnectServerParam connectServer = new ConnectServerParam();\n\t\t\tconnectServer.setMode(ConnectServer.MODE_POST);\n\t\t\tconnectServer.setContext(SplashActivity.this);\n\t\t\tconnectServer.setParams(asName, asValue);\n\t\t\tconnectServer.setListener(new ConnectServerListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onServerResponse(String sJSON, JSONObject jsonObject) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\tLog.d(\"JSON DATA\", sJSON);\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tif (sJSON.length() != 0) {\n\t\t\t\t\t\t\tJSONObject object = new JSONObject(sJSON);\n\t\t\t\t\t\t\tJSONObject response = object\n\t\t\t\t\t\t\t\t\t.getJSONObject(JSONStrings.JSON_RESPONSE);\n\t\t\t\t\t\t\tString sResult = response\n\t\t\t\t\t\t\t\t\t.getString(JSONStrings.JSON_SUCCESS);\n\n\t\t\t\t\t\t\tif (sResult.equalsIgnoreCase(\"1\") == true) {\n\n\t\t\t\t\t\t\t\tString user_id = response.getString(\"userid\");\n\n\t\t\t\t\t\t\t\tLocalData data = new LocalData(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this);\n\t\t\t\t\t\t\t\tdata.Update(\"userid\", user_id);\n\t\t\t\t\t\t\t\tdata.Update(\"name\", response.getString(\"name\"));\n\n\t\t\t\t\t\t\t\tGetNotificationCount();\n\n\t\t\t\t\t\t\t} else if (sResult.equalsIgnoreCase(\"0\") == true) {\n\n\t\t\t\t\t\t\t\tString msgcode = jsonObject.getJSONObject(\n\t\t\t\t\t\t\t\t\t\t\"response\").getString(\"msgcode\");\n\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, msgcode),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tSplashActivity.this,\n\t\t\t\t\t\t\t\tMain.getStringResourceByName(\n\t\t\t\t\t\t\t\t\t\tSplashActivity.this, \"c100\"),\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tconnectServer.execute(sURL);\n\n\t\t} catch (Exception exp) {\n\n\t\t\tToast.makeText(SplashActivity.this,\n\t\t\t\t\tMain.getStringResourceByName(SplashActivity.this, \"c100\"),\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t}\n\t}", "private void initFBFacebookLogIn() {\n mFacebookCallbackManager = CallbackManager.Factory.create();\n mFacebookLoginButton.setFragment(this);\n mFacebookLoginButton.setReadPermissions(\"email\", \"public_profile\");\n mFacebookLoginButton.registerCallback(mFacebookCallbackManager, new FacebookCallback<LoginResult>() {\n @Override\n public void onSuccess(LoginResult loginResult) {\n mFaceBookLogInTextView.setText(\"onSuccess\");\n handleFacebookAccessToken(loginResult.getAccessToken());\n }\n\n @Override\n public void onCancel() {\n mFaceBookLogInTextView.setText(\"onCancel\");\n }\n\n @Override\n public void onError(FacebookException error) {\n mFaceBookLogInTextView.setText(\"error : \" + error.getMessage());\n }\n\n });\n }", "@OnClick(R.id.buttonFbLogin)\n void facebookLogin()\n {\n startActivityForResult(new Intent(LoginSignupOptionActivity.this,\n FbLoginActivity.class), Keys.FACEBOOK_CODE);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n FacebookSdk.sdkInitialize(getApplicationContext());\n\n /* ----------------------------------------------------------------------------------------------------------------------------------\n USAR SOLO UNA VEZ PARA OBTENER LA KEY HASH PARA AGREGAR A FACEBOOK\n try {\n PackageInfo info = getPackageManager().getPackageInfo(\n \"calc4fun.cliente\",\n PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"KeyHash:\", Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n } catch (PackageManager.NameNotFoundException e) {\n\n } catch (NoSuchAlgorithmException e) {\n\n }\n /*-------------------------------------------------------------------------------------------------------------------------------------*/\n\n //se fija si esta logueado\n if (ClientController.getInstance().estaLogueado(LoginActivity.this)){\n //me logueo por facebook\n LoginManager.getInstance().logInWithReadPermissions(LoginActivity.this, null);\n\n //redirijo a main\n Intent actividad_main = new Intent(LoginActivity.this, MainGo4Calcs.class);\n actividad_main.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(actividad_main);\n LoginActivity.this.finish();\n } else {\n setContentView(R.layout.activity_login);\n progressBar = (ProgressBar) findViewById(R.id.progress_bar);\n progressBar.setVisibility(View.GONE);\n callbackManager = CallbackManager.Factory.create();\n LoginManager.getInstance().registerCallback(callbackManager,\n new FacebookCallback<LoginResult>() {\n @Override\n public void onSuccess(final LoginResult loginResult) {\n LoginActivity.this.findViewById(R.id.login_button).setVisibility(View.GONE);\n new Login(LoginActivity.this, loginResult).execute();\n progressBar.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onCancel() {\n AlertDialog.Builder builder =ClientController.getInstance().armarMensaje(LoginActivity.this, \"Se ha cancelado la conexion con Facebook\",\"Disculpe\");\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n\n @Override\n public void onError(FacebookException exception) {\n AlertDialog.Builder builder =ClientController.getInstance().armarMensaje(LoginActivity.this, exception.getMessage(),\"Disculpe\");\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n });\n }\n }", "public void login(){\n if (this.method.equals(\"Facebook\")){\n Scanner in = new Scanner(System.in);\n\n System.out.println(\"Enter your Facebook username :\");\n String username = in.next();\n\n System.out.println(\"Enter your Facebook password :\");\n String password = in.next();\n\n connector.connectToDb();\n\n System.out.println(\"Success : Logged In !\");\n }\n }", "@Override\n public void onLogin() {\n accessToken = mSimpleFacebook.getSession().getAccessToken();\n Log.e(\"facebook token\", \"\" + accessToken);\n //check validation\n new LoginGoogleFb().execute(null, null, null);\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n mCallbackManager.onActivityResult(requestCode, resultCode, data); // DATA CALLBACK FOR FACEBOOK\n if (data != null) {\n progressDialog.show();\n progressDialog.setMessage(\"Logging you in...\");\n if (requestCode == 9001 && resultCode == RESULT_OK) {\n Task<GoogleSignInAccount> task = GoogleSignIn.getSignedInAccountFromIntent(data);\n try {\n // Google Sign In was successful, authenticate with Firebase\n GoogleSignInAccount account = task.getResult(ApiException.class);\n assert account != null;\n firebaseAuthWithGoogle(account.getIdToken());\n } catch (ApiException e) {\n e.printStackTrace();\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }\n }else {\n progressDialog.dismiss();\n }\n }", "@Override\n public void onSuccess(LoginResult loginResult) {\n handleSignInFacebook(loginResult.getAccessToken(), loginResult.getAccessToken().getUserId());\n\n }", "private void setUpFacebook() {\n mCallbackManager = CallbackManager.Factory.create();\n loginButton = findViewById(R.id.facebook_login);\n loginButton.setReadPermissions(\"email\", \"public_profile\");\n loginButton.registerCallback(mCallbackManager, new FacebookCallback<LoginResult>() {\n @Override\n public void onSuccess(LoginResult loginResult) {\n Log.d(TAG, \"facebook:onSuccess:\" + loginResult);\n handleFacebookAccessToken(loginResult.getAccessToken());\n }\n\n @Override\n public void onCancel() {\n Log.d(TAG, \"facebook:onCancel\");\n // ...\n }\n\n @Override\n public void onError(FacebookException error) {\n Log.d(TAG, \"facebook:onError\", error);\n // ...\n }\n });\n\n }", "public void onFacebookClicked(View v) {\n // TODO: fix the bug \"java.lang.RuntimeException: Unable to authenticate when another authentication is in process\"\n\n List<String> permissions = Arrays.asList(\"public_profile\", \"email\");\n ParseFacebookUtils.logInWithReadPermissionsInBackground(this, permissions, new LogInCallback() {\n @Override\n public void done(ParseUser parseUser, ParseException e) {\n if (e == null && parseUser != null) {\n Logger.d(TAG, \"facebook login done!\");\n\n if (parseUser.isNew() || parseUser.getEmail() == null) {\n Intent intent = new Intent(SignInActivity.this, VerifyAccountActivity.class);\n startActivityForResult(intent, REQUEST_EXIT);\n } else {\n goToMap();\n }\n } else {\n // Error\n Logger.d(TAG, \"Error message: \" + e == null? \"null\" : e.getLocalizedMessage());\n if (parseUser == null)\n Logger.d(TAG, \"parseUser is null\");\n }\n\n if (dialog != null)\n dialog.dismiss();\n }\n });\n }", "public void doFullLoginChain( final Activity parent,\n final Handler serverCallHandler,\n final BasicCallback<String> facebookAuthCallback,\n final BasicCallback<String> facebookUserCallback,\n final BasicCallback<Pair<String, String> > tonightLifeAuthCallback) {\n \n authCount = 0;\n facebookAuthenticator.authenticate(parent, new BasicCallback<String>() {\n @Override\n public void onDone(String response) {\n ++authCount;\n facebookAuthCallback.onDone(response);\n facebookUserRemoteResource.load(serverCallHandler, response, new BasicCallback<String>() {\n @Override\n public void onDone(String response) {\n ++authCount;\n facebookUserCallback.onDone(response);\n tonightLifeAuthenticator.authenticate(serverCallHandler,\n facebookAuthenticator.getFacebookAccessToken(), new BasicCallback<Pair<String,String>>() {\n @Override\n public void onDone(Pair<String, String> response) {\n ++authCount;\n tonightLifeAuthCallback.onDone(response);\n }\n \n @Override\n public void onFail(String reason) {\n tonightLifeAuthCallback.onFail(reason);\n }\n });\n }\n \n @Override\n public void onFail(String reason) {\n facebookUserCallback.onFail(reason);\n }\n });\n }\n \n @Override\n public void onFail(String reason) {\n facebookAuthCallback.onFail(reason);\n }\n });\n }", "@Override\n public void onSuccess(LoginResult loginResult) {\n // App code\n GraphRequest request = GraphRequest.newMeRequest(\n loginResult.getAccessToken(),\n new GraphRequest.GraphJSONObjectCallback() {\n @Override\n public void onCompleted(JSONObject object, GraphResponse response) {\n Log.v(\"LoginActivity\", response.toString());\n\n // Application code\n try {\n doCheckExitingUser(object.getString(\"email\"), object.getString(\"name\"), object.getString(\"id\"), \"\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n });\n Bundle parameters = new Bundle();\n parameters.putString(\"fields\", \"id,name,email,gender,birthday\");\n request.setParameters(parameters);\n request.executeAsync();\n// Toaster.shortToast(\"On Success\" + loginResult.toString());\n }", "@Test(priority = 0)\n\tpublic void facebookLogin_with_bothValid_credentials() throws InterruptedException {\n\t\t\n\t\tExtentTestManager.getTest().setDescription(\"This is Facebook login with valid username and valid password.\");\n\t\t\n\t\tdriver.get(Config.getServerURL());\n\t\tdriver.manage().window().maximize();\n\t\t\n\t\t// Use PageFactory to init pagelements.\n\t\tFacebookLoginFactory facebookLogin= PageFactory.initElements(driver, FacebookLoginFactory.class);\n\n\t\tConfig.waitForElement(driver, facebookLogin.getLnk_LoginWithFcaebook());\n\t\tfacebookLogin.getLnk_LoginWithFcaebook().click();\n\t\tConfig.waitForTime();\n\n\t\t//This script will switch the command from main(parent) to child window\n\t\tSet<String> windowIds = driver.getWindowHandles();\n\t\tIterator<String> iter = windowIds.iterator();\n\t\tString mainWindow = iter.next();\n\t\tString childWindow = iter.next();\n\t\tdriver.switchTo().window(childWindow);\n\t\tdriver.manage().window().maximize();\n\t\n\t\tfacebookLogin.getTxt_FacebookUserName().sendKeys(\"[email protected]\");\n\t\tConfig.waitForElement(driver, facebookLogin.getTxt_FacebookPassword());\n\t\tfacebookLogin.getTxt_FacebookPassword().sendKeys(\"test123*\");\n\t\tConfig.waitForElement(driver, facebookLogin.getBtn_FacebookLogin());\n\t\tfacebookLogin.getBtn_FacebookLogin().click();\n\t\t\n\t\t// Return to parent window\n\t\tdriver.switchTo().window(mainWindow);\n\t\tConfig.waitForElement(driver, facebookLogin.getTxt_MsgOnlogin());\n\t\tString textmessage = facebookLogin.getTxt_MsgOnlogin().getText();\n\t\tAssert.assertEquals(textmessage, \"You are not eligible for registration\");\n\t\t\n\t}", "@Override\n public void onSuccess(LoginResult loginResult) {\n\n callGraphRequestFb();\n// HashMap<String, String> data = new HashMap<>();\n// data.put(\"fb_id\", loginResult.getAccessToken().getUserId());\n// data.put(\"device_token\", FirebaseInstanceId.getInstance().getToken());\n// data.put(\"device_type\", \"android\");\n// fbLoginApi(data);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState)\n {\n\n super.onCreate(savedInstanceState);\n FacebookSdk.sdkInitialize(getApplicationContext());\n setContentView(R.layout.activity_main2);\n System.out.println(FacebookSdk.getApplicationSignature(getApplicationContext()));\n stageHandler=new StageHandler(this);\n stageHandler.updateStagesFromServerIfNeeded();\n if (FirstTimeInMainActivity)\n {\n FirstTimeInMainActivity = false;\n callbackManager = CallbackManager.Factory.create();\n //facebook connecting\n LoginManager.getInstance().registerCallback(callbackManager,\n new FacebookCallback<LoginResult>()\n {\n @Override\n public void onSuccess(LoginResult loginResult) //if success\n {\n Toast.makeText(MainActivity.this, getString(R.string.facebookSuccess), Toast.LENGTH_LONG).show();\n if (Profile.getCurrentProfile() != null)\n {\n stageHandler.newFacebookUser();\n }\n }\n @Override\n public void onCancel() //if cancel\n {\n\n }\n @Override\n public void onError(FacebookException exception) //if error\n {\n Toast.makeText(MainActivity.this, exception.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n\n LoginManager.getInstance().logInWithReadPermissions(MainActivity.this, Arrays.asList(\"public_profile\", \"user_friends\")); //ask for permissions\n }\n\n }", "private void checkFacebookLogin(final String email, final String password, final String isFacebookLogin,\n final String fbId, final String F_firstName, final String F_lastName, final String imagefile) {\n String tag_string_req = \"req_login\";\n mDialog = new ProgressDialaogView().getProgressDialog(getActivity());\n mDialog.show();\n\n NetworkUtils.callFacebookLogin(isFacebookLogin, fbId, email, F_firstName, F_lastName,\n imagefile, tag_string_req, LoginFragmentMain.this);\n }", "public void facebookAuthorize()\n\t{\n\t\tPreferences preferences = new Preferences(getActivity());\n\t\tString accessToken = preferences.getFacebookAccessToken();\n\t\tlong expiration = preferences.getFacebookAccessExpiration();\n\n\t\tif(accessToken != null) mFacebook.setAccessToken(accessToken);\n\t\tif(expiration != 0) mFacebook.setAccessExpires(expiration);\n\t\t\t\t\n\t\tif(!mFacebook.isSessionValid())\n\t\t{\n\t\t\t// show progress in action bar\n\t\t\tshowActionBarProgress(true);\n\t\t\t\t\t\t\n\t\t\t// facebook permissions: https://developers.facebook.com/docs/authentication/permissions/\n\t\t\tmFacebook.authorize(getActivity(), new String[] { \"email\", \"user_birthday\", \"user_location\" }, new DialogListener()\n\t\t\t{\n\t\t\t\t@Override\n\t\t\t\tpublic void onComplete(Bundle values)\n\t\t\t\t{\n\t\t\t\t\t// TODO: run callbacks in TaskFragment.runTaskCallback()\n\n\t\t\t\t\tLogcat.d(\"Fragment.facebookAuthorize().onComplete(): \" + mFacebook.getAccessToken());\n\t\t\t\t\t\n\t\t\t\t\t// save access token\n\t\t\t\t\tPreferences preferences = new Preferences(getActivity());\n\t\t\t\t\tpreferences.setFacebookAccessToken(mFacebook.getAccessToken());\n\t\t\t\t\tpreferences.setFacebookAccessExpiration(mFacebook.getAccessExpires());\n\t\t\t\t\t\n\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\n\t\t\t\t\t// toast\n\t\t\t\t\tToast.makeText(getActivity(), \"Successfully logged in.\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onFacebookError(FacebookError e)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookAuthorize().onFacebookError(): \" + e.getErrorType() + \" / \" + e.getLocalizedMessage() + \" / \" + e.getMessage());\n\t\t\t\t\t\n\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\n\t\t\t\t\t// toast\n\t\t\t\t\tif(e.getMessage()!=null) Toast.makeText(getActivity(), e.getMessage(), Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onError(DialogError e)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookAuthorize().onError(): \" + e.getLocalizedMessage() + \" / \" + e.getMessage());\n\t\t\t\t\t\n\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\n\t\t\t\t\t// toast\n\t\t\t\t\tif(e.getMessage()!=null) Toast.makeText(getActivity(), e.getMessage(), Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onCancel()\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookAuthorize().onCancel()\");\n\t\t\t\t\t\n\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\telse\n\t\t{\n\t\t\tToast.makeText(getActivity(), \"You are already logged in.\", Toast.LENGTH_LONG).show();\n\t\t}\n\t}", "private void login(){\n\t\tprogress.toggleProgress(true, R.string.pagetext_signing_in);\n\t\tParseUser.logInInBackground(email.split(\"@\")[0], password, new LogInCallback() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(ParseUser user, ParseException e) {\n\t\t\t\tif (e == null) {\n\t\t\t\t\tprogress.toggleProgress(false);\n\t\t\t\t\tIntent intent = new Intent(context, MainActivity.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t// else, incorrect password\n\t\t\t\t\tToast.makeText(context, \n\t\t\t\t\t\t\t\t getString(R.string.parse_login_fail, email), \n\t\t\t\t\t\t\t\t Toast.LENGTH_LONG).show();\t\t\t\t\t\n\t\t\t\t\tLog.e(\"Error Logging into Parse\", \"Details: \" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\t\t\n\t\t});\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n getApplications().getFacebookLoginManager().onActivityResult(requestCode, resultCode, data);\n super.onActivityResult(requestCode, resultCode, data);\n }", "@Test\n\tpublic void testingLoginFacebook() {\n\t\t\n\t\tWebElement facebookLogin = driver.findElement(By.linkText(\"Log in with Facebook\"));\n\t\tfacebookLogin.click();\n\t\t\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\n\t\tdriver.findElement(By.id(\"email\")).sendKeys(\"validEmail\");\n\t\tdriver.findElement(By.id(\"pass\")).sendKeys(\"validPassword\");\n\t\tdriver.findElement(By.id(\"loginbutton\")).click();\n\t\t\n\t\tthis.gettingUserAndPass();\n\t\t\n\t\tthis.sendingKeys();\n\t\t\n\t\tString welcomeUser = driver.findElement(By.className(\"dashwidget_label\")).getText();\n\t\tassertEquals(\"Welcome to Humanity!\", welcomeUser);\n\t\t\n\t}", "@Override\n public void onSuccess(LoginResult loginResult) {\n GraphRequest request = GraphRequest.newMeRequest(\n loginResult.getAccessToken(),\n new GraphRequest.GraphJSONObjectCallback() {\n @Override\n public void onCompleted(\n JSONObject object,\n GraphResponse response) {\n\n //Log.e(\"FACEBOOK RESPONSE \", response.toString());\n jsonGraphObject = response.getJSONObject();\n\n //Get user detail and save it to loacal instances.\n getFacebookInfo();\n\n LoginManager.getInstance().logOut();\n\n //Save info to params and pass Login Type [Twitch,Facebook,Twitter].\n //saveInfoToParams(ApplicationGlobal.TAG_LOGIN_FACEBOOK);\n }\n });\n Bundle parameters = new Bundle();\n // parameters.putString(\"fields\", \"id,city,name,email,gender, birthday,first_name,locale,country,latitude,longitude,state,zip\");\n parameters.putString(\"fields\", \"email,first_name,last_name, locale, location\");\n request.setParameters(parameters);\n request.executeAsync();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n // setContentView(R.layout.activity_login);\n super.onCreate(savedInstanceState);\n FacebookSdk.sdkInitialize(getApplicationContext());\n setContentView(R.layout.activity_main);\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n\n // LoginButton loginButton = (LoginButton) findViewById(R.id.login_button);\n // loginButton.setReadPermissions(Arrays.asList(\"public_profile, email, user_birthday\"));\n Log.e(\"Oncreate\", \"Oncreate\");\n\n // loginButton.setBackgroundResource(R.mipmap.ic_launcher);\n callbackManager = CallbackManager.Factory.create();\n\n\n\n /*\n AccessToken accessToken = AccessToken.getCurrentAccessToken();\n if(accessToken!=null){\n Log.e(\"AccesTokenCurrent\",accessToken.getToken());\n }\n\n */\n accessTokenTracker = new AccessTokenTracker() {\n @Override\n protected void onCurrentAccessTokenChanged(AccessToken oldToken, AccessToken newToken) {\n Log.e(\"TokenChanged\", \"Entro\");\n\n }\n };\n\n profileTracker = new ProfileTracker() {\n @Override\n protected void onCurrentProfileChanged(Profile oldProfile, Profile newProfile) {\n\n Log.e(\"ProfileChanged\", \"Entro\");\n /*\n if(oldProfile.getName()!=null){\n Log.e(\"TokenOld\",\"Entro\"+oldProfile.getName());\n }\n if(newProfile.getName()!=null){\n Log.e(\"TokenNew\",\"Entro\"+newProfile.getName());\n }\n */\n }\n };\n\n accessTokenTracker.startTracking();\n profileTracker.startTracking();\n\n profile = Profile.getCurrentProfile();\n if (profile != null) {\n if (intent != null)\n\n startActivity(intent);\n Log.e(\"OtraActivity\", \"Other activity\");\n }\n\n\n /* loginButton.registerCallback(callbackManager, new FacebookCallback<LoginResult>() {\n @Override\n public void onSuccess(LoginResult loginResult) {\n GraphRequest request = GraphRequest.newMeRequest(\n loginResult.getAccessToken(),\n new GraphRequest.GraphJSONObjectCallback() {\n @Override\n public void onCompleted(\n JSONObject object,\n GraphResponse response) {\n // Application code\n Log.e(\"LoginActivity1111\", \"hhh\" + response.toString());\n String name = object.optString(\"name\");\n String email = object.optString(\"email\");\n String id = object.optString(\"id\");\n prefs = getSharedPreferences(\"Login\", getApplicationContext().MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putString(\"name\", name);\n editor.putString(\"email\", email);\n editor.putString(\"id\", id);\n editor.commit();\n\n\n intent = new Intent(LoginActivity.this, MainActivity.class);\n intent.putExtra(\"name\", name);\n intent.putExtra(\"email\", email);\n intent.putExtra(\"id\", id);\n Log.e(\"LoginActivity22j2\", \"hhh\" + name + \"||||\" + email + \"|||\" + id);\n finish();\n startActivity(intent);\n\n }\n });\n Bundle parameters = new Bundle();\n parameters.putString(\"fields\", \"id,name,email,gender, birthday\");\n request.setParameters(parameters);\n request.executeAsync();\n\n\n }\n\n @Override\n public void onCancel() {\n Toast.makeText(getApplicationContext(), \"Cancelado\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onError(FacebookException error) {\n Toast.makeText(getApplicationContext(), \"Error\", Toast.LENGTH_SHORT).show();\n\n }\n });*/\n\n // && AccessToken.getCurrentAccessToken()!=null;\n /*\n if(Profile.getCurrentProfile() == null) {\n mProfileTracker = new ProfileTracker() {\n @Override\n protected void onCurrentProfileChanged(Profile profile, Profile profile2) {\n Log.e(\"facebook - profilenull\", profile2.getFirstName()+\"+++\"+profile2.getLinkUri());\n mProfileTracker.stopTracking();\n }\n };\n mProfileTracker.startTracking();\n }\n else {\n Profile profile = Profile.getCurrentProfile();\n Log.e(\"facebook - profile!null\", profile.getFirstName()+profile.getLinkUri());\n\n }*/\n //intent\n\n\n /* FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);\n fab.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Snackbar.make(view, \"Replace with your own action\", Snackbar.LENGTH_LONG)\n .setAction(\"Action\", null).show();\n }\n });*/\n\n /* try {\n PackageInfo info = getPackageManager().getPackageInfo(\n \"com.example.alberto.loginfacebook\",\n PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"KeyHash:\", Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n } catch (PackageManager.NameNotFoundException e) {\n\n } catch (NoSuchAlgorithmException e) {\n\n }*/\n\n\n // ATTENTION: This was auto-generated to implement the App Indexing API.\n // See https://g.co/AppIndexing/AndroidStudio for more information.\n // client = new GoogleApiClient.Builder(this).addApi(AppIndex.API).build();\n }", "private void openSigninActivity() {\n Intent intent = new Intent(this, FaceDetectionActivity.class);\n intent.putExtra(\"IS_FROM_LOGIN\", true);\n startActivityForResult(intent, LOGIN_REQUEST);\n }", "private void handleFacebookAccessToken(AccessToken token) {\n //Log.d(TAG, \"handleFacebookAccessToken:\" + token);\n\n AuthCredential credential = FacebookAuthProvider.getCredential(token.getToken());\n mAuth.signInWithCredential(credential)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // Sign in success, update UI with the signed-in user's information\n //Log.d(TAG, \"signInWithCredential:success\");\n FirebaseUser user = mAuth.getCurrentUser();\n updateUI(user);\n\n //Aqui envia os dados para o banco ou pega os dados de lá\n DadosUsuario dados = new DadosUsuario();\n dados.setTipoConexao(1);\n\n for (UserInfo profile : user.getProviderData()) {\n // Id of the provider (ex: google.com)\n\n dados.setUid(profile.getUid());\n\n // Name, email address, and profile photo Url\n dados.setNome(profile.getDisplayName());\n dados.setEmail(profile.getEmail());\n dados.setUrlFoto(profile.getPhotoUrl().toString());\n\n }\n\n //Verifica se já ah conta\n dados.verificarExistencia();\n if(dados.getConta()==false){\n\n criarNickName = new Intent(InicialLoginActivity.this, CriarNomeUsuario.class);\n startActivity(criarNickName);\n finish();\n\n } else {\n\n //Aqui importa e inicial a tela inicial do jogo logo após o usuario estar conectado\n telaInicial = new Intent(InicialLoginActivity.this, TelaInicial.class);\n startActivity(telaInicial);\n finish();\n }\n\n } else {\n // If sign in fails, display a message to the user.\n //Log.w(TAG, \"signInWithCredential:failure\", task.getException());\n Toast.makeText(InicialLoginActivity.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n updateUI(null);\n }\n\n // ...\n }\n });\n }", "private void handleFacebookAccessToken(AccessToken token) {\n Log.d(TAG, \"handleFacebookAccessToken:\" + token);\n // [START_EXCLUDE silent]\n showProgressDialog();\n // [END_EXCLUDE]\n\n if (token == null) return;\n AuthCredential credential = FacebookAuthProvider.getCredential(token.getToken());\n mAuth.signInWithCredential(credential)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"signInWithCredential:onComplete:\" + task.isSuccessful());\n\n // If sign in fails, display a message to the user. If sign in succeeds\n // the auth state listener will be notified and logic to handle the\n // signed in user can be handled in the listener.\n hideProgressDialog();\n if (!task.isSuccessful()) {\n Log.w(TAG, \"signInWithCredential\", task.getException());\n Toast.makeText(LogInActivity.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }\n else\n {\n currentUser = task.getResult().getUser();\n General.SetStringData(getApplicationContext(), Constants.FACEBOOK_LOGIN, \"true\");\n General.SetStringData(getApplicationContext(), Constants.GOOGLE_LOGIN, \"false\");\n General.SetStringData(getApplicationContext(), Constants.EMAIL_LOGIN, \"false\");\n // General.ShowToast(getApplicationContext(), \"Success\");\n General.currentUser = currentUser;\n Google_FacebookUserUpdate();\n }\n }\n })\n .addOnFailureListener(this, new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(), e.getMessage(), Toast.LENGTH_SHORT).show();\n\n }\n });\n }", "public void login (LoginCallback callback) {\n\t\tloginCallback = callback;\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "private void checkLogin(final String email, final String password, final String isFacebookLogin) {\n String tag_string_req = \"req_login\";\n mDialog = new ProgressDialaogView().getProgressDialog(getActivity());\n mDialog.show();\n\n NetworkUtils.callLogin(isFacebookLogin, email, password, tag_string_req, LoginFragmentMain.this);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n callbackManager = CallbackManager.Factory.create();\n loginButton = (LoginButton) findViewById(R.id.login_button);\n\n loginButton.setReadPermissions(Arrays.asList(EMAIL));\n // If you are using in a fragment, call loginButton.setFragment(this);\n\n // Callback registration\n loginButton.registerCallback(callbackManager, new FacebookCallback <LoginResult>() {\n @Override\n public void onSuccess(LoginResult loginResult) {\n // App code\n\n AccessToken accessToken=loginResult.getAccessToken();\n GraphRequest graphRequest=GraphRequest.newMeRequest(accessToken, new GraphRequest.GraphJSONObjectCallback() {\n @Override\n public void onCompleted(JSONObject object, GraphResponse response) {\n Display_data(object);\n }\n });\n Bundle bundle=new Bundle();\n bundle.putString(\"fields\",\"email,id\");\n graphRequest.setParameters(bundle);\n graphRequest.executeAsync();\n }\n\n\n\n @Override\n public void onCancel() {\n // App code\n }\n\n @Override\n public void onError(FacebookException exception) {\n // App code\n\n }\n\n\n });\n\n\n }", "public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView((int) R.layout.activity_login_option);\n checkUserStatus();\n MyApp.printHashKey(this);\n this.emailTextView = (TextView) findViewById(R.id.emailTextView);\n this.fbLoginButton = (LoginButton) findViewById(R.id.fbLoginButton);\n this.alreadyLinearLayout = (LinearLayout) findViewById(R.id.alreadyLinearLayout);\n this.signUpTextView = (TextView) findViewById(R.id.signUpTextView);\n this.mCallBackManager = CallbackManager.Factory.create();\n this.fbLoginButton.setReadPermissions((List<String>) Arrays.asList(new String[]{\"email\", \"public_profile\"}));\n this.signUpTextView.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n LoginOptionActivity.this.startActivity(new Intent(LoginOptionActivity.this, RegisterActivity.class));\n }\n });\n this.fbLoginButton.registerCallback(this.mCallBackManager, new FacebookCallback<LoginResult>() {\n public void onSuccess(LoginResult loginResult) {\n Toast.makeText(LoginOptionActivity.this, \"Success\", 0).show();\n }\n\n public void onCancel() {\n }\n\n public void onError(FacebookException error) {\n Toast.makeText(LoginOptionActivity.this, \"Some Error\", 0).show();\n }\n });\n this.alreadyLinearLayout.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n Intent intent = new Intent(LoginOptionActivity.this, LoginActivity.class);\n intent.addFlags(268468224);\n LoginOptionActivity.this.startActivity(intent);\n }\n });\n }", "private void handleFacebookAccessToken(AccessToken token) {\n AuthCredential credential = FacebookAuthProvider.getCredential(token.getToken());\n firebaseAuth.signInWithCredential(credential)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // Sign in success, update UI with the signed-in user's information\n Log.d(\"LoginFragment\", \"signInWithCredential:success\");\n } else {\n // If sign in fails, display a message to the user.\n Log.w(\"LoginFragment\", \"signInWithCredential:failure\", task.getException());\n Toast.makeText(getActivity(), \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "@Override\n public void onSuccess(SignInResult signInResult) {\n intentLogin(mailPhone);\n }", "@Override\n public void onSuccess(SignInResult signInResult) {\n intentLogin(mailPhone);\n }", "public void User_login()\r\n\t{\n\t\tdriver.findElement(FB_Locators.Signin_Email).clear();\r\n\t\tdriver.findElement(FB_Locators.Signin_Email).sendKeys(username);\r\n\t\t\r\n\t\t//Script using element referral..\r\n\t\tWebElement Password_Element=driver.findElement(FB_Locators.Signin_password);\r\n\t\tPassword_Element.clear();\r\n\t\tPassword_Element.sendKeys(password);\r\n\t\t\r\n\t\t//Login button using webelemnet referral\r\n\t\tWebElement Login_btn_Element=driver.findElement(FB_Locators.Signin_btn);\r\n\t\tLogin_btn_Element.click();\r\n\t}", "public void loginFacebook() {\r\n\t\tdriver.findElement(By.xpath(LearnObjectMap.FB_LOGIN_USERNAME_XPATH)).sendKeys(\"9705033563\");\r\n\t\tdriver.findElement(By.xpath(LearnObjectMap.FB_LOGIN_PASSWORD_XPATH)).sendKeys(\"asfczc\");\r\n\t\tdriver.findElement(By.xpath(LearnObjectMap.FB_LOGIN_XPATH)).click();\r\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\r\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(LearnObjectMap.FB_LOGIN_ERROR_MSG_XPATH)));\r\n\t\tString errorMsg = driver.findElement(By.xpath(LearnObjectMap.FB_LOGIN_ERROR_MSG_XPATH)).getText();\r\n\t\tSystem.out.println(\"Error message -->\"+errorMsg);\r\n\t\tAssert.assertEquals(errorMsg, \"The password that you've entered is incorrect. Forgotten password?\",\"Error message validation Failed\");\r\n\t\t\r\n\t}", "@Test(priority = 11)\n\tpublic void loginWithFacebookTest() throws InterruptedException {\n\t\tHomePage home = new HomePage(this.driver);\n\t\tLoginPage login = new LoginPage(this.driver);\n\t\tProfilePage profile = new ProfilePage(this.driver);\n\t\tFacebookLoginPage facebook = new FacebookLoginPage(this.driver);\n\t\tAssert.assertTrue(home.myAccountElementIsDisplayed());\n\t\thome.navigateToMyAccount();\n\t\tThread.sleep(2000);\n\t\tlogin = home.navigateToLogin();\n\t\tThread.sleep(2000);\n\t\tAssert.assertTrue(login.loginWithFacebookBtnIsDisplayed());\n\t\tfacebook = login.navigateToLoginWithFacebookBtn();\n\t\tThread.sleep(2000);\n\t\tAssert.assertTrue(facebook.facebookLoginPageIsDisplayed());\n\t\tAssert.assertTrue(facebook.facebookEmailBtnIsDisplayed());\n\t\tfacebook.typeEmail(\"[email protected]\");\n\t\tThread.sleep(2000);\n\t\tAssert.assertTrue(facebook.facebookPasswordBtnIsDisplayed());\n\t\tThread.sleep(2000);\n\t\tfacebook.typePassword(\"norparol1992\");\n\t\tThread.sleep(2000);\n\t\tprofile = facebook.navigateToFacebookLoginBtn();\n\t\tThread.sleep(2000);\n\t\tAssert.assertTrue(profile.welcomePanelIsDisplayed());\n\t}", "@Override\n public void onSuccess(LoginResult loginResult) {\n handleFacebookAccessToken(loginResult.getAccessToken());\n\n }", "@Override\n\t public void call(final Session session, SessionState state, Exception exception) {\n\t if (session.isClosed()) {\n\t \t\n\t\t\tsession.closeAndClearTokenInformation();\n\t\t\tDatabase.FbEmail=null;\n\t\t\tDatabase.FbName=null;\n\t\t\tDatabase.FbUserID=null;\n\t\t\tDatabase.FbGender=null;\n\t\t\tif (S!=null) {\n\t\t\t\tS.closeAndClearTokenInformation();\n\t\t\t}\n\t\t\t\n\t\t}\n\t //Login Button Click Event Username password enter step Start\n\t else if (session.isOpened()) {\n\t Log.i(TAG,\"Access Token\"+ session.getAccessToken());\n\t Request.executeMeRequestAsync(session,\n\t new Request.GraphUserCallback() {\n\t @Override\n\t public void onCompleted(GraphUser user,Response response) {\n\t \t \n\t \t if (user != null) { \n\t Log.i(TAG,\"User ID \"+ user.getId());\n\t Log.i(TAG,\"Email \"+ user.asMap().get(\"email\"));\n\t Database.FbEmail=user.asMap().get(\"email\").toString();\n\t Database.FbUserName= user.getUsername();\n\t Database.FbName=user.getName();\t \n\t Database.FbUserID=user.getId();\n\t \n\t \n\t //gender kontrolü null geliyor kontrol hep kadın a geçiyo kontrol edilecek\t \n\t if(user.asMap().get(\"gender\").toString()==\"male\")\n\t {\n\t \t Database.FbGender=\"Erkek\";\n\t }\n\t else \n\t {\n\t \t Database.FbGender=\"Kadın\";\n\t\t\t\t\t\t\t\t }\n\t \n\t Database.UserID = db.GetCurrentUserID(Database.FbEmail);\n\t startActivity(intent);\n\t \t \n\t }\n\t }\n\t });\n\t }//Login Button Click Event Username password enter step Finish\n\t }", "public void startAuth(AccountManagerCallback accountManagerCallback) {\n mAccountManagerCallback = accountManagerCallback;\n\n CognitoUser user = mUserPool.getUser(mEmail);\n user.getSessionInBackground(authenticationHandler);\n }", "private void handleFacebookAccessToken(AccessToken accessToken) {\n progressBar.setVisibility(View.VISIBLE);\n loginButton.setVisibility(View.GONE);\n\n AuthCredential credential = FacebookAuthProvider.getCredential(accessToken.getToken());\n mAuth.signInWithCredential(credential)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // Sign in success, update UI with the signed-in user's information\n //Log.d(TAG, \"signInWithCredential:success\");\n //Toast.makeText(getApplicationContext(),R.string.firebase_error_login, Toast.LENGTH_SHORT).show();\n FirebaseUser user = mAuth.getCurrentUser();\n //updateUI(user);\n } else {\n // If sign in fails, display a message to the user.\n //Log.w(TAG, \"signInWithCredential:failure\", task.getException());\n Toast.makeText(getApplicationContext(), \"Fallo la autenticacion.\",\n Toast.LENGTH_SHORT).show();\n //updateUI(null);\n progressBar.setVisibility(View.GONE);\n loginButton.setVisibility(View.VISIBLE);\n }\n }\n });\n }", "private void initFBTwitterLogIn() {\n TwitterAuthConfig authConfig = new TwitterAuthConfig(TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET);\n Fabric.with(AuthenticationFragment.this.getContext(), new Twitter(authConfig));\n }", "@RequestMapping(value={\"/login-facebook\"}, method=RequestMethod.GET)\n\tpublic String login(WebRequest request)\n\t{\n\tToken accessToken=(Token)request.getAttribute(ATTR_OAUTH_ACCESS_TOKEN, SCOPE_SESSION);\n\t\tif(accessToken==null)\n\t\t{\n\t\t\t// generate new request token\n\t\tOAuthService authService=facebookServiceProvider.getServiceProvider();\n\t\trequest.setAttribute(ATTR_OAUTH_REQUEST_TOKEN, EMPTY_TOKEN, SCOPE_SESSION);\n\t\treturn \"redirect:\"+authService.getAuthorizationUrl(EMPTY_TOKEN);\n\t\t}\n\t\t\n\t\treturn \"homePage\";\n\t}", "public void verifyLogin(){\n\n //Verifica que haya conexion de internet\n networkManager = (ConnectivityManager) this.getSystemService(\n Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = networkManager.getActiveNetworkInfo();\n boolean isConnected = networkInfo != null && networkInfo.isConnectedOrConnecting();\n\n if (PreferenceUtils.getEmail (this) != null) { //Verifica que hay una session abierta.\n showSplash ();\n if(isConnected){\n\n //Checa el tipo de session\n if(PreferenceUtils.getSession (this))\n //Facebook session\n new LoadDataLoginFacebook (this).execute(\n PreferenceUtils.getName (this),\n PreferenceUtils.getEmail (this),\n PreferenceUtils.getPassword (this));\n else\n //Manual session\n new LoadDataLogin (this).execute (\n PreferenceUtils.getEmail (this),\n PreferenceUtils.getPassword (this));\n }\n else{ //Si no hay internet pasa directo a la session abierta.\n Intent intent = new Intent (AccessActivity.this, MainActivity.class);\n startActivity (intent);\n }\n }\n }", "void callbackFBLogged();", "@Override\n public void onSuccess(LoginResult loginResult) {\n GraphRequest request = GraphRequest.newMeRequest(AccessToken.getCurrentAccessToken(), new GraphRequest.GraphJSONObjectCallback() {\n @Override\n public void onCompleted(JSONObject object, GraphResponse response) {\n if (response.getError() != null) {\n\n } else {\n getFacebookItems(object);\n }\n }\n });\n Bundle parameters = new Bundle();\n parameters.putString(\"fields\", \"id,name,email,gender,first_name,picture\");\n request.setParameters(parameters);\n request.executeAsync();\n\n }", "private void signIn() {\n }", "public void connectToFB() {\n List<String> permissions = new ArrayList<String>();\n permissions.add(\"publish_stream\");\n\n currentSession = new Session.Builder(this).build();\n currentSession.addCallback(sessionStatusCallback);\n\n Session.OpenRequest openRequest = new Session.OpenRequest(this);\n openRequest.setLoginBehavior(SessionLoginBehavior.SUPPRESS_SSO);\n openRequest.setRequestCode(Session.DEFAULT_AUTHORIZE_ACTIVITY_CODE);\n openRequest.setPermissions(permissions);\n currentSession.openForPublish(openRequest);\n }", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "@Test\n @Description(\"Login to the Facebook Page\")\n @Story(\"Valid Credentials Login\")\n public void LoginTest() throws InterruptedException {\n Login login = new Login(driver);\n login.LoginApplication();\n\n }", "@Override\n\tpublic void loginGPGS() {\n\t\ttry {\n\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tgameHelper.beginUserInitiatedSignIn();\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (final Exception ex) {\n\t\t}\n\n\t}", "private void login() {\n Log.d(Constants.TAG_LOGIN_ACTIVITY, \"login: \");\n\n // Store values at the time of the login attempt.\n mEmail = mEditTextSignInEmail.getText().toString();\n mPassword = mEditTextSignInPassword.getText().toString();\n mFocusView = null;\n\n // Check for a valid password\n if (TextUtils.isEmpty(mPassword) || !mPresenter.isPasswordValid(mPassword)) {\n mEditTextSignInPassword.setError(getString(R.string.error_invalid_password));\n mFocusView = mEditTextSignInPassword;\n isProcessCancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(mEmail)) {\n mEditTextSignInEmail.setError(getString(R.string.error_field_required));\n mFocusView = mEditTextSignInEmail;\n isProcessCancel = true;\n } else if (!mPresenter.isEmailValid(mEmail)) {\n mEditTextSignInEmail.setError(getString(R.string.error_invalid_email));\n mFocusView = mEditTextSignInEmail;\n isProcessCancel = true;\n }\n\n if (isProcessCancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n mFocusView.requestFocus();\n\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true, mLinearlayoutSignIn);\n mPresenter.loginTask(this, mAuth, mEmail, mPassword, new SignInCallback() {\n @Override\n public void onCompleted() {\n showProgress(false, mLinearlayoutSignIn);\n showUserInfoLog();\n transToShareBookActivity();\n }\n\n @Override\n public void onError(String errorMessage) {\n Log.d(Constants.TAG_LOGIN_ACTIVITY, \"onError: \" + errorMessage);\n\n showProgress(false, mLinearlayoutSignIn);\n mEditTextSignInEmail.setError(getString(R.string.error_login_fail));\n mFocusView = mEditTextSignInEmail;\n isProcessCancel = true;\n }\n });\n }\n }", "@Override\n public void call(final Session session, SessionState state, Exception exception)\n {\n //session.openForRead(new Session.OpenRequest(this).setPermissions(Arrays.asList(\"email\")));\n\n if (session.isOpened())\n {\n // make request to the /me API\n\n Request.executeMeRequestAsync(session, new Request.GraphUserCallback()\n\n {\n // callback after Graph API response with user object\n @Override\n public void onCompleted(GraphUser user, Response response)\n {\n if (user != null)\n {\n // publishFeedDialog(session);\n try\n {\n email = user.asMap().get(\"email\").toString();\n WODebug.LogDebug(email);\n }\n catch (Exception e)\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n email=\"\";\n WODebug.LogDebug(email);\n }\n }\n }\n });\n\n }\n else if(session.isClosed())\n {\n WODebug.LogDebug(\"Unable to connect facebook, please try later..\");\n }\n\n }", "@Override\n public void onSuccess(LoginResult loginResult) {\n handleFacebookAccessToken(loginResult.getAccessToken());\n }", "@Override\n public void onSuccess(LoginResult loginResult) {\n handleFacebookAccessToken(loginResult.getAccessToken());\n }", "protected void launchSignIn()\r\n {\r\n \tIntent i = new Intent(this, LoginActivity.class);\r\n \tstartActivity(i);\r\n }", "private void FacebookClick()\n {\n Session session = Session.getActiveSession();\n if (!session.isOpened() && !session.isClosed()) {\n session.openForRead(new Session.OpenRequest(this).setCallback(statusCallback));\n } else {\n Session.openActiveSession(getActivity(), this, true, statusCallback);\n }\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n FacebookSdk.sdkInitialize(context);\n callbackManager = CallbackManager.Factory.create();\n\n try {\n\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestEmail()\n .build();\n\n/* GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestScopes(new Scope(Scopes.EMAIL))\n .requestIdToken(getString(R.string.server_client_id))\n .requestEmail()\n .build();*/\n\n /* GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(this.getResources().getString(R.string.server_client_id))\n .requestEmail().build();*/\n\n mGoogleApiClient = new GoogleApiClient.Builder(context)\n .enableAutoManage(getActivity(), this)\n .addApi(Auth.GOOGLE_SIGN_IN_API, gso)\n .build();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void onSignInSucceeded() {\n\n\t}", "private void performOAuthLogin(View arg) {\n hideKeyboard(arg);\n // Pass the username and password to the OAuth login activity for OAuth login.\n // Once the login is successful, we automatically check in the merchant in the OAuth activity.\n Intent intent = new Intent(LoginScreenActivity.this, OAuthLoginActivity.class);\n intent.putExtra(\"username\", mUsername);\n intent.putExtra(\"password\", mPassword);\n String serverName = mServerName;\n if(null != serverName && serverName.equals(PayPalHereSDK.ControlledSandbox)){\n serverName = PayPalHereSDK.Live;\n }\n intent.putExtra(\"servername\",serverName);\n startActivity(intent);\n\n }", "private void callGraphRequestFb() {\n GraphRequest request = GraphRequest.newMeRequest(\n AccessToken.getCurrentAccessToken(),\n new GraphRequest.GraphJSONObjectCallback() {\n @Override\n public void onCompleted(\n JSONObject object,\n GraphResponse response) {\n\n try {\n if (object != null) {\n String email = \"\";\n HashMap<String, String> data = new HashMap<>();\n if (object.has(\"email\")) {\n email = object.getString(\"email\");\n data.put(\"email\", email);\n }\n\n data.put(\"fb_id\", object.getString(\"id\"));\n// data.put(\"phone\", \"\");\n data.put(\"first_name\", object.getString(\"first_name\"));\n data.put(\"last_name\", object.getString(\"last_name\"));\n//\n data.put(\"device_type\", \"android\");\n data.put(\"device_token\", FirebaseInstanceId.getInstance().getToken());\n\n fbLoginApi(data,object);\n// Intent intent = new Intent(getBaseActivity(), DigitActivity.class);\n// intent.putExtra(Constants.DIGIT_FRAGMENT_KEY, Constants.KEY_FACEBOOK_FRAGMENT);\n// intent.putExtra(\"id\", object.getString(\"id\"));\n// intent.putExtra(\"fname\", object.getString(\"first_name\"));\n// intent.putExtra(\"lname\", object.getString(\"first_name\"));\n// intent.putExtra(\"email\", email);\n// intent.putExtra(\"phone_\")\n\n// startActivity(intent);\n// replaceFragment(FacebookDetailFragment.newInstance(object.getString(\"id\"), object.getString(\"first_name\"), object.getString(\"last_name\"), email));\n\n }\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (Exception e) {\n\n// Utils.showToast(mActivity,\"Problem in fetching data from facebook.\");\n }\n }\n });\n Bundle parameters = new Bundle();\n parameters.putString(\"fields\", \"id,first_name,last_name,email\");\n request.setParameters(parameters);\n request.executeAsync();\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n //facebook login\n// mCallbackManager.onActivityResult(requestCode, resultCode, data);\n\n // Result returned from launching the Intent from GoogleSignInApi.getSignInIntent(...);\n if (requestCode == RC_SIGN_IN) {\n Task<GoogleSignInAccount> task = GoogleSignIn.getSignedInAccountFromIntent(data);\n try {\n // Google Sign In was successful, authenticate with Firebase\n GoogleSignInAccount account = task.getResult(ApiException.class);\n firebaseAuthWithGoogle(account);\n } catch (ApiException e) {\n // Google Sign In failed, update UI appropriately\n Log.w(TAG, \"Google sign in failed\", e);\n // [START_EXCLUDE]\n// updateUI(null);\n // [END_EXCLUDE]\n }\n }\n }", "private void loginWithSocialAccount(SocialLoginForm socialLoginForm) {\n showSnackBarLoading();\n new SocialLoginService(socialLoginForm, new SocialLoginService.InvokeOnCompleteAsync() {\n @Override\n public void onComplete(String token) {\n if (token != null) {\n if (userAccount == null) {\n userAccount = new UserAccount(BaseActivity.this);\n }\n if (userAccount.assignToken(token)) {\n requestCustomerInfo(token);\n }\n }\n }\n\n @Override\n public void onError(Throwable e) {\n logout();\n LoggerHelper.showErrorLog(\"Login Page: \", e);\n Toast.makeText(BaseActivity.this, \"Error: \" + ExceptionUtils.translateExceptionMessage(e), Toast.LENGTH_SHORT).show();\n snackbar.dismiss();\n }\n });\n }", "void signInComplete();", "private void loginFlow() {\n\t\tActiveUserModel userController = ActiveUserModel.getInstance();\n\n\t\tif (userController.isLoggedIn()) {\n\t\t\t// continue\n\t\t} else {\n\t\t\tIntent intent = new Intent(this, LoginActivity.class);\n\t\t\tstartActivityForResult(intent, LOGIN_ACTIVITY);\n\t\t}\n\t}", "private void signIn() {\n mGoogleSignInClient = buildGoogleSignInClient();\n startActivityForResult(mGoogleSignInClient.getSignInIntent(), REQUEST_CODE_SIGN_IN);\n }", "private void handleFacebookAccessToken(AccessToken token) {\n Log.d(TAG, \"handleFacebookAccessToken:\" + token);\n\n AuthCredential credential = FacebookAuthProvider.getCredential(token.getToken());\n mAuth.signInWithCredential(credential)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n\n }\n // If sign in fails, display a message to the user. If sign in succeeds\n // the auth state listener will be notified and logic to handle the\n // signed in user can be handled in the listener.\n if (!task.isSuccessful()) {\n Toast.makeText(FacebookLoginActivity.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "public static void main(String[] args) {\n\n\t\tString url = \"https://en-gb.facebook.com/login/\";\n\t\tSystem.setProperty(\"webdriver.gecko.driver\",\n\t\t\t\t\"E://selenium//workspace//seleniumtuts//Driver//geckodriver.exe\");\n\t\tWebDriver driver = new FirefoxDriver();\n\t\tdriver.get(url);\n\t\tdriver.manage().window().maximize();\n\t\tWebElement emailtext = driver.findElement(By.name(\"email\"));\n\t\temailtext.sendKeys(\"[email protected]\");\n\t\tWebElement pwd = driver.findElement(By.id(\"pass\"));\n\t\tpwd.sendKeys(\"asdf123\");\n\t\temailtext.clear();\n\t\tpwd.clear();\n\t\temailtext.sendKeys(\"[email protected]\");\n\t\tpwd.sendKeys(\"asdf123\");\n\n\t\tWebElement login = driver.findElement(By.id(\"loginbutton\"));\n\t\t// login.click();\n\t\t// login.submit();\n\t\tlogin.sendKeys(Keys.ENTER);\n\n\t\tWebElement signup = driver.findElement(By\n\t\t\t\t.xpath(\"//*[@id='globalContainer']/div[3]/div/div/div/a\"));\n\t\tsignup.click();\n\t}", "private void startSignIn() {\n Intent signInIntent = mGoogleSignInClient.getSignInIntent();\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }", "private void signIn() {\n Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient);\n startActivityForResult(signInIntent, SIGN_IN_CODE);\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tloginWithFacebook();\n\t\t}", "private void signIn() {\n Intent signInIntent = mGoogleSignInClient.getSignInIntent();\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }", "private void signIn() {\n Intent signInIntent = mGoogleSignInClient.getSignInIntent();\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }", "private void signIn() {\n Intent signInIntent = mGoogleSignInClient.getSignInIntent();\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }", "@Override\n\t\t\t\t public void onComplete(Bundle values) {\n\t\t\t\t\t SharedPreferences.Editor editor = mPrefs.edit();\n\t\t\t\t\t editor.putString(\"access_token\",\n\t\t\t\t\t\t\t facebook.getAccessToken());\n\t\t\t\t\t fb_access_token=facebook.getAccessToken();\n\t\t\t\t\t editor.putLong(\"access_expires\",\n\t\t\t\t\t\t\t facebook.getAccessExpires());\n\t\t\t\t\t editor.commit();\n\n\t\t\t\t\t // Making Login button invisible\n\t\t\t\t\t getProfileInformation();\n\t\t\t\t\t //Log.w(\"email\",uEmail);\n\n\n\t\t\t\t }", "private void loginUser(String username, String password) {\n ParseUser.logInInBackground(username, password, new LogInCallback() {\n @Override\n public void done(ParseUser user, ParseException e) {\n if(e != null){\n Log.e(TAG, \"Issue with login: \"+e);\n Toast.makeText(LoginActivity.this, e+\"\", Toast.LENGTH_SHORT);\n return;\n }\n\n linkOneSignalID(ParseUser.getCurrentUser());\n goMainActivity();\n Toast.makeText(LoginActivity.this, \"Success!\", Toast.LENGTH_SHORT);\n }\n });\n }", "public void conectarFacebook() throws Exception{\n Properties props = System.getProperties();\r\n props.put(\"graph.facebook.com.consumer_key\", FACEBOOK_APP_ID);\r\n props.put(\"graph.facebook.com.consumer_secret\", FACEBOOK_APP_SECRET);\r\n // Defina a permissão personalizada, se necessário\r\n props.put(\"graph.facebook.com.custom_permissions\", \r\n \t\t \"public_profile,user_education_history,publish_actions,user_managed_groups\");\r\n // Iniciado componentes necessários\r\n SocialAuthConfig config = SocialAuthConfig.getDefault();\r\n config.load(props); \r\n manager = new SocialAuthManager();\r\n manager.setSocialAuthConfig(config);\r\n \r\n // 'SuccessURL' é a página que você será redirecionado para on login bem-sucedido\r\n ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();\r\n String successURL =\"http://localhost:8081/\"+ externalContext.getRequestContextPath() + \"/pages/public/redirecionaEvent.xhtml\"; \r\n String authenticationURL = manager.getAuthenticationUrl(providerID, successURL);\r\n FacesContext.getCurrentInstance().getExternalContext().redirect(authenticationURL);\r\n displayInfoMessageToUser(\"Cliente logado com facebook no sistema de compras online\");\r\n\t}", "private void linkedinLogin() {\n LISessionManager.getInstance(getApplicationContext()).init(this, buildScope(), new AuthListener() {\n @Override\n public void onAuthSuccess() {\n linkedInLogin.setVisibility(View.GONE);\n btnLogout.setVisibility(View.VISIBLE);\n loginButton.setVisibility(View.GONE);\n fetchLinkedInInfo();\n }\n\n @Override\n public void onAuthError(LIAuthError error) {\n Log.e(TAG, \"onAuthError: \" + error.toString());\n }\n }, true);\n }", "private void startSignIn() {\n Intent intent = AuthUI.getInstance().createSignInIntentBuilder()\n .setIsSmartLockEnabled(!BuildConfig.DEBUG)\n .setAvailableProviders(Arrays.asList(\n new AuthUI.IdpConfig.EmailBuilder().build(),\n new AuthUI.IdpConfig.GoogleBuilder().build()))\n .setLogo(R.mipmap.ic_launcher)\n .build();\n\n startActivityForResult(intent, RC_SIGN_IN);\n }", "@Override\n public void onSuccess(LoginResult loginResult) {\n mloginPresenter.onRegisterCallbackSuccess(mActivity,loginResult);\n// populateObjectFromGraphRequest(loginResult);\n }", "@Override\n public void onSuccess(LoginResult loginResult) {\n getProfileFromFacebook(loginResult.getAccessToken());\n\n }", "public LoginResult login() {\n\t\tif (!auth.isLoggedIn())\n\t\t\treturn LoginResult.MAIN_LOGOUT;\n\n\t\ttry {\n\t\t\tHttpURLConnection conn = Utility.getGetConn(FUND_INDEX);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tArrayList<Cookie> tmpCookies = Cookie.getCookies(conn);\n\t\t\taws = Cookie.getCookie(tmpCookies, \"AWSELB\");\n\t\t\tphp = Cookie.getCookie(tmpCookies, \"PHPSESSID\");\n\t\t\t\n\t\t\tconn = Utility.getGetConn(FUND_LOGIN);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tString location = Utility.getLocation(conn);\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t// TODO: future speed optimization\n\t\t\t//if (auth.getPHPCookie() == null) {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie()));\n\t\t\t\tCookie phpCookie = Cookie.getCookie(Cookie.getCookies(conn), \"PHPSESSID\");\n\t\t\t\t// saves time for Blackboard and retrieveProfileImage().\n\t\t\t\tauth.setPHPCookie(phpCookie);\n\t\t\t\t\n\t\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\t\n\t\t\t\tlocation = Utility.getLocation(conn);\n\t\t\t\tif (location.startsWith(\"signin.aspx\"))\n\t\t\t\t\tlocation = \"https://eraider.ttu.edu/\" + location;\n\t\t\t\tconn = Utility.getGetConn(location);\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\t// might need to set ESI and ELC here. If other areas are bugged, this is why.\n\t\t\t/*} else {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie(), auth.getPHPCookie()));\n\t\t\t\t/// TODO This is in retirevProfileImage, maybe Mobile Login, and Blackboard!!!\n\t\t\t\tthrow new NullPointerException(\"Needs implementation!\");\n\t\t\t}*/\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php?elu=XXXXXXXXXX&elk=XXXXXXXXXXXXXXXX\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/login.php?ticket=ST-...\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/funds_home.php\n\t\t\tlocation = Utility.getLocation(conn);\n\t\t\tif (location.startsWith(\"index.\")) {\n\t\t\t\tlocation = \"https://get.cbord.com/raidercard/full/\" + location;\n\t\t\t}\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tUtility.readByte(conn);\n\t\t} catch (IOException e) {\n\t\t\tTTUAuth.logError(e, \"raiderfundlogin\", ErrorType.Fatal);\n\t\t\treturn LoginResult.OTHER;\n\t\t} catch (Throwable t) {\n\t\t\tTTUAuth.logError(t, \"raiderfundlogingeneral\", ErrorType.APIChange);\n\t\t\treturn LoginResult.OTHER;\n\t\t}\n\n\t\tloggedIn = true;\n\n\t\treturn LoginResult.SUCCESS;\n\t}", "public void signIn()\r\n {\r\n FoodCenterRequestFactory factory = AndroidRequestUtils.getFoodCenterRF(context);\r\n ClientServiceRequest service = factory.getClientService();\r\n\r\n service.login(regId).fire(this);\r\n }", "private void startSignIn() {\n\n Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient);\n startActivityForResult(signInIntent, RES_CODE_SIGN_IN);\n }", "public String ssoFacebook() throws InterruptedException {\n this.scrollBy(signupFacebook);\n helperMethods.waitForWebElementToBeInteractable(signupFacebook,30);\n\n signupFacebook.click();\n ssoSubscribeCheck.click();\n ssoTermsCheck.click();\n submitSSO.click();\n while (!helperMethods.waitForPageToLoad()) {\n helperMethods.waitForPageToLoad();\n }\n //Since we are navigating to third party adding thread.sleep\n Thread.sleep(7000);\n return webDriver.getTitle();\n }", "private void firebaseAuthLogin() {\n startActivityForResult(AuthUI.getInstance()\n .createSignInIntentBuilder()\n .setAvailableProviders(getProvider())\n .setLogo(R.drawable.logo_login)\n .setTheme(R.style.LoginTheme)\n .setIsSmartLockEnabled(false)\n .setTosAndPrivacyPolicyUrls(\n \"https://www.freeprivacypolicy.com/privacy/view/3ccea0b97b785480095259db0c31569d\",\n \"https://www.freeprivacypolicy.com/privacy/view/3ccea0b97b785480095259db0c31569d\")\n .build(), REQUEST_CODE_LOGIN);\n }", "@Override\n\t\t\t public void onCompleted(GraphUser user, Response response) \n\t\t\t {\n\t\t\t // TODO Auto-generated method stub\n\t\t\t if (user != null) \n\t\t\t {\n\t\t\t Log.e(\"session\",\"if open user\");\n\t\t\t try\n\t\t\t {\n\t\t\t \tstrFacebookEmail=user.asMap().get(\"email\").toString();\n\t\t\t\t\tLog.e(\"email\",\"hi\"+strFacebookEmail);\n\t\t\t\t\tstrFacebookName=user.getName();\n\t\t\t\t\tLog.e(\"name\",strFacebookName);\n\t\t\t\t\tstrFacebookId=user.getId();\n\t\t\t\t\tLog.e(\"fbid\",strFacebookId);\n\t\t\t\t\n\t\t\t\t\t \tstrFacebookProfilePic= \"http://graph.facebook.com/\"+strFacebookId+\"/picture?type=large\";\n\t\t\t\t\t\tprofilepicture=strFacebookProfilePic.replaceAll(\" \",\"%20\").trim();\n\t\t\t\t\t\n\t\t\t\t\t\tLog.e(\"profilepic\",strFacebookProfilePic);\n\t\t\t\t\t\t\n\t\t\t\t\t\tfirstname=user.getFirstName();\n\t\t\t\t\t\tlastname=user.getLastName();\n\t\t\t\t\t\t\n\t\t\t\t\t\tLog.e(\"firstname\",firstname);\n\t\t\t\t\t\tLog.e(\"lastname\",lastname);\n\t\t\t\t\t\t\n\t\t\t\t\t\t mPrefs = PreferenceManager.getDefaultSharedPreferences(LoginScreenActivity.this);\n\t\t\t\t\t SharedPreferences.Editor editor = mPrefs.edit();\n\t\t\t\t\t editor.putString(\"email\",strFacebookEmail);\n\t\t\t\t\t \t editor.putString(\"access_token\",strAccesstoken);\n\t\t\t\t\t editor.putString(\"facebookid\",strFacebookId);\n\t\t\t\t\t editor.putString(\"profilepic\",strFacebookProfilePic);\n\t\t\t\t\t editor.putString(\"username\",strFacebookName);\n\t\t\t\t\t editor.putString(\"firstname\",firstname);\n\t\t\t\t\t editor.putString(\"lastname\",lastname);\n\t\t\t\t\t editor.putString(\"checkvalue\",\"2\");\n\t\t\t\t\t editor.commit();\n\t \n\t\t\t\t\t new LoginFacebook().execute();\n\t\t\t\t\t }\n\t\t\t catch(Exception e)\n\t\t\t {\n\t\t\t \te.printStackTrace();\n\t\t\t }\n\t\t\t \n\t\t\t \n\t\t\t }\n\t\t\t \n\t\t\t // Check for publish permissions \n\t\t\t \n\t\t\t \n\t\t\t }", "public static boolean checkUserFBLogin() {\n\t\tboolean isFbLogin = Pref.getBoolean(\n\t\t\t\tGeneralClass.temp_iUserFaceBookBLOGIN, false);\n\t\t// Log.e(\"is facebook login\", \"---->\" + isFbLogin);\n\t\t// if (isloginShare && isFbLogin) {\n\t\t// return false;\n\t\t// } else {\n\t\tif (isFbLogin) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t\t// }\n\t}", "private void signIn() {\n Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient);\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }", "private void signIn() {\n Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient);\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }", "private void signIn() {\n Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient);\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }", "private void signIn() {\n Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient);\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n \n setContentView(R.layout.registration);\n \n //mAsyncRunner = new AsyncFacebookRunner(facebook);\n \n tvSignIn = (TextView)findViewById(R.id.tv_choose_sign_in);\n tvSignUp = (TextView)findViewById(R.id.tv_choose_sign_up);\n edtUserName = (EditText)findViewById(R.id.edt_user_name);\n edtEmail = (EditText)findViewById(R.id.edt_email_id);\n edtPhone = (EditText)findViewById(R.id.edt_phone);\n edtPassword = (EditText)findViewById(R.id.edt_password);\n \n llSocial = (LinearLayout)findViewById(R.id.ll_social);\n btnSignUp = (Button)findViewById(R.id.btn_register);\n btnGoogle = (Button)findViewById(R.id.btn_google);\n btnFacebook = (Button)findViewById(R.id.btn_facebook_login);\n \n tvSignIn.setOnClickListener(this);\n tvSignUp.setOnClickListener(this);\n btnSignUp.setOnClickListener(this);\n btnGoogle.setOnClickListener(this);\n btnFacebook.setOnClickListener(this);\n \n /* mGoogleApiClient = new GoogleApiClient.Builder(this).addConnectionCallbacks(this)\n \t\t.addOnConnectionFailedListener(this).addApi(Plus.API, Plus.PlusOptions.builder().build())\n \t\t.addScope(Plus.SCOPE_PLUS_LOGIN).build();*/\n \t\n }", "private void initFBGithubLogIn() {\n AuthCredential credential = GithubAuthProvider.getCredential(GITHUB_TOKEN);\n mFirebaseAuth.signInWithCredential(credential)\n .addOnCompleteListener(AuthenticationFragment.this.getActivity(), new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n String message;\n if (task.isSuccessful()) {\n message = \"success firebaseAuthWithGithub\";\n } else {\n message = \"fail firebaseAuthWithGithub\";\n }\n mGithubLogInTextView.setText(message);\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n mGithubLogInTextView.setText(e.getMessage());\n e.printStackTrace();\n }\n });\n }", "@Override\n public void onSuccess(LoginResult loginResult) {\n GraphRequest request = GraphRequest.newMeRequest(loginResult.getAccessToken(),\n new GraphRequest.GraphJSONObjectCallback() {\n @Override\n public void onCompleted(JSONObject object, GraphResponse response) {\n try{\n email = object.getString(\"email\");\n name = object.getString(\"name\");\n\n } catch (JSONException ex) {\n ex.printStackTrace();\n Log.e(\"error\",ex.getMessage());\n }\n CheckUserOnPArse();\n\n }\n });\n Bundle parameters = new Bundle();\n parameters.putString(\"fields\",\"id,name,email\");\n request.setParameters(parameters);\n request.executeAsync();\n }" ]
[ "0.76683325", "0.7620511", "0.7459444", "0.74081707", "0.7224935", "0.7007838", "0.700546", "0.69661117", "0.6944521", "0.67389417", "0.67175514", "0.668798", "0.6648798", "0.661483", "0.65620303", "0.6550535", "0.65359426", "0.6474437", "0.6469395", "0.6448327", "0.6446801", "0.64204246", "0.64155805", "0.6390636", "0.6359667", "0.63127923", "0.63045776", "0.62666774", "0.6262927", "0.6200045", "0.6198103", "0.6192481", "0.61734533", "0.6161883", "0.61503774", "0.610444", "0.6099531", "0.60717475", "0.60717475", "0.6065276", "0.6062053", "0.605877", "0.6050341", "0.603851", "0.6037068", "0.60229033", "0.599872", "0.59906054", "0.5941617", "0.59399086", "0.59328645", "0.593025", "0.5927772", "0.59249544", "0.59067774", "0.5893816", "0.5890753", "0.58749014", "0.5862543", "0.5862543", "0.5856849", "0.58347267", "0.5834364", "0.5818973", "0.58071965", "0.58029497", "0.580274", "0.57725716", "0.5772125", "0.57566524", "0.575348", "0.5746834", "0.5744069", "0.5742143", "0.57338184", "0.5720173", "0.57108855", "0.57108855", "0.57108855", "0.5703412", "0.57025546", "0.5696867", "0.5696795", "0.56930614", "0.5693053", "0.568101", "0.56792504", "0.5676453", "0.56758744", "0.5671948", "0.566791", "0.56657463", "0.56636", "0.56494826", "0.56494826", "0.56494826", "0.56494826", "0.56433386", "0.56332225", "0.5630576" ]
0.6171208
33
onPostExecute displays the results of the AsyncTask.
@Override protected void onPostExecute(String result) { //Toast.makeText(OTPActivity.this, result.toString(), Toast.LENGTH_LONG).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void onPostExecute() {\n }", "protected void onPostExecute() {\r\n\t}", "protected void onPostExecute() {\n }", "protected void onPostExecute() {\n }", "@Override\n protected void onPostExecute(String result) {\n // tvResult.setText(result);\n }", "protected void onPostExecute(Void v) {\n\n }", "protected void onPostExecute(Void v) {\n\n }", "@Override\n protected void onPostExecute(String result) {\n }", "@Override\n\t protected void onPostExecute(String result) {\n\t }", "protected void onPostExecute(String resultado) {\n\t\t\ttextView.setText(\"\");\n\t\t\ttextView.setTextColor(Color.BLACK);\n\t\t\ttextView.setText(getString(R.string.main_1) +\"\\n\"+ getString(R.string.visit_final)+\"\\n\"+ getString(R.string.code)+ \" \"+ getString(R.string.participant)+ \": \"+partCaso.getParticipante().getParticipante().getCodigo());\n\t\t\tmVisitaFinalCasoAdapter = new VisitaFinalCasoAdapter(getApplication().getApplicationContext(), R.layout.complex_list_item, mVisitaFinalCaso);\n\t\t\tsetListAdapter(mVisitaFinalCasoAdapter);\n\t\t\tdismissProgressDialog();\n\t\t}", "protected void onPostExecute(String result) {\n }", "@Override\n protected void onPostExecute(Void result) {\n // This is where we would process the results if needed.\n this.progressDialog.dismiss();\n }", "protected void onPostExecute(Void v) {\n }", "@Override\n protected void onPostExecute(String result) {\n\n }", "@Override\n protected void onPostExecute(String result) {\n\n }", "@Override\n protected void onPostExecute(String result) {\n }", "@Override\n protected void onPostExecute(String result) {\n }", "@Override\n protected void onPostExecute(String result) {\n }", "protected void onPostExecute(Void v) {\n\n\n }", "@Override\n protected void onPostExecute(String result) {\n if (result.equals(\"SUCCESS\")) {\n\n }\n // Do things like hide the progress bar or change a TextView\n }", "protected void onPostExecute(Integer results) {\r\n\r\n\t\t\t// StatusTextView.setText(\"Map: \" + results);\r\n\t\t\tuiUpdate();\r\n\r\n\t\t}", "@Override\n protected void onPostExecute(String result) {\n tvContenidoTarea.setText(result); // txt.setText(result);\n // might want to change \"executed\" for the returned string passed\n // into onPostExecute() but that is upto you\n }", "protected void onPostExecute(Void result) {\n }", "protected void onPostExecute(String result) {\r\n\r\n\t\t}", "protected void onPostExecute(Long result) {\n\t\t\t USCG_QuestionsActivity.this.setContentView(R.layout.activity_uscg__questions);\r\n\t\t // Show the question and answers\r\n\t\t\t showQuesAndAnswers();\r\n\t\t }", "@Override\n protected void onPostExecute(Void result) {\n\n }", "protected void onPostExecute(String result){\n }", "protected void onPostExecute(String resultado) {\n dismissProgressDialog();\n showResult(resultado);\n }", "protected void onPostExecute(String resultado) {\n dismissProgressDialog();\n showResult(resultado);\n }", "@Override\n\t\tprotected void onPostExecute(Boolean result) {\n\t\t\tshowResult(result);\n\t\t}", "public void onPostExecute(Result result) {\n }", "public void onPostExecute(Result result) {\n }", "public void onPostExecute(Result result) {\n }", "@Override\r\n protected void onPostExecute(String result) {\n\r\n }", "@Override\n\t protected void onPostExecute(String result) \n\t {\n\t \tmHandler.post(updateList);\n\t \t\n\t //mProgress.setVisibility(View.GONE);\n\n\t }", "@Override protected void onPostExecute(String returnVal) {\r\n //Print the response code as toast popup \r\n //android.widget.Toast.makeText(\r\n // mContext, \"[myAsyncTask.onPostExecute] Response: \" + returnVal,\r\n // android.widget.Toast.LENGTH_LONG\r\n //).show();\r\n if (gHandlers != null) gHandlers.onPostExecute(returnVal);\r\n }", "@Override\n protected void onPostExecute(Void aVoid) {\n }", "@Override\n protected void onPostExecute(List<Parkingspot> result){\n\n if(result != null) {\n for (Parkingspot parkingspot : result) {\n Log.i(TAG, \"Address: \" + parkingspot.getAddress() + \" Location: \"\n + parkingspot.getLocation());\n\n }\n }\n }", "@Override\r\n\t\tprotected void onPostExecute(Void result) \r\n\t\t{\n\t\t}", "@Override\n protected void onPostExecute(Void result) {\n super.onPostExecute(result);//Run the generic code that should be ran when the task is complete\n onCompleteListener.onAsyncTaskComplete(result);//Run the code that should occur when the task is complete\n }", "@Override\r\n protected void onPostExecute(String result) {\n\r\n }", "protected void onPostExecute(String args) {\r\n\t\t\thideLoading();\r\n\t\t\tListItemAdapter adapter = new ListItemAdapter(\r\n\t\t\t\t\tMyChannelsTabletActivity.this, R.layout.my_channels_item_tablet,\r\n\t\t\t\t\tchannels);\r\n\t\t\t// updating listview\r\n\t\t\tgvChannel.setAdapter(adapter);\r\n\t\t\tif(channels.size()==0){\r\n\t\t\t\tToast.makeText(getApplicationContext(), \"No results\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\t\t}", "@Override\r\n\t\tprotected void onPostExecute(Void result)\r\n\t\t{\n\t\t}", "protected void onPostExecute(String result) {\n\t\t\t\t\tquestions = SiQuoiaJSONParser.parseLeaderboard(result);\n\t\t\t\t\t\n\t\t\t\t\t//sets my listAdapter to the list\n\t\t\t leaderboardAdapter = new SiQuoiaLeaderboardAdapter(SiQuoiaLeaderboardActivity.this,R.layout.leaderboard_list,questions);\n\t\t\t leaderboardList = (ListView) findViewById(R.id.leaderboardList);\n\t\t\t leaderboardList.setAdapter(leaderboardAdapter); \n\t\t\t\t\t\n\t\t\t\t\t//close progress dialog\n\t\t\t\t\tprogressBar.dismiss();\n\t\t\t}", "@Override\n\tprotected void onPostExecute(String result) {\n\t\tsuper.onPostExecute(result);\n\t\t\n\t}", "@Override\n\tprotected void onPostExecute(String result) {\n\t\tLog.d(TAG, result);\n\t}", "protected void onPostExecute (String result) \n\t{\n\t\t\n\t\tif(result == null)\n\t\t{\n\t\t\t\n\t\t\tLog.e(\"post execution \", \"result null\");\n\t\t\t//ThreadClassForHttpRequest http = new ThreadClassForHttpRequest(view, txt_titles, txt_links, txt_path, frameAnimation);\n\t\t\t//http.execute(parameters);\n\t\t\tToast.makeText(context, \"Yahoo Response Failure\", Toast.LENGTH_LONG).show();\n\t\t\tframeAnimation.stop();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tframeAnimation.stop();\n\t\tfor(int i=0; i<9; i++)\n\t\t{\n\t\t\tview[i].setImageBitmap(pic[i]);\n\t\t}\n\t\t\n\t\ttxt_links.setText(allLinks);\n\t\ttxt_titles.setText(allTitles);\n\t\tString path;\n\t\tpath = txt_path.getText().toString();\n\t\t\n\t\tpath = path + \"-->#\" + parameters[0] + \"#\" + parameters[1];\n\t\t\n\t\ttxt_path.setText(path);\n\t\t\n\t\t//Log.e(\"thread titles\", allTitles);\n\t\t\n\t}", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tpdia.dismiss();\n\t\t\tif (result.equals(\"success\")) {\n\t\t\t\t//lvFeed = (ListView) findViewById(R.id.lvFeed);\n\t\t\t\t//lvFeed.setAdapter(new FeedAdapter(mContext, mActivity, feedContent));\n\t\t\t} else\n\t\t\t\tToast.makeText(mContext, result, Toast.LENGTH_SHORT).show();\n\t\t\tsuper.onPostExecute(result);\n\t\t}", "@Override\r\n\tprotected void onPostExecute(String result) {\n\t\tsuper.onPostExecute(result);\r\n\t}", "@Override\n protected void onPostExecute(String result) {\n Log.i(\"this is the result\", \"HULA\");\n //Do anything with response..\n }", "@Override\n protected void onPostExecute(String s) {\n super.onPostExecute(s);\n dialog.dismiss(); // to stop showing the progressbar After process is completed\n tvResult.setText(s);\n tvResult.setVisibility(View.VISIBLE);\n Toast.makeText(MainActivity.this, \"Process Done\", Toast.LENGTH_SHORT).show();\n\n }", "@Override\n protected void onPostExecute(String result) {\n temptext.setText(result+data);\n }", "@Override\n protected void onPostExecute(String result) {\n if(dialog.isShowing())\n {\n dialog.dismiss();\n }\n //Check to see if the result is null. If it is not then we know we got some data back and can display it to the user.\n if(result!=null)\n {\n lyrics.setText(result);\n }\n //Something went wrong and we can display a toast to the user detailing this.\n else\n {\n Toast.makeText(getApplicationContext(), \"Unable to get lyrics\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n // below method will run when service HTTP request is complete, will then bind tweet text in arrayList to ListView\n protected void onPostExecute(String strFromDoInBg) {\n ListView list = (ListView)findViewById(R.id.tweetList);\n ArrayAdapter<String> tweetArrayAdapter = new ArrayAdapter<String>(Tweets.this, android.R.layout.simple_expandable_list_item_1, items);\n list.setAdapter(tweetArrayAdapter);\n }", "protected void onPostExecute(Void result) {\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n ReadWordDataBase();\n DisplayList();\n }", "@Override\n\t\t protected void onPostExecute(Void result) {\n\t\t \t\n\t\t super.onPostExecute(result); \n\t\t }", "@Override\n protected void onPostExecute(String result) {\n// Toast.makeText(getBaseContext(), \"Data Sent!\", Toast.LENGTH_LONG).show();\n }", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\tif (result != null) {\n\t\t\t\tToast.makeText(getActivity(), \"Tai thanh cong!\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t} else {\n\t\t\t\tToast.makeText(getActivity(), \"That bai\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t.show();\n\t\t\t}\n\t\t\ttoggleShowProgressDialog(false);\n\t\t}", "@Override\n\tprotected void onPostExecute(Void result) {\n\t\tsuper.onPostExecute(result);\n\t\tstatus.setText(debug);\n\t}", "@Override\r\n\tprotected void onPostExecute(String result)\r\n\t{\r\n\t\tprogress.dismiss();\r\n\t\tsuper.onPostExecute(result);\r\n\t}", "protected void onPostExecute(String file_url) {\n // dismiss the dialog after getting all products\n pDialog.dismiss();\n // updating UI from Background Thread\n\n Emp = (TextView) findViewById(R.id.empresa);\n cal = (TextView) findViewById(R.id.calle);\n num = (TextView) findViewById(R.id.Numero);\n ciu = (TextView) findViewById(R.id.ciudad);\n prov = (TextView) findViewById(R.id.provincia);\n prob = (TextView) findViewById(R.id.problema);\n\n\n\n Emp.setText(empresa);\n cal.setText(calle);\n num.setText(numero);\n ciu.setText(ciudad);\n prov.setText(provincia);\n prob.setText(problema);\n\n\n\n\n }", "@Override\r\n\tprotected void onPostExecute(String result) {\r\n\t\tprogressDialog.setMessage(\"Finalizado!\");\r\n\t\t// fecha o dialog\r\n\t\tprogressDialog.dismiss();\r\n\t\tsuper.onPostExecute(result);\r\n\t}", "protected void onPostExecute(Long result) {\n\t }", "@Override\n\t\tprotected void onPostExecute(Void result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t}", "@Override\n\t\tprotected void onPostExecute(Void result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t}", "@Override\n protected void onPostExecute(Void result) {\n listview = (ListView) findViewById(R.id.listview);\n // Pass the results into an ArrayAdapter\n adapter = new ArrayAdapter<String>(ClientsFromEntrenadorSuperAdmin.this,\n R.layout.item);\n // Retrieve object \"name\" from Parse.com database\n for (ParseObject clients : ob) {\n adapter.add((String) clients.get(\"Nom\") + \" \" + clients.get(\"Cognom\"));\n }\n // Binds the Adapter to the ListView\n listview.setAdapter(adapter);\n // Close the progressdialog\n mProgressDialog.dismiss();\n // Capture button clicks on ListView items\n }", "@Override\n\tpublic void onTaskPostExecute() {\n\t\tLog.i(TAG, \"post executing\");\n\t\tupdateAdapter();\n\t\tspinner.setVisibility(View.GONE);\n\t\tlistView.setVisibility(View.VISIBLE);\n\t\tlistView.onLoadMoreComplete();\n\t}", "@Override\n protected void onPostExecute(String result) {\n Gson gson = new Gson(); //iz Jsona napravi objekte unutar jave\n ArhivaRoot arhivaRoot = gson.fromJson(result, ArhivaRoot.class);\n\n textView.setText(joinRows(arhivaRoot.getRows()));\n mProgressDialog.dismiss();\n }", "protected void onPostExecute(Void v) {\n Log.v(\"Result\",response);\n }", "@Override\r\n protected void onPostExecute(Void result) {\n\r\n }", "@Override\n\t\t\tprotected void onPostExecute(Void result) {\n\t\t\t\tsuper.onPostExecute(result);\n\t\t\t}", "@Override\n\t\t\tprotected void onPostExecute(Void result) {\n\t\t\t\tsuper.onPostExecute(result);\n\t\t\t}", "@Override\n protected void onPostExecute(String result) {\n con.findViewById(R.id.progressBarr).setVisibility(View.INVISIBLE);\n if(result==null){Toast.makeText(con, \"ERROR! text ansver is null\", Toast.LENGTH_LONG).show(); return;}\n // Toast.makeText(getBaseContext(),result,Toast.LENGTH_SHORT).show();\n setMyScroll(result);\n\n }", "@Override\n\t \t\tprotected void onPostExecute(Void result) {\n\t \t\t\tlistView.setVisibility(View.INVISIBLE);\n\t \t\t\tToast.makeText(getActivity(),\n\t \t\t\t\t\tgetResources().getString(R.string.saved),\n\t \t\t\t\t\tToast.LENGTH_LONG).show();\n\t \t\t\tupdate.setVisibility(View.VISIBLE);\n\t \t\t\tupdate.setText(getResources().getString(R.string.saved));\n\t \t\t\tmProgressDialog.dismiss();\n\t \t\t}", "protected void onPostExecute(String file_url) {\n\t\t\tpDialog.dismiss();\r\n\t\t\tTextView[] tv = new TextView[3];\r\n\t\t\ttv[0] = (TextView) v.findViewById(R.id.UserName);\r\n\t\t\ttv[1] = (TextView) v.findViewById(R.id.UserSex);\r\n\t\t\ttv[2] = (TextView) v.findViewById(R.id.Userlocation);\r\n\t\t\t// for(int i=0;i<memberlist.size();i++)\r\n\t\t\t// {\r\n\t\t\t// tv[i].setText(memberlist.get(i).toString());\r\n\t\t\t// }\r\n\t\t\tfor (HashMap<String, String> map : memberlist) {\r\n\t\t\t\tObject tagNickName = map.get(TAG_NICKNAME);\r\n\t\t\t\tObject tagSex = map.get(TAG_SEX);\r\n\t\t\t\tObject tagAddress = map.get(TAG_ADDRESS);\r\n\t\t\t\ttv[0].setText(tagNickName.toString());\r\n\t\t\t\ttv[1].setText(tagSex.toString());\r\n\t\t\t\ttv[2].setText(tagAddress.toString());\r\n\t\t\t}\r\n\r\n\t\t\t// updating UI from Background Thread\r\n\r\n\t\t}", "protected void onPostExecute(String result) {\n onTaskCompleted(result,jsoncode);\n }", "@Override\n protected void onPostExecute(String s) {\n\n\n mainInterface.onResultsFound(pokemons);\n }", "public void onPostExecute(ArrayList<String> predictions) {\n \t\t\trouteViewProgressBar.setVisibility(View.INVISIBLE);\n \n \t\t\tif (predictions.size() == 1 && predictions.get(0).equals(\"-1\")) {\n \t\t\t\tToast.makeText(ctx, \"Error, Server Down?\", Toast.LENGTH_LONG)\n \t\t\t\t\t\t.show();\n \t\t\t\tpredictions.clear();\n \t\t\t}\n \n \t\t\tif (predictions.size() == 0 || predictions.get(0).equals(\"error\")) {\n \t\t\t\tfirstArrival.setText(\"--\");\n \t\t\t\tsecondArrival.setText(\"\");\n \t\t\t\tthirdArrival.setText(\"\");\n \t\t\t\tfourthArrival.setText(\"\");\n \n \t\t\t} else {\n \t\t\t\tfirstArrival.setText(predictions.get(0).toString());\n \t\t\t\tif (predictions.size() > 1)\n \t\t\t\t\tsecondArrival.setText(predictions.get(1).toString());\n \t\t\t\telse\n \t\t\t\t\tsecondArrival.setText(\"\");\n \t\t\t\tif (predictions.size() > 2)\n \t\t\t\t\tthirdArrival.setText(predictions.get(2).toString());\n \t\t\t\telse\n \t\t\t\t\tthirdArrival.setText(\"\");\n \t\t\t\tif (predictions.size() > 3)\n \t\t\t\t\tfourthArrival.setText(predictions.get(3).toString());\n \t\t\t\telse\n \t\t\t\t\tfourthArrival.setText(\"\");\n \t\t\t}\n \t\t}", "public void onPostExecute(String fromDoInBackground){\n CovAdt.notifyDataSetChanged();\n pb.setVisibility(View.INVISIBLE);\n }", "@Override\r\n\t protected void onPostExecute(String result) {\r\n\t super.onPostExecute(result);\r\n\t \r\n\t ParserTask parserTask = new ParserTask();\r\n\t \r\n\t // Invokes the thread for parsing the JSON data\r\n\t parserTask.execute(result);\r\n\t }", "protected void onPostExecute(String result) {\n showOpinionCreatedMessage(Integer.parseInt(result));\n }", "protected void onPostExecute(Long result) {\n }", "protected void onPostExecute(Long result) {\n }", "protected void onPostExecute(Long result) {\n\t\t}", "protected void onPostExecute(String res) {\n\t\t super.onPostExecute(res);\r\n\t\t \r\n\r\n\t\t try {\r\n\t\t\t JSONObject responseObject = json.getJSONObject(\"responseData\");\r\n\t\t\t JSONArray resultArray = responseObject.getJSONArray(\"results\");\r\n\r\n\t\t\t // listImages = getImageList(resultArray);\r\n\t//\t\t SetListViewAdapter(listImages);\r\n\t\t } catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t }", "@Override\n\t\tprotected void onPostExecute(Void result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\t\n\t\t\tbtnListaj.setVisibility(View.VISIBLE);\n\t\t\tbtnDodadi.setVisibility(View.VISIBLE);\n\t\t\t\n\t\t\tpb=(ProgressBar) findViewById(R.id.pbLoading);\n\t\t\tpb.setVisibility(View.INVISIBLE);\n\t\t\t\n\t\t\tString jsonResponse=GetAllMestaTask.entityToString(response.getEntity());\n\t\t\t\n\t\t\tKategorija.kategorii=fromJSONtoKategorija(jsonResponse);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tif (mpProgress.isShowing())\n\t\t\t\tmpProgress.dismiss();\n\t\t\tsuper.onPostExecute(result);\n\t\t\tif (result != null) {\n\n\t\t\t\t// Toast.makeText(mContext, \"Response-\"+result, 1000).show();\n\t\t\t\t// System.out.println(\"Response=\"+result);\n\t\t\t\tFragment_Tickets.imgButtonOpen.performClick();\n\n\t\t\t} else {\n//\t\t\t\tToast.makeText(mContext, \"No response from server\", 1000).show();\n//\t\t\t\tSystem.out.println(\"No response from server\");\n\t\t\t}\n\t\t}", "protected void onPostExecute(List<Opinion> result) {\n if (result.size() == 0) {\n showEmptyListMessage();\n } else {\n // seleccionamos el listView\n ListView lv = (ListView) findViewById(R.id.aOpinionListViewOpinion);\n\n // cogemos los datos con el ListSearchAdapter y los mostramos\n ListOpinionAdapter customAdapter = new ListOpinionAdapter(getApplication(), R.layout.activity_opinion_item, result);\n lv.setAdapter(customAdapter);\n }\n }", "@SuppressWarnings(\"unchecked\")\n\t\t@Override\n\t\tprotected void onPostExecute(Object result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\tprogressLayout.setVisibility(View.GONE);\n\t\t\ttextDescription.setText(videoDescription);\n\n\t\t}", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\tif (m_notifArray.size() > 0 && m_notifArray != null) {\n\t\t\t\tm_tvNoData.setVisibility(View.INVISIBLE);\n\t\t\t\tm_lvList.setVisibility(View.VISIBLE);\n\t\t\t\tm_notifAdapter = new NotificationListAdapter(m_context,\n\t\t\t\t\t\tm_notifArray);\n\t\t\t\tm_lvList.setAdapter(m_notifAdapter);\n\t\t\t} else {\n\n\t\t\t\tm_lvList.setVisibility(View.INVISIBLE);\n\t\t\t\tm_tvNoData.setText(result);\n\t\t\t\tm_tvNoData.setVisibility(View.VISIBLE);\n\n\t\t\t}\n\t\t\tm_progDialog.dismiss();\n\t\t}", "@Override\n protected void onPostExecute(String result){\n ParserTask parserTask = new ParserTask(viewHolder);\n\n // Start parsing the Google places in JSON format\n // Invokes the \"doInBackground()\" method of ParserTask\n parserTask.execute(result);\n }", "@Override\n protected void onPostExecute(String result) {\n Log.i(TAG, \"STATUS IS: \" + result);\n }", "@Override\n\t\t\t\tprotected void onPostExecute(Void result)\n\t\t\t\t{\n\t\t\t\t\tsuper.onPostExecute(result);\n\t\t\t\t}", "@Override\n protected void onPostExecute(final Void unused) {\n super.onPostExecute(unused);\n Log.i(\"Dict\", \"Done processing\");\n delegate.processFinish(result);\n }", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tpdia.dismiss();\n\t\t\tif (result.equals(\"success\")) {\n\t\t\t\tViewPagerAdapter adapter = new ViewPagerAdapter(mContext, mActivity, circle_names, circle_urls );\n\t\t\t ViewPager pager = \n\t\t\t (ViewPager)findViewById( R.id.viewpager );\n\t\t\t TitlePageIndicator indicator = \n\t\t\t (TitlePageIndicator)findViewById( R.id.titles );\n\t\t\t pager.setAdapter( adapter );\n\t\t\t pager.setCurrentItem(1);\n\t\t\t indicator.setViewPager( pager );\n\t\t\t} else {\n\t\t\t\tToast.makeText(mContext, result, Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\tsuper.onPostExecute(result);\n\t\t}", "@Override\n\tprotected void onPostExecute() {\n\n\t\tprogressDialog.dismiss();\n\n\t\ttry {\n\n\t\t\tgetResult();\n\n\t\t\tif (completionListener != null) {\n\t\t\t\tcompletionListener.onDownloadAllDataComplete(true);\n\t\t\t}\n\n\t\t} catch (Exception error) {\n\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(context);\n\t\t\tbuilder.setTitle(string.error)\n\t\t\t\t\t.setMessage(context.getString(string.datasync_dialog_cantsync) + error.getMessage())\n\t\t\t\t\t.setCancelable(false).setPositiveButton(string.ok, new DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tif (completionListener != null) {\n\t\t\t\t\t\t\t\tcompletionListener.onDownloadAllDataComplete(false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}).show();\n\t\t}\n\n\t}", "@Override\n protected void onPostExecute(String result) {\n\n try {\n // To display message after response from server\n if (!result.contains(\"ERROR\")) {\n if (responseJSON.equalsIgnoreCase(\"success\")) {\n db.open();\n db.Update_OutletExpenseIsSync();\n db.close();\n }\n if (common.isConnected()) {\n AsyncOutletSaleWSCall task = new AsyncOutletSaleWSCall();\n task.execute();\n }\n } else {\n if (result.contains(\"null\"))\n result = \"Server not responding.\";\n common.showAlert(StockAdjustmentList.this, result, false);\n common.showToast(\"Error: \" + result);\n }\n } catch (Exception e) {\n common.showAlert(StockAdjustmentList.this,\n \"Unable to fetch response from server.\", false);\n }\n\n Dialog.dismiss();\n }", "@Override\n protected void onPostExecute(String result) {\n super.onPostExecute(result);\n\n ParserTask parserTask = new ParserTask();\n\n // Invokes the thread for parsing the JSON data\n parserTask.execute(result);\n mProgressDialog.dismiss();\n }", "@Override\r\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\r\n\t\t\tshowtalk.setText(result);\r\n\t\t}", "protected void onPostExecute(String results) {\n\t\t\tUserFindActivity.this.parsePopulateListView(results);\n\t\t\treturn;\n\t\t}" ]
[ "0.7651127", "0.763166", "0.7599322", "0.7599322", "0.75031227", "0.74831414", "0.74831414", "0.74690646", "0.74653816", "0.74447536", "0.74430203", "0.7422712", "0.7398446", "0.7394379", "0.7394379", "0.7392048", "0.7392048", "0.7392048", "0.73781794", "0.7376524", "0.7367543", "0.7345909", "0.7343637", "0.73430413", "0.72903115", "0.72809315", "0.7275768", "0.7268136", "0.7268136", "0.7265977", "0.72550464", "0.72550464", "0.72550464", "0.7246723", "0.7243694", "0.72314924", "0.7217736", "0.72120017", "0.7202108", "0.7197931", "0.71956044", "0.71919924", "0.71879053", "0.71810836", "0.7166394", "0.7148706", "0.713666", "0.7132282", "0.71302193", "0.7126791", "0.71206445", "0.7113475", "0.7101242", "0.7096119", "0.70769036", "0.70638794", "0.7063813", "0.7036834", "0.70101744", "0.7005521", "0.69937253", "0.69929355", "0.6992083", "0.6980168", "0.6980168", "0.6970945", "0.69703394", "0.69640875", "0.6963564", "0.6961088", "0.695389", "0.695389", "0.6951478", "0.6937249", "0.6933537", "0.6930683", "0.69273126", "0.6916927", "0.69088185", "0.690609", "0.69024897", "0.68963397", "0.68963397", "0.68939495", "0.68895715", "0.6878001", "0.68697876", "0.68592614", "0.68588215", "0.6858781", "0.68535274", "0.68535244", "0.68477595", "0.684649", "0.6839248", "0.683368", "0.68251574", "0.68177456", "0.6814002", "0.6807019" ]
0.70349705
58
onPostExecute displays the results of the AsyncTask.
@Override protected void onPostExecute(String result) { // Toast.makeText(OTPActivity.this, result.toString(), Toast.LENGTH_LONG).show(); if(result.length() > 0) { try { progressDialog.dismiss(); JSONObject jsonObject = new JSONObject(result); if((jsonObject.getString("InsertOTPResult").equals(""))) { usm.editor.putString(usm.KEY_OTP_ID, jsonObject.getString("InsertOTPResult")); usm.editor.putBoolean(usm.KEY_IS_USER_LOGIN, true); usm.editor.commit(); gotoProfileActivity(); } else { btnSubmit_OTP.setEnabled(true); // Toast.makeText(OTPActivity.this, getResources().getString(R.string.OTP_sbm_err), Toast.LENGTH_SHORT).show(); Typeface myAwesomeTypeFace = null; SnackbarManager.show(Snackbar.with(OTPActivity.this).text(R.string.OTP_sbm_err).actionLabel("dismiss").actionColor(Color.RED).actionLabelTypeface(myAwesomeTypeFace).actionListener(new ActionClickListener() { @Override public void onActionClicked(Snackbar snackbar) { snackbar.dismiss(); } })); } } catch (Exception e) { btnSubmit_OTP.setEnabled(true); e.printStackTrace(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void onPostExecute() {\n }", "protected void onPostExecute() {\r\n\t}", "protected void onPostExecute() {\n }", "protected void onPostExecute() {\n }", "@Override\n protected void onPostExecute(String result) {\n // tvResult.setText(result);\n }", "protected void onPostExecute(Void v) {\n\n }", "protected void onPostExecute(Void v) {\n\n }", "@Override\n protected void onPostExecute(String result) {\n }", "@Override\n\t protected void onPostExecute(String result) {\n\t }", "protected void onPostExecute(String resultado) {\n\t\t\ttextView.setText(\"\");\n\t\t\ttextView.setTextColor(Color.BLACK);\n\t\t\ttextView.setText(getString(R.string.main_1) +\"\\n\"+ getString(R.string.visit_final)+\"\\n\"+ getString(R.string.code)+ \" \"+ getString(R.string.participant)+ \": \"+partCaso.getParticipante().getParticipante().getCodigo());\n\t\t\tmVisitaFinalCasoAdapter = new VisitaFinalCasoAdapter(getApplication().getApplicationContext(), R.layout.complex_list_item, mVisitaFinalCaso);\n\t\t\tsetListAdapter(mVisitaFinalCasoAdapter);\n\t\t\tdismissProgressDialog();\n\t\t}", "protected void onPostExecute(String result) {\n }", "@Override\n protected void onPostExecute(Void result) {\n // This is where we would process the results if needed.\n this.progressDialog.dismiss();\n }", "protected void onPostExecute(Void v) {\n }", "@Override\n protected void onPostExecute(String result) {\n\n }", "@Override\n protected void onPostExecute(String result) {\n\n }", "@Override\n protected void onPostExecute(String result) {\n }", "@Override\n protected void onPostExecute(String result) {\n }", "@Override\n protected void onPostExecute(String result) {\n }", "@Override\n protected void onPostExecute(String result) {\n if (result.equals(\"SUCCESS\")) {\n\n }\n // Do things like hide the progress bar or change a TextView\n }", "protected void onPostExecute(Void v) {\n\n\n }", "protected void onPostExecute(Integer results) {\r\n\r\n\t\t\t// StatusTextView.setText(\"Map: \" + results);\r\n\t\t\tuiUpdate();\r\n\r\n\t\t}", "@Override\n protected void onPostExecute(String result) {\n tvContenidoTarea.setText(result); // txt.setText(result);\n // might want to change \"executed\" for the returned string passed\n // into onPostExecute() but that is upto you\n }", "protected void onPostExecute(String result) {\r\n\r\n\t\t}", "protected void onPostExecute(Void result) {\n }", "protected void onPostExecute(Long result) {\n\t\t\t USCG_QuestionsActivity.this.setContentView(R.layout.activity_uscg__questions);\r\n\t\t // Show the question and answers\r\n\t\t\t showQuesAndAnswers();\r\n\t\t }", "@Override\n protected void onPostExecute(Void result) {\n\n }", "protected void onPostExecute(String result){\n }", "protected void onPostExecute(String resultado) {\n dismissProgressDialog();\n showResult(resultado);\n }", "protected void onPostExecute(String resultado) {\n dismissProgressDialog();\n showResult(resultado);\n }", "@Override\n\t\tprotected void onPostExecute(Boolean result) {\n\t\t\tshowResult(result);\n\t\t}", "public void onPostExecute(Result result) {\n }", "public void onPostExecute(Result result) {\n }", "public void onPostExecute(Result result) {\n }", "@Override\r\n protected void onPostExecute(String result) {\n\r\n }", "@Override\n\t protected void onPostExecute(String result) \n\t {\n\t \tmHandler.post(updateList);\n\t \t\n\t //mProgress.setVisibility(View.GONE);\n\n\t }", "@Override protected void onPostExecute(String returnVal) {\r\n //Print the response code as toast popup \r\n //android.widget.Toast.makeText(\r\n // mContext, \"[myAsyncTask.onPostExecute] Response: \" + returnVal,\r\n // android.widget.Toast.LENGTH_LONG\r\n //).show();\r\n if (gHandlers != null) gHandlers.onPostExecute(returnVal);\r\n }", "@Override\n protected void onPostExecute(Void aVoid) {\n }", "@Override\n protected void onPostExecute(List<Parkingspot> result){\n\n if(result != null) {\n for (Parkingspot parkingspot : result) {\n Log.i(TAG, \"Address: \" + parkingspot.getAddress() + \" Location: \"\n + parkingspot.getLocation());\n\n }\n }\n }", "@Override\r\n\t\tprotected void onPostExecute(Void result) \r\n\t\t{\n\t\t}", "@Override\n protected void onPostExecute(Void result) {\n super.onPostExecute(result);//Run the generic code that should be ran when the task is complete\n onCompleteListener.onAsyncTaskComplete(result);//Run the code that should occur when the task is complete\n }", "@Override\r\n protected void onPostExecute(String result) {\n\r\n }", "protected void onPostExecute(String args) {\r\n\t\t\thideLoading();\r\n\t\t\tListItemAdapter adapter = new ListItemAdapter(\r\n\t\t\t\t\tMyChannelsTabletActivity.this, R.layout.my_channels_item_tablet,\r\n\t\t\t\t\tchannels);\r\n\t\t\t// updating listview\r\n\t\t\tgvChannel.setAdapter(adapter);\r\n\t\t\tif(channels.size()==0){\r\n\t\t\t\tToast.makeText(getApplicationContext(), \"No results\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\t\t}", "@Override\r\n\t\tprotected void onPostExecute(Void result)\r\n\t\t{\n\t\t}", "protected void onPostExecute(String result) {\n\t\t\t\t\tquestions = SiQuoiaJSONParser.parseLeaderboard(result);\n\t\t\t\t\t\n\t\t\t\t\t//sets my listAdapter to the list\n\t\t\t leaderboardAdapter = new SiQuoiaLeaderboardAdapter(SiQuoiaLeaderboardActivity.this,R.layout.leaderboard_list,questions);\n\t\t\t leaderboardList = (ListView) findViewById(R.id.leaderboardList);\n\t\t\t leaderboardList.setAdapter(leaderboardAdapter); \n\t\t\t\t\t\n\t\t\t\t\t//close progress dialog\n\t\t\t\t\tprogressBar.dismiss();\n\t\t\t}", "@Override\n\tprotected void onPostExecute(String result) {\n\t\tsuper.onPostExecute(result);\n\t\t\n\t}", "@Override\n\tprotected void onPostExecute(String result) {\n\t\tLog.d(TAG, result);\n\t}", "protected void onPostExecute (String result) \n\t{\n\t\t\n\t\tif(result == null)\n\t\t{\n\t\t\t\n\t\t\tLog.e(\"post execution \", \"result null\");\n\t\t\t//ThreadClassForHttpRequest http = new ThreadClassForHttpRequest(view, txt_titles, txt_links, txt_path, frameAnimation);\n\t\t\t//http.execute(parameters);\n\t\t\tToast.makeText(context, \"Yahoo Response Failure\", Toast.LENGTH_LONG).show();\n\t\t\tframeAnimation.stop();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tframeAnimation.stop();\n\t\tfor(int i=0; i<9; i++)\n\t\t{\n\t\t\tview[i].setImageBitmap(pic[i]);\n\t\t}\n\t\t\n\t\ttxt_links.setText(allLinks);\n\t\ttxt_titles.setText(allTitles);\n\t\tString path;\n\t\tpath = txt_path.getText().toString();\n\t\t\n\t\tpath = path + \"-->#\" + parameters[0] + \"#\" + parameters[1];\n\t\t\n\t\ttxt_path.setText(path);\n\t\t\n\t\t//Log.e(\"thread titles\", allTitles);\n\t\t\n\t}", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tpdia.dismiss();\n\t\t\tif (result.equals(\"success\")) {\n\t\t\t\t//lvFeed = (ListView) findViewById(R.id.lvFeed);\n\t\t\t\t//lvFeed.setAdapter(new FeedAdapter(mContext, mActivity, feedContent));\n\t\t\t} else\n\t\t\t\tToast.makeText(mContext, result, Toast.LENGTH_SHORT).show();\n\t\t\tsuper.onPostExecute(result);\n\t\t}", "@Override\r\n\tprotected void onPostExecute(String result) {\n\t\tsuper.onPostExecute(result);\r\n\t}", "@Override\n protected void onPostExecute(String result) {\n Log.i(\"this is the result\", \"HULA\");\n //Do anything with response..\n }", "@Override\n protected void onPostExecute(String s) {\n super.onPostExecute(s);\n dialog.dismiss(); // to stop showing the progressbar After process is completed\n tvResult.setText(s);\n tvResult.setVisibility(View.VISIBLE);\n Toast.makeText(MainActivity.this, \"Process Done\", Toast.LENGTH_SHORT).show();\n\n }", "@Override\n protected void onPostExecute(String result) {\n temptext.setText(result+data);\n }", "@Override\n protected void onPostExecute(String result) {\n if(dialog.isShowing())\n {\n dialog.dismiss();\n }\n //Check to see if the result is null. If it is not then we know we got some data back and can display it to the user.\n if(result!=null)\n {\n lyrics.setText(result);\n }\n //Something went wrong and we can display a toast to the user detailing this.\n else\n {\n Toast.makeText(getApplicationContext(), \"Unable to get lyrics\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n // below method will run when service HTTP request is complete, will then bind tweet text in arrayList to ListView\n protected void onPostExecute(String strFromDoInBg) {\n ListView list = (ListView)findViewById(R.id.tweetList);\n ArrayAdapter<String> tweetArrayAdapter = new ArrayAdapter<String>(Tweets.this, android.R.layout.simple_expandable_list_item_1, items);\n list.setAdapter(tweetArrayAdapter);\n }", "protected void onPostExecute(Void result) {\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n ReadWordDataBase();\n DisplayList();\n }", "@Override\n protected void onPostExecute(String result) {\n// Toast.makeText(getBaseContext(), \"Data Sent!\", Toast.LENGTH_LONG).show();\n }", "@Override\n\t\t protected void onPostExecute(Void result) {\n\t\t \t\n\t\t super.onPostExecute(result); \n\t\t }", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\tif (result != null) {\n\t\t\t\tToast.makeText(getActivity(), \"Tai thanh cong!\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t} else {\n\t\t\t\tToast.makeText(getActivity(), \"That bai\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t.show();\n\t\t\t}\n\t\t\ttoggleShowProgressDialog(false);\n\t\t}", "@Override\n protected void onPostExecute(String result)\n {\n //Toast.makeText(OTPActivity.this, result.toString(), Toast.LENGTH_LONG).show();\n }", "@Override\n\tprotected void onPostExecute(Void result) {\n\t\tsuper.onPostExecute(result);\n\t\tstatus.setText(debug);\n\t}", "@Override\r\n\tprotected void onPostExecute(String result)\r\n\t{\r\n\t\tprogress.dismiss();\r\n\t\tsuper.onPostExecute(result);\r\n\t}", "protected void onPostExecute(String file_url) {\n // dismiss the dialog after getting all products\n pDialog.dismiss();\n // updating UI from Background Thread\n\n Emp = (TextView) findViewById(R.id.empresa);\n cal = (TextView) findViewById(R.id.calle);\n num = (TextView) findViewById(R.id.Numero);\n ciu = (TextView) findViewById(R.id.ciudad);\n prov = (TextView) findViewById(R.id.provincia);\n prob = (TextView) findViewById(R.id.problema);\n\n\n\n Emp.setText(empresa);\n cal.setText(calle);\n num.setText(numero);\n ciu.setText(ciudad);\n prov.setText(provincia);\n prob.setText(problema);\n\n\n\n\n }", "@Override\r\n\tprotected void onPostExecute(String result) {\r\n\t\tprogressDialog.setMessage(\"Finalizado!\");\r\n\t\t// fecha o dialog\r\n\t\tprogressDialog.dismiss();\r\n\t\tsuper.onPostExecute(result);\r\n\t}", "protected void onPostExecute(Long result) {\n\t }", "@Override\n\t\tprotected void onPostExecute(Void result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t}", "@Override\n\t\tprotected void onPostExecute(Void result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t}", "@Override\n protected void onPostExecute(Void result) {\n listview = (ListView) findViewById(R.id.listview);\n // Pass the results into an ArrayAdapter\n adapter = new ArrayAdapter<String>(ClientsFromEntrenadorSuperAdmin.this,\n R.layout.item);\n // Retrieve object \"name\" from Parse.com database\n for (ParseObject clients : ob) {\n adapter.add((String) clients.get(\"Nom\") + \" \" + clients.get(\"Cognom\"));\n }\n // Binds the Adapter to the ListView\n listview.setAdapter(adapter);\n // Close the progressdialog\n mProgressDialog.dismiss();\n // Capture button clicks on ListView items\n }", "@Override\n\tpublic void onTaskPostExecute() {\n\t\tLog.i(TAG, \"post executing\");\n\t\tupdateAdapter();\n\t\tspinner.setVisibility(View.GONE);\n\t\tlistView.setVisibility(View.VISIBLE);\n\t\tlistView.onLoadMoreComplete();\n\t}", "@Override\n protected void onPostExecute(String result) {\n Gson gson = new Gson(); //iz Jsona napravi objekte unutar jave\n ArhivaRoot arhivaRoot = gson.fromJson(result, ArhivaRoot.class);\n\n textView.setText(joinRows(arhivaRoot.getRows()));\n mProgressDialog.dismiss();\n }", "protected void onPostExecute(Void v) {\n Log.v(\"Result\",response);\n }", "@Override\r\n protected void onPostExecute(Void result) {\n\r\n }", "@Override\n\t\t\tprotected void onPostExecute(Void result) {\n\t\t\t\tsuper.onPostExecute(result);\n\t\t\t}", "@Override\n\t\t\tprotected void onPostExecute(Void result) {\n\t\t\t\tsuper.onPostExecute(result);\n\t\t\t}", "@Override\n protected void onPostExecute(String result) {\n con.findViewById(R.id.progressBarr).setVisibility(View.INVISIBLE);\n if(result==null){Toast.makeText(con, \"ERROR! text ansver is null\", Toast.LENGTH_LONG).show(); return;}\n // Toast.makeText(getBaseContext(),result,Toast.LENGTH_SHORT).show();\n setMyScroll(result);\n\n }", "@Override\n\t \t\tprotected void onPostExecute(Void result) {\n\t \t\t\tlistView.setVisibility(View.INVISIBLE);\n\t \t\t\tToast.makeText(getActivity(),\n\t \t\t\t\t\tgetResources().getString(R.string.saved),\n\t \t\t\t\t\tToast.LENGTH_LONG).show();\n\t \t\t\tupdate.setVisibility(View.VISIBLE);\n\t \t\t\tupdate.setText(getResources().getString(R.string.saved));\n\t \t\t\tmProgressDialog.dismiss();\n\t \t\t}", "protected void onPostExecute(String file_url) {\n\t\t\tpDialog.dismiss();\r\n\t\t\tTextView[] tv = new TextView[3];\r\n\t\t\ttv[0] = (TextView) v.findViewById(R.id.UserName);\r\n\t\t\ttv[1] = (TextView) v.findViewById(R.id.UserSex);\r\n\t\t\ttv[2] = (TextView) v.findViewById(R.id.Userlocation);\r\n\t\t\t// for(int i=0;i<memberlist.size();i++)\r\n\t\t\t// {\r\n\t\t\t// tv[i].setText(memberlist.get(i).toString());\r\n\t\t\t// }\r\n\t\t\tfor (HashMap<String, String> map : memberlist) {\r\n\t\t\t\tObject tagNickName = map.get(TAG_NICKNAME);\r\n\t\t\t\tObject tagSex = map.get(TAG_SEX);\r\n\t\t\t\tObject tagAddress = map.get(TAG_ADDRESS);\r\n\t\t\t\ttv[0].setText(tagNickName.toString());\r\n\t\t\t\ttv[1].setText(tagSex.toString());\r\n\t\t\t\ttv[2].setText(tagAddress.toString());\r\n\t\t\t}\r\n\r\n\t\t\t// updating UI from Background Thread\r\n\r\n\t\t}", "@Override\n protected void onPostExecute(String s) {\n\n\n mainInterface.onResultsFound(pokemons);\n }", "protected void onPostExecute(String result) {\n onTaskCompleted(result,jsoncode);\n }", "public void onPostExecute(ArrayList<String> predictions) {\n \t\t\trouteViewProgressBar.setVisibility(View.INVISIBLE);\n \n \t\t\tif (predictions.size() == 1 && predictions.get(0).equals(\"-1\")) {\n \t\t\t\tToast.makeText(ctx, \"Error, Server Down?\", Toast.LENGTH_LONG)\n \t\t\t\t\t\t.show();\n \t\t\t\tpredictions.clear();\n \t\t\t}\n \n \t\t\tif (predictions.size() == 0 || predictions.get(0).equals(\"error\")) {\n \t\t\t\tfirstArrival.setText(\"--\");\n \t\t\t\tsecondArrival.setText(\"\");\n \t\t\t\tthirdArrival.setText(\"\");\n \t\t\t\tfourthArrival.setText(\"\");\n \n \t\t\t} else {\n \t\t\t\tfirstArrival.setText(predictions.get(0).toString());\n \t\t\t\tif (predictions.size() > 1)\n \t\t\t\t\tsecondArrival.setText(predictions.get(1).toString());\n \t\t\t\telse\n \t\t\t\t\tsecondArrival.setText(\"\");\n \t\t\t\tif (predictions.size() > 2)\n \t\t\t\t\tthirdArrival.setText(predictions.get(2).toString());\n \t\t\t\telse\n \t\t\t\t\tthirdArrival.setText(\"\");\n \t\t\t\tif (predictions.size() > 3)\n \t\t\t\t\tfourthArrival.setText(predictions.get(3).toString());\n \t\t\t\telse\n \t\t\t\t\tfourthArrival.setText(\"\");\n \t\t\t}\n \t\t}", "public void onPostExecute(String fromDoInBackground){\n CovAdt.notifyDataSetChanged();\n pb.setVisibility(View.INVISIBLE);\n }", "@Override\r\n\t protected void onPostExecute(String result) {\r\n\t super.onPostExecute(result);\r\n\t \r\n\t ParserTask parserTask = new ParserTask();\r\n\t \r\n\t // Invokes the thread for parsing the JSON data\r\n\t parserTask.execute(result);\r\n\t }", "protected void onPostExecute(String result) {\n showOpinionCreatedMessage(Integer.parseInt(result));\n }", "protected void onPostExecute(Long result) {\n }", "protected void onPostExecute(Long result) {\n }", "protected void onPostExecute(Long result) {\n\t\t}", "protected void onPostExecute(String res) {\n\t\t super.onPostExecute(res);\r\n\t\t \r\n\r\n\t\t try {\r\n\t\t\t JSONObject responseObject = json.getJSONObject(\"responseData\");\r\n\t\t\t JSONArray resultArray = responseObject.getJSONArray(\"results\");\r\n\r\n\t\t\t // listImages = getImageList(resultArray);\r\n\t//\t\t SetListViewAdapter(listImages);\r\n\t\t } catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t }", "@Override\n\t\tprotected void onPostExecute(Void result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\t\n\t\t\tbtnListaj.setVisibility(View.VISIBLE);\n\t\t\tbtnDodadi.setVisibility(View.VISIBLE);\n\t\t\t\n\t\t\tpb=(ProgressBar) findViewById(R.id.pbLoading);\n\t\t\tpb.setVisibility(View.INVISIBLE);\n\t\t\t\n\t\t\tString jsonResponse=GetAllMestaTask.entityToString(response.getEntity());\n\t\t\t\n\t\t\tKategorija.kategorii=fromJSONtoKategorija(jsonResponse);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tif (mpProgress.isShowing())\n\t\t\t\tmpProgress.dismiss();\n\t\t\tsuper.onPostExecute(result);\n\t\t\tif (result != null) {\n\n\t\t\t\t// Toast.makeText(mContext, \"Response-\"+result, 1000).show();\n\t\t\t\t// System.out.println(\"Response=\"+result);\n\t\t\t\tFragment_Tickets.imgButtonOpen.performClick();\n\n\t\t\t} else {\n//\t\t\t\tToast.makeText(mContext, \"No response from server\", 1000).show();\n//\t\t\t\tSystem.out.println(\"No response from server\");\n\t\t\t}\n\t\t}", "protected void onPostExecute(List<Opinion> result) {\n if (result.size() == 0) {\n showEmptyListMessage();\n } else {\n // seleccionamos el listView\n ListView lv = (ListView) findViewById(R.id.aOpinionListViewOpinion);\n\n // cogemos los datos con el ListSearchAdapter y los mostramos\n ListOpinionAdapter customAdapter = new ListOpinionAdapter(getApplication(), R.layout.activity_opinion_item, result);\n lv.setAdapter(customAdapter);\n }\n }", "@SuppressWarnings(\"unchecked\")\n\t\t@Override\n\t\tprotected void onPostExecute(Object result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\tprogressLayout.setVisibility(View.GONE);\n\t\t\ttextDescription.setText(videoDescription);\n\n\t\t}", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\tif (m_notifArray.size() > 0 && m_notifArray != null) {\n\t\t\t\tm_tvNoData.setVisibility(View.INVISIBLE);\n\t\t\t\tm_lvList.setVisibility(View.VISIBLE);\n\t\t\t\tm_notifAdapter = new NotificationListAdapter(m_context,\n\t\t\t\t\t\tm_notifArray);\n\t\t\t\tm_lvList.setAdapter(m_notifAdapter);\n\t\t\t} else {\n\n\t\t\t\tm_lvList.setVisibility(View.INVISIBLE);\n\t\t\t\tm_tvNoData.setText(result);\n\t\t\t\tm_tvNoData.setVisibility(View.VISIBLE);\n\n\t\t\t}\n\t\t\tm_progDialog.dismiss();\n\t\t}", "@Override\n protected void onPostExecute(String result) {\n Log.i(TAG, \"STATUS IS: \" + result);\n }", "@Override\n protected void onPostExecute(String result){\n ParserTask parserTask = new ParserTask(viewHolder);\n\n // Start parsing the Google places in JSON format\n // Invokes the \"doInBackground()\" method of ParserTask\n parserTask.execute(result);\n }", "@Override\n\t\t\t\tprotected void onPostExecute(Void result)\n\t\t\t\t{\n\t\t\t\t\tsuper.onPostExecute(result);\n\t\t\t\t}", "@Override\n protected void onPostExecute(final Void unused) {\n super.onPostExecute(unused);\n Log.i(\"Dict\", \"Done processing\");\n delegate.processFinish(result);\n }", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tpdia.dismiss();\n\t\t\tif (result.equals(\"success\")) {\n\t\t\t\tViewPagerAdapter adapter = new ViewPagerAdapter(mContext, mActivity, circle_names, circle_urls );\n\t\t\t ViewPager pager = \n\t\t\t (ViewPager)findViewById( R.id.viewpager );\n\t\t\t TitlePageIndicator indicator = \n\t\t\t (TitlePageIndicator)findViewById( R.id.titles );\n\t\t\t pager.setAdapter( adapter );\n\t\t\t pager.setCurrentItem(1);\n\t\t\t indicator.setViewPager( pager );\n\t\t\t} else {\n\t\t\t\tToast.makeText(mContext, result, Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\tsuper.onPostExecute(result);\n\t\t}", "@Override\n\tprotected void onPostExecute() {\n\n\t\tprogressDialog.dismiss();\n\n\t\ttry {\n\n\t\t\tgetResult();\n\n\t\t\tif (completionListener != null) {\n\t\t\t\tcompletionListener.onDownloadAllDataComplete(true);\n\t\t\t}\n\n\t\t} catch (Exception error) {\n\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(context);\n\t\t\tbuilder.setTitle(string.error)\n\t\t\t\t\t.setMessage(context.getString(string.datasync_dialog_cantsync) + error.getMessage())\n\t\t\t\t\t.setCancelable(false).setPositiveButton(string.ok, new DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tif (completionListener != null) {\n\t\t\t\t\t\t\t\tcompletionListener.onDownloadAllDataComplete(false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}).show();\n\t\t}\n\n\t}", "@Override\n protected void onPostExecute(String result) {\n\n try {\n // To display message after response from server\n if (!result.contains(\"ERROR\")) {\n if (responseJSON.equalsIgnoreCase(\"success\")) {\n db.open();\n db.Update_OutletExpenseIsSync();\n db.close();\n }\n if (common.isConnected()) {\n AsyncOutletSaleWSCall task = new AsyncOutletSaleWSCall();\n task.execute();\n }\n } else {\n if (result.contains(\"null\"))\n result = \"Server not responding.\";\n common.showAlert(StockAdjustmentList.this, result, false);\n common.showToast(\"Error: \" + result);\n }\n } catch (Exception e) {\n common.showAlert(StockAdjustmentList.this,\n \"Unable to fetch response from server.\", false);\n }\n\n Dialog.dismiss();\n }", "@Override\n protected void onPostExecute(String result) {\n super.onPostExecute(result);\n\n ParserTask parserTask = new ParserTask();\n\n // Invokes the thread for parsing the JSON data\n parserTask.execute(result);\n mProgressDialog.dismiss();\n }", "@Override\r\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\r\n\t\t\tshowtalk.setText(result);\r\n\t\t}", "protected void onPostExecute(String results) {\n\t\t\tUserFindActivity.this.parsePopulateListView(results);\n\t\t\treturn;\n\t\t}" ]
[ "0.7648474", "0.7629248", "0.75970715", "0.75970715", "0.7503771", "0.7479748", "0.7479748", "0.74670684", "0.7463521", "0.7443436", "0.7440934", "0.74209803", "0.7395019", "0.73926663", "0.73926663", "0.7390195", "0.7390195", "0.7390195", "0.73754895", "0.73746675", "0.736699", "0.73451835", "0.7341178", "0.7340964", "0.72901064", "0.7278019", "0.7273361", "0.72668266", "0.72668266", "0.72659147", "0.7251883", "0.7251883", "0.7251883", "0.7244621", "0.7241844", "0.7228418", "0.72144914", "0.72111726", "0.71996766", "0.7194015", "0.7193514", "0.7189868", "0.71854025", "0.7180318", "0.7164655", "0.7146945", "0.7134875", "0.71317285", "0.7128425", "0.7125179", "0.7120062", "0.71133137", "0.71001136", "0.7094872", "0.7077532", "0.70619166", "0.7061693", "0.7035158", "0.7034415", "0.7009845", "0.70037365", "0.69923383", "0.69901425", "0.69888437", "0.6977795", "0.6977795", "0.6970845", "0.6967938", "0.6963266", "0.6962022", "0.69581354", "0.69515455", "0.69515455", "0.69513243", "0.6936037", "0.6931798", "0.6927044", "0.6926911", "0.6914711", "0.69075996", "0.690403", "0.6900634", "0.6893087", "0.6893087", "0.68911546", "0.6887101", "0.68767285", "0.68692255", "0.68582463", "0.68572426", "0.6857062", "0.685161", "0.6851468", "0.6845377", "0.68439937", "0.68384063", "0.6829868", "0.68228877", "0.6815406", "0.68147135", "0.6806208" ]
0.0
-1
/ END OF OTP SIGN IN PROCESS
public void gotoProfileActivity() { Log.e("next",""+"log"); startActivity(new Intent(OTPActivity.this, UserProfileActivity.class)); finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void signInComplete();", "@Override\n\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n\n\n Toast.makeText(otpsignin.this,\"Code send to your phone\",Toast.LENGTH_SHORT).show();\n\n signInWithPhoneAuthCredential(phoneAuthCredential);\n\n }", "Boolean signOut();", "public void resendOTP(View view) {\n showSnackbar(\"Resending OTP\");\n\n PhoneAuthOptions authOptions = PhoneAuthOptions.newBuilder(mFirebaseAuth)\n .setPhoneNumber(getString(R.string.country_code) + mPhoneNumber)\n .setTimeout(60L, TimeUnit.SECONDS).setActivity(this).setForceResendingToken(mToken)\n .setCallbacks(mCallBacks).build();\n\n PhoneAuthProvider.verifyPhoneNumber(authOptions);\n }", "public void resendOTP() {\n ApiInterface apiInterface = RestClient.getApiInterface();\n apiInterface.userResendOTP(\"bearer\" + \" \" + CommonData.getAccessToken())\n .enqueue(new ResponseResolver<CommonResponse>(OtpActivity.this, true, true) {\n @Override\n public void success(final CommonResponse commonResponse) {\n Log.d(\"debug\", commonResponse.getMessage());\n Toast.makeText(OtpActivity.this, \"New OTP Sent\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void failure(final APIError error) {\n Log.d(\"debug\", error.getMessage());\n\n }\n });\n\n\n }", "public void onOK() {\n\t\t\t\t\t\t\tlogout();\n\t\t\t\t\t\t}", "@Override\n public void onFailure(Call<String> call, Throwable t) {\n dismissProgress();\n SecurityLayer.generateToken(getApplicationContext());\n com.ceva.ubmobile.core.ui.Log.debug(\"otpvalidation\", t.toString());\n //showToast(getString(R.string.error_500));\n // prog.dismiss();\n // startDashBoard();\n }", "@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n Log.d(TAG, \"onVerificationCompleted:\" + credential);\n otp = credential.getSmsCode();\n pinEntered.setText(otp);\n signInWithPhoneAuthCredential(credential);\n }", "int getTokenFinish();", "private void signOut() {\n MailboxServer.removeClient(this);\n clientResponse(\"GoodyBye!\");\n }", "public void stepsForSignUP(String mobNumber,String OTP)\n\t{\n\t\twaitUntilElementIsVisible(fieldMobNumOrEmail);\n\t\tinputText(fieldMobNumOrEmail, mobNumber, \"Enter Mobile Number\");\n\t\tclick(checkboxAcceptTermofService, \"Click on Accept Terms of Service checkbox\");\n\t\tclick(btnContinue, \"Click on Continue button\");\n\t\totp.enterOTP(OTP);\n\t}", "private void signOutUser() {\n mAuth.signOut();\n LoginManager.getInstance().logOut();\n Toast.makeText(ChatMessage.this, \"You have been logout\", Toast.LENGTH_SHORT).show();\n finishAffinity();\n proceed();\n }", "void endutxent();", "@Override\n\n public void onCodeSent(String verificationId,\n PhoneAuthProvider.ForceResendingToken token) {\n\n Toast.makeText(otpsignin.this, verificationId, Toast.LENGTH_SHORT).show();\n\n Log.d(TAG, \"onCodeSent:\" + verificationId);\n\n Toast.makeText(otpsignin.this,\"On code sent meathod\",Toast.LENGTH_SHORT).show();\n\n // Save verification ID and resending token so we can use them later\n\n btntype=1;\n\n\n mVerificationId = verificationId;\n\n mResendToken = token;\n\n btnOTP.setText(\"Verify code\");\n\n // ...\n }", "public void verifyOTP() {\n HashMap<String, String> commonParams = new CommonParams.Builder()\n .add(AppConstant.KEY_COUNTRY_CODE, mCountryCode)\n .add(AppConstant.KEY_PHONE, mPhoneno)\n .add(AppConstant.KEY_OTP, mOTP).build().getMap();\n ApiInterface apiInterface = RestClient.getApiInterface();\n apiInterface.userVerifyOTP(\"bearer\" + \" \" + CommonData.getAccessToken(), commonParams)\n .enqueue(new ResponseResolver<CommonResponse>(OtpActivity.this, true, true) {\n @Override\n public void success(final CommonResponse commonResponse) {\n Log.d(\"debug\", commonResponse.getMessage());\n\n }\n\n @Override\n public void failure(final APIError error) {\n Log.d(\"debug\", error.getMessage());\n\n }\n });\n }", "@Override\r\n\t\t\tpublic void done(Integer arg0, BmobException arg1) {\n\t\t\t\tif(arg1==null){//验证码发送成功\r\n\t\t \tmyHandler.sendEmptyMessageDelayed(30000, 0);\r\n\t\t }\r\n\t\t\t}", "public void end() {\n\t\tsigue = false;\n\t}", "@Override\n\n public void success(DigitsSession session, String phoneNumber) {\n SharedPreferences mPreferences = getApplicationContext().getSharedPreferences(\"MyPref\", 0);\n SharedPreferences.Editor editor = mPreferences.edit();\n phoneNumber=phoneNumber.substring(3);\n editor.putString(\"loginid\", phoneNumber);\n editor.putInt(\"daylimit\",0);\n editor.putInt(\"monthlimit\",0);\n editor.commit();\n signin(phoneNumber);\n Intent i = new Intent(login.this,userDetails.class);\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP|Intent.FLAG_ACTIVITY_NO_HISTORY);\n\n startActivity(i);\n Toast.makeText(getApplicationContext(), \"Authentication successful for \"\n + phoneNumber, Toast.LENGTH_LONG).show();\n }", "@Override\n public void onCodeSent(@NonNull String s, @NonNull PhoneAuthProvider.ForceResendingToken forceResendingToken) {\n super.onCodeSent(s, forceResendingToken);\n verificationId = s;\n // start showing the pin view and verify button\n Toast.makeText(MainActivity.this, \"Enter OTP to verify\", Toast.LENGTH_SHORT).show();\n OTP.setVisibility(View.VISIBLE);\n verifyButton.setVisibility(View.VISIBLE);\n }", "private void signIn() {\n }", "@Override\r\n public void onSign(SignEvent event){\n if (event.getAction().equals(SignEvent.Action.SIGNED_IN)) {\r\n //write cookies if keep signed in\r\n if (event.getAccountKey() != null && !event.getAccountKey().isEmpty()) {\r\n cookie.setAccountKey(Shared.MY_SESSION, event.getAccountKey());\r\n }\r\n //already signed in, load workspace\r\n RootPanel.get().clear();\r\n Widget workspace = new Workspace().asWidget();\r\n RootPanel.get().add(workspace); \r\n Info.display(\"Welcome\", \"Signed in as \" + Shared.MY_SESSION.getAccount().getFullName());\r\n }\r\n //process sign_out\r\n if (event.getAction().equals(SignEvent.Action.SIGN_OUT)){\r\n String accountKey = cookie.getAccountKey(Shared.MY_SESSION);\r\n Shared.RPC.signOutAndDetachSession(Shared.MY_SESSION, accountKey, new AsyncCallback<Session>() {\r\n @Override\r\n public void onSuccess(Session s) {\r\n if (s != null) {\r\n Shared.MY_SESSION = s;\r\n //sign out seems OK on server side, dispatch SIGNED_OUT event\r\n Shared.EVENT_BUS.fireEvent(new SignEvent(SignEvent.Action.SIGNED_OUT)); //WARN: don't dispatch SIGN_OUT avoiding deadlock call\r\n } else {\r\n Info.display(\"Error\", \"Account is already signed out or database error\");\r\n }\r\n }\r\n\r\n @Override\r\n public void onFailure(Throwable caught) {\r\n Info.display(\"Error\", caught.getMessage());\r\n }\r\n });\r\n }\r\n //process signed_out\r\n if (event.getAction().equals(SignEvent.Action.SIGNED_OUT)){\r\n //delete cookies\r\n cookie.discardCookie(Shared.MY_SESSION); \r\n //return UI to welcome status\r\n RootPanel.get().clear();\r\n RootPanel.get().add(new LoginPage()); \r\n Info.display(\"See you\", \"You are now signed out!\");\r\n }\r\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQ_SIGNUP && resultCode == RESULT_OK) {\n finishLogin(data);\n } else\n super.onActivityResult(requestCode, resultCode, data);\n }", "private void startOTPVerificationProcess() {\n enableViews(mBinding.textOtpHeading, mBinding.editOtp, mBinding.buttonResendOtp, mBinding.buttonChangeNumber, mBinding.buttonVerifyOtp);\n disableViews(mBinding.progressBar);\n }", "void loginDone();", "void logoutDone();", "@Override\n public void failure(DigitsException exception) {\n Toast.makeText(ForgotPassword.this, \"Couldn't verify phone number\", Toast.LENGTH_SHORT).show();\n finish();\n }", "public void BusinessSignUp(String mobNumber,String OTP)\n\t{\n\t\twaitUntilElementIsVisible(btnSignUP);\n\t\tclick(btnSignUP);\n\t\tstepsForSignUP(mobNumber,OTP);\n\t\twaitUntilElementIsVisible(btnContinueToRegistartion);\n\t\tclick(btnContinueToRegistartion, \"Click on Continue To Registration button\");\n\t}", "@Override\n public void onCodeSent(String s, PhoneAuthProvider.ForceResendingToken forceResendingToken) {\n super.onCodeSent(s, forceResendingToken);\n // when we receive the OTP it\n // contains a unique id which\n // we are storing in our string\n // which we have already created.\n verificationId = s;\n }", "private void goUpdatePasswordSucess() {\n\n AppManager.getAppManager().finishActivity(ForgetpasswordActivity.class);\n finish();\n }", "@Override\n public void onRegistrationAccomplished() {\n Prefs.setSignedIn(true);\n // Proceed to Main\n proceedToMainActivityAndFinish();\n }", "public void callNextScreenFromOTP(View view) {\n String otpByuser = pinEntered.getText().toString();\n if (!otpByuser.isEmpty()) {\n verifyPhoneNumberWithCode(mVerificationId,otpByuser);\n }\n }", "public void onConnectSpamDone() {\n loggingIn = false;\n }", "@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n String code = phoneAuthCredential.getSmsCode();\n\n Toast.makeText(OTPActivity.this, \"Reached here\", Toast.LENGTH_SHORT).show();\n\n //sometime the code is not detected automatically\n //in this case the code will be null\n //so user has to manually enter the code\n if (code != null) {\n loading.setVisibility(View.VISIBLE);\n etOtp.setText(code);\n etOtp.setEnabled(false);\n Toast.makeText(OTPActivity.this, \"Reached here\", Toast.LENGTH_SHORT).show();\n //verifying the code\n verifyVerificationCode(code);\n }\n }", "@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n String code = phoneAuthCredential.getSmsCode();\n Log.d(TAG, \"onVerificationCompleted: RECEIVED OTP \"+code);\n if(code != null){\n code_received.setText(code);\n verifyCode(code);\n }\n }", "@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n mVerificationInProgress = false;\n Toast.makeText(PhoneActivity.this,\"Verification Complete\",Toast.LENGTH_SHORT).show();\n dialog.setMessage(\"Logging you in..\");\n dialog.show();\n signInWithPhoneAuthCredential(credential);\n }", "@Override\n public void onCanceled() {\n\n logOutNow();\n\n }", "@Override\n public void endPaymentBundle() {\n System.out.println(\"endPaymentBundle() was called\");\n }", "public void endSession(){\n currentUser = null;\n ui.returnCard();\n }", "@Override\n public void success(DigitsSession session, final String phoneNumber) {\n h.post(new Runnable() {\n @Override\n public void run() {\n\n successMethod(phoneNumber);\n containerForgotPassword.setVisibility(View.VISIBLE);\n\n }\n });\n }", "@Test()\n public static void SignOut() throws IOException {\n signOut();\n }", "public void endUpdateHashMethod() {\n\t\t// ended attempt to update their password hash, reset values to default\n\t\tupdatePasswordHashMethod = false;\n\t\tlastUsername = \"\";\n\t\tlastPassword = \"\";\n\t}", "public abstract void endUserSession();", "private void signInUidPass(){\n mAuth.signInWithEmailAndPassword(mTextEmail.getText().toString(), mTextPassword.getText().toString()).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(Constants.TAG, \"signInwithEmail: onComplete:\" + task.isSuccessful());\n if(!task.isSuccessful()){\n Log.w(Constants.TAG, \"signInwithEmail: failed\", task.getException());\n }\n }\n });\n }", "public void onSendOTPRes(SendOtpModel.SendOtpRes sendOtpres) {\n if(sendOtpres.isStatus()){\n appPref.set(AppPref.OTP,sendOtpres.getOTP());\n\n Bundle bundle = new Bundle();\n bundle.putString(\"phone\",binding.etPhone.getText().toString());\n bundle.putString(\"from\",\"logincreen\");\n ((Base)getActivity()).changeFrag(VerificationFragment.newInstance(bundle),true,false);\n }else {\n if(sendOtpres.getMsg().equalsIgnoreCase(\"User not registered!\")){\n Bundle bundle = new Bundle();\n bundle.putString(\"phone\",binding.etPhone.getText().toString());\n bundle.putString(\"from\",\"logincreen\");\n ((Base)getActivity()).changeFrag(SignUpFragment.newInstance(bundle),true,false);\n }\n showSnake(binding.rlMain,sendOtpres.getMsg());\n }\n\n }", "private boolean logout() {\r\n\t\t// Create exit.\r\n\t\tCMPPTerminate exit = new CMPPTerminate();\r\n\t\t// Set sequence.\r\n\t\texit.sequence = nextSequence();\r\n\r\n\t\ttry {\r\n\t\t\t// Write packet.\r\n\t\t\tsingleCmppObject.getConnection().writePacket(exit);\r\n\t\t\t// Read packet.\r\n\t\t\tCMPPPacket cmpp = (CMPPPacket) singleCmppObject.getConnection()\r\n\t\t\t\t\t.readPacket();\r\n\t\t\t// Check result.\r\n\t\t\tif (cmpp == null) {\r\n\t\t\t\tUtil.log.error(\"fail to read packet !\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t// Check command.\r\n\t\t\tif (cmpp.command == CMPPCommandID.TERMINATE) {\r\n\t\t\t\t// Create response.\r\n\t\t\t\tCMPPTerminateResponse response = new CMPPTerminateResponse(\r\n\t\t\t\t\t\tcmpp.sequence);\r\n\t\t\t\t// Write response.\r\n\t\t\t\tsingleCmppObject.getConnection().writePacket(response);\r\n\t\t\t\t// Log event.\r\n\t\t\t\tUtil.log.info(\"exit request was received !\");\r\n\t\t\t} else if (cmpp.command == CMPPCommandID.TERMINATE_RESPONSE) {\r\n\t\t\t\t// Log event.\r\n\t\t\t\tif (LogRequests.isRequested(EventID.CMPP_PACKET\r\n\t\t\t\t\t\t| EventID.INFORMATION))\r\n\t\t\t\t\tUtil.log.info(\"exit response was received !\");\r\n\t\t\t} else {\r\n\t\t\t\t// Log event.\r\n\t\t\t\tif (LogRequests.isRequested(EventID.CMPP_PACKET\r\n\t\t\t\t\t\t| EventID.EXCEPTION))\r\n\t\t\t\t\tUtil.log.info(\"invalid exit response packet !\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t// Set authenticated.\r\n\t\t\tsingleCmppObject.setAuthenticated(false);\r\n\t\t\t// Return true.\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\tif (LogRequests.isRequested(EventID.CMPP_PACKET | EventID.EXCEPTION)) {\r\n\t\t\t\tUtil.log.error(e.getMessage(), e);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Return false.\r\n\t\treturn false;\r\n\t}", "@Override\n public void onEndLBSAuth(int result, String reason) {\n if (result == 0) {\n }\n }", "@Override\n public void a(ahp ahp2) throws RemoteException {\n Parcel parcel = Parcel.obtain();\n Parcel parcel2 = Parcel.obtain();\n try {\n parcel.writeInterfaceToken(\"com.google.android.gms.signin.internal.ISignInService\");\n IBinder iBinder = ahp2 != null ? ahp2.asBinder() : null;\n parcel.writeStrongBinder(iBinder);\n this.a.transact(11, parcel, parcel2, 0);\n parcel2.readException();\n return;\n }\n finally {\n parcel2.recycle();\n parcel.recycle();\n }\n }", "@Then(\"^the user enter the email or phone number and password$\")\r\n\tpublic void the_user_enter_the_email_or_phone_number_and_password() throws Throwable {\n\t sign.signupp();\r\n\t\t\r\n\t}", "@Override\n public void onVerifyPhoneNumberSuccessfully(PhoneVerification verification) {\n// if (BuildConfig.DEBUG){// TODO: 26/10/2017 this hard code should be removed later\n// gotoPhoneSignInScreen();\n// return;\n// }\n if (verification.isExists){\n gotoPhoneSignInScreen();\n }else{\n showConfirmDialog(verification.otpToken);\n }\n }", "private byte[] handleAuthPt2(byte[] payload) { \n\t\tbyte[] message = ComMethods.decryptRSA(payload, my_n, my_d);\n\t\tComMethods.report(\"SecretServer has decrypted the User's message using SecretServer's private RSA key.\", simMode);\n\t\t\n\t\tif (!Arrays.equals(Arrays.copyOf(message, myNonce.length), myNonce)) {\n\t\t\tComMethods.report(\"ERROR ~ invalid third message in protocol.\", simMode);\n\t\t\treturn \"error\".getBytes();\n\t\t} else {\n\t\t\t// Authentication done!\n\t\t\tcurrentSessionKey = Arrays.copyOfRange(message, myNonce.length, message.length);\n\t\t\tactiveSession = true;\n\t\t\tcounter = 11;\n\n\t\t\t// use \"preparePayload\" from now on for all outgoing messages\n\t\t\tbyte[] responsePayload = preparePayload(\"understood\".getBytes());\n\t\t\tcounter = 13;\n\t\t\treturn responsePayload;\n\t\t} \n\t}", "public void PersonalSignUp(String mobNumber,String OTP)\n\t{\n\t\twaitUntilElementIsVisible(btnSignUP);\n\t\tclick(btnSignUP, \"Click on Sign Up Button\");\n\t\twaitUntilElementIsVisible(clickonPersonalTab);\n\t\tclick(clickonPersonalTab, \"Click on PersonalTab Button\");\n\t\tclick(fieldMobNumOrEmail, \"Click on MobNumOrEmail Button\");\n\t\tstepsForSignUP(mobNumber,OTP);\t\n\t\t\t\n\t}", "@Override\n\n public void onVerificationFailed(FirebaseException e) {\n\n Toast.makeText(otpsignin.this,\"Something went wrong\",Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n code = phoneAuthCredential.getSmsCode();\n\n //sometimes the code is not detected automatically\n //in this case the code will be null\n //so user has to manually enter the code\n if (code != null) {\n\n codeValues_into_views(code);\n\n stop_timer();\n //verify the code\n verifyVerificationCode(code);\n }\n }", "private void logout(){\r\n\t\ttry {\r\n\t\t\tserver.rmvClient(user);\r\n\t\t} catch (RemoteException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tSystem.exit(0);\r\n\t}", "@Override\r\n\tprotected void processTakeout() {\n\r\n\t}", "@Override\r\n\tprotected void processTakeout() {\n\r\n\t}", "@Override\n public void onCodeSent(@NonNull String verificationId,\n @NonNull PhoneAuthProvider.ForceResendingToken token) {\n Log.d(TAG, \"onCodeSent:\" + verificationId);\n\n open_otp(verificationId);\n }", "@Override\r\n\tpublic void onFinishGetVerifyCode(int reg17FoxReturn) {\n\r\n\t\tswitch (reg17FoxReturn) {\r\n\t\tcase 103:\r\n\t\t\tdisplayRegisterResult(\"authKey出错\");\r\n\t\t\tbreak;\r\n\t\tcase 104:\r\n\t\t\tdisplayRegisterResult(\"参数不全\");\r\n\t\t\tbreak;\r\n\t\tcase 105:\r\n\t\t\tdisplayRegisterResult(\"手机格式错误\");\r\n\t\t\tbreak;\r\n\t\tcase 106:\r\n\t\t\tdisplayRegisterResult(\"此手机号已经注册\");\r\n\t\t\tbreak;\r\n\t\tcase 107:\r\n\t\t\tdisplayRegisterResult(\"此手机号不存在\");\r\n\t\t\tbreak;\r\n\t\tcase 108:\r\n\t\t\tToast.makeText(this, \"验证短信稍后发送到您手机\", Toast.LENGTH_LONG).show();\r\n\t\t\tbreak;\r\n\t\tcase 109:\r\n\t\t\tdisplayRegisterResult(\"短信发送失败\");\r\n\t\t\tbreak;\r\n\t\tcase 110:\r\n\t\t\tdisplayRegisterResult(\"短信验证码超时,请重新获取验证码\");\r\n\t\t\tbreak;\r\n\t\tcase 111:\r\n\t\t\tdisplayRegisterResult(\"短信验证码不正确\");\r\n\t\t\tbreak;\r\n\t\tcase 112:\r\n\t\t\tdisplayRegisterResult(\"短信验证通过\");\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tdisplayRegisterResult(\"服务器内部错误\");\r\n\t\t}\r\n\t\tenableYzBtnHandler.sendEmptyMessageDelayed(1, 1000);\r\n\t}", "private void sendVerificationCode(String phone_number){\n Log.d(TAG, \"sendVerificationCode: SENDING OTP\");\n progressBar.setVisibility(View.VISIBLE);\n PhoneAuthProvider.getInstance().verifyPhoneNumber(\n phone_number,\n 60,\n TimeUnit.SECONDS,\n TaskExecutors.MAIN_THREAD,\n mCallBack\n );\n }", "@Override\n public void run() {\n PreferenceManager.getDefaultSharedPreferences(AuthenticatorExample.this)\n .edit().putBoolean(\"is_authenticated\", true).commit();\n // Notify the service that authentication is complete\n notifyAuthenticated();\n // Close the Activity\n finish();\n }", "@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential)\n {\n signInWithPhoneAuthCredential(phoneAuthCredential);\n\n }", "private void signOut() {\n mAuth.signOut();\n }", "@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n final String code = phoneAuthCredential.getSmsCode();\n if (code != null) {\n OTP.setText(code);\n verifyCode(code);\n }\n }", "public void accept()\n { ua.accept();\n changeStatus(UA_ONCALL);\n if (ua_profile.hangup_time>0) automaticHangup(ua_profile.hangup_time); \n printOut(\"press 'enter' to hangup\"); \n }", "public void run() {\n onSignupSuccess();\n // onSignupFailed();\n progressDialog.dismiss();\n }", "public void signOutOfDD()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignOutLink();\n\t\t\n\t}", "public void sendOTP(String username){\n }", "public static void schoolSigninEnd(NetSocket socket) {\n String data = \"CS01*868807049006736*0046*SCHOOLSIGNINEND,20200423142625I0445,1\";\n String deviceId = \"868807049006736\";\n send(socket, data, deviceId);\n }", "@Override\r\n public void onClick(View v) {\r\n try {\r\n InputMethodManager imm = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);\r\n imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);\r\n } catch (Exception e) {\r\n // TODO: handle exception\r\n }\r\n\r\n otp = OTP_ET_1.getText().toString() +\r\n OTP_ET_2.getText().toString() + OTP_ET_3.getText().toString() +\r\n OTP_ET_4.getText().toString();\r\n if (otp.equals(\"null\")||otp.isEmpty()||otp.length()<4){\r\n Toast.makeText(ThirdActivity.this, \"Please enter OTP\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n\r\n HashMap<String, String> params = new HashMap<>();\r\n params.put(\"action\", \"verifyOtp\");\r\n params.put(\"center_id\", centreId);\r\n params.put(\"otp\", otp);\r\n params.put(\"mobile\", number);\r\n progressDialog.show();\r\n apiCall.sendData(Request.Method.POST, OTP_VERIFY, params, \"sendOtp\");\r\n\r\n }", "public void finishSession() {\n \t\trunning = false;\n \t}", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tL.i(Constants.SERVICE + \" sign in \"\r\n\t\t\t\t\t\t\t\t+ Constants.SERVER_IP + \" \"\r\n\t\t\t\t\t\t\t\t+ Constants.SERVER_PORT);\r\n\t\t\t\t\t\tsmack.connect(Constants.SERVER_IP,\r\n\t\t\t\t\t\t\t\tConstants.SERVER_PORT, Constants.SERVICE);\r\n\r\n\t\t\t\t\t\tfinal String result = smack.regist(usernameStr, passwordStr);\r\n\t\t\t\t\t\tL.i(\"sign in \" + result);\r\n\t\t\t\t\t\trunOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\tloading.dismiss();\r\n\t\t\t\t\t\t\t\tif(result.equals(\"0\"))\r\n\t\t\t\t\t\t\t\t\tT.mToast(SignUpActivity.this, \"Error\");\r\n\t\t\t\t\t\t\t\tif(result.equals(\"1\"))\r\n\t\t\t\t\t\t\t\t\tT.mToast(SignUpActivity.this,\r\n\t\t\t\t\t\t\t\t\t\t\t\"Sign in successfully\");\r\n\t\t\t\t\t\t\t\tif(result.equals(\"2\"))\r\n\t\t\t\t\t\t\t\t\tT.mToast(SignUpActivity.this, \"This user exists\");\r\n\t\t\t\t\t\t\t\tif(result.equals(\"3\"))\r\n\t\t\t\t\t\t\t\t\tT.mToast(SignUpActivity.this, \"Error\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t}", "private void signOut(){\n LoginSharedPreference.endLoginSession(this);\n Intent intent = new Intent(this,LoginActivity.class);\n startActivity(intent);\n finish();\n }", "public void onLogout() {\n ParseUser.logOut();\n\n promptForLogin();\n }", "@Override\n public void run() {\n LogoutHelper.logout(context, AppMessage.TOAST_MESSAGE_SESSION_EXPIRED);\n }", "private void onForgetPwd() {\n Intent intent = new Intent(this, ForgotPasswordActivity.class);\n startActivity(intent);\n finish();\n }", "@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }", "@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }", "@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }", "@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }", "@Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Toast.makeText(Resetpasswordpage.this, \"Email Sent\", Toast.LENGTH_SHORT).show();\n Intent resetpasswordintent = new Intent(Resetpasswordpage.this, Loginpage.class);\n startActivity(resetpasswordintent);\n //close activity when done\n finish();\n } else {\n //otherwise create new toast (error)\n Toast.makeText(Resetpasswordpage.this, \"Please enter correct details\", Toast.LENGTH_SHORT).show();\n }\n }", "public void logOut() {\n\t\tToken.getIstance().setHashPassword(null);\n\t}", "private void signOut() {\n mGoogleSignInClient.signOut()\n .addOnCompleteListener(this, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n // ...\n Log.d(TAG, \"Log out successful\");\n Toast.makeText(HomeView.this, \"Log out successful\", Toast.LENGTH_SHORT).show();\n Intent main = new Intent(HomeView.this, MainActivity.class);\n startActivity(main);\n finish();\n }\n });\n }", "public void logout(){\r\n\t\t// Creating register message\r\n\t\tmessageToServer = GET_LOGOUT_KEYWORD;\t\t\t\t\r\n\r\n\t\t// Sending message\r\n\t\tpw.println(messageToServer);\t\t\r\n\t\tpw.flush();\r\n\r\n\t\t// Closing connection\r\n\t\ttry {\r\n\r\n\t\t\tif(client != null) \r\n\t\t\t\tclient.close();\r\n\r\n\t\t\tif(pw != null) \r\n\t\t\t\tpw.close();\r\n\r\n\t\t\tif(br != null) \r\n\t\t\t\tbr.close();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(\"[EXCEPTION] closing streams, socket\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void onUserNeedLogout() {\n\t\t\n\t}", "@Override\n\tpublic void onUserNeedLogout() {\n\t\t\n\t}", "public void enterOTPActions(String otp){\n\t\tdeviceHelper.writeInputActions(signUpObjects.OTPtextfield,otp);\n\t}", "private void signOut() {\n mAuth.signOut();\n updateUI(null);\n }", "private void signOut () {\n mAuth.signOut();\n textViewStatus.setText(\"Signed Out\");\n }", "public void onSignOut() {\n SharedPreferences userPrefs = PreferenceManager.getDefaultSharedPreferences(\n TBLoaderAppContext.getInstance());\n SharedPreferences.Editor editor = userPrefs.edit();\n editor.clear().apply();\n mTbSrnHelper = null;\n mUserPrograms = null;\n }", "public void logout() {\n\n if (WarehouseHelper.warehouse_reserv_context.getUser().getId() != null) {\n //Save authentication line in HisLogin table\n HisLogin his_login = new HisLogin(\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName()\n + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + WarehouseHelper.warehouse_reserv_context.getUser().getLogin(),\n GlobalVars.APP_HOSTNAME, GlobalMethods.getStrTimeStamp()));\n his_login.setCreateId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n his_login.setWriteId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n\n String str = String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName() + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + PackagingVars.context.getUser().getLogin(), GlobalVars.APP_HOSTNAME,\n GlobalMethods.getStrTimeStamp());\n his_login.setMessage(str);\n\n str = \"\";\n his_login.create(his_login);\n\n //Reset the state\n state = new S001_ReservPalletNumberScan();\n\n this.clearContextSessionVals();\n\n connectedUserName_label.setText(\"\");\n }\n\n }", "@Override\n\tpublic void onSignInSucceeded() {\n\n\t}", "public void run() {\n onSignupSuccess();\n // onSignupFailed();\n progressDialog.dismiss();\n }", "public void run() {\n onSignupSuccess();\n // onSignupFailed();\n progressDialog.dismiss();\n }", "public void run() {\n onSignupSuccess();\n // onSignupFailed();\n progressDialog.dismiss();\n }", "public void run() {\n onSignupSuccess();\n // onSignupFailed();\n progressDialog.dismiss();\n }", "public void run() {\n onSignupSuccess();\n // onSignupFailed();\n progressDialog.dismiss();\n }", "public void run() {\n onSignupSuccess();\n // onSignupFailed();\n progressDialog.dismiss();\n }", "public void run() {\n onSignupSuccess();\n // onSignupFailed();\n progressDialog.dismiss();\n }", "public void onLogOut(View view) {\n\n\t\t// if (doubleBackToExitPressedOnce)\n\t\t// {\n\t\t// Satyen: we are removing PIN here\n\t\teditor.remove(\"pin\");\n\t\teditor.clear();\n\t\teditor.commit();\n\n\t\t// Satyen: unsubscribing to channels\n\t\tSet<String> setOfAllSubscriptions = PushService.getSubscriptions(this);\n\t\tSystem.out.println(\">>>>>>> Channels before clearing - \"\n\t\t\t\t+ setOfAllSubscriptions.toString());\n\t\tfor (String setOfAllSubscription : setOfAllSubscriptions) {\n\t\t\tSystem.out.println(\">>>>>>> MainActivity::onLogOut() - \"\n\t\t\t\t\t+ setOfAllSubscription);\n\t\t\tPushService.unsubscribe(this, setOfAllSubscription);\n\t\t}\n\t\tsetOfAllSubscriptions = PushService.getSubscriptions(this);\n\t\tSystem.out.println(\">>>>>>> Channels after cleared - \"\n\t\t\t\t+ setOfAllSubscriptions.toString());\n\t\tParseUser.logOut();\n\t\tglobalVariable.resetOnLogout2();\n\t\tGlobalVariable.resetOnLogout();\n\t\tnextIntent = new Intent(this, LoginActivity.class);\n\t\tnextIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK\n\t\t\t\t| Intent.FLAG_ACTIVITY_CLEAR_TASK);\n\t\tstartActivity(nextIntent);\n\t\t// finish();\n\n\t\t// }\n\t\t//\n\t\t// doubleBackToExitPressedOnce = true;\n\t\t// Toast.makeText(this, \"Click again to logout\",\n\t\t// Toast.LENGTH_SHORT).show();\n\t\t//\n\t\t// new Handler().postDelayed(new Runnable() {\n\t\t//\n\t\t// @Override\n\t\t// public void run() {\n\t\t// doubleBackToExitPressedOnce=false;\n\t\t// }\n\t\t// }, 2000);\n\t\t//\n\n\t\t// nextIntent = new Intent(this, LoginActivity.class);\n\t\t// startActivity(nextIntent);\n\t}", "private void signOut() {\n mGoogleSignInClient.signOut().addOnCompleteListener(this, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n updateUI(null);\n }\n });\n }", "public void run() {\n if(signedUp == 1) {\n onSignupSuccess();\n } else{\n onSignupFailed();\n }\n //\n progressDialog.dismiss();\n }" ]
[ "0.6554807", "0.60525125", "0.6029323", "0.6016405", "0.5978794", "0.5955205", "0.5834267", "0.5803168", "0.57644975", "0.57525945", "0.5752", "0.5741234", "0.5730717", "0.572982", "0.5716134", "0.56909734", "0.5688801", "0.5671939", "0.56566244", "0.5637943", "0.5631793", "0.55714446", "0.55687934", "0.5561331", "0.55536747", "0.55535775", "0.55493367", "0.5538986", "0.5536835", "0.55212474", "0.5510836", "0.5507991", "0.5483397", "0.54821134", "0.5477247", "0.5458082", "0.54374844", "0.54310644", "0.54294664", "0.5423539", "0.54119915", "0.5407379", "0.54048365", "0.5395449", "0.53827417", "0.53770185", "0.5370872", "0.53675246", "0.53609884", "0.53550917", "0.5353163", "0.53490067", "0.53325176", "0.53295374", "0.5325629", "0.5325629", "0.5312985", "0.5306469", "0.53027564", "0.5290791", "0.5289442", "0.52706677", "0.5269267", "0.5265424", "0.5254969", "0.5248523", "0.52472275", "0.5246938", "0.52469283", "0.5244776", "0.5240607", "0.5233416", "0.5225532", "0.52240336", "0.5219947", "0.52052706", "0.52052706", "0.52052706", "0.52052706", "0.5192463", "0.51836455", "0.518075", "0.51776713", "0.5177417", "0.5177417", "0.51747286", "0.51707983", "0.51666933", "0.51643354", "0.51612645", "0.5155965", "0.5153319", "0.5153319", "0.5153319", "0.5153319", "0.5153319", "0.5153319", "0.5153319", "0.515163", "0.5145675", "0.51432836" ]
0.0
-1
Add your Consumer Key and Consumer Secret Key generated while creating app on Twitter. See "Keys and access Tokens" in your app on twitter to find these keys.
public void onmethod() { Log.e("onmethod","log"); TwitterAuthConfig authConfig = new TwitterAuthConfig(TWITTER_KEY, TWITTER_SECRET); /* Fabric.with(getApplicationContext(), new com.twitter.sdk.android.Twitter(authConfig));*/ mTwitterAuthClient= new TwitterAuthClient(); setContentView(R.layout.activity_otp); // Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); // setSupportActionBar(toolbar); ivLoginTwitter=(ImageView) findViewById(R.id.ivLoginTwitter); ivLoginTwitter.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Log.e("onclick","log"); mTwitterAuthClient.authorize(OTPActivity.this, new Callback<TwitterSession>() { @Override public void success(Result<TwitterSession> result) { Log.e("TwitterKit", "Login Sucess"); session = com.twitter.sdk.android.Twitter.getSessionManager().getActiveSession(); com.twitter.sdk.android.Twitter.getApiClient(session).getAccountService() .verifyCredentials(true, false, new Callback<User>() { @Override public void success(Result<User> userResult) { Log.e("TwitterKit", "twitter on Sucess"); User user = userResult.data; twitterImage = user.profileImageUrl; Log.e("TwitterKit",""+twitterImage); screenname = user.screenName; Log.e("TwitterKit",""+screenname); username = user.name; Log.e("TwitterKit",""+username); location = user.location; Log.e("TwitterKit",""+location); timeZone = user.timeZone; Log.e("TwitterKit",""+timeZone); description = user.description; Log.e("TwitterKit",""+description); usm.editor.putString(usm.KEY_NAME, username); usm.editor.putString(usm.KEY_EMAIL, screenname); usm.editor.putString(usm.KEY_URL,twitterImage); usm.editor.putBoolean(usm.KEY_TWITTER_LOGIN, true); Conditionclass conditionclass=new Conditionclass(3); usm.editor.commit(); gotoProfileActivity(); } @Override public void failure(TwitterException e) { } }); // loginButton.setVisibility(View.GONE); } @Override public void failure(TwitterException exception) { Log.e("TwitterKit", "Login with Twitter failure", exception); } }); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setOAuthConsumer(String consumerKey, String consumerSecret);", "private void initTwitterConfigs() {\n consumerKey = getString(com.socialscoutt.R.string.twitter_consumer_key);\n consumerSecret = getString(com.socialscoutt.R.string.twitter_consumer_secret);\n }", "public void twitterConfiguration() {\n ConfigurationBuilder cb = new ConfigurationBuilder();\n\n cb.setDebugEnabled(true);\n//Cl\\u00e9 3\n cb.setOAuthConsumerKey(\"bHAfupgNYRVoSC27eHRqg\");\n cb.setOAuthConsumerSecret(\"GgxgSLDO8Rqaoctl2cPlPct95dNtq31rPF8HHNmi9g\");\n cb.setOAuthAccessToken(\"1272243708-zVoQBEQPJZpPuuzzq6nhhiVfveo8VaxzSaVLpJj\");\n cb.setOAuthAccessTokenSecret(\"VcwmL284xm80uZHIYUarkWRmsqyFM2WWsX8qdm1qoQpAe\");\n //Cl\\u00e9 4\n // cb.setOAuthConsumerKey(\"Pbi0uLWNe1fIEZLUGKTwqA\");\n // cb.setOAuthConsumerSecret(\"LWf4225LihNfBUEplzkEMXcoqsG5XP3sjOJpavwahqc\");\n // cb.setOAuthAccessToken(\"1272243708-S0bIRKBCfwzEwdc1FY8EMZFPsbtcwj4kz400wyV\");\n // cb.setOAuthAccessTokenSecret(\"0Dw1q4CjoJym3GlccCBdmoaRpBfvOTVfIryWVjqX51pWv\");\n\n c = cb.build();\n TwitterFactory tf = new TwitterFactory(c);\n twitter = tf.getInstance();\n}", "public GUPAConsumer(String key, String secret) {\n oauthConsumer = new Consumer(key, secret);\n oauthConsumer.setSignatureMethod(\"HMAC-SHA1\");\n }", "public static Twitter crearTwitter(String ConsumerKey, String ConsumerSecret, String AccessToken, String TokenSecret){\n \tConfigurationBuilder cb = new ConfigurationBuilder();\n \tcb.setDebugEnabled(true)\n \t .setOAuthConsumerKey(ConsumerKey)\n \t .setOAuthConsumerSecret(ConsumerSecret)\n \t .setOAuthAccessToken(AccessToken)\n \t .setOAuthAccessTokenSecret(TokenSecret);\n \tTwitterFactory tf = new TwitterFactory(cb.build());\n \treturn tf.getInstance();\n\t}", "private static twitter4j.Twitter createClient() {\n \t\ttwitter4j.Twitter client = TwitterFactory.getSingleton();\n \t\tclient.setOAuthConsumer(consumerKey, consumerSecret);\n \t\treturn client;\n \t}", "public static Twitter crearTwitter(){\n \tConfigurationBuilder cb = new ConfigurationBuilder();\n \tcb.setDebugEnabled(true)\n \t .setOAuthConsumerKey(\"WX0FvnWENusasa09R8IVG6FFm\")\n \t .setOAuthConsumerSecret(\"Z6cXLTiqkU6NvlhqEHD7Br3S0jhmtUiLPvOPXCqLcrhQKFMYNr\")\n \t .setOAuthAccessToken(\"509341639-6R41f6i6WUAQn1xfzI8uNbPeyIhQvkMnXYaszNv6\")\n \t .setOAuthAccessTokenSecret(\"We08mCgnLMPXn6zl8UrKwGegac0Z4ksrI0LwhAbBoxp5q\");\n \tTwitterFactory tf = new TwitterFactory(cb.build());\n \treturn tf.getInstance();\n\t}", "public static void createApplication(String consumerKey, String consumerSecret, int tenantId) {\n try (Connection connection = IdentityDatabaseUtil.getDBConnection();\n PreparedStatement prepStmt = connection.prepareStatement(SQLQueries.OAuthAppDAOSQLQueries.ADD_OAUTH_APP)) {\n prepStmt.setString(1, consumerKey);\n prepStmt.setString(2, consumerSecret);\n prepStmt.setString(3, \"testUser\");\n prepStmt.setInt(4, tenantId);\n prepStmt.setString(5, UserCoreConstants.PRIMARY_DEFAULT_DOMAIN_NAME);\n prepStmt.setString(6, \"oauth2-app\");\n prepStmt.setString(7, \"OAuth-2.0\");\n prepStmt.setString(8, \"some-call-back\");\n prepStmt.setString(9, \"refresh_token urn:ietf:params:oauth:grant-type:saml2-bearer implicit password \" +\n \"client_credentials iwa:ntlm authorization_code urn:ietf:params:oauth:grant-type:jwt-bearer\");\n prepStmt.execute();\n connection.commit();\n } catch (SQLException e) {\n Assert.fail(\"Unable to add Oauth application.\");\n }\n }", "public static Twitter createTwitterObject() {\n\t\tOAuth2Token token = createFactory();\n\t\tConfigurationBuilder cb = new ConfigurationBuilder();\n\n\t\tcb.setApplicationOnlyAuthEnabled(true);\n\t\tcb.setOAuthConsumerKey(Secret.cKey);\n\t\tcb.setOAuthConsumerSecret(Secret.cSecret);\n\t\tcb.setOAuth2TokenType(token.getTokenType());\n\t\tcb.setOAuth2AccessToken(token.getAccessToken());\n\n\t\tTwitter twitter = new TwitterFactory(cb.build()).getInstance();\n\t\t\n\t\treturn twitter;\n }", "private TwitterAPI(){\n\t\t\n\t}", "@Override\n public void onCreate() {\n super.onCreate();\n singleton = this;\n /* TwitterAuthConfig authConfig = new TwitterAuthConfig(TWITTER_KEY, TWITTER_SECRET);\n Fabric.with(this, new Twitter(authConfig));*/\n printHashKey();\n }", "@Override\r\n protected String appSecret() {\r\n return \"\";\r\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n SharedPreferences settings = getSharedPreferences(\"twit\", 0);\n String key = settings.getString(\"accesstoken0\", null);\n String secret = settings.getString(\"accesstoken1\", null);\n final Button btnsetpin = (Button)findViewById(R.id.btnpin);\n final Button btnupdate = (Button)findViewById(R.id.btnupdate);\n final EditText status = (EditText)findViewById(R.id.status);\n \n \n if(key==null)\n { \n\t oauthClient = new OAuthSignpostClient(JTWITTER_OAUTH_KEY, jTWITTER_OAUTH_SECRET, \"oob\");\n\t URI uri = oauthClient.authorizeUrl();\n\t status.setVisibility(View.INVISIBLE);\n\t btnupdate.setVisibility(View.INVISIBLE);\n\t \n\t final Dialog dialog = new Dialog(this);\n\t dialog.setContentView(R.layout.twdialog);\n\t WebView wv = (WebView)dialog.findViewById(R.id.webtweet);\n\t wv.loadUrl(uri.toString());\n\t btnsetpin.setOnClickListener(new OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\n\t\t\t\t\tdialog.show();\n\t\t\t\t}\n\n });\n\n\t\t\tfinal EditText nilaipin = (EditText)dialog.findViewById(R.id.pin);\n\t\t\tnilaipin.setOnClickListener(new OnClickListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tnilaipin.setText(\"\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\n\n\t\t\tButton btnok = (Button)dialog.findViewById(R.id.btntweet);\n\t\t\tbtnok.setOnClickListener(new OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tpin=nilaipin.getText().toString();\n\t\t\t\t\tsetpin=true;\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\tstatus.setVisibility(View.VISIBLE);\n\t\t\t \tbtnsetpin.setVisibility(View.INVISIBLE);\n\t\t\t \tbtnupdate.setVisibility(View.VISIBLE);\n\t\t\t\t}\n\n });\n\n }\n else\n {\n \t oauthClient = new OAuthSignpostClient(JTWITTER_OAUTH_KEY, jTWITTER_OAUTH_SECRET, key, secret);\n \t twitter = new Twitter(\"nuraini\", oauthClient);\n \t setpin = false;\n \t status.setVisibility(View.VISIBLE);\n \t btnsetpin.setVisibility(View.INVISIBLE);\n \t btnupdate.setVisibility(View.VISIBLE);\n \t btnupdate.setOnClickListener(new OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\ttwitter.setSource(\"keyrani\");\t\n\t\t\t\t\ttry{\n\t\t\t\t\t\ttwitter.updateStatus(status.getText().toString());\n\t\t\t\t\t\t\n\t\t\t\t\t}catch (Repetition e) {\n\t\t\t\t\t\t Toast.makeText(TwitUpdate.this, \"status tdk boleh sama\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\n });\n \t \n }\n \n \n \n \n }", "@Override\n public OAuthApplicationInfo createApplication(OAuthAppRequest oauthAppRequest) throws APIManagementException {\n OAuthApplicationInfo oAuthApplicationInfo = oauthAppRequest.getOAuthApplicationInfo();\n\n // Subscriber's name should be passed as a parameter, since it's under the subscriber the OAuth App is created.\n String userId = (String) oAuthApplicationInfo.getParameter(ApplicationConstants.\n OAUTH_CLIENT_USERNAME);\n String applicationName = oAuthApplicationInfo.getClientName();\n String keyType = (String) oAuthApplicationInfo.getParameter(ApplicationConstants.APP_KEY_TYPE);\n String callBackURL = (String) oAuthApplicationInfo.getParameter(ApplicationConstants.APP_CALLBACK_URL);\n if (keyType != null) {\n applicationName = applicationName + '_' + keyType;\n }\n\n if (log.isDebugEnabled()) {\n log.debug(\"Trying to create OAuth application :\" + applicationName);\n }\n\n String tokenScope = (String) oAuthApplicationInfo.getParameter(\"tokenScope\");\n String[] tokenScopes = new String[1];\n tokenScopes[0] = tokenScope;\n\n org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo info = null;\n\n try {\n org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo applicationToCreate =\n new org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo();\n applicationToCreate.setIsSaasApplication(oAuthApplicationInfo.getIsSaasApplication());\n applicationToCreate.setCallBackURL(callBackURL);\n applicationToCreate.setClientName(applicationName);\n applicationToCreate.setAppOwner(userId);\n applicationToCreate.setJsonString(oAuthApplicationInfo.getJsonString());\n applicationToCreate.setTokenType(oAuthApplicationInfo.getTokenType());\n info = createOAuthApplicationbyApplicationInfo(applicationToCreate);\n } catch (Exception e) {\n handleException(\"Can not create OAuth application : \" + applicationName, e);\n } \n\n if (info == null || info.getJsonString() == null) {\n handleException(\"OAuth app does not contains required data : \" + applicationName,\n new APIManagementException(\"OAuth app does not contains required data\"));\n }\n\n oAuthApplicationInfo.addParameter(\"tokenScope\", tokenScopes);\n oAuthApplicationInfo.setClientName(info.getClientName());\n oAuthApplicationInfo.setClientId(info.getClientId());\n oAuthApplicationInfo.setCallBackURL(info.getCallBackURL());\n oAuthApplicationInfo.setClientSecret(info.getClientSecret());\n oAuthApplicationInfo.setIsSaasApplication(info.getIsSaasApplication());\n\n try {\n JSONObject jsonObject = new JSONObject(info.getJsonString());\n\n if (jsonObject.has(ApplicationConstants.\n OAUTH_REDIRECT_URIS)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_REDIRECT_URIS, jsonObject.get(ApplicationConstants.OAUTH_REDIRECT_URIS));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_NAME)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_NAME, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_NAME));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_GRANT)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_GRANT, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_GRANT));\n }\n } catch (JSONException e) {\n handleException(\"Can not retrieve information of the created OAuth application\", e);\n }\n\n return oAuthApplicationInfo;\n\n }", "public void buildTwitterBaseConfiguration() {\n ConfigurationBuilder configurationBuilder = new ConfigurationBuilder();\n configurationBuilder\n .setOAuthConsumerKey(getBaseContext().getString(R.string.consumer_key))\n .setOAuthConsumerSecret(getBaseContext().getString(R.string.consumer_secret))\n .setOAuthAccessToken(getBaseContext().getString(R.string.access_token))\n .setOAuthAccessTokenSecret(getBaseContext().getString(R.string.access_token_secret));\n\n Configuration configuration = configurationBuilder.build();\n\n twitterStreamFactory = new TwitterStreamFactory(configuration);\n }", "public CTwitterPut() {\n//\t\trequestAccessToken();\n\t}", "public String getAppSecret() {\r\n return appSecret;\r\n }", "public OAuthConsumer getOAuthConsumer() throws IOException {\r\n\t\tProperties properties = getProperties();\r\n\t\tString consumerKeyStr = properties.getProperty(\"twitter.consumer.key\");\r\n\t\tString consumerSecretStr = properties.getProperty(\"twitter.consumet.secret\");\r\n\t\tString accessTokenStr = properties.getProperty(\"twitter.access.token\");\r\n\t\tString accessTokenSecretStr = properties.getProperty(\"twitter.access.secret\");\r\n\t\tOAuthConsumer oAuthConsumer = new CommonsHttpOAuthConsumer(consumerKeyStr, consumerSecretStr);\r\n\t\toAuthConsumer.setTokenWithSecret(accessTokenStr, accessTokenSecretStr);\r\n\t\treturn oAuthConsumer;\r\n\t}", "public static Twitter getTwitter()\r\n\t{\r\n\t\tOAuth2Token token;\r\n\r\n\t\t//\tFirst step, get a \"bearer\" token that can be used for our requests\r\n\t\ttoken = getOAuth2Token();\r\n\r\n\t\t//\tNow, configure our new Twitter object to use application authentication and provide it with\r\n\t\t//\tour CONSUMER key and secret and the bearer token we got back from Twitter\r\n\t\tConfigurationBuilder cb = new ConfigurationBuilder();\r\n\r\n\t\tcb.setApplicationOnlyAuthEnabled(true);\r\n\r\n\t\tcb.setOAuthConsumerKey(CONSUMER_KEY);\r\n\t\tcb.setOAuthConsumerSecret(CONSUMER_SECRET);\r\n\r\n\t\tcb.setOAuth2TokenType(token.getTokenType());\r\n\t\tcb.setOAuth2AccessToken(token.getAccessToken());\r\n cb.setOAuthAccessToken(\"728169914943426560-otPFsp5rQmgCnT3SccdGPKmFDMoyTDk\");\r\n cb.setOAuthAccessTokenSecret(\"hASigOfCkti9vdpc6ZxroygpIDCd5xi8rpn0Kq619OSFu\");\r\n\r\n\t\t//\tAnd create the Twitter object!\r\n\t\treturn new TwitterFactory(cb.build()).getInstance();\r\n\r\n\t}", "public static void initializeTwitterAccount()\n\t{\n\t\tString cK = \"\";\n\t\tString cS = \"\";\n\t\tString aT = \"\";\n\t\tString aTS = \"\";\n\t\ttA = new TwitterAccount(cK, cS, aT, aTS);\n\t}", "private static String generateSecret(Accessor accessor, Consumer consumer) {\n return generateHash(accessor.getToken() + consumer.getSecret() + System.nanoTime());\n }", "@Override\n public void configure(Context context) {\n consumerKey = context.getString(TwitterSourceConstant.CONSUMER_KEY);\n consumerSecret = context.getString(TwitterSourceConstant.CONSUMER_SECRET_KEY);\n accessToken = context.getString(TwitterSourceConstant.ACCESS_TOKEN);\n accessTokenSecret = context.getString(TwitterSourceConstant.ACCESS_TOKEN_SECRET);\n\n ConfigurationBuilder cb = new ConfigurationBuilder();\n cb.setOAuthConsumerKey(consumerKey);\n cb.setOAuthConsumerSecret(consumerSecret);\n cb.setOAuthAccessToken(accessToken);\n cb.setOAuthAccessTokenSecret(accessTokenSecret);\n cb.setJSONStoreEnabled(true);\n\n String keywordString = context.getString(TwitterSourceConstant.KEYWORDS,TwitterSourceConstant.DEFAULT_KEYWORD);\n //keywords = keywordString.replace(TwitterSourceConstant.COMMA_CHARACTER, TwitterSourceConstant.OR_CHARACTER);\n\n if (keywordString.trim().length() == 0) {\n keywords = new String[0];\n } else {\n keywords = keywordString.split(\",\");\n for (int i = 0; i < keywords.length; i++) {\n keywords[i] = keywords[i].trim();\n }\n }\n twitterStream = new TwitterStreamFactory(cb.build()).getInstance();\n }", "public static String getAccessTokenSecret(Context context){\n\t\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n\t\t\treturn prefs.getString(TWITTER_ACCESS_TOKEN_SECRET, null);\n\t\t}", "public TwitterClient(Context context) {\n\t\tsuper(context, REST_API_CLASS, REST_URL, REST_CONSUMER_KEY, REST_CONSUMER_SECRET, REST_CALLBACK_URL);\n\t}", "public static void setAccessTokenSecret(String secret, Context context){\n\t\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n\t\t\tSharedPreferences.Editor prefEditor = prefs.edit();\n\t\t\tprefEditor.putString(TWITTER_ACCESS_TOKEN_SECRET, secret);\n\t\t\tprefEditor.commit();\n\t\t}", "private static Twitter getAccessingObject() throws TwitterException{\n\t\t\n\t\tConfigurationBuilder cb = new ConfigurationBuilder();\n\t cb.setDebugEnabled(true)\n\t .setOAuthConsumerKey(CONSUMER_KEY)\n\t .setOAuthConsumerSecret(CONSUMER_SECRET)\n\t .setOAuthAccessToken(ACCESS_KEY)\n\t \t.setOAuthAccessTokenSecret(ACCESS_SECRET);\n\n\t TwitterFactory tf = new TwitterFactory(cb.build());\n\t Twitter twitter = tf.getInstance();\n\t\t\n\t\treturn twitter;\n\t}", "public void addAppsAndGenerateKeys() throws Exception {\n //TEST_USER_1\n //Subscribe to API with a new application\n HttpResponse applicationResponse = user1ApiStore\n .createApplication(TEST_APPLICATION, \"Test Application\", APIThrottlingTier.UNLIMITED.getState(),\n ApplicationDTO.TokenTypeEnum.JWT);\n assertEquals(applicationResponse.getResponseCode(), HttpStatus.SC_OK, \"Response code is not as expected\");\n\n user1ApplicationId = applicationResponse.getData();\n //Generate production key\n //generate keys for the subscription\n ApplicationKeyDTO applicationKeyDTO = user1ApiStore\n .generateKeys(user1ApplicationId, \"3600\", USER_1_TEST_APP_INITIAL_CBU,\n ApplicationKeyGenerateRequestDTO.KeyTypeEnum.PRODUCTION, null, grantTypes);\n assertNotNull(applicationKeyDTO.getToken().getAccessToken());\n\n //TEST_USER_2\n //Subscribe to API with a new application\n\n applicationResponse = user2ApiStore\n .createApplication(TEST_APPLICATION, \"Test Application\", APIThrottlingTier.UNLIMITED.getState(),\n ApplicationDTO.TokenTypeEnum.JWT);\n assertEquals(applicationResponse.getResponseCode(), HttpStatus.SC_OK, \"Response code is not as expected\");\n\n user2ApplicationId = applicationResponse.getData();\n\n //Generate production key\n applicationKeyDTO = user2ApiStore.generateKeys(user2ApplicationId, \"3600\", USER_2_TEST_APP_INITIAL_CBU,\n ApplicationKeyGenerateRequestDTO.KeyTypeEnum.PRODUCTION, null, grantTypes);\n assertNotNull(applicationKeyDTO.getToken().getAccessToken());\n }", "public TwitterClient(Context context) {\n super(context, REST_API_CLASS, REST_URL, REST_CONSUMER_KEY, REST_CONSUMER_SECRET, REST_CALLBACK_URL);\n }", "public Twitter() {\n \n }", "public Twitter() {\n map = new HashMap<>();\n }", "public static void main(String[] args) throws Exception {\n if (args.length != 2) {\n throw new java.lang.RuntimeException(\"Please supply your key & secret\");\n }\n String apiKey = args[0];\n String apiSecret = args[1];\n\n OAuthConsumer consumer = new DefaultOAuthConsumer(apiKey, apiSecret);\n OAuthProvider provider = new DefaultOAuthProvider(\n \"https://api.audioboom.com/oauth/request_token\",\n \"https://api.audioboom.com/oauth/access_token\",\n \"https://api.audioboom.com/oauth/authorize\");\n\n System.out.println(\"Fetching request token from audioBoom...\");\n\n // we do not support callbacks, thus pass OOB\n String authUrl = provider.retrieveRequestToken(consumer, OAuth.OUT_OF_BAND);\n\n System.out.println(\"Request token: \" + consumer.getToken());\n System.out.println(\"Token secret: \" + consumer.getTokenSecret());\n\n System.out.println(\"Now visit:\\n\" + authUrl + \"\\n... and grant this app authorization\");\n System.out.println(\"Enter the PIN code and hit ENTER when you're done:\");\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String pin = br.readLine();\n\n System.out.println(\"Fetching access token from Audioboo...\");\n\n provider.retrieveAccessToken(consumer, pin);\n System.out.println(\"Access token: \" + consumer.getToken());\n System.out.println(\"Token secret: \" + consumer.getTokenSecret());\n\n // Now that we have an access token we can use it to make authenticated requests to the API. For example, fetching account details from https://api.audioboom.com/account \n\n System.out.println(\"Fetching account details...\");\n URL url = new URL(\"https://api.audioboom.com/account\");\n HttpURLConnection request = (HttpURLConnection) url.openConnection();\n consumer.sign(request);\n request.connect();\n\n BufferedReader responseBody = new BufferedReader(new InputStreamReader(request.getInputStream()));\n String responseLine;\n while ((responseLine = responseBody.readLine()) != null)\n System.out.println(responseLine);\n }", "public Twitter() {\n\n }", "public static void setRequestTokenSecret(String secret, Context context){\n\t\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n\t\t\tSharedPreferences.Editor prefEditor = prefs.edit();\n\t\t\tprefEditor.putString(TWITTER_REQUEST_TOKEN_SECRET, secret);\n\t\t\tprefEditor.commit();\n\t\t}", "private void checkAppKeySetup() {\n if (APP_KEY.startsWith(\"CHANGE\") ||\n APP_SECRET.startsWith(\"CHANGE\")) {\n showToast(\"You must apply for an app key and secret from developers.dropbox.com, and add them to the DBRoulette ap before trying it.\");\n finish();\n return;\n }\n\n // Check if the app has set up its manifest properly.\n Intent testIntent = new Intent(Intent.ACTION_VIEW);\n String scheme = \"db-\" + APP_KEY;\n String uri = scheme + \"://\" + AuthActivity.AUTH_VERSION + \"/test\";\n testIntent.setData(Uri.parse(uri));\n PackageManager pm = getPackageManager();\n if (0 == pm.queryIntentActivities(testIntent, 0).size()) {\n showToast(\"URL scheme in your app's \" +\n \"manifest is not set up correctly. You should have a \" +\n \"com.dropbox.client2.android.AuthActivity with the \" +\n \"scheme: \" + scheme);\n finish();\n }\n }", "public Twitter() {\n u_map = new HashMap<>();\n }", "public void addKeySecretPair(String key, String secret) throws ClassicDatabaseException;", "protected OAuthConsumer getOAuthConsumer() {\r\n\t\tOAuthConsumer consumer = new CommonsHttpOAuthConsumer(apiConsumer.getConsumerKey(), apiConsumer.getConsumerSecret());\r\n//\t\tconsumer.setMessageSigner(new HmacSha1MessageSigner());\r\n//\t\tconsumer.setSigningStrategy(new AuthorizationHeaderSigningStrategy());\r\n\t\treturn consumer;\r\n\t}", "public static String getRequestTokenSecret(Context context){\n\t\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n\t\t\treturn prefs.getString(TWITTER_REQUEST_TOKEN_SECRET, null);\n\t\t}", "public void setAppSecret(String appSecret) {\r\n this.appSecret = appSecret == null ? null : appSecret.trim();\r\n }", "public Twitter() {\n\t\t\tuserMap = new HashMap<>();\n\t\t\tmaxFeed = 10;\n\t\t}", "public String generateClientSecret() {\n return clientSecretGenerator.generate().toString();\n }", "@Override\n public OAuthApplicationInfo mapOAuthApplication(OAuthAppRequest appInfoRequest)\n throws APIManagementException {\n\n //initiate OAuthApplicationInfo\n OAuthApplicationInfo oAuthApplicationInfo = appInfoRequest.getOAuthApplicationInfo();\n\n String consumerKey = oAuthApplicationInfo.getClientId();\n String tokenScope = (String) oAuthApplicationInfo.getParameter(\"tokenScope\");\n String[] tokenScopes = new String[1];\n tokenScopes[0] = tokenScope;\n String clientSecret = (String) oAuthApplicationInfo.getParameter(\"client_secret\");\n oAuthApplicationInfo.setClientSecret(clientSecret);\n //for the first time we set default time period.\n oAuthApplicationInfo.addParameter(ApplicationConstants.VALIDITY_PERIOD,\n getConfigurationParamValue(APIConstants.IDENTITY_OAUTH2_FIELD_VALIDITY_PERIOD));\n\n\n //check whether given consumer key and secret match or not. If it does not match throw an exception.\n org.wso2.carbon.apimgt.api.model.xsd.OAuthApplicationInfo info = null;\n try {\n info = getOAuthApplication(oAuthApplicationInfo.getClientId());\n if (!clientSecret.equals(info.getClientSecret())) {\n throw new APIManagementException(\"The secret key is wrong for the given consumer key \" + consumerKey);\n }\n\n } catch (Exception e) {\n handleException(\"Some thing went wrong while getting OAuth application for given consumer key \" +\n oAuthApplicationInfo.getClientId(), e);\n } \n if (info != null && info.getClientId() == null) {\n return null;\n }\n\n oAuthApplicationInfo.addParameter(\"tokenScope\", tokenScopes);\n oAuthApplicationInfo.setClientName(info.getClientName());\n oAuthApplicationInfo.setClientId(info.getClientId());\n oAuthApplicationInfo.setCallBackURL(info.getCallBackURL());\n oAuthApplicationInfo.setClientSecret(info.getClientSecret());\n oAuthApplicationInfo.setIsSaasApplication(info.getIsSaasApplication());\n\n try {\n JSONObject jsonObject = new JSONObject(info.getJsonString());\n\n if (jsonObject.has(ApplicationConstants.\n OAUTH_REDIRECT_URIS)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_REDIRECT_URIS, jsonObject.get(ApplicationConstants.OAUTH_REDIRECT_URIS));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_NAME)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_NAME, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_NAME));\n }\n\n if (jsonObject.has(ApplicationConstants.OAUTH_CLIENT_GRANT)) {\n oAuthApplicationInfo.addParameter(ApplicationConstants.\n OAUTH_CLIENT_GRANT, jsonObject.get(ApplicationConstants.OAUTH_CLIENT_GRANT));\n }\n } catch (JSONException e) {\n handleException(\"Can not read information from the retrieved OAuth application\", e);\n }\n\n if (log.isDebugEnabled()) {\n log.debug(\"Creating semi-manual application for consumer id : \" + oAuthApplicationInfo.getClientId());\n }\n\n\n return oAuthApplicationInfo;\n }", "private String key() {\n return \"secret\";\n }", "public Twitter() {\n followees = new HashMap<>();\n tweetList = new ArrayList<>();\n }", "public void setAppsecret(String appsecret) {\n this.appsecret = appsecret;\n }", "public Twitter() {\n usersMap = new HashMap<>();\n }", "public String getAppsecret() {\n return appsecret;\n }", "public Twitter() {\n }", "public static void run() throws TwitterException,\n\t\t\tSQLException, IOException {\n\t\t// just fill this\n\t\tConfigurationBuilder cb = new ConfigurationBuilder();\n\t\tcb.setDebugEnabled(true)\n\t\t\t\t.setOAuthConsumerKey(\"*\")\n\t\t\t\t.setOAuthConsumerSecret(\n\t\t\t\t\t\t\"*\")\n\t\t\t\t.setOAuthAccessToken(\n\t\t\t\t\t\t\"*-*\")\n\t\t\t\t.setOAuthAccessTokenSecret(\n\t\t\t\t\t\t\"*\");\n\n\t\tAWSCredentials credentials = new PropertiesCredentials(\n\t\t\t\tTweetGet.class.getResourceAsStream(\"AwsCredentials.properties\"));\n\t\tMysqlDataSource dataSource = new MysqlDataSource();\n\t\tdataSource.setUser(\"*\");\n\t\tdataSource.setPassword(\"*\");\n\t\tdataSource.setPort(3306);\n\t\tdataSource.setDatabaseName(\"TwitterDB\");\n\t\tdataSource\n\t\t\t\t.setServerName(\"*.rds.amazonaws.com\");\n\t\tConnection conn = null;\n\t\ttry {\n\t\t\tconn = dataSource.getConnection();\n\t\t} catch (SQLException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tfinal Statement sqlStatement = conn.createStatement();\n\t\t\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"===========================================\");\n\t\t\tSystem.out.println(\"Connecting to Twitter\");\n\t\t\tSystem.out.println(\"===========================================\\n\");\n\t\t\tTwitterStream twitterStream = new TwitterStreamFactory(cb.build())\n\t\t\t.getInstance();\n\n\tStatusListener listener = new StatusListener() {\n\t\t@Override\n\t\tpublic void onStatus(Status status) {\n\n\t\t\t\n\t\t\tif (status.getLang().equals(\"en\")) {\n\n\t\t\t\tString user_id = String.valueOf(status.getUser().getId());\n\t\t\t\tString created_at = String.valueOf(status.getCreatedAt());\n\t\t\t\tGeoLocation geo = status.getGeoLocation();\n\n\t\t\t\tif (geo != null) {\n\t\t\t\t\tString lon = String.valueOf(geo.getLongitude());\n \t\tString lat = String.valueOf(geo.getLatitude());\n \t\tString lon_lat = lon+\",\"+lat;\n \t\tString originaltext = status.getText();\n \t\tString[] words = originaltext.split(\"\\\\s\");\n \t\tStringBuffer message = new StringBuffer();\n \t\tfor(String word:words){\n \t\t\tif (word.contains(\"@\") || word.contains(\"#\") || word.contains(\"http\")){\n \t\t\t\t\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tif(word.contains(\"'\")){\n\t\t\t\t\t\t\t\tword = word.replace(\"'\", \"\");\n\t\t\t\t\t\t\t}\n \t\t\t\tword = word.replaceAll(\"[^A-Za-z0-9 ]\", \"\");\n\t\t\t\t\t\t\tmessage.append(word);\n\t\t\t\t\t\t\tmessage.append(\" \");\n \t\t\t}\n \t\t}\n\t\t\t\t\tString query = \"INSERT INTO tweets (tweet_id,coordinates,created_at,tweet_text) VALUES ('\"\n\t\t\t\t\t\t\t+ user_id\n\t\t\t\t\t\t\t+ \"','\"\n\t\t\t\t\t\t\t+ lon_lat\n\t\t\t\t\t\t\t+ \"','\"\n\t\t\t\t\t\t\t+ created_at\n\t\t\t\t\t\t\t+ \"','\"\n\t\t\t\t\t\t\t+ message.toString()\n\t\t\t\t\t\t\t+ \"')\";\n\t\t\t\t\tString queueMessage = user_id + \"_\" + message;\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tint sqlResult = sqlStatement.executeUpdate(query);\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\t//sqs.sendMessage(new SendMessageRequest(myQueueUrl,queueMessage));\n\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(query);\n\t\t\t\t\tSystem.out.println(message.toString());\n\t\t\t\t\tSystem.out.println(status.getLang());\n\t\t\t\t\tSystem.out.println(status.getGeoLocation()\n\t\t\t\t\t\t\t.getLatitude()\n\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t+ status.getGeoLocation().getLongitude());\n\t\t\t\t}\n\t\t\t\t// }\n\t\t\t}\n\t\t}\n\n\t\t@Override\n\t\tpublic void onDeletionNotice(\n\t\t\t\tStatusDeletionNotice statusDeletionNotice) {\n\t\t\t// System.out.println(\"Got a status deletion notice id:\" +\n\t\t\t// statusDeletionNotice.getStatusId());\n\t\t}\n\n\t\t@Override\n\t\tpublic void onTrackLimitationNotice(int numberOfLimitedStatuses) {\n\t\t\t// System.out.println(\"Got track limitation notice:\" +\n\t\t\t// numberOfLimitedStatuses);\n\t\t}\n\n\t\t@Override\n\t\tpublic void onScrubGeo(long userId, long upToStatusId) {\n\t\t\t// System.out.println(\"Got scrub_geo event userId:\" + userId +\n\t\t\t// \" upToStatusId:\" + upToStatusId);\n\t\t}\n\n\t\t@Override\n\t\tpublic void onStallWarning(StallWarning warning) {\n\t\t\tSystem.out.println(\"Got stall warning:\" + warning);\n\t\t}\n\n\t\t@Override\n\t\tpublic void onException(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t};\n\ttwitterStream.addListener(listener);\n\ttwitterStream.sample();\n\t\t} catch (AmazonServiceException ase) {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Caught an AmazonServiceException, which means your request made it \"\n\t\t\t\t\t\t\t+ \"to Amazon SQS, but was rejected with an error response for some reason.\");\n\t\t\tSystem.out.println(\"Error Message: \" + ase.getMessage());\n\t\t\tSystem.out.println(\"HTTP Status Code: \" + ase.getStatusCode());\n\t\t\tSystem.out.println(\"AWS Error Code: \" + ase.getErrorCode());\n\t\t\tSystem.out.println(\"Error Type: \" + ase.getErrorType());\n\t\t\tSystem.out.println(\"Request ID: \" + ase.getRequestId());\n\t\t} catch (AmazonClientException ace) {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Caught an AmazonClientException, which means the client encountered \"\n\t\t\t\t\t\t\t+ \"a serious internal problem while trying to communicate with SQS, such as not \"\n\t\t\t\t\t\t\t+ \"being able to access the network.\");\n\t\t\tSystem.out.println(\"Error Message: \" + ace.getMessage());\n\t\t}\n\n\t\t\n\t}", "public void setClientSecret(String clientSecret) {\n this.clientSecret = clientSecret;\n }", "void generateSecretKey() {\n\n Random rand = new Random();\n \n // randomly generate alphabet chars\n this.secretKey.setCharAt(0, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(1, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(4, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(5, (char) (rand.nextInt(26) + 'a'));\n\n // randomly generate special chars\n // special chars are between 33-47 and 58-64 on ASCII table\n if (rand.nextBoolean()) {\n this.secretKey.setCharAt(3, (char) (rand.nextInt(15) + '!'));\n this.secretKey.setCharAt(8, (char) (rand.nextInt(15) + '!'));\n } else {\n this.secretKey.setCharAt(3, (char) (rand.nextInt(7) + ':'));\n this.secretKey.setCharAt(8, (char) (rand.nextInt(7) + ':'));\n }\n \n // randomly generate int between 2 and 5\n this.secretKey.setCharAt(7, (char) (rand.nextInt(4) + '2'));\n }", "public static TwitterApplication getInstance() {\n return application;\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState)\n\t{\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\tsettings = getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);\n\t\t\n\t\tconsumer = new CommonsHttpOAuthConsumer(\"zzzNjnbayp7erOjgPv0Q\", \"eLOBBH8gP9ZkvuCz9Wv2ltk8wY2Ps2858C2Odj5IU1Q\");\n\t\tprovider = new DefaultOAuthProvider(\"http://twitter.com/oauth/request_token\", \n\t \t\t\"http://twitter.com/oauth/access_token\",\n\t \"http://twitter.com/oauth/authorize\");\n\t\tprovider.setOAuth10a(true);\n\t\t\n\t\tString token = settings.getString(TOKEN, \"\");\n\t String secret = settings.getString(SECRET, \"\");\n\t \n\t\tif (token == \"\" || secret == \"\")\n\t\t{\n\t\t\tIntent i = this.getIntent();\n\t\t\tif (i.getData() == null)\n\t\t\t{\n\t\t\t\tsendToTwitterOAuth();\n\t\t\t}\n\t\t} \n\t\telse\n\t\t{\n\t\t\tthis.token = token;\n\t\t\tthis.secret = secret;\n\t\t\tconsumer.setTokenWithSecret(this.token, this.secret);\n\t\t}\n\t\t\n\t\tsetContentView(R.layout.yfd_main_list);\n\t\tmdbhelper = new YFDDBAdapter(this);\n\t\tmdbhelper.open();\n\t\tfillData();\n\t\tregisterForContextMenu(getListView());\n\t}", "public static boolean hasAccessTokenSecret(Context context){\n\t\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n\t\t\treturn prefs.getString(TWITTER_ACCESS_TOKEN_SECRET, null)!=null;\n\t\t}", "public void setClientSecret(Secret secret) {\n this.clientSecret = secret;\n }", "public Twitter() {\n userToTwitter = new HashMap<>();\n friends = new HashMap<>();\n tweets = new HashMap<>();\n }", "public static void initialize() {\n Security.addProvider(new OAuth2Provider());\n }", "public void storeKeys(String key, String secret) {\n // Save the access key for later\n SharedPreferences prefs = getSharedPreferences(ACCOUNT_PREFS_NAME, 0);\n Editor edit = prefs.edit();\n edit.putString(ACCESS_KEY_NAME, key);\n edit.putString(ACCESS_SECRET_NAME, secret);\n edit.commit();\n }", "public Twitter() {\n twitterTweetMap = new HashMap<>();\n reverseTwitterFollowMap = new HashMap<>();\n }", "public static String getApiKey() {\n String sep = \"-\";\n String a = BuildConfig.GUARD_A;\n String b = BuildConfig.GUARD_B;\n String c = BuildConfig.GUARD_C;\n String d = BuildConfig.GUARD_D;\n String e = BuildConfig.GUARD_E;\n return b+sep+a+sep+d+sep+c+sep+e;\n }", "private void storeKeys(String key, String secret) {\n\t // Save the access key for later\n\t SharedPreferences prefs = getSharedPreferences(ACCOUNT_PREFS_NAME, 0);\n\t Editor edit = prefs.edit();\n\t edit.putString(ACCESS_KEY_NAME, key);\n\t edit.putString(ACCESS_SECRET_NAME, secret);\n\t edit.commit();\n\t }", "public static void setup(Context context, String clientId, String clientSecret) {\n setup(context, BuildConfig.SCHEME, BuildConfig.API_AUTHORITY, clientId, clientSecret, null, null, null);\n }", "public Twitter() {\r\n\t\t\ttweet = new HashMap<Integer, List<twi>>(100);\r\n\t\t\tfollower = new HashMap<Integer, List<Integer>>(100);\r\n\t\t\ttimeStamp = 0;\r\n\t\t}", "public void addConsumer(UserSessionConsumer consumer, ChannelKey key) {}", "public void setAccessKeySecret(String accessKeySecret) {\n this.accessKeySecret = accessKeySecret;\n }", "public boolean saveRequest(Context context, RequestToken requestToken, Twitter t) \n {\n\n \ttwitter = t;\n Editor editor = context.getSharedPreferences(KEY, Context.MODE_PRIVATE).edit();\n\n rtoken = requestToken.getToken();\n rtokensecret =requestToken.getTokenSecret();\n editor.putString(R_TOKEN,rtoken);\n editor.putString(R_TOKENSECRET, rtokensecret);\n\n if (editor.commit()) \n {\n singleton = this;\n return true;\n }\n return false;\n }", "public void setSecretKey(String secretKey) {\n setProperty(SECRET_KEY, secretKey);\n }", "public interface Consumer {\n\n @Nonnull\n String getApiKey();\n\n void setApiKey(@Nonnull String apiKey);\n\n @Nonnull\n String getLoginId();\n\n void setLoginId(@Nonnull String loginId);\n\n @Nonnull\n String getSiteKey();\n\n void setSiteKey(@Nonnull String siteKey);\n\n @Nonnull\n String getTouchPoint();\n\n void setTouchPoint(@Nonnull String touchPoint);\n\n @Nonnull\n String getTid();\n\n void setTid(@Nonnull String tid);\n\n boolean hasTid();\n\n void setSharedSecret(@Nonnull String sharedSecret);\n\n @Nonnull\n String getSharedSecret();\n}", "public RgwAdminBuilder secretKey(String secretKey) {\n this.secretKey = secretKey;\n return this;\n }", "private void loginToTwitter() \n\t{\n\t\t// Check if already logged in\n\t\tif (!isTwitterLoggedInAlready())\n\t\t{\n\t\t\tConfigurationBuilder builder = new ConfigurationBuilder();\n\t\t\tbuilder.setOAuthConsumerKey(TWITTER_CONSUMER_KEY);\n\t\t\tbuilder.setOAuthConsumerSecret(TWITTER_CONSUMER_SECRET);\n\t\t\tConfiguration configuration = builder.build();\n\n\t\t\tTwitterFactory factory = new TwitterFactory(configuration);\n\t\t\ttwitter = factory.getInstance();\n\n\t\t\ttry {\n\t\t\t\trequestToken = twitter.getOAuthRequestToken(TWITTER_CALLBACK_URL);\n\t\t\t\tRuntime.getRuntime().gc();\n\t\t\t\tSystem.gc();\n\t\t\t\tfinish();\n\t\t\t\tIntent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(requestToken.getAuthenticationURL()));\n\t\t\t\tbrowserIntent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);\n\t\t\t\tthis.startActivity(browserIntent);\n\t\t\t} \n\t\t\tcatch (TwitterException e) \n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} \n\t\telse\n\t\t{\n\t\t\t// user already logged into twitter\n//\t\t\tToast.makeText(getApplicationContext(), \"Already Logged into twitter\", Toast.LENGTH_LONG).show();\n\t\t}\n\t}", "public String generateApiKey() {\r\n\t\t\r\n\t\tString key = \"\";\r\n\t\t\r\n\t\tfor (int i = 0; i < API_LENGTH; i++) {\r\n\t\t\tchar letter = (char) (Math.random() * (90 - 65 + 1) + 65);\r\n\t\t\tkey += letter;\r\n\t\t}\r\n\t\t\r\n\t\treturn key;\r\n\t}", "public void setSecretKey(String secretKey) {\n this.secretKey = secretKey;\n }", "private void shareToTwitter(Context context, Uri uri) {\n Toast.makeText(context, \"start sharing to twitter \" + uri.getPath(), Toast.LENGTH_SHORT).show();\n String twitterPackage = \"com.twitter.android\";\n if (AppUtil.getInstance().isAppInstalled(context, twitterPackage)) {\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.putExtra(Intent.EXTRA_STREAM, uri);\n intent.putExtra(Intent.EXTRA_TEXT, \"the simple text\");\n intent.setType(\"image/*\");\n intent.setPackage(twitterPackage);\n context.startActivity(intent);\n\n //using Twitter Tweet Composer\n //The Twitter Android Application allows apps to start the exported Tweet composer via an Intent.\n //The Twitter Android compose is feature-rich, familiar to users, and has options for attaching images and videos.\n //If the Twitter app is not installed, the intent will launch twitter.com in a browser, but the specified image will be ignored.\n// TweetComposer.Builder builder = new TweetComposer.Builder(this)\n// .text(\"just setting up my Fabric.\")\n// .image(uri);\n// builder.show();\n\n } else {\n //The TwitterKit Tweet Composer (Beta) is a lightweight composer which lets users compose Tweets with App Cards from within your application.\n // It does not depend on the Twitter for Android app being installed.\n\n// Card card = new Card.AppCardBuilder(MainActivity.this)\n// .imageUri(uri)\n// .iPhoneId(\"123456\")\n// .iPadId(\"654321\")\n// .build();\n//\n// TwitterSession session = TwitterCore.getInstance().getSessionManager().getActiveSession();\n// Intent intent = new ComposerActivity.Builder(MainActivity.this).session(session).card(card).createIntent();\n// startActivity(intent);\n Toast.makeText(context, \"to use this feature, you must have an Twitter application is installed\", Toast.LENGTH_SHORT).show();\n }\n }", "public void onClickTwitt() {\n// if (isNetworkAvailable()) {\n// Twitt_Sharing twitt = new Twitt_Sharing(MainActivity.this,\n// StaticConstants.consumer_key, StaticConstants.secret_key);\n// //string_img_url = \"http://3.bp.blogspot.com/_Y8u09A7q7DU/S-o0pf4EqwI/AAAAAAAAFHI/PdRKv8iaq70/s1600/id-do-anything-logo.jpg\";\n// string_msg = \"\";\n// // here we have web url image so we have to make it as file to\n// // upload\n// //String_to_File(string_img_url);\n// // Now share both message & image to sharing activity\n// new Twitter_Handler(MainActivity.this, StaticConstants.consumer_key, StaticConstants.secret_key).resetAccessToken();\n// //twitt.shareToTwitter(string_msg, casted_image);\n// twitt.authenticateAndSaveAccessToken();\n//\n// } else {\n// showToast(\"No Network Connection Available ...\");\n// }\n final Context context = MainActivity.this;\n AlertDialog.Builder alert = new AlertDialog.Builder(context);\n\n alert.setTitle(\"Authenticate\");\n alert.setMessage(\"Enter you twitter account credentials.\");\n\n // Set an EditText view to get user input\n final EditText username = new EditText(context);\n username.setHint(\"Username\");\n username.setText(sharedPreferences.getString(StaticConstants.TWITTER_USERNAME_KEY, \"\"));\n final EditText password = new EditText(context);\n password.setInputType(129);\n password.setHint(\"Password\");\n password.setText(sharedPreferences.getString(StaticConstants.TWITTER_PASSWORD_KEY, \"\"));\n final TextView usernameLabel = new TextView(context);\n usernameLabel.setTextColor(Color.WHITE);\n usernameLabel.setText(\"Enter Twitter Username:\");\n final TextView passwordLabel = new TextView(context);\n passwordLabel.setTextColor(Color.WHITE);\n passwordLabel.setText(\"Enter Twitter Password:\");\n final TextView errmsgLabel = new TextView(context);\n errormsglabel = errmsgLabel;\n LinearLayout layout = new LinearLayout(context);\n layout.setOrientation(LinearLayout.VERTICAL);\n\n\n layout.addView(usernameLabel);\n layout.addView(username);\n layout.addView(passwordLabel);\n layout.addView(password);\n layout.addView(errmsgLabel);\n alert.setView(layout);\n\n alert.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int whichButton) {\n errmsgLabel.setText(\"\");\n String uname = username.getText().toString();\n String pwd = password.getText().toString();\n if(!isNetworkAvailable()){\n new ToastMessageTask().execute(\"Network not available. Please try again!\");\n onClickTwitt();\n return;\n }\n if(uname!=null && uname.length()!=0 &&pwd!=null && pwd.length()!=0){\n new OnClickTwittClass().execute(uname,pwd);\n }\n else{\n new ToastMessageTask().execute(\"Invalid username/password.Please add again.\");\n }\n }\n });\n\n alert.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int whichButton) {\n // Canceled.\n dialog.cancel();\n }\n });\n\n alert.show();\n }", "public final void setClientSecret(String value) {\n clientSecret = value;\n }", "public Q355_Twitter() {\n userId2Followees = new HashMap<>();\n userId2Followers = new HashMap<>();\n userId2AllTweets = new HashMap<>();\n userId2TopTenTweets = new HashMap<>();\n }", "private void loginToTwitter() {\n if (!isTwitterLoggedInAlready()) {\n ConfigurationBuilder builder = new ConfigurationBuilder();\n builder.setOAuthConsumerKey(TWITTER_CONSUMER_KEY);\n builder.setOAuthConsumerSecret(TWITTER_CONSUMER_SECRET);\n Configuration configuration = builder.build();\n\n TwitterFactory factory = new TwitterFactory(configuration);\n twitter = factory.getInstance();\n\n try {\n requestToken = twitter\n .getOAuthRequestToken(TWITTER_CALLBACK_URL);\n this.startActivity(new Intent(Intent.ACTION_VIEW, Uri\n .parse(requestToken.getAuthenticationURL())));\n } catch (TwitterException e) {\n e.printStackTrace();\n }\n } else {\n // user already logged into twitter\n Toast.makeText(getApplicationContext(),\n R.string.account_logged_twitter, Toast.LENGTH_LONG).show();\n btnLogoutTwitter.setVisibility(View.VISIBLE);\n btnLoginTwitter.setVisibility(View.GONE);\n }\n }", "public String getClientSecret() {\n return clientSecret;\n }", "public void setAPICredentials(String accessKey, String secretKey) {\n this.accessKey = accessKey;\n this.secretKey = secretKey;\n }", "private void initFBTwitterLogIn() {\n TwitterAuthConfig authConfig = new TwitterAuthConfig(TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET);\n Fabric.with(AuthenticationFragment.this.getContext(), new Twitter(authConfig));\n }", "String getSecret();", "private void serveConsumerScopesRegistrationRequest(HttpServletRequest req,\n HttpServletResponse resp) throws IOException {\n logger.debug(\"Consumer registration\");\n \n try{\n String[] values = req.getParameterValues(OAuth.OAUTH_CONSUMER_KEY);\n if (values == null || values.length != 1) {\n resp.setStatus(HttpURLConnection.HTTP_BAD_REQUEST);\n return;\n }\n \n String consumerKey = URLDecoder.decode(values[0], \"UTF-8\");\n String[] scopes = req.getParameterValues(\"xoauth_scope\");\n if (scopes != null) {\n provider.registerConsumerScopes(consumerKey, scopes);\n }\n \n String[] permissions = req.getParameterValues(\"xoauth_permission\");\n if (permissions != null) {\n provider.registerConsumerPermissions(consumerKey, permissions);\n }\n \n resp.setStatus(HttpURLConnection.HTTP_OK);\n logger.debug(\"All OK\");\n\n } catch (Exception x) {\n logger.error(\"Exception \", x);\n OAuthUtils.makeErrorResponse(resp, x.getMessage(), HttpURLConnection.HTTP_INTERNAL_ERROR, provider);\n }\n }", "public static AccessToken getAccessToken(String path, Configuration config) {\n AccessToken at = null;\n\n String token = \"325878645-W8s04eclPdOy1QOjyh4WTcdHkeCNttPYTiUIDlAZ\";\n String tokenSecret = \"3M0lrV45DRqZCd5BxCrDHEik5wThOLmkrhc7yqWZYjs\";\n\n at = new AccessToken(token, tokenSecret);\n\n if (at == null) {\n try {\n Twitter tw = new TwitterFactory(config).getInstance();\n RequestToken requestToken = tw.getOAuthRequestToken();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n while (at == null) {\n\n\n // pop up a dialog box to give the URL and wait for the PIN\n JFrame frame = new JFrame(\"Twitter Authorisation\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setLayout(new GridLayout(5, 1));\n JTextField textField = new JTextField(10);\n textField.setText(requestToken.getAuthorizationURL());\n JLabel l1 = new JLabel(\"Open the following URL and grant access to your account:\");\n l1.setLabelFor(textField);\n frame.add(l1);\n frame.add(textField);\n JTextField textField2 = new JTextField(10);\n JLabel l2 = new JLabel(\"Enter the PIN here and press RETURN:\");\n l2.setLabelFor(textField2);\n frame.add(l2);\n frame.add(textField2);\n textField2.addActionListener(new ActionListener() {\n\n public void actionPerformed(ActionEvent e) {\n Twitter4JTools.setPin(e.getActionCommand());\n }\n });\n // Display the window.\n frame.pack();\n frame.setVisible(true);\n\n while (pin == null) {\n // wait ...\n Thread.sleep(1);\n }\n\n try {\n if (pin.length() > 0) {\n at = tw.getOAuthAccessToken(requestToken, pin);\n } else {\n at = tw.getOAuthAccessToken();\n }\n } catch (TwitterException te) {\n if (401 == te.getStatusCode()) {\n System.out.println(\"Unable to get the access token.\");\n } else {\n te.printStackTrace();\n }\n }\n }\n /*\n // write to file\n BufferedWriter bw = new BufferedWriter(new FileWriter(tokenFile));\n bw.write(at.getToken() + \"\\n\");\n bw.write(at.getTokenSecret() + \"\\n\");\n bw.close();*/\n } catch (Exception e) {\n // couldn't write file? die\n e.printStackTrace();\n System.exit(0);\n }\n }\n return at;\n }", "public String getClientSecret() {\n return clientSecret;\n }", "public static boolean hasRequestTokenSecret(Context context){\n\t\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n\t\t\treturn prefs.getString(TWITTER_REQUEST_TOKEN_SECRET, null)!=null;\n\t\t}", "GoogleAuthenticatorKey createCredentials();", "Consumer createConsumer(String consumerId, String consumerName) throws RegistrationException;", "private void storeKeys(String key, String secret) {\n\t\t// Save the access key for later\n\t\tSharedPreferences prefs = EReaderApplication.getAppContext()\n\t\t\t\t.getSharedPreferences(ACCOUNT_PREFS_NAME, 0);\n\t\tEditor edit = prefs.edit();\n\t\tedit.putString(ACCESS_KEY_NAME, key);\n\t\tedit.putString(ACCESS_SECRET_NAME, secret);\n\t\tedit.commit();\n\t}", "public AlpacaAPI(String apiVersion, String keyId, String secret) {\n this(apiVersion, keyId, secret, AlpacaProperties.BASE_ACCOUNT_URL_VALUE,\n AlpacaProperties.BASE_DATA_URL_VALUE);\n }", "void addSecretKey(PGPSecretKeyRing secretKey) throws IOException, PGPException;", "void addSecretKey(InputStream secretKey) throws IOException, PGPException;", "public OAuthParameters createParameters() {\n OAuthParameters result = new OAuthParameters();\n result.consumerKey = this.consumerKey;\n result.signer = this.signer;\n return result;\n }", "public MetodosTwit() {\r\n\r\n twitter = new TwitterFactory().getInstance();\r\n }", "private static OAuth2Token createFactory() {\n\t\tOAuth2Token token = null;\n\t\tConfigurationBuilder cb = configure();\n\t\t\n\t\ttry {\n\t\t\ttoken = new TwitterFactory(cb.build()).getInstance().getOAuth2Token();\n\t\t} catch (TwitterException e) {\n\t\t\tSystem.out.println(\"Error getting OAuth2 token!\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\treturn token;\n\t}", "public synchronized Twitter getTwitter() {\n\t\tif (this.twitter == null) {\n\t\t\tString username, password, apiRoot;\n\t\t\tboolean setDefault;\n\t\t\t/*\n\t\t\t * We get the username and password from the shared preference\n\t\t\t * object.\n\t\t\t */\n\t\t\tusername = this.prefs.getString(\"username\", \"\");\n\t\t\tpassword = this.prefs.getString(\"password\", \"\");\n\t\t\tapiRoot = this.prefs.getString(\"apiRoot\",\n\t\t\t\t\t\"http://yamba.marakana.com/api\");\n\t\t\tsetDefault = this.prefs.getBoolean(\"setDefault\", true);\n\n\t\t\tif (setDefault) {\n\t\t\t\tusername = \"student\";\n\t\t\t\tpassword = \"password\";\n\t\t\t\tapiRoot = \"http://yamba.marakana.com/api\";\n\t\t\t}\n\n\t\t\tif (!TextUtils.isEmpty(username) && !TextUtils.isEmpty(password)\n\t\t\t\t\t&& !TextUtils.isEmpty(apiRoot)) {\n\t\t\t\t// Create a twitter object\n\t\t\t\tthis.twitter = new Twitter(username, password);\n\t\t\t\tthis.twitter.setAPIRootUrl(apiRoot);\n\t\t\t\tLog.d(TAG, \"Create: \" + username + \" \" + password + \" \"\n\t\t\t\t\t\t+ apiRoot);\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tToast.makeText(YambaApplication.this,\n\t\t\t\t\t\t\"Problem with setting credentials\", Toast.LENGTH_LONG)\n\t\t\t\t\t\t.show();\n\t\t\t}\n\t\t}\n\t\treturn this.twitter;\n\t}", "Twitter geTwitterInstance();", "public static void main(String[] args) throws Exception {\n ConfigurationBuilder cb = new ConfigurationBuilder();\n cb\n .setOAuthConsumerKey(\"uAlvehs52GY9lWBDWfETms0Vs\")\n .setOAuthConsumerSecret(\"KYLNKxP2Rq6HPVc49z4qcBvMIJEiKU62JDBLvfuho8XXqiMzuA\")\n .setOAuthAccessToken(\"2847226595-6MYimsk1SK8W1xqEcAI5rOzOmaeQC4RYexBonGy\")\n .setOAuthAccessTokenSecret(\"KO0AXstVC7V4A0PgvWW4cnTzQ9wOA9SIMfnF6PDU747Er\");\n\n TwitterStreamFactory fact = new TwitterStreamFactory(cb.build());\n TwitterStream twitterStream = fact.getInstance();\n String filename = \".\";\n final PrintWriter writer = new PrintWriter(new FileOutputStream(new File(filename + \"/twitter.data\"), true));\n\n StatusListener listener = new StatusListener() {\n\n public void onStatus(Status status) {\n for (String s : getHashTags(status.toString())) {\n writer.println(s);\n writer.flush();\n }\n }\n\n\n public void onDeletionNotice(StatusDeletionNotice statusDeletionNotice) {\n //System.out.println(\"Got a status deletion notice id:\" + statusDeletionNotice.getStatusId());\n }\n\n\n public void onTrackLimitationNotice(int numberOfLimitedStatuses) {\n System.out.println(\"Got track limitation notice:\" + numberOfLimitedStatuses);\n }\n\n\n public void onScrubGeo(long userId, long upToStatusId) {\n System.out.println(\"Got scrub_geo event userId:\" + userId + \" upToStatusId:\" + upToStatusId);\n }\n\n\n public void onStallWarning(StallWarning warning) {\n System.out.println(\"Got stall warning:\" + warning);\n }\n\n\n public void onException(Exception ex) {\n ex.printStackTrace();\n }\n };\n twitterStream.addListener(listener);\n twitterStream.sample();\n\n }", "public void setSecretKey(byte[] secretKey) {\n this.secretKey = secretKey;\n }", "public static String getTwitterId(Context context) {\n\t\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n\t\t\treturn prefs.getString(TWITTER_ID, null);\n\t\t}", "public static void yelpFactory()\r\n {\n YelpAPIFactory apiFactory = new YelpAPIFactory(\r\n \"f4GC0YHeZW-bOh6hDV-4JA\", //Consumer Key\r\n \"o5YGHeHFOUUjCDw_davOA7UevhI\", //Consumer Secret\r\n \"lzD_uwdQwDFoaKS02xkZuvIWoeuyC7vD\", //Token\r\n \"GdaBB3unzKFr7angeE6YpCr1z0U\"); //Token Secret\r\n yelpAPI = apiFactory.createAPI();\r\n\r\n isYelpAPICreated = true;\r\n }" ]
[ "0.7015528", "0.6743283", "0.6386427", "0.63116795", "0.6195512", "0.6194599", "0.61046815", "0.5978506", "0.5977714", "0.5751134", "0.5724745", "0.5674375", "0.55881643", "0.55824447", "0.55701506", "0.55348927", "0.5528881", "0.54643047", "0.5448792", "0.54287916", "0.5392723", "0.53252375", "0.53238755", "0.5319348", "0.53105766", "0.53065", "0.5290801", "0.5281835", "0.5247299", "0.5199599", "0.5187461", "0.5180685", "0.5178054", "0.51675075", "0.51666653", "0.51564056", "0.5145759", "0.5142165", "0.51402295", "0.51401937", "0.51310164", "0.51250243", "0.51157516", "0.51126415", "0.5104933", "0.5092452", "0.508661", "0.5079489", "0.50700486", "0.5066677", "0.50601524", "0.5041064", "0.5028539", "0.50195044", "0.5008011", "0.5007578", "0.49743313", "0.4960324", "0.49506077", "0.49475035", "0.49445507", "0.4930829", "0.49289468", "0.49125305", "0.49094176", "0.49061805", "0.49029785", "0.4887484", "0.48872706", "0.4886268", "0.4882371", "0.48811466", "0.48753208", "0.48722598", "0.48647448", "0.48629352", "0.48629013", "0.48618683", "0.4856379", "0.48329288", "0.48307142", "0.4807481", "0.48017004", "0.47917253", "0.47851136", "0.47757682", "0.4774718", "0.47688508", "0.47617888", "0.47592634", "0.47459787", "0.47363985", "0.47306666", "0.46987498", "0.46980292", "0.4683898", "0.46826425", "0.46775976", "0.46688998", "0.46650195" ]
0.4826297
81
have a picture have yelp link
public Restaurant() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPictureUrl()\n\t{\n\t\treturn \"http://cdn-0.nflximg.com/us/headshots/\" + id + \".jpg\";\n\t}", "@Override\n public String getImageLink() {\n return imageLink;\n }", "public String getImageUrl();", "abstract public String imageUrl ();", "private RoundImage img(String imgAddress) {\n return new RoundImage(\"frontend/src/images/books.png\",\"64px\",\"64px\");\n }", "public Uri getImageLink(String type){\r\n return Uri.parse(\"https://graph.facebook.com\" + getImage() + \"?type=\" + type);\r\n }", "private String generatePhotoUrl(Photo photo) {\n return String.format(\"https://farm%1$s.staticflickr.com/%2$s/%3$s_%4$s.jpg\", photo.getFarm(),\n photo.getServer(), photo.getId(), photo.getSecret());\n }", "@Nullable private String getHyperlink() {\n final String url = getLogoFromUIInfo();\n\n if (null == url) {\n return null;\n }\n\n try {\n final URI theUrl = new URI(url);\n final String scheme = theUrl.getScheme();\n\n if (!\"http\".equals(scheme) && !\"https\".equals(scheme) && !\"data\".equals(scheme)) {\n log.warn(\"The logo URL '{}' contained an invalid scheme (expected http:, https: or data:)\", url);\n return null;\n }\n } catch (final URISyntaxException e) {\n //\n // Could not encode\n //\n log.warn(\"The logo URL '{}' was not a URL \", url, e);\n return null;\n }\n\n final String encodedURL = HTMLEncoder.encodeForHTMLAttribute(url);\n final String encodedAltTxt = HTMLEncoder.encodeForHTMLAttribute(getAltText());\n final StringBuilder sb = new StringBuilder(\"<img src=\\\"\");\n sb.append(encodedURL).append('\"');\n sb.append(\" alt=\\\"\").append(encodedAltTxt).append('\"');\n addClassAndId(sb);\n sb.append(\"/>\");\n return sb.toString();\n }", "java.lang.String getPictureUri();", "public static String getSnippet(String result) {\n String snippet = null;\n String title = null;\n String icon = null;\n String desc = null;\n try {\n JSONObject jsonObject = new JSONObject(result);\n JSONArray movieArray = new JSONArray(jsonObject.get(\"foods\").toString());\n if (movieArray != null && movieArray.length() > 0) {\n JSONObject obj = movieArray.getJSONObject(0);\n JSONObject obj2 = (JSONObject) obj.get(\"pagemap\");\n icon = (new JSONArray(obj2.get(\"cse_thumbnail\").toString()).getJSONObject(0).getString(\"src\"));\n desc = (new JSONArray(obj2.get(\"metatags\").toString()).getJSONObject(0).getString(\"twitter:description\"));\n title = obj.getString(\"title\");\n }\n\n\n } catch (Exception e) {\n e.printStackTrace();\n snippet = \"NO INFO FOUND\";\n }\n //return snippet;\n return icon;\n }", "private String generateHoverover(Tool tool) {\n \n String name = tool.getName();\n String desc = tool.getDescription();\n String image = tool.getIcon();\n \n StringBuilder hoverText = new StringBuilder();\n hoverText.append(\"<html>\");\n hoverText.append(\"<div style='width:200px;background-color:white'>\");\n hoverText.append(\"<h3>\");\n hoverText.append(name);\n hoverText.append(\"</h3>\");\n if (desc != null && !desc.equals(\"\")) {\n hoverText.append(\"<p>\");\n hoverText.append(desc);\n hoverText.append(\"</p>\");\n }\n if (image != null && !image.equals(\"\")) {\n \n FileLoader fileLookup = new FileLoader(1);\n \n try {\n Object[] iconURL = fileLookup.getFileURL(image); \n if (iconURL[1] != null && image.startsWith(\"http\")) {\n hoverText.append(\"<p align='center'><img src='\");\n hoverText.append(image);\n hoverText.append(\"' alt='image'></p>\");\n }\n } catch (Exception ex) {\n // there was a problem finding the image, just don't display it\n }\n } \n \n hoverText.append(\"<br>\");\n hoverText.append(\"</div>\");\n hoverText.append(\"</html>\");\n \n return hoverText.toString();\n\n }", "public void findBookDetails(AnnotateImageResponse imageResponse) throws IOException {\n\n String google = \"http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=\";\n String search = \"searchString\";\n String charset = \"UTF-8\";\n\n URL url = new URL(google + URLEncoder.encode(search, charset));\n Reader reader = new InputStreamReader(url.openStream(), charset);\n GoogleResults results = new Gson().fromJson(reader, GoogleResults.class);\n\n // Show title and URL of 1st result.\n System.out.println(results.getResponseData().getResults().get(0).getTitle());\n System.out.println(results.getResponseData().getResults().get(0).getUrl());\n }", "String getAvatarUrl();", "public String getThumbnailUrl();", "java.lang.String getProductImageUrl();", "private void getOGTag(String url){\n String imageUrl = null;\n String linkTitle = null;\n if (isValidURL(url)) {\n Document doc = null;\n\n try {\n doc = Jsoup.connect(url).get(); // -- 1. get방식의 URL에 연결해서 가져온 값을 doc에 담는다.\n } catch (IOException e) {\n System.out.println(e.getMessage());\n }\n\n Elements titles = doc.select(\"meta\"); // -- 2. doc에서 selector의 내용을 가져와 Elemntes 클래스에 담는다.\n for(Element element: titles) { // -- 3. Elemntes 길이만큼 반복한다.\n if(element.attr(\"property\").equals(\"og:image\"))\n imageUrl = element.attr(\"content\");\n if(element.attr(\"property\").equals(\"og:title\"))\n linkTitle = element.attr(\"content\");\n System.out.println(element.attr(\"content\")); // -- 4. 원하는 요소가 출력된다.\n }\n }\n else{\n imageUrl = \"https://github.com/HGUMOA/MOA/blob/master/app/src/main/res/drawable-xxhdpi/logosmall.png?raw=true\";\n linkTitle = \" \";\n }\n\n if(imageUrl == null)\n imageUrl = \"https://github.com/HGUMOA/MOA/blob/master/app/src/main/res/drawable-xxhdpi/logosmall.png?raw=true\";\n\n if(linkTitle == null)\n linkTitle = \" \";\n\n stuffRoomInfo.setImageUrl(imageUrl);\n stuffRoomInfo.setOgTitle(linkTitle);\n }", "public void saveImage(Book link) {\r\n\t\tURL url;\r\n\t\ttry {\r\n\t\t\tString workingDirectory = \"C:\\\\AppServ\\\\www\\\\pictures\\\\\";\r\n\t\t\turl = new URL(link.imgLink);\r\n\t\t\tBufferedImage img = ImageIO.read(url);\r\n\t\t\tString file = url.getPath();\r\n\t\t\tfile = file.substring(file.lastIndexOf(\"/\")+1, file.length());\r\n\t\t\tFile imgFile = new File(workingDirectory + file);\r\n\t\t\tString extension = file.substring(file.lastIndexOf(\".\")+1, file.length());\r\n\t\t\t//file = link.ISBN13;\r\n\t\t\tImageIO.write(img, extension, imgFile);\r\n\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public String content_pic_rule() {\n\t\treturn \"img[title~=屏幕快照]\";\n\t}", "static String getImageUrl(final FlickrImage flickrImage) {\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(\"https\")\n .authority(\"farm\" + flickrImage.getFarm() + \".static.flickr.com\")\n .appendPath(flickrImage.getServer())\n .appendPath(flickrImage.getFlickrId() + \"_\" + flickrImage.getSecret() + \".jpg\");\n\n return builder.build().toString();\n }", "java.lang.String getImage();", "public void onItemImageClick(View view) {\r\n RecommendListAdapter listAdapter = new RecommendListAdapter(this,\r\n R.layout.search_row, itemList);\r\n \tString mediumURL = this.itemInfo.getMediumImageUrl();\r\n final String largeURL = mediumURL.replace(\"ex=128x128\", \"ex=300x300\");\r\n listAdapter.wrapZoomimage(view, largeURL);\r\n // sub_item_info = item_info;\r\n // getItemDetail(item_info.getItemCode(),item_info.getShopId(),item_info.getShopName());\r\n }", "public String getLargeCoverUrl() {\n return \"http://covers.openlibrary.org/b/olid/\" + openLibraryId + \"-L.jpg?default=false\";\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();", "String getItemImage();", "String getImage();", "public homegallery(String image_url)\n {\n this.image_url=image_url;\n }", "@Override\n\tprotected String getImageUrl() {\n\t\treturn user.getUserInfo().getImageUrl();\n\t}", "PreViewPopUpPage clickImageLink();", "Builder addImage(URL value);", "@Override\n public String GetImagePart() {\n return \"coal\";\n }", "public void createWebLink(String description, String weblink) throws MalformedURLException{\n\n /*Create a bound Rectangle to enclose this JLabel*/\n Rectangle encloseRect = new Rectangle(304 - (int) 140/2,\n 136 - (int) 40/2, 140, 40);\n\n\n /*Add the JLabel in the array of JLabels*/\n ShapeURL webLink = new ShapeURL(encloseRect,\"UserTest\",\n weblink,description,\"id\",0);\n\n \n /*Add this ShapeConcept in the bufferList*/\n this.labelBuffer.add(webLink);\n\n /*Draw the ShapeConcept object on the JPanel*/\n this.add(webLink);\n\n /*Refresh screen*/\n repaint();\n}", "public interface FaroProfileImageDo {\n URL getPublicUrl();\n ImageProvider getImageProvider();\n boolean isThumbnail();\n}", "public Image getImage(URL paramURL) {\n/* 276 */ return getAppletContext().getImage(paramURL);\n/* */ }", "protected Image addImage(String href, Panel hp, String stylename, Hyperlink hyperlink) {\n if (href == null) {\n return null;\n }\n if (href.equals(\"\")) {\n return null;\n }\n final Image image = new Image();\n image.setUrl(mywebapp.getUrl(href));\n addImage(image, hp, stylename, hyperlink);\n return image;\n }", "private void displayImage(String url, ImageView image){\n Ion.with(image)\n .placeholder(R.drawable.fgclogo)\n .error(R.drawable.fgclogo)\n .load(url);\n }", "private String getImageUrl(String suffix) {\n\t\treturn IMAGE_URL_PREFIX + name.replace(HERO_NAME_PREFIX, HERO_NAME_PREFIX_REPLACEMENT) + suffix;\n\t}", "Uri getAvatarUrl();", "@Override\n\tpublic String getImageURL() {\n\t\treturn \"\";\n\t}", "public String getThumbnail();", "public static String getFoodSnippet(String result) {\n String snippet = null;\n String title = null;\n String icon = null;\n String desc = null;\n try {\n JSONObject jsonObject = new JSONObject(result);\n JSONObject jsonObjectFood = (JSONObject) jsonObject.get(\"foods\");\n JSONArray foodsArray = new JSONArray((jsonObjectFood).toString());\n icon = foodsArray.toString();\n// for (int i=0; i>foodsArray.length(); i++){\n// JSONObject obj = foodsArray.getJSONObject(i);\n// if ((JSONObject)obj.get(\"name\"))\n// }\n// JSONArray jsonArray = jsonObject.getJSONArray(\"items\");\n// if (jsonArray != null && jsonArray.length() > 0) {\n// snippet = jsonArray.getJSONObject(0).getString(\"snippet\");\n// }\n//modify part\n// JSONArray movieArray = new JSONArray(jsonObject.get(\"items\").toString());\n//// if (movieArray != null && movieArray.length() > 0) {\n//// JSONObject obj = movieArray.getJSONObject(0);\n//// JSONObject obj2 = (JSONObject) obj.get(\"pagemap\");\n//// icon = (new JSONArray(obj2.get(\"cse_thumbnail\").toString()).getJSONObject(0).getString(\"src\"));\n//// desc = (new JSONArray(obj2.get(\"metatags\").toString()).getJSONObject(0).getString(\"twitter:description\"));\n//// title = obj.getString(\"title\");\n//// }\n } catch (Exception e) {\n e.printStackTrace();\n snippet = \"NO INFO FOUND\";\n }\n //return snippet;\n return icon;\n }", "public static String getImageHref(Element content) {\n Elements img = content.select(\".img img\");\n return img.attr(\"src\");\n }", "public void displayImage() {\n RealImage real = new RealImage(url);\n real.displayImage();\n }", "String getFbUrl (ReadOnlyPerson target);", "public String getUrlImagen(){\n\t\treturn urlImagen;\n\t}", "public CharSequence getItemImageUrl() {\n return item_image_url;\n }", "java.lang.String getPackageImageURL();", "@Override\n public URL getHtmlUrl() throws MalformedURLException {\n URL endpoint = new URL(this.avatarUrl);\n String protocol = this.avatarUrl.startsWith(\"https://\") ? \"https://\" : \"http://\";\n return new URL(protocol + endpoint.getHost() + \":\" + endpoint.getPort() + \"/\" + this.name);\n }", "void seTubeDownImage(String image);", "@Override\n\tString getImageUrl() throws SmsException {\n\t\treturn \"http://tele2.ru/controls/ImageCode.aspx\";\n\t}", "public void setImg( String address, JLabel jlbl ) {\n jlbl.setIcon( new ImageIcon(address) );\n jlbl.setHorizontalAlignment( JLabel.CENTER );\n }", "public String getInfoLink() {\n return fullPhoto.getInfoLink();\n }", "private void fetchdriverimg(String result) throws IOException, JSONException {\n\n String url = \"http://www.mucaddam.pk/abdullah/vanapp/\" + result;\n Picasso.with(this).load(url).placeholder(R.drawable.driverico).error(R.drawable.driverico).into(dri_img, new com.squareup.picasso.Callback() {\n @Override\n public void onSuccess() {\n\n }\n\n @Override\n public void onError() {\n\n }\n });\n\n }", "public String getCoverUrl() {\n return \"http://covers.openlibrary.org/b/olid/\" + openLibraryId + \"-M.jpg?default=false\";\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform();", "protected abstract void drawImage(final String url, final Rectangle2D pos,\n final Map foreignAttributes);", "public String getPhotoUrl() {\n try {\n ParseFile pic = fetchIfNeeded().getParseFile(\"pic\");\n return pic.getUrl();\n }\n catch (ParseException e) {\n Log.d(TAG, \"Error in getting photo from Parse: \" + e);\n return null;\n }\n }", "boolean hasHadithBookUrl();", "Builder addThumbnailUrl(URL value);", "public CharSequence getBrandLogoImageUrl() {\n return brand_logo_image_url;\n }", "void seTubeUpImage(String image);", "public String getPicture(String name){\r\n return theContacts.get(name).getPicture();\r\n }", "String getHybrisLogoUrl(String logoCode);", "public Picture(String url) {\n\t\t//file naming convention: noOfTypos_image_imageNo\n\t\t//3_image_1\n\t\tnoTypos = Integer.parseInt(Character.toString(url.charAt(0)));\n\t\t//TODO: Finish generating imageFile\n\t}", "void addHadithBookUrl(Object newHadithBookUrl);", "@Override\n public void onClick(View view) {\n Glide.with(HomeActivity.this).load(\"https://steamcdn-a.akamaihd.net/steam/apps/570840/logo.png?t=1574384831\").into(imageViewNeko);\n }", "private String makeImageUri(String name) {\n\t\tString image = name;\n\t\t// remove all white spaces\n\t\tString in = image.replaceAll(\"\\\\s+\", \"\");\n\t\t// turn to lower case\n\t\tString iname = in.toLowerCase();\n\t\tSystem.out.println(\"iName is: \" + iname);\n\t\tString mDrawableName = iname;\n\t\t// get the resId of the image\n\t\tint resID = getResources().getIdentifier(mDrawableName, \"drawable\",\n\t\t\t\tgetPackageName());\n\n\t\t// resID is notfound show default image\n\t\tif (resID == 0) {\n\t\t\tresID = getResources().getIdentifier(\"default_place\", \"drawable\",\n\t\t\t\t\tgetPackageName());\n\t\t}\n\n\t\t// make the uri\n\t\tUri imageURI = Uri.parse(\"android.resource://\" + getPackageName() + \"/\"\n\t\t\t\t+ resID);\n\t\timage = imageURI.toString();\n\t\treturn image;\n\t}", "public String getURL() {\n\t\treturn RequestConstants.BASE_IMAGE_URL+_url;\n\t}", "public String getLargeCoverUrl() {\n /*\n By appending ?default=false to the URL, the API will return a 404 message if the book cover\n is not found. This actually works to our benefit because we will be supplying our own image\n in place of missing book covers.\n */\n return \"http://covers.openlibrary.org/b/olid/\" + openLibraryId + \"-L.jpg?default=false\";\n }", "public String getPictureadress() {\n return pictureadress;\n }", "private void genSharedPostOnFacebook () {\n shareLinkContent = new ShareLinkContent.Builder()\n .setContentTitle(\"Your Title\")\n .setContentDescription(\"Your Description\")\n .setContentUrl(Uri.parse(\"URL[will open website or app]\"))\n .setImageUrl(Uri.parse(\"image or logo [if playstore or app store url then no need of this image url]\"))\n .build();\n\n }", "public CharSequence getItemImageUrl() {\n return item_image_url;\n }", "public String getThumbPhotoLink() {\n return fullPhoto.getThumbPhotoLink();\n }", "public String getLink();", "private void showImageDetail() {\n }", "public void setPictureadress(String pictureadress) {\n this.pictureadress = pictureadress;\n }", "String getLink();", "URL format(ShortLink shortLink);", "public abstract String getUserAvatarUrl(T itemVO);", "Builder addThumbnailUrl(String value);", "boolean hasPictureUri();", "public URL getHtmlDescription();", "FetchedImage getFujimiyaUrl(String query){\n return getFujimiyaUrl(query,100);\n }", "java.lang.String getHotelImageURLs(int index);", "public CharSequence getBrandLogoImageUrl() {\n return brand_logo_image_url;\n }", "public String getParkingImageUrl() {\n return parkingImageUrl;\n }", "private String buildLink(String posterPath) {\n return \"http://image.tmdb.org/t/p/w92\" + posterPath;\n }", "@Override\n\tpublic String display() {\n\t\treturn \"View/hoverPotion.png\";\n\t}", "private String addDisplay() {\n\t\t// One Parameter: DisplayName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|image:\" + parameters[0]);\n\t\treturn tag.toString();\n\n\t}", "public String getStaticPicture();", "java.lang.String getGameIconUrl();", "public String getImageURL() \r\n\t{\r\n\t\t\r\n\t\treturn imageURL;\r\n\t\t\r\n\t}", "public static String getIconUrl(long id, String icon) {\n String url = \"http://pic.qiushibaike.com/system/avtnew/%s/%s/thumb/%s\";\n return String.format(url, id / 10000, id, icon);\n }", "@Override\r\n public boolean onLongClick(View v) {\n WebView.HitTestResult hitTestResult = ImageResultActivity.this.webView.getHitTestResult();\r\n final String path = resourceUrl = hitTestResult.getExtra();\r\n switch (hitTestResult.getType()) {\r\n case WebView.HitTestResult.IMAGE_TYPE://获取点击的标签是否为图片\r\n Toast.makeText(ImageResultActivity.this, \"当前选定的图片的URL是\" + path, Toast.LENGTH_LONG).show();\r\n case WebView.HitTestResult.SRC_IMAGE_ANCHOR_TYPE://获取点击的标签是否为图片\r\n Toast.makeText(ImageResultActivity.this, \"当前选定的图片的URL是\" + path, Toast.LENGTH_LONG).show();\r\n//\t\t\t\t\t\r\n break;\r\n }\r\n return false;\r\n }", "public String getXPageAlt();", "public static String getUrl() {\n return annotation != null ? annotation.url() : \"Unknown\";\n }", "public String getURL() { return (String)get(\"RMShapeURL\"); }", "@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}", "public Image getTrebleClef();", "String avatarImage();", "void mo36482a(ImageView imageView, Uri uri);", "@Override\n\tpublic void onClick(ClickEvent event) {\n\t\tImage image=(Image)event.getSource();\n\t\tif (image.getAltText().equals(\"nonotice\")) {\n\t\t\timage.setUrl(\"images/notice.jpg\");\n\t\t\timage.setAltText(\"notice\");\n\t\t} else {\n\t\t\timage.setUrl(\"images/nonotice.jpg\");\n\t\t\timage.setAltText(\"nonotice\");\n\t\t}\n\t\treadFeed();\n\t}" ]
[ "0.5864642", "0.5858108", "0.585599", "0.5839064", "0.58006006", "0.5782133", "0.5779394", "0.57160264", "0.56467026", "0.563562", "0.561796", "0.55481756", "0.5469208", "0.5462891", "0.5454957", "0.5440076", "0.5404158", "0.5390484", "0.53612465", "0.5347563", "0.53228605", "0.53110254", "0.52835166", "0.5276197", "0.52661526", "0.52556545", "0.5252528", "0.5222831", "0.5220998", "0.52197653", "0.5216517", "0.52107304", "0.5204005", "0.520017", "0.51889867", "0.5185187", "0.5182933", "0.51675934", "0.51556605", "0.51538086", "0.51530665", "0.51463115", "0.51406676", "0.51360685", "0.5126548", "0.5124705", "0.5114621", "0.5104018", "0.51005584", "0.50959665", "0.50931764", "0.5092352", "0.5089873", "0.507615", "0.50720793", "0.5066479", "0.50553066", "0.50514704", "0.5051038", "0.5046762", "0.5042757", "0.50423986", "0.50387496", "0.50382704", "0.5032789", "0.50309557", "0.5030088", "0.5025512", "0.50220513", "0.5017202", "0.50028217", "0.5002301", "0.5001336", "0.5000346", "0.49931452", "0.4977091", "0.49736354", "0.49719173", "0.4967984", "0.4965054", "0.49624032", "0.49621725", "0.4958005", "0.4937329", "0.49258977", "0.49157667", "0.49137917", "0.49106255", "0.4908773", "0.4907229", "0.4900068", "0.48993766", "0.48984694", "0.48984078", "0.48962706", "0.48953947", "0.4889829", "0.48842424", "0.4879808", "0.487918", "0.48783818" ]
0.0
-1
Tries to add item stack to player, drops if not possible.
public static boolean addOrDropStack(PlayerEntity player, ItemStack stack) { if (!player.inventory.addItemStackToInventory(stack)) { player.dropItem(stack, false); return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addItemStack(Item itemStack) {\n\t\tint findStackable = findStackableItem(itemStack);\r\n\t\tif(findStackable!=-1){\r\n\t\t\tItem heldStack=tileItems.getItem(findStackable);\r\n\t\t\twhile(!heldStack.stackFull()&&\t//as long as the current stack isn't full and the stack we're picking up isn't empty\r\n\t\t\t\t!itemStack.stackEmpty()){\r\n\t\t\t\theldStack.incrementStack();\r\n\t\t\t\titemStack.decrementStack(tileItems);\r\n\t\t\t\tif(itemStack.stackEmpty())\t//will this cause an error since the item is removed by the inventory?\r\n\t\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\taddItemStack(itemStack);\r\n\t\t}\r\n\t\telse\r\n\t\t\taddFullStack(itemStack);\r\n\t}", "private void tryEquipItem() {\n if (fakePlayer.get().getHeldItem(EnumHand.MAIN_HAND).isEmpty()) {\n ItemStack unbreakingPickaxe = new ItemStack(Items.DIAMOND_PICKAXE, 1);\n unbreakingPickaxe.addEnchantment(Enchantments.EFFICIENCY, 3);\n unbreakingPickaxe.setTagCompound(new NBTTagCompound());\n unbreakingPickaxe.getTagCompound().setBoolean(\"Unbreakable\", true);\n fakePlayer.get().setItemStackToSlot(EntityEquipmentSlot.MAINHAND, unbreakingPickaxe);\n }\n }", "public void softAddItem(ItemStack item, Player player){\n\t\tHashMap<Integer,ItemStack> excess = player.getInventory().addItem(item);\n\t\tfor( Map.Entry<Integer, ItemStack> me : excess.entrySet() ){\n\t\t\tplayer.getWorld().dropItem(player.getLocation(), me.getValue() );\n\t\t}\n\t}", "private void givePlayer(ItemStack item,EntityPlayer entityplayer){\n ItemStack itemstack3 = entityplayer.inventory.getItemStack();\n if(itemstack3 == null){\n \tentityplayer.inventory.setItemStack(item);\n }\n else if(NoppesUtilPlayer.compareItems(itemstack3, item, false, false)){\n\n int k1 = item.stackSize;\n if(k1 > 0 && k1 + itemstack3.stackSize <= itemstack3.getMaxStackSize())\n {\n itemstack3.stackSize += k1;\n }\n }\n }", "@Override\n\tpublic boolean addItem(ItemStack item, Player player) {\n\t\tif (!canAddItem(item, player)) {\n\t\t\treturn false;\n\t\t}\n\t\tif (item == null) {\n\t\t\treturn true;\n\t\t}\n\t\t//Backup contents\n\t\tItemStack[] backup = getContents().clone();\n\t\tItemStack backupItem = new ItemStack(item.getTypeId(), item.getAmount(), item.getDurability());\n\t\t\n\t\tint max = MinecartManiaWorld.getMaxStackSize(item);\n\t\t\n\t\t//First attempt to merge the itemstack with existing item stacks that aren't full (< 64)\n\t\tfor (int i = 0; i < size(); i++) {\n\t\t\tif (getItem(i) != null) {\n\t\t\t\tif (getItem(i).getTypeId() == item.getTypeId() && getItem(i).getDurability() == item.getDurability()) {\n\t\t\t\t\tif (getItem(i).getAmount() + item.getAmount() <= max) {\n\t\t\t\t\t\tsetItem(i, new ItemStack(item.getTypeId(), getItem(i).getAmount() + item.getAmount(), item.getDurability()));\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tint diff = getItem(i).getAmount() + item.getAmount() - max;\n\t\t\t\t\t\tsetItem(i, new ItemStack(item.getTypeId(), max, item.getDurability()));\n\t\t\t\t\t\titem = new ItemStack(item.getTypeId(), diff, item.getDurability());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Attempt to add the item to an empty slot\n\t\tint emptySlot = firstEmpty();\n\t\tif (emptySlot > -1) {\n\t\t\tsetItem(emptySlot, item);\n\t\t\tupdate();\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t\n\t\t//Try to merge the itemstack with the neighbor chest, if we have one\n\t\tMinecartManiaChest neighbor = getNeighborChest();\n\t\tif (neighbor != null) {\n\t\t\t//flag to prevent infinite recursion\n\t\t\tif (getDataValue(\"neighbor\") == null) {\n\t\t\t\tneighbor.setDataValue(\"neighbor\", Boolean.TRUE);\n\t\t\t\tif (getNeighborChest().addItem(item)) {\n\t\t\t\t\tupdate();\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//reset flag\n\t\t\t\tsetDataValue(\"neighbor\", null);\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t//if we fail, reset the inventory and item back to previous values\n\t\tgetChest().getInventory().setContents(backup);\n\t\titem = backupItem;\n\t\treturn false;\n\t}", "public boolean addItem( GameItem gameItem , boolean stack )\n {\n int slot = -1;\n for( int i = 0 ; i < size ; i++ ) {\n GameItem item = items[ i ];\n if( stack ) {\n if( item != null ) {\n if( item.getId() == gameItem.getId() ) {\n item.add( gameItem.getAmount() );\n return true;\n }\n } else {\n if( slot == -1 ) {\n slot = i;\n }\n }\n } else {\n if( item == null ) {\n items[ i ] = gameItem;\n return true;\n }\n }\n }\n \n if( slot != -1 ) {\n items[ slot ] = gameItem;\n return true;\n }\n \n return false;\n }", "public boolean addPlayerItem(PlayerItem playerItem);", "public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) {\n/* 79 */ ItemStack var3 = null;\n/* 80 */ Slot var4 = this.inventorySlots.get(index);\n/* */ \n/* 82 */ if (var4 != null && var4.getHasStack()) {\n/* */ \n/* 84 */ ItemStack var5 = var4.getStack();\n/* 85 */ var3 = var5.copy();\n/* */ \n/* 87 */ if (index < this.field_111243_a.getSizeInventory()) {\n/* */ \n/* 89 */ if (!mergeItemStack(var5, this.field_111243_a.getSizeInventory(), this.inventorySlots.size(), true))\n/* */ {\n/* 91 */ return null;\n/* */ }\n/* */ }\n/* 94 */ else if (getSlot(1).isItemValid(var5) && !getSlot(1).getHasStack()) {\n/* */ \n/* 96 */ if (!mergeItemStack(var5, 1, 2, false))\n/* */ {\n/* 98 */ return null;\n/* */ }\n/* */ }\n/* 101 */ else if (getSlot(0).isItemValid(var5)) {\n/* */ \n/* 103 */ if (!mergeItemStack(var5, 0, 1, false))\n/* */ {\n/* 105 */ return null;\n/* */ }\n/* */ }\n/* 108 */ else if (this.field_111243_a.getSizeInventory() <= 2 || !mergeItemStack(var5, 2, this.field_111243_a.getSizeInventory(), false)) {\n/* */ \n/* 110 */ return null;\n/* */ } \n/* */ \n/* 113 */ if (var5.stackSize == 0) {\n/* */ \n/* 115 */ var4.putStack(null);\n/* */ }\n/* */ else {\n/* */ \n/* 119 */ var4.onSlotChanged();\n/* */ } \n/* */ } \n/* */ \n/* 123 */ return var3;\n/* */ }", "@Test\n\tpublic void testPickUpItem() {\n\t\tSquare square = new Square();\n\t\tItem item = new LightGrenade();\n\t\t\n\t\tsquare.addItem(item);\n\t\t\n\t\tPlayer player = new Player(square, 0);\n\t\tassertEquals(0, player.getAllItems().size());\n\t\tassertFalse(player.hasItem(item));\n\t\t\n\t\tplayer.pickUp(item);\n\t\tassertTrue(player.hasItem(item));\n\t}", "@Override\r\n public ItemStack transferStackInSlot(EntityPlayer p_82846_1_, int p_82846_2_)\r\n {\r\n ItemStack itemstack = null;\r\n Slot slot = (Slot)this.inventorySlots.get(p_82846_2_);\r\n\r\n if (slot != null && slot.getHasStack())\r\n {\r\n ItemStack itemstack1 = slot.getStack();\r\n itemstack = itemstack1.copy();\r\n\r\n if (p_82846_2_ == 2 ||p_82846_2_ == 3 )\r\n {\r\n if (!this.mergeItemStack(itemstack1, 4, 40, true))\r\n {\r\n return null;\r\n }\r\n\r\n slot.onSlotChange(itemstack1, itemstack);\r\n }\r\n else if (p_82846_2_ != 1 && p_82846_2_ != 0)\r\n {\r\n \r\n if (p_82846_2_ >= 4 && p_82846_2_ < 31)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 31, 40, false))\r\n {\r\n return null;\r\n }\r\n }\r\n else if (p_82846_2_ >= 31 && p_82846_2_ < 40 && !this.mergeItemStack(itemstack1, 4, 31, false))\r\n {\r\n return null;\r\n }\r\n }\r\n else if (!this.mergeItemStack(itemstack1, 4, 40, false))\r\n {\r\n return null;\r\n }\r\n\r\n if (itemstack1.stackSize == 0)\r\n {\r\n slot.putStack((ItemStack)null);\r\n }\r\n else\r\n {\r\n slot.onSlotChanged();\r\n }\r\n\r\n if (itemstack1.stackSize == itemstack.stackSize)\r\n {\r\n return null;\r\n }\r\n\r\n slot.onPickupFromSlot(p_82846_1_, itemstack1);\r\n }\r\n\r\n return itemstack;\r\n }", "default ItemStack addStack(ItemStack stack) {\n for (IInventoryAdapter inv : this) {\n InventoryManipulator im = InventoryManipulator.get(inv);\n stack = im.addStack(stack);\n if (InvTools.isEmpty(stack))\n return InvTools.emptyStack();\n }\n return stack;\n }", "public boolean canInsertItem(World world, ItemStack stack)\n\t{\n\t\tTileEntity te = world.getTileEntity(this.pos);\n\t\t\n\t\tif (te == null) return false;\n\t\t\n\t\tLazyOptional<IItemHandler> optionalHandler = te.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, this.face);\n\t\treturn optionalHandler.map(handler -> canInsertItem(handler, stack)).orElse(false);\n\t}", "public int addItemStack(ItemStack itemStack) {\n Item item = itemStack.getItem();\n int amount = itemStack.getAmount();\n int added = 0;\n\n List<ItemStack> itemStacksToRemove = new ArrayList<>();\n for (ItemStack itemStack1 : this.ITEMS) {\n if (itemStack1.getItem() == item) {\n amount += itemStack1.getAmount();\n itemStacksToRemove.add(itemStack1);\n }\n }\n\n // clear inventory\n for (ItemStack itemStack1 : itemStacksToRemove)\n this.ITEMS.remove(itemStack1);\n\n System.out.println(String.format(\"Total amount of %s: %d\", item.getName(), amount));\n\n int stack_size = item.getMaxStack();\n int stacks = amount / stack_size;\n int last_stack = amount % stack_size;\n\n System.out.println(String.format(\"Stack size: %d, full stacks: %s, last stack: %d, inv size: %d, inv full: %d\", stack_size, stacks, last_stack, this.getSize(), this.ITEMS.size()));\n\n // add full stacks\n for (int i = 0; i < stacks; i++) {\n if (this.ITEMS.size() > this.getSize())\n break;\n\n System.out.println(\"Added full stack\");\n this.ITEMS.add(new ItemStack(item, stack_size));\n added += stack_size;\n }\n\n // add last (not full) stack\n if (last_stack != 0 && this.ITEMS.size() < this.getSize()) {\n System.out.println(\"Added partial stack\");\n this.ITEMS.add(new ItemStack(item, last_stack));\n added += last_stack;\n }\n\n for (InventoryChangedEvent listener : listeners)\n listener.onInventoryChanged(this);\n\n return added;\n }", "public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) {\n ItemStack var3 = null;\n Slot var4 = (Slot) this.inventorySlots.get(index);\n\n if (var4 != null && var4.getHasStack()) {\n ItemStack var5 = var4.getStack();\n var3 = var5.copy();\n\n if ((index < 0 || index > 2) && index != 3) {\n if (!this.theSlot.getHasStack() && this.theSlot.isItemValid(var5)) {\n if (!this.mergeItemStack(var5, 3, 4, false)) {\n return null;\n }\n } else if (ContainerBrewingStand.Potion.canHoldPotion(var3)) {\n if (!this.mergeItemStack(var5, 0, 3, false)) {\n return null;\n }\n } else if (index >= 4 && index < 31) {\n if (!this.mergeItemStack(var5, 31, 40, false)) {\n return null;\n }\n } else if (index >= 31 && index < 40) {\n if (!this.mergeItemStack(var5, 4, 31, false)) {\n return null;\n }\n } else if (!this.mergeItemStack(var5, 4, 40, false)) {\n return null;\n }\n } else {\n if (!this.mergeItemStack(var5, 4, 40, true)) {\n return null;\n }\n\n var4.onSlotChange(var5, var3);\n }\n\n if (var5.stackSize == 0) {\n var4.putStack((ItemStack) null);\n } else {\n var4.onSlotChanged();\n }\n\n if (var5.stackSize == var3.stackSize) {\n return null;\n }\n\n var4.onPickupFromSlot(playerIn, var5);\n }\n\n return var3;\n }", "@Override\r\n public boolean canTakeStack(EntityPlayer playerIn) {\n return super.canTakeStack(playerIn);\r\n }", "protected void doItemDrop(Location loc, Player player, ItemStack itemStack) {\n // To avoid drops occasionally spawning in a block and warping up to the\n // surface, wait for the next tick and check whether the block is\n // actually unobstructed. We don't attempt to save the drop if e.g.\n // a mob is standing in lava, however.\n Bukkit.getScheduler().scheduleSyncDelayedTask(BeastMaster.PLUGIN, () -> {\n Block block = loc.getBlock();\n Location revisedLoc = (block != null &&\n !canAccomodateItemDrop(block) &&\n player != null) ? player.getLocation()\n : loc;\n org.bukkit.entity.Item item = revisedLoc.getWorld().dropItem(revisedLoc, itemStack);\n item.setInvulnerable(isInvulnerable());\n item.setGlowing(isGlowing());\n }, 1);\n }", "public void push(Item item){\n this.stack.add(item);\n\n }", "@Override\n\tpublic boolean canBePushed() {\n\t\treturn super.canBePushed() && isEgg();\n\t}", "@Override\n public boolean canInsertItem(int index, ItemStack itemStackIn, EnumFacing direction) {\n return true;\n }", "public abstract boolean canAddItem(Player player, Item item, int slot);", "@Nullable\n public ItemStack transferStackInSlot(EntityPlayer playerIn, int index)\n {\n ItemStack itemstack = null;\n Slot slot = (Slot)this.inventorySlots.get(index);\n\n if (slot != null && slot.getHasStack())\n {\n ItemStack itemstack1 = slot.getStack();\n \n if(itemstack1.getItem()==TF2weapons.itemTF2&&itemstack1.getMetadata()==9){\n \t\titemstack1=ItemFromData.getRandomWeapon(playerIn.getRNG(),ItemFromData.VISIBLE_WEAPON);\n \t}\n \telse if(itemstack1.getItem()==TF2weapons.itemTF2&&itemstack1.getMetadata()==10){\n \t\titemstack1=ItemFromData.getRandomWeaponOfClass(\"cosmetic\",playerIn.getRNG(), false);\n \t}\n \n itemstack = itemstack1.copy();\n\n if (index == 0)\n {\n if (!this.mergeItemStack(itemstack1, 10, 46, true))\n {\n return null;\n }\n\n slot.onSlotChange(itemstack1, itemstack);\n }\n else if (index >= 10 && index < 37)\n {\n if (!this.mergeItemStack(itemstack1, 37, 46, false))\n {\n return null;\n }\n }\n else if (index >= 37 && index < 46)\n {\n if (!this.mergeItemStack(itemstack1, 10, 37, false))\n {\n return null;\n }\n }\n else if (!this.mergeItemStack(itemstack1, 10, 46, false))\n {\n return null;\n }\n\n if (itemstack1.stackSize == 0)\n {\n slot.putStack((ItemStack)null);\n }\n else\n {\n slot.onSlotChanged();\n }\n\n if (itemstack1.stackSize == itemstack.stackSize)\n {\n return null;\n }\n\n slot.onPickupFromSlot(playerIn, itemstack1);\n }\n\n return itemstack;\n }", "public ItemStack transferStackInSlot(int i)\n {\n ItemStack itemstack = null;\n Slot slot = (Slot)inventorySlots.get(i);\n\n if (slot != null && slot.getHasStack())\n {\n ItemStack itemstack1 = slot.getStack();\n itemstack = itemstack1.copy();\n\n if (i < 9)\n {\n if (!mergeItemStack(itemstack1, 9, 45, true))\n {\n return null;\n }\n }\n else if (!mergeItemStack(itemstack1, 0, 9, false))\n {\n return null;\n }\n\n if (itemstack1.stackSize == 0)\n {\n slot.putStack(null);\n }\n else\n {\n slot.onSlotChanged();\n }\n\n if (itemstack1.stackSize != itemstack.stackSize)\n {\n slot.onPickupFromSlot(null, itemstack1);\n }\n else\n {\n return null;\n }\n }\n\n return itemstack;\n }", "public void popItems() {\n\t\t\n\t\tItemList.add(HPup);\n\t\tItemList.add(SHPup);\n\t\tItemList.add(DMGup);\n\t\tItemList.add(SDMGup);\n\t\tItemList.add(EVup);\n\t\tItemList.add(SEVup);\n\t\t\n\t\trandomDrops.add(HPup);\n\t\trandomDrops.add(SHPup);\n\t\trandomDrops.add(DMGup);\n\t\trandomDrops.add(SDMGup);\n\t\trandomDrops.add(EVup);\n\t\trandomDrops.add(SEVup);\n\t\t\n\t\tcombatDrops.add(SHPup);\n\t\tcombatDrops.add(SDMGup);\n\t\tcombatDrops.add(SEVup);\n\t}", "@Override\n\tpublic ItemStack transferStackInSlot(EntityPlayer player, int p_82846_2_)\n\t{\n\t\tItemStack itemstack = null;\n\t\tSlot slot = (Slot)this.inventorySlots.get(p_82846_2_);\n\n\t\tif (slot != null && slot.getHasStack())\n\t\t{\n\t\t\tItemStack stackInSlot = slot.getStack();\n\t\t\titemstack = stackInSlot.copy();\n\n\t\t\t//merges the item into player inventory since its in the tileEntity\n\t\t\tif (p_82846_2_ <= 1) {\n\t\t\t\tif (!this.mergeItemStack(stackInSlot, 0, 35, true)) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//places it into the tileEntity is possible since its in the player inventory\n\t\t\telse if (!this.mergeItemStack(stackInSlot, 0, 0, false)) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\n\t\t\tif (stackInSlot.stackSize == 0)\n\t\t\t{\n\t\t\t\tslot.putStack((ItemStack)null);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tslot.onSlotChanged();\n\t\t\t}\n\t\t}\n\t\treturn itemstack;\n\t}", "public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) {\r\n ItemStack itemstack = null;\r\n Slot slot = (Slot) this.inventorySlots.get(index);\r\n\r\n if (slot != null && slot.getHasStack()) {\r\n ItemStack itemstack1 = slot.getStack();\r\n itemstack = itemstack1.copy();\r\n\r\n if (index == 0) {\r\n if (!this.mergeItemStack(itemstack1, this.inventoryHandler.getSlots(), this.inventorySlots.size(), true)) {\r\n return null;\r\n }\r\n\r\n slot.onSlotChange(itemstack1, itemstack);\r\n } else if (index >= 1 && index < this.inventorySlots.size()) {\r\n if (!this.mergeItemStack(itemstack1, this.inventorySlots.size() - 9, this.inventorySlots.size(), false)) {\r\n return null;\r\n }\r\n } else if (!this.mergeItemStack(itemstack1, this.inventoryHandler.getSlots(), this.inventorySlots.size(), false)) {\r\n return null;\r\n }\r\n\r\n if (itemstack1.stackSize == 0) {\r\n slot.putStack((ItemStack) null);\r\n } else {\r\n slot.onSlotChanged();\r\n }\r\n\r\n if (itemstack1.stackSize == itemstack.stackSize) {\r\n return null;\r\n }\r\n\r\n slot.onPickupFromSlot(playerIn, itemstack1);\r\n }\r\n\r\n return itemstack;\r\n }", "public Boolean canAddItem(ItemStack item, Player player){\n\t\tint freeSpace = 0;\n\t\tfor(ItemStack i : player.getInventory() ){\n\t\t\tif(i == null){\n\t\t\t\tfreeSpace += item.getType().getMaxStackSize();\n\t\t\t} else if (i.getType() == item.getType() ){\n\t\t\t\tfreeSpace += (i.getType().getMaxStackSize() - i.getAmount());\n\t\t\t}\n\t\t}\n\t\tdebugOut(\"Item has: \"+item.getAmount()+\" and freeSpace is: \"+freeSpace);\n\t\tif(item.getAmount() > freeSpace){\n\t\t\tdebugOut(\"There is not enough freeSpace in the inventory\");\n\t\t\treturn false;\n\t\t}else{\n\t\t\tdebugOut(\"There is enough freeSpace in the inventory\");\n\t\t\treturn true;\n\t\t}\n\t}", "@Override\n public boolean canAddToItem(@Nonnull ItemStack stack, @Nonnull IDarkSteelItem item) {\n return (item.isForSlot(EntityEquipmentSlot.FEET) || item.isForSlot(EntityEquipmentSlot.LEGS) || item.isForSlot(EntityEquipmentSlot.CHEST)\n || item.isForSlot(EntityEquipmentSlot.HEAD)) && EnergyUpgradeManager.itemHasAnyPowerUpgrade(stack) && getUpgradeVariantLevel(stack) == variant - 1;\n }", "public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)\n {\n ItemStack itemstack = null;\n Slot slot = (Slot)this.inventorySlots.get(par2);\n\n if (slot != null && slot.getHasStack())\n {\n ItemStack itemstack1 = slot.getStack();\n itemstack = itemstack1.copy();\n\n if (par2 == 0)\n {\n if (!this.mergeItemStack(itemstack1, 9, 45, true))\n {\n return null;\n }\n\n slot.onSlotChange(itemstack1, itemstack);\n }\n else if (par2 >= 1 && par2 < 5)\n {\n if (!this.mergeItemStack(itemstack1, 9, 45, false))\n {\n return null;\n }\n }\n else if (par2 >= 5 && par2 < 9)\n {\n if (!this.mergeItemStack(itemstack1, 9, 45, false))\n {\n return null;\n }\n }\n else if (itemstack.getItem() instanceof ItemArmor && !((Slot)this.inventorySlots.get(5 + ((ItemArmor)itemstack.getItem()).armorType)).getHasStack())\n {\n int j = 5 + ((ItemArmor)itemstack.getItem()).armorType;\n\n if (!this.mergeItemStack(itemstack1, j, j + 1, false))\n {\n return null;\n }\n }\n else if (par2 >= 9 && par2 < 36)\n {\n if (!this.mergeItemStack(itemstack1, 36, 45, false))\n {\n return null;\n }\n }\n else if (par2 >= 36 && par2 < 45)\n {\n if (!this.mergeItemStack(itemstack1, 9, 36, false))\n {\n return null;\n }\n }\n else if (!this.mergeItemStack(itemstack1, 9, 45, false))\n {\n return null;\n }\n\n if (itemstack1.stackSize == 0)\n {\n slot.putStack((ItemStack)null);\n }\n else\n {\n slot.onSlotChanged();\n }\n\n if (itemstack1.stackSize == itemstack.stackSize)\n {\n return null;\n }\n\n slot.onPickupFromSlot(par1EntityPlayer, itemstack1);\n }\n\n return itemstack;\n }", "public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)\r\n\t {\r\n\t\t ItemStack itemstack = null;\r\n\t\t Slot slot = (Slot)this.inventorySlots.get(par2);\r\n\r\n\t\t if (slot != null && slot.getHasStack())\r\n\t\t {\r\n\t\t\t ItemStack itemstack1 = slot.getStack();\r\n\t\t\t itemstack = itemstack1.copy();\r\n\r\n\t\t\t if (par2 == 0)\r\n\t\t\t {\r\n\t\t\t\t if (!this.mergeItemStack(itemstack1, 1, 37, true))\r\n\t\t\t\t {\r\n\t\t\t\t\t return null;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t else\r\n\t\t\t {\r\n\t\t\t\t if (((Slot)this.inventorySlots.get(0)).getHasStack() || !((Slot)this.inventorySlots.get(0)).isItemValid(itemstack1))\r\n\t\t\t\t {\r\n\t\t\t\t\t return null;\r\n\t\t\t\t }\r\n\r\n\t\t\t\t if (itemstack1.hasTagCompound() && itemstack1.stackSize == 1)\r\n\t\t\t\t {\r\n\t\t\t\t\t ((Slot)this.inventorySlots.get(0)).putStack(itemstack1.copy());\r\n\t\t\t\t\t itemstack1.stackSize = 0;\r\n\t\t\t\t }\r\n\t\t\t\t else if (itemstack1.stackSize >= 1)\r\n\t\t\t\t {\r\n\t\t\t\t\t ((Slot)this.inventorySlots.get(0)).putStack(new ItemStack(itemstack1.itemID, 1, itemstack1.getItemDamage()));\r\n\t\t\t\t\t --itemstack1.stackSize;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t\t if (itemstack1.stackSize == 0)\r\n\t\t\t {\r\n\t\t\t\t slot.putStack((ItemStack)null);\r\n\t\t\t }\r\n\t\t\t else\r\n\t\t\t {\r\n\t\t\t\t slot.onSlotChanged();\r\n\t\t\t }\r\n\r\n\t\t\t if (itemstack1.stackSize == itemstack.stackSize)\r\n\t\t\t {\r\n\t\t\t\t return null;\r\n\t\t\t }\r\n\r\n\t\t\t slot.onPickupFromSlot(par1EntityPlayer, itemstack1);\r\n\t\t }\r\n\r\n\t\t return itemstack;\r\n\t }", "@Override\n public ItemStack transferStackInSlot(EntityPlayer player, int sourceSlotIndex)\n {\n Slot sourceSlot = (Slot)inventorySlots.get(sourceSlotIndex);\n if (sourceSlot == null || !sourceSlot.getHasStack()) return ItemStack.EMPTY; //EMPTY_ITEM\n ItemStack sourceStack = sourceSlot.getStack();\n ItemStack copyOfSourceStack = sourceStack.copy();\n\n // Check if the slot clicked is one of the vanilla container slots\n if (sourceSlotIndex >= VANILLA_FIRST_SLOT_INDEX && sourceSlotIndex < VANILLA_FIRST_SLOT_INDEX + VANILLA_SLOT_COUNT) {\n // This is a vanilla container slot so merge the stack into the tile inventory\n // We can only put it into the first slot though, keep that in mind.\n if (!mergeItemStack(sourceStack, TE_INVENTORY_FIRST_SLOT_INDEX, TE_INVENTORY_FIRST_SLOT_INDEX + 1, false)){\n return ItemStack.EMPTY; // EMPTY_ITEM\n }\n } else if (sourceSlotIndex >= TE_INVENTORY_FIRST_SLOT_INDEX && sourceSlotIndex < TE_INVENTORY_FIRST_SLOT_INDEX + TE_INVENTORY_SLOT_COUNT) {\n // This is a TE slot so merge the stack into the players inventory\n if (!mergeItemStack(sourceStack, VANILLA_FIRST_SLOT_INDEX, VANILLA_FIRST_SLOT_INDEX + VANILLA_SLOT_COUNT, false)) {\n return ItemStack.EMPTY; // EMPTY_ITEM\n }\n } else {\n return ItemStack.EMPTY; // EMPTY_ITEM\n }\n\n // If stack size == 0 (the entire stack was moved) set slot contents to null\n if (sourceStack.getCount() == 0) { // getStackSize\n sourceSlot.putStack(ItemStack.EMPTY); // EMPTY_ITEM\n } else {\n sourceSlot.onSlotChanged();\n }\n\n sourceSlot.onTake(player, sourceStack); //onPickupFromSlot()\n return copyOfSourceStack;\n }", "@Override\n public ItemStack transferStackInSlot(EntityPlayer player, int index) {\n ItemStack result = ItemStack.EMPTY;\n Slot slot = inventorySlots.get(index);\n ItemStack stack = slot.getStack();\n if (slot != null && slot.getHasStack()) {\n SlotRange destRange = transferSlotRange(index, stack);\n if (destRange != null) {\n if (index >= destRange.numSlots) {\n result = stack.copy();\n if (!mergeItemStackIntoRange(stack, destRange))\n return ItemStack.EMPTY;\n if (stack.getCount() == 0)\n slot.putStack(ItemStack.EMPTY);\n else\n slot.onSlotChanged();\n }\n else\n player.inventory.addItemStackToInventory(stack);\n }\n }\n return result;\n }", "@Nullable\n ItemStack onInsert(ItemStack container);", "public void spawnItemStack(ItemStack stack, Point3d point){\r\n\t\tworld.spawnEntity(new EntityItem(world, point.x, point.y, point.z, stack));\r\n\t}", "@Override\n public void onSmelting(EntityPlayer player, ItemStack item) {\n }", "@Override\r\n\tpublic ItemStack transferStackInSlot(EntityPlayer playerIn, int index)\r\n {\r\n ItemStack itemstack = ItemStackTools.getEmptyStack();\r\n Slot slot = this.inventorySlots.get(index);\r\n\r\n if (slot != null && slot.getHasStack())\r\n {\r\n ItemStack itemstack1 = slot.getStack();\r\n itemstack = itemstack1.copy();\r\n\r\n if (index == 0)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 10, 46, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n\r\n slot.onSlotChange(itemstack1, itemstack);\r\n }\r\n else if (index >= 10 && index < 37)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 37, 46, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n }\r\n else if (index >= 37 && index < 46)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 10, 37, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n }\r\n else if (!this.mergeItemStack(itemstack1, 10, 46, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n\r\n if (ItemStackTools.isEmpty(itemstack1))\r\n {\r\n slot.putStack(ItemStackTools.getEmptyStack());\r\n }\r\n else\r\n {\r\n slot.onSlotChanged();\r\n }\r\n\r\n if (ItemStackTools.getStackSize(itemstack1) == ItemStackTools.getStackSize(itemstack))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n\r\n slot.onTake(playerIn, itemstack1);\r\n }\r\n\r\n return itemstack;\r\n }", "@Override\n public void onSmelting(EntityPlayer player, ItemStack item) \n {\n \n }", "private boolean canGivePlayer(ItemStack item,EntityPlayer entityplayer){\n ItemStack itemstack3 = entityplayer.inventory.getItemStack();\n if(itemstack3 == null){\n \treturn true;\n }\n else if(NoppesUtilPlayer.compareItems(itemstack3, item, false, false)){\n int k1 = item.stackSize;\n if(k1 > 0 && k1 + itemstack3.stackSize <= itemstack3.getMaxStackSize())\n {\n return true;\n }\n }\n return false;\n }", "public void push (E item){\n this.stack.add(item);\n }", "public static void dropStackInWorld (World world, BlockPos pos, ItemStack stack) {\n \n if (!world.isRemote) {\n \n final float offset = 0.7F;\n final double offX = world.rand.nextFloat() * offset + (1.0F - offset) * 0.5D;\n final double offY = world.rand.nextFloat() * offset + (1.0F - offset) * 0.5D;\n final double offZ = world.rand.nextFloat() * offset + (1.0F - offset) * 0.5D;\n final EntityItem entityitem = new EntityItem(world, pos.getX() + offX, pos.getY() + offY, pos.getZ() + offZ, stack);\n entityitem.setPickupDelay(10);\n world.spawnEntity(entityitem);\n }\n }", "public boolean checkItem () {\r\n\t\tfor (Entity e : getLocation().getWorld().getEntities())\r\n\t\t{\r\n\t\t\tdouble x = e.getLocation().getX();\r\n\t\t\tdouble z = e.getLocation().getZ();\r\n\t\t\tdouble yDiff = getSpawnLocation().getY() - e.getLocation().getY();\r\n \r\n\t\t\tif (yDiff < 0)\r\n\t\t\t\tyDiff *= -1;\r\n\r\n\t\t\tif (x == getSpawnLocation().getX() && yDiff <= 1.5 && z == getSpawnLocation().getZ()) {\r\n \r\n ShowCaseStandalone.slog(Level.FINEST, \"Potential hit on checkItem()\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tItem itemE = (Item)e;\r\n\t\t\t\t\tif (ItemStackHandler.itemsEqual(itemE.getItemStack(), getItemStack(), true)) {\r\n ShowCaseStandalone.slog(Level.FINEST, \"Existing stack: \" + itemE.getItemStack().toString());\r\n itemE.getItemStack().setAmount(1); //Removes duped items, which can occur.\r\n\t\t\t\t\t\tthis.item = itemE;\r\n\t\t\t\t\t\tscs.log(Level.FINER, \"Attaching to existing item.\");\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception ex) {}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static boolean canInsertItem(IItemHandler handler, ItemStack stack)\n\t{\n\t\tfor (int i=0; i<handler.getSlots(); i++)\n\t\t{\n\t\t\t// for each slot, if the itemstack can be inserted into the slot\n\t\t\t\t// (i.e. if the type of that item is valid for that slot AND\n\t\t\t\t// if there is room to put at least part of that stack into the slot)\n\t\t\t// then the inventory at this endpoint can receive the stack, so return true\n\t\t\tif (handler.isItemValid(i, stack) && handler.insertItem(i, stack, true).getCount() < stack.getCount())\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// return false if no acceptable slot is found\n\t\treturn false;\n\t}", "public void dropBackpack()\n {\n itemLimit = 1;\n haveBackpack = false;\n }", "public void push(int item) {\n\t\t// TODO Auto-generated method stub\n\t\tif(position >= stack.length-1){\n\t\t\tSystem.out.println(\"Stack is full!\");\n\t\t}else{\n\t\t\tstack[position] = item;\n\t\t\tposition++;\n\t\t}\n\t}", "public void transferItem(Items item) throws Exception {\n\t\tif (item.getHolder() instanceof Monsters) {\n\t\t\titem.setHolder(null);\n\t\t\tthis.addAnchor(item);\n\t\t}\n\t\telse if (item.getHolder() instanceof Backpacks) {\n\t\t\titem.setHolder(null);\n\t\t\tthis.addAnchor(item);\n\t\t}\n\t\telse\n\t\t\tthrow new Exception(\"The transaction is only possible between monsters and/or backpacks.\");\n\t}", "public void addCrafting(StackType option);", "boolean addSteam(ItemStack me, int amount, EntityPlayer player);", "@Override\n\tpublic boolean isItemValid(ItemStack stack) {\n\t\treturn true;\n\t}", "@Test\n\tpublic void testUseValidItem() {\n\t\tLightGrenade lightGrenade = new LightGrenade();\n\t\tSquare square = new Square();\n\t\t\n\t\tPlayer player = new Player(square, 0);\n\t\tplayer.addItem(lightGrenade);\n\t\t\n\t\tplayer.useItem(lightGrenade);\n\t\tassertFalse(player.hasItem(lightGrenade));\n\t}", "public boolean saveNBTToDroppedItem() {\n return true;\n }", "@Test\n public void push() {\n SimpleStack stack = new DefaultSimpleStack();\n Item item = new Item();\n\n // When the item is pushed in the stack\n stack.push(item);\n\n // Then…\n assertFalse(\"The stack must be not empty\", stack.isEmpty());\n assertEquals(\"The stack constains 1 item\", 1, stack.getSize());\n assertSame(\"The pushed item is on top of the stack\", item, stack.peek());\n }", "@Test(expected = VendingMachineException.class)\r\n\tpublic void testAddItem_already_occupied() {\r\n\t\tVendingMachineItem test = new VendingMachineItem(\"test\", 10.0);\r\n\t\tvendMachine.addItem(test, \"A\");\r\n\t\tVendingMachineItem test2 = new VendingMachineItem(\"test\", 10.0);\r\n\t\tvendMachine.addItem(test2, \"A\");\r\n\r\n\t}", "@Test\r\n\tpublic void testAddItem_not_occupied() {\r\n\t\tVendingMachineItem test = new VendingMachineItem(\"test\", 10.0);\r\n\t\tvendMachine.addItem(test, \"A\");\r\n\t\tassertEquals(test, vendMachine.getItem(\"A\"));\r\n\t}", "@Override\n public void onTake(@Nonnull Player player, @Nonnull ItemStack stack) {\n super.onTake(player, stack);\n }", "@Override\n\tpublic void setItemStack(ItemStack stack) {\n\t}", "public void addItem(Item item, boolean moving, long creatureId, boolean starting) {\n/* 2186 */ if (this.inactive) {\n/* */ \n/* 2188 */ logger.log(Level.WARNING, \"adding \" + item.getName() + \" to inactive tile \" + this.tilex + \",\" + this.tiley + \" surf=\" + this.surfaced + \" itemsurf=\" + item\n/* 2189 */ .isOnSurface(), new Exception());\n/* 2190 */ logger.log(Level.WARNING, \"The zone \" + this.zone.id + \" covers \" + this.zone.startX + \", \" + this.zone.startY + \" to \" + this.zone.endX + \",\" + this.zone.endY);\n/* */ } \n/* */ \n/* */ \n/* 2194 */ if (item.hidden) {\n/* */ return;\n/* */ }\n/* 2197 */ if (this.isTransition && this.surfaced && !item.isVehicle()) {\n/* */ \n/* 2199 */ if (logger.isLoggable(Level.FINEST))\n/* */ {\n/* 2201 */ logger.finest(\"Adding \" + item.getName() + \" to cave level instead.\");\n/* */ }\n/* 2203 */ boolean stayOnSurface = false;\n/* 2204 */ if (Zones.getTextureForTile(this.tilex, this.tiley, 0) != Tiles.Tile.TILE_HOLE.id)\n/* 2205 */ stayOnSurface = true; \n/* 2206 */ if (!stayOnSurface) {\n/* */ \n/* 2208 */ getCaveTile().addItem(item, moving, starting);\n/* */ \n/* */ return;\n/* */ } \n/* */ } \n/* 2213 */ if (item.isTileAligned()) {\n/* */ \n/* 2215 */ item.setPosXY(((this.tilex << 2) + 2), ((this.tiley << 2) + 2));\n/* 2216 */ item.setOwnerId(-10L);\n/* 2217 */ if (item.isFence())\n/* */ {\n/* 2219 */ if (isOnSurface()) {\n/* */ \n/* 2221 */ int offz = 0;\n/* */ \n/* */ try {\n/* 2224 */ offz = (int)((item.getPosZ() - Zones.calculateHeight(item.getPosX(), item.getPosY(), this.surfaced)) / 10.0F);\n/* */ }\n/* 2226 */ catch (NoSuchZoneException nsz) {\n/* */ \n/* 2228 */ logger.log(Level.WARNING, \"Dropping fence item outside zones.\");\n/* */ } \n/* 2230 */ float rot = Creature.normalizeAngle(item.getRotation());\n/* 2231 */ if (rot >= 45.0F && rot < 135.0F)\n/* */ {\n/* 2233 */ VolaTile next = Zones.getOrCreateTile(this.tilex + 1, this.tiley, this.surfaced);\n/* 2234 */ next.addFence((Fence)new TempFence(StructureConstantsEnum.FENCE_SIEGEWALL, this.tilex + 1, this.tiley, offz, item, Tiles.TileBorderDirection.DIR_DOWN, next\n/* 2235 */ .getZone().getId(), getLayer()));\n/* */ }\n/* 2237 */ else if (rot >= 135.0F && rot < 225.0F)\n/* */ {\n/* 2239 */ VolaTile next = Zones.getOrCreateTile(this.tilex, this.tiley + 1, this.surfaced);\n/* 2240 */ next.addFence((Fence)new TempFence(StructureConstantsEnum.FENCE_SIEGEWALL, this.tilex, this.tiley + 1, offz, item, Tiles.TileBorderDirection.DIR_HORIZ, next\n/* 2241 */ .getZone().getId(), getLayer()));\n/* */ }\n/* 2243 */ else if (rot >= 225.0F && rot < 315.0F)\n/* */ {\n/* 2245 */ addFence((Fence)new TempFence(StructureConstantsEnum.FENCE_SIEGEWALL, this.tilex, this.tiley, offz, item, Tiles.TileBorderDirection.DIR_DOWN, \n/* 2246 */ getZone().getId(), getLayer()));\n/* */ }\n/* */ else\n/* */ {\n/* 2250 */ addFence((Fence)new TempFence(StructureConstantsEnum.FENCE_SIEGEWALL, this.tilex, this.tiley, offz, item, Tiles.TileBorderDirection.DIR_HORIZ, \n/* 2251 */ getZone().getId(), getLayer()));\n/* */ }\n/* */ \n/* */ } \n/* */ }\n/* 2256 */ } else if (item.getTileX() != this.tilex || item.getTileY() != this.tiley) {\n/* */ \n/* 2258 */ putRandomOnTile(item);\n/* 2259 */ item.setOwnerId(-10L);\n/* */ } \n/* 2261 */ if (!this.surfaced)\n/* */ {\n/* 2263 */ if (Tiles.isSolidCave(Tiles.decodeType(Server.caveMesh.getTile(this.tilex, this.tiley)))) {\n/* */ \n/* 2265 */ if (!(getSurfaceTile()).isTransition) {\n/* */ \n/* 2267 */ getSurfaceTile().addItem(item, moving, creatureId, starting);\n/* 2268 */ logger.log(Level.INFO, \"adding \" + item.getName() + \" in rock at \" + this.tilex + \", \" + this.tiley + \" \");\n/* */ } \n/* */ \n/* */ return;\n/* */ } \n/* */ }\n/* 2274 */ item.setZoneId(this.zone.getId(), this.surfaced);\n/* 2275 */ if (!starting && !item.getTemplate().hovers()) {\n/* 2276 */ item.updatePosZ(this);\n/* */ }\n/* 2278 */ if (this.vitems == null)\n/* 2279 */ this.vitems = new VolaTileItems(); \n/* 2280 */ if (this.vitems.addItem(item, starting)) {\n/* */ \n/* 2282 */ if (item.getTemplateId() == 726) {\n/* 2283 */ Zones.addDuelRing(item);\n/* */ }\n/* 2285 */ if (!item.isDecoration()) {\n/* */ \n/* 2287 */ Item pile = this.vitems.getPileItem(item.getFloorLevel());\n/* 2288 */ if (this.vitems.checkIfCreatePileItem(item.getFloorLevel()) || pile != null) {\n/* */ \n/* 2290 */ if (pile == null) {\n/* */ \n/* 2292 */ pile = createPileItem(item, starting);\n/* 2293 */ this.vitems.addPileItem(pile);\n/* */ } \n/* 2295 */ pile.insertItem(item, true);\n/* 2296 */ int data = pile.getData1();\n/* 2297 */ if (data != -1 && item.getTemplateId() != data) {\n/* */ \n/* 2299 */ pile.setData1(-1);\n/* 2300 */ pile.setName(pile.getTemplate().getName());\n/* 2301 */ String modelname = pile.getTemplate().getModelName().replaceAll(\" \", \"\") + \"unknown.\";\n/* */ \n/* 2303 */ if (this.watchers != null)\n/* */ {\n/* 2305 */ for (Iterator<VirtualZone> it = this.watchers.iterator(); it.hasNext();) {\n/* 2306 */ ((VirtualZone)it.next()).renameItem(pile, pile.getName(), modelname);\n/* */ }\n/* */ }\n/* */ } \n/* 2310 */ } else if (this.watchers != null) {\n/* */ \n/* 2312 */ boolean onGroundLevel = true;\n/* 2313 */ if (item.getFloorLevel() > 0) {\n/* 2314 */ onGroundLevel = false;\n/* */ \n/* */ }\n/* 2317 */ else if ((getFloors(0, 0)).length > 0) {\n/* 2318 */ onGroundLevel = false;\n/* */ } \n/* 2320 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 2324 */ if (vz.isVisible(item, this)) {\n/* 2325 */ vz.addItem(item, this, creatureId, onGroundLevel);\n/* */ }\n/* 2327 */ } catch (Exception e) {\n/* */ \n/* 2329 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ }\n/* */ \n/* */ } \n/* */ } \n/* 2334 */ } else if (this.watchers != null) {\n/* */ \n/* 2336 */ boolean onGroundLevel = true;\n/* 2337 */ if (item.getFloorLevel() > 0) {\n/* 2338 */ onGroundLevel = false;\n/* */ \n/* */ }\n/* 2341 */ else if ((getFloors(0, 0)).length > 0) {\n/* 2342 */ onGroundLevel = false;\n/* */ } \n/* 2344 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 2348 */ if (vz.isVisible(item, this)) {\n/* 2349 */ vz.addItem(item, this, creatureId, onGroundLevel);\n/* */ }\n/* 2351 */ } catch (Exception e) {\n/* */ \n/* 2353 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ } \n/* 2357 */ if (item.isDomainItem()) {\n/* 2358 */ Zones.addAltar(item, moving);\n/* */ }\n/* 2360 */ if ((item.getTemplateId() == 1175 || item.getTemplateId() == 1239) && item\n/* 2361 */ .getAuxData() > 0)\n/* 2362 */ Zones.addHive(item, moving); \n/* 2363 */ if (item.getTemplateId() == 939 || item.isEnchantedTurret())\n/* 2364 */ Zones.addTurret(item, moving); \n/* 2365 */ if (item.isEpicTargetItem()) {\n/* 2366 */ EpicTargetItems.addRitualTargetItem(item);\n/* */ }\n/* 2368 */ if (this.village != null && item.getTemplateId() == 757)\n/* */ {\n/* 2370 */ this.village.addBarrel(item);\n/* */ }\n/* */ }\n/* */ else {\n/* */ \n/* 2375 */ item.setZoneId(this.zone.getId(), this.surfaced);\n/* 2376 */ if (!item.deleted) {\n/* 2377 */ logger.log(Level.WARNING, \"tile already contained item \" + item.getName() + \" (ID: \" + item.getWurmId() + \") at \" + this.tilex + \", \" + this.tiley, new Exception());\n/* */ }\n/* */ } \n/* */ }", "protected void handleAutoInsertAsIndividualActions(Player viewer, InventoryState inventoryState, GUISession session, Inventory destInv, InventoryClickEvent shiftClickEvent){\n shiftClickEvent.setCancelled(true); //Cancel the event\n boolean destIsTopInv = shiftClickEvent.getView().getTopInventory().equals(destInv);\n //find an empty slot and try and place it there\n ItemStack toMove = shiftClickEvent.getCurrentItem().clone();\n int totalToMove = toMove.getAmount(); //The total amount trying to be moved\n if(toMove == null || toMove.getType().equals(Material.AIR) || toMove.getAmount() < 1){\n return; //No item to move\n }\n int destSlotNum = -1;\n int moveAmount = toMove.getAmount(); //The amount we can move\n for(int i=0;i<destInv.getSize();i++){ //First try and find a slot that we can stack with\n if(!destIsTopInv && i > 35){ //Moving to bottom (Always Player) inventory, slots outside of 35 are not allowed to be auto-inserted into\n break;\n }\n ItemStack it = destInv.getItem(i);\n if(it != null && !it.getType().equals(Material.AIR)){ //Slot isn't empty, let's try and place it here\n GUIElement inSlot = !destIsTopInv ? null : inventoryState.getElementInSlot(i); //The GUIElement in this slot if dest is the GUI\n if(inSlot == null || inSlot.canAutoInsertIntoSlot(viewer, session)) { //Slot is able to be auto inserted into\n if(it.getAmount() < it.getMaxStackSize() && StackCompatibilityUtil.canStack(it, toMove)){ //They can be stacked together and it's not a full stack\n destSlotNum = i;\n moveAmount = Math.min(moveAmount, it.getMaxStackSize() - it.getAmount()); //Reduce the number to move if moving the current amount would overflow the stack\n break;\n }\n }\n }\n }\n if(destSlotNum == -1){ //If still not found a slot\n for(int i=0;i<destInv.getSize();i++){ //Second try and find an allowed empty slot to try and place into\n if(!destIsTopInv && i > 35){ //Moving to bottom (Always Player) inventory, slots outside of 35 are not allowed to be auto-inserted into\n break;\n }\n ItemStack it = destInv.getItem(i);\n if(it == null || it.getType().equals(Material.AIR)){ //Slot is empty, let's try and place it here\n GUIElement inSlot = !destIsTopInv ? null : inventoryState.getElementInSlot(i); //The GUIElement in this slot if dest is the GUI\n if(inSlot == null || inSlot.canAutoInsertIntoSlot(viewer, session)) {\n destSlotNum = i;\n break;\n }\n }\n }\n }\n toMove.setAmount(moveAmount);\n\n if(destSlotNum >= 0) { //If we have found a destination slot\n //Simulate a place event for here\n ItemStack cursor = shiftClickEvent.getView().getCursor();\n\n if(destIsTopInv) { //If destination is GUI, then simulate placing it\n shiftClickEvent.getView().setCursor(toMove);\n InventoryClickEvent placeEvent = new InventoryClickEvent(shiftClickEvent.getView(), InventoryType.SlotType.CONTAINER, destSlotNum, ClickType.LEFT, InventoryAction.PLACE_ALL);\n handleBukkitEvent(placeEvent, session);\n boolean placed = !placeEvent.isCancelled() || shiftClickEvent.getView().getCursor() == null\n || shiftClickEvent.getView().getCursor().getType().equals(Material.AIR); //If cursor is now cleared or event not cancelled, then item was/should be moved\n shiftClickEvent.getView().setCursor(cursor); //Reset cursor to how it was before we did the shift click\n if(!placeEvent.isCancelled()){\n //Move item as it not being cancelled means it's expected to happen\n destInv.setItem(destSlotNum, toMove); //Make the slot contain the item to move\n }\n if(placed){ //Has been placed into the destination slot, so now clear the source slot of the items we moved\n int newAmount = totalToMove - moveAmount; //Figure out how many are left\n ItemStack remainder = toMove.clone(); //Get the item stack that was moved\n remainder.setAmount(newAmount); //Set the amount to be how many are left\n shiftClickEvent.getView().setItem(shiftClickEvent.getRawSlot(), newAmount < 1 ? null : remainder); //Update in inventory\n }\n }\n else { //Source is GUI, so simulate picking it up\n shiftClickEvent.getView().setCursor(null); //Set the current cursor to nothing, so we can pickup everything available\n //Pickup all the items in the slot\n InventoryClickEvent pickupEvent = new InventoryClickEvent(shiftClickEvent.getView(), shiftClickEvent.getSlotType(), shiftClickEvent.getRawSlot(), ClickType.LEFT, InventoryAction.PICKUP_ALL);\n handleBukkitEvent(pickupEvent, session);\n boolean pickedUp = !pickupEvent.isCancelled() || (shiftClickEvent.getView().getCursor() != null\n && !shiftClickEvent.getView().getCursor().getType().equals(Material.AIR)); //If all the items were picked up\n if(!pickupEvent.isCancelled()){ //If not cancelled we actually have to do the action\n shiftClickEvent.getView().setItem(shiftClickEvent.getRawSlot(), null);\n }\n if(pickedUp){\n //We picked up too much, so put back any needed\n int amtPickedUp = shiftClickEvent.getView().getCursor() == null ? 0 : shiftClickEvent.getView().getCursor().getAmount();\n int toPutBack = amtPickedUp - moveAmount;\n if(toPutBack > 0){ //Put back the extra\n ItemStack toReturn = toMove.clone();\n toReturn.setAmount(toPutBack);\n shiftClickEvent.getView().setCursor(toReturn);\n InventoryClickEvent placeEvent = new InventoryClickEvent(shiftClickEvent.getView(), shiftClickEvent.getSlotType(), shiftClickEvent.getRawSlot(), ClickType.LEFT, InventoryAction.PLACE_ALL);\n handleBukkitEvent(placeEvent, session);\n if(!placeEvent.isCancelled()){\n //Change item as it not being cancelled means it's expected to happen\n shiftClickEvent.getView().setItem(shiftClickEvent.getRawSlot(), toReturn);\n }\n }\n\n //Put the 'picked up' items into the destination inventory\n ItemStack currentItem = destInv.getItem(destSlotNum);\n int currentAmt = currentItem == null || !StackCompatibilityUtil.canStack(toMove, currentItem) ? 0 : currentItem.getAmount();\n int amt = currentAmt + moveAmount; //Add the existing amount and the amount to add\n toMove.setAmount(amt);\n destInv.setItem(destSlotNum, toMove);\n }\n shiftClickEvent.getView().setCursor(cursor); //Reset cursor to how it was before we did the shift click\n }\n\n if(totalToMove > moveAmount){ //If not all of the stack was moved into the GUI, call recursively to try and move the remainder\n InventoryClickEvent newShiftClickEvent = new InventoryClickEvent(shiftClickEvent.getView(), shiftClickEvent.getSlotType(),\n shiftClickEvent.getRawSlot(), shiftClickEvent.getClick(), InventoryAction.MOVE_TO_OTHER_INVENTORY);\n //Call self recursively to move the remainder somewhere\n handleAutoInsertAsIndividualActions(viewer, inventoryState, session, destInv, newShiftClickEvent);\n }\n }\n return;\n }", "public void playerUseItem(Player player, Item item) {\n\t\tif (item instanceof FloatingDevice) {\n\t\t\tplayer.setHasFloatingDevice(!player.getHasFloatingDevice());\n\t\t} else if (item instanceof Teleporter) {\n\t\t\tplayer.getTile().setGameObject(null);\n\t\t\tplayer.setLocation(0);\n\t\t\tTile t;\n\t\t\tif (!(player.getLocation().getTileAtPosition(new Position(5, 5)).getGameObject() instanceof Player)) {\n\t\t\t\tplayer.setTile(player.getLocation().getTileAtPosition(new Position(5, 5)));\n\t\t\t\tplayer.getTile().setGameObject(player);\n\t\t\t} else if (!(player.getLocation().getTileAtPosition(new Position(4, 5))\n\t\t\t\t\t.getGameObject() instanceof Player)) {\n\t\t\t\tplayer.setTile(player.getLocation().getTileAtPosition(new Position(4, 5)));\n\t\t\t\tplayer.getTile().setGameObject(player);\n\t\t\t} else if (!(player.getLocation().getTileAtPosition(new Position(4, 4))\n\t\t\t\t\t.getGameObject() instanceof Player)) {\n\t\t\t\tplayer.setTile(player.getLocation().getTileAtPosition(new Position(4, 4)));\n\t\t\t\tplayer.getTile().setGameObject(player);\n\t\t\t} else if (!(player.getLocation().getTileAtPosition(new Position(5, 4))\n\t\t\t\t\t.getGameObject() instanceof Player)) {\n\t\t\t\tplayer.setTile(player.getLocation().getTileAtPosition(new Position(5, 4)));\n\t\t\t\tplayer.getTile().setGameObject(player);\n\t\t\t}\n\t\t\tplayer.getInventory().remove(item);\n\n\t\t} else if (item instanceof FishingRod) {\n\t\t\tif (player.getLocation().getTileInDirection(player.getTile().getPos(),\n\t\t\t\t\tplayer.getFacing()) instanceof WaterTile) {\n\t\t\t\tif (player.inventoryIsFull()) {\n\t\t\t\t\tserverController.broadcastPlayerMessage(\"You can't fish now, you have no room for the spoils\",\n\t\t\t\t\t\t\tplayer);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tint randy = (int) (Math.random() * 5);\n\t\t\t\tif (randy == 0) {\n\t\t\t\t\tserverController.broadcastPlayerMessage(\n\t\t\t\t\t\t\t\"You caught a fish against all odds, sadly your rod was lost in the process\", player);\n\t\t\t\t\tplayer.getInventory().remove(item);\n\t\t\t\t\tplayer.pickUpItem(new Fish(\"Fish\"));\n\t\t\t\t} else {\n\t\t\t\t\tserverController.broadcastPlayerMessage(\n\t\t\t\t\t\t\t\"A nibble felt, however sometimes we just aren't that lucky\", player);\n\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tserverController.broadcastPlayerMessage(\n\t\t\t\t\t\t\"Harambe is disgusted with you incompetence, you can't fish on land fool!\", player);\n\t\t\t}\n\t\t}\n\t}", "@Override\n \tpublic void onPlayerRespawn(EntityPlayer player) {\n \t\t\n \t\tNBTTagCompound compound = player.getEntityData();\n \t\tif (!compound.hasKey(EntityPlayer.PERSISTED_NBT_TAG)) return;\n \t\tNBTTagCompound persistent = compound.getCompoundTag(EntityPlayer.PERSISTED_NBT_TAG);\n \t\tif (!persistent.hasKey(\"Backpack\")) return;\n \t\tNBTTagCompound backpack = persistent.getCompoundTag(\"Backpack\");\n \t\t\n \t\tint size = backpack.getInteger(\"count\");\n \t\tItemStack[] contents = new ItemStack[size];\n \t\tNbtUtils.readItems(contents, backpack.getTagList(\"Items\"));\n \t\t\n \t\tItemBackpack.getBackpackData(player).contents = contents;\n \t\t\n \t\tpersistent.removeTag(\"Backpack\");\n \t\tif (persistent.hasNoTags())\n \t\t\tcompound.removeTag(EntityPlayer.PERSISTED_NBT_TAG);\n \t\t\n \t}", "public void handleCrafting() {\n if(input.getStackInSlot(0).getItem() != input.getStackInSlot(1).getItem() && !input.getStackInSlot(0).isEmpty() && !input.getStackInSlot(1).isEmpty()) {\n isRecipeInvalid = true;\n }\n // Handles two compatible items\n else if(input.getStackInSlot(0).getMaxDamage() > 1 && input.getStackInSlot(0).getMaxStackSize() == 1 && input.getStackInSlot(0).getItem() == input.getStackInSlot(1).getItem()) {\n isRecipeInvalid = false;\n ItemStack stack = input.getStackInSlot(0);\n int sum = (stack.getMaxDamage() - stack.getItemDamage()) + (stack.getMaxDamage() - input.getStackInSlot(1).getItemDamage());\n\n sum = sum + (int)(sum * 0.2);\n if(sum > stack.getMaxDamage()) {\n sum = stack.getMaxDamage();\n }\n\n output.setStackInSlot(0, new ItemStack(stack.getItem(), 1, stack.getMaxDamage() - sum));\n }\n // Resets the grid when the two items are incompatible\n if(input.getStackInSlot(0).getItem() != input.getStackInSlot(1).getItem() && !output.getStackInSlot(0).isEmpty()) {\n output.setStackInSlot(0, ItemStack.EMPTY);\n }\n }", "@Override\r\n public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)\r\n {\r\n\t\tItemStack stack = null;\r\n Slot slot = (Slot)this.inventorySlots.get(par2);\r\n\r\n if (slot != null && slot.getHasStack()) {\r\n ItemStack stack1 = slot.getStack();\r\n stack = stack1.copy();\r\n\r\n if (par2 == 0) {\r\n if (!this.mergeItemStack(stack1, 10, 46, true)) {\r\n return null;\r\n }\r\n slot.onSlotChange(stack1, stack);\r\n }\r\n else if (par2 >= 10 && par2 < 37) {\r\n if (!this.mergeItemStack(stack1, 37, 46, false)) {\r\n return null;\r\n }\r\n }\r\n else if (par2 >= 37 && par2 < 46) {\r\n if (!this.mergeItemStack(stack1, 10, 37, false)) {\r\n return null;\r\n }\r\n }\r\n else if (!this.mergeItemStack(stack1, 10, 46, false)) {\r\n return null;\r\n }\r\n\r\n if (stack1.stackSize == 0) {\r\n slot.putStack((ItemStack)null);\r\n }\r\n else {\r\n slot.onSlotChanged();\r\n }\r\n\r\n if (stack1.stackSize == stack.stackSize) {\r\n return null;\r\n }\r\n\r\n slot.onPickupFromSlot(par1EntityPlayer, stack1);\r\n }\r\n\r\n return stack;\r\n }", "private void push( Card card ) {\r\n undoStack.add( card );\r\n }", "public boolean canTakeStack(EntityPlayer par1EntityPlayer)\n/* 43: */ {\n/* 44:37 */ if ((getStack() != null) && \n/* 45:38 */ (getStack().getItem() == ChocolateQuest.shield)) {\n/* 46:39 */ return this.rightHand.getStack() == null;\n/* 47: */ }\n/* 48:42 */ return super.canTakeStack(par1EntityPlayer);\n/* 49: */ }", "public void addItem(Item item)\n\t{\n\t\tif(inventory.size()<=9)\n\t\t\tinventory.add(item);\n\t\telse\n\t\t\tSystem.out.println(\"Inventory is full.\");\n\t}", "public void dropItem(Item seekItem)\n {\n //get each item from the items's array list.\n for (Item item : items){\n if(item.getName().equals(seekItem.getName())){\n currentRoom.getInventory().getItems().add(item);\n removePlayerItem(item);\n System.out.println(\"You have placed the \"+ item.getName() +\" in the \" + currentRoom.getName() + \".\");\n }\n }\n }", "@Test\r\n\tpublic void BushTest_2(){\r\n\t\tPlayer player = new Player(0,\"Chris\", new Point(1, 1), new Point(0, 1));\r\n\t\tPoint worldLocation = new Point(1, 1);\r\n\t\tPoint tileLocation = new Point(1, 1);\r\n\t\tBush bush = new Bush(worldLocation, tileLocation);\r\n\t\ttry{\r\n\t\t\ttry {\r\n\t\t\t\tbush.performAction(player);\r\n\t\t\t} catch (SignalException e) {\r\n\t\t\t}\r\n\t\t\tif(player.getPocket().getItems().size() == 1){\r\n\t\t\t\tItem item = player.getPocket().getItems().get(0);\r\n\t\t\t\tassert(item instanceof Food);\r\n\t\t\t\tassert(((Food) item).getFoodType() == FoodType.BERRY);\r\n\t\t\t}\r\n\t\t\tTimeUnit.SECONDS.sleep(11);\r\n\t\t\ttry {\r\n\t\t\t\tbush.performAction(player);\r\n\t\t\t} catch (SignalException e) {\r\n\t\t\t}\r\n\t\t\tif(player.getPocket().getItems().size() == 1 ||player.getPocket().getItems().size() == 2){\r\n\t\t\t\tint last = player.getPocket().getItems().size() - 1;\r\n\t\t\t\tItem item = player.getPocket().getItems().get(last);\r\n\t\t\t\tassert(item instanceof Food);\r\n\t\t\t\tassert(((Food) item).getFoodType() == FoodType.BERRY);\r\n\t\t\t}\r\n\t\t}catch(GameException | InterruptedException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void smeltItem() {\n\t\tif (this.canSmelt()) {\n\t\t\tItemStack itemstack = FurnaceRecipes.smelting().getSmeltingResult(\n\t\t\t\t\tthis.slots[0]);\n\t\t\tif (this.slots[1] == null) {\n\t\t\t\tthis.slots[1] = itemstack.copy();\n\t\t\t} else if (this.slots[1].getItem() == itemstack.getItem()) {\n\t\t\t\tthis.slots[1].stackSize += itemstack.stackSize;\n\t\t\t}\n\n\t\t\t--this.slots[0].stackSize;\n\n\t\t\tif (this.slots[0].stackSize <= 0) {\n\t\t\t\tthis.slots[0] = null;\n\t\t\t}\n\t\t}\n\t}", "ItemStack addPage(EntityPlayer player, ItemStack itemstack, ItemStack page);", "@Override\n public E push(E item) {\n // do not allow nulls\n if (item == null) {\n return null;\n }\n\n // do not allow same item twice in a row\n if (size() > 0 && item.equals(peek())) {\n return null;\n }\n\n // okay to add item to stack\n super.push(item);\n\n // remove oldest item if stack is now larger than max size\n if (size() > maxSize) {\n remove(0);\n }\n contentsChanged();\n return item;\n }", "public static void addItem(BackpackItem itemName) {\n\t\t\t\n\t\t\tfor (int i = 0; i <= backpackArr.length-1; i++) { //iterate through backpackArr\n\t\t\t\t\n\t\t\t\tif (backpackArr[i] == null) { // If there is no item in slot\n\t\t\t\t\tSystem.out.println(\"You added the \" + itemName + \" to your backpack.\");\n\t\t\t\t\tbackpackArr[i] = itemName; // puts new item into next empty BackpackItem index in backpackArr\n\t\t\t\t\tbreak; // breaks out of for loop (to prevent filling up all slots with the same item\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public int addItem(String name, int value) {\n\t\tfor (int i = 0; i < inventoryslot.length; i++) {\n\t\t\tif (inventoryslot[i].getItemname()==name) {\n\t\t\t\ttempstate=inventoryslot[i].changevalue(value);\n\t\t\t\tif(tempstate>0)return tempstate;/**Item over stacksize */\n\t\t\t\telse if(tempstate<0)return tempstate;/** Item empty*/\n\t\t\t\treturn tempstate;/** item added inventory */\n\t\t\t}\t\t\t\t\n\t\t}\n\t\treturn -1;/** item does not exists in inventory */\n\t}", "public boolean processInteract(EntityPlayer entityplayer, EnumHand hand, @Nullable ItemStack stack)\n {\n ItemStack itemstack = entityplayer.inventory.getCurrentItem();\n\n if (!bumgave && angerLevel == 0)\n {\n if (itemstack != null && (itemstack.getItem() == Items.DIAMOND || itemstack.getItem() == Items.GOLD_INGOT || itemstack.getItem() == Items.IRON_INGOT))\n {\n if (itemstack.getItem() == Items.IRON_INGOT)\n {\n value = rand.nextInt(2) + 1;\n }\n else if (itemstack.getItem() == Items.GOLD_INGOT)\n {\n value = rand.nextInt(5) + 1;\n }\n else if (itemstack.getItem() == Items.DIAMOND)\n {\n value = rand.nextInt(10) + 1;\n }\n\n if (itemstack.stackSize - 1 == 0)\n {\n entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem, null);\n }\n else\n {\n itemstack.stackSize--;\n }\n\n for (int i = 0; i < 4; i++)\n {\n for (int i1 = 0; i1 < 10; i1++)\n {\n double d1 = rand.nextGaussian() * 0.02D;\n double d3 = rand.nextGaussian() * 0.02D;\n double d6 = rand.nextGaussian() * 0.02D;\n worldObj.spawnParticle(EnumParticleTypes.EXPLOSION_NORMAL, (posX + (double)(rand.nextFloat() * width * 2.0F)) - (double)width, posY + (double)(rand.nextFloat() * height) + (double)i, (posZ + (double)(rand.nextFloat() * width * 2.0F)) - (double)width, d1, d3, d6);\n }\n }\n\n texture = new ResourceLocation(Reference.MODID, Reference.TEXTURE_PATH_ENTITES +\n \t\tReference.TEXTURE_BUM_DRESSED);\n angerLevel = 0;\n //findPlayerToAttack();\n\n if (rand.nextInt(5) == 0)\n {\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumsucker\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_SUCKER, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n bumgave = true;\n }\n else\n {\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumthankyou\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_THANKYOU, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n bumgave = true;\n\n for (int j = 0; j < 10; j++)\n {\n double d = rand.nextGaussian() * 0.02D;\n double d2 = rand.nextGaussian() * 0.02D;\n double d5 = rand.nextGaussian() * 0.02D;\n worldObj.spawnParticle(EnumParticleTypes.EXPLOSION_NORMAL, (posX + (double)(rand.nextFloat() * width * 2.0F)) - (double)width, posY + (double)(rand.nextFloat() * height), (posZ + (double)(rand.nextFloat() * width * 2.0F)) - (double)width, d, d2, d5);\n }\n\n for (int k = 0; k < value; k++)\n {\n \tif(!worldObj.isRemote) {\n\t dropItem(Item.getItemById(rand.nextInt(95)), 1);\n\t dropItem(Items.IRON_SHOVEL, 1);\n \t}\n }\n\n return true;\n }\n }\n else if (itemstack != null)\n {\n if (timetopee > 0)\n {\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumdontwant\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_DONTWANT, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n \n }\n else if (itemstack != null && (itemstack.getItem() == Item.getItemFromBlock(Blocks.YELLOW_FLOWER) || itemstack.getItem() == Item.getItemFromBlock(Blocks.RED_FLOWER)))\n {\n \t/* TODO\n \tif(!((EntityPlayerMP)entityplayer).getStatFile().hasAchievementUnlocked(MoreCreepsAndWeirdos.achievebumflower))\n \t{\n \tworldObj.playSoundAtEntity(entityplayer, \"morecreeps:achievement\", 1.0F, 1.0F);\n \tentityplayer.addStat(MoreCreepsAndWeirdos.achievebumflower, 1);\n \tconfetti(entityplayer);\n \t} */\n\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumthanks\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_THANKS, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n timetopee = rand.nextInt(1900) + 1500;\n\n if (itemstack.stackSize - 1 == 0)\n {\n entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem, null);\n }\n else\n {\n itemstack.stackSize--;\n }\n }\n else if (itemstack != null && itemstack.getItem() == Items.BUCKET)\n {\n \t/* TODO\n if (!((EntityPlayerMP)entityplayer).getStatFile().hasAchievementUnlocked(MoreCreepsAndWeirdos.achievebumpot) && ((EntityPlayerMP)entityplayer).getStatFile().hasAchievementUnlocked(MoreCreepsAndWeirdos.achievebumflower))\n {\n worldObj.playSoundAtEntity(entityplayer, \"morecreeps:achievement\", 1.0F, 1.0F);\n entityplayer.addStat(MoreCreepsAndWeirdos.achievebumpot, 1);\n confetti(entityplayer);\n } \n entityplayer.addStat(MoreCreepsAndWeirdos.achievebumpot, 1);\n */\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumthanks\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_THANKS, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n timetopee = rand.nextInt(1900) + 1500;\n\n if (itemstack.stackSize - 1 == 0)\n {\n entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem, null);\n }\n else\n {\n itemstack.stackSize--;\n }\n }\n else if (itemstack != null && itemstack.getItem() == Items.LAVA_BUCKET)\n {\n \t/* \n if (!((EntityPlayerMP)entityplayer).getStatFile().hasAchievementUnlocked(MoreCreepsAndWeirdos.achievebumlava) && ((EntityPlayerMP)entityplayer).getStatFile().hasAchievementUnlocked(MoreCreepsAndWeirdos.achievebumpot))\n {\n worldObj.playSoundAtEntity(entityplayer, \"morecreeps:achievement\", 1.0F, 1.0F);\n entityplayer.addStat(MoreCreepsAndWeirdos.achievebumlava, 1);\n confetti(entityplayer);\n }\n\n entityplayer.addStat(MoreCreepsAndWeirdos.achievebumpot, 1);\n */\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumthanks\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_THANKS, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n timetopee = rand.nextInt(1900) + 1500;\n\n if (itemstack.stackSize - 1 == 0)\n {\n entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem, null);\n }\n else\n {\n itemstack.stackSize--;\n }\n\n int l = (int)posX;\n int j1 = (int)posY;\n int k1 = (int)posZ;\n\n if (rand.nextInt(4) == 0)\n {\n for (int l1 = 0; l1 < rand.nextInt(3) + 1; l1++)\n {\n Blocks.OBSIDIAN.dropBlockAsItem(worldObj, new BlockPos(l, j1, k1), worldObj.getBlockState(new BlockPos(l, j1, k1)), 0);\n }\n }\n\n for (int i2 = 0; i2 < 15; i2++)\n {\n double d4 = (float)l + worldObj.rand.nextFloat();\n double d7 = (float)j1 + worldObj.rand.nextFloat();\n double d8 = (float)k1 + worldObj.rand.nextFloat();\n double d9 = d4 - posX;\n double d10 = d7 - posY;\n double d11 = d8 - posZ;\n double d12 = MathHelper.sqrt_double(d9 * d9 + d10 * d10 + d11 * d11);\n d9 /= d12;\n d10 /= d12;\n d11 /= d12;\n double d13 = 0.5D / (d12 / 10D + 0.10000000000000001D);\n d13 *= worldObj.rand.nextFloat() * worldObj.rand.nextFloat() + 0.3F;\n d9 *= d13;\n d10 *= d13;\n d11 *= d13;\n worldObj.spawnParticle(EnumParticleTypes.SMOKE_NORMAL, (d4 + posX * 1.0D) / 2D, (d7 + posY * 1.0D) / 2D + 2D, (d8 + posZ * 1.0D) / 2D, d9, d10, d11);\n worldObj.spawnParticle(EnumParticleTypes.SMOKE_NORMAL, d4, d7, d8, d9, d10, d11);\n }\n\n if (rand.nextInt(4) == 0)\n {\n entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem, new ItemStack(Items.BUCKET));\n }\n }\n else if (!bumgave)\n {\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumpee\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_PEE, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n }\n }\n }\n else\n {\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumleavemealone\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_LEAVEMEALONE, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n }\n\n return super.processInteract(entityplayer, hand, stack);\n }", "void onInsertHeldContainer(EntityPlayerMP player);", "public void setItemStack(ItemStack stack) {\n item = stack.clone();\n }", "public void pickUp(String itemName, World world) {\n\t\tItem item = world.dbItems().get(itemName);\n\t\tRoom room = super.getRoom();\n\t\tList<Item> roomItems = room.getItems();\n\n\t\tif (roomItems.contains(item)) {\n\t\t\tif (checkCapacity(item)) {\n\t\t\t\tsuper.addItem(item);\n\t\t\t\troom.removeItem(item);\n\t\t\t\tSystem.out.println(\"Picked up \" + item);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Not enough capacity.\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"No item '\" + itemName + \"' in the room.\");\n\t\t}\n\t}", "@Test(expected=IllegalArgumentException.class)\n\tpublic void testUseItemNotContained() {\n\t\tPlayer player = new Player(new Square(), 0);\n\t\t\n\t\tplayer.useItem(new LightGrenade());\n\t}", "public void push(char item) {\n StackNode stackNode = new StackNode(item);\n\n if (top == null) { //if list is empty\n top = stackNode;\n }\n else { //list is not empty\n stackNode.next = top;\n top = stackNode;\n }\n }", "public boolean isItemValid(ItemStack par1ItemStack)\n/* 23: */ {\n/* 24:20 */ if (isItemTwoHanded(par1ItemStack)) {\n/* 25:21 */ return false;\n/* 26: */ }\n/* 27:23 */ if ((this.rightHand.getHasStack()) && \n/* 28:24 */ (isItemTwoHanded(this.rightHand.getStack()))) {\n/* 29:25 */ return false;\n/* 30: */ }\n/* 31:27 */ return super.isItemValid(par1ItemStack);\n/* 32: */ }", "public boolean canInsertItem(int i, ItemStack itemstack, int j) {\n\t\treturn this.isItemValidForSlot(i, itemstack);\n\t}", "@Override\n public boolean stillValid(Player playerIn) {\n return player == playerIn && !stack.isEmpty() && player.getItemBySlot(slotType) == stack;\n }", "public void enqueue(Item item) \n {\n stack1.push(item);\n }", "public void smeltItem()\n {\n if (this.canSmelt())\n {\n ItemStack var1 = FurnaceRecipes.smelting().getSmeltingResult(this.furnaceItemStacks[0]);\n\n if (this.furnaceItemStacks[2] == null)\n {\n this.furnaceItemStacks[2] = var1.copy();\n }\n else if (this.furnaceItemStacks[2].isItemEqual(var1))\n {\n ++this.furnaceItemStacks[2].stackSize;\n }\n\n --this.furnaceItemStacks[0].stackSize;\n\n if (this.furnaceItemStacks[0].stackSize <= 0)\n {\n this.furnaceItemStacks[0] = null;\n }\n }\n }", "@Override\n\tpublic void onCollision(WorldObj obj) {\n\t\tif(obj.removalFlag)\n\t\t\treturn;\n\t\t\n\t\t\n\t\tif(obj.item != null) {\n\t\t\t\n\t\t\t\n\t\t\tif(obj.stateTime > 0.2f) {\n\t\t\t\tAddItemToBag(obj.item,obj.stack);\n\t\t\t\tobj.removalFlag = true;\n\t\t\t\t\n\t\t\t\tGdx.app.debug(\"\", \"\"+obj.stack);\n\t\t\t}\n\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\tsuper.onCollision(obj);\n\t}", "@SubL(source = \"cycl/stacks.lisp\", position = 2898) \n public static final SubLObject stack_push(SubLObject item, SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n _csetf_stack_struc_elements(stack, cons(item, stack_struc_elements(stack)));\n _csetf_stack_struc_num(stack, Numbers.add(stack_struc_num(stack), ONE_INTEGER));\n return stack;\n }", "@Override\r\n public void uncall() {\r\n Player player = MbPets.getInstance().getServer().getPlayer(getOwner());\r\n if (player != null) {\r\n if (getEntity().getInventory().getDecor() != null) {\r\n if (player.getInventory().firstEmpty() >= 0) {\r\n player.getInventory().addItem(getEntity().getInventory().getDecor());\r\n } else {\r\n player.getWorld().dropItemNaturally(player.getLocation(),\r\n getEntity().getInventory().getDecor());\r\n }\r\n }\r\n }\r\n super.uncall();\r\n }", "private void dropItem(String item)//Made by Justin\n {\n itemFound = decodeItem(item);\n if (itemFound == null)\n {\n System.out.println(\"I don't know of any \" + item + \".\");\n }\n else\n {\n player.inventoryDel(itemFound);\n }\n }", "public void dropEntireInventory(World world, BlockPos pos, int id, int metadata) {\n int x = pos.getX();\n int y = pos.getY();\n int z = pos.getZ();\n TileEntity tileEntity = world.getTileEntity(pos);\n if (tileEntity != null && tileEntity instanceof IInventory) {\n IInventory inventory = (IInventory) tileEntity;\n for (int i = 0; i < inventory.getSizeInventory(); ++i) {\n ItemStack stack = inventory.getStackInSlot(i);\n if (stack != null) {\n Random random = new Random();\n float sx = random.nextFloat() * 0.8F + 0.1F;\n float sy = random.nextFloat() * 0.8F + 0.1F;\n float sz = random.nextFloat() * 0.8F + 0.1F;\n while (stack.stackSize > 0) {\n int qty = random.nextInt(21) + 10;\n if (qty > stack.stackSize) {\n qty = stack.stackSize;\n }\n stack.stackSize -= qty;\n EntityItem eitem = new EntityItem(world, x + sx, y + sy, z + sz, new ItemStack(stack.getItem(), qty, stack.getItemDamage()));\n if (stack.hasTagCompound()) {\n eitem.getEntityItem().setTagCompound((NBTTagCompound) stack.getTagCompound().copy());\n }\n float displacement = 0.05F;\n eitem.motionX = (float) random.nextGaussian() * displacement;\n eitem.motionY = (float) random.nextGaussian() * displacement + 0.2F;\n eitem.motionZ = (float) random.nextGaussian() * displacement;\n world.spawnEntityInWorld(eitem);\n }\n }\n }\n }\n }", "abstract void applyItem(JuggernautPlayer player, int level);", "public void addItemInventory(Item item){\r\n playerItem.add(item);\r\n System.out.println(item.getDescription() + \" was taken \");\r\n }", "public boolean setSlot(int debug1, ItemStack debug2) {\n/* */ EquipmentSlot debug3;\n/* 2048 */ if (debug1 >= 0 && debug1 < this.inventory.items.size()) {\n/* 2049 */ this.inventory.setItem(debug1, debug2);\n/* 2050 */ return true;\n/* */ } \n/* */ \n/* */ \n/* 2054 */ if (debug1 == 100 + EquipmentSlot.HEAD.getIndex()) {\n/* 2055 */ debug3 = EquipmentSlot.HEAD;\n/* 2056 */ } else if (debug1 == 100 + EquipmentSlot.CHEST.getIndex()) {\n/* 2057 */ debug3 = EquipmentSlot.CHEST;\n/* 2058 */ } else if (debug1 == 100 + EquipmentSlot.LEGS.getIndex()) {\n/* 2059 */ debug3 = EquipmentSlot.LEGS;\n/* 2060 */ } else if (debug1 == 100 + EquipmentSlot.FEET.getIndex()) {\n/* 2061 */ debug3 = EquipmentSlot.FEET;\n/* */ } else {\n/* 2063 */ debug3 = null;\n/* */ } \n/* */ \n/* 2066 */ if (debug1 == 98) {\n/* 2067 */ setItemSlot(EquipmentSlot.MAINHAND, debug2);\n/* 2068 */ return true;\n/* 2069 */ } if (debug1 == 99) {\n/* 2070 */ setItemSlot(EquipmentSlot.OFFHAND, debug2);\n/* 2071 */ return true;\n/* */ } \n/* */ \n/* 2074 */ if (debug3 != null) {\n/* 2075 */ if (!debug2.isEmpty()) {\n/* 2076 */ if (debug2.getItem() instanceof net.minecraft.world.item.ArmorItem || debug2.getItem() instanceof ElytraItem) {\n/* 2077 */ if (Mob.getEquipmentSlotForItem(debug2) != debug3) {\n/* 2078 */ return false;\n/* */ }\n/* 2080 */ } else if (debug3 != EquipmentSlot.HEAD) {\n/* 2081 */ return false;\n/* */ } \n/* */ }\n/* 2084 */ this.inventory.setItem(debug3.getIndex() + this.inventory.items.size(), debug2);\n/* 2085 */ return true;\n/* */ } \n/* 2087 */ int debug4 = debug1 - 200;\n/* 2088 */ if (debug4 >= 0 && debug4 < this.enderChestInventory.getContainerSize()) {\n/* 2089 */ this.enderChestInventory.setItem(debug4, debug2);\n/* 2090 */ return true;\n/* */ } \n/* 2092 */ return false;\n/* */ }", "public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean smt) {\n/* 122 */ int standID = getStandID(stack);\n/* 123 */ if (standID == 0) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 128 */ int standAct = getStandACT(stack);\n/* 129 */ int standExp = getStandEXP(stack);\n/* */ \n/* 131 */ String standName = getStandNAME(stack);\n/* 132 */ EntityOneStand standEnt = ItemStandArrow.getStand(standID, player.worldObj);\n/* 133 */ String standEntName = standEnt.getCommandSenderName();\n/* 134 */ if (standName.equals(\"\")) {\n/* */ \n/* 136 */ standName = getEntityStandName(standEnt);\n/* */ }\n/* */ else {\n/* */ \n/* 140 */ stack.setStackDisplayName(standEntName);\n/* */ } \n/* 142 */ String standActPre = StatCollector.translateToLocal(\"stands.jojobadv.Act.txt\");\n/* 143 */ String standExpPre = StatCollector.translateToLocal(\"stands.jojobadv.Exp.txt\");\n/* */ \n/* 145 */ list.add(standName);\n/* 146 */ list.add(standActPre + \" \" + standAct + \"!\");\n/* 147 */ list.add(standExpPre + \" \" + standExp);\n/* */ }", "@Override\n\tpublic boolean isItemValidForSlot(int slot, ItemStack stack){\n\t return true;\n\t}", "public boolean placeStack(TakStack stack, Point p){\n // START CONDITIONS\n //----------------\n // Is the space empty that we are trying to place\n if(stacks[p.x][p.y].size() > 0) return false;\n //----------------\n // END CONDITIONS\n\n // Valid - move start operation\n // Add new piece to the stack\n stacks[p.x][p.y].add(stack);\n\n // RETURN FALSE WHILE NOT IMPLEMENTED\n return true;\n }", "@Test\r\n\tpublic void Bush_Invalid_Test_1(){\r\n\t\tPlayer player = new Player(0,\"Chris\", new Point(1, 1), new Point(0, 1));\r\n\t\tPoint worldLocation = new Point(1, 1);\r\n\t\tPoint tileLocation = new Point(1, 1);\r\n\t\tBush bush = new Bush(worldLocation, tileLocation);\r\n\t\tboolean exception = false;\r\n\t\ttry{\r\n\t\t\ttry {\r\n\t\t\t\tbush.performAction(player);\r\n\t\t\t} catch (SignalException e) {\r\n\t\t\t}\r\n\t\t\tif(player.getPocket().getItems().size() == 1){\r\n\t\t\t\tItem item = player.getPocket().getItems().get(0);\r\n\t\t\t\tassert(item instanceof Food);\r\n\t\t\t\tassert(((Food) item).getFoodType() == FoodType.BERRY);\r\n\t\t\t}\r\n\t\t\tTimeUnit.SECONDS.sleep(2);\r\n\t\t\ttry {\r\n\t\t\t\tbush.performAction(player);\r\n\t\t\t} catch (SignalException e) {\r\n\t\t\t}\r\n\t\t}catch(GameException | InterruptedException e){\r\n\t\t\texception = true;\r\n\t\t}\r\n\t\tassertTrue(exception);\r\n\t}", "public void playerDropItem(Player p, Item i) {\n\t\tTile tileInFront = p.getLocation().getTileInDirection(p.getPosition(), p.getFacing());\n\t\tif (tileInFront.getGameObject() == null) {\n\t\t\ttileInFront.setGameObject(i);\n\t\t\tp.getInventory().remove(i);\n\t\t}\n\n\t}", "@Override\n public void doPickupItem(final GameObject object) {\n if (!object.isItem()) {\n _log.warn(\"trying to pickup wrong target.\" + getTarget());\n return;\n }\n\n sendActionFailed();\n stopMove();\n\n final ItemInstance item = (ItemInstance) object;\n\n synchronized (item) {\n if (!item.isVisible()) {\n return;\n }\n\n // Check if me not owner of item and, if in party, not in owner party and nonowner pickup delay still active\n if (!ItemFunctions.checkIfCanPickup(this, item)) {\n final SystemMessage sm;\n if (item.getItemId() == ItemTemplate.ITEM_ID_ADENA) {\n sm = new SystemMessage(SystemMsg.YOU_HAVE_FAILED_TO_PICK_UP_S1_ADENA);\n sm.addNumber(item.getCount());\n } else {\n sm = new SystemMessage(SystemMsg.YOU_HAVE_FAILED_TO_PICK_UP_S1);\n sm.addItemName(item.getItemId());\n }\n sendPacket(sm);\n return;\n }\n\n // Herbs\n if (item.isHerb()) {\n final SkillEntry[] skills = item.getTemplate().getAttachedSkills();\n if (skills.length > 0) {\n for (final SkillEntry skill : skills) {\n altUseSkill(skill, this);\n if (getServitor() != null && getServitor().isSummon() && !getServitor().isDead()) {\n getServitor().altUseSkill(skill, getServitor());\n }\n }\n }\n\n broadcastPacket(new GetItem(item, getObjectId()));\n item.deleteMe();\n return;\n }\n\n final FlagItemAttachment attachment = item.getAttachment() instanceof FlagItemAttachment ? (FlagItemAttachment) item.getAttachment() : null;\n\n if (!isInParty() || attachment != null) {\n if (pickupItem(item, Log.Pickup)) {\n broadcastPacket(new GetItem(item, getObjectId()));\n broadcastPickUpMsg(item);\n item.pickupMe();\n }\n } else {\n getParty().distributeItem(this, item, null);\n }\n }\n }", "@Override\n @Test\n public void equipAnimaTest() {\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.equipItem(anima);\n assertFalse(sorcererAnima.getItems().contains(anima));\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.addItem(anima);\n sorcererAnima.equipItem(anima);\n assertEquals(anima,sorcererAnima.getEquippedItem());\n }", "@Test(expected=IllegalStateException.class)\n\tpublic void testUseItem() {\n\t\tPlayer player = new Player(new Square(), 0);\n\t\t\n\t\tplayer.useItem(null);\n\t}", "public void push(T item)\r\n\t{\r\n\t\t if (size == Stack.length) \r\n\t\t {\r\n\t\t\t doubleSize();\r\n\t }\r\n\t\tStack[size++] = item;\r\n\t}", "@Override\r\n\tpublic void init() {\r\n\t\tif(pos.getBlock().getState() instanceof Sign)\r\n\t\t\tthis.items = getItem(((Sign)pos.getBlock().getState() ).getLines(), plugin.getLevel());\r\n\t\telse\r\n\t\t\tplugin.LogWarning(\"Missing sign !\");\r\n\t\t// TODO:Fix it, it should just \"display\" the item but make it not\r\n\t\t// lootable. We can loot it\r\n\t\t/*\r\n\t\t * if (!items.getItemStacks().isEmpty() && (droppedItem==null ||\r\n\t\t * droppedItem.isDead()) &&\r\n\t\t * plugin.getConfig().getBoolean(\"Signs.ShopSign.DropItem\", true)) {\r\n\t\t * for(ItemStack n : items.getItemStacks()) { droppedItem =\r\n\t\t * pos.getWorld().dropItem(pos, new ItemStack(item));\r\n\t\t * droppedItem.setVelocity(new Vector(0, 0, 0)); } }\r\n\t\t */\r\n\t}", "@Override\n\t\t\tpublic void recalculateStack() {\n\t\t\t\tif ( game.getGameMode().allowTeamSelection() )\n\t\t\t\t{\n\t\t\t\t\tItemStack stack = new ItemStack(Material.DIODE);\n\t\t\t\t\tsetNameAndLore(stack, \"Allow team selection\", \"When enabled, players will be\", \"able to choose their own teams.\", \"When disabled, teams will be\", \"allocated randomly.\");\n\t\t\t\t\t\n\t\t\t\t\tif ( teamSelectionEnabled )\n\t\t\t\t\t\tstack = KillerMinecraft.instance.craftBukkit.setEnchantmentGlow(stack);\n\t\t\t\t\t\n\t\t\t\t\tsetStack(stack);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tsetStack(null);\n\t\t\t}" ]
[ "0.75292677", "0.6726914", "0.66069955", "0.64856684", "0.6425495", "0.63258106", "0.6307233", "0.6246183", "0.61489445", "0.611758", "0.60733914", "0.6071248", "0.6065029", "0.60403955", "0.60264146", "0.6026194", "0.6016203", "0.6006254", "0.5989008", "0.59646386", "0.5960262", "0.5947792", "0.59311706", "0.5913864", "0.59091026", "0.58960736", "0.58864194", "0.5876361", "0.5873497", "0.5871707", "0.5846343", "0.58263", "0.58108044", "0.5808813", "0.58008015", "0.5779294", "0.5775898", "0.57750195", "0.57730234", "0.57643366", "0.5731044", "0.57117987", "0.57095414", "0.5708145", "0.570675", "0.5703889", "0.56684434", "0.5655972", "0.5655784", "0.5636787", "0.5629136", "0.56279933", "0.56221616", "0.56217843", "0.5618619", "0.5606012", "0.5604436", "0.5593222", "0.5591087", "0.55868214", "0.5581497", "0.5569566", "0.55668926", "0.5565405", "0.5560297", "0.5558964", "0.55458695", "0.5534912", "0.5531435", "0.55230904", "0.551419", "0.5512727", "0.55098933", "0.5496628", "0.54881716", "0.5484268", "0.547578", "0.5461194", "0.54609334", "0.5457222", "0.545106", "0.5439844", "0.5438667", "0.54286367", "0.54266787", "0.5423435", "0.54202724", "0.54121035", "0.54099137", "0.5408864", "0.54069144", "0.54023165", "0.5399483", "0.5399058", "0.53987926", "0.53959423", "0.5391205", "0.53898495", "0.5386393", "0.53840965" ]
0.7136727
1
return player.isSneaking(); // [1.14]
public static boolean isCrouching(PlayerEntity player) { return player.isCrouching(); // [1.15] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isSneaking();", "boolean isGameSpedUp();", "boolean isPlayable();", "boolean isPlayableInGame();", "public boolean isSwimming() {\n/* 1967 */ return (!this.abilities.flying && !isSpectator() && super.isSwimming());\n/* */ }", "public boolean isShivering();", "public boolean gameWon(){\n return false;\n }", "public abstract boolean isPlayer();", "boolean isPlayerTurn();", "@Override\n public final boolean canStand(Playery player) {\n return true;\n }", "public boolean checkPlays(Player player){\n return true;\n }", "@Override\n public boolean isPlayer() {\n return super.isPlayer();\n }", "boolean isPlaying() { return playing; }", "public void isGameOver() { \r\n myGameOver = true;\r\n myGamePaused = true; \r\n }", "public void playerWon()\r\n {\r\n \r\n }", "public boolean hasBeenSunk(){\n return this.lifePoints==0;\n\n }", "boolean play();", "@Override\n public boolean isPlaying()\n {\n final String funcName = \"isPlaying\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%s\", Boolean.toString(playing));\n }\n\n return playing;\n }", "boolean isMyTurn();", "public boolean isSneaking ( ) {\n\t\treturn extract ( handle -> handle.isSneaking ( ) );\n\t}", "@Override\r\n\t\tpublic boolean isPlayer() {\n\t\t\treturn state.isPlayer();\r\n\t\t}", "@Override\n public void landedOn(Player player) {}", "public void playerHasSword() {\n\t\tthis.state = canBeKilled;\n\t}", "public abstract void isUsedBy(Player player);", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isTurning();", "@SuppressWarnings(\"static-access\")\n\tpublic boolean isPlay(){\n\t\treturn this.isPlay;\n\t}", "boolean hasFairplay();", "@Override\n public boolean isChasingPlayer()\n {\n return(chasingPlayer);\n }", "public void playerLost()\r\n {\r\n \r\n }", "boolean hasPlayerBag();", "public boolean isSunk()\n {\n return isSunk;\n }", "public Boolean getWinner(){\n return spil.erSpilletVundet();\n }", "private boolean isOver() {\r\n return players.size() == 1;\r\n }", "void pauseGame() {\n myShouldPause = true;\n }", "void pauseGame() {\n myShouldPause = true;\n }", "public boolean gameOver();", "public boolean gameOver();", "public boolean gameOver(){\n\t\treturn this.lives < 1;\n\t}", "public boolean isSinglePlayer() {\n\t\treturn false;\n\t}", "boolean isTurnedFaceUp();", "public Boolean getInplay(){\n return inplay;\n }", "public void play() \n{\n s = !s; \n if (s == false)\n {\n //pausets = millis()/4;\n controlP5.getController(\"play\").setLabel(\"Play\");\n } else if (s == true)\n {\n //origint = origint + millis()/4 - pausets;\n controlP5.getController(\"play\").setLabel(\"Pause\");\n }\n}", "boolean getShutterSoundPref();", "boolean canSnowFallOn();", "public boolean getSoundShot() { return soundShot; }", "public static boolean getIsPlayersTurn()\r\n {\r\n return isPlayersTurn;\r\n }", "boolean canFall();", "public boolean getSoundDuck() { return soundDuck; }", "public boolean meTurn(){\n return (isWhite && isWhitePlayer) || (!isWhite && !isWhitePlayer);\n }", "public boolean isTurned(){\n\treturn IS_TURNED;\n }", "public boolean mayPickup(Player debug1) {\n/* 112 */ return true;\n/* */ }", "Boolean isPlaying() {\n return execute(\"player.playing\");\n }", "public abstract boolean gameIsOver();", "public boolean isSmokes() {\n return smokes;\n }", "@Override\r\n\tpublic boolean canPlay() {\n\t\treturn false;\r\n\t}", "protected abstract boolean isPlayerActivatable(PlayerSimple player);", "@Override\n\tpublic boolean isGameTied() {\t\n\t\treturn false;\n\t}", "public boolean isKing(){return this.king;}", "public boolean is_shot(){\n \treturn this.shot;\n }", "private void checkLoosePLayer(){\n if (hero.getHp()<=0){\n loose();\n }\n\n }", "public boolean topPlayerWon() {\n return winner == 2;\n }", "public boolean gameWon(){\n\t\treturn Game.gameWon;\n\t}", "public void playerMissedBall(){ active = false;}", "boolean isGameOver();", "boolean isGameOver();", "public boolean needPlayer() {\n\t\treturn false;\n\t}", "public boolean isPaused();", "boolean playing() {\n return _playing;\n }", "void win(Player player);", "boolean isMultiplayer();", "void pauseGame() {\n myGamePause = true;\n }", "boolean hasPlayready();", "public boolean isPlayer() {\n return player != null;\n }", "boolean gameOver() {\n return _gameOver;\n }", "Shape whoIsPlaying();", "public boolean isPlaying() {\n\t\treturn state == State.INGAME;\n\t}", "protected boolean IsPlayerStaringAtMe( EntityPlayer player )\r\n {\r\n ItemStack headStack = player.inventory.armorInventory[3];\r\n\r\n if ( headStack == null || headStack.itemID != \r\n \tFCBetterThanWolves.fcItemEnderSpectacles.itemID )\r\n {\r\n Vec3 vLook = player.getLook( 1F ).normalize();\r\n \r\n Vec3 vDelta = worldObj.getWorldVec3Pool().getVecFromPool( posX - player.posX, \r\n \tboundingBox.minY + ( height / 2F ) - ( player.posY + player.getEyeHeight() ), \r\n \tposZ - player.posZ );\r\n \r\n double dDist = vDelta.lengthVector();\r\n \r\n vDelta = vDelta.normalize();\r\n \r\n double dotDelta = vLook.dotProduct( vDelta );\r\n \r\n if ( dotDelta > 1D - 0.025D / dDist )\r\n {\r\n \treturn player.canEntityBeSeen( this );\r\n }\r\n }\r\n \r\n return false;\r\n }", "public void playerHasNoSword() {\n\t\tthis.state = cannotBeKilled;\n\t}", "public Player getPlayerInTurn();", "int delay(Player player);", "@Override\r\n\tboolean isSunk() {\r\n\t\treturn false;\r\n\t}", "public void itsYourTurn();", "public void playTurn() {\r\n\r\n }", "protected boolean isGameOver(){\n return (getShipsSunk()==10);\n }", "public boolean getPlayerState()\n\t{\n\t\treturn blnPlayerState;\n\t\t\n\t}", "public boolean isGameOver();", "public boolean isGameOver();", "public boolean isSilent ( ) {\n\t\ttry {\n\t\t\treturn invokeSafe ( \"isSilent\" );\n\t\t} catch ( NoSuchMethodError ex ) { // legacy\n\t\t\tPlayer handle = handleOptional ( ).orElse ( null );\n\t\t\t\n\t\t\treturn handle != null && EntityReflection.isSilent ( handle );\n\t\t}\n\t}", "public boolean isGameOver ()\n\t{\n\t\t return lives <= 0;\n\t}", "void play(boolean fromUser);", "public boolean isSpeaking() {\n return (mSelf.mIsSpeaking && (mSpeechQueue.size() < 1));\n }", "@java.lang.Override\n public boolean hasPlayer() {\n return player_ != null;\n }", "boolean winGame();", "public boolean GameOver() {\r\n if(Main.player1.SuaVida()==0 || Main.player2.SuaVida()==0)\r\n return true;\r\n return false;\r\n }", "public boolean getSoundAmbience() { return soundAmbience; }", "boolean isPause();", "public void winGame() {\n this.isWinner = true;\n }", "boolean isShutterPressed();", "default boolean isSwear() {\n return meta(\"nlpcraft:nlp:swear\");\n }", "public boolean isPlayerTurn() {\n return playerTurn;\n }", "public void setSinglePlayer(){\n isSinglePlayer = true;\n }" ]
[ "0.7875522", "0.7252773", "0.7052436", "0.7048986", "0.70066035", "0.70030314", "0.6958285", "0.6955466", "0.68437576", "0.6838046", "0.6806433", "0.6779819", "0.6772913", "0.6730471", "0.6708337", "0.6652542", "0.66504395", "0.66478455", "0.6645347", "0.660643", "0.6538155", "0.65234536", "0.6512479", "0.6503692", "0.6486878", "0.6481266", "0.64783233", "0.64626557", "0.64139307", "0.64131945", "0.6386199", "0.63837737", "0.63792235", "0.63746", "0.63746", "0.63724583", "0.63724583", "0.6355052", "0.63495797", "0.6342328", "0.63392603", "0.63373446", "0.6334596", "0.63345516", "0.63276476", "0.6319779", "0.631294", "0.6303039", "0.62926483", "0.6282197", "0.627136", "0.62712145", "0.6257093", "0.62483877", "0.62444997", "0.62414294", "0.62373215", "0.62348795", "0.62335575", "0.6230787", "0.62306714", "0.6229386", "0.6223378", "0.6214494", "0.6214494", "0.6213926", "0.6203999", "0.6200328", "0.6200143", "0.6199934", "0.6198522", "0.61908567", "0.61742103", "0.6159106", "0.61522853", "0.6144165", "0.61298144", "0.61290234", "0.61240727", "0.61236364", "0.6117121", "0.6113269", "0.61108327", "0.61075073", "0.6105673", "0.60973203", "0.60973203", "0.6097091", "0.6091328", "0.6090978", "0.60825425", "0.6081678", "0.6081371", "0.6080496", "0.60768574", "0.60721153", "0.6068205", "0.60669065", "0.6064043", "0.60608006", "0.6058033" ]
0.0
-1
Basic way to teleport a player to coordinate in a dimension. If the player is not in the specified dimension they will be transferred first.
public static void teleport(PlayerEntity player, BlockPos pos, int dim) { teleport(player, pos, dim, p -> { }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean teleport(Player p1, Player p2, boolean change);", "public void teleportPlayer(int x, int y){\n hero.setX(x);\n hero.setY(y);\n }", "public void sendTeleport(final Player player) {\r\n player.lock();\r\n World.submit(new Pulse(1) {\r\n\r\n int delay = 0;\r\n\r\n @Override\r\n public boolean pulse() {\r\n if (delay == 0) {\r\n player.getActionSender().sendMessage(\"You've been spotted by an elemental and teleported out of its garden.\");\r\n player.graphics(new Graphics(110, 100));\r\n player.getInterfaceState().openComponent(8677);\r\n PacketRepository.send(MinimapState.class, new MinimapStateContext(player, 2));\r\n face(player);\r\n } else if (delay == 6) {\r\n player.getProperties().setTeleportLocation(Location.create(getRespawnLocation()));\r\n PacketRepository.send(MinimapState.class, new MinimapStateContext(player, 0));\r\n player.getInterfaceState().close();\r\n face(null);\r\n player.unlock();\r\n return true;\r\n }\r\n delay++;\r\n return false;\r\n }\r\n });\r\n }", "public boolean teleport(Entity destination) {\n/* 571 */ return teleport(destination.getLocation());\n/* */ }", "public void teleportTo(int y, int x){\n\t\tthis.position[y][x] = 1;//makes the position here, used for other object room\n\t}", "public MessageTeleportPlayer(int x, int y, int z) \r\n\t{\r\n\t\tposX = x;\r\n\t\tposY = y;\r\n\t\tposZ = z;\r\n\t}", "private void teleport(Player player, ClanPlayerImpl clanPlayer, Location<World> teleportLocation) {\n player.setLocation(teleportLocation);\n clanPlayer.setLastClanHomeTeleport(new LastClanHomeTeleport());\n }", "public static void tpr(String world, Player player) {\n String msg = MessageManager.getMessageYml().getString(\"Tpr.Teleporting\");\n player.sendMessage(MessageManager.getPrefix() + ChatColor.translateAlternateColorCodes('&', msg));\n Location originalLocation = player.getLocation();\n Random random = new Random();\n Location teleportLocation;\n int maxDistance = Main.plugin.getConfig().getInt(\"TPR.Max\");\n World w = Bukkit.getServer().getWorld(world);\n int x = random.nextInt(maxDistance) + 1;\n int y = 150;\n int z = random.nextInt(maxDistance) + 1;\n boolean isOnLand = false;\n teleportLocation = new Location(w, x, y, z);\n while (!isOnLand) {\n teleportLocation = new Location(w, x, y, z);\n if (teleportLocation.getBlock().getType() != Material.AIR) {\n isOnLand = true;\n } else {\n y--;\n }\n }\n player.teleport(new Location(w, teleportLocation.getX(), teleportLocation.getY() + 1.0D, teleportLocation.getZ()));\n if (Main.plugin.getConfig().getString(\"NOTIFICATIONS.Tpr\").equalsIgnoreCase(\"True\")) {\n int dis = (int) teleportLocation.distance(originalLocation);\n String dist = String.valueOf(dis);\n String original = (MessageManager.getMessageYml().getString(\"Tpr.Distance\").replaceAll(\"%distance%\", dist));\n String distance = (ChatColor.translateAlternateColorCodes('&', original));\n player.sendMessage(MessageManager.getPrefix() + distance);\n }\n }", "public boolean teleport ( Entity destination ) {\n\t\treturn invokeSafe ( \"teleport\" , destination );\n\t}", "public static void teleportPlayer(final Player player,\n \t\t\tfinal Location toLocation) {\n \t\tfinal Object networkManager = getNetServerHandler(getHandle(player));\n \t\ttry {\n \t\t\tnetworkManager.getClass().getMethod(\"teleport\", Location.class)\n \t\t\t\t\t.invoke(networkManager, toLocation);\n \t\t} catch (final Exception e) {\n \t\t\tthrow new RuntimeException(\"Can't teleport the player \" + player\n \t\t\t\t\t+ \" to \" + toLocation, e);\n \t\t}\n \t}", "public boolean teleport(Location location) {\n/* 508 */ return teleport(location, PlayerTeleportEvent.TeleportCause.PLUGIN);\n/* */ }", "public static void teleportPlayer(GamePlayer player, List<Location> spawnpoint) {\r\n\t\tRandom rand = new Random();\r\n\t\tLocation spawn = spawnpoint.get(rand.nextInt(spawnpoint.size()));\r\n\t\t\r\n\t\tplayer.getPlayer().setSaturation(100000);\r\n\t\tplayer.getPlayer().setHealth(20);\r\n\t\tplayer.getPlayer().teleport(spawn);\r\n\t\tgiveStuff(player);\r\n\t}", "public static void teleportWithChunkCheck(final Player player, final Location loc) {\n\t\tDebugLog.beginInfo(\"Teleport player (\" + player.getName() + \")\");\n\t\tDebugLog.addInfo(\"[TO] \" + loc);\n\t\ttry {\n\t\t\tfinal PlayerTeleportEvent event = new ACTeleportEvent(player, player.getLocation(), loc, TeleportCause.PLUGIN);\n\t\t\tBukkit.getPluginManager().callEvent(event);\n\t\t\tif (event.isCancelled()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfinal Location toLocation = event.getTo();\n\t\t\tfinal int x = toLocation.getBlockX() >> 4;\n\t\t\tfinal int z = toLocation.getBlockZ() >> 4;\n\t\t\tif (!toLocation.getWorld().isChunkLoaded(x, z)) {\n\t\t\t\ttoLocation.getWorld().loadChunk(x, z);\n\t\t\t}\n\t\t\tfinal Location playerLoc = player.getLocation();\n\t\t\tACPluginManager.runTaskLaterAsynchronously(new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\n\t\t\t\t\tACPlayer.getPlayer(player).setLastLocation(playerLoc);\n\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tTeleportCommand.teleport(player, toLocation);\n\t\t} finally {\n\t\t\tDebugLog.endInfo();\n\t\t}\n\n\t}", "@Override\n public void execute() {\n vars.setState(\"Teleporting...\");\n Methods.teleToFlameKing();\n }", "@Override\n public void run() {\n if (pendingTeleports.containsKey(sender.getName())) {\n pendingTeleports.remove(sender.getName(),originalSender);\n if (senderPlayer.dimension != teleportee.dimension) {\n TeleportHelper.transferPlayerToDimension(teleportee,senderPlayer.dimension,server.getPlayerList());\n }\n teleportee.setPositionAndUpdate(senderPlayer.posX,senderPlayer.posY,senderPlayer.posZ);\n sender.addChatMessage(new TextComponentString(TextFormatting.GREEN+\"Teleport successful.\"));\n teleportee.addChatMessage(new TextComponentString(TextFormatting.GREEN+\"Teleport successful.\"));\n } //if not, the teleportee moved\n }", "public abstract void changePlayerAt(ShortPoint2D pos, Player player);", "private static void goThroughPassage(Player player) {\n int x = player.getAbsX();\n player.getMovement().teleport(x == 2970 ? x + 4 : 2970, 4384, player.getHeight());\n }", "public void sendTeleportPacket(int entityId, Vector destination, byte yaw, byte pitch) {\n Object packet = ReflectUtils.newInstance(\"PacketPlayOutEntityTeleport\");\n ReflectUtils.setField(packet, \"a\", entityId);\n\n // Set the teleport location to the position of the entity on the player's side of the portal\n ReflectUtils.setField(packet, \"b\", destination.getX());\n ReflectUtils.setField(packet, \"c\", destination.getY());\n ReflectUtils.setField(packet, \"d\", destination.getZ());\n ReflectUtils.setField(packet, \"e\", yaw);\n ReflectUtils.setField(packet, \"f\", pitch);\n\n sendPacket(packet);\n }", "public boolean teleport ( Entity destination , PlayerTeleportEvent.TeleportCause cause ) {\n\t\treturn invokeSafe ( \"teleport\" , destination , cause );\n\t}", "@Override\n public CommandResult execute(CommandSource src, CommandContext commandContext) throws CommandException {\n return CommandResult.success();\n\n /*if (src instanceof Player) {\n Player sender = (Player) src;\n if(!commandContext.hasAny(\"target\")) {\n src.sendMessage(Text.of(new Object[]{TextColors.RED, \"Invalid arguments\"}));\n return CommandResult.success();\n } else {\n User user = commandContext.<User>getOne(\"target\").get();\n if (user.isOnline()) {\n sender.sendMessage(Text.of(TextColors.RED, \"Player is online, Please use /teleport\"));\n } else {\n GameProfileManager gameProfileManager = Sponge.getGame().getServer().getGameProfileManager();\n Optional<UserStorageService> userStorage = Sponge.getServiceManager().provide(UserStorageService.class);\n UUID uuid = null;\n try {\n uuid = userStorage.get().getOrCreate(gameProfileManager.get(user.getName(), false).get()).getUniqueId();\n } catch (InterruptedException | ExecutionException e) {\n e.printStackTrace();\n }\n if (userStorage.isPresent()) {\n UserStorageService userStorage2 = userStorage.get();\n Optional<User> userOptional = userStorage2.get(uuid);\n if (userOptional.isPresent()) {\n User user2 = userOptional.get();\n double x = user2.getPlayer().get().getLocation().getX();\n double y = user2.getPlayer().get().getLocation().getY();\n double z = user2.getPlayer().get().getLocation().getZ();\n sender.sendMessage(Text.of(\"Loc: x:\", x, \" y:\", y, \" z:\", z));\n Vector3d vector = new Vector3d(x, y, z);\n sender.setLocation(sender.getLocation().setPosition(vector));\n } else {\n // error?\n }\n }\n }\n return CommandResult.success();\n }\n } else {\n src.sendMessage(Text.of(\"Only a player Can run this command!\"));\n return CommandResult.success();\n }*/\n }", "public void teleportToAlien() {\n\t\tAlien a;\n\t\tSpaceship sp;\n\t\tif(roamingAliens > 0){\n\t\t\tsp = getTheSpaceship();\n\t\t\ta = getRandomAlien();\n\t\t\tsp.setLocation(a.getLocation());\n\t\t\tSystem.out.println(\"You've teleported to an alien\");\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"Error: There were no aliens to jump to.\");\n\t}", "public static void teleport(ServerPlayer player, ServerLevel world, BlockPos targetPos) {\n player.teleportTo(world, targetPos.getX() + 0.5, targetPos.getY() + 0.1, targetPos.getZ() + 0.5, player.yRotO, player.xRotO);\n }", "public void randomTeleport() {\n Random random = new Random(seed);\n seed = random.nextInt(10000);\n int randomY = RandomUtils.uniform(random, 0, worldHeight);\n int randomX = RandomUtils.uniform(random, 0, worldWidth);\n int randomDirection = RandomUtils.uniform(random, 0, 4);\n move(randomX, randomY);\n turn(randomDirection);\n }", "public static void sendTo(Player player, OwnedWarp warp) {\n if(warp == null)\n return;\n try {\n Points.teleportTo(player, warp.getTarget(), warp.getName());\n } catch (InvalidDestinationException ex) {\n player.sendMessage(ex.getMessage());\n Stdout.println(ex.getMessage(), Level.ERROR);\n }\n }", "public boolean teleport ( Location location , PlayerTeleportEvent.TeleportCause cause ) {\n\t\treturn invokeSafe ( \"teleport\" , location , cause );\n\t}", "protected boolean teleportTo(double x, double y, double z) {\n double xI = this.posX;\n double yI = this.posY;\n double zI = this.posZ;\n this.posX = x;\n this.posY = y;\n this.posZ = z;\n boolean canTeleport = false;\n int blockX = (int)Math.floor(this.posX);\n int blockY = (int)Math.floor(this.posY);\n int blockZ = (int)Math.floor(this.posZ);\n Block block;\n if (this.worldObj.blockExists(blockX, blockY, blockZ)) {\n boolean canTeleportToBlock = false;\n while (!canTeleportToBlock && blockY > 0) {\n block = this.worldObj.getBlock(blockX, blockY - 1, blockZ);\n if (block != null && block.getMaterial().blocksMovement()) {\n canTeleportToBlock = true;\n }\n else {\n --this.posY;\n --blockY;\n }\n }\n if (canTeleportToBlock) {\n this.setPosition(this.posX, this.posY, this.posZ);\n if (this.worldObj.getCollidingBoundingBoxes(this, this.boundingBox).size() == 0 && !this.worldObj.isAnyLiquid(this.boundingBox)) {\n canTeleport = true;\n }\n }\n }\n if (!canTeleport) {\n this.setPosition(xI, yI, zI);\n return false;\n }\n for (int i = 0; i < 128; i++) {\n double posRelative = i / 127.0;\n float vX = (this.rand.nextFloat() - 0.5F) * 0.2F;\n float vY = (this.rand.nextFloat() - 0.5F) * 0.2F;\n float vZ = (this.rand.nextFloat() - 0.5F) * 0.2F;\n double dX = xI + (this.posX - xI) * posRelative + (this.rand.nextDouble() - 0.5) * this.width * 2.0;\n double dY = yI + (this.posY - yI) * posRelative + this.rand.nextDouble() * this.height;\n double dZ = zI + (this.posZ - zI) * posRelative + (this.rand.nextDouble() - 0.5) * this.width * 2.0;\n this.worldObj.spawnParticle(\"portal\", dX, dY, dZ, vX, vY, vZ);\n }\n this.worldObj.playSoundEffect(xI, yI, zI, \"mob.endermen.portal\", 1.0F, 1.0F);\n this.worldObj.playSoundAtEntity(this, \"mob.endermen.portal\", 1.0F, 1.0F);\n return true;\n }", "public static boolean safeTeleport(Player toBeTeleported, Location toTeleport, boolean isFlying, boolean registerBackLocation, boolean... ignoreCooldown) throws CommandException {\n //Get SlapPlayer\n// SlapPlayer sp = PlayerControl.getPlayer(toBeTeleported);\n//\n// if ((ignoreCooldown.length > 0 && !ignoreCooldown[0]) || ignoreCooldown.length == 0) {\n// if (!sp.getTeleporter().canTeleport()) { //Check if able to teleport if cooldown\n// if (!Util.testPermission(toBeTeleported, \"tp.cooldownoverride\")) {\n// throw new CommandException(\"You'll need to wait a bit before teleporting agian!\");\n// }\n// }\n// }\n\n\n Location teleportTo = null;\n boolean tpUnder = false;\n\n Location fromLocation = toBeTeleported.getLocation();\n\n if (isFlying && !toBeTeleported.isFlying()) { //Target is flying while the player is not flying -> Find first block under target\n tpUnder = true;\n boolean creative = (toBeTeleported.getGameMode() == GameMode.CREATIVE); //Check if in creative\n for (Location loc = toTeleport; loc.getBlockY() > 0; loc.add(0, -1, 0)) { //Loop thru all blocks under target's location\n Material m = loc.getBlock().getType();\n if (m == Material.AIR) continue; //Looking for first solid\n if (m == Material.LAVA && !creative) { //If teleporting into lava && not in creative\n throw new CommandException(\"You would be teleported into Lava!\");\n }\n teleportTo = loc.add(0, 1, 0); //Set loc + 1 block above\n break;\n }\n } else { //Not flying\n teleportTo = toTeleport;\n }\n\n if (teleportTo == null) { //Check if location found\n throw new CommandException(\"Cannot teleport! Player above void!\");\n }\n\n toBeTeleported.teleport(teleportTo); //Teleport\n toBeTeleported.setVelocity(new Vector(0, 0, 0)); //Reset velocity\n\n// if (registerBackLocation) { //If registering back location\n// sp.getTeleporter().setBackLocation(fromLocation); //Set back location\n// }\n\n //Register teleport\n// sp.getTeleporter().teleported();\n\n return tpUnder;\n }", "public boolean teleport ( Location location ) {\n\t\treturn invokeSafe ( \"teleport\" , location );\n\t}", "public void movePlayer(String nomeArq, int px, int py) {\r\n if(Main.player1.Vez()) {\r\n if(nomeArq.equals(Main.PLAYER_LEFT)){\r\n \tMain.player1.MudaLado(true,false);\r\n }\r\n else {\r\n \tMain.player1.MudaLado(false,true);\r\n } \r\n pos = Main.player1.Position();\r\n int x = pos[0]+px;\r\n int y = pos[1];\r\n double t = 0.1;\r\n int OrigemY = y;\r\n double g=10;\r\n if(andar.BatidaFrente(x,y,Main.player1.Size()[0]+1,Main.player1.Size()[1]+1)==false) {\r\n \tMain.player1.NovaPosition(x,y); \r\n }\r\n Main.Fase.repinta(); \r\n while(andar.temChao(x,y,Main.player1.Size()[0]+1,Main.player1.Size()[1]+1)==false && andar.Paredao((int)x,(int)y,Main.player1.Size()[0],Main.player1.Size()[1])==false)\r\n {\r\n \tMain.player1.NovaPosition(x,y);\r\n \tMain.Fase.repinta(); \r\n y = (int)(OrigemY - (0-(g * (t*t))/2.0));\r\n t = t + 0.1; \r\n }\r\n Main.Fase.repinta(); \r\n }\r\n else {\r\n if(nomeArq.equals(Main.PLAYER_LEFT)) {\r\n \tMain.player2.MudaLado(true,false);\r\n }\r\n else {\r\n \tMain.player2.MudaLado(false,true);\r\n } \r\n pos = Main.player2.Position();\r\n int x = pos[0]+px;\r\n int y = pos[1];\r\n double t = 0;\r\n int OrigemY = y;\r\n double g=10;\r\n if(andar.BatidaFrente(x,y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false) {\r\n \tMain.player2.NovaPosition(x,y); \r\n }\r\n Main.Fase.repinta(); \r\n while(andar.temChao(x,y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false && andar.Paredao((int)x,(int)y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false)\r\n {\r\n \tMain.player2.NovaPosition(x,y);\r\n \tMain.Fase.repinta(); \r\n y = (int)(OrigemY - (0-(g * (t*t))/2.0));\r\n t = t + 0.1; \r\n }\r\n }\r\n }", "public void teleportation(Vector2 posTp) {\n int distance = (int) Math.sqrt(Math.pow(posTp.x - position.x, 2) + Math.pow(posTp.y - position.y, 2));\n int coef = 50;\n if (wallet.getMoney() >= coef*distance) {\n position.set(posTp);\n position.x += WIDTH/2;\n resetMiner();\n wallet.withdraw(coef * distance);\n }\n }", "@Override\n public void execute() {\n if (Players.getLocal().getAnimation() == -1) {\n // Teleport to Edgeville if we aren't there, walk to the bank if we are.\n if (!Constants.TO_BANK_AREA.contains(Players.getLocal())) {\n Lodestone.EDGEVILLE.teleport();\n } else {\n if (!Constants.BANK_AREA.contains(Players.getLocal())) {\n Walking.newTilePath(Constants.TO_BANK).traverse();\n Task.sleep(1000);\n }\n }\n }\n }", "public Point performTeleport(String name, Point oldPos, boolean safeTeleport) {\n\t\tPoint newPos \t= new Point();\n\t\tif(safeTeleport)\n\t\t\tnewPos = getSafeTeleportPosition();\n\t\telse\n\t\t\tnewPos = getUnsafeTeleportPosition();\n\t\t\n\t\tmovePlayer(name, oldPos, newPos, true);\n\t\treturn newPos;\n\t}", "public Player getToTeleportTo(){\n\t\treturn toTeleportTo;\n\t}", "private void resendPosition(Player player) {\r\n\t\tPacketContainer positionPacket = protocolManager.createPacket(PacketType.Play.Server.POSITION);\r\n\t\tLocation location = player.getLocation();\r\n\r\n\t\tpositionPacket.getDoubles().write(0, location.getX());\r\n\t\tpositionPacket.getDoubles().write(1, location.getY());\r\n\t\tpositionPacket.getDoubles().write(2, location.getZ());\r\n\t\tpositionPacket.getFloat().write(0, 0f); // No change in yaw\r\n\t\tpositionPacket.getFloat().write(1, 0f); // No change in pitch\r\n\t\tgetFlagsModifier(positionPacket).write(0, EnumSet.of(PlayerTeleportFlag.X_ROT, PlayerTeleportFlag.Y_ROT)); // Mark pitch and yaw as relative\r\n\r\n\t\tPacketContainer velocityPacket = protocolManager.createPacket(PacketType.Play.Server.ENTITY_VELOCITY);\r\n\t\tvelocityPacket.getIntegers().write(0, player.getEntityId());\r\n\t\tvelocityPacket.getIntegers().write(1, 0).write(2, 0).write(3, 0); // Set velocity to 0,0,0\r\n\r\n\t\ttry {\r\n\t\t\tprotocolManager.sendServerPacket(player, positionPacket);\r\n\t\t\tprotocolManager.sendServerPacket(player, velocityPacket);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new RuntimeException(\"Failed to send position and velocity packets\", e);\r\n\t\t}\r\n\t}", "private List<Entity> getToTeleport(boolean sameDimension) {\n return level == null || teleportBounds == null ? Collections.emptyList() : level.getEntitiesOfClass(Entity.class, teleportBounds,\n entity -> !entity.isSpectator() && !entity.isPassenger() && !(entity instanceof PartEntity) &&\n (sameDimension || entity.canChangeDimensions()) && !didTeleport.contains(entity.getUUID()));\n }", "public void callOnTeleport() {\n\t\tif (summonedFamiliar != null && c.getInstance().summoned != null) {\n\t\t\tc.getInstance().summoned.killerId = 0;\n\t\t\tc.getInstance().summoned.underAttackBy = 0;\n\t\t\tc.getInstance().summoned.npcTeleport(0, 0, 0);\n\t\t\tc.getInstance().summoned.updateRequired = true;\n\t\t\tc.getInstance().summoned = Server.npcHandler.summonNPC(c, summonedFamiliar.npcId, c.getX(),\n\t\t\t\t\tc.getY() + (summonedFamiliar.large ? 2 : 1), c.heightLevel, 0, c.getInstance().summoned.HP, 1, 1,\n\t\t\t\t\t1);\n\t\t\tcallFamiliar();\n\t\t} else {\n\t\t\tc.getPA().sendSummOrbDetails(false, \"\");\n\t\t}\n\t}", "public abstract void teleport(TeleportSpell spell);", "private void pointTowardsPlayer(Direction dir, Position playerPos, Position enemyPos)\n {\n dir.x = playerPos.x - enemyPos.x;\n dir.y = playerPos.y - enemyPos.y;\n\n // Normalize direction vector\n double length = Math.sqrt(dir.x * dir.x + dir.y * dir.y);\n dir.x /= length;\n dir.y /= length;\n }", "public static Boolean run(CommandSender sender, String alias, String[] args) {\r\n \t\tif (PlayerHelper.checkIsPlayer(sender)) {\r\n \t\t\tPlayer player = (Player)sender;\r\n \r\n \t\t\tif (!Utils.checkCommandSpam(player, \"tp-tploc\")) {\r\n \t\t\t\t// first of all, check permissions\r\n \t\t\t\tif (Permissions.checkPerms(player, \"cex.tploc\")) {\r\n \t\t\t\t\t// alternative usage, all 3 coords separated by comma in 1 argument\r\n \t\t\t \tif (args.length == 1) {\r\n \t\t\t \tif (args[0].contains(\",\")) {\r\n \t\t\t \t\targs = args[0].split(\",\");\r\n \t\t\t \t} else {\r\n\t\t\t \t\tCommands.showCommandHelpAndUsage(sender, \"cex_tploc\", alias);\r\n\t\t\t \t\treturn true;\r\n \t\t\t \t}\r\n \t\t\t }\r\n \t\t\t \t\r\n \t\t\t if (args.length <= 0) {\r\n \t\t\t \t// no coordinates\r\n \t\t\t \tCommands.showCommandHelpAndUsage(sender, \"cex_tploc\", alias);\r\n \t\t\t } else if (!(args.length == 3 || args.length == 4)) {\r\n \t\t\t \t// too few or too many arguments\r\n \t\t\t \tLogHelper.showWarning(\"tpMissingCoords\", sender);\r\n \t\t\t \treturn false;\r\n \t\t\t } else if (!args[0].matches(CommandsEX.intRegex) || !args[1].matches(CommandsEX.intRegex) || !args[2].matches(CommandsEX.intRegex)) {\r\n \t\t\t \t// one of the coordinates is not a number\r\n \t\t\t \tLogHelper.showWarning(\"tpCoordsMustBeNumeric\", sender);\r\n \t\t\t } else {\r\n \t\t\t \ttry {\r\n \t\t\t \t\tPlayer target = null;\r\n \t\t\t \t\tif (args.length == 4){\r\n \t\t\t \t\t\tif (Bukkit.getPlayer(args[3]) != null){\r\n \t\t\t\t \t\t\ttarget = Bukkit.getPlayer(args[3]);\r\n \t\t\t\t \t\t} else {\r\n \t\t\t\t \t\t\tLogHelper.showInfo(\"invalidPlayer\", player, ChatColor.RED);\r\n \t\t\t\t \t\t\treturn true;\r\n \t\t\t\t \t\t}\r\n \t\t\t \t\t} else {\r\n \t\t\t \t\t\ttarget = player;\r\n \t\t\t \t\t}\r\n \r\n \t\t\t \t\tdelayedTeleport(target, new Location(player.getWorld(), new Double(args[0]), new Double(args[1]), new Double(args[2])));\r\n \t\t\t \t\t\r\n \t\t\t \t\tLogHelper.showInfo(\"tpLocMsgToTarget#####[\" + args[0].toString() + \" \" + args[1].toString() + \" \" + args[2].toString(), sender, ChatColor.AQUA);\r\n \t\t\t \t\tif (player != target){\r\n \t\t\t \t\t\tLogHelper.showInfo(\"tpLocSuccess#####[\" + target.getName() + \" #####tpLocToCoords#####[\" + args[0].toString() + \" \" + args[1].toString() + \" \" + args[2].toString(), sender, ChatColor.GREEN);\r\n \t\t\t \t\t}\r\n \t\t\t \t} catch (Throwable e) {\r\n \t\t\t \t\tLogHelper.showWarning(\"internalError\", sender);\r\n \t\t\t \t\tLogHelper.logSevere(\"[CommandsEX]: TPLOC returned an unexpected error for player \" + player.getName() + \".\");\r\n \t\t\t \t\tLogHelper.logDebug(\"Message: \" + e.getMessage() + \", cause: \" + e.getCause());\r\n \t\t\t \t\te.printStackTrace();\r\n \t\t\t \t\treturn false;\r\n \t\t\t \t}\r\n \t\t\t }\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n return true;\r\n \t}", "public boolean movePlayer(Player p, Direction d) {\n\n\t\tLocation playerLoc = p.getLocation();\n\t\tTile playerTil = p.getTile();\n\t\tPosition playerPos = playerTil.getPos();\n\n\t\tTile newTile = null;\n\n\t\tswitch (d) {\n\n\t\tcase NORTH:\n\t\t\tnewTile = playerLoc.getTileInDirection(playerPos, Direction.NORTH);\n\t\t\tp.setFacing(Direction.NORTH);\n\t\t\tbreak;\n\t\tcase EAST:\n\t\t\tnewTile = playerLoc.getTileInDirection(playerPos, Direction.EAST);\n\t\t\tp.setFacing(Direction.EAST);\n\t\t\tbreak;\n\t\tcase WEST:\n\t\t\tnewTile = playerLoc.getTileInDirection(playerPos, Direction.WEST);\n\t\t\tp.setFacing(Direction.WEST);\n\t\t\tbreak;\n\t\tcase SOUTH:\n\t\t\tnewTile = playerLoc.getTileInDirection(playerPos, Direction.SOUTH);\n\t\t\tp.setFacing(Direction.SOUTH);\n\t\t\tbreak;\n\t\t}\n\n\t\tif (newTile != null) {\n\t\t\tif (newTile.getGameObject() == null) {\n\t\t\t\tif (newTile instanceof WaterTile) {\n\t\t\t\t\tif (!p.getHasFloatingDevice()) {\n\t\t\t\t\t\tserverController.broadcastPlayerMessage(\n\t\t\t\t\t\t\t\t\"It's deep blue and cold as ice, perhaps you require something to float on\", p);\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (newTile instanceof DoorOutTile) {\n\t\t\t\t\tDoorOutTile dot = (DoorOutTile) newTile;\n\n\t\t\t\t\tif (board.getLocationById(dot.getOutLocationID()).getTileAtPosition(dot.getDoorPos())\n\t\t\t\t\t\t\t.getGameObject() != null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tplayerTil.setGameObject(null);\n\n\t\t\t\t\tp.setLocation(dot.getOutLocationID());\n\t\t\t\t\tp.setTile(board.getLocationById(dot.getOutLocationID()).getTileAtPosition(dot.getDoorPos()));\n\n\t\t\t\t\tboard.getLocationById(dot.getOutLocationID()).getTileAtPosition(dot.getDoorPos()).setGameObject(p);\n\t\t\t\t\tp.setFacing(Direction.SOUTH);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tplayerTil.setGameObject(null);\n\t\t\t\tnewTile.setGameObject(p);\n\t\t\t\tp.setTile(newTile);\n\t\t\t\tp.setLocation(board.getLocationById(newTile.getLocationID()));\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\ttriggerInteraction(p, newTile);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "@EventHandler(priority = EventPriority.LOWEST)\n\tpublic void onPlayerTeleport(PlayerTeleportEvent event)\n\t{\n\t Player player = event.getPlayer();\n\t\tPlayerData playerData = this.dataStore.getPlayerData(player.getUniqueId());\n\t\t\n\t\t//FEATURE: prevent players from using ender pearls to gain access to secured claims\n\t\tTeleportCause cause = event.getCause();\n\t\tif(cause == TeleportCause.CHORUS_FRUIT || (cause == TeleportCause.ENDER_PEARL && instance.config_claims_enderPearlsRequireAccessTrust))\n\t\t{\n\t\t\tClaim toClaim = this.dataStore.getClaimAt(event.getTo(), false, playerData.lastClaim);\n\t\t\tif(toClaim != null)\n\t\t\t{\n\t\t\t\tplayerData.lastClaim = toClaim;\n\t\t\t\tString noAccessReason = toClaim.allowAccess(player);\n\t\t\t\tif(noAccessReason != null)\n\t\t\t\t{\n\t\t\t\t\tinstance.sendMessage(player, TextMode.Err, noAccessReason);\n\t\t\t\t\tevent.setCancelled(true);\n\t\t\t\t\tif(cause == TeleportCause.ENDER_PEARL)\n\t\t\t\t\t player.getInventory().addItem(new ItemStack(Material.ENDER_PEARL));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void transferTo(Player player) {\n\t\tSystem.out.println(\"Hey you are in snake mouth, Now got to tail\");\n\t\tplayer.move(getTransferFactor()); \n\t\t\n\t\t\n\t}", "public void movePlayersTo(int x, int y, int z)\r\n\t{\r\n\t\tif (_characterList == null)\r\n\t\t\treturn;\r\n\t\tif (_characterList.isEmpty())\r\n\t\t\treturn;\r\n\t\tfor (L2Character character : _characterList.values())\r\n\t\t{\r\n\t\t\tif (character == null)\r\n\t\t\t\tcontinue;\r\n\t\t\tif (character instanceof L2PcInstance && ((L2PcInstance)character).isOnline() == 1)\r\n\t\t\t{\r\n\t\t\t\tcharacter.teleToLocation(x, y, z);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void playerPositionChanged(Player player);", "@Override\n\tpublic boolean teleport(final Location location) {\n\t\tGuard.ArgumentNotNull(location, \"location\");\n\t\t\n\t\tif (isOnline()) {\n\t\t\treturn bukkitPlayer.teleport(location);\n\t\t}\n\t\treturn false;\n\t}", "public static void teleport(LivingEntity ent, Location to) {\n\t\tteleport(ent, to, true, true);\n\t}", "void movePlayerInDirection(Direction direction) throws\r\n PlayerKilledException, RecoverableException;", "public int putPlayerOnField(CPlayerEntity pPlayer, CPositionEntity pPosition){\r\n int i = 0;\r\n int lReturnValue = PUT_PLAYER_FAILURE_PLAYER_NOT_IN_SQUAD;\r\n for (CYourPlayerEntry lPlayerEntry : mYourPlayerEntries) {\r\n if (lPlayerEntry.getPlayer() != null) {\r\n if (lPlayerEntry.getPlayer().getId() == pPlayer.getId() && lPlayerEntry.getPosition() == null) {\r\n lReturnValue = PUT_PLAYER_SUCCESS_NO_SWAP;\r\n }\r\n }\r\n }\r\n\r\n /*\r\n * if we found the player we want to put in our squad\r\n * we go through every player of the squad\r\n */\r\n if (lReturnValue == PUT_PLAYER_SUCCESS_NO_SWAP){\r\n for (CYourPlayerEntry lPlayerEntry : mYourPlayerEntries){\r\n if (lPlayerEntry.getPosition() != null) {\r\n /*\r\n * if a player in the squad already has the position\r\n * where we want to put our passed player, we set his\r\n * position to null (to swap him to the bench)\r\n */\r\n if (lPlayerEntry.getPosition().getName().equals(pPosition.getName())) {\r\n editPlayerPosition(i, null);\r\n lReturnValue = PUT_PLAYER_SUCCESS_WITH_SWAP;\r\n }\r\n }\r\n /*\r\n * when we finally find our passed player, we set\r\n * his position to the passed one\r\n */\r\n if (lPlayerEntry.getPlayer() != null) {\r\n if (lPlayerEntry.getPlayer().getId() == pPlayer.getId()) {\r\n editPlayerPosition(i, pPosition);\r\n }\r\n }\r\n i++;\r\n }\r\n }\r\n return lReturnValue;\r\n }", "public static void spawn(World world, Player player) {\n Location spawnLoc = world.getSpawnLocation();\n player.teleport(spawnLoc);\n if (Main.plugin.getConfig().getString(\"NOTIFICATIONS.Spawn\").equalsIgnoreCase(\"True\")) {\n String msg = MessageManager.getMessageYml().getString(\"Spawn.Spawn\");\n player.sendMessage(MessageManager.getPrefix() + ChatColor.translateAlternateColorCodes('&', msg));\n }\n }", "public abstract void makePlayer(Vector2 origin);", "void sendPacketToPlayer(Player player, Object packet);", "public boolean doMoveRemote(Player player, Prisoner prisoner, int rowOrCol, int row, int col) throws IClientException, RemoteException;", "public boolean teleportTo(Projectile p, Level l) {\r\n\t\tRectangle landingZone = new Rectangle(p.x+(p.width/2)-(width/2),p.y+(p.height/2)-(height/2),width,height);\r\n\t\tRectangle[] walls = l.getWalls();\r\n\t\tRectangle[] enemies = l.getAliveEnemies();\r\n\t\tboolean enoughRoom = true;\r\n\t\tfor(int i=0; i<walls.length;i++){\r\n\t\t\tif(landingZone.intersects(walls[i])){\r\n\t\t\t\tenoughRoom = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i=0; i<enemies.length;i++){\r\n\t\t\tif(landingZone.intersects(enemies[i])){\r\n\t\t\t\tenoughRoom = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(landingZone.x < 0 || landingZone.x > 600-landingZone.width || landingZone.y < l.getHudLength() \r\n\t\t\t\t|| landingZone.y > 400 + l.getHudLength() - landingZone.height){\r\n\t\t\tenoughRoom = false;\r\n\t\t}\r\n\t\tif(enoughRoom){\r\n\t\t\tsetLocation(landingZone.x, landingZone.y);\r\n\t\t\tinTeleportCooldown = true;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public Player getTeleporter(){\n\t\treturn teleporter;\n\t}", "public void teleportToAstronaut() {\n\t\tAstronaut a;\n\t\tSpaceship sp;\n\t\tif(roamingAstronauts > 0) {\n\t\t\tsp = getTheSpaceship();\n\t\t\ta = getRandomAstronaut();\n\t\t\tsp.setLocation(a.getLocation());\n\t\t\tSystem.out.println(\"You've teleported to an astronaut. \\n Hope you didn't hit them.\");\n\t\t}\n\t\telse \n\t\t\tSystem.out.println(\"Error: Ther were no astronauts to jump to.\");\n\t}", "public static boolean performTeleport(PlayerEntity player, TeleportDestination dest, int bad, int good, boolean boosted) {\n BlockPos c = dest.getCoordinate();\n\n BlockPos old = new BlockPos((int)player.getX(), (int)player.getY(), (int)player.getZ());\n RegistryKey<World> oldId = player.getCommandSenderWorld().dimension();\n\n if (!TeleportationTools.allowTeleport(player, oldId, old, dest.getDimension(), dest.getCoordinate())) {\n return false;\n }\n\n if (!oldId.equals(dest.getDimension())) {\n mcjty.lib.varia.TeleportationTools.teleportToDimension(player, dest.getDimension(), c.getX() + 0.5, c.getY() + 1.5, c.getZ() + 0.5);\n } else {\n player.teleportTo(c.getX()+0.5, c.getY()+1, c.getZ()+0.5);\n }\n\n if (TeleportConfiguration.whooshMessage.get()) {\n Logging.message(player, \"Whoosh!\");\n }\n // @todo achievements\n// Achievements.trigger(player, Achievements.firstTeleport);\n\n boolean boostNeeded = false;\n int severity = consumeReceiverEnergy(player, dest.getCoordinate(), dest.getDimension());\n if (severity > 0 && boosted) {\n boostNeeded = true;\n severity = 1;\n }\n\n severity = applyBadEffectIfNeeded(player, severity, bad, good, boostNeeded);\n if (severity <= 0) {\n if (TeleportConfiguration.teleportVolume.get() >= 0.01) {\n SoundTools.playSound(player.getCommandSenderWorld(), ModSounds.whoosh, player.getX(), player.getY(), player.getZ(), TeleportConfiguration.teleportVolume.get(), 1.0f);\n }\n }\n if (TeleportConfiguration.logTeleportUsages.get()) {\n Logging.log(\"Teleport: Player \" + player.getName() + \" from \" + old + \" (dim \" + oldId + \") to \" + dest.getCoordinate() + \" (dim \" + dest.getDimension() + \") with severity \" + severity);\n }\n return boostNeeded;\n }", "public void queueOtherPlayerMovement(Direction d, int player)\n\t{\n\t\tServerMessage move = new ServerMessage(ClientPacket.PLAYER_MOVEMENT);\n\t\tmove.addInt(player);\n\t\tswitch(d.name().toUpperCase().charAt(0))\n\t\t{\n\t\t\tcase 'D':\n\t\t\t\tmove.addInt(0);\n\t\t\t\tbreak;\n\t\t\tcase 'U':\n\t\t\t\tmove.addInt(1);\n\t\t\t\tbreak;\n\t\t\tcase 'L':\n\t\t\t\tmove.addInt(2);\n\t\t\t\tbreak;\n\t\t\tcase 'R':\n\t\t\t\tmove.addInt(3);\n\t\t\t\tbreak;\n\t\t}\n\t\tgetSession().Send(move);\n\t}", "private void playerMove(PlayerPiece playerPiece, String direction) {\n // Row will be -1 from player location with the same column value\n System.out.println(playerPiece + \" trying to move \" + direction + \".\");\n Tile playerLocation = playerPiece.getLocation();\n System.out.println(\"Player in: \" + playerLocation.getRow() + \" \" + playerLocation.getColumn());\n int newRow = playerLocation.getRow();\n int newColumn = playerLocation.getColumn();\n switch (direction) {\n case \"u\":\n newRow -= 1;\n break;\n case \"d\":\n newRow += 1;\n break;\n case \"l\":\n newColumn -= 1;\n break;\n case \"r\":\n newColumn += 1;\n break;\n }\n if (newRow >= 0 && newColumn >= 0 && newRow < this.board.getGrid().getRows() && newColumn < this.board.getGrid().getColumns()) {\n System.out.println(newRow + \" \" + newColumn);\n Tile newLocation = this.board.getGrid().getTile(newRow, newColumn);\n System.out.println(\"New Location:\" + newLocation);\n System.out.println(\"Cords: \" + newLocation.getRow() + \" \" + newLocation.getColumn());\n if (newLocation.isAvailable()) {\n playerLocation.removeOccupier();\n playerPiece.setLocation(newLocation);\n newLocation.setOccupier(playerPiece);\n System.out.println(\"Player moved to: \" + playerLocation.getRow() + \" \" + playerLocation.getColumn());\n this.board.getGrid().print();\n }\n }\n }", "@Override\n public boolean onCommand(CommandSender sender, Command command, String alias, String[] args) {\n if (sender instanceof Player)\n switch (args.length) {\n case 0 -> {\n //send to all players\n Bukkit.broadcastMessage(WorldUtils.Messages.positionMessage(\n sender.getName(), ((Player) sender).getLocation()));\n return true;\n }\n case 1 -> {\n //send to one player\n try {\n Objects.requireNonNull(Bukkit.getPlayer(args[0])).sendMessage(WorldUtils.Messages.positionMessage(\n sender.getName(), ((Player) sender).getLocation()));\n } catch (NullPointerException e) {\n WorldUtils.Messages.playerNotFound(sender);\n }\n return true;\n }\n }\n else {\n WorldUtils.Messages.notConsole(sender);\n return true;\n }\n return false;\n }", "public void setPlayerPosition(Player player) {\n if (player.getPositionX() < 0 && (player.getPositionY() > screenHeight / 2 - doorSize && player.getPositionY() < screenHeight / 2 + doorSize)) {\n //left exit to right entry\n player.position.x = screenWidth - wallSize - player.getRadius();\n player.position.y = player.getPositionY();\n } else if ((player.getPositionX() > screenWidth / 2 - doorSize && player.getPositionX() < screenWidth / 2 + doorSize) && player.getPositionY() < 0) {\n //top exit to bottom entry\n player.position.x = player.getPositionX();\n player.position.y = screenHeight - wallSize - player.getRadius();\n } else if (player.getPositionX() > screenWidth && (player.getPositionY() > screenHeight / 2 - doorSize && player.getPositionY() < screenHeight / 2 + doorSize)) {\n //right exit to left entry\n player.position.x = wallSize + player.getRadius();\n player.position.y = player.getPositionY();\n } else {\n //bottom exit to top entry\n player.position.x = player.getPositionX();\n player.position.y = wallSize + player.getRadius();\n }\n }", "Location getPlayerLocation();", "public void MoveTileSelf(Integer position){\n /**\n * if opponent activated confusion - move to a random tile\n */\n if(confused){\n //random tile for confusion\n Integer tile;\n do{\n Integer tile1 = returnRandom(getNthDigit(position,1)-1,getNthDigit(position,1)+2);\n Integer tile2 = returnRandom(getNthDigit(position,2)-1,getNthDigit(position,2)+2); // between 0 and 2\n tile = Integer.parseInt(tile1.toString() + tile2.toString());\n }while (tile==myTile || tile==opponentTile || getNthDigit(tile,1)<1 || getNthDigit(tile,1)>7 || getNthDigit(tile,2)<1 || getNthDigit(tile,2)>7);\n position = tile;\n showTimedAlertDialog(\"You are confused!\", \"moving at a random direction\", 5);\n confused = false;\n }\n\n /**\n * send message to opponent\n */\n MultiplayerManager.getInstance().SendMessage(position.toString());\n\n if(!is_debug){\n HandleLejos(myTile, position);\n }\n\n ImageView player1 = findImageButton(\"square_\"+position.toString());\n ImageView player1_old = findImageButton(\"square_\"+myTile.toString());\n player1.setImageDrawable(getResources().getDrawable(R.drawable.tank_blue));\n player1_old.setImageDrawable(getResources().getDrawable(android.R.color.transparent));\n myTile = position;\n myTurn = false;\n turnNumber = turnNumber + 1;\n }", "public void executeJoiningPlayer(Player player) {\r\n nui.setupNetworkPlayer(player);\r\n }", "@Override\n\tpublic void executeMove(Player player, Board gameBoard, int turn, int startRow, int startCol, int endRow,\n\t\t\tint endCol) {\n\t\t\n\t}", "default void interactWith(Teleporter tp) {\n\t}", "int remoteTp(Player p1, Player p2);", "private void moveShipRight()\r\n\t\t{\r\n\t\t\t\tboolean moved = true;\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n\r\n //if firstPlayer move unit right\r\n if(currentPlayer == 1)\r\n {\r\n int currentPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n int temp1 = (currentPos + 1) % mapWidth;\r\n if(temp1 == 0)\r\n {\r\n int mapTemp = mapPieces[0][currentPos - mapWidth + 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos - mapWidth + 1);\r\n }\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos + 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos + 1);\r\n }\r\n }//end if\r\n\r\n //if secondPlayer move unit right\r\n if(currentPlayer == 2)\r\n {\r\n int currentPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n int temp1 = (currentPos + 1) % mapWidth;\r\n if(temp1 == 0)\r\n {\r\n int mapTemp = mapPieces[0][currentPos - mapWidth + 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos - mapWidth + 1);\r\n }//end if\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos + 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos + 1);\r\n }//end else\r\n }//end if\r\n\r\n //set up new player once unit has moved\r\n playerMoved(currentPlayer,currentUnit,moved);\r\n\r\n //set up new mapPosition if player moved\r\n if(moved == true)\r\n setMapPos();\r\n\t\t}", "public static void Transfer(JailPrisoner prisoner, Player player)\r\n \t{\r\n \t\tif (prisoner.getTransferDestination() == \"find nearest\") prisoner.setTransferDestination(JailZoneManager.findNearestJail(player.getLocation(), prisoner.getJail().getName()).getName());\r\n \t\t\r\n \t\tif (prisoner.getCell() != null)\r\n \t\t{\r\n \t\t\tInventory inventory = player.getInventory();\r\n \t\t\tJailCell cell = prisoner.getCell();\r\n \t\t\tcell.setPlayerName(\"\");\r\n \t\t\tfor (Sign sign : cell.getSigns())\r\n \t\t\t{\r\n \t\t\t\tsign.setLine(0, \"\");\r\n \t\t\t\tsign.setLine(1, \"\");\r\n \t\t\t\tsign.setLine(2, \"\");\r\n \t\t\t\tsign.setLine(3, \"\");\r\n \t\t\t\tsign.update();\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif (cell.getChest() != null) \r\n \t\t\t{\r\n \t\t\t\tfor (ItemStack i: cell.getChest().getInventory().getContents())\r\n \t\t\t\t{\r\n \t\t\t\t\tif (i == null || i.getType() == Material.AIR) continue;\r\n \t\t\t\t\tinventory.addItem(i);\r\n \t\t\t\t}\r\n \t\t\t\tcell.getChest().getInventory().clear();\r\n \t\t\t}\r\n \t\t\tif (cell.getSecondChest() != null) \r\n \t\t\t{\r\n \t\t\t\tfor (ItemStack i: cell.getSecondChest().getInventory().getContents())\r\n \t\t\t\t{\r\n \t\t\t\t\tif (i == null || i.getType() == Material.AIR) continue;\r\n \t\t\t\t\tinventory.addItem(i);\r\n \t\t\t\t}\r\n \t\t\t\tcell.getSecondChest().getInventory().clear();\r\n \t\t\t}\r\n \t\t\tprisoner.setCell(null);\r\n \t\t}\r\n \t\t\t\t\t\t\r\n \t\tprisoner.SetBeingReleased(true);\r\n \t\t\r\n \t\tString targetJail = prisoner.getTransferDestination();\r\n \t\tif (targetJail.contains(\":\"))\r\n \t\t{\r\n \t\t\tprisoner.setRequestedCell(targetJail.split(\":\")[1]);\r\n \t\t\ttargetJail = targetJail.split(\":\")[0];\t\t\t\r\n \t\t}\r\n \t\t\r\n \t\tJailZone jail = Jail.zones.get(targetJail);\r\n \t\tprisoner.setJail(jail);\r\n \t\tprisoner.setTransferDestination(\"\");\r\n \t\tprisoner.setOfflinePending(false);\r\n \t\tUtil.Message(jail.getSettings().getString(Setting.MessageTransfer), player);\r\n \t\tJail.prisoners.put(prisoner.getName(),prisoner);\r\n \r\n \t\tJailCell cell = jail.getRequestedCell(prisoner);\r\n \t\tif (cell == null || (cell.getPlayerName() != null && !cell.getPlayerName().equals(\"\") && !cell.getPlayerName().equals(prisoner.getName()))) \r\n \t\t{\r\n \t\t\tcell = null;\r\n \t\t\tcell = jail.getEmptyCell();\r\n \t\t}\r\n \t\tif (cell != null)\r\n \t\t{\r\n \t\t\tcell.setPlayerName(player.getName());\r\n \t\t\tprisoner.setCell(cell);\r\n \t\t\tplayer.teleport(prisoner.getTeleportLocation());\r\n \t\t\tprisoner.updateSign();\r\n \t\t\tif (jail.getSettings().getBoolean(Setting.StoreInventory) && cell.getChest() != null)\r\n \t\t\t{\r\n \t\t\t\tChest chest = cell.getChest();\r\n \t\t\t\tchest.getInventory().clear();\r\n \t\t\t\tfor (int i = 0;i<40;i++)\r\n \t\t\t\t{\r\n \t\t\t\t\tif (chest.getInventory().getSize() <= Util.getNumberOfOccupiedItemSlots(chest.getInventory().getContents())) break;\r\n \t\t\t\t\tif (player.getInventory().getItem(i) == null || player.getInventory().getItem(i).getType() == Material.AIR) continue;\r\n \t\t\t\t\tchest.getInventory().addItem(player.getInventory().getItem(i));\r\n \t\t\t\t\tplayer.getInventory().clear(i);\r\n \t\t\t\t}\r\n \t\t\t\t\t\t\t\t\r\n \t\t\t\tif (cell.getSecondChest() != null)\r\n \t\t\t\t{\r\n \t\t\t\t\tchest = cell.getSecondChest();\r\n \t\t\t\t\tchest.getInventory().clear();\r\n \t\t\t\t\tfor (int i = 0;i<40;i++)\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tif (chest.getInventory().getSize() <= Util.getNumberOfOccupiedItemSlots(chest.getInventory().getContents())) break;\r\n \t\t\t\t\t\tif (player.getInventory().getItem(i) == null || player.getInventory().getItem(i).getType() == Material.AIR) continue;\r\n \t\t\t\t\t\tchest.getInventory().addItem(player.getInventory().getItem(i));\r\n \t\t\t\t\t\tplayer.getInventory().clear(i);\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tcell.update();\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tplayer.teleport(prisoner.getTeleportLocation());\r\n \t\t}\r\n \t\t\r\n \t\tif (jail.getSettings().getBoolean(Setting.StoreInventory)) \r\n \t\t{\r\n \t\t\tprisoner.storeInventory(player.getInventory());\r\n \t\t\tplayer.getInventory().clear();\r\n \t\t}\r\n \t\t\r\n \t\tprisoner.SetBeingReleased(false);\r\n \t\tInputOutput.UpdatePrisoner(prisoner);\r\n \t}", "public static void teleportPlayersToArena(Arena a, Player... players) {\n for (Player p : players) {\n p.teleport(a.getSpawnInPoint());\n }\n }", "@EventHandler(ignoreCancelled = true)\n public void onEntityTeleport(EntityTeleportEvent event) {\n if (Util.isTrackable(event.getEntity())) {\n AbstractHorse abstractHorse = (AbstractHorse) event.getEntity();\n Entity passenger = Util.getPassenger(abstractHorse);\n if (passenger instanceof Player) {\n Player player = (Player) passenger;\n getState(player).clearHorseDistance();\n }\n }\n }", "public Object call() throws Exception {\n player.setX(sendPosition.getX());\r\n player.setY(sendPosition.getY());\r\n return null;\r\n }", "public void movePlayer(String direction) {\n if(playerAlive(curPlayerRow, curPlayerCol)){\n if(direction.equals(\"u\")&&(curPlayerRow-1)>=0){\n overwritePosition(curPlayerRow, curPlayerCol, (curPlayerRow-1), curPlayerCol);\n curPlayerRow -= 1;\n }else if(direction.equals(\"d\")&&(curPlayerRow+1)<=7){\n overwritePosition(curPlayerRow, curPlayerCol, (curPlayerRow+1), curPlayerCol);\n curPlayerRow += 1;\n }else if(direction.equals(\"l\")&&(curPlayerCol-1)>=0){\n overwritePosition(curPlayerRow, curPlayerCol, curPlayerRow, (curPlayerCol-1));\n curPlayerCol -= 1;\n }else if(direction.equals(\"r\")&&(curPlayerCol+1)<=9){\n overwritePosition(curPlayerRow, curPlayerCol, curPlayerRow, (curPlayerCol+1));\n curPlayerCol += 1;\n }\n }\n if(playerFoundTreasure(curPlayerRow, curPlayerCol)){\n playerWins();\n }\n adjustPlayerLifeLevel(curPlayerRow, curPlayerCol);\n int[] array = calcNewTrollCoordinates(curPlayerRow, curPlayerCol, curTrollRow, curTrollCol);\n if(curPlayerRow == curTrollRow && curPlayerCol == curTrollCol){\n gameBoard[curTrollRow][curTrollCol] = new TrollPiece();\n }else{\n int newTrollRow = array[0];\n int newTrollCol = array[1];\n overwritePosition(curTrollRow, curTrollCol, newTrollRow, newTrollCol);\n curTrollRow = newTrollRow;\n curTrollCol = newTrollCol;\n }\n }", "public void chasePlayer() {\n refreshObstructionMatrix();\n Coordinate currPosition = new Coordinate(getX(), getY());\n Player player = this.dungeon.getPlayer();\n Coordinate playerPosition = new Coordinate(player.getX(), player.getY());\n\n if (currPosition.equals(playerPosition)) {\n // Debug.printC(\"Enemy has reached the player!\", Debug.RED);\n player.useItem(this);\n } else {\n this.pathToDest = pathFinder.getPathToDest(currPosition, playerPosition);\n if (!this.pathToDest.empty()) {\n Coordinate nextPosition = this.pathToDest.pop();\n // this.setCoordinate(nextPosition);\n if (getX() + 1 == nextPosition.x) {\n moveRight();\n } else if (getX() - 1 == nextPosition.x) {\n moveLeft();\n } else if (getY() + 1 == nextPosition.y) {\n moveDown();\n } else if (getY() - 1 == nextPosition.y) {\n moveUp();\n }\n }\n }\n }", "GameState performMove(String guid, String username, int x, int y) throws GameStateException, GamePlayException;", "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 execute(Player player) {\n\t\tRoom currentRoom = player.getAdventureGame().currentRoom();\n\t\tList <Direction>neibourgh = new ArrayList<Direction>();\n\t\tneibourgh.addAll(currentRoom.getNeighbours().keySet());\n\t\tSystem.out.println(player);\n\t\tdisplayList(\"Items :\\t\", currentRoom.getItemsList());\n\t\tdisplayList(\"Monsters :\", currentRoom.getMonstersList());\n\t\tdisplayList(\"Neighbours :\", neibourgh);\n\t\tSystem.out.println(\"--------------------------------------------\");\n\t}", "@Override\n public void process(GameData gameData, World world) {\n for (Player player : world.getEntities(Player.class).stream().map(Player.class::cast).collect(Collectors.toList())) {\n if(player.isAlive()) {\n PositionPart positionPart = player.getPart(PositionPart.class);\n MovingPart movingPart = player.getPart(MovingPart.class);\n ShootingPart shootingPart = player.getPart(ShootingPart.class);\n\n movingPart.setLeft(gameData.getKeys().isDown(GameKeys.LEFT));\n movingPart.setRight(gameData.getKeys().isDown(GameKeys.RIGHT));\n if (shootingPart != null) {\n shootingPart.setShooting(gameData.getKeys().isDown(GameKeys.SPACE));\n }\n\n //Optional.ofNullable(world.getNearestTile((int) positionPart.getX(), (int) positionPart.getY())).ifPresent(tile -> tile.getEntities().remove(player));\n\n movingPart.process(gameData, player);\n positionPart.process(gameData, player);\n\n //Optional.ofNullable(world.getNearestTile((int) positionPart.getX(), (int) positionPart.getY())).ifPresent(tile -> tile.getEntities().add(player));\n }\n }\n }", "@Override\r\n public void setupMove(double localTime) {\n if (mEntityMap.containsKey(mLocalCharId)) {\r\n Character localChar = (Character)mEntityMap.get(mLocalCharId);\r\n localChar.setController(Game.mCamera);\r\n ((Client)mEndPoint).sendUDP(localChar.getControl());\r\n\r\n ChatMessage chat = localChar.getChat();\r\n if (chat != null && chat.s != null) {\r\n System.err.println(\"Sending chat to server:\" + chat.s);\r\n ((Client)mEndPoint).sendTCP(chat);\r\n chat.s = null;\r\n }\r\n }\r\n\r\n // receive world state from server\r\n TransmitPair pair;\r\n for (;;) {\r\n pair = pollHard(localTime, 0);\r\n if (pair == null)\r\n break;\r\n\r\n if (pair.object instanceof StateMessage) {\r\n // Server updates client with state of all entities\r\n StateMessage state = (StateMessage) pair.object;\r\n applyEntityChanges(state.timestamp, state.data);\r\n\r\n // update clock correction based on packet timestamp, arrival time\r\n if (mClockCorrection == Double.MAX_VALUE) {\r\n mClockCorrection = state.timestamp - localTime;\r\n } else {\r\n mClockCorrection = Config.CORRECTION_WEIGHT * (state.timestamp - localTime)\r\n + (1 - Config.CORRECTION_WEIGHT) * mClockCorrection;\r\n }\r\n } else if (pair.object instanceof StartMessage) {\r\n // Server tells client which character the player controls\r\n mLocalCharId = ((StartMessage) pair.object).characterEntity;\r\n System.err.println(\"Client sees localid, \" + mLocalCharId);\r\n } else if (pair.object instanceof ChatMessage) {\r\n ChatMessage chat = (ChatMessage) pair.object;\r\n mChatDisplay.addChat(localTime, chat.s, Color.white);\r\n } else if (pair.object instanceof ChunkMessage) {\r\n ChunkMessage chunkMessage = (ChunkMessage) pair.object;\r\n ChunkModifier.client_putModified(chunkMessage);\r\n }\r\n }\r\n\r\n // move local char\r\n if (mEntityMap.containsKey(mLocalCharId)) {\r\n Character localChar = (Character)mEntityMap.get(mLocalCharId);\r\n localChar.setupMove(localTime);\r\n }\r\n }", "public void sendPacketToChunk(jv packetToSend, int globalx, int globaly, int globalz) {\r\n // Get chunk coordinates\r\n int chunkx = globalx >> 4;\r\n int chunkz = globalz >> 4;\r\n // Get the chunk\r\n at localat = a(chunkx, chunkz, false);\r\n // if chunk != null, send packet\r\n if (localat != null) {\r\n localat.a(packetToSend);\r\n }\r\n }", "public void adjLocation(double l){this.PlayerLocation;}", "private void moveShipUp()\r\n\t\t{\r\n\t\t\t\tboolean moved = true;\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n\r\n //if firstPlayer move unit up\r\n if(currentPlayer == 1)\r\n {\r\n int currentPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n if(currentPos >= 0 && currentPos < mapWidth)\r\n {\r\n int newPos = mapHeight -1;\r\n int newPos2 = mapHeight * newPos + currentPos;\r\n int mapTemp = mapPieces[0][newPos2];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(newPos2);\r\n }\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos - mapWidth];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos - mapWidth);\r\n }\r\n }//end if\r\n\r\n //if secondPlayer move unit up\r\n if(currentPlayer == 2)\r\n {\r\n int currentPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n if(currentPos >= 0 && currentPos < mapWidth)\r\n {\r\n int newPos = mapHeight -1;\r\n int newPos2 = mapHeight * newPos + currentPos;\r\n int mapTemp = mapPieces[0][newPos2];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(newPos2);\r\n }\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos - mapWidth];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos - mapWidth);\r\n }//end else\r\n }//end if\r\n\r\n //set up new player once unit has moved\r\n playerMoved(currentPlayer,currentUnit,moved);\r\n\r\n //set up new mapPosition if player moved\r\n if(moved == true)\r\n setMapPos();\r\n\t\t}", "public static void ApplyMovement(Position p, Direction d)\n {\n switch (d)\n {\n case East:\n p.X++;\n break;\n case North:\n p.Y--;\n break;\n case Northeast:\n p.X++;\n p.Y--;\n break;\n case Northwest:\n p.X--;\n p.Y--;\n break;\n case South:\n p.Y++;\n break;\n case Southeast:\n p.X++;\n p.Y++;\n break;\n case Southwest:\n p.X--;\n p.Y++;\n break;\n case West:\n p.X--;\n break;\n }\n }", "public void setSpace(int position, Box player){\r\n\t\tboard[position - 1] = player;\r\n\t\t\r\n\t}", "public abstract Position executeMovement(Position pos, Surface surface);", "private void moveShipDown()\r\n\t\t{\r\n\t\t\t\tboolean moved = true;\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n\r\n //if firstPlayer move unit down\r\n if(currentPlayer == 1)\r\n {\r\n int currentPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n int temp1 = mapWidth * mapHeight - mapWidth;\r\n int temp2 = mapWidth * mapHeight;\r\n if(currentPos >= temp1 && currentPos < temp2)\r\n {\r\n int newPos = currentPos % mapHeight;\r\n int mapTemp = mapPieces[0][newPos];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(newPos);\r\n }//end if\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos + mapWidth];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos + mapWidth);\r\n }//end else\r\n }//end if\r\n\r\n //if secondPlayer move unit down\r\n if(currentPlayer == 2)\r\n {\r\n int currentPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n int temp1 = mapWidth * mapHeight - mapWidth;\r\n int temp2 = mapWidth * mapHeight;\r\n if(currentPos >= temp1 && currentPos < temp2)\r\n {\r\n int newPos = currentPos % mapHeight;\r\n int mapTemp = mapPieces[0][newPos];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(newPos);\r\n }\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos + mapWidth];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos + mapWidth);\r\n }//end if\r\n }//end if\r\n\r\n //set up new player once unit has moved\r\n playerMoved(currentPlayer,currentUnit,moved);\r\n\r\n //set up new mapPosition if player moved\r\n if(moved == true)\r\n setMapPos();\r\n\t\t}", "public boolean canTeleport(Entity t) {\r\n if (getDirection() == Direction.EAST && (t.getLocation().getX() - getLocation().getX()) < 4 && (t.getLocation().getX() - getLocation().getX()) > -1 && (t.getLocation().getY() - getLocation().getY()) == 0) {\r\n return true;\r\n }\r\n if (getDirection() == Direction.WEST && (getLocation().getX() - t.getLocation().getX()) < 4 && (getLocation().getX() - t.getLocation().getX()) > -1 && (t.getLocation().getY() - getLocation().getY()) == 0) {\r\n return true;\r\n }\r\n if (getDirection() == Direction.NORTH && (t.getLocation().getY() - getLocation().getY()) < 4 && (t.getLocation().getY() - getLocation().getY()) > -1 && (t.getLocation().getX() - getLocation().getX()) == 0) {\r\n return true;\r\n }\r\n if (getDirection() == Direction.SOUTH && (getLocation().getY() - t.getLocation().getY()) < 4 && (getLocation().getY() - t.getLocation().getY()) > -1 && (t.getLocation().getX() - getLocation().getX()) == 0) {\r\n return true;\r\n }\r\n return false;\r\n }", "private void playerMoved(int currentPlayer, int currentUnit, boolean moved)\r\n {\r\n if(moved == true)//if player has made a legitimate move\r\n {\r\n worldPanel.repaint();\r\n int movesLeft = 0;\r\n if(currentPlayer == 1)\r\n {\r\n int myPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n\r\n //check to see if a player challenges another player\r\n for(int i = 0; i < worldPanel.player2.getNumUnits(); i++)\r\n {\r\n int pos = worldPanel.player2.units[i].getPosition();\r\n if(myPos == pos)\r\n {\r\n fight(1, currentUnit - 1, i);\r\n return;\r\n }\r\n }//end for\r\n\r\n //check to see if a player captures a city\r\n for(int i = 0; i < worldPanel.player2.getNumCities(); i++)\r\n {\r\n int pos = worldPanel.player2.cities[i].getLocation();\r\n if(myPos == pos)\r\n {\r\n captureCity(1,i);\r\n return;\r\n }\r\n }//end for\r\n movesLeft = worldPanel.player1.units[currentUnit - 1].getMovementsLeft();\r\n int temp = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n int temp1 = mapPieces[0][temp];\r\n if(temp1 == 54 || temp1 == 51 || temp1 == 52 || temp1 == 53)//if unit moves on rock or something\r\n worldPanel.player1.units[currentUnit - 1].setMovementsLeft(movesLeft - 2);\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setMovementsLeft(movesLeft - 1);\r\n movesLeft = worldPanel.player1.units[currentUnit - 1].getMovementsLeft();\r\n }//end if\r\n else if(currentPlayer == 2)\r\n {\r\n int myPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n\r\n //check to see if a player challenges another player\r\n for(int i = 0; i < worldPanel.player1.getNumUnits(); i++)\r\n {\r\n int pos = worldPanel.player1.units[i].getPosition();\r\n if(myPos == pos)\r\n {\r\n fight(2, currentUnit - 1, i);\r\n return;\r\n }\r\n }\r\n\r\n //check to see if a player captures a city\r\n for(int i = 0; i < worldPanel.player1.getNumCities(); i++)\r\n {\r\n int pos = worldPanel.player1.cities[i].getLocation();\r\n if(myPos == pos)\r\n {\r\n captureCity(2,i);\r\n return;\r\n }\r\n }//end for\r\n movesLeft = worldPanel.player2.units[currentUnit - 1].getMovementsLeft();\r\n int temp = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n int temp1 = mapPieces[0][temp];\r\n if(temp1 == 54 || temp1 == 51 || temp1 == 52 || temp1 == 53)//if unit moves on rock or something\r\n worldPanel.player2.units[currentUnit - 1].setMovementsLeft(movesLeft - 2);\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setMovementsLeft(movesLeft - 1);\r\n movesLeft = worldPanel.player2.units[currentUnit - 1].getMovementsLeft();\r\n\r\n //worldPanel.player2.units[currentUnit - 1].setMovementsLeft(movesLeft - 1);\r\n movesLeft = worldPanel.player2.units[currentUnit - 1].getMovementsLeft();\r\n }\r\n\r\n if(movesLeft <= 0)//if unit has run out of moves\r\n {\r\n if(currentPlayer == 1)\r\n {\r\n worldPanel.player1.units[currentUnit - 1].resetMovement();\r\n }\r\n if(currentPlayer == 2)\r\n {\r\n worldPanel.player2.units[currentUnit - 1].resetMovement();\r\n }\r\n currentUnit++;\r\n }//end if\r\n worldPanel.setCurrentUnit(currentUnit);\r\n }//end if\r\n\r\n int temp = worldPanel.getNumUnits(currentPlayer);\r\n if(currentUnit > temp)\r\n {\r\n if(currentPlayer == 1)\r\n worldPanel.setCurrentPlayer(2);\r\n else\r\n\t\t\t\t\t\t{\r\n worldPanel.setCurrentPlayer(1);\r\n\t\t\t\t\t\t\t\tyear = unitPanel.getYear() + 20;//add 20 years to the game\r\n\t\t\t\t\t\t}\r\n worldPanel.setCurrentUnit(1);\r\n }//end if\r\n\r\n setInfoPanel();//set up the information panel\r\n }", "public void setPlayerPosition(Player player) {\n\n if (player.getPosition().equals(\"Left Wing\")) {\n\n for (int i = 0; i < 2; i++) {\n if (forwardLines[i][0] == null) {\n forwardLines[i][0] = player;\n break;\n }\n }\n }\n\n else if (player.getPosition().equals(\"Center\")) {\n for (int i = 0; i < 2; i++) {\n if (forwardLines[i][1] == null) {\n forwardLines[i][1] = player;\n break;\n }\n }\n }\n\n else if (player.getPosition().equals(\"Right Wing\")) {\n for (int i = 0; i < 2; i++) {\n if (forwardLines[i][2] == null) {\n forwardLines[i][2] = player;\n break;\n }\n }\n }\n\n else if (player.getPosition().equals(\"Left Defence\")) {\n for (int i = 0; i < 2; i++) {\n if (defenceLines[i][0] == null) {\n defenceLines[i][0] = player;\n break;\n }\n }\n }\n\n else if (player.getPosition().equals(\"Right Defence\")) {\n for (int i = 0; i < 2; i++) {\n if (defenceLines[i][1] == null) {\n defenceLines[i][1] = player;\n break;\n }\n }\n }\n }", "void fireShellAtPlayer(int playerNr, int x, int y);", "public TPDestination teleport(Location location) {\r\n TPDestination last = pushToStack(plugin.getServer().getPlayer(name).getLocation());\r\n plugin.getServer().getPlayer(name).teleport(location);\r\n return last;\r\n }", "void setPosition(Tile t);", "@Override\n public void run(String[] args, Player player) {\n \n if (args.length == 2) {\n if (!emptySetPlayerTPort.hasPermissionToRun(player, true)) {\n return;\n }\n TPortInventories.openHomeEditGUI(player);\n } else if (args.length == 3) {\n if (!emptySetPlayerTPort.hasPermissionToRun(player, true)) {\n return;\n }\n \n String newPlayerName = args[2];\n UUID newPlayerUUID = PlayerUUID.getPlayerUUID(newPlayerName, player);\n if (newPlayerUUID == null) {\n return;\n }\n \n TPortInventories.openHomeEdit_SelectTPortGUI(newPlayerUUID, player);\n } else if (args.length == 4) {\n if (!emptySetPlayerTPort.hasPermissionToRun(player, true)) {\n return;\n }\n \n String newPlayerName = args[2];\n UUID newPlayerUUID = PlayerUUID.getPlayerUUID(newPlayerName, player);\n if (newPlayerUUID == null) {\n return;\n }\n \n TPort tport = TPortManager.getTPort(newPlayerUUID, args[3]);\n if (tport == null) {\n sendErrorTranslation(player, \"tport.command.noTPortFound\", args[3]);\n return;\n }\n \n Home.setHome(player, tport);\n sendSuccessTranslation(player, \"tport.command.home.set.player.tportName.succeeded\", asTPort(tport));\n } else {\n sendErrorTranslation(player, \"tport.command.wrongUsage\", \"/tport home set [player] [TPort]\");\n }\n }", "public abstract void execute(Player p);", "@Override\n\tdefault void onExecution(Player player, Position start, Position end) {\n\n\t\tForceMovement forceMovement = new ForceMovement(player.getPosition(),\n\t\t\t\tnew Position(player.getX(), player.getY() - 3, player.getHeight()), 12, 2, Direction.SOUTH);\n\t\tWorld.schedule(new ForceMovementTask(player, 0, forceMovement, new Animation(5043)) {\n\t\t\t@Override\n\t\t\tprotected void onCancel(boolean logout) {\n\t\t\t\tsuper.onCancel(logout);\n\t\t\t\tWorld.schedule(new Task(1) {\n\t\t\t\t\tint ticks = 0;\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void execute() {\n\t\t\t\t\t\tswitch (ticks++) {\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tplayer.move(new Position(player.getX(), player.getY(), player.getHeight() + 1));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\tplayer.move(end);\n\t\t\t\t\t\t\tcancel();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}", "protected boolean teleportToEntity(Entity entity) {\n Vec3 vector = Vec3.createVectorHelper(this.posX - entity.posX, this.boundingBox.minY + this.height / 2.0F - entity.posY + entity.getEyeHeight(), this.posZ - entity.posZ);\n vector = vector.normalize();\n double x = this.posX + (this.rand.nextDouble() - 0.5) * 8.0 - vector.xCoord * 16.0;\n double y = this.posY + (this.rand.nextInt(16) - 8) - vector.yCoord * 16.0;\n double z = this.posZ + (this.rand.nextDouble() - 0.5) * 8.0 - vector.zCoord * 16.0;\n return this.teleportTo(x, y, z);\n }", "public static void slayerRingTeleport(ClientContext ctx, int destinationSelection) {\n int[] slayerRings = new int[]{Items.SLAYER_RING_8_11866, Items.SLAYER_RING_7_11867, Items.SLAYER_RING_6_11868, Items.SLAYER_RING_5_11869, Items.SLAYER_RING_4_11870, Items.SLAYER_RING_3_11871, Items.SLAYER_RING_2_11872, Items.SLAYER_RING_1_11873};\n\n Item i = ctx.inventory.select().id(slayerRings).first().poll();\n\n if (i.valid()) {\n i.interact(\"Rub\", i.name());\n\n // Wait for prompt\n Condition.wait(new Callable<Boolean>() {\n @Override\n public Boolean call() throws Exception {\n return ctx.widgets.component(219, 1, 1).visible();\n }\n }, 100, 20);\n\n // Click teleport\n ctx.widgets.component(219, 1, 1).click();\n sleep();\n\n // Wait for destination selection\n Condition.wait(new Callable<Boolean>() {\n @Override\n public Boolean call() throws Exception {\n return ctx.widgets.component(219, 1, 1).visible();\n }\n }, 100, 20);\n\n // Select Destination\n ctx.widgets.component(219, 1, destinationSelection).click();\n }\n }", "void sendPacket(Player player, Object packet);", "void spawnEntityAt(String typeName, int x, int y);", "public void MoveTileOpponent(Integer position){\n Integer position_inverted = revertTile(position);\n String position_inverted_str = String.valueOf(position_inverted);\n\n ImageView player2 = findImageButton(\"square_\"+position_inverted_str);\n ImageView player2_old = findImageButton(\"square_\"+opponentTile.toString());\n player2.setImageDrawable(getResources().getDrawable(R.drawable.tank_red));\n player2_old.setImageDrawable(getResources().getDrawable(android.R.color.transparent));\n\n opponentTile = position_inverted;\n myTurn = true;\n canPlaceBomb = true;\n turnNumber = turnNumber + 1;\n\n if(ShotsCaller){\n placePowerup(null);\n }\n }", "protected void manageMovement(boolean localUpdate, Player player, PacketBuilder packet) {\n int movementUpdateId = (localUpdate && (player.basicSettings().isTeleporting() || player.basicSettings().isMapRegionUpdate())) ? 3\n : (player.getDirections().getSecondDirection() != null ? 2\n : (player.getDirections().getDirection() != null ? 1\n : (player.getMasks().requiresUpdate() ? 0\n : -1)));\n /*\n * put basic movement header in\n */\n packet.putBits(1, movementUpdateId == -1 ? 0 : 1);\n\n if (movementUpdateId != -1) {\n /*\n * tell the client that our player teleported/changeregion, has movement, or is standing still.\n */\n packet.putBits(2, movementUpdateId);\n if (movementUpdateId == 3) {\n /**\n * Apply custom/scrambled bits for Teleport/region change\n */\n handleRegionChange(player, packet);\n } else if (movementUpdateId > 0) {\n /*\n * Write the primary sprite (i.e. walk direction).\n */\n packet.putBits(3, player.getDirections().getDirection().intValue());\n if (movementUpdateId == 2) {\n /*\n * Write the secondary sprite (i.e. run direction).\n */\n packet.putBits(3, player.getDirections().getSecondDirection().intValue());\n }\n /*\n * Write a flag indicating if a block update happened.\n */\n packet.putBits(1, player.getMasks().requiresUpdate() ? 1 : 0);\n }\n }\n }" ]
[ "0.68542653", "0.6635323", "0.6562699", "0.6441572", "0.6137724", "0.60947603", "0.60009974", "0.5968357", "0.5964858", "0.59626687", "0.5929335", "0.59008366", "0.58638245", "0.58185357", "0.5805449", "0.5774003", "0.5761199", "0.5741135", "0.5718083", "0.56824297", "0.564984", "0.5626328", "0.5617184", "0.55501735", "0.5516513", "0.54883146", "0.5481359", "0.54688644", "0.54488933", "0.54295665", "0.542954", "0.5413756", "0.5413224", "0.5400364", "0.53926265", "0.5346362", "0.53403616", "0.53238297", "0.531434", "0.5301231", "0.52974904", "0.5296763", "0.52878463", "0.52786654", "0.5275107", "0.5266568", "0.5258362", "0.5257212", "0.52469206", "0.5221109", "0.5218138", "0.52106184", "0.52080655", "0.52028316", "0.52023935", "0.51919067", "0.519059", "0.51901776", "0.5187814", "0.5164785", "0.5162255", "0.5154851", "0.51516914", "0.51411617", "0.5131738", "0.5129248", "0.5126188", "0.5125442", "0.51228034", "0.51143026", "0.51124156", "0.51032174", "0.5092549", "0.5087147", "0.5086464", "0.5075493", "0.5070353", "0.50685096", "0.50517356", "0.5043958", "0.5041627", "0.50234514", "0.50176376", "0.50164", "0.5010132", "0.50065166", "0.5004595", "0.5001354", "0.49894276", "0.4989109", "0.49866787", "0.4982622", "0.49804795", "0.49789226", "0.49763697", "0.4971789", "0.4966651", "0.49590424", "0.4950656", "0.49462715" ]
0.71572465
0
TODO Autogenerated method stub
public static void main(String[] args) { Scanner scan = new Scanner(System.in); /* * Exercicio 1 */ int c = 0; int s = 1; int f = 0; int b = 0; while( c < 8 ) { b = f + s; f = s; s = b; c++; System.out.println(b); } /* * Exercicio 2 */ double[][] notas = new double[6][2]; System.out.println("Digite a notas dos 6 alunos, em ordem (primeiro aluno: primeira nota depois segunda nota)"); for(int i = 0; i <6; i++) { for(int j = 0; i <2; i++) { notas[i][j] = scan.nextDouble(); } } for(int i = 0; i < 6; i++) { double m = (notas[i][0] + notas[i][1]) / 2; notas[i][2] = m; System.out.println(notas[i][2]); } for(int i = 0; i < 6; i++) { System.out.println(notas[i][2] >= 6 ? "Aluno "+(i)+" Passou" : "Aluno "+(i)+" Recuperação"); } int a = 0; for(int i = 0; i < 6; i++) { if(notas[i][2] >= 6) { a++; } } System.out.println(a+" Alunos passaram"); int d = 0; for(int i = 0; i < 6; i++) { if(notas[i][2] <= 3) { d++; } } System.out.println(d+" Alunos reprovaram"); int e = 0; for(int i = 0; i < 6; i++) { if((notas[i][2] <= 6)||(notas[i][2] >= 3)) { e++; } } System.out.println(e+" Alunos de recuperação"); double g = 0; for(int i = 0; i < 6; i++) { g = g + notas[i][2]; } System.out.println("Media da sala: "+g/6); /* * Exercicio 3 */ boolean prime = true; System.out.println("Insira o numero que desejas saber se é primo ou não (inteiro positivo) "); int h = scan.nextInt(); for(int i = 2; i <= h; i ++) { if( (h % i == 0) && (i != h) ) { prime = false; break; } } if(prime) System.out.print("O numero "+h+" é primo"); else System.out.print("O numero "+h+" não é primo"); /* * Exercicio 4 */ System.out.println("Insira notas dos alunos (Ordem: Primeira nota, segunda nota, presença)"); int[][] Sala = new int[5][3]; for(int i = 0; i < 5; i++) { for(int j = 0; j < 3; j++) { Sala[i][j] = scan.nextInt(); } } for(int i = 0; i < 5; i++) { if((Sala[i][0] + Sala[i][1] >= 6) && (Sala[i][2] / 18 >= 0.75)){ System.out.println("Aluno "+i+" aprovado"); } else System.out.println("Aluno "+i+" reprovado"); } /* * Exercicio 5 */ int[] first = {1,2,3,4,5,}; int[] second = {10,9,8,7,6,5,4,3,2,1,}; int[][] third = {{1,2,3,}, {4,5,6}, {7,8,9}, {10,11,12}}; int[][] fourth = new int[4][3]; int m = 0; //If they were random numbers, would i need to use the lowest integer? or just be clever int n = 1; for(int i = 0; i < first.length; i++) { if(first[i] > m) m = first[i]; } for(int i = 0; i < second.length; i++) { if(second[i] < n) n = second[i]; } int x = n*m; int k = 0; int l = 0; int o = 0; int p = 0; for(int i = 0; i < 4; i ++) { for(int j = 0; j < 3; j++) { fourth[i][j] = third[i][j] + x; if(fourth[0][j] % 2 == 0) { k += fourth[0][j]; } if(fourth[1][j] % 2 == 0) { l += fourth[1][j]; } if(fourth[0][j] % 2 == 0) { o += fourth[2][j]; } if(fourth[3][j] % 2 == 0) { p += fourth[3][j]; } } } /* * Exercicio 6 */ boolean[][] assentos = new boolean[2][5]; for(int i = 0; i < 2; i++) { for(int j = 0; j < 5; j++) { assentos[i][j] = false; } } scan.close(); }
{ "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
Constructs a remote receiver stage
public RemoteReceiverStage(final EventHandler<RemoteEvent<byte[]>> handler, final EventHandler<Throwable> errorHandler, final int numThreads) { this.handler = new RemoteReceiverEventHandler(handler); this.executor = Executors.newFixedThreadPool( numThreads, new DefaultThreadFactory(RemoteReceiverStage.class.getName())); this.stage = new ThreadPoolStage<>(this.handler, this.executor, errorHandler); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void launchRemote(Stage stage) throws Exception { \n\t\tmenuMessage.setText(\"Game will start as soon as the client is connected...\"); \n\t\t\n\t\t// thread of the server connecting to the game and of the game \n\t\tThread serverThread = new Thread(() -> { \n\t\t\tRemotePlayerServer server = new RemotePlayerServer(new GraphicalPlayerAdapter()); \n\t\t\tserver.run(); \n\t\t }); \n\t\tserverThread.setDaemon(true); \n\t\tserverThread.start(); \n\t }", "@Override\n public Receive createReceive() {\n return receiveBuilder()\n .match(PrinterActorProtocol.OnCommand.class, greeting -> {\n System.out.println(\"**--become(createNormalReceive())\");\n getContext().become(createNormalReceive());\n })\n .match(PrinterActorProtocol.StartSelfTestCommand.class, greeting -> {\n System.out.println(\"**--become(createSelfTestModeReceive()\");\n getContext().become(createSelfTestModeReceive());\n })\n\n\n .matchAny( obj -> System.out.println(\"PritnerActor Unknown message \" + obj.getClass()) )\n .build();\n }", "public CreateRemoteClassic<Msg, Ref> create();", "@Override\n public Receive<Command> createReceive() {\n return newReceiveBuilder()\n .onMessageEquals(Start.INSTANCE, this::onStart) //Call onStart when Start.INSTANCE is received\n .onMessage(SendPrimesFound.class, this::onSendPrimesFound) //Call onSendPrimesFound when SendPrimesFound class is received\n .onMessage(SetNumbersToSearchAndNumberOfWorkers.class, this::onSetNumbersToSearchAndNumberOfWorkers) //Call onSetNumbersToSearchAndNumberOfWorkers when SetNumbersToSearchAndNumberOfWorkers is received\n .build();\n\n }", "@Override\n public Receive createReceive() {\n return receiveBuilder()\n\n .match(WhoToGreet.class, wtg -> {\n // -> uses the internal state of wtg and modify this internal state (this.greeting)\n this.greeting = \"Who to greet? -> \" + wtg.who;\n\n }).match(Greet.class, x -> {\n // -> send a message to another actor (thread)\n printerActor.tell(new Printer.Greeting(greeting), getSelf());\n\n }).build();\n }", "public void initReceiver() {\n }", "public Receiver() {\n\t\tsuper();\n\t}", "@Override\n public void create() {\n setScreen(new ServerScreen(\n new RemoteGame(),\n new SocketIoGameServer(HOST, PORT)\n ));\n }", "protected abstract RemoteFactory.Agent<Msg, Ref> make_Agent();", "public Receiver()\r\n/* 15: */ throws Connections.NetWireException\r\n/* 16: */ {\r\n/* 17:14 */ Connections.getPorts(this).addSignalProcessor(\"process\");\r\n/* 18: */ \r\n/* 19:16 */ Connections.publish(this, ID);\r\n/* 20: */ }", "public static void main(String[] args) {\n//\n// remote.setCommand(garageDoorOpenCommand);\n// remote.buttonWasPressed();\n\n RemoteControl remoteControl = new RemoteControl();\n\n Light livingRoomLight = new Light(\"Living Room\");\n Light kitchenLight = new Light(\"Kitchen\");\n CeilingFan ceilingFan = new CeilingFan(\"Living Room\");\n GarageDoor garageDoor = new GarageDoor(\"\");\n Stereo stereo = new Stereo(\"Living Room\");\n\n LightOnCommands livingRoomLightsOn = new LightOnCommands(livingRoomLight);\n LightOffCommand livingRoomLightsOff = new LightOffCommand(livingRoomLight);\n LightOnCommands kitchenLightsOn = new LightOnCommands(kitchenLight);\n LightOffCommand kitchenLightsOff = new LightOffCommand(kitchenLight);\n\n CeilingFanOnCommand ceilingFanOnCommand = new CeilingFanOnCommand(ceilingFan);\n CeilingFanOffCommand ceilingFanOffCommand = new CeilingFanOffCommand(ceilingFan);\n\n GarageDoorOpenCommand garageDoorOpenCommand = new GarageDoorOpenCommand(garageDoor);\n GarageDoorCloseCommand garageDoorCloseCommand = new GarageDoorCloseCommand(garageDoor);\n\n StereoOnWithCdCommand stereoOnWithCdCommand = new StereoOnWithCdCommand(stereo);\n StereoOffCommand stereoOffCommand = new StereoOffCommand(stereo);\n\n\n remoteControl.setCommand(0, livingRoomLightsOn, livingRoomLightsOff);\n remoteControl.setCommand(1, kitchenLightsOn, kitchenLightsOff);\n remoteControl.setCommand(2, ceilingFanOnCommand, ceilingFanOffCommand);\n remoteControl.setCommand(3, stereoOnWithCdCommand, stereoOffCommand);\n\n System.out.println(remoteControl);\n\n remoteControl.onButtonWasPushed(0);\n remoteControl.offButtonWasPushed(0);\n remoteControl.onButtonWasPushed(1);\n remoteControl.offButtonWasPushed(1);\n remoteControl.onButtonWasPushed(2);\n remoteControl.offButtonWasPushed(2);\n remoteControl.onButtonWasPushed(3);\n remoteControl.offButtonWasPushed(3);\n }", "protected abstract CreateRemoteClassic<Msg, Ref> make_create();", "@Override\n\tpublic Receive createReceive() {\n\t\treturn receiveBuilder()\n\t\t\t\t.match(RequestTrackDevice.class, this::onTrackDevice)\n\t\t\t\t.match(Terminated.class, this::onTerminate)\n\t\t\t\t.match(RequestDeviceList.class, this::onDeviceList)\n\t\t\t\t.match(RequestAllTemperatures.class, this::onAllTemperatures)\n\t\t\t\t.build();\n\t}", "Swarm createSwarm();", "private void createOffer() {\n// showToast(\"createOffer\");\n Log.d(TAG, \"createOffer: \");\n sdpConstraints = new MediaConstraints();\n sdpConstraints.mandatory.add(\n new MediaConstraints.KeyValuePair(\"OfferToReceiveAudio\", \"true\"));\n sdpConstraints.mandatory.add(\n new MediaConstraints.KeyValuePair(\"OfferToReceiveVideo\", \"true\"));\n localPeer.createOffer(new CustomSdpObserver(\"localCreateOffer\") {\n @Override\n public void onCreateSuccess(SessionDescription sessionDescription) {\n super.onCreateSuccess(sessionDescription);\n localPeer.setLocalDescription(new CustomSdpObserver(\"localSetLocalDesc\"), sessionDescription);\n Log.d(TAG, \"send offer sdp emit \");\n SignallingClient.getInstance().sendOfferSdp(sessionDescription);\n }\n }, sdpConstraints);\n }", "Server remote(Server bootstrap, Database<S> vat);", "public void launch(SlaveComputer computer, StreamTaskListener listener) {\n }", "RemoteActuator createRemoteActuator();", "@Override\n public Receive createReceive() {\n return receiveBuilder()\n .match(StartMessage.class, this::handle)\n .match(BatchMessage.class, this::handle)\n .match(Terminated.class, this::handle)\n .match(RegistrationMessage.class, this::handle)\n .match(Availability.class, this::handle)\n .match(Result.class, this::handle)\n .matchAny(object -> this.log().info(\"Received unknown message: \\\"{}\\\"\", object.toString()))\n .build();\n }", "public void spawnRubble() {\n\t\tString rubbleName \t= \"\";\n\t\tPlayer newPlayer \t= null; \n\t\tint numberOfRubble \t= server.getRubbleCount();\n\t\t\n\t\tfor(int i = 0; i < numberOfRubble; i++) {\n\t\t\trubbleName = \"Rubble\" + (i+1);\n\t\t\tnewPlayer = initPlayerToGameplane(rubbleName, \n\t\t\t\t\t\t\t\t\t\t\t PlayerType.Rubble, \n\t\t\t\t\t\t\t\t\t\t\t 0, 0);\n\t\t\t\n\t\t\tHandleCommunication.broadcastToClient(null, \n\t\t\t\t\t\t\t\t\t\t\t\t server.getConnectedClientList(), \n\t\t\t\t\t\t\t\t\t\t\t\t SendSetting.AddPlayer, \n\t\t\t\t\t\t\t\t\t\t\t\t newPlayer, \n\t\t\t\t\t\t\t\t\t\t\t\t null);\n\t\t}\n\t}", "public Recv_args() {\r\n\t\tsuper();\r\n\t\trecv_args = new BRecv_args();\r\n\t}", "public Receiver(String name) {\n super(name);\n }", "SpawnController createSpawnController();", "private void initSocket() {\n try {\n rtpSocket = new DatagramSocket(localRtpPort);\n rtcpSocket = new DatagramSocket(localRtcpPort);\n } catch (Exception e) {\n System.out.println(\"RTPSession failed to obtain port\");\n }\n\n rtpSession = new RTPSession(rtpSocket, rtcpSocket);\n rtpSession.RTPSessionRegister(this, null, null);\n\n rtpSession.payloadType(96);//dydnamic rtp payload type for opus\n\n //adding participant, where to send traffic\n Participant p = new Participant(remoteIpAddress, remoteRtpPort, remoteRtcpPort);\n rtpSession.addParticipant(p);\n }", "private void createServerSelectScreen() {\n\t\tserverSelectGroup = new VerticalGroup();\n\t\tserverSelectGroup.setVisible(false);\n\t\t\n\t\tserverSelectGroup.setSize(WIDTH/2, HEIGHT/2);\n\t\tserverSelectGroup.setPosition(WIDTH/2 - serverSelectGroup.getWidth()/2, HEIGHT/2 - serverSelectGroup.getHeight()/2);\n\t\t\n\t\tTextButtonStyle smallStyle = new TextButtonStyle();\n\t\tsmallStyle.font = fontMedium;\n\t\t\n\t\tserverList = new TextButton(\"Server\", smallStyle);\n\t\tserverList.addListener(new InputListener(){\n\t\t\tpublic boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {\n\t\t\t\tif(networkManager != null)\n\t\t\t\t\tnetworkManager.connectToServer();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\tpublic void touchUp(InputEvent event, float x, float y, int pointer, int button) {\n\t\t\t\tserverSelectGroup.setVisible(false);\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tserverSelectGroup.addActor(serverList);\n\t\tstage.addActor(serverSelectGroup);\n\t}", "public void startService() {\n\t\tListenThread listenThread = new ListenThread();\r\n\t\tlistenThread.start();\r\n\t\tSelfVideoThread selfVideoThread = new SelfVideoThread();\r\n\t\tselfVideoThread.start();\r\n\t\tif(remote!=\"\"){\r\n\t\t\tString[] remotes = remote.split(\",\");\r\n\t\t\tString[] remotePorts = remotePort.split(\",\");\r\n\t\t\tfor(int i = 0; i < remotes.length; i++){\r\n\t\t\t\tString currentRemote = remotes[i];\r\n\t\t\t\tint currentRemotePort = 6262;\r\n\t\t\t\tif(i<remotePorts.length){\r\n\t\t\t\t\tcurrentRemotePort = Integer.valueOf(remotePorts[i]);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n//\t\t\t\tcreatTCPLink(currentRemote, currentRemotePort);\r\n\t\t\t\t\r\n\t\t\t\tSocket socket = null;\r\n\t\t\t\tJSONObject process = new JSONObject();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tsocket = new Socket(currentRemote, currentRemotePort);\r\n\t\t\t\t\tThread sendVedio = new SendVideo(socket, width, height, rate);\r\n\t\t\t\t\tsendVedio.start();\r\n\t\t\t\t\tThread receiveVedio = new ReceiveVideo(socket);\r\n\t\t\t\t\treceiveVedio.start();\r\n\t\t\t\t\tsockets.add(socket);\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "RasPiBoard createRasPiBoard();", "public CreateRemoteClassic<Msg, Ref> infraCreate();", "public Channel buildChannel( TaskListener listener, JDK jdk, FilePath slaveRoot, Launcher launcher, //\n String jvmExtraArgs )\n throws Exception\n {\n\n ArgumentListBuilder args = new ArgumentListBuilder();\n if ( jdk == null )\n {\n args.add( \"java\" );\n }\n else\n {\n args.add( jdk.getHome() + \"/bin/java\" ); // use JDK.getExecutable() here ?\n }\n\n if ( DEBUG_PORT > 0 )\n {\n args.add( \"-Xrunjdwp:transport=dt_socket,server=y,address=\" + DEBUG_PORT );\n }\n\n if (jvmExtraArgs != null)\n {\n args.addTokenized( jvmExtraArgs );\n }\n\n\n String remotingJar = launcher.getChannel().call( new GetRemotingJar() );\n\n args.add( \"-cp\" );\n StringBuilder classPath = new StringBuilder( );\n\n List<Class> classes = Arrays.asList( JenkinsRemoteStarter.class, //\n QpsListenerDisplay.class, //\n RequestQueuedListenerDisplay.class, //\n Recorder.class);\n\n classes.stream().forEach( aClass -> {\n classPath.append( classPathEntry( slaveRoot, //\n aClass, //\n aClass.getName(), //\n listener ) ) //\n .append( launcher.isUnix() ? \":\" : \";\" );\n } );\n\n String cp = classPath.toString() + remotingJar;\n\n for (LoadGeneratorProcessClasspathDecorator decorator : LoadGeneratorProcessClasspathDecorator.all())\n {\n cp = decorator.decorateClasspath( cp, listener, slaveRoot, launcher );\n }\n\n\n args.add( cp );\n\n args.add( \"org.mortbay.jetty.load.generator.starter.JenkinsRemoteStarter\" );\n\n final Acceptor acceptor = launcher.getChannel().call( new SocketHandler() );\n\n InetAddress host = InetAddress.getLocalHost();\n String hostName = null;// host.getHostName();\n\n final String socket =\n hostName != null ? hostName + \":\" + acceptor.getPort() : String.valueOf( acceptor.getPort() );\n listener.getLogger().println( \"Established TCP socket on \" + socket );\n\n args.add( socket );\n\n final Proc proc = launcher.launch().cmds( args ).stdout( listener ).stderr( listener.getLogger() ).start();\n\n Connection con;\n try\n {\n con = acceptor.accept();\n }\n catch ( SocketTimeoutException e )\n {\n // failed to connect. Is the process dead?\n // if so, the error should have been provided by the launcher already.\n // so abort gracefully without a stack trace.\n if ( !proc.isAlive() )\n {\n throw new AbortException( \"Failed to launch LoadGenerator. Exit code = \" + proc.join() );\n }\n throw e;\n }\n\n Channel ch;\n try\n {\n ch = Channels.forProcess( \"Channel to LoadGenerator \" + Arrays.toString( args.toCommandArray() ), //\n Computer.threadPoolForRemoting, //\n new BufferedInputStream( con.in ), //\n new BufferedOutputStream( con.out ), //\n listener.getLogger(), //\n proc );\n\n\n return ch;\n }\n catch ( IOException e )\n {\n throw e;\n }\n\n }", "@Override\n public void beforeAll(ExtensionContext context) {\n localServer = RSocketFactory.receive()\n .acceptor((setupPayload, rSocket) -> Mono.just(new SimpleResponderImpl(setupPayload, rSocket)))\n .transport(LocalServerTransport.create(\"test\"))\n .start()\n .block();\n }", "public NetworkGame(String team, PrintWriter sender, BufferedReader receiver){\n this(team);\n this.sender = sender;\n this.receiver = receiver;\n }", "NominationDecisionRevisionReceiver() {\n }", "public TargetServerChromattic() {}", "public FileTransfer(int myPort){ //Receiver\n socket = new MySocket(ProtocolStack.getLocalhost().getLogicalID(),myPort);\n socket.bindServer();\n socket.accept();\n step = STEP_WAITING_TO_RECEIVE;\n }", "public CreateRemoteClassic<Msg, Ref> factCreate();", "public void launch(String stage) {\n\t\tnew JFXPanel();\n\t\tresult = new FutureTask(new Callable(){\n \n @Override\n public Object call() throws Exception {\n StagedProduction prod=(StagedProduction)Class.forName(stage).getConstructor().newInstance();\n return (prod.produce());\n }\n \n \n });\n Platform.runLater(result);\n\t}", "public void run() {\n try {\n peerBootstrap = createPeerBootStrap();\n\n peerBootstrap.setOption(\"reuseAddr\", true);\n peerBootstrap.setOption(\"child.keepAlive\", true);\n peerBootstrap.setOption(\"child.tcpNoDelay\", true);\n peerBootstrap.setOption(\"child.sendBufferSize\", Controller.SEND_BUFFER_SIZE);\n\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "void receiveGameCreationMessage(String fromPlayer, String msg) throws RpcException;", "public void askSpawn() throws RemoteException{\n respawnPopUp = new RespawnPopUp();\n respawnPopUp.setSenderRemoteController(senderRemoteController);\n respawnPopUp.setMatch(match);\n\n Platform.runLater(\n ()-> {\n try{\n respawnPopUp.start(new Stage());\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }\n );\n }", "RoverProgram createRoverProgram();", "public Vision() {\n\n visionCam = CameraServer.getInstance().startAutomaticCapture(\"HatchCam\", 0);\n visionCam.setVideoMode(PixelFormat.kMJPEG, 320, 240, 115200);\n \n int retry = 0;\n while(cam == null && retry < 10) {\n try {\n System.out.println(\"Connecting to jevois serial port ...\");\n cam = new SerialPort(115200, SerialPort.Port.kUSB1);\n System.out.println(\"Success!!!\");\n } catch (Exception e) {\n System.out.println(\"We all shook out\");\n e.printStackTrace();\n sleep(500);\n System.out.println(\"Retry\" + Integer.toString(retry));\n retry++;\n }\n }\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "@Override\n public void run() {\n setupRemoteVideo(uid);\n }", "public receiver2() {\n initComponents();\n }", "public CameraControl(SocketAddress remote) throws IOException {\n this.remote = remote;\n Thread thread = new Thread(new Manager(), \"Camera Control Manager Thread\");\n thread.setDaemon(true);\n thread.start();\n }", "protected abstract CreateRemoteClassic<Msg, Ref> make_factCreate();", "public RemotePlayerServer(Player p) {\n this.localPlayer = p;\n }", "public void enter(FieldPlayer player){\n player.getTeam().setReceiver(player);\n \n //this player is also now the controlling player\n player.getTeam().setControllingPlayer(player);\n\n //there are two types of receive behavior. One uses arrive to direct\n //the receiver to the position sent by the passer in its telegram. The\n //other uses the pursuit behavior to pursue the ball. \n //This statement selects between them dependent on the probability\n //ChanceOfUsingArriveTypeReceiveBehavior, whether or not an opposing\n //player is close to the receiving player, and whether or not the receiving\n //player is in the opponents 'hot region' (the third of the pitch closest\n //to the opponent's goal\n double PassThreatRadius = 70.0;\n\n if (( player.isInHotRegion() ||\n RandFloat() < Params.Instance().ChanceOfUsingArriveTypeReceiveBehavior) &&\n !player.getTeam().isOpponentWithinRadius(player.getPos(), PassThreatRadius)){\n player.getSteering().arriveOn();\n }\n else{\n player.getSteering().pursuitOn();\n }\n \n //FIXME: Change animation\n// player.info.setAnim(\"Run\");\n// player.info.setDebugText(\"ReceiveBall\");\n }", "RemoteEvent createRemoteEvent();", "public FlowMonMessage(){}", "public Game(Stage s){\n\t\tmyStage = s;\n\t}", "public LiveRef(ObjID paramObjID, int paramInt, RMIClientSocketFactory paramRMIClientSocketFactory, RMIServerSocketFactory paramRMIServerSocketFactory) {\n/* 103 */ this(paramObjID, TCPEndpoint.getLocalEndpoint(paramInt, paramRMIClientSocketFactory, paramRMIServerSocketFactory), true);\n/* */ }", "public ReceivingMonitoringBean() {\n serviceVessel=new ServiceVessel();\n }", "public RemoteControl() {\n onCommands = new ArrayList<Command>(7); // concrete command.Command registers itself with the invoker\n offCommands = new ArrayList<Command>(7);\n\n Command noCommand = new NoCommand(); //Good programming practice to create dummy objects like this\n for (int i = 0;i < 7;i++) {\n onCommands.add(noCommand);\n }\n\n //Initialize the off command objects\n for (int i = 0;i < 7;i++) {\n offCommands.add(noCommand);\n }\n\n undoCommand = noCommand;\n }", "public void run() {\n\t\ttry {\n if (prot == TransmissionProtocol.UDP) {\n \tgrabber.setOption(\"rtsp_transport\", \"udp\");\n } else if (prot == TransmissionProtocol.TCP) {\n \tgrabber.setOption(\"rtsp_transport\", \"tcp\");\n }\n if (codec == VideoCodec.H264) {\n \tgrabber.setVideoCodec(avcodec.AV_CODEC_ID_H264);\n } else if (codec == VideoCodec.MPEG4) {\n \tgrabber.setVideoCodec(avcodec.AV_CODEC_ID_MPEG4);\n }\n grabber.start();\n AudioFormat audioFormat = new AudioFormat(grabber.getSampleRate(), 16, grabber.getAudioChannels(), true, true);\n\n DataLine.Info info = new DataLine.Info(SourceDataLine.class, audioFormat);\n SourceDataLine soundLine = (SourceDataLine) AudioSystem.getLine(info);\n soundLine.open(audioFormat);\n volume = (FloatControl) soundLine.getControl(FloatControl.Type.MASTER_GAIN);\n soundLine.start();\n\n Java2DFrameConverter converter = new Java2DFrameConverter();\n \n ExecutorService executor = Executors.newSingleThreadExecutor(InterfaceController.ntfInstance);\n view.setImage(null);\n view.setScaleX(1);\n view.setScaleY(1);\n Thread.currentThread().setName(\"FSCV-VPT\");\n isProcessing = true;\n while (!Thread.interrupted()) {\n frame = grabber.grab();\n if (frame == null) {\n break;\n }\n if (frame.image != null) {\n currentFrame = SwingFXUtils.toFXImage(converter.convert(frame), null);\n Platform.runLater(() -> {\n view.setImage(currentFrame);\n });\n } else if (frame.samples != null) {\n channelSamplesShortBuffer = (ShortBuffer) frame.samples[0];\n channelSamplesShortBuffer.rewind();\n\n outBuffer = ByteBuffer.allocate(channelSamplesShortBuffer.capacity() * 2);\n \n for (int i = 0; i < channelSamplesShortBuffer.capacity(); i++) {\n short val = channelSamplesShortBuffer.get(i);\n outBuffer.putShort(val);\n }\n\n /**\n * We need this because soundLine.write ignores\n * interruptions during writing.\n */\n try {\n executor.submit(() -> {\n soundLine.write(outBuffer.array(), 0, outBuffer.capacity());\n outBuffer.clear();\n }).get();\n } catch (InterruptedException interruptedException) {\n Thread.currentThread().interrupt();\n }\n }\n }\n isProcessing = false;\n executor.shutdownNow();\n executor.awaitTermination(10, TimeUnit.SECONDS);\n soundLine.stop();\n grabber.stop();\n grabber.release();\n grabber.close();\n } catch (Exception e) {\n \te.printStackTrace();\n }\n\t}", "ComplicationOverlayWireFormat() {}", "Port createPort();", "Port createPort();", "public ServerTool(JavaPlugin plugin) {\n\t\tthis.plugin = plugin;\n\t\tthis.queue = new ArrayList<String[]>();\n\t\tBukkit.getMessenger().registerOutgoingPluginChannel(this.plugin, \"BungeeCord\");\n\t\tBukkit.getMessenger().registerIncomingPluginChannel(this.plugin, \"BungeeCord\", this);\n\t}", "Drone createDrone();", "@Override\n public void run() {\n mLogView.logI(\"Remote video starting, uid: \" + (uid & 0xFFFFFFFFL));\n setupRemoteVideo(uid, uid == WINDOW_SHARE_UID ? mRemoteShareContainerSplit : mRemoteCameraContainer);\n }", "private void initEngine() {\n // This is our usual steps for joining a channel and starting a call.\n try {\n // Initialize the Agora RtcEngine.\n mRtcEngine = RtcEngine.create(getBaseContext(), getString(R.string.agora_app_id), mRtcEventHandler);\n\n // Set the channel profile to Live Broadcast and role to Broadcaster (in order to be heard by others).\n mRtcEngine.setChannelProfile(Constants.CHANNEL_PROFILE_LIVE_BROADCASTING);\n mRtcEngine.setClientRole(Constants.CLIENT_ROLE_BROADCASTER);\n\n // Enable video capturing and rendering once at the initialization step.\n // Note: audio recording and playing is enabled by default.\n mRtcEngine.enableVideo();\n\n // Disable the local video capturer.\n mRtcEngine.enableLocalVideo(false);\n\n /*\n // This is only needed if capturing local camera, which we currently are not.\n // Please go to this page for detailed explanation\n // https://docs.agora.io/en/Video/API%20Reference/java/classio_1_1agora_1_1rtc_1_1_rtc_engine.html#af5f4de754e2c1f493096641c5c5c1d8f\n mRtcEngine.setVideoEncoderConfiguration(new VideoEncoderConfiguration(\n VideoEncoderConfiguration.VD_640x360,\n VideoEncoderConfiguration.FRAME_RATE.FRAME_RATE_FPS_15,\n VideoEncoderConfiguration.STANDARD_BITRATE,\n VideoEncoderConfiguration.ORIENTATION_MODE.ORIENTATION_MODE_FIXED_PORTRAIT));\n // This is used to set a local preview.\n // The steps setting local and remote view are very similar.\n // But note that if the local user do not have a uid or do\n // not care what the uid is, he can set his uid as ZERO.\n // The Agora server will assign one and return the uid via the event\n // handler callback function (onJoinChannelSuccess) after\n // joining the channel successfully.\n mLocalView = RtcEngine.CreateRendererView(getBaseContext());\n mLocalView.setZOrderMediaOverlay(true);\n mRemoteCameraContainer.addView(mLocalView);\n mRtcEngine.setupLocalVideo(new VideoCanvas(mLocalView, VideoCanvas.RENDER_MODE_HIDDEN, 0));\n */\n } catch (Exception e) {\n Log.e(TAG, Log.getStackTraceString(e));\n throw new RuntimeException(\"FATAL ERROR! Check rtc sdk init\\n\" + Log.getStackTraceString(e));\n }\n }", "private void sendGroupInit() {\n \t\ttry {\n \t\t\tmyEndpt=new Endpt(serverName+\"@\"+vsAddress.toString());\n \n \t\t\tEndpt[] view=null;\n \t\t\tInetSocketAddress[] addrs=null;\n \n \t\t\taddrs=new InetSocketAddress[1];\n \t\t\taddrs[0]=vsAddress;\n \t\t\tview=new Endpt[1];\n \t\t\tview[0]=myEndpt;\n \n \t\t\tGroup myGroup = new Group(\"DEFAULT_SERVERS\");\n \t\t\tvs = new ViewState(\"1\", myGroup, new ViewID(0,view[0]), new ViewID[0], view, addrs);\n \n \t\t\tGroupInit gi =\n \t\t\t\tnew GroupInit(vs,myEndpt,null,gossipServers,vsChannel,Direction.DOWN,this);\n \t\t\tgi.go();\n \t\t} catch (AppiaEventException ex) {\n \t\t\tSystem.err.println(\"EventException while launching GroupInit\");\n \t\t\tex.printStackTrace();\n \t\t} catch (NullPointerException ex) {\n \t\t\tSystem.err.println(\"EventException while launching GroupInit\");\n \t\t\tex.printStackTrace();\n \t\t} catch (AppiaGroupException ex) {\n \t\t\tSystem.err.println(\"EventException while launching GroupInit\");\n \t\t\tex.printStackTrace();\n \t\t} \n \t}", "private static void createSlave(Boolean cycle){\n\t\tISlaveNode slaveNode = new CSlaveNode(INode.ID_SLAVE);\n\t\t/* Creo Servidor */\n\t\tInteger port = slaveNode.getNodeConfiguration().getPort();\n\t\tCServer server = new CServer(port,slaveNode);\n\t\tserver.listen(cycle);\n\t}", "public static void main(String[] args) {\n\t\tSimpleRemoteCtrl ctrl = new SimpleRemoteCtrl();\n\t\t\n\t\tLight l = new Light(\"\");\n\t\tLightOnCommand lightOn = new LightOnCommand(l);\n\t\t\n\t\tctrl.setSlot(lightOn);\n\t\tctrl.pressButton();\n\t\t\n\t\tctrl.setSlot(new GarageDoorOpenCommand(new GarageDoor()));\n\t\tctrl.pressButton();\n\t}", "public JSimProcess getReceiver();", "@Override\r\n //TODO add button for location control \r\n public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState); \r\n \r\n //TODO still hav action VIEW instead of get_rtsp\r\n Log.i(TAG, getIntent().getAction());\r\n if (this.getIntent().getAction().equalsIgnoreCase(ACTION_GET_RTSP) ){\r\n \tLog.i(TAG, \"hav sku : d : ex \" +this.getIntent().getData() +\" \" +this.getIntent().getStringExtra(\"sku\"));\r\n }\r\n //TODO start the player 'audioTrack' to accept bytesBuffr on predicted codec\r\n \r\n RTSPDialog _dial = new RTSPDialog();\r\n\t\tRTSPClient client = new RTSPClient();\r\n\t\tclient.setTransport(new PlainTCP());\r\n\t\tclient.setClientListener(_dial);\r\n\t\ttry {\r\n\t\t\tclient.describe(new URI(_dial.TARGET_URI));\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (URISyntaxException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t_dial.resourceList = Collections.synchronizedList(new LinkedList<String>());\r\n\t\t// port is advertised in reply from setup?? why demand 2000\r\n\t\t//port = 2000;\r\n\t\t_dial.port = 49060;\r\n \r\n\r\n \r\n }", "public Simulator receive(String status) {\n // this is normally used by the PC client to implement a View of the \n // Robot's mind.\n return this;\n }", "public void init(){\n\t\tmultiplexingClientServer = new MultiplexingClientServer(selectorCreator);\n\t}", "public static void main(String[] args) {\n try {\n //RocksDBUtils.getInstance().cleanChainStateBucket();\n // RocksDBUtils.getInstance().cleanBlockBucket();\n //RocksDBUtils.getInstance().cleanTxBucket();\n //RocksDBUtils.getInstance().cleanIpBucket();\n\n Server serverThread = new Server();\n CliThread cliThread = new CliThread();\n //String[] argss = {\"createwallet\"};\n //1DRDoamPwRDQa1775dVig7X8BitJm1273D +10\n //1Gsnure8ovCy3SiK6Fth44kDcwrEHjtFuj 10\n //18b76o68gGKg8ndXHDTDWdbG1DkGzMwfvZ 10 -10\n\n //String[] argss = {\"createblockchain\", \"-address\", \"18b76o68gGKg8ndXHDTDWdbG1DkGzMwfvZ\"};\n //0000fcc80177312ea7cd9b3db9497af6cae1d69a746332571f14d3c687eee1d0\n\n //String[] argss = {\"mineblock\", \"-address\" ,\"1Gsnure8ovCy3SiK6Fth44kDcwrEHjtFuj\"};\n\n\n //String[] argss = {\"printaddresses\"};\n //String[] argss = {\"getbalance\", \"-address\", \"18b76o68gGKg8ndXHDTDWdbG1DkGzMwfvZ\"};\n\n String[] argss = {\"send\", \"-from\", \"1Gsnure8ovCy3SiK6Fth44kDcwrEHjtFuj\", \"-to\", \"1DRDoamPwRDQa1775dVig7X8BitJm1273D\", \"-amount\", \"10\"};\n //String[] argss ={\"printchain\"};\n serverThread.start();\n cliThread.start(argss);\n\n\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n\n\n\n }", "public Launcher() {\n //instantiate motors and djustment value using robot map constants\n m_masterMotor = new TalonSRX(RobotMap.MASTER_LAUNCHER_ID);\n m_closeSlaveMotor = new VictorSPX(RobotMap.CLOSE_LAUNCHER_SLAVE_ID);\n m_farSlaveMotor1 = new VictorSPX(RobotMap.FAR_LAUNCHER_SLAVE1_ID);\n m_farSlaveMotor2 = new VictorSPX(RobotMap.FAR_LAUNCHER_SLAVE2_ID);\n\n //Sets the far motors to be inverted so that they don't work against the close ones\n m_farSlaveMotor1.setInverted(RobotMap.LAUNCHER_FAR_SLAVE1_INVERTED);\n m_farSlaveMotor2.setInverted(RobotMap.LAUNCHER_FAR_SLAVE2_INVERTED);\n\n //Instantiates the encoder as the encoder plugged into the master\n m_encoder = new SensorCollection(m_masterMotor);\n\n //run the config methods to set up velocity control\n configVelocityControl();\n }", "@Override\r\n \tpublic void initialize() {\n \t\tThreadRenamingRunnable.setThreadNameDeterminer(ThreadNameDeterminer.CURRENT);\r\n \r\n \t\tInetSocketAddress address;\r\n \r\n \t\tif (m_host == null) {\r\n \t\t\taddress = new InetSocketAddress(m_port);\r\n \t\t} else {\r\n \t\t\taddress = new InetSocketAddress(m_host, m_port);\r\n \t\t}\r\n \r\n \t\tm_queue = new LinkedBlockingQueue<ChannelBuffer>(m_queueSize);\r\n \r\n \t\tExecutorService bossExecutor = Threads.forPool().getCachedThreadPool(\"Cat-TcpSocketReceiver-Boss-\" + address);\r\n \t\tExecutorService workerExecutor = Threads.forPool().getCachedThreadPool(\"Cat-TcpSocketReceiver-Worker\");\r\n \t\tChannelFactory factory = new NioServerSocketChannelFactory(bossExecutor, workerExecutor);\r\n \t\tServerBootstrap bootstrap = new ServerBootstrap(factory);\r\n \r\n \t\tbootstrap.setPipelineFactory(new ChannelPipelineFactory() {\r\n \t\t\tpublic ChannelPipeline getPipeline() {\r\n \t\t\t\treturn Channels.pipeline(new MyDecoder(), new MyHandler());\r\n \t\t\t}\r\n \t\t});\r\n \r\n \t\tbootstrap.setOption(\"child.tcpNoDelay\", true);\r\n \t\tbootstrap.setOption(\"child.keepAlive\", true);\r\n \t\tbootstrap.bind(address);\r\n \r\n \t\tm_logger.info(\"CAT server started at \" + address);\r\n \t\tm_factory = factory;\r\n \t}", "private void initiateServerInstance(Socket newSocket){\n KVCommunicationModule com = createCommunicationModule(newSocket);\n KVServerInstance instance = createServerInstance(com, master);\n aliveInstances.add(instance);\n Thread aliveinstancethread = new Thread(instance);\n aliveinstancethread.start();\n aliveinstancethreads.add(aliveinstancethread);\n }", "public ProtoVehicle() {\n super();\n }", "public void startToRecivePlayers() {\n while (numberOfPlayers == 0) {\n controller.getSpf().getLabel1().setText(\"Ingresa el numero de jugadores\");\n }\n try {\n ss = new ServerSocket(8888);\n Thread.sleep(100);\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n controller.getSpf().getLabel1().setText(\"Recibido\");\n run();\n }", "Communicator createCommunicator();", "public RSVP(Connection connection, Header type, String keySource, String keyTarget) {\r\n\t\tsuper(type,keySource,keyTarget,Packet.Priority.HIGH,0,(connection.size() + 1));\r\n\t\tthis.setFlowLabel(connection.getID());\r\n\t\tobject = connection;\t\t\r\n\t}", "public Actor(String actorDescription) {\n actorParams = actorDescription.split(\":\");\n id = actorParams[0];\n x = Double.parseDouble(actorParams[1]);\n y = Double.parseDouble(actorParams[2]);\n SimStatus.registerNewActor(id, x, y, label);\n randomGenerator = new Random();\n /** sets the actor lifetime to 10 minutes */\n lifetime_min = 10; \n lifetime = (long) TimeUnit.MINUTES.toMillis(lifetime_min); // converter minutos em milisegundos\n \n /** Initializes the Communication Stack */\n csParams = new String[]{actorParams[3], actorParams[4],actorParams[5], \n actorParams[6], actorParams[7], actorParams[8],actorParams[9],actorParams[10]};\n \n \n }", "private void run() throws IOException, InterruptedException {\n\t\t// Make a socket for connection to the RoverControlProcessor\n\t\tSocket socket = null;\n\t\ttry {\n\t\t\tsocket = new Socket(SERVER_ADDRESS, PORT_ADDRESS);\n\n\t\t\t// sets up the connections for sending and receiving text from the RCP\n\t\t\treceiveFrom_RCP = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t\tsendTo_RCP = new PrintWriter(socket.getOutputStream(), true);\n\t\t\t\n\t\t\t// Need to allow time for the connection to the server to be established\n\t\t\tsleepTime = 300;\n\t\t\t\n\t\t\t/*\n\t\t\t * After the rover has requested a connection from the RCP\n\t\t\t * this loop waits for a response. The first thing the RCP requests is the rover's name\n\t\t\t * once that has been provided, the connection has been established and the program continues \n\t\t\t */\n\t\t\twhile (true) {\n\t\t\t\tString line = receiveFrom_RCP.readLine();\n\t\t\t\tif (line.startsWith(\"SUBMITNAME\")) {\n\t\t\t\t\t//This sets the name of this instance of a swarmBot for identifying the thread to the server\n\t\t\t\t\tsendTo_RCP.println(rovername); \n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\n\t\n\t\t\t\n\t\t\t/**\n\t\t\t * ### Setting up variables to be used in the Rover control loop ###\n\t\t\t * add more as needed\n\t\t\t */\n\t\t\tint stepCount = 0;\t\n\t\t\tString line = \"\";\t\n\t\t\tboolean goingSouth = false;\n\t\t\tboolean stuck = false; // just means it did not change locations between requests,\n\t\t\t\t\t\t\t\t\t// could be velocity limit or obstruction etc.\n\t\t\tboolean blocked = false;\n\t\n\t\t\t// might or might not have a use for this\n\t\t\tString[] cardinals = new String[4];\n\t\t\tcardinals[0] = \"N\";\n\t\t\tcardinals[1] = \"E\";\n\t\t\tcardinals[2] = \"S\";\n\t\t\tcardinals[3] = \"W\";\t\n\t\t\tString currentDir = cardinals[0];\t\t\n\t\t\t\n\n\t\t\t/**\n\t\t\t * ### Retrieve static values from RoverControlProcessor (RCP) ###\n\t\t\t * These are called from outside the main Rover Process Loop\n\t\t\t * because they only need to be called once\n\t\t\t */\t\t\n\t\t\t\n\t\t\t// **** get equipment listing ****\t\t\t\n\t\t\tequipment = getEquipment();\n\t\t\tSystem.out.println(rovername + \" equipment list results \" + equipment + \"\\n\");\n\t\t\t\n\t\t\t\n\t\t\t// **** Request START_LOC Location from SwarmServer **** this might be dropped as it should be (0, 0)\n\t\t\tstartLocation = getStartLocation();\n\t\t\tSystem.out.println(rovername + \" START_LOC \" + startLocation);\n\t\t\t\n\t\t\t\n\t\t\t// **** Request TARGET_LOC Location from SwarmServer ****\n\t\t\ttargetLocation = getTargetLocation();\n\t\t\tSystem.out.println(rovername + \" TARGET_LOC \" + targetLocation);\n\t\t\t\n\t\t\t\n\t // **** Define the communication parameters and open a connection to the \n\t\t\t// SwarmCommunicationServer restful service through the Communication.java class interface\n\t String url = \"http://localhost:3000/api\"; // <---------------------- this will have to be changed if multiple servers are needed\n\t String corp_secret = \"gz5YhL70a2\"; // not currently used - for future implementation\n\t\n\t Communication com = new Communication(url, rovername, corp_secret);\n\t\n\n\t\t\t/**\n\t\t\t * #### Rover controller process loop ####\n\t\t\t * This is where all of the rover behavior code will go\n\t\t\t * \n\t\t\t */\n\t\t\twhile (true) { //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\t\t\n\t\t\t\t// **** Request Rover Location from RCP ****\n\t\t\t\tcurrentLoc = getCurrentLocation();\n\t\t\t\tSystem.out.println(rovername + \" currentLoc at start: \" + currentLoc);\n\t\t\t\t\n\t\t\t\t// after getting location set previous equal current to be able\n\t\t\t\t// to check for stuckness and blocked later\n\t\t\t\tpreviousLoc = currentLoc;\t\t\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t// ***** do a SCAN *****\n\t\t\t\t// gets the scanMap from the server based on the Rover current location\n\t\t\t\tscanMap = doScan(); \n\t\t\t\t// prints the scanMap to the Console output for debug purposes\n\t\t\t\tscanMap.debugPrintMap();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// ***** after doing a SCAN post scan data to the communication server ****\n\t\t\t\t// This sends map data to the Communications server which stores it as a global map.\n\t // This allows other rover's to access a history of the terrain this rover has moved over.\n\n\t System.out.println(\"do com.postScanMapTiles(currentLoc, scanMapTiles)\");\n\t System.out.println(\"post message: \" + com.postScanMapTiles(currentLoc, scanMap.getScanMap()));\n\t System.out.println(\"done com.postScanMapTiles(currentLoc, scanMapTiles)\");\n\n\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t// ***** get TIMER time remaining *****\n\t\t\t\ttimeRemaining = getTimeRemaining();\n\t\t\t\t\n\t\n\t\t\t\t\n\t\t\t\t// ***** MOVING *****\n\t\t\t\t// try moving east 5 block if blocked\n\t\t\t\tif (blocked) {\n\t\t\t\t\tif(stepCount > 0){\n\t\t\t\t\t\tmoveEast();\n\t\t\t\t\t\tstepCount -= 1;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tblocked = false;\n\t\t\t\t\t\t//reverses direction after being blocked and side stepping\n\t\t\t\t\t\tgoingSouth = !goingSouth;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\n\t\t\t\t\t// pull the MapTile array out of the ScanMap object\n\t\t\t\t\tMapTile[][] scanMapTiles = scanMap.getScanMap();\n\t\t\t\t\tint centerIndex = (scanMap.getEdgeSize() - 1)/2;\n\t\t\t\t\t// tile S = y + 1; N = y - 1; E = x + 1; W = x - 1\n\t\n\t\t\t\t\tif (goingSouth) {\n\t\t\t\t\t\t// check scanMap to see if path is blocked to the south\n\t\t\t\t\t\t// (scanMap may be old data by now)\n\t\t\t\t\t\tif (scanMapTiles[centerIndex][centerIndex +1].getHasRover() \n\t\t\t\t\t\t\t\t|| scanMapTiles[centerIndex][centerIndex +1].getTerrain() == Terrain.ROCK\n\t\t\t\t\t\t\t\t|| scanMapTiles[centerIndex][centerIndex +1].getTerrain() == Terrain.SAND\n\t\t\t\t\t\t\t\t|| scanMapTiles[centerIndex][centerIndex +1].getTerrain() == Terrain.NONE) {\n\t\t\t\t\t\t\tblocked = true;\n\t\t\t\t\t\t\tstepCount = 5; //side stepping\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// request to server to move\n\t\t\t\t\t\t\tmoveSouth();\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// check scanMap to see if path is blocked to the north\n\t\t\t\t\t\t// (scanMap may be old data by now)\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (scanMapTiles[centerIndex][centerIndex -1].getHasRover() \n\t\t\t\t\t\t\t\t|| scanMapTiles[centerIndex][centerIndex -1].getTerrain() == Terrain.ROCK\n\t\t\t\t\t\t\t\t|| scanMapTiles[centerIndex][centerIndex -1].getTerrain() == Terrain.SAND\n\t\t\t\t\t\t\t\t|| scanMapTiles[centerIndex][centerIndex -1].getTerrain() == Terrain.NONE) {\n\t\t\t\t\t\t\tblocked = true;\n\t\t\t\t\t\t\tstepCount = 5; //side stepping\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// request to server to move\n\t\t\t\t\t\t\tmoveNorth();\t\t\t\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\t// another call for current location\n\t\t\t\tcurrentLoc = getCurrentLocation();\n\n\t\n\t\t\t\t// test for stuckness\n\t\t\t\tstuck = currentLoc.equals(previousLoc);\t\n\t\t\t\t\n\t\t\t\t// this is the Rovers HeartBeat, it regulates how fast the Rover cycles through the control loop\n\t\t\t\tThread.sleep(sleepTime);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"ROVER_00 ------------ end process control loop --------------\"); \n\t\t\t} // ***** END of Rover control While(true) loop *****\n\t\t\n\t\t\t\n\t\t\t\n\t\t// This catch block hopefully closes the open socket connection to the server\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t if (socket != null) {\n\t try {\n\t \tsocket.close();\n\t } catch (IOException e) {\n\t \tSystem.out.println(\"ROVER_00 problem closing socket\");\n\t }\n\t }\n\t }\n\n\t}", "public static byte[] stageCPacket(ServerValuesHolder values) {\n\t\tbyte[] payload = new byte[13];\n\t\tSystem.arraycopy(values.getNum2_byte(), 0, payload, 0, 4);\n\t\tSystem.arraycopy(values.getLen2_byte(), 0, payload, 4, 4);\n\t\tSystem.arraycopy(values.getSecretC_byte(), 0, payload, 8, 4);\n\t\tpayload[12] = (byte) values.getC();\n\t\t\n\t\treturn createPacket(values.getSecretB(), 2, values.getStudentID(), payload);\n\t}", "public static byte[] stageAPacket(ServerValuesHolder values) {\t\t\n\t\tbyte[] payload = new byte[ServerValuesHolder.HEADER_LENGTH + 4]; \n\t\tSystem.arraycopy(values.getNum_byte(), 0, payload, 0, 4);\n\t\tSystem.arraycopy(values.getLen_byte(), 0, payload, 4, 4);\n\t\tSystem.arraycopy(values.getUdp_port_byte(), 0, payload, 8, 4); // udp_port\n\t\tSystem.arraycopy(values.getSecretA_byte(), 0, payload, 12, 4); // secretA\n\t\t\n\t\treturn createPacket(ServerValuesHolder.secretInit, 2, values.getStudentID(), payload);\n\t}", "public static void main(String[] args) {\n Servidor s = new Servidor();\n try{\n VoteSystem channel = (VoteSystem) UnicastRemoteObject.exportObject(s, 0);\n Registry register = LocateRegistry.createRegistry(1099);\n register.bind(\"VoteSystem\", channel);\n ServerGUI sgui= new ServerGUI();\n ServerThread st = new ServerThread(sgui);\n st.setDaemon(true);\n st.start();\n sgui.setVisible(true);\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }", "@Override\n protected void createRemoteActions(RemoteHandler remoteHandler) {\n super.createRemoteActions(remoteHandler);\n\n remoteHandler.addRemoteAction(Text.NEXT_QUESTION, new RemoteAction(this::nextQuestion));\n remoteHandler.addRemoteAction(Text.RIGHT, new RemoteAction(this::rightAnswer));\n remoteHandler.addRemoteAction(Text.WRONG, new RemoteAction(this::wrongAnswer));\n remoteHandler.addRemoteAction(Text.SHOW_OR_HIDE, new RemoteAction(() -> getProgramController().showHideAction()));\n }", "EndPoint createEndPoint();", "public SurfaceView createRemoteUI(Context context, final int uid) {\n SurfaceView surfaceV = RtcEngine.CreateRendererView(context);\n mRtcEngine.setupRemoteVideo(new VideoCanvas(surfaceV, VideoCanvas.RENDER_MODE_HIDDEN, uid));\n surfaceV.layout(0, 0, 20, 10);\n return surfaceV;\n }", "private UDPSender(final URI serverURI) {\n\t\tsuper(serverURI);\n\t\t\n\t\t\t\t\n\t\t//InternalLoggerFactory.setDefaultFactory(new Slf4JLoggerFactory());\n\t\tchannelStateListener.addChannelStateAware(this);\n\t\tloggingHandler = new LoggingHandler(InternalLogLevel.ERROR, true);\t\t\n\t\tchannelFactory = new NioDatagramChannelFactory(workerPool);\n\t\tbstrap = new ConnectionlessBootstrap(channelFactory);\n\t\tbstrap.setPipelineFactory(this);\n\t\tbstrap.setOption(\"broadcast\", true);\n\t\tbstrap.setOption(\"localAddress\", new InetSocketAddress(0));\n\t\tbstrap.setOption(\"remoteAddress\", new InetSocketAddress(serverURI.getHost(), serverURI.getPort()));\n\t\tbstrap.setOption(\"receiveBufferSizePredictorFactory\", new FixedReceiveBufferSizePredictorFactory(2048));\n\t\t\n\t\tlisteningSocketAddress = new InetSocketAddress(\"0.0.0.0\", 0);\n\t\t//listeningSocketAddress = new InetSocketAddress(\"127.0.0.1\", 0);\n\t\t\t\n\t\t//senderChannel = (NioDatagramChannel) channelFactory.newChannel(getPipeline());\n\t\tsenderChannel = bstrap.bind();\n\t\tcloseGroup.add(senderChannel);\n\t\tlog(\"Listening on [\" + senderChannel.getLocalAddress()+ \"]\");\t\t\t\t\t\n\t\t\n\t\t\n//\t\tsenderChannel.bind().addListener(new ChannelFutureListener() {\n//\t\t\tpublic void operationComplete(ChannelFuture f) throws Exception {\n//\t\t\t\tif(f.isSuccess()) {\n//\t\t\t\t\tlog(\"Listening on [\" + f.getChannel().getLocalAddress()+ \"]\");\t\t\t\t\t\n//\t\t\t\t} else {\n//\t\t\t\t\tlog(\"Failed to start listener. Stack trace follows\");\n//\t\t\t\t\tf.getCause().printStackTrace(System.err);\n//\t\t\t\t\t\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t}\n//\t\t});\n\t\tsenderChannel.getConfig().setBufferFactory(new DirectChannelBufferFactory());\n//\t\tsenderChannel.connect(socketAddress).addListener(new ChannelFutureListener() {\n//\t\t\t@Override\n//\t\t\tpublic void operationComplete(ChannelFuture future) throws Exception {\n//\t\t\t\tconnected.set(true);\t\n//\t\t\t\tsentryState.setState(SentryState.CALLBACK);\n//\t\t\t}\n//\t\t});\n\t\t\n\t\t\n\t\t//socketAddress = new InetSocketAddress(\"239.192.74.66\", 25826);\n\t\tsendHello();\n\t}", "public static void main(String[] args) {\n System.out.println(\"Begin Server...\");\n\n\n\n try {\n Remote r = Naming.lookup(\"UniversalRegistry\");\n IUniversalRegistry iur = (IUniversalRegistry)r;\n\n //on ajoute des voitures dans le registre universel\n Voiture v1 = new Voiture(1);\n iur.bind(\"v1\",v1);\n Voiture v2 = new Voiture(2);\n iur.bind(\"v2\",v2);\n\n\n //On ajoute des voitures electrique dans le registre universel\n VoitureElectrique ve = new VoitureElectrique(4,0);\n iur.bind(\"ve\",ve);\n VoitureElectrique ve1 = new VoitureElectrique(4,1);\n iur.bind(\"ve1\",ve1);\n\n VoitureElectrique ve3 = new VoitureElectrique(4,1);\n iur.bind(\"ve3\",ve3);\n\n ClassTest classTest = new ClassTest();\n iur.bind(\"cl\",classTest);\n\n\n }\n\n catch(Exception e){\n e.printStackTrace();\n }\n\n\n\n }", "private void createInstance(RemoteService remote, Path tmp, String groupName, ProductManifest product, String instanceName,\n String... nodeNames) {\n InstanceConfiguration instanceConfig = TestFactory.createInstanceConfig(instanceName, product);\n try (BHive hive = new BHive(tmp.resolve(\"hive\").toUri(), null, new ActivityReporter.Null())) {\n PushOperation pushOperation = new PushOperation();\n Builder instanceManifest = new InstanceManifest.Builder().setInstanceConfiguration(instanceConfig);\n\n for (String nodeName : nodeNames) {\n InstanceNodeConfiguration nodeConfig = new InstanceNodeConfiguration();\n nodeConfig.id = UuidHelper.randomId();\n nodeConfig.applications.add(TestFactory.createAppConfig(product));\n\n Key instanceNodeKey = new InstanceNodeManifest.Builder().setInstanceNodeConfiguration(nodeConfig)\n .setMinionName(nodeName).insert(hive);\n instanceManifest.addInstanceNodeManifest(nodeName, instanceNodeKey);\n pushOperation.addManifest(instanceNodeKey);\n }\n\n Key instanceKey = instanceManifest.insert(hive);\n pushOperation.addManifest(instanceKey);\n hive.execute(pushOperation.setHiveName(groupName).setRemote(remote));\n }\n }", "public TCPMessengerServer() {\n initComponents();\n customInitComponents();\n listenForClient(); \n }", "private void createNetworkScreen() {\n\t\tnetworkSelectGroup = new VerticalGroup();\n\t\tif(MULTIPLAYER)\n\t\t\tnetworkSelectGroup.setVisible(true);\n\t\telse\n\t\t\tnetworkSelectGroup.setVisible(false);\n\t\t\n\t\tnetworkSelectGroup.setSize(WIDTH/2, HEIGHT/2);\n\t\tnetworkSelectGroup.setPosition(WIDTH/2 - networkSelectGroup.getWidth()/2, HEIGHT/2 - networkSelectGroup.getHeight()/2);\n\t\t\n\t\tTextButtonStyle smallStyle = new TextButtonStyle();\n\t\tsmallStyle.font = fontMedium;\n\t\t\n\t\tTextButton beServer = new TextButton(\"Create server\", smallStyle);\n\t\tbeServer.addListener(new InputListener(){\n\t\t\tpublic boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {\n\t\t\t\tif(networkManager != null)\n\t\t\t\t\tnetworkManager.makeMeServer();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\tpublic void touchUp(InputEvent event, float x, float y, int pointer, int button) {\n\t\t\t\tnetworkSelectGroup.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tTextButton beClient = new TextButton(\"Join server\", smallStyle);\n\t\tbeClient.addListener(new InputListener(){\n\t\t\tpublic boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {\n\t\t\t\tif(networkManager != null)\n\t\t\t\t\tnetworkManager.makeMeClient();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\tpublic void touchUp(InputEvent event, float x, float y, int pointer, int button) {\n\t\t\t\tnetworkSelectGroup.setVisible(false);\n\t\t\t\tserverSelectGroup.setVisible(true);\n\t\t\t}\n\t\t});\n\t\t\n\t\tnetworkSelectGroup.addActor(beServer);\n\t\t\n\t\tnetworkSelectGroup.addActor(beClient);\n\n\t\t\n\t\tsmallStyle.font = fontSmall;\n\t\tTextButton notes = new TextButton(\"Connect both device to same\\n wifi network or create a hotspot\\n in one device and request another\\n one to join.\\n\\nUnder Construction\", smallStyle);\n\t\t//notes.setPosition(server, y, alignment);\n\t\tnetworkSelectGroup.addActor(notes);\n\n\n\t\t\n\t\tstage.addActor(networkSelectGroup);\n\t}", "public NetworkGame(String team, ArrayList<String> fens, PrintWriter sender, BufferedReader receiver){\n this(team, fens);\n this.sender = sender;\n this.receiver = receiver;\n }", "public static void main(String[] args) {\n if(args.length == 12 && args[0].equals(\"-p\") && args[2].equals(\"-s\") &&\n args[4].equals(\"-a\") && args[6].equals(\"-f\") && args[8].equals(\"-m\")\n && args[10].equals(\"-c\")) {\n \n int port = Integer.parseInt(args[1]);\n InetAddress remoteAddress = null;\n try {\n remoteAddress = InetAddress.getByName(args[3]);\n } catch (UnknownHostException e) {\n e.printStackTrace();\n }\n int remotePort = Integer.parseInt(args[5]);\n String file = args[7];\n int mtu = Integer.parseInt(args[9]);\n int sws = Integer.parseInt(args[11]);\n sender(port, remoteAddress, remotePort, file, mtu, sws);\n }\n // -p <port> -m <mtu> -c <sws> -f <file name>\n else if(args.length == 8 && args[0].equals(\"-p\") && args[2].equals(\"-m\") &&\n args[4].equals(\"-c\") && args[6].equals(\"-f\")) {\n int port = Integer.parseInt(args[1]);\n int mtu = Integer.parseInt(args[3]);\n int sws = Integer.parseInt(args[5]);\n String file = args[7];\n receiver(port, mtu, sws, file);\n }\n // error\n else {\n System.out.println(\"usage:\\n\"\n + \"java TCPend -p <port> -s <remote IP> -a <remote port> -f <file name> -m <mtu> -c <sws>\\n\"\n + \"java TCPend -p <port> -m <mtu> -c <sws> -f <file name>\");\n System.exit(1);\n }\n }", "public Roulette() throws RemoteException\r\n {\r\n mPlayers = new ArrayList<Player>(); \r\n //----------------startGame(); \r\n }", "private ReceiveEthernetStrategy() {\n }", "public RentRPCServer() {\n\t\tsuper(null, null);\n\t\t// mocking purpose\n\t}", "@Override\n public void init(String[] args) {\n super.init(args);\n\t\tbridge.connect(\"ws://localhost:9090\", true);\n\t\tlogger.info(\"Environment started, connection with ROS established.\");\t\n\t\t\n\t\t/* Subscribe for calculating the distance between the Gantry and the human */\n\t\tbridge.subscribe(SubscriptionRequestMsg.generate(\"/ariac_human/state\") \n\t\t\t\t.setType(\"ariac_msgs/msg/HumanState\") \n\t\t\t\t.setThrottleRate(1)\n\t\t\t\t.setQueueLength(1),\n\t\t\tnew RosListenDelegate() {\n\t\t\t\tpublic void receive(JsonNode data, String stringRep) {\n\t\t\t\t\tMessageUnpacker<HumanState> unpacker = new MessageUnpacker<HumanState>(HumanState.class);\n\t\t\t\t\tHumanState msg = unpacker.unpackRosMessage(data);\n\n\t\t\t\t\tgpX = msg.robot_position.x; hpX = msg.human_position.x;\n\t\t\t\t\tgpY = msg.robot_position.y; hpY = msg.human_position.y;\n\t\t\t\t\tgpZ = msg.robot_position.z;\n\t\t\t\t\t\n\t\t\t\t\tdouble distance_robotHuman = calculateDistanceRH(msg);\n\t\t\t\t\tdouble safe_distanceRH = calSafeDistanceRH(msg);\n\n\t\t\t\t\t//Check if they are approximating (getting close from each other)\n\t\t\t\t\tif(distance_robotHuman < previousDistance)\n\t\t\t\t\t\tisAproximating = true;\n\t\t\t\t\telse \n\t\t\t\t\t\tisAproximating = false;\n\t\t\t\t\tpreviousDistance = distance_robotHuman;\n\n\t\t\t\t\tlong timeNow = System.currentTimeMillis(); //Time check\n\n\t\t\t\t\tif ((distance_robotHuman < safe_distanceRH*1.75) && \n\t\t\t\t\t\t(timeNow-lastHumanState_MsgT > 20000) && (isAproximating == true)){\n\t\t\t\t\t\t//clearPercepts(\"human\");\n\t\t\t\t\t\tlastHumanState_MsgT=timeNow;\n\t\t\t\t\t\tlogger.info(\"SAFE[\"+ safe_distanceRH +\"] I see the Gantry robot in \" + distance_robotHuman +\" meters: gantry_detected\");\n\t\t\t\t\t\tLiteral gDetectedLit = new LiteralImpl(\"gantry_detected\"); \n\t\t\t\t\t\tgDetectedLit.addTerm(new NumberTermImpl(ctrDt++)); \n\t\t\t\t\t\tif(simulationStarted==true)\n\t\t\t\t\t\t\taddPercept(\"human\",gDetectedLit); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t); // END bridge.subscribe(...\"/ariac_human/state\") \n\t\n\t\t/* Subscriber for getting the information that the Gantry has been disabled */\n\t\tbridge.subscribe(SubscriptionRequestMsg.generate(\"/ariac_human/unsafe_distance\") \n\t\t\t\t.setType(\"std_msgs/Bool\")\n\t\t\t\t.setThrottleRate(1)\n\t\t\t\t.setQueueLength(1),\n\t\t\tnew RosListenDelegate() {\n\t\t\t\tpublic void receive(JsonNode data, String stringRep) {\n\t\t\t\t\tlong timeNow = System.currentTimeMillis(); //Time check\n\n\t\t\t\t\tMessageUnpacker<PrimitiveMsg<Boolean>> unpacker = new MessageUnpacker<PrimitiveMsg<Boolean>>(PrimitiveMsg.class);\n\t\t\t\t\tPrimitiveMsg<Boolean> msg = unpacker.unpackRosMessage(data);\n\t\t\t\t\tif((simulationStarted==true) && (timeNow-lastUnsafeD_MsgT > 10000)){ \n\t\t\t\t\t\t//clearPercepts(\"human\");\n\t\t\t\t\t\tlastUnsafeD_MsgT = timeNow;\n\n\t\t\t\t\t\tif(msg.data){ \n\t\t\t\t\t\t\tlogger.info(\"Gantry has been disabled!\");\n\t\t\t\t\t\t\tLiteral gUnsafeLit = new LiteralImpl(\"gantry_disabled\"); \n\t\t\t\t\t\t\tgUnsafeLit.addTerm(new NumberTermImpl(ctrUnsf++)); \n\t\t\t\t\t\t\taddPercept(\"human\",gUnsafeLit); \n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{ \n\t\t\t\t\t\t\tlogger.info(\"UAV danger!\");\n\t\t\t\t\t\t\tLiteral gUnsafeLit = new LiteralImpl(\"agv_danger\"); \n\t\t\t\t\t\t\tgUnsafeLit.addTerm(new NumberTermImpl(ctrUnsf++)); \n\t\t\t\t\t\t\taddPercept(\"human\",gUnsafeLit); \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}\n\t\t); // END bridge.subscribe(...\"/ariac_human/unsafe_distance\") \n\t\n\t\t/* Subscriber for move_base result */\t\t\n\t\tbridge.subscribe(SubscriptionRequestMsg.generate(\"/ariac_human/position_reached\")\n\t\t\t\t.setType(\"std_msgs/Bool\")\n\t\t\t\t.setThrottleRate(1)\n\t\t\t\t.setQueueLength(1),\n\t\t\tnew RosListenDelegate() {\n\t\t\t\tpublic void receive(JsonNode data, String stringRep) {\n\t\t\t\t\tMessageUnpacker<PrimitiveMsg<Boolean>> unpacker = new MessageUnpacker<PrimitiveMsg<Boolean>>(PrimitiveMsg.class);\n\t\t\t\t\tPrimitiveMsg<Boolean> msg = unpacker.unpackRosMessage(data);\n\t\t\t\t\t//clearPercepts(\"human\");\n\t\t\t\t\tlogger.info(\"Human reached waypoint\t!\");\n\t\t\t\t\tLiteral movebase_result = new LiteralImpl(\"work_completed\"); \n\t\t\t\t\tmovebase_result.addTerm(new NumberTermImpl(cont++)); \n\t\t\t\t\tlogger.info(\"cont: \"+cont);\n\t\t\t\t\tif(simulationStarted==true)\n\t\t\t\t\t\t\taddPercept(\"human\", movebase_result);\n\t\t\t\t}\n\t\t\t}\n\t ); // END bridge.subscribe(...\"/ariac_human/position_reached\")\n\t\t\n\t\t/* Subscriber for getting the START message */\n\t\tbridge.subscribe(SubscriptionRequestMsg.generate(\"/ariac/start_human\") \n\t\t\t\t.setType(\"std_msgs/Bool\")\n\t\t\t\t.setThrottleRate(1)\n\t\t\t\t.setQueueLength(1),\n\t\t\tnew RosListenDelegate() {\n\t\t\t\tpublic void receive(JsonNode data, String stringRep) {\n\t\t\t\t\tMessageUnpacker<PrimitiveMsg<Boolean>> unpacker = new MessageUnpacker<PrimitiveMsg<Boolean>>(PrimitiveMsg.class);\n\t\t\t\t\tPrimitiveMsg<Boolean> msg = unpacker.unpackRosMessage(data);\n\t\t\t\t\t//logger.info(\"Simulation will start!\");\n\t\t\t\t\tif (msg.data){\n\t\t\t\t\t\t//clearPercepts(\"human\");\n\t\t\t\t\t\tlogger.info(\"Simulation started!\");\n\t\t\t\t\t\taddPercept(\"human\",Literal.parseLiteral(\"human_start\"));\n\t\t\t\t\t\tsimulationStarted = true; \n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t); // END bridge.subscribe(...\"/ariac/start_human\")\n\t}", "public PeerToPeerConnection(GameController controller){\n this.controller = controller;\n clientID = \"HostClient\";\n isHost = true;\n isHost = true;\n System.out.println(\"PeerToPeerConnection: Constructor: HostClient\");\n }", "public void createGame()\n {\n //call Client Controller's setState method with\n //a parameter of new ClientLobbyState()\n clientController.startMultiPlayerGame(\"GameLobby\");\n }", "@Override\r\n\t\tpublic void action() {\n\t\t\tswitch (state) {\r\n\t\t\tcase REGISTER:\r\n\t\t\t\tSystem.out.println(\"Philosopher Agent \"\r\n\t\t\t\t\t\t+ myAgent.getAID().getName()\r\n\t\t\t\t\t\t+ \" trying to register\");\r\n\t\t\t\t\r\n\t\t\t\t// searching for waiter agent\r\n\t\t\t\twhile(waiter == null) {\r\n\t\t\t\t\twaiter = searchWaiterAgent(\"waiter-service\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tACLMessage cfp = new ACLMessage(ACLMessage.CFP);\r\n\t\t\t\tcfp.addReceiver(waiter);\r\n\t\t\t\tcfp.setContent(\"philosopher-agent\");\r\n\t\t\t\tcfp.setConversationId(\"philosopher-waiter-fork\");\r\n\t\t\t\tcfp.setReplyWith(\"cfp\"+System.currentTimeMillis());\r\n\t\t\t\tSystem.out.println(\"Philosopher Agent \"\r\n\t\t\t\t\t\t+ myAgent.getAID().getName()\r\n\t\t\t\t\t\t+ \" send registration request \" + cfp);\r\n\t\t\t\tmyAgent.send(cfp);\r\n\t\t\t\t\r\n\t\t\t\t// Prepare template to get response\r\n\t\t\t\t//mt = MessageTemplate.and(MessageTemplate.MatchConversationId(\"philosopher-waiter-fork\"),\r\n\t\t\t\t//\t\tMessageTemplate.MatchInReplyTo(request.getReplyWith()));\r\n\t\t\t\tmt = MessageTemplate.MatchConversationId(\"philosopher-waiter-fork\");\r\n\t\t\t\tstate = State.REGISTERED;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase REGISTERED:\r\n\t\t\t\tACLMessage response = myAgent.receive();\r\n\t\t\t\tif (response != null && response.getConversationId().equals(\"philosopher-waiter-fork\")) {\r\n\t\t\t\t\tif (response.getPerformative() == ACLMessage.SUBSCRIBE) {\r\n\t\t\t\t\t\t// behaviour can be finished\r\n\t\t\t\t\t\tregistered = true;\r\n\t\t\t\t\t\tSystem.out.println(\"Philosopher Agent \"\r\n\t\t\t\t\t\t\t\t+ myAgent.getAID().getName()\r\n\t\t\t\t\t\t\t\t+ \" registered Successfully\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tregistered = false;\r\n\t\t\t\t\t\tSystem.out.println(\"Philosopher Agent \"\r\n\t\t\t\t\t\t\t\t+ myAgent.getAID().getName()\r\n\t\t\t\t\t\t\t\t+ \" registration in progress\");\r\n\t\t\t\t\t\tstate = State.REGISTER;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.println(myAgent.getAID().getName() + \" blocked\");\r\n\t\t\t\t\tblock();\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}", "public ComputerBuilder() {\n this.computer = new Computer();\n }", "public ReceiverEntity crearReceiver(ReceiverEntity receiverCrear){\r\n persistence.create(receiverCrear);\r\n return receiverCrear;\r\n }" ]
[ "0.60208833", "0.59852415", "0.566672", "0.5664454", "0.5524493", "0.5472796", "0.5450202", "0.54432124", "0.5439978", "0.54005307", "0.53929204", "0.5355283", "0.5336202", "0.52602303", "0.523448", "0.51424223", "0.5094544", "0.50779045", "0.5068971", "0.50375336", "0.5036341", "0.5011088", "0.497233", "0.49596345", "0.4943906", "0.4926362", "0.49211922", "0.49101758", "0.49069506", "0.49000582", "0.48737702", "0.48441115", "0.4825365", "0.48228008", "0.48207736", "0.48121098", "0.48089996", "0.48035163", "0.47959", "0.47904184", "0.47862694", "0.47673294", "0.475828", "0.47572663", "0.47487718", "0.47469598", "0.47467834", "0.4743491", "0.4743251", "0.47432485", "0.47416466", "0.47383085", "0.4731428", "0.4731218", "0.4728945", "0.47250047", "0.47250047", "0.4708344", "0.46908975", "0.46851677", "0.46834671", "0.46811256", "0.46765602", "0.46721736", "0.4659093", "0.4655092", "0.46534568", "0.4653286", "0.46463785", "0.46462297", "0.46461675", "0.46426916", "0.46419343", "0.4641442", "0.4639196", "0.46389872", "0.46370792", "0.4632632", "0.46249893", "0.46206158", "0.46134064", "0.46112558", "0.46082398", "0.46080387", "0.4606099", "0.4601967", "0.46016783", "0.45998296", "0.45993862", "0.45928344", "0.45926043", "0.45899978", "0.45875987", "0.4587041", "0.45826006", "0.4582053", "0.45813373", "0.45777225", "0.45761636", "0.45753962" ]
0.50069577
22
Handles the received event
@Override public void onNext(TransportEvent value) { LOG.log(Level.FINEST, "{0}", value); stage.onNext(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n public void handle(Event event) {\n }", "public void handleEvent(Event event) {\n\t\t\t\t}", "@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}", "public abstract void handle(Object event);", "@Override\n\tpublic void handleEvent(EnOceanMessage data) {\n\t}", "public void handleMessageEvent(StunMessageEvent e) {\n delegate.processRequest(e);\n }", "@Override\n\tpublic void handleEvent(Event arg0) {\n\t\t\n\t}", "private void readEvent() {\n\t\t\t\n\t\t\thandlePacket();\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void processEvent() {\n\t\tint VolumeButtonEvent = (Integer) pdu.getRawPayload()[0];\r\n\t\t//System.out.println(\"number of objects \" + numObjects);\r\n\t}", "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "@Override\r\n public void handle(Buffer inBuffer) {\n \tlogger.debug(name_log + \"----------------------------------------------------------------------------\");\r\n \t//logger.debug(name_log + \"incoming data: \" + inBuffer.length());\r\n String recvPacket = inBuffer.getString(0, inBuffer.length());\r\n \t\r\n //logger.debug(name_log + \"read data: \" + recvPacket);\r\n logger.info(name_log + \"RECV[\" + recvPacket.length() + \"]> \\n\" + recvPacket + \"\\n\");\r\n \r\n \r\n // -- Packet Analyze ----------------------------------------------------------------\r\n // Writing received message to event bus\r\n\t\t\t\t\r\n JsonObject jo = new JsonObject();\r\n \r\n jo.put(\"recvPacket\", recvPacket);\r\n \r\n eb.send(\"PD_Trap\" + remoteAddr, jo);\r\n\r\n // -- RESPONSE, Send Packet to Target -----------------------------------------------\r\n eb.consumer(remoteAddr + \"Trap_ACK\", message -> {\r\n \twriteToTarget(message.body().toString(), \"Trap_ACK\");\r\n });\r\n \r\n eb.consumer(remoteAddr + \"Trap_NACK\", message -> {\r\n \twriteToTarget(message.body().toString(), \"Trap_NACK\");\r\n });\r\n \r\n }", "public void handle(Object e){\n\t\tif(e.getClass().equals(GetResultRequestEvent.class)){\n\t\t\tgetResults((GetResultRequestEvent)e);\n\t\t}else if(e.getClass().equals(RefreshAllDataEvent.class)){\n\t\t\ttf.getData(app);\n\t\t}else if(e.getClass().equals(ExportDataEvent.class)){\n\t\t\ttf.exportItemDB();\n\t\t}\n\t}", "private void eventhandler() {\n\r\n\t}", "@Override\r\n\tpublic void messageReceived(Object obj) {\n\t\t\r\n\t}", "@Override\n\tpublic void processEvent(Event e) {\n\n\t}", "@Override public void handle(ActionEvent e)\n\t {\n\t }", "public void handleMessageEvent(StunMessageEvent e) {\n delegate.handleMessageEvent(e);\n }", "public void handleMessageEvent(StunMessageEvent e) {\n delegate.handleMessageEvent(e);\n }", "@Override\n public void onBufferReceived(byte[] buffer) {\n }", "@Override\r\n public void onReceivedData(byte[] arg0) {\r\n dataManager.onReceivedData(arg0);\r\n }", "@Override\n\t\t\t\tpublic void notifyReceived(LinphoneCore lc, LinphoneCall call,\n\t\t\t\t\t\tLinphoneAddress from, byte[] event) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void onReceive(Object arg0) throws Exception {\n\t\t\r\n\t}", "public void onEvent(TCPReceiverThread receiverThread, Event event) throws IOException;", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "public void handleMessageReceived(SessionEvent event) {\n \t\tfor(int i = 0; i < getMessageListeners().size(); i++) {\n \t\t\tIMessageListener l = (IMessageListener) getMessageListeners().get(i);\n \t\t\tID from = makeIDFromName(event.getFrom());\n \t\t\tID to = makeIDFromName(event.getTo());\n \t\t\tl.handleMessage(\n \t\t\t\t\tfrom, \n \t\t\t\t\tto, \n \t\t\t\t\tIMessageListener.Type.NORMAL, \n \t\t\t\t\tevent.getFrom(), \n \t\t\t\t\tevent.getMessage());\n \t\t}\n \t}", "public final void handle() {\n runHandler();\n }", "private void receivedMessage(ChannelHandlerContext channelHandlerContext, ByteBuf response) {\n String message = new String(getByteArray(response));\n if (message.contains(\"Heartbeat\")) {\n logger.info(\"Received Heartbeat message\");\n channelHandlerContext.fireUserEventTriggered(response);\n } else {\n clientChannelHandlerObserver.processResponse(getByteArray(response));\n }\n }", "public void handleEvent(Event event)\n {\n letzteZahlung.getValue();\n }", "@Override\n public void onEventReceived(Event event) {\n super.onEventReceived(event);\n\n switch (event.getRawEventType())\n {\n case Track:\n trackManager.manageTrackEvent(event);\n break;\n case TentativeTracking:\n manageTentativeTrackingEvent(event);\n break;\n case Tracking:\n manageTrackingEvent(event);\n break;\n }\n }", "@Override\n\tpublic void handle(ActionEvent event) {\n\n\t}", "@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void handle(T event) {\n\t\tString messageFromClient;\n\t\tmessageFromClient = breakOut.getView().getInputTextfield().getText();\n\t\ttry {\n\t\t\tbreakOut.getClient().getWriter().println(messageFromClient);\n\t\t\tbreakOut.getClient().getWriter().flush();\n\t\t\tbreakOut.getView().getInputTextfield().clear();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"No reachable Server\");\n\t\t}\n\t}", "@Override\n public void handleMessage(Message message) {}", "@Override\r\n public void onEvent(FlowableEvent event) {\n }", "@Override\n public void onMessageReceived(MessageEvent messageEvent) {\n if (messageEvent.getPath().equals(\"/watch/newSmokeEvents\")) {\n\n /* ...retrieve the message */\n final byte[] receivedEvents = messageEvent.getData();\n\n Intent messageIntent = new Intent();\n messageIntent.setAction(Intent.ACTION_SEND);\n messageIntent.putExtra(\"NEW_EVENTS_DATA\", receivedEvents);\n\n /* Broadcast the received Data Layer messages locally -> send to Synchronize */\n LocalBroadcastManager.getInstance(this).sendBroadcast(messageIntent);\n }\n else if (messageEvent.getPath().equals(\"/watch/newSensorData\")){\n\n Intent synchronizeServiceIntent = new Intent(this, SynchronizeService.class);\n synchronizeServiceIntent.putExtra(\"RECEIVED_SYNC_HASH_LIST_REQUEST\", true);\n SynchronizeService.enqueueWork(this, synchronizeServiceIntent);\n\n }\n else {\n super.onMessageReceived(messageEvent);\n }\n\n }", "protected void ProcessOutboundEvent(XMSEvent evt){\n switch(evt.getEventType()){\n case CALL_CONNECTED:\n System.out.println(\"***** Outbound call connected *****\");\n SetOutboundCallState(OutboundCallStates.CALLCONNECTED);\n ConnectCalls();\n break;\n case CALL_RECORD_END:\n \n break; \n case CALL_SENDDTMF_END:\n System.out.println(\"***** END_DTMF *****\");\n System.out.println(\"***** ReJoin Calls *****\");\n ConnectCalls();\n \n break; \n case CALL_DTMF:\n \n System.out.println(\"***** outbound CALL_DTMF *****\");\n System.out.println(\"data=\" + evt.getData());\n myInboundCall.SendInfo(\"DTMF_\" + evt.getData());\n \n break; \n case CALL_INFO:\n \n System.out.println(\"***** Outbound CALL_INFO *****\");\n System.out.println(\"data=\" + evt.getData());\n myInboundCall.SendInfo(evt.getData());\n\n break;\n case CALL_PLAY_END:\n //May need to do something here\n break;\n case CALL_DISCONNECTED: // The far end hung up will simply wait for the media\n System.out.println(\"***** outbound CALL_Disconnected *****\");\n DisconnectCalls();\n break;\n default:\n System.out.println(\"Unknown Event Type!!\");\n }\n }", "@Override\r\n public void handleMessage(Message msg) {\n }", "@Override\n\tpublic void handle(ActionEvent event) {\n\t\t\n\t}", "@Override\n\tpublic void notifyReceived(LinphoneCore lc, LinphoneCall call,\n\t\t\tLinphoneAddress from, byte[] event) {\n\t\t\n\t}", "void onBusEvent(Event event);", "public void handleTickReceived() {\n if (this.mVisible) {\n updateIndication();\n }\n }", "@Override\n\t\t\tpublic void commandReceived(WebBrowserCommandEvent arg0) {\n\t\t\t}", "@Override\n public void run() {\n Message message = mHandler.obtainMessage(1);\n mHandler.sendMessage(message);\n }", "@Override\n\t\tpublic void onDeviceEventReceived(DeviceEvent ev, String client) {\n\t\t\t\n\t\t}", "public void handleMessage(Message msg) {\n switch (msg.what) {\n case handlerState:\n String readMessage = (String) msg.obj; // msg.arg1 = bytes from connect thread\n ReceivedData.setData(readMessage);\n break;\n\n case handlerState1:\n tempSound = Boolean.parseBoolean((String) msg.obj);\n ReceivedData.setSound(tempSound);\n break;\n\n case handlerState5:\n if(\"ACK\".equals ((String) msg.obj ))\n ReceivedData.clearPPGwaveBuffer();\n break;\n\n }\n ReceivedData.Process();\n }", "@Override\r\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\treceive();\r\n\t\t\t\t}", "public void dataSent(LLRPDataSentEvent event);", "void onMessageReceived(Message message);", "public abstract void callback(VixHandle handle, int eventType, \n\t\tVixHandle moreEventInfo, Object clientData);", "@Override\n public void onReceive(Context context, Intent intent) {\n // TODO Auto-generated method stub\n Log.d(TAG, \"got it\");\n }", "@Override\n\tpublic void msgReceived(Message msg) {\n\n\t}", "public void messageReceived() {\n\tTrackedMessage.accumulateMap(TrackedMessage.unmapType(\n\t\tTrackedMessage.messagesRecieved, this.getClass()), this\n\t\t.getMessageType(), 1);\n\tTrackedMessage.accumulateMap(TrackedMessage.unmapType(\n\t\tTrackedMessage.bytesRecieved, this.getClass()), this\n\t\t.getMessageType(), TrackedMessage.objectSize(this));\n }", "@Override\n public void receive(CloudServiceEvent event) {\n logger.debug(\"Cloudstack event received: reference type:\" + event.getCloudServiceReferenceType() + \" reference id:\"\n + event.getCloudServiceReferenceId());\n }", "public void processEvent(Event event) {\n\t\t\n\t}", "private void incomingBT_handle()\n {\n if(BT_Message_Handle_Func != null)\n BT_Message_Handle_Func.run();\n\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t((EventListenerTab) FragmentUtil.getActivity(discoverFragmentTab)).onEventSelected(event, \n\t\t\t\t\t\tholder.imgEvt, holder.txtEvtTitle);\n\t\t\t\tholder.rltLytBtm.setPressed(false);\n\t\t\t}", "public void handleSensorEvents(){\n\t}", "@Override\n public void onReceive(Object msg) throws Exception {\n }", "@Override\n\t\tpublic void serialEvent(SerialPortEvent evt) {\n\t\t\ttry {\n\t\t\t\tswitch (evt.getEventType()) {\n\t\t\t\tcase SerialPortEvent.DATA_AVAILABLE:\n\t\t\t\t\tif (input == null) {\n\t\t\t\t\t\tinput = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\t\t\tserialPort.getInputStream()));\n\t\t\t\t\t}\n\t\t\t\t\tString inputLine = input.readLine();\n\t\t\t\t\tSystem.out.println(inputLine);\n\t\t\t\t\tserialReturn = inputLine;\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t}\n\n\t\t}", "void responseReceived(byte[] response);", "@Override\n public void dataReceived(PlayingInfoModel result) {\n }", "@Override\n public void handleMessage(Message msg) {\n switch (msg.what) {\n case EVENT_VOICEMAIL_CHANGED:\n handleSetVMMessage((AsyncResult) msg.obj);\n break;\n default:\n // TODO: should never reach this, may want to throw exception\n }\n }", "public abstract void onBinaryReceived(byte[] data);", "public void handleEvent(Event event) {\n\t\t\t\tprintingHandle.handlePrint(text.getText());\n\t\t\t}", "void handleActionEvent(ActionEvent event);", "@Override\n\tpublic BaseMsg handle(BaseEvent event) {\n\t\treturn null;\n\t}", "@Override\r\n\t\tpublic void handle(Event e) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tlogger.error(\"Error: handle never pressed. \");\r\n\t\t}", "@Override\n\tpublic void onChatReceived(ChatEvent arg0) {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void handleEvent(Event arg0) {\n\t\t\t\tstatus = txt_status.getText();\r\n\t\t\t}", "@Override\n\tpublic void onMessageRecieved(Message arg0) {\n\t\t\n\t}", "@Override\n public void onReceive(Object message) throws Exception {\n }", "public abstract void processEvent(Object event);", "@Override\n public void onEvent(EMNotifierEvent event) {\n message = (EMMessage) event.getData();\n messageBean.setGetMsgCode(MessageContant.receiveMsgByListChanged);\n messageBean.setEmMessage(message);\n\n eventBus.post(messageBean);\n }", "void onDataReceived(int source, byte[] data);", "@Override\n public void onReceivedResponse(WebSocketResponseMessage responseMessage) {\n System.err.println(\"[JVDBG] Got response with status \" + responseMessage.getStatus()+\n \" and requestId = \"+responseMessage.getRequestId());\n long id = responseMessage.getRequestId();\n if (pending.containsKey(id)) {\n Consumer f = pending.get(id);\n f.accept(responseMessage);\n pending.remove(id);\n }\n System.err.println(\"Message = \" + responseMessage);\n if (responseMessage.getBody().isPresent()) {\n System.err.println(\"[JVDBG] Got response body: \" + new String(responseMessage.getBody().get()));\n }\n }", "public void handleEvent(Event event) {\n switch(event.type) {\n case Arrival:\n arrival(event.intersection, event.direction, event.time, event.vehicle);\n break;\n case Departure:\n departure(event.intersection, event.time, event.vehicle, event.direction);\n break;\n // Northbound traffic light events\n case GreenSouth:\n greenSouth(event.intersection, event.direction, event.time);\n break;\n case RedSouth:\n redSouth(event.intersection, event.direction, event.time);\n break;\n // Westbound traffic light turn right\n case GreenEastTurnRight:\n greenEastTurnRight(event.intersection, event.time);\n break;\n case RedEastTurnRight:\n redEastTurnRight(event.intersection);\n break;\n // Eastbound traffic light turn left\n case GreenWestTurnLeft:\n greenWestTurnLeft(event.intersection, event.time);\n break;\n case RedWestTurnLeft:\n redWestTurnLeft(event.intersection);\n break;\n case Exit:\n exit(event.intersection, event.time, event.vehicle, event.direction);\n break;\n default:\n System.out.println(\"Error - EventHandler.handleEvent: Wrong Event!\");\n }\n }", "@EventName(\"receivedMessageFromTarget\")\n EventListener onReceivedMessageFromTarget(EventHandler<ReceivedMessageFromTarget> eventListener);", "public void handleMessage(Message msg) {\n\t\t\tLog.e(\"DownloaderManager \", \"newFrameHandler\");\n\t\t\tMessage msgg = new Message();\n\t\t\tmsgg.what=2;\n\t\t\tmsgg.obj = msg.obj;\n\t\t\t\n\t\t\t_replyTo.sendMessage(msgg);\n\t\t\t\n\t\t\t\n\t\t}", "@Override\r\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t}", "void onReceive( String response );", "@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }", "@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }", "@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }", "@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }", "protected void handleMessage(Message msg) {}", "public abstract void onReceiveResponse(ExchangeContext context);", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\treceive();\r\n\t\t\t}" ]
[ "0.7360718", "0.7360718", "0.7360718", "0.7360718", "0.7360718", "0.73312604", "0.73312604", "0.73312604", "0.7321491", "0.7321491", "0.73095137", "0.70050323", "0.69321656", "0.6871755", "0.68341506", "0.6789753", "0.6777191", "0.6737486", "0.671882", "0.6715435", "0.663354", "0.6553434", "0.64748096", "0.6446273", "0.6414323", "0.64058614", "0.6390934", "0.6390934", "0.63788086", "0.6353052", "0.63194823", "0.6316655", "0.6309414", "0.6285827", "0.62755764", "0.6272383", "0.62456644", "0.6227113", "0.621964", "0.6217303", "0.62074524", "0.6202455", "0.61960167", "0.6191028", "0.6191028", "0.6187281", "0.6185746", "0.6179297", "0.6156847", "0.61409193", "0.6124394", "0.6113944", "0.6112993", "0.61097145", "0.6103207", "0.60930246", "0.6079791", "0.6074731", "0.6071901", "0.60652226", "0.6060803", "0.6053986", "0.6045356", "0.6045144", "0.6024863", "0.60192585", "0.601196", "0.60118353", "0.6000025", "0.5998958", "0.5997748", "0.5996269", "0.5994293", "0.5988355", "0.5982794", "0.59786195", "0.5976128", "0.59755725", "0.59739846", "0.5964352", "0.59638643", "0.5961413", "0.59603506", "0.5957116", "0.59548986", "0.59516823", "0.5950342", "0.59485686", "0.5943386", "0.5942546", "0.5940888", "0.5936621", "0.59344256", "0.5934165", "0.5928951", "0.5928951", "0.5928951", "0.5928951", "0.59258646", "0.59208214", "0.5917845" ]
0.0
-1
Test of consumePendingTasks method, of class QueueDAOImpl.
@Test public void testConsumePendingTasks() throws Exception { System.out.println("consumePendingTasks"); QueueDAOImpl instance = new QueueDAOImpl(); List<QueueTaskDTO> expResult = null; List<QueueTaskDTO> result = instance.consumePendingTasks().getTasks(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n\tprivate void processQueue() throws DatabaseException {\n\t\tString qs = \"from PendingTask pt order by pt.created\";\n\t\tGson gson = new Gson();\n\t\tSession session = null;\n\t\t\n\t\ttry {\n\t\t\tsession = HibernateUtil.getSessionFactory().openSession();\n\t\t\tQuery q = session.createQuery(qs);\n\t\t\t\n\t\t\tfor (PendingTask pt : (List<PendingTask>) q.list()) {\n\t\t\t\tif (!runningTasks.contains(pt.getId())) {\n\t\t\t\t\tlog.info(\"Processing {}\", pt);\n\t\t\t\t\t\n\t\t\t\t\tif (PendingTask.TASK_UPDATE_PATH.equals(pt.getTask())) {\n\t\t\t\t\t\tif (Config.STORE_NODE_PATH) {\n\t\t\t\t\t\t\texecutor.execute(new PendingTaskThread(pt, new UpdatePathTask()));\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (PendingTask.TASK_CHANGE_SECURITY.equals(pt.getTask())) {\n\t\t\t\t\t\tChangeSecurityParams params = gson.fromJson(pt.getParams(), ChangeSecurityParams.class);\n\t\t\t\t\t\texecutor.execute(new PendingTaskThread(pt, new ChangeSecurityTask(params)));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlog.warn(\"Unknown pending task: {}\", pt.getTask());\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tlog.info(\"Task already running: {}\", pt);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (HibernateException e) {\n\t\t\tthrow new DatabaseException(e.getMessage(), e);\n\t\t} finally {\n\t\t\tHibernateUtil.close(session);\n\t\t}\n\t}", "protected abstract long waitOnQueue();", "@Ignore\n @Test\n public void testGetConnection() {\n System.out.println(\"getConnection\");\n Util.commonServiceIPs = \"127.0.0.1\";\n PooledConnection expResult = null;\n try {\n long ret = JMSUtil.getQueuePendingMessageCount(\"127.0.0.1\",\"localhost\",CommonKeys.INDEX_REQUEST);\n fail(\"The test case is a prototype.\");\n }\n catch(Exception e)\n {\n \n } \n }", "private void workOnQueue() {\n }", "private void tryDoingTasksInQueue() {\n var list = queue.exceptionsList;\n var t2 = new Thread(() -> {\n Retry.Operation op = (list1) -> {\n if (!list1.isEmpty()) {\n LOG.warn(\"Error in accessing queue db to do tasks, trying again..\");\n throw list1.remove(0);\n }\n doTasksInQueue();\n };\n Retry.HandleErrorIssue<QueueTask> handleError = (o, err) -> {\n };\n var r = new Retry<>(op, handleError, numOfRetries, retryDuration,\n e -> DatabaseUnavailableException.class.isAssignableFrom(e.getClass()));\n try {\n r.perform(list, null);\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n });\n t2.start();\n }", "@Test\n public void deleteCompletedTasksAndGettingTasks() {\n mDatabase.taskDao().insertTask(TASK);\n\n //When deleting completed tasks\n mDatabase.taskDao().deleteCompletedTasks();\n\n //When getting the tasks\n List<Task> tasks = mDatabase.taskDao().getTasks();\n // The list is empty\n assertThat(tasks.size(), is(0));\n }", "public void runPendingTasks() {\n/* */ try {\n/* 578 */ this.loop.runTasks();\n/* 579 */ } catch (Exception e) {\n/* 580 */ recordException(e);\n/* */ } \n/* */ \n/* */ try {\n/* 584 */ this.loop.runScheduledTasks();\n/* 585 */ } catch (Exception e) {\n/* 586 */ recordException(e);\n/* */ } \n/* */ }", "void consumeWorkUnit();", "@Test\r\n public void testCompleteTask() throws Exception {\r\n System.out.println(\"completeTask\");\r\n QueueTaskDTO task = null;\r\n QueueDAOImpl instance = new QueueDAOImpl();\r\n QueueTaskDTO expResult = null;\r\n QueueTaskDTO result = instance.completeTask(task);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "void processQueue();", "public long runScheduledPendingTasks() {\n/* */ try {\n/* 597 */ return this.loop.runScheduledTasks();\n/* 598 */ } catch (Exception e) {\n/* 599 */ recordException(e);\n/* 600 */ return this.loop.nextScheduledTask();\n/* */ } \n/* */ }", "@Test\n\tpublic void testCancelPendingRequest() {\n\t\tLong originalCreditBalance = 100L;\n\t\tint creditEstimate = 50;\n\n\t\tSmsAccount smsAccount = new SmsAccount();\n\t\tsmsAccount.setSakaiUserId(\"4\");\n\t\tsmsAccount.setSakaiSiteId(\"4\");\n\t\tsmsAccount.setMessageTypeCode(\"12345\");\n\t\tsmsAccount.setOverdraftLimit(1000L);\n\t\tsmsAccount.setCredits(originalCreditBalance);\n\t\tsmsAccount.setAccountName(\"accountName\");\n\t\tsmsAccount.setAccountEnabled(true);\n\t\thibernateLogicLocator.getSmsAccountLogic()\n\t\t\t\t.persistSmsAccount(smsAccount);\n\n\t\tSmsTask smsTask = new SmsTask();\n\t\tsmsTask.setSakaiSiteId(SmsConstants.SMS_DEV_DEFAULT_SAKAI_SITE_ID);\n\t\tsmsTask.setSenderUserName(\"sakaiUserId\");\n\t\tsmsTask.setSmsAccountId(smsAccount.getId());\n\t\tsmsTask.setDateCreated(new Timestamp(System.currentTimeMillis()));\n\t\tsmsTask.setDateToSend(new Timestamp(System.currentTimeMillis()));\n\t\tsmsTask.setStatusCode(SmsConst_DeliveryStatus.STATUS_PENDING);\n\t\tsmsTask.setAttemptCount(2);\n\t\tsmsTask.setMessageBody(SmsConstants.SMS_DEV_DEFAULT_SMS_MESSAGE_BODY);\n\t\tsmsTask.setSenderUserName(\"senderUserName\");\n\t\tsmsTask.setMaxTimeToLive(1);\n\t\tsmsTask.setMessageTypeId(SmsConstants.MESSAGE_TYPE_SYSTEM_ORIGINATING);\n\t\tsmsTask.setCreditEstimate(creditEstimate);\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(smsTask.getDateToSend());\n\t\tcal.add(Calendar.SECOND, smsTask.getMaxTimeToLive());\n\t\tsmsTask.setDateToExpire(cal.getTime());\n\t\thibernateLogicLocator.getSmsTaskLogic().persistSmsTask(smsTask);\n\n\t\tsmsBillingImpl.reserveCredits(smsTask);\n\n\t\t// Check the credits have been reserved.\n\t\tSmsAccount retAccount = hibernateLogicLocator.getSmsAccountLogic()\n\t\t\t\t.getSmsAccount(smsAccount.getId());\n\t\tAssert.assertNotNull(retAccount);\n\t\tAssert.assertTrue(retAccount.getCredits() < originalCreditBalance);\n\n\t\tsmsBillingImpl.cancelPendingRequest(smsTask.getId());\n\t\t// Check the credits have been reserved.\n\t\tretAccount = hibernateLogicLocator.getSmsAccountLogic().getSmsAccount(\n\t\t\t\tsmsAccount.getId());\n\t\tAssert.assertNotNull(retAccount);\n\t\tAssert.assertTrue(retAccount.getCredits() == originalCreditBalance);\n\t}", "void runQueue();", "@Test\n\tpublic void sendMessage() {\n\n\t\tExecutorService executorService = Executors.newFixedThreadPool(1);\n\t\tCountDownLatch endSignal = new CountDownLatch(100);\n\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tfinal int num = i;\n\t\t\t// Runnable run;\n\t\t\texecutorService.execute(() -> {\n\t\t\t\ttry {\n\t\t\t\t\tmessageSender = new MessageSender();\n\t\t\t\t\tmessageSender.sendMessage(\"bitchin' badass\" + num);\n\t\t\t\t\tendSignal.countDown();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"exception\", e);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\ttry {\n\t\t\tendSignal.await();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tmessageSender.closeAll();\n\n\t\t}\n\t\texecutorService.shutdown();\n\n\n\t\tval consumeFlag = messageConsumer.consume(\"trans_logs_record\");\n\n\t\ttry {\n\t\t\tThread.sleep(5000l);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tAssert.assertEquals(true, consumeFlag);\n\n\t}", "int queuesWithPendingMessages(List<QueueDto> queues, int maxNumQueues) throws IOException, MlmqException;", "@Test\n @DisplayName(\"Testing poll StringQueue\")\n public void testPollStringQueue() {\n\n queue.offer(\"Test\");\n assertEquals(queue.poll(), \"Test\");\n\n assertEquals(queue.poll(), null);\n\n\n }", "@Test\r\n public void test() throws InterruptedException {\r\n\t\t\t\tmySourceTask.config = new MySourceConnectorConfig(initialConfig());\r\n\t\t\t\tmySourceTask.setLastUpdatedAt(Instant.now());\r\n\t\t\t\t \r\n\t\t\t\tList<SourceRecord> list= mySourceTask.poll();\r\n\t\t\t\t\r\n\t\t\t\t assertNotNull(list);\r\n\t \r\n//\t assertNotNull(issue);\r\n//\t assertNotNull(issue.getNumber());\r\n//\t assertEquals(2072, issue.getNumber().intValue());\r\n\t \r\n }", "@Test\n public void testQueueLimiting() throws Exception {\n // Block the underlying fake proxy from actually completing any calls.\n DelayAnswer delayer = new DelayAnswer(LOG);\n Mockito.doAnswer(delayer).when(mockProxy).journal(\n Mockito.<RequestInfo>any(),\n Mockito.eq(1L), Mockito.eq(1L),\n Mockito.eq(1), Mockito.same(FAKE_DATA));\n \n // Queue up the maximum number of calls.\n int numToQueue = LIMIT_QUEUE_SIZE_BYTES / FAKE_DATA.length;\n for (int i = 1; i <= numToQueue; i++) {\n ch.sendEdits(1L, (long)i, 1, FAKE_DATA);\n }\n \n // The accounting should show the correct total number queued.\n assertEquals(LIMIT_QUEUE_SIZE_BYTES, ch.getQueuedEditsSize());\n \n // Trying to queue any more should fail.\n try {\n ch.sendEdits(1L, numToQueue + 1, 1, FAKE_DATA).get(1, TimeUnit.SECONDS);\n fail(\"Did not fail to queue more calls after queue was full\");\n } catch (ExecutionException ee) {\n if (!(ee.getCause() instanceof LoggerTooFarBehindException)) {\n throw ee;\n }\n }\n \n delayer.proceed();\n\n // After we allow it to proceeed, it should chug through the original queue\n GenericTestUtils.waitFor(new Supplier<Boolean>() {\n @Override\n public Boolean get() {\n return ch.getQueuedEditsSize() == 0;\n }\n }, 10, 1000);\n }", "long getExcutorTasksInWorkQueueCount();", "public interface QueueService {\n\n /**\n * 添加元素\n *\n * @param messageQueue\n */\n void add(MessageQueue messageQueue);\n\n\n /**\n * 弹出元素\n */\n MessageQueue poll();\n\n Iterator<MessageQueue> iterator();\n\n\n}", "@Test\n\tpublic void testExecuteOk() {\n\t\tfinal Subscription subscription0 = createSubscriptionForDBMock(1 , \"eventType1\", \"subscriberName1\");\n\t\tfinal EventPublishRequestDTO request = getEventPublishRequestDTOForTest();\n\t\tfinal PublishEventTask publishEventTask = new PublishEventTask(subscription0, request, httpService);\n\t\t\n\t\tdoNothing().when(threadPool).execute(any());\n\t\t\n\t\ttestingObject.execute();\n\t\t\n\t\tverify(threadPool, times(numberOfSubscribers)).execute(any());\n\t\tfinal Subscription subscriptionInTask = (Subscription) ReflectionTestUtils.getField(publishEventTask, \"subscription\");\n\t\tassertNotNull(subscriptionInTask);\n\t\tverify(threadPool, times(1)).shutdownNow();\n\t}", "@Test\n public void deleteTasksAndGettingTasks() {\n mDatabase.taskDao().insertTask(TASK);\n\n //When deleting all tasks\n mDatabase.taskDao().deleteTasks();\n\n //When getting the tasks\n List<Task> tasks = mDatabase.taskDao().getTasks();\n // The list is empty\n assertThat(tasks.size(), is(0));\n }", "@Test\n\tpublic void testFetchingQueues() throws IOException, InvalidHeaderException, InterruptedException, ExecutionException {\n\t\tfinal String[][] results = new String[][] {\n\t\t\tnew String[] { \"queue 1\", \"queue 2\" },\n\t\t\tnew String[] { \"queue 3\" },\n\t\t\tnull\n\t\t};\n\t\t\n\t\tFuture<Boolean> result = service.submit(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor (int i = 0; i < results.length; i ++) {\n\t\t\t\t\tArrayList<String> queues = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tqueues = (ArrayList<String>) client.GetWaitingQueues();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tfail(\"Exception was thrown.\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (i == 2) assertEquals(results[i], queues);\n\t\t\t\t\telse {\n\t\t\t\t\t\tassertEquals(results[i].length, queues.size());\n\t\t\t\t\t\tfor (int j = 0; j < queues.size(); j++) {\n\t\t\t\t\t\t\tassertEquals(results[i][j], queues.get(j));\n\t\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}\n\t\t}, Boolean.TRUE);\n\t\t\n\t\t// Get the request\n\t\tfor (int i = 0; i < results.length; i++) {\n\t\t\tassertTrue(this.getMessage(channel) instanceof GetQueuesRequest);\n\t\t\tthis.sendMessage(i == 2 \n\t\t\t\t\t? new RequestResponse(Status.EXCEPTION) \n\t\t\t\t\t: new GetQueuesResponse(Arrays.asList(results[i])), channel);\n\t\t}\t\t\n\t\t\n\t\tresult.get();\n\t}", "@Test\n public void testLimitPool() {\n List<Pool> subscribedTo = new ArrayList<Pool>();\n Consumer guestConsumer = TestUtil.createConsumer(systemType, owner);\n guestConsumer.setFact(\"virt.is_guest\", \"true\");\n \n consumerCurator.create(guestConsumer);\n Pool parentPool = null;\n \n assertTrue(limitPools != null && limitPools.size() == 2);\n for (Pool p : limitPools) {\n // bonus pools have the attribute pool_derived\n if (null != p.getAttributeValue(\"pool_derived\")) {\n // consume 2 times so one can get revoked later.\n consumerResource.bind(guestConsumer.getUuid(), p.getId(), null,\n 10, null, null, false, null);\n consumerResource.bind(guestConsumer.getUuid(), p.getId(), null,\n 10, null, null, false, null);\n // ensure the correct # consumed from the bonus pool\n assertTrue(p.getConsumed() == 20);\n assertTrue(p.getQuantity() == 100);\n poolManager.refreshPools(owner);\n // double check after pools refresh\n assertTrue(p.getConsumed() == 20);\n assertTrue(p.getQuantity() == 100);\n // keep this list so we don't need to search again\n subscribedTo.add(p);\n }\n else {\n parentPool = p;\n }\n }\n // manifest consume from the physical pool and then check bonus pool quantities\n consumerResource.bind(manifestConsumer.getUuid(), parentPool.getId(), null, 7, null,\n null, false, null);\n for (Pool p : subscribedTo) {\n assertTrue(p.getConsumed() == 20);\n assertTrue(p.getQuantity() == 30);\n poolManager.refreshPools(owner);\n // double check after pools refresh\n assertTrue(p.getConsumed() == 20);\n assertTrue(p.getQuantity() == 30);\n }\n // manifest consume from the physical pool and then check bonus pool quantities.\n // Should result in a revocation of one of the 10 count entitlements.\n consumerResource.bind(manifestConsumer.getUuid(), parentPool.getId(), null, 2, null,\n null, false, null);\n for (Pool p : subscribedTo) {\n assertTrue(p.getConsumed() == 10);\n assertTrue(p.getQuantity() == 10);\n poolManager.refreshPools(owner);\n // double check after pools refresh\n assertTrue(p.getConsumed() == 10);\n assertTrue(p.getQuantity() == 10);\n }\n // system consume from the physical pool and then check bonus pool quantities.\n // Should result in no change in the entitlements for the guest.\n consumerResource.bind(systemConsumer.getUuid(), parentPool.getId(), null, 1, null,\n null, false, null);\n for (Pool p : subscribedTo) {\n assertTrue(p.getConsumed() == 10);\n assertTrue(p.getQuantity() == 10);\n poolManager.refreshPools(owner);\n // double check after pools refresh\n assertTrue(p.getConsumed() == 10);\n assertTrue(p.getQuantity() == 10);\n }\n }", "@Test\n void displayCompletedTasks() {\n }", "public void executePendingTransactions()\n\t{\n\t\twhile(!transactionQueue.isEmpty())\n\t\t\ttransactionQueue.poll().doTransaction();\n\t}", "public interface MqConsumer {\n}", "protected void onQueued() {}", "@Test\n public void testQueueCodeExamples() throws Exception {\n logger.info(\"Beginning testQueueCodeExamples()...\");\n\n // Allocate an empty queue\n Queue<Integer> queue = new Queue<>(256); // capacity of 256 elements\n\n // Start up some consumers\n Consumer consumer1 = new Consumer(queue);\n new Thread(consumer1).start();\n Consumer consumer2 = new Consumer(queue);\n new Thread(consumer2).start();\n\n // Start up a producer\n Producer producer = new Producer(queue);\n new Thread(producer).start();\n\n // Wait for them to process the messages\n Thread.sleep(200);\n\n logger.info(\"Completed testQueueCodeExamples().\\n\");\n }", "@Test\n\tpublic void testModifyingQueues() throws IOException, InvalidHeaderException, InterruptedException, ExecutionException {\n\t\tfinal String[] names = { \"queue 1\", \"queue 2\", \"queue 3\", \"queue 4\", \"queue 5\", \"queue 6\" };\n\t\tfinal Status[] results = { Status.SUCCESS, Status.SUCCESS, Status.SUCCESS, Status.QUEUE_NOT_EMPTY, Status.QUEUE_EXISTS, \n\t\t\t\tStatus.QUEUE_NOT_EXISTS };\n\t\t\n\t\tFuture<Boolean> result = service.submit(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor (int i = 0; i < names.length; i ++) {\n\t\t\t\t\tboolean result = i > 2 ? false : true; \n\t\t\t\t\t\n\t\t\t\t\tif (i % 2 == 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tassertEquals(result, client.CreateQueue(names[i]));\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tfail(\"Exception was thrown\");\n\t\t\t\t\t\t} \n\t\t\t\t\t} else {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tassertEquals(result, client.DeleteQueue(names[i]));\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tfail(\"Exception was thrown\");\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}, Boolean.TRUE);\n\t\t\n\t\tQueueModificationRequest request;\n\t\t// Get the request\n\t\tfor (int i = 0; i <names.length; i++) {\n\t\t\trequest = (QueueModificationRequest) this.getMessage(channel);\n\t\t\tassertEquals(names[i], request.getQueueName());\n\t\t\tthis.sendMessage(new RequestResponse(results[i]), channel);\n\t\t}\n\t\t\n\t\t\n\t\tresult.get();\n\t}", "private void flushOutbound0() {\n/* 454 */ runPendingTasks();\n/* */ \n/* 456 */ flush();\n/* */ }", "@Override\n public void flush() {\n new QueueConsumer().run();\n }", "@Test\n public void testpoll() {\n\tFileBackedBlockingQueue<String> queue = new FileBackedBlockingQueue.Builder<String>()\n\t\t.directory(TEST_DIR)\n\t\t.serializer(new StringSerializer())\n\t\t.segmentSize((TEST_STRING.length() + Segment.ENTRY_OVERHEAD_SIZE) * 100)\n\t\t.build();\n\n\t// init\n\tfor (int i = 0; i < 2000; i++)\n\t queue.add(TEST_STRING);\n\tfor (int i = 0; i < 2000; i++) {\n\t if (i <= 1000)\n\t\tAssert.assertTrue(queue.segments.getActiveSegments() > 10);\n\t else\n\t\tAssert.assertTrue(\n\t\t\t\"size : \" + queue.segments.getInActiveSegments(),\n\t\t\tqueue.segments.getInActiveSegments() >= 9);\n\t Assert.assertEquals(TEST_STRING, queue.poll());\n\t}\n }", "@Test\n public void startedSenderReceivingEventsWhileStoppingShouldDrainQueues()\n throws Exception {\n Integer lnPort = vm0.invoke(() -> WANTestBase.createFirstLocatorWithDSId(2));\n Integer nyPort = vm1.invoke(() -> WANTestBase.createFirstRemoteLocator(1, lnPort));\n\n createCacheInVMs(lnPort, vm2, vm4);\n createReceiverInVMs(vm2, vm4);\n createCacheInVMs(nyPort, vm3, vm5);\n createReceiverInVMs(vm3, vm5);\n\n vm2.invoke(() -> WANTestBase.createSender(\"ny\", 1, true, 100, 10, false, false, null, false));\n vm4.invoke(() -> WANTestBase.createSender(\"ny\", 1, true, 100, 10, false, false, null, false));\n\n vm3.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, false));\n vm5.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, false));\n\n vm2.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 1, 100,\n isOffHeap()));\n vm4.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 1, 100,\n isOffHeap()));\n\n vm3.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 1, 100,\n isOffHeap()));\n vm5.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 1, 100,\n isOffHeap()));\n\n AsyncInvocation<Void> inv =\n vm2.invokeAsync(() -> WANTestBase.doPuts(getTestMethodName() + \"_PR\", 1000));\n stopSenderInVMsAsync(\"ny\", vm2, vm4);\n inv.await();\n\n startSenderInVMsAsync(\"ny\", vm2, vm4);\n\n vm2.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ny\", 0));\n vm4.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ny\", 0));\n\n vm2.invoke(() -> WANTestBase.validateParallelSenderQueueAllBucketsDrained(\"ny\"));\n vm4.invoke(() -> WANTestBase.validateParallelSenderQueueAllBucketsDrained(\"ny\"));\n }", "@Test(timeout = 4000)\n public void test72() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n QueueConnectionFactory queueConnectionFactory0 = new QueueConnectionFactory();\n connectionFactories0.addQueueConnectionFactory(queueConnectionFactory0);\n QueueConnectionFactory[] queueConnectionFactoryArray0 = connectionFactories0.getQueueConnectionFactory();\n assertEquals(1, queueConnectionFactoryArray0.length);\n }", "@Test (timeout=5000)\n public void testQueue() throws IOException {\n File f = null;\n try {\n f = writeFile();\n\n QueueManager manager = new QueueManager(f.getCanonicalPath(), true);\n manager.setSchedulerInfo(\"first\", \"queueInfo\");\n manager.setSchedulerInfo(\"second\", \"queueInfoqueueInfo\");\n Queue root = manager.getRoot();\n assertThat(root.getChildren().size()).isEqualTo(2);\n Iterator<Queue> iterator = root.getChildren().iterator();\n Queue firstSubQueue = iterator.next();\n assertEquals(\"first\", firstSubQueue.getName());\n assertEquals(\n firstSubQueue.getAcls().get(\"mapred.queue.first.acl-submit-job\")\n .toString(),\n \"Users [user1, user2] and members of the groups [group1, group2] are allowed\");\n Queue secondSubQueue = iterator.next();\n assertEquals(\"second\", secondSubQueue.getName());\n assertThat(secondSubQueue.getProperties().getProperty(\"key\"))\n .isEqualTo(\"value\");\n assertThat(secondSubQueue.getProperties().getProperty(\"key1\"))\n .isEqualTo(\"value1\");\n // test status\n assertThat(firstSubQueue.getState().getStateName())\n .isEqualTo(\"running\");\n assertThat(secondSubQueue.getState().getStateName())\n .isEqualTo(\"stopped\");\n\n Set<String> template = new HashSet<String>();\n template.add(\"first\");\n template.add(\"second\");\n assertEquals(manager.getLeafQueueNames(), template);\n\n // test user access\n\n UserGroupInformation mockUGI = mock(UserGroupInformation.class);\n when(mockUGI.getShortUserName()).thenReturn(\"user1\");\n String[] groups = { \"group1\" };\n when(mockUGI.getGroupNames()).thenReturn(groups);\n assertTrue(manager.hasAccess(\"first\", QueueACL.SUBMIT_JOB, mockUGI));\n assertFalse(manager.hasAccess(\"second\", QueueACL.SUBMIT_JOB, mockUGI));\n assertFalse(manager.hasAccess(\"first\", QueueACL.ADMINISTER_JOBS, mockUGI));\n when(mockUGI.getShortUserName()).thenReturn(\"user3\");\n assertTrue(manager.hasAccess(\"first\", QueueACL.ADMINISTER_JOBS, mockUGI));\n\n QueueAclsInfo[] qai = manager.getQueueAcls(mockUGI);\n assertThat(qai.length).isEqualTo(1);\n // test refresh queue\n manager.refreshQueues(getConfiguration(), null);\n\n iterator = root.getChildren().iterator();\n Queue firstSubQueue1 = iterator.next();\n Queue secondSubQueue1 = iterator.next();\n // tets equal method\n assertThat(firstSubQueue).isEqualTo(firstSubQueue1);\n assertThat(firstSubQueue1.getState().getStateName())\n .isEqualTo(\"running\");\n assertThat(secondSubQueue1.getState().getStateName())\n .isEqualTo(\"stopped\");\n\n assertThat(firstSubQueue1.getSchedulingInfo())\n .isEqualTo(\"queueInfo\");\n assertThat(secondSubQueue1.getSchedulingInfo())\n .isEqualTo(\"queueInfoqueueInfo\");\n\n // test JobQueueInfo\n assertThat(firstSubQueue.getJobQueueInfo().getQueueName())\n .isEqualTo(\"first\");\n assertThat(firstSubQueue.getJobQueueInfo().getState().toString())\n .isEqualTo(\"running\");\n assertThat(firstSubQueue.getJobQueueInfo().getSchedulingInfo())\n .isEqualTo(\"queueInfo\");\n assertThat(secondSubQueue.getJobQueueInfo().getChildren().size())\n .isEqualTo(0);\n // test\n assertThat(manager.getSchedulerInfo(\"first\")).isEqualTo(\"queueInfo\");\n Set<String> queueJobQueueInfos = new HashSet<String>();\n for(JobQueueInfo jobInfo : manager.getJobQueueInfos()){\n \t queueJobQueueInfos.add(jobInfo.getQueueName());\n }\n Set<String> rootJobQueueInfos = new HashSet<String>();\n for(Queue queue : root.getChildren()){\n \t rootJobQueueInfos.add(queue.getJobQueueInfo().getQueueName());\n }\n assertEquals(queueJobQueueInfos, rootJobQueueInfos);\n // test getJobQueueInfoMapping\n assertThat(manager.getJobQueueInfoMapping().get(\"first\").getQueueName())\n .isEqualTo(\"first\");\n // test dumpConfiguration\n Writer writer = new StringWriter();\n\n Configuration conf = getConfiguration();\n conf.unset(DeprecatedQueueConfigurationParser.MAPRED_QUEUE_NAMES_KEY);\n QueueManager.dumpConfiguration(writer, f.getAbsolutePath(), conf);\n String result = writer.toString();\n assertTrue(result\n .indexOf(\"\\\"name\\\":\\\"first\\\",\\\"state\\\":\\\"running\\\",\\\"acl_submit_job\\\":\\\"user1,user2 group1,group2\\\",\\\"acl_administer_jobs\\\":\\\"user3,user4 group3,group4\\\",\\\"properties\\\":[],\\\"children\\\":[]\") > 0);\n\n writer = new StringWriter();\n QueueManager.dumpConfiguration(writer, conf);\n result = writer.toString();\n assertTrue(result.contains(\"{\\\"queues\\\":[{\\\"name\\\":\\\"default\\\",\\\"state\\\":\\\"running\\\",\\\"acl_submit_job\\\":\\\"*\\\",\\\"acl_administer_jobs\\\":\\\"*\\\",\\\"properties\\\":[],\\\"children\\\":[]},{\\\"name\\\":\\\"q1\\\",\\\"state\\\":\\\"running\\\",\\\"acl_submit_job\\\":\\\" \\\",\\\"acl_administer_jobs\\\":\\\" \\\",\\\"properties\\\":[],\\\"children\\\":[{\\\"name\\\":\\\"q1:q2\\\",\\\"state\\\":\\\"running\\\",\\\"acl_submit_job\\\":\\\" \\\",\\\"acl_administer_jobs\\\":\\\" \\\",\\\"properties\\\":[\"));\n assertTrue(result.contains(\"{\\\"key\\\":\\\"capacity\\\",\\\"value\\\":\\\"20\\\"}\"));\n assertTrue(result.contains(\"{\\\"key\\\":\\\"user-limit\\\",\\\"value\\\":\\\"30\\\"}\"));\n assertTrue(result.contains(\"],\\\"children\\\":[]}]}]}\"));\n // test constructor QueueAclsInfo\n QueueAclsInfo qi = new QueueAclsInfo();\n assertNull(qi.getQueueName());\n\n } finally {\n if (f != null) {\n f.delete();\n }\n }\n }", "@Test\n public void testDeleteSeveral() throws Exception {\n int theTaskId = 440;\n String query = String.format(\"select * from %s.%s where taskId like '%s'\",\n tableSchema.schemaName, TASK_TABLE_NAME, \"4%\");\n\n TestConnection connection = methodWatcher.getOrCreateConnection();\n connection.setAutoCommit(false);\n\n PreparedStatement ps;\n int rows;\n int total = 10;\n for (int i=0; i<total; i++) {\n // insert good data\n ps = methodWatcher.prepareStatement(\n String.format(\"insert into %s.%s (taskId, empId, startedAt, finishedAt) values (?,?,?,?)\",\n tableSchema.schemaName, TASK_TABLE_NAME));\n ps.setString(1, Integer.toString(theTaskId + i));\n ps.setInt(2, 100+i);\n ps.setInt(3, 0600+i);\n ps.setInt(4, 0700+i);\n rows = ps.executeUpdate();\n Assert.assertEquals(1, rows);\n }\n connection.commit();\n\n ResultSet rs = connection.createStatement().executeQuery(query);\n Assert.assertEquals(10, SpliceUnitTest.resultSetSize(rs));\n connection.commit();\n\n ps = methodWatcher.prepareStatement(\n String.format(\"delete from %s.%s where taskId like ?\", tableSchema.schemaName, TASK_TABLE_NAME));\n ps.setString(1, \"4%\");\n rows = ps.executeUpdate();\n Assert.assertEquals(10, rows);\n connection.commit();\n\n rs = connection.createStatement().executeQuery(query);\n Assert.assertFalse(\"No rows expected.\", rs.next());\n connection.commit();\n }", "public abstract void backoffQueue();", "protected abstract List<BlockingQueue<CallRunner>> getQueues();", "public void testGetQueue() throws NoSuchMethodException {\n DebianTestService debianTestService = new DebianTestService();\n Method asyncMethod = debianTestService.getClass().getMethod(\"calculateDebianMetadataInternalAsync\");\n Method syncMethod = debianTestService.getClass().getMethod(\"calculateDebianMetadataInternalSync\");\n Method mvnMethod = debianTestService.getClass().getMethod(\"calculateMavenMetadataAsync\");\n\n AsyncWorkQueueServiceImpl workQueueService = new AsyncWorkQueueServiceImpl();\n // request workqueue for both methods, expecting both to return the same queue object\n WorkQueue<WorkItem> asyncQueue = workQueueService.getWorkQueue(asyncMethod, debianTestService);\n WorkQueue<WorkItem> syncQueue = workQueueService.getWorkQueue(syncMethod, debianTestService);\n WorkQueue<WorkItem> mvnQueue = workQueueService.getWorkQueue(mvnMethod, debianTestService);\n // the comparision should not be by the content, but by the reference!\n assertTrue(asyncQueue == syncQueue);\n // make sure the maven queue is not the same as the debian\n assertTrue(asyncQueue != mvnQueue);\n\n // validate the queues map content\n Map<String, WorkQueue<WorkItem>> queues = workQueueService.getExistingWorkQueues();\n assertEquals(queues.size(), 3);\n assertNotEquals(queues.get(\"calculateDebianMetadataInternalAsync\"), null);\n // the comparision should not be by the content, but by the reference! we expect the queue to have two keys, each key points on the same object\n assertTrue(queues.get(\"calculateDebianMetadataInternalAsync\") == queues.get(\"calculateDebianMetadataInternalSync\"));\n // make sure the maven queue is not the same as the debian\n assertTrue(queues.get(\"mvnQueue\") != queues.get(\"calculateDebianMetadataInternalAsync\"));\n }", "@Test\n public void peekTest() {\n assertThat(\"work1\", is(this.queue.peek()));\n }", "@Test\n public void testEnqueue() {\n Queue queue = new Queue();\n queue.enqueue(testParams[1]);\n queue.enqueue(testParams[2]);\n queue.enqueue(testParams[3]);\n queue.enqueue(testParams[4]);\n queue.enqueue(testParams[5]);\n\n Object[] expResult = {testParams[1], testParams[2], testParams[3], testParams[4], testParams[5]};\n\n // call tested method\n Object[] actualResult = new Object[queue.getSize()];\n int len = queue.getSize();\n for(int i = 0; i < len; i++){\n actualResult[i] = queue.dequeue();\n }\n\n // compare expected result with actual result\n assertArrayEquals(expResult, actualResult);\n }", "public void testTemporaryUnnamedQueueConsume()\n {\n ObjectProperties temporary = new ObjectProperties();\n temporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n ObjectProperties normal = new ObjectProperties();\n normal.put(ObjectProperties.Property.AUTO_DELETE, Boolean.FALSE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n _ruleSet.grant(0, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, temporary);\n assertEquals(1, _ruleSet.getRuleCount());\n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n \n // defer to global if exists, otherwise default answer - this is handled by the security manager\n assertEquals(Result.DEFER, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, normal));\n }", "@Test(timeout = 30000)\n public void testConcurrentModifications() throws Exception {\n assertFalse(\"Something is wrong\", CurrentUnitOfWork.isStarted());\n final UUID aggregateId = UUID.randomUUID();\n commandBus.dispatch(asCommandMessage(new CreateStubAggregateCommand(aggregateId)));\n ExecutorService service = Executors.newFixedThreadPool(THREAD_COUNT);\n final AtomicLong counter = new AtomicLong(0);\n List<Future<?>> results = new LinkedList<>();\n for (int t = 0; t < 30; t++) {\n results.add(service.submit(() -> {\n try {\n commandBus.dispatch(asCommandMessage(new UpdateStubAggregateCommand(aggregateId)));\n commandBus.dispatch(asCommandMessage(new ProblematicCommand(aggregateId)),\n SilentCallback.INSTANCE);\n commandBus.dispatch(asCommandMessage(new LoopingCommand(aggregateId)));\n counter.incrementAndGet();\n } catch (Exception ex) {\n throw new RuntimeException(ex);\n }\n }));\n }\n service.shutdown();\n while (!service.awaitTermination(3, TimeUnit.SECONDS)) {\n System.out.println(\"Did \" + counter.get() + \" batches\");\n }\n\n for (Future<?> result : results) {\n if (result.isDone()) {\n result.get();\n }\n }\n assertEquals(91, registeringEventHandler.getCapturedEvents().size());\n validateDispatchingOrder();\n }", "@Test(timeout = 4000)\n public void test00() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n connectionFactories0.isValid();\n QueueConnectionFactory[] queueConnectionFactoryArray0 = connectionFactories0.getQueueConnectionFactory();\n assertEquals(0, queueConnectionFactoryArray0.length);\n }", "@Test\n void displayIncompleteTasks() {\n }", "@Test\n public void startedSenderReceivingEventsWhileStartingShouldDrainQueues()\n throws Exception {\n Integer lnPort = vm0.invoke(() -> WANTestBase.createFirstLocatorWithDSId(2));\n Integer nyPort = vm1.invoke(() -> WANTestBase.createFirstRemoteLocator(1, lnPort));\n\n createCacheInVMs(lnPort, vm2, vm4);\n createReceiverInVMs(vm2, vm4);\n createCacheInVMs(nyPort, vm3, vm5);\n createReceiverInVMs(vm3, vm5);\n\n vm2.invoke(() -> WANTestBase.createSender(\"ny\", 1, true, 100, 10, false, false, null, true));\n vm4.invoke(() -> WANTestBase.createSender(\"ny\", 1, true, 100, 10, false, false, null, true));\n\n vm3.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, true));\n vm5.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, true));\n\n vm2.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 1, 100,\n isOffHeap()));\n vm4.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 1, 100,\n isOffHeap()));\n\n vm3.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 1, 100,\n isOffHeap()));\n vm5.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 1, 100,\n isOffHeap()));\n\n AsyncInvocation<Void> inv =\n vm2.invokeAsync(() -> WANTestBase.doPuts(getTestMethodName() + \"_PR\", 1000));\n startSenderInVMsAsync(\"ny\", vm2, vm4);\n inv.await();\n\n vm2.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ny\", 0));\n vm4.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ny\", 0));\n\n vm2.invoke(() -> WANTestBase.validateParallelSenderQueueAllBucketsDrained(\"ny\"));\n vm4.invoke(() -> WANTestBase.validateParallelSenderQueueAllBucketsDrained(\"ny\"));\n }", "@Test\n public void testTaskAddedAfterShutdownNotAbandoned() throws Exception {\n LinkedBlockingQueue<Runnable> taskQueue = new LinkedBlockingQueue<Runnable>() {\n @Override\n public boolean remove(Object o) {\n throw new UnsupportedOperationException();\n }\n };\n\n final Runnable dummyTask = new Runnable() {\n @Override\n public void run() {\n }\n };\n\n final LinkedBlockingQueue<Future<?>> submittedTasks = new LinkedBlockingQueue<Future<?>>();\n final AtomicInteger attempts = new AtomicInteger();\n final AtomicInteger rejects = new AtomicInteger();\n\n ExecutorService executorService = Executors.newSingleThreadExecutor();\n final SingleThreadEventExecutor executor = new SingleThreadEventExecutor(null, executorService, false,\n taskQueue, RejectedExecutionHandlers.reject()) {\n @Override\n protected void run() {\n while (!confirmShutdown()) {\n Runnable task = takeTask();\n if (task != null) {\n task.run();\n }\n }\n }\n\n @Override\n protected boolean confirmShutdown() {\n boolean result = super.confirmShutdown();\n // After shutdown is confirmed, scheduled one more task and record it\n if (result) {\n attempts.incrementAndGet();\n try {\n submittedTasks.add(submit(dummyTask));\n } catch (RejectedExecutionException e) {\n // ignore, tasks are either accepted or rejected\n rejects.incrementAndGet();\n }\n }\n return result;\n }\n };\n\n // Start the loop\n executor.submit(dummyTask).sync();\n\n // Shutdown without any quiet period\n executor.shutdownGracefully(0, 100, TimeUnit.MILLISECONDS).sync();\n\n // Ensure there are no user-tasks left.\n assertEquals(0, executor.drainTasks());\n\n // Verify that queue is empty and all attempts either succeeded or were rejected\n assertTrue(taskQueue.isEmpty());\n assertTrue(attempts.get() > 0);\n assertEquals(attempts.get(), submittedTasks.size() + rejects.get());\n for (Future<?> f : submittedTasks) {\n assertTrue(f.isSuccess());\n }\n }", "@Test\n public void totalOfSinglePersonWaiting(){\n // Arrange\n QueueOfPeople queueOfPeople = new QueueOfPeople(Arrays.asList(new Person(\"Dude McGuyson\")));\n // Act\n // Assert\n assertEquals(1.0, queueOfPeople.getAmountOfPeopleWaiting(), 0.0);\n }", "@Test\n public void popTest() {\n assertThat(\"work1\", is(this.queue.pop()));\n assertThat(\"work2\", is(this.queue.peek()));\n }", "@Test\n public void testDequeue() {\n Queue queue = new Queue();\n queue.enqueue(testParams[1]);\n queue.enqueue(testParams[2]);\n\n Object[] expResult = {testParams[1], testParams[2]};\n\n // call tested method\n Object[] actualResult = new Object[queue.getSize()];\n int len = queue.getSize();\n for(int i = 0; i < len; i++){\n actualResult[i] = queue.dequeue();\n }\n\n // compare expected result with actual result\n assertArrayEquals(expResult, actualResult);\n }", "public void testPoll() {\n SynchronousQueue q = new SynchronousQueue();\n\tassertNull(q.poll());\n }", "@Test\n public void totalOfEmptyQueue(){\n // Arrange\n QueueOfPeople queueOfPeople = new QueueOfPeople(Arrays.asList());\n // Act\n // Assert\n assertEquals(0.0, queueOfPeople.getAmountOfPeopleWaiting(), 0.0);\n }", "public void executeQueue() {\n\tLog.d(TaskExecutor.class.getName(), \"Execute \" + mQueue.size() + \" Tasks\");\n\tfor (Task task : mQueue) {\n\t if (!mTaskExecutor.getQueue().contains(task))\n\t\texecuteTask(task);\n\t}\n }", "@Test\n public void testConsumerAccessExceptionDuringBatchRun() throws ExecutionException, InterruptedException {\n List<Chunk> chunkList = new ArrayList<>();\n //generate chunks\n int numOfChunksToUpload = 1000;\n while (numOfChunksToUpload > 0) {\n chunkList.add(generateChunk(10));\n numOfChunksToUpload--;\n }\n\n //Start a producer thread\n ExecutorService executorService = Executors.newFixedThreadPool(2);\n ProducerThread producerThread = new ProducerThread(\"Producer1\", chunkList, 20, new ApplicationService());\n Future<String> producerResult = executorService.submit(producerThread);\n //Wait for batch run to start\n Thread.sleep(10);\n //Start a consumer thread in parallel\n Future<String> result = executorService.submit(new ConsumerThread(\"Consumer1\", 1, new ApplicationService()));\n //Consumer threads gets null value of instrument id price\n assertNull(result.get());\n log.info(\"Producer result:\" + producerResult.get());\n\n }", "@Test\n @SuppressWarnings({\"unchecked\"})\n public void moveDown() {\n exQ.moveUp(JobIdFactory.newId());\n //the first shouldent be moved\n exQ.moveDown(this.ids.get(3));\n Mockito.verify(queue, Mockito.times(0)).swap( Mockito.any(PrioritizableRunnable.class),Mockito.any(PrioritizableRunnable.class));\n //otherwise move it up\n exQ.moveDown(this.ids.get(2));\n Mockito.verify(queue, Mockito.times(1)).swap(this.runnables.get(2),this.runnables.get(3));\n }", "protected void addChannelToReadCompletePendingQueue() {\n/* 354 */ while (!Http2MultiplexHandler.this.readCompletePendingQueue.offer(this)) {\n/* 355 */ Http2MultiplexHandler.this.processPendingReadCompleteQueue();\n/* */ }\n/* */ }", "@Test\n void notSafe() throws InterruptedException {\n Queue<String> queue = new LinkedList<>();\n\n CountDownLatch consumer1CountDownLatch = new CountDownLatch(1);\n CountDownLatch consumer2CountDownLatch = new CountDownLatch(1);\n CountDownLatch endCountDown = new CountDownLatch(1);\n\n Thread consumer1 = new Thread(\n () -> {\n try {\n synchronized (queue) {\n System.out.println(\"consumer1 in sync block \");\n\n if (queue.isEmpty()) {\n System.out.println(\"consumer1 waiting \");\n consumer1CountDownLatch.countDown();\n queue.wait();\n System.out.println(\"consumer1 wake up\");\n }\n System.out.println(\"consumer1 remove item\");\n\n assertThatThrownBy(queue::remove)\n .isInstanceOf(NoSuchElementException.class);\n endCountDown.countDown();\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n );\n Thread consumer2 = new Thread(\n () -> {\n try {\n synchronized (queue) {\n System.out.println(\"consumer2 in sync block \");\n if (queue.isEmpty()) {\n System.out.println(\"consumer2 waiting \");\n consumer2CountDownLatch.countDown();\n queue.wait();\n System.out.println(\"consumer2 wake up\");\n }\n System.out.println(\"consumer2 remove item\");\n queue.remove();\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n );\n\n Thread provider = new Thread(\n () -> {\n try {\n synchronized (queue) {\n System.out.println(\"provider in sync block \");\n System.out.println(\"provider add item \");\n queue.add(\"SOME THING\");\n System.out.println(\"provider notifyAll\");\n queue.notifyAll();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n );\n\n consumer1.start();\n consumer1CountDownLatch.await();\n\n consumer2.start();\n consumer2CountDownLatch.await();\n\n provider.start();\n endCountDown.await();\n\n assertThat(endCountDown.getCount()).isEqualTo(0);\n }", "protected abstract long availableInQueue(long paramLong1, long paramLong2);", "@Override\n\tpublic void run() {\n\t\tlong starttime = System.currentTimeMillis();\n\n\t\tboolean started = statusMap.get(type);\n\t\tif (!started) {\n\n\t\t\tstatusMap.put(type, true);\n\t\t\tlogger.info(\n\t\t\t\t\t\"task of id add to queue of busType : {} started,current milestone : {}\",\n\t\t\t\t\tAptConstants.BUS_NAME_MAP.get(type), milestone);\n\t\t\ttry {\n\t\t\t\tIdGeneratorQueue queue = QueueUtil\n\t\t\t\t\t\t.getIdGeneratorQueue(AptConstants.BUS_NAME_MAP.get(type));\n\n\t\t\t\tif (null == queue) {\n\t\t\t\t\tlogger.error(\n\t\t\t\t\t\t\t\"task of add id to queue faile , no queue of name: {} finded\",\n\t\t\t\t\t\t\tAptConstants.BUS_NAME_MAP.get(type));\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tlogger.info(\"queue : {} has {} id not uesed.\", queue.getSize());\n\t\t\t\tlong nextMilestone = generatorService.nextMilestone(type);\n\t\t\t\tlogger.info(\"task of add id to queue,nextMilestone is {}\", nextMilestone);\n\n\t\t\t\tif (nextMilestone <= milestone) {\n\t\t\t\t\tlogger.error(\n\t\t\t\t\t\t\t\"task of get next milestone error,nextMileStone is smaller, busType: {},miletone : {}\",\n\t\t\t\t\t\t\tAptConstants.BUS_NAME_MAP.get(type), milestone);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tlong start = milestone + 1;\n\t\t\t\tlong end = nextMilestone + 1;\n\n\t\t\t\tlogger.info(\"start add id to queue : {},start : {},end : {}\",\n\t\t\t\t\t\tAptConstants.BUS_NAME_MAP.get(type), start, end);\n\t\t\t\tqueue.setMileStone(nextMilestone);\n\t\t\t\t//填充数据 满等待\n\t\t\t\tfor (long i = start; i <= end; i++) {\n\t\t\t\t\tqueue.putId(i);\n\t\t\t\t}\n\t\t\t\tlogger.info(\"success add id to queue! busType : {}\",\n\t\t\t\t\t\tAptConstants.BUS_NAME_MAP.get(type));\n\t\t\t\tstatusMap.put(type, false);\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.error(\"task of id add to queue of busType : {} failed \",\n\t\t\t\t\t\tAptConstants.BUS_NAME_MAP.get(type));\n\t\t\t\tlogger.error(\"\", e);\n\t\t\t}\n\t\t}\n\t\tlong endtime = System.currentTimeMillis();\n\n\t\tlogger.info(\"task off add to queue ended,busType : {},usetime : {}\",\n\t\t\t\tAptConstants.BUS_NAME_MAP.get(type), endtime - starttime);\n\t}", "@Test\n public void shouldDrainTheQueueWhenReloading() throws Exception {\n Project.NameKey targetProject = createTestProject(project + \"replica\");\n String remoteName = \"drainQueue\";\n setReplicationDestination(remoteName, \"replica\", ALL_PROJECTS);\n\n config.setInt(\"remote\", remoteName, \"drainQueueAttempts\", 2);\n config.save();\n reloadConfig();\n\n Result pushResult = createChange();\n shutdownDestinations();\n\n RevCommit sourceCommit = pushResult.getCommit();\n String sourceRef = pushResult.getPatchSet().refName();\n\n try (Repository repo = repoManager.openRepository(targetProject)) {\n waitUntil(() -> checkedGetRef(repo, sourceRef) != null);\n Ref targetBranchRef = getRef(repo, sourceRef);\n assertThat(targetBranchRef).isNotNull();\n assertThat(targetBranchRef.getObjectId()).isEqualTo(sourceCommit.getId());\n }\n }", "@Test\n public void testPoll2() {\n \tBoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e));\n try {\n Assert.assertNull(ecs.poll());\n Callable<String> c = new StringTask();\n ecs.submit(c);\n Future<String> f = ecs.poll(SHORT_DELAY_MS, TimeUnit.MILLISECONDS);\n if (f != null) Assert.assertTrue(f.isDone());\n } catch (Exception ex) {\n unexpectedException();\n }\n }", "public interface QueueService {\n void saveQueue(Queue queue);\n\n Queue getQueueByIdQueue(int idQueue);\n\n List<Queue> getAllQueueToStudent(int idTimetable);\n\n boolean checkIfExists(Queue queue);\n\n List<Queue> getQueueToSubject(int idTimetable, int idStudent);\n\n List<Queue> tryToGetQueue(int idUser);\n\n void deleteByIdTimetableIdWorkIdStudent(int timetableId, int idOfWork, int studentId);\n}", "@Test\n @DisplayName(\"Testing remove StringQueue\")\n public void testRemoveStringQueue() {\n queue.offer(\"Test\");\n assertEquals(queue.remove(), \"Test\");\n\n assertThrows(NoSuchElementException.class, () -> {\n queue.remove();\n });\n }", "@Test\n public void testPoll1() {\n \tBoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e));\n try {\n Assert.assertNull(ecs.poll());\n Callable<String> c = new StringTask();\n ecs.submit(c);\n Thread.sleep(SHORT_DELAY_MS);\n for (;;) {\n Future<String> f = ecs.poll();\n if (f != null) {\n Assert.assertTrue(f.isDone());\n break;\n }\n }\n } catch (Exception ex) {\n unexpectedException();\n }\n }", "@Test\n public void shouldNotReadWholeStreamWithDefault() {\n final Queue<String> queue = new LinkedBlockingQueue<>();\n\n Executors.newCachedThreadPool().submit(() -> produceData(queue));\n\n final List<String> collected = queue.stream().collect(Collectors.toList());\n assertThat(collected, not(hasItems(\"0\", \"1\", \"2\", \"3\", \"4\")));\n }", "private void waitForBackgroupTasks() {\n this.objectStore.getAllObjectIDs();\n this.objectStore.getAllEvictableObjectIDs();\n this.objectStore.getAllMapTypeObjectIDs();\n }", "@Test\n public void testMaxQueue() throws Throwable {\n internalMaxQueue(\"core\");\n internalMaxQueue(\"openwire\");\n internalMaxQueue(\"amqp\");\n }", "@Test\n public void collectionTaskInTheWorkScopeOfCommittedWPEnabled() throws Exception {\n\n // Given a work package with Collection Required boolean set to TRUE\n final TaskKey lWorkPackage = createWorkPackage();\n\n schedule( lWorkPackage, true );\n\n SchedStaskTable lStaskTable = InjectorContainer.get().getInstance( SchedStaskDao.class )\n .findByPrimaryKey( lWorkPackage );\n\n // Then Collection Required param of work package set to TRUE\n assertTrue( lStaskTable.isCollectionRequiredBool() );\n }", "@Test(timeout = 4000)\n public void test46() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n TopicConnectionFactory[] topicConnectionFactoryArray0 = new TopicConnectionFactory[0];\n connectionFactories0.setTopicConnectionFactory(topicConnectionFactoryArray0);\n QueueConnectionFactory[] queueConnectionFactoryArray0 = connectionFactories0.getQueueConnectionFactory();\n connectionFactories0.setQueueConnectionFactory(queueConnectionFactoryArray0);\n assertEquals(0, queueConnectionFactoryArray0.length);\n }", "@Test\n public void sizeTest() {\n assertThat(4, is(this.queue.size()));\n }", "public interface QueueManager {\n List<Message> messages = null;\n\n int insertQueue(String queueId, Message message);\n\n List<Message> getQueue(String queueId, int num);\n}", "@Override\n\tpublic void run() {\n\t\tNewDeliverTaskManager ndtm = NewDeliverTaskManager.getInstance();\n\t\tif(ndtm != null && ndtm.isNewDeliverTaskAct) {\n\t\t\tNewDeliverTaskManager.logger.error(\"[旧的任务库删除线程启动成功][\" + this.getName() + \"]\");\n\t\t\twhile(isStart) {\n\t\t\t\tint count1 = 0;\n\t\t\t\tint count2 = 0;\n\t\t\t\tif(needRemoveList != null && needRemoveList.size() > 0) {\n\t\t\t\t\tList<DeliverTask> rmovedList = new ArrayList<DeliverTask>();\n\t\t\t\t\tfor(DeliverTask dt : needRemoveList) {\n\t\t\t\t\t\tDeliverTaskManager.getInstance().notifyDeleteFromCache(dt);\n\t\t\t\t\t\trmovedList.add(dt);\n\t\t\t\t\t\tcount1++;\n\t\t\t\t\t\tif(count1 >= 300) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsynchronized (this.needRemoveList) {\n\t\t\t\t\t\tfor(DeliverTask dt : rmovedList) {\n\t\t\t\t\t\t\tneedRemoveList.remove(dt);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(heartBeatTime);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\tTransitRobberyManager.logger.error(\"删除旧的已完成列表线程出错1:\", e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(teRemoveList != null && teRemoveList.size() > 0) {\n\t\t\t\t\tList<TaskEntity> teRemovedList = new ArrayList<TaskEntity>();\n\t\t\t\t\tfor(TaskEntity te : teRemoveList) {\n\t\t\t\t\t\tTaskEntityManager.getInstance().notifyDeleteFromCache(te);\n\t\t\t\t\t\tteRemovedList.add(te);\n\t\t\t\t\t\tcount2++;\n\t\t\t\t\t\tif(count2 >= 100) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsynchronized (this.teRemoveList) {\n\t\t\t\t\t\tfor(TaskEntity te : teRemovedList) {\n\t\t\t\t\t\t\tteRemoveList.remove(te);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else{\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(30000);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\tTransitRobberyManager.logger.error(\"删除旧的已完成列表线程出错2:\", e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tTransitRobberyManager.logger.error(\"[旧的任务库删除线程关闭][\" + this.getName() + \"]\");\n\t}", "public void testPollInExecutor() {\n final SynchronousQueue q = new SynchronousQueue();\n ExecutorService executor = Executors.newFixedThreadPool(2);\n executor.execute(new Runnable() {\n public void run() {\n threadAssertNull(q.poll());\n try {\n threadAssertTrue(null != q.poll(MEDIUM_DELAY_MS, TimeUnit.MILLISECONDS));\n threadAssertTrue(q.isEmpty());\n }\n catch (InterruptedException e) {\n threadUnexpectedException();\n }\n }\n });\n\n executor.execute(new Runnable() {\n public void run() {\n try {\n Thread.sleep(SMALL_DELAY_MS);\n q.put(new Integer(1));\n }\n catch (InterruptedException e) {\n threadUnexpectedException();\n }\n }\n });\n\n joinPool(executor);\n }", "public void testBidOnTask() {\n\n Context context = this.getInstrumentation().getTargetContext().getApplicationContext();\n ArrayList<String> queryList = new ArrayList<>();\n\n // Delete the test requester if their account already exists\n DataManager.deleteUsers delRequester = new DataManager.deleteUsers(context);\n queryList.clear();\n queryList = findUserID(\"bidTestRequester\");\n delRequester.execute(queryList);\n\n // Delete the first test provider if their account already exists\n DataManager.deleteUsers delProvider1 = new DataManager.deleteUsers(context);\n queryList.clear();\n queryList = findUserID(\"bitTestProvider1\");\n delProvider1.execute(queryList);\n\n // Delete the second test provider if their account already exists\n DataManager.deleteUsers delProvider2 = new DataManager.deleteUsers(context);\n queryList.clear();\n queryList = findUserID(\"bitTestProvider2\");\n delProvider2.execute(queryList);\n\n // Delete test task 1 if it already exists\n DataManager.deleteTasks delTask1 = new DataManager.deleteTasks(context);\n queryList.clear();\n queryList = findTaskID(\"Mow My Lawn (Bid Test)\");\n Log.e(\"Mow My Lawn ID2\", queryList.get(0).toString());\n delTask1.execute(queryList);\n\n // Create an account for the test requester\n // NOTE: Creating accounts is covered in another use case\n DataManager.addUsers addRequester = new DataManager.addUsers(context);\n User requester = new User(\"bidTestRequester\", \"test\", \"[email protected]\", \"7809396963\", \"Zach\", \"Redfern\");\n addRequester.execute(requester);\n\n // Create an account for the first test provider\n // NOTE: Creating accounts is covered in another use case\n DataManager.addUsers addProvider1 = new DataManager.addUsers(context);\n User provider1 = new User(\"bidTestProvider1\", \"test\",\"[email protected]\", \"5875551234\", \"Bobbi\", \"Pandachuck\");\n addProvider1.execute(provider1);\n\n // Create an account for the second test provider\n // NOTE: Creating accounts is covered in another use case\n DataManager.addUsers addProvider2 = new DataManager.addUsers(context);\n User provider2 = new User(\"bidTestProvider2\", \"test\",\"[email protected]\", \"9805567812\", \"Rebecca\", \"Black\");\n addProvider2.execute(provider2);\n\n // Create sample tests to bid on\n // NOTE: Adding tasks is covered in another use case)\n DataManager.addTasks addTask1 = new DataManager.addTasks(context);\n Task task1 = new Task(\"bidTestRequester\", \"Mow my lawn.\", \"Mow My Lawn (Bid Test)\", 60.00, Task.TaskStatus.REQUESTED);\n addTask1.execute(task1);\n\n\n\n\n\n\n // Login as the first test provider\n solo.assertCurrentActivity(\"Wrong Activity\", LoginActivity.class);\n solo.enterText((EditText) solo.getView(R.id.login_etUsername), \"bidTestProvider1\");\n solo.enterText((EditText) solo.getView(R.id.login_etPassword), \"test\");\n solo.sleep(2000);\n solo.clickOnButton(\"Sign In\");\n\n // Assert that we have entered the recent listings activity\n solo.sleep(2000);\n solo.assertCurrentActivity(\"Wrong Activity\", RecentListingsActivity.class);\n RecentListingsActivity recentListingsActivity = (RecentListingsActivity) solo.getCurrentActivity();\n ArrayList<Task> taskList1 = recentListingsActivity.getTaskList();\n\n // Get the position of the test tasks in the task list\n int posTask1 = -1;\n for (int i = 0; i < taskList1.size(); ++i) {\n Log.e(\"Task\", taskList1.get(i).getTitle());\n if (taskList1.get(i).getTitle().equals(\"Mow My Lawn (Bid Test)\")) {\n posTask1 = i;\n }\n }\n\n // If the test task was not found, fail the test\n if (posTask1 == -1) {\n assertTrue(Boolean.FALSE);\n }\n\n // Click the first test task and place an initial bid on it\n solo.sleep(2000);\n solo.scrollDownRecyclerView(posTask1);\n solo.clickInRecyclerView(posTask1);\n solo.assertCurrentActivity(\"Wrong Activity\", PlaceBidActivity.class);\n TextView title1 = (TextView) solo.getView(R.id.details_task_title);\n assertTrue(title1.getText().toString().equals(\"Mow My Lawn (Bid Test)\"));\n FrameLayout frameLayout1 = (FrameLayout) solo.getView(R.id.details_frame_layout);\n solo.enterText((EditText) frameLayout1.findViewById(R.id.my_bid_amount), \"59.99\");\n solo.enterText((EditText) frameLayout1.findViewById(R.id.my_bid_description), \"I will do it!\");\n solo.sleep(2000);\n solo.clickOnButton(\"Bid\");\n solo.assertCurrentActivity(\"Wrong Activity\", RecentListingsActivity.class);\n\n // View the tasks the provider has bid on\n solo.clickOnImageButton(0);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_CENTER);\n solo.assertCurrentActivity(\"Wrong Activity\", ListTaskActivity.class);\n solo.sleep(2000);\n\n\n\n\n\n // Logout and login as the second task provider\n solo.goBack();\n solo.clickOnImageButton(0);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_CENTER);\n solo.sleep(2000);\n solo.assertCurrentActivity(\"Wrong Activity\", LoginActivity.class);\n solo.enterText((EditText) solo.getView(R.id.login_etUsername), \"bidTestProvider2\");\n solo.enterText((EditText) solo.getView(R.id.login_etPassword), \"test\");\n solo.sleep(2000);\n solo.clickOnButton(\"Sign In\");\n\n // Assert that we have entered the recent listings activity\n solo.sleep(2000);\n solo.assertCurrentActivity(\"Wrong Activity\", RecentListingsActivity.class);\n RecentListingsActivity recentListingsActivity2 = (RecentListingsActivity) solo.getCurrentActivity();\n ArrayList<Task> taskList2 = recentListingsActivity2.getTaskList();\n\n // Get the position of the test tasks in the task list\n int posTask2 = -1;\n for (int i = 0; i < taskList2.size(); ++i) {\n Log.e(\"Task\", taskList2.get(i).getTitle());\n if (taskList2.get(i).getTitle().equals(\"Mow My Lawn (Bid Test)\")) {\n posTask2 = i;\n }\n }\n\n // If the test task was not found, fail the test\n if (posTask2 == -1) {\n assertTrue(Boolean.FALSE);\n }\n\n // Click the first test task and place an initial bid on it\n solo.sleep(2000);\n solo.scrollDownRecyclerView(posTask2);\n solo.clickInRecyclerView(posTask2);\n solo.assertCurrentActivity(\"Wrong Activity\", PlaceBidActivity.class);\n TextView title2 = (TextView) solo.getView(R.id.details_task_title);\n assertTrue(title1.getText().toString().equals(\"Mow My Lawn (Bid Test)\"));\n FrameLayout frameLayout2 = (FrameLayout) solo.getView(R.id.details_frame_layout);\n solo.enterText((EditText) frameLayout2.findViewById(R.id.my_bid_amount), \"40.00\");\n solo.enterText((EditText) frameLayout2.findViewById(R.id.my_bid_description), \"I have a GrassMaster6000!\");\n solo.sleep(2000);\n solo.clickOnButton(\"Bid\");\n solo.assertCurrentActivity(\"Wrong Activity\", RecentListingsActivity.class);\n\n // View the tasks the provider has bid on\n solo.clickOnImageButton(0);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_CENTER);\n solo.assertCurrentActivity(\"Wrong Activity\", ListTaskActivity.class);\n solo.sleep(2000);\n\n\n\n // Logout and log in as the requester\n solo.goBack();\n solo.clickOnImageButton(0);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_CENTER);\n solo.sleep(2000);\n solo.assertCurrentActivity(\"Wrong Activity\", LoginActivity.class);\n solo.enterText((EditText) solo.getView(R.id.login_etUsername), \"bidTestRequester\");\n solo.enterText((EditText) solo.getView(R.id.login_etPassword), \"test\");\n solo.sleep(2000);\n solo.clickOnButton(\"Sign In\");\n\n // View the tasks that the requester has bids on\n solo.assertCurrentActivity(\"WrongActivity\", RecentListingsActivity.class);\n solo.clickOnImageButton(0);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_CENTER);\n solo.assertCurrentActivity(\"WrongActivity\", ListTaskActivity.class);\n solo.clickOnImageButton(1);\n solo.sleep(3000);\n\n // Get the position of the test task in the task list\n ListTaskActivity taskListActivity = (ListTaskActivity) solo.getCurrentActivity();\n ArrayList<Task> taskList3 = taskListActivity.getTaskList();\n int pos = -1;\n for (int i = 0; i < taskList3.size(); ++i) {\n Log.e(\"Task\", taskList3.get(i).getTitle());\n if (taskList3.get(i).getTitle().equals(\"Mow My Lawn (Bid Test)\")) {\n pos = i;\n }\n }\n\n // Click the test task in the recycler view to view the bids made on the test\n solo.sleep(2000);\n solo.scrollDownRecyclerView(pos);\n solo.clickInRecyclerView(pos);\n solo.assertCurrentActivity(\"Wrong Activity\", AddEditTaskActivity.class);\n solo.sleep(2000);\n\n // Decline one of the bids, show it is no longer in the list of bids on that task\n solo.scrollDownRecyclerView(0);\n solo.clickInRecyclerView(0);\n solo.sleep(2000);\n solo.clickOnButton(\"Decline\");\n\n // Accept one bid and show it as accepted\n solo.scrollDownRecyclerView(0);\n solo.clickInRecyclerView(0);\n solo.sleep(2000);\n solo.clickOnButton(\"Accept\");\n solo.clickOnImageButton(1);\n solo.sleep(2000);\n\n\n\n\n // Logout and login as the second task provider\n solo.goBack();\n solo.clickOnImageButton(0);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_CENTER);\n solo.sleep(2000);\n solo.assertCurrentActivity(\"Wrong Activity\", LoginActivity.class);\n solo.enterText((EditText) solo.getView(R.id.login_etUsername), \"bidTestProvider2\");\n solo.enterText((EditText) solo.getView(R.id.login_etPassword), \"test\");\n solo.sleep(2000);\n solo.clickOnButton(\"Sign In\");\n\n // View the tasks the provider has bid on\n solo.clickOnImageButton(0);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_DOWN);\n solo.sendKey(KeyEvent.KEYCODE_DPAD_CENTER);\n solo.assertCurrentActivity(\"Wrong Activity\", ListTaskActivity.class);\n solo.sleep(2000);\n solo.clickOnImageButton(1);\n solo.sleep(3000);\n\n // Delete the test requester if their account already exists\n DataManager.deleteUsers delRequester2 = new DataManager.deleteUsers(context);\n queryList.clear();\n queryList = findUserID(\"bidTestRequester\");\n delRequester2.execute(queryList);\n\n // Delete the first test provider if their account already exists\n DataManager.deleteUsers delProvider3 = new DataManager.deleteUsers(context);\n queryList.clear();\n queryList = findUserID(\"bitTestProvider1\");\n delProvider3.execute(queryList);\n\n // Delete the second test provider if their account already exists\n DataManager.deleteUsers delProvider4 = new DataManager.deleteUsers(context);\n queryList.clear();\n queryList = findUserID(\"bitTestProvider2\");\n delProvider4.execute(queryList);\n\n // Delete test task 1 if it already exists\n DataManager.deleteTasks delTask4 = new DataManager.deleteTasks(context);\n queryList.clear();\n queryList = findTaskID(\"Mow My Lawn (Bid Test)\");\n Log.e(\"Mow My Lawn ID2\", queryList.get(0).toString());\n delTask4.execute(queryList);\n }", "@Override\r\npublic void run() {\n\tfor (int i = 0; i < 10; i++) {\r\n\t\ttry {\r\n\t\t\tbQueue.take();\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tSystem.out.println(\"------苹果的数量是:\"+\" \"+\" \"+bQueue.size());\r\n\t}\r\n}", "public void onQueue();", "String addReceiveQueue();", "@Test\n @DisplayName(\"Testing offer StringQueue\")\n public void testOfferStringQueue() {\n assertEquals(queue.offer(\"Test\"), true);\n assertEquals(queue.offer(\"Test2\"), true);\n assertEquals(queue.offer(\"Test3\"), true);\n assertEquals(queue.offer(\"Test4\"), true);\n assertEquals(queue.offer(\"Test5\"), true);\n assertEquals(queue.offer(\"Test6\"), true);\n assertEquals(queue.offer(\"Test6\"), false);\n }", "@Test\n public void testTake() {\n \tBoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e));\n try {\n Callable<String> c = new StringTask();\n ecs.submit(c);\n Future<String> f = ecs.take();\n Assert.assertTrue(f.isDone());\n } catch (Exception ex) {\n unexpectedException();\n }\n }", "private void queueModified() {\n\tmServiceExecutorCallback.queueModified();\n }", "@Test\n public void testQuery() {\n DataSetArgument lArgs = new DataSetArgument();\n lArgs.add( \"aMsgId\", \"100\" );\n\n QuerySet lQs = QuerySetFactory.getInstance()\n .executeQuery( \"com.mxi.mx.integration.query.process.LookupQueueId\", lArgs );\n\n Assert.assertEquals( \"Row Count\", 1, lQs.getRowCount() );\n\n lQs.next();\n\n Assert.assertEquals( \"Queue Id\", 1000, lQs.getInt( \"queue_id\" ) );\n }", "@Test\n @SuppressWarnings({\"unchecked\"})\n public void moveUp() {\n exQ.moveUp(JobIdFactory.newId());\n Mockito.verify(queue, Mockito.times(0)).swap( Mockito.any(PrioritizableRunnable.class),Mockito.any(PrioritizableRunnable.class));\n //the first shouldent be moved\n exQ.moveUp(this.ids.get(0));\n Mockito.verify(queue, Mockito.times(0)).swap( Mockito.any(PrioritizableRunnable.class),Mockito.any(PrioritizableRunnable.class));\n //otherwise move it up\n exQ.moveUp(this.ids.get(1));\n Mockito.verify(queue, Mockito.times(1)).swap(this.runnables.get(1),this.runnables.get(0));\n }", "@Test\n public void testQueryAdHocs() throws Exception {\n\n // SETUP: Change all the Tasks to Blocks\n List<RefTaskClassKey> lClasses = new ArrayList<RefTaskClassKey>();\n SchedStaskTable lSchedStask = SchedStaskTable.create( new TaskKey( 4650, 101 ) );\n lClasses.add( lSchedStask.getTaskClass() );\n lSchedStask.setTaskClass( RefTaskClassKey.ADHOC );\n lSchedStask.update();\n lSchedStask = SchedStaskTable.create( new TaskKey( 4650, 102 ) );\n lClasses.add( lSchedStask.getTaskClass() );\n lSchedStask.setTaskClass( RefTaskClassKey.ADHOC );\n lSchedStask.update();\n lSchedStask = SchedStaskTable.create( new TaskKey( 4650, 400 ) );\n lClasses.add( lSchedStask.getTaskClass() );\n lSchedStask.setTaskClass( RefTaskClassKey.ADHOC );\n lSchedStask.update();\n lSchedStask = SchedStaskTable.create( new TaskKey( 4650, 500 ) );\n lClasses.add( lSchedStask.getTaskClass() );\n lSchedStask.setTaskClass( RefTaskClassKey.ADHOC );\n lSchedStask.update();\n\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // There should be 4 rows\n MxAssert.assertEquals( \"Number of retrieved rows\", 4, iDataSet.getRowCount() );\n\n // Set them all back to REQ\n lSchedStask = SchedStaskTable.create( new TaskKey( 4650, 101 ) );\n lSchedStask.setTaskClass( lClasses.get( 0 ) );\n lSchedStask.update();\n lSchedStask = SchedStaskTable.create( new TaskKey( 4650, 102 ) );\n lSchedStask.setTaskClass( lClasses.get( 1 ) );\n lSchedStask.update();\n lSchedStask = SchedStaskTable.create( new TaskKey( 4650, 400 ) );\n lSchedStask.setTaskClass( lClasses.get( 2 ) );\n lSchedStask.update();\n lSchedStask = SchedStaskTable.create( new TaskKey( 4650, 500 ) );\n lSchedStask.setTaskClass( lClasses.get( 3 ) );\n lSchedStask.update();\n }", "@Test\n public void testGetNextAlarm()\n {\n addTask(\"task1\", now.plusMinutes(5), null, false);\n addTask(\"task2\", now.plusDays(5), null, false);\n addTask(\"task3\", now.plusMinutes(5), Type.DAY, false); //due date NOW + 5 min\n addTask(\"task4\", now.minusDays(1), Type.WEEK, false); //due date in 1 week\n addTask(\"task5\", now.plusMinutes(10), null, true); //disabled\n\n new GetNextAlarm().getNextAlarm(now.plusMinutes(5).getMillis(), false);\n\n //this should calculate the next occurrance of task3\n Cursor cursor = taskProvider.query(TaskProvider.TASK_JOIN_REPEAT_URI,\n new TaskTable().getColumns(TASK_ID, REPEAT_NEXT_DUE_DATE),\n REPEAT_NEXT_DUE_DATE+\"=\"+now.plusMinutes(5).plusDays(1).getMillis(),\n null,\n null);\n\n assertThat(cursor.getCount(), is(1));\n cursor.moveToFirst();\n assertThat(cursor.getInt(0), is(3));\n\n }", "@Test\n public void deleteTaskByIdAndGettingTasks() {\n mDatabase.taskDao().insertTask(TASK);\n\n //When deleting a task by id\n mDatabase.taskDao().deleteTaskById(TASK.getId());\n\n //When getting the tasks\n List<Task> tasks = mDatabase.taskDao().getTasks();\n // The list is empty\n assertThat(tasks.size(), is(0));\n }", "public O consume(BoundedInMemoryQueue<?, I> queue) throws Exception {\n Iterator<I> iterator = queue.iterator();\n\n while (iterator.hasNext()) {\n consumeOneRecord(iterator.next());\n }\n\n // Notifies done\n finish();\n\n return getResult();\n }", "@Test\n public void tryToExecuteTasksWhenAllLeasesAreAlreadyReserved() throws Exception {\n DateTime timeSlice = dateTimeService.getTimeSlice(now().minusMinutes(1), standardMinutes(1));\n String tenantId = \"test1\";\n String type1 = \"test1\";\n int interval = 5;\n int window = 15;\n int segment0 = 0;\n int segment1 = 1;\n int segmentOffset = 0;\n\n TaskExecutionHistory executionHistory = new TaskExecutionHistory();\n TaskType taskType1 = new TaskType().setName(type1).setSegments(5).setSegmentOffsets(1);\n\n session.execute(queries.createTask.bind(type1, tenantId, timeSlice.toDate(), segment0, \"test1.metric1.5min\",\n ImmutableSet.of(\"test1.metric1\"), interval, window));\n session.execute(queries.createTask.bind(type1, tenantId, timeSlice.toDate(), segment1, \"test1.metric2.5min\",\n ImmutableSet.of(\"test1.metric2\"), interval, window));\n session.execute(queries.createLease.bind(timeSlice.toDate(), type1, segmentOffset));\n\n String owner = \"host2\";\n Lease lease = new Lease(timeSlice, type1, segmentOffset, owner, false);\n boolean acquired = leaseService.acquire(lease).toBlocking().first();\n assertTrue(acquired, \"Should have acquired lease\");\n\n LeaseService leaseService = new LeaseService(rxSession, queries);\n TaskServiceImpl taskService = new TaskServiceImpl(rxSession, queries, leaseService, singletonList(taskType1));\n taskService.subscribe(taskType1, task -> executionHistory.add(task.getTarget()));\n\n Thread t1 = new Thread(() -> taskService.executeTasks(timeSlice));\n t1.start();\n\n AtomicReference<Exception> executionErrorRef = new AtomicReference<>();\n Runnable executeTasks = () -> {\n try {\n Thread.sleep(1000);\n session.execute(queries.deleteTasks.bind(lease.getTaskType(), lease.getTimeSlice().toDate(), segment0));\n session.execute(queries.deleteTasks.bind(lease.getTaskType(), lease.getTimeSlice().toDate(), segment1));\n leaseService.finish(lease).toBlocking().first();\n } catch (Exception e) {\n executionErrorRef.set(e);\n }\n };\n Thread t2 = new Thread(executeTasks);\n t2.start();\n\n t2.join(10000);\n t1.join(10000);\n\n assertNull(executionErrorRef.get(), \"Did not expect an exception to be thrown from other client, but \" +\n \"got: \" + executionErrorRef.get());\n\n assertTrue(executionHistory.getExecutedTasks().isEmpty(), \"Did not expect this task service to execute any \" +\n \"tasks but it executed \" + executionHistory.getExecutedTasks());\n assertTasksPartitionDeleted(type1, timeSlice, segment0);\n assertTasksPartitionDeleted(type1, timeSlice, segment1);\n assertLeasePartitionDeleted(timeSlice);\n\n // We do not need to verify that tasks are rescheduled or that new leases are\n // created since the \"other\" clients would be doing that.\n }", "public void consume() throws InterruptedException {\n\t\temptyQueueTime = queue.peek().getProcessedTime();\n\t\tThread.sleep(queue.peek().getProcessedTime());\n\t\tqueue.peek().setFinalTime(System.nanoTime() / Controller.divider - Controller.startTime);\n\t\tqueueEfficency.lazySet((int) (queue.peek().getFinalTime() - queue.peek().getArrivalTime()));\n\t\tqueueAverageWaitingTime = queueEfficency.get() / (10 * dividerOfClients++);\n\t\tBufferedWriter out = null;\n\t\ttry {\n\t\t\tFileWriter fstream = new FileWriter(\"out.txt\", true); // true tells\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// to append\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// data.\n\t\t\tout = new BufferedWriter(fstream);\n\t\t\tout.write(queue.peek().toString2());\n\t\t\tout.newLine();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\n\t\t} finally {\n\t\t\tif (out != null) {\n\t\t\t\ttry {\n\t\t\t\t\tout.close();\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}\n\t\t}\n\t\tqueue.take();\n\t}", "public void testDrainToWithActivePut() {\n final SynchronousQueue q = new SynchronousQueue();\n Thread t = new Thread(new Runnable() {\n public void run() {\n try {\n q.put(new Integer(1));\n } catch (InterruptedException ie){\n threadUnexpectedException();\n }\n }\n });\n try {\n t.start();\n ArrayList l = new ArrayList();\n Thread.sleep(SHORT_DELAY_MS);\n q.drainTo(l);\n assertTrue(l.size() <= 1);\n if (l.size() > 0)\n assertEquals(l.get(0), new Integer(1));\n t.join();\n assertTrue(l.size() <= 1);\n } catch(Exception e){\n unexpectedException();\n }\n }", "@Test(timeout=300000)\n public void test1() throws Throwable {\n PendingWritesCollector pendingWritesCollector0 = new PendingWritesCollector(\"\");\n String string0 = pendingWritesCollector0.getDescription();\n assertEquals(\"monitoring.scheduler.pending.writes\", string0);\n }", "public static void submitPendingOperations()\n {\n DELEGATE.submitPendingOperations();\n }", "@Test\n public void loadActiveTasksFromRepositoryAndLoadIntoView() {\n mPlaylistPresenter.setFiltering(PlaylistFilterType.ACTIVE_TASKS);\n mPlaylistPresenter.loadTasks(true);\n\n // Callback is captured and invoked with stubbed tasks\n verify(mSongsRepository).getSongs(mLoadTasksCallbackCaptor.capture());\n mLoadTasksCallbackCaptor.getValue().onSongsLoaded(TASKS);\n\n // Then progress indicator is hidden and active tasks are shown in UI\n verify(mTasksView).setLoadingIndicator(false);\n ArgumentCaptor<List> showTasksArgumentCaptor = ArgumentCaptor.forClass(List.class);\n verify(mTasksView).showTasks(showTasksArgumentCaptor.capture());\n assertTrue(showTasksArgumentCaptor.getValue().size() == 1);\n }", "public void test_2() throws Exception {\n\t\tBoundedSharedQueue theBSQ = new BoundedSharedQueue(MAX_CAPACITY);\n\n\t\tassertEquals(MAX_CAPACITY, theBSQ.capacity());\n\t\tassertTrue(theBSQ.isEmpty());\n\t\tassertTrue(!theBSQ.isFull());\n\n\t\tfor(int i = 0; i < theBSQ.capacity(); ++i) {\n\t\t\tassertEquals(i, theBSQ.size());\n\t\t\ttheBSQ.add(new Integer(i));\n\t\t}\n\n\t\t// clear the queue\n\t\ttheBSQ.clear();\n\n\t\tcheckEmptyness(theBSQ);\n\t}", "@Test\n public void testGetSize() {\n Queue queue = new Queue();\n queue.enqueue(testParams[1]);\n queue.enqueue(testParams[2]);\n queue.enqueue(testParams[1]);\n queue.enqueue(testParams[2]);\n\n int expResult = 4;\n\n // call tested method\n int actualResult = queue.getSize();\n\n // compare expected result with actual result\n assertEquals(expResult, actualResult);\n }", "private void dispatch(List<Request> requests) {\n List<Request> inbox = new ArrayList<>(requests);\n\n // run everything in a single transaction\n dao.tx(tx -> {\n int offset = 0;\n Set<UUID> projectsToSkip = new HashSet<>();\n\n while (true) {\n // fetch the next few ENQUEUED processes from the DB\n List<ProcessQueueEntry> candidates = new ArrayList<>(dao.next(tx, offset, BATCH_SIZE));\n if (candidates.isEmpty() || inbox.isEmpty()) {\n // no potential candidates or no requests left to process\n break;\n }\n\n uniqueProjectsHistogram.update(countUniqueProjects(candidates));\n\n // filter out the candidates that shouldn't be dispatched at the moment\n for (Iterator<ProcessQueueEntry> it = candidates.iterator(); it.hasNext(); ) {\n ProcessQueueEntry e = it.next();\n\n // currently there are no filters applicable to standalone (i.e. without a project) processes\n if (e.projectId() == null) {\n continue;\n }\n\n // see below\n if (projectsToSkip.contains(e.projectId())) {\n it.remove();\n continue;\n }\n\n // TODO sharded locks?\n boolean locked = dao.tryLock(tx);\n if (!locked || !pass(tx, e)) {\n // the candidate didn't pass the filter or can't lock the queue\n // skip to the next candidate (of a different project)\n it.remove();\n }\n\n // only one process per project can be dispatched at the time, currently the filters are not\n // designed to run multiple times per dispatch \"tick\"\n\n // TODO\n // this can be improved if filters accepted a list of candidates and returned a list of\n // those who passed. However, statistically each batch of candidates contains unique project IDs\n // so \"multi-entry\" filters are less effective and just complicate things\n // in the future we might need to consider batching up candidates by project IDs and using sharded\n // locks\n projectsToSkip.add(e.projectId());\n }\n\n List<Match> matches = match(inbox, candidates);\n if (matches.isEmpty()) {\n // no matches, try fetching the next N records\n offset += BATCH_SIZE;\n continue;\n }\n\n for (Match m : matches) {\n ProcessQueueEntry candidate = m.response;\n\n // mark the process as STARTING and send it to the agent\n // TODO ProcessQueueDao#updateStatus should be moved to ProcessManager because it does two things (updates the record and inserts a status history entry)\n queueDao.updateStatus(tx, candidate.key(), ProcessStatus.STARTING);\n\n sendResponse(m);\n\n inbox.remove(m.request);\n }\n }\n });\n }", "public int queue() \n { return waiting; }", "public void testTemporaryQueueLastConsume()\n {\n ObjectProperties temporary = new ObjectProperties(_queueName);\n temporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n ObjectProperties normal = new ObjectProperties(_queueName);\n normal.put(ObjectProperties.Property.AUTO_DELETE, Boolean.FALSE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n\n // should not matter if the temporary permission is processed first or last\n _ruleSet.grant(1, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, temporary);\n _ruleSet.grant(2, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, normal);\n assertEquals(2, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, normal));\n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n }", "@Test\r\n\tpublic void testSyncAb() throws Throwable {\n\r\n\t\tsyncService.syncAB();\r\n\r\n//\t\tnotProcessedCount = (Number) jdbcTemplate.queryForObject(\r\n//\t\t\t\t\"select count(1) from ab_sync_changes_tbl where processed=0\", Number.class);\r\n//\t\tassertEquals(\"Should not have not processed data\", 0, notProcessedCount.intValue());\r\n\t}", "public void test_3() throws Exception {\n\t\tfinal BoundedSharedQueue theBSQ = new BoundedSharedQueue(MAX_CAPACITY);\n\n\t\tThread theProducer = new Thread(\"Producer\") {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tfor(int i = 0; i < MAX_CAPACITY * 1000; ++i) {\n\t\t\t\t\t\ttheBSQ.add(new Integer(i));\n//\t\t\t\t\t\tif(theBSQ.isFull()) {\n//\t\t\t\t\t\t\tSystem.err.println(\"theProducer: queue is full \" + theBSQ);\n//\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch(Exception ex) {\n\t\t\t\t\tfail(ex.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tThread theConsumer = new Thread(\"Consumer\") {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tfor(int i = 0; i < MAX_CAPACITY * 1000; ++i) {\n\t\t\t\t\t\tInteger theInteger = (Integer)theBSQ.remove();\n\t\t\t\t\t\t// Consume the Integers, make sure they arrive in the same\n\t\t\t\t\t\t// order they where produced\n\t\t\t\t\t\tassertEquals(i, theInteger.intValue());\n//\t\t\t\t\t\tif(theBSQ.isEmpty()) {\n//\t\t\t\t\t\t\tSystem.err.println(theInteger);\n//\t\t\t\t\t\t\tSystem.err.println(\"theConsumer: queue is empty \");\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse {\n//\t\t\t\t\t\t\tSystem.err.println(theInteger);\n//\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch(Exception ex) {\n\t\t\t\t\tfail(ex.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\ttheProducer.start();\n\t\ttheConsumer.start();\n\n\t\ttheProducer.join();\n\t\ttheConsumer.join();\n\n\t\t// Make sure avery and all Integers have been consumed\n\t\tcheckEmptyness(theBSQ);\n\t}" ]
[ "0.62113667", "0.60293746", "0.6011993", "0.59815687", "0.5926061", "0.5880382", "0.58691454", "0.58579445", "0.5825945", "0.5749785", "0.57470995", "0.5744765", "0.5744286", "0.5730648", "0.57150203", "0.5675667", "0.5565893", "0.5545473", "0.5535589", "0.55086964", "0.54730546", "0.54650694", "0.54620576", "0.54487824", "0.54458195", "0.5445322", "0.5439777", "0.5437258", "0.5415299", "0.5410426", "0.54086363", "0.5398133", "0.5374892", "0.5374201", "0.5372694", "0.53597134", "0.5352945", "0.53527", "0.5349756", "0.5340164", "0.53399205", "0.5336945", "0.53343016", "0.5314754", "0.53062934", "0.5300058", "0.52873015", "0.5285362", "0.5272985", "0.5266791", "0.52635795", "0.5257118", "0.5253587", "0.5241441", "0.52387625", "0.52257484", "0.52236056", "0.5215892", "0.52153164", "0.5211779", "0.52084345", "0.5203627", "0.5199044", "0.5197731", "0.5194091", "0.51905185", "0.5185168", "0.518162", "0.5175105", "0.5156756", "0.51540136", "0.5152352", "0.51469886", "0.5142985", "0.5135753", "0.5134067", "0.51314986", "0.51181054", "0.5110998", "0.5106235", "0.5105942", "0.51021224", "0.51006305", "0.50979406", "0.5092349", "0.5088935", "0.50847715", "0.50793993", "0.5077627", "0.50768715", "0.5074943", "0.50725967", "0.5069575", "0.5064572", "0.5063603", "0.5059544", "0.5055871", "0.50544894", "0.50544494", "0.5050744" ]
0.82600886
0
Test of completeTask method, of class QueueDAOImpl.
@Test public void testCompleteTask() throws Exception { System.out.println("completeTask"); QueueTaskDTO task = null; QueueDAOImpl instance = new QueueDAOImpl(); QueueTaskDTO expResult = null; QueueTaskDTO result = instance.completeTask(task); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testConsumePendingTasks() throws Exception {\r\n System.out.println(\"consumePendingTasks\");\r\n QueueDAOImpl instance = new QueueDAOImpl();\r\n List<QueueTaskDTO> expResult = null;\r\n List<QueueTaskDTO> result = instance.consumePendingTasks().getTasks();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n public void deleteCompletedTasksAndGettingTasks() {\n mDatabase.taskDao().insertTask(TASK);\n\n //When deleting completed tasks\n mDatabase.taskDao().deleteCompletedTasks();\n\n //When getting the tasks\n List<Task> tasks = mDatabase.taskDao().getTasks();\n // The list is empty\n assertThat(tasks.size(), is(0));\n }", "void completeJob();", "public void taskComplete() {\n mTasksLeft--;\n if ((mTasksLeft==0) & mHasCloRequest){\n onAllTasksCompleted();\n }\n }", "public void completeTask() {\n completed = true;\n }", "@Override\n public void completeTask(@NonNull String taskId) {\n }", "@Test\n public void updateCompletedAndGetById() {\n mDatabase.taskDao().insertTask(TASK);\n\n // When the task is updated\n mDatabase.taskDao().updateCompleted(TASK.getId(), false);\n\n // When getting the task by id from the database\n Task loaded = mDatabase.taskDao().getTaskById(\"id\");\n\n // The loaded data contains the expected values\n assertTask(loaded, TASK.getId(), TASK.getTitle(), TASK.getDescription(), false);\n }", "@Override\n\tpublic boolean done() {\n\t\tfor(Task t : details.getPendingTasks()){\n\t\t\tif(!t.isComplete())\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public void complete() {\n\t}", "void completeTask(String userId, Long taskId, Map<String, Object> results);", "public void completeTask()\n throws NumberFormatException, NullPointerException, IndexOutOfBoundsException {\n System.out.println(LINEBAR);\n try {\n int taskNumber = Integer.parseInt(userIn.split(\" \")[TASK_NUMBER]);\n\n int taskIndex = taskNumber - 1;\n\n tasks.get(taskIndex).markAsDone();\n storage.updateFile(tasks.TaskList);\n System.out.println(\"Bueno! The following task is marked as done: \\n\" + tasks.get(taskIndex));\n } catch (NumberFormatException e) {\n ui.printNumberFormatException();\n } catch (NullPointerException e) {\n ui.printNullPtrException();\n } catch (IndexOutOfBoundsException e) {\n ui.printIndexOOBException();\n }\n System.out.println(LINEBAR);\n }", "@Override\n\tpublic void complete()\n\t{\n\t}", "@Test\n void displayCompletedTasks() {\n }", "private void checkForComplete(int topTaskId) throws DAOException\n {\n TransferTask topTask = dao.getTransferTaskByID(topTaskId);\n // Check to see if all the children of a top task are complete. If so, update the top task.\n if (!topTask.getStatus().equals(TransferTaskStatus.COMPLETED))\n {\n long incompleteParentCount = dao.getIncompleteParentCount(topTaskId);\n long incompleteChildCount = dao.getIncompleteChildrenCount(topTaskId);\n if (incompleteChildCount == 0 && incompleteParentCount == 0)\n {\n topTask.setStatus(TransferTaskStatus.COMPLETED);\n topTask.setEndTime(Instant.now());\n log.trace(LibUtils.getMsg(\"FILES_TXFR_TASK_COMPLETE1\", topTaskId, topTask.getUuid(), topTask.getTag()));\n dao.updateTransferTask(topTask);\n }\n }\n }", "@Test\n\tpublic void testExecuteOk() {\n\t\tfinal Subscription subscription0 = createSubscriptionForDBMock(1 , \"eventType1\", \"subscriberName1\");\n\t\tfinal EventPublishRequestDTO request = getEventPublishRequestDTOForTest();\n\t\tfinal PublishEventTask publishEventTask = new PublishEventTask(subscription0, request, httpService);\n\t\t\n\t\tdoNothing().when(threadPool).execute(any());\n\t\t\n\t\ttestingObject.execute();\n\t\t\n\t\tverify(threadPool, times(numberOfSubscribers)).execute(any());\n\t\tfinal Subscription subscriptionInTask = (Subscription) ReflectionTestUtils.getField(publishEventTask, \"subscription\");\n\t\tassertNotNull(subscriptionInTask);\n\t\tverify(threadPool, times(1)).shutdownNow();\n\t}", "void TaskFinished(Task task) {\n\n repository.finishTask(task);\n }", "void completeTask(String userId, List<TaskSummary> taskList, Map<String, Object> results);", "@Override\r\n public void tasksFinished()\r\n {\n }", "@Override\n public boolean complete(boolean succeed) {\n if (completed.compareAndSet(false, true)) {\n onTaskCompleted(task, succeed);\n return true;\n }\n return false;\n }", "@Test(dependsOnMethods = { \"testUpdateTaskWithNegativeCase\" },\n description = \"podio {completeTask} integration test with mandatory parameters.\")\n public void testCompleteTaskWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:completeTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_completeTask_mandatory.json\");\n \n String apiEndPoint = apiUrl + \"/task/\" + connectorProperties.getProperty(\"taskId\");\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getHttpStatusCode(), 200);\n Assert.assertEquals(apiRestResponse.getBody().getString(\"status\"), \"completed\");\n }", "boolean complete();", "void complete();", "void complete();", "@Override\n public void afterCompletion(boolean arg0) throws EJBException,\n \t\tRemoteException {\n \tSystem.out.println(\"taskerBean transaction done\");\n }", "public void CompleteTask() {\n\t\tCompletionDate = new Date();\n\t}", "@Override\r\n\tpublic void complete() {\n\r\n\t}", "public void finishTask() {\n\t\t\n\t}", "public void complete()\n {\n isComplete = true;\n }", "void completed(TestResult tr);", "@Override\n public void completeFlower(@NonNull String taskId) {\n }", "void whenComplete();", "public void completeTask(String title) {\n ContentValues args = new ContentValues();\n args.put(KEY_COMPLETED, \"true\");\n storage.update(TABLE_NAME, args, KEY_TITLE + \"='\" + title+\"'\", null);\n }", "@Test\n void isComplete() {\n }", "public boolean is_completed();", "private void onComplete(int duration) {\n\t\t\n\t\tservice = Executors.newSingleThreadExecutor();\n\n\t\ttry {\n\t\t Runnable r = new Runnable() {\n\t\t @Override\n\t\t public void run() {\n\t\t // Database task\n\t\t \tcontrollerVars.setPlays(false);\n\t\t }\n\t\t };\n\t\t Future<?> f = service.submit(r);\n\n\t\t f.get(duration, TimeUnit.MILLISECONDS); // attempt the task for two minutes\n\t\t}\n\t\tcatch (final InterruptedException e) {\n\t\t // The thread was interrupted during sleep, wait or join\n\t\t}\n\t\tcatch (final TimeoutException e) {\n\t\t // Took too long!\n\t\t}\n\t\tcatch (final ExecutionException e) {\n\t\t // An exception from within the Runnable task\n\t\t}\n\t\tfinally {\n\t\t service.shutdown();\n\t\t}\t\t\n\t}", "@Test\n\tpublic void testDoneCommand1() {\n\t\tString label = \"TEST\";\n\t\ttestData.getTaskMap().put(label, new ArrayList<Task>());\n\t\ttestData.addTask(new Task(1, label , \"Task 1\",\n\t\t\t\tnew TDTDateAndTime(), false));\n\t\ttestData.addTask(new Task(2, label, \"Task 2\",\n\t\t\t\tnew TDTDateAndTime(), false));\n\t\ttestData.addTask(new Task(3, label, \"Task 3\",\n\t\t\t\tnew TDTDateAndTime(), false));\n\n\t\tDoneCommand comd = new DoneCommand(label, 2);\n\t\tassertEquals(DoneCommand.MESSAGE_DONE_TASK_FEEDBACK, comd.execute(testData));\n\n\t\tArrayList<Task> taskList = testData.getTaskListFromLabel(label);\n\t\tassertEquals(3, taskList.size());\n\t\tassertTrue(taskList.get(1).isDone());\n\t\tassertFalse(taskList.get(0).isDone());\n\t\tassertFalse(taskList.get(2).isDone());\n\t}", "@Test\n void displayIncompleteTasks() {\n }", "boolean completed();", "@Test\n\tpublic void testDoneCommand2() {\n\t\tString label = \"TEST\";\n\t\ttestData.getTaskMap().put(label, new ArrayList<Task>());\n\t\ttestData.addTask(new Task(1, label , \"Task 1\",\n\t\t\t\tnew TDTDateAndTime(), false));\n\t\ttestData.addTask(new Task(2, label, \"Task 2\",\n\t\t\t\tnew TDTDateAndTime(), false));\n\t\ttestData.addTask(new Task(3, label, \"Task 3\",\n\t\t\t\tnew TDTDateAndTime(), false));\n\n\t\tDoneCommand comd = new DoneCommand(label, 3);\n\t\tassertEquals(DoneCommand.MESSAGE_DONE_TASK_FEEDBACK, comd.execute(testData));\n\n\t\tArrayList<Task> taskList = testData.getTaskListFromLabel(label);\n\t\tassertEquals(3, taskList.size());\n\t\tassertTrue(taskList.get(2).isDone());\n\t\tassertFalse(taskList.get(0).isDone());\n\t\tassertFalse(taskList.get(1).isDone());\n\t}", "@Override\n\t\t\t\tpublic void deliveryComplete(MqttDeliveryToken arg0) {\n\t\t\t\t\tSystem.out.println(\"deliveryComplete---------\"\n\t\t\t\t\t\t\t+ arg0.isComplete());\n\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void deliveryComplete(IMqttDeliveryToken arg0) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "public abstract boolean isCompleted();", "public void completed(final Status status);", "@Override\n\t\t\tpublic void deliveryComplete(IMqttDeliveryToken token) {\n\t\t\t\tSystem.out.println(\"deliveryComplete\");\n\t\t\t}", "@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public void completeTask(Long taskId, Map<String, Object> outboundTaskVars, String userId, boolean disposeKsession) {\n TaskServiceSession taskSession = null;\n try {\n taskSession = taskService.createSession();\n Task taskObj = taskSession.getTask(taskId);\n int sessionId = taskObj.getTaskData().getProcessSessionId();\n long pInstanceId = taskObj.getTaskData().getProcessInstanceId();\n if(taskObj.getTaskData().getStatus() != Status.InProgress) {\n log.warn(\"completeTask() task with following id will be changed to status of InProgress: \"+taskId);\n taskSession.taskOperation(Operation.Start, taskId, userId, null, null, null);\n eventSupport.fireTaskStarted(taskId, userId);\n }\n \n if(outboundTaskVars == null)\n outboundTaskVars = new HashMap<String, Object>(); \n \n //~~ Nick: intelligent mapping the task input parameters as the results map\n // that said, copy the input parameters to the result map\n Map<String, Object> newOutboundTaskVarMap = null;\n if (isEnableIntelligentMapping()) {\n long documentContentId = taskObj.getTaskData().getDocumentContentId();\n if(documentContentId == -1)\n throw new RuntimeException(\"completeTask() documentContent must be created with addTask invocation\");\n \n // 1) constructure a purely empty new HashMap, as the final results map, which will be mapped out to the process instance\n newOutboundTaskVarMap = new HashMap<String, Object>();\n // 2) put the original input parameters first\n newOutboundTaskVarMap.putAll(populateHashWithTaskContent(documentContentId, \"documentContent\"));\n // 3) put the user modified into the final result map, replace the original values with the user modified ones if any\n newOutboundTaskVarMap.putAll(outboundTaskVars);\n } //~~ intelligent mapping\n else {\n newOutboundTaskVarMap = outboundTaskVars;\n }\n \n ContentData contentData = this.convertTaskVarsToContentData(newOutboundTaskVarMap, null);\n taskSession.taskOperation(Operation.Complete, taskId, userId, null, contentData, null);\n eventSupport.fireTaskCompleted(taskId, userId);\n \n StringBuilder sBuilder = new StringBuilder(\"completeTask()\");\n this.dumpTaskDetails(taskObj, sBuilder);\n \n // add TaskChangeDetails to outbound variables so that downstream branches can route accordingly\n TaskChangeDetails changeDetails = new TaskChangeDetails();\n changeDetails.setNewStatus(Status.Completed);\n changeDetails.setReason(TaskChangeDetails.NORMAL_COMPLETION_REASON);\n changeDetails.setTaskId(taskId);\n newOutboundTaskVarMap.put(TaskChangeDetails.TASK_CHANGE_DETAILS, changeDetails);\n \n kSessionProxy.completeWorkItem(taskObj.getTaskData().getWorkItemId(), newOutboundTaskVarMap, pInstanceId, sessionId);\n \n if(disposeKsession)\n kSessionProxy.disposeStatefulKnowledgeSessionAndExtras(taskObj.getTaskData().getProcessSessionId());\n }catch(org.jbpm.task.service.PermissionDeniedException x) {\n rollbackTrnx();\n throw x;\n }catch(RuntimeException x) {\n rollbackTrnx();\n if(x.getCause() != null && (x.getCause() instanceof javax.transaction.RollbackException) && (x.getMessage().indexOf(\"Could not commit transaction\") != -1)) {\n String message = \"completeTask() RollbackException thrown most likely because the following task object is dirty : \"+taskId;\n log.error(message);\n throw new PermissionDeniedException(message);\n }else {\n throw x;\n }\n }catch(Exception x) {\n throw new RuntimeException(x);\n }finally {\n if(taskSession != null)\n taskSession.dispose();\n }\n }", "@Test\n\t@Deployment(resources=\"process.bpmn\")\n\tpublic void testCompletionOftask() {\n\t\tProcessInstanceWithVariables processInstance = (ProcessInstanceWithVariables) processEngine().getRuntimeService().startProcessInstanceByKey(PROCESS_DEFINITION_KEY);\n\t\t\n\t\t//Obtain a reference to the current task\n\t\tTaskAssert taskAssert = assertThat(processInstance).task();\n\t\tTaskEntity task = (TaskEntity) taskAssert.getActual();\n\t\ttask.delegate(\"user\");\n\t\ttask.resolve();\n\t\n\t\t\n\t}", "void onTaskComplete(T result);", "@Test(timeout = 10000)\n public void testTaskAttemptFinishedEvent() throws Exception {\n JobID jid = new JobID(\"001\", 1);\n TaskID tid = new TaskID(jid, TaskType.REDUCE, 2);\n TaskAttemptID taskAttemptId = new TaskAttemptID(tid, 3);\n Counters counters = new Counters();\n TaskAttemptFinishedEvent test = new TaskAttemptFinishedEvent(taskAttemptId, TaskType.REDUCE, \"TEST\", 123L, \"RAKNAME\", \"HOSTNAME\", \"STATUS\", counters, 234);\n Assert.assertEquals(test.getAttemptId().toString(), taskAttemptId.toString());\n Assert.assertEquals(test.getCounters(), counters);\n Assert.assertEquals(test.getFinishTime(), 123L);\n Assert.assertEquals(test.getHostname(), \"HOSTNAME\");\n Assert.assertEquals(test.getRackName(), \"RAKNAME\");\n Assert.assertEquals(test.getState(), \"STATUS\");\n Assert.assertEquals(test.getTaskId(), tid);\n Assert.assertEquals(test.getTaskStatus(), \"TEST\");\n Assert.assertEquals(test.getTaskType(), REDUCE);\n Assert.assertEquals(234, test.getStartTime());\n }", "@Test\n\tpublic void updateTask() {\n\t\tfinal Date dueDate = new Date();\n\t\tfinal Template template = new Template(\"Template 1\");\n\t\ttemplate.addStep(new TemplateStep(\"Step 1\", 1.0));\n\t\tfinal Assignment asgn = new Assignment(\"Assignment 1\", dueDate, template);\n\t\tfinal Task task = new Task(\"Task 1\", 1, 1, asgn.getID());\n\t\tasgn.addTask(task);\n\t\t\n\t\tfinal String asgnId = asgn.getID();\n\t\t\n\t\ttry {\n\t\t\tStorageService.addTemplate(template);\n\t\t\tStorageService.addAssignment(asgn);\n\t\t} catch (final StorageServiceException e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t\n\t\ttask.setPercentComplete(0.174);\n\t\tStorageService.updateTask(task);\n\t\t\n\t\tfinal Assignment afterAsgn = StorageService.getAssignment(asgnId);\n\t\tassertEquals(asgn.fullString(), afterAsgn.fullString());\n\t}", "void requestComplete(UUIDBase uuid, OpResult opResult) {\n recentCompletions.incrementAndGet();\n _requestComplete(uuid, opResult);\n /*\n try {\n completionQueue.put(new Pair<>(uuid, opResult));\n } catch (InterruptedException e) {\n throw new RuntimeException(\"Unexpected interruption\");\n }\n */\n }", "@Test\n void setCompleted() {\n }", "@Test\n public void setStatusDone_shouldReturnTrueForStatus() {\n Task task = new Task(\"Test\");\n task.setStatusDone();\n Assertions.assertTrue(task.getStatus());\n }", "public void completeOrderTransaction(Transaction trans){\n }", "@Test\n public void testTaskNeedingOtherTasksToCheckIfDoneWithTimeout() throws InterruptedException, TaskException {\n final ScheduledPoolingTask<Integer> scheduledPoolingTask = this.createFakeScheduledPoolingTask(1, 1, 7, 8, 100);\n\n final Task<Integer> simpleTask = this.createFakeSimpleTask(2);\n\n final TaskDependingOnOtherTasksExample task = new TaskDependingOnOtherTasksExample.Builder()\n .willTake(2)\n .withTimeout(10)\n .withDependingTask(simpleTask)\n .withDependingTask(scheduledPoolingTask)\n .build();\n\n task.execute();\n\n assertTrue(\"The task should be finished ok\", task.isDone());\n\n assertTrue(\"The simple should be finished NO ok\", simpleTask.isDone());\n assertTrue(\"The scheduled should be finished ok\", !scheduledPoolingTask.isDone());\n\n assertTrue(\"The task should be finished ok\", task.getResult()==0);\n assertTrue(\"The simpleTask should be finished ok\", simpleTask.getResult()==0);\n assertTrue(\"The scheduledPoolingTask should be finished ok\", scheduledPoolingTask.getResult()==1);\n\n\n }", "@Override\n\tpublic Map completeTask(ServiceActionContext ac, String taskId,String exectorCode,\n\t\t\tMap formMap, List<String> serviceList) {\n\t\tif(StringUtils.isBlank(taskId)){ \n\t\t\tthrow new RuntimeException(\"taskId不能为空!\");\n\t\t}\n\t\tif(formMap == null) {\n\t\t\tformMap = new HashMap<String, Object>();\n\t\t}\n\t\t\n\tthis.activeTask(ac, taskId,exectorCode, serviceList, formMap);\n\tthis.endTask(ac, taskId, formMap);\n\t\t\n\t\treturn null;\n\t}", "@Test\n public void testTake() {\n \tBoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e));\n try {\n Callable<String> c = new StringTask();\n ecs.submit(c);\n Future<String> f = ecs.take();\n Assert.assertTrue(f.isDone());\n } catch (Exception ex) {\n unexpectedException();\n }\n }", "@Override\n\tpublic boolean isCompleted()\n\t{\n\t\treturn false;\n\t}", "protected abstract long waitOnQueue();", "@Override\n public boolean completed() {\n return false;\n }", "@Override\n\tpublic void deliveryComplete(IMqttDeliveryToken token) {\n\t\t\n\t}", "@Override\n public String execute(TaskList tasks, Storage storage, Statistics stats) throws DukeException {\n\n Task task = tasks.doneTask(taskNum);\n storage.editTaskList(task.saveToString(), taskNum, false);\n storage.updateStats(2);\n stats.incrementDoneStats();\n return String.format(\"%s\\n%s\\n%s\", MESSAGE_DONE_ACKNOWLEDGEMENT,\n task.toString(), MESSAGE_DONE_END);\n\n\n }", "@Override\n public void onTaskComplete(String result) {\n\n //TODO\n\n }", "@Override\n public void deliveryComplete(IMqttDeliveryToken token) {\n }", "@Override\n\tpublic void deliveryComplete(IMqttDeliveryToken token) {\n\t}", "public abstract boolean isComplete();", "public boolean isComplete();", "boolean isCompleted();", "@Override\n\t\t\tpublic void deliveryComplete(IMqttDeliveryToken token) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void deliveryComplete(IMqttDeliveryToken token) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deliveryComplete(IMqttDeliveryToken token) {\n\t\t\r\n\t}", "@Test\n public void testPoll1() {\n \tBoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e));\n try {\n Assert.assertNull(ecs.poll());\n Callable<String> c = new StringTask();\n ecs.submit(c);\n Thread.sleep(SHORT_DELAY_MS);\n for (;;) {\n Future<String> f = ecs.poll();\n if (f != null) {\n Assert.assertTrue(f.isDone());\n break;\n }\n }\n } catch (Exception ex) {\n unexpectedException();\n }\n }", "public void executeQueue() {\n\tLog.d(TaskExecutor.class.getName(), \"Execute \" + mQueue.size() + \" Tasks\");\n\tfor (Task task : mQueue) {\n\t if (!mTaskExecutor.getQueue().contains(task))\n\t\texecuteTask(task);\n\t}\n }", "public abstract Task markAsDone();", "@Override\n public void execute(final Task<T> task, final long wait, final TimeUnit unit) {\n }", "boolean isComplete();", "boolean isComplete();", "@Override\n public void deliveryComplete(IMqttDeliveryToken imdt) {\n System.out.println(\"在完成消息传递并收到所有确认后调用。\");\n }", "@Override\n public void beforeCompletion() throws EJBException, RemoteException {\n \tSystem.out.println(\"taskerBean transaction almost done\");\n }", "@Override\n protected void succeeded() {\n eventService.publish(new TaskEndedEvent(this));\n\n }", "private void doMarkTaskAsCompleted() {\n System.out.println(\n \"Select the task you would like to mark as complete by entering the appropriate index number.\");\n int index = input.nextInt();\n todoList.markTaskAsCompleted(index);\n System.out.println(\"The selected task has been marked as complete. \");\n }", "@Test\n public void testPoll2() {\n \tBoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e));\n try {\n Assert.assertNull(ecs.poll());\n Callable<String> c = new StringTask();\n ecs.submit(c);\n Future<String> f = ecs.poll(SHORT_DELAY_MS, TimeUnit.MILLISECONDS);\n if (f != null) Assert.assertTrue(f.isDone());\n } catch (Exception ex) {\n unexpectedException();\n }\n }", "@Test\n void markCompleted() {\n }", "public void makeComplete(Order order) {}", "protected void execute() {\n finished = true;\n }", "@Override\n public void deliveryComplete(IMqttDeliveryToken token) {\n\n }", "@Override\n\t\tpublic void onCompleted() {\n\t\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate void processQueue() throws DatabaseException {\n\t\tString qs = \"from PendingTask pt order by pt.created\";\n\t\tGson gson = new Gson();\n\t\tSession session = null;\n\t\t\n\t\ttry {\n\t\t\tsession = HibernateUtil.getSessionFactory().openSession();\n\t\t\tQuery q = session.createQuery(qs);\n\t\t\t\n\t\t\tfor (PendingTask pt : (List<PendingTask>) q.list()) {\n\t\t\t\tif (!runningTasks.contains(pt.getId())) {\n\t\t\t\t\tlog.info(\"Processing {}\", pt);\n\t\t\t\t\t\n\t\t\t\t\tif (PendingTask.TASK_UPDATE_PATH.equals(pt.getTask())) {\n\t\t\t\t\t\tif (Config.STORE_NODE_PATH) {\n\t\t\t\t\t\t\texecutor.execute(new PendingTaskThread(pt, new UpdatePathTask()));\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (PendingTask.TASK_CHANGE_SECURITY.equals(pt.getTask())) {\n\t\t\t\t\t\tChangeSecurityParams params = gson.fromJson(pt.getParams(), ChangeSecurityParams.class);\n\t\t\t\t\t\texecutor.execute(new PendingTaskThread(pt, new ChangeSecurityTask(params)));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlog.warn(\"Unknown pending task: {}\", pt.getTask());\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tlog.info(\"Task already running: {}\", pt);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (HibernateException e) {\n\t\t\tthrow new DatabaseException(e.getMessage(), e);\n\t\t} finally {\n\t\t\tHibernateUtil.close(session);\n\t\t}\n\t}", "@Test\n public void deleteTasksAndGettingTasks() {\n mDatabase.taskDao().insertTask(TASK);\n\n //When deleting all tasks\n mDatabase.taskDao().deleteTasks();\n\n //When getting the tasks\n List<Task> tasks = mDatabase.taskDao().getTasks();\n // The list is empty\n assertThat(tasks.size(), is(0));\n }", "@Test\n\tpublic void testUpdateTask() {\n\t}", "public void testComplete(String msg);", "public abstract void done();", "public void completeTask() {\r\n int selected = list.getSelectedIndex();\r\n if (selected >= 0) {\r\n Task task = myTodo.getTaskByIndex(selected + 1);\r\n myTodo.getTodo().get(task.getHashKey()).setComplete(true);\r\n showCompleted = true;\r\n playSound(\"c1.wav\");\r\n }\r\n todoListGui();\r\n }", "private void workOnQueue() {\n }", "@Override\n public boolean isFinished() {\n return complete;\n }", "@Override\n public void done() {\n }", "@Override\n public void done() {\n }", "@Override\n\t\tpublic void done() {\n\n\t\t}", "public void queryEnded()\r\n {\r\n myActiveQueryCountProvider.setValue(Integer.valueOf(myActiveQueryCounter.decrementAndGet()));\r\n if (myActiveQueryCounter.get() == 0)\r\n {\r\n myDoneQueryCounter.set(0);\r\n myTotalSinceLastAllDoneCounter.set(0);\r\n }\r\n else\r\n {\r\n myDoneQueryCounter.incrementAndGet();\r\n }\r\n updateTaskActivityLabel();\r\n if (myActiveQueryCounter.intValue() == 0 && isActive())\r\n {\r\n setActive(false);\r\n }\r\n }", "public static <R> DurableBackgroundTaskResult<R> complete() {\n return new DurableBackgroundTaskResult<>(COMPLETED, null, null);\n }", "@Override\r\n\tpublic void done() {\n\t\t\r\n\t}" ]
[ "0.6650259", "0.64557314", "0.6442792", "0.64056516", "0.6330867", "0.6324111", "0.6252898", "0.62131715", "0.6175495", "0.6159323", "0.6152753", "0.61226135", "0.61114424", "0.6111432", "0.607888", "0.6036854", "0.60236967", "0.6008642", "0.6007603", "0.6001673", "0.5959569", "0.594841", "0.594841", "0.594393", "0.59197724", "0.58972406", "0.5884768", "0.582695", "0.58215344", "0.58172214", "0.5803011", "0.5782889", "0.57784724", "0.57777953", "0.57671565", "0.5764049", "0.5757966", "0.575576", "0.573271", "0.5727101", "0.5727094", "0.57049984", "0.56787276", "0.56777614", "0.56666774", "0.56488085", "0.56378275", "0.56217146", "0.5612518", "0.5611159", "0.56105834", "0.56073356", "0.5595489", "0.5589614", "0.55759966", "0.55677897", "0.5567005", "0.5558618", "0.55580246", "0.5557923", "0.55499667", "0.55488265", "0.5539553", "0.5537945", "0.5537064", "0.55330104", "0.55326456", "0.5523935", "0.5515256", "0.5515256", "0.55068195", "0.5502081", "0.54973775", "0.5496161", "0.54932", "0.54932", "0.5491939", "0.54872507", "0.5473526", "0.5471658", "0.54646736", "0.54641294", "0.54481655", "0.5445808", "0.54452765", "0.54423445", "0.54376835", "0.54358524", "0.54296523", "0.54284406", "0.5423774", "0.54029787", "0.5401138", "0.53912455", "0.5387796", "0.5387796", "0.5382564", "0.53818345", "0.53757334", "0.5374606" ]
0.8175368
0
constructor de un trabajador
public Trabajador(String nombre, String puesto) { this.nombre = nombre; this.puesto = puesto; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Trabajador() {\n\t\tsuper();\n\t}", "public JogadorTradutor() {\n this.nome= \"Sem Registro\";\n this.pontuacao = pontuacao;\n id = id;\n \n geradorDesafioItaliano = new GerarPalavra(); // primeira palavra ja é gerada para o cliente\n }", "public Trabajador(String nombre, String apellidos, String id, String email,\n\t\t\t\t\t String telefono, String direccion, Integer delegacionAsignada,\n\t\t\t\t\t Date antiguedad, ListadoProyectos proyectosAsignados,\n\t\t\t\t\t String horarioLaboral, String pass, Integer idTrabajador) {\n\t\tsuper(nombre, apellidos, id, email, telefono, direccion, delegacionAsignada, antiguedad, proyectosAsignados);\n\t\tthis.horarioLaboral = horarioLaboral;\n\t\tthis.pass = pass;\n\t\tthis.idTrabajador = idTrabajador;\n\t}", "public AntrianPasien() {\r\n\r\n }", "public DetalleTablaComplementario() {\r\n }", "public Alojamiento() {\r\n\t}", "public Transportista() {\n }", "public TCubico(){}", "public TTau() {}", "public TdRuspHijo() { }", "public Transportadora() {\r\n super();\r\n this.nif = \"\";\r\n this.raio = 0;\r\n this.precoKm = 0;\r\n this.classificacao = new Classificacao();\r\n this.estaLivre = true;\r\n this.velocidadeMed = 0;\r\n this.kmsTotal = 0;\r\n this.capacidade = 0;\r\n }", "public Troco() {\n }", "protected Asignatura()\r\n\t{}", "public Transportador()\n {\n super();\n this.transporte = true;\n this.transporte_medico = false;\n this.classificacao = new HashMap<>();\n this.encomendas = new HashMap<>();\n this.raio = 0.0;\n }", "public Candidatura (){\n \n }", "public MorteSubita() {\n }", "public TrazAqui(){\n this.utilizadores = new TreeMap<>();\n this.encomendas = new TreeMap<>();\n this.utilizador = null;\n }", "public Arquero(){\n this.vida = 75;\n this.danioAUnidad = 15;\n this.danioAEdificio = 10;\n this.rangoAtaque = 3;\n this.estadoAccion = new EstadoDisponible();\n }", "@Override\n\tpublic void trabajar() {\n\n\t}", "public Tarifa() {\n ;\n }", "public TebakNusantara()\n {\n }", "public Caso_de_uso () {\n }", "public RepositorioTransacaoHBM() {\n\n\t}", "public Carrera(){\n }", "public VistaTrabaja() {\n initComponents();\n }", "public DarAyudaAcceso() {\r\n }", "public Trabajo(Trabajador t, Servicio s, Oficio o, Instant fi) {\n\t\tthis.trabajador = t;\n\t\tthis.servicio = s;\n\t\tthis.oficio = o;\n\t\tthis.fechaInicio = fi;\n\t\tthis.fechaFinal = null;\n\t}", "public ControllerAdministrarTrabajadores() {\r\n }", "public ControladorPrueba() {\r\n }", "public Arquero(Jugador jugador){\n this.propietario = jugador;\n this.vida = 75;\n this.rangoAtaque = 3;\n this.estadoAccion = new EstadoDisponible();\n }", "public TblActividadUbicacion() {\r\n }", "public Celula() { // Sentinela\n\t\tthis.item = new Jogador();\n\t\tproximo = null;\n\t}", "public prueba()\r\n {\r\n }", "public Vehiculo() {\r\n }", "public Tura() {\n\t\tLicznikTur = 0;\n\t}", "public CrearQuedadaVista() {\n }", "Persoana(Tools t, int cr) { ob = null; ti = t; currentrowi = cr; }", "public solicitudControlador() {\n }", "public TarjetaDebito() {\n\t\tsuper();\n\t}", "public Tecnico(){\r\n\t\tthis.matricula = 0;\r\n\t\tthis.nome = \"NULL\";\r\n\t\tthis.email = \"NULL\";\r\n\t\tthis.telefone = \"TELEFONE\";\r\n\t\tlistaDeServicos = new ArrayList<Servico>();\r\n\t}", "public Tabono() {\n }", "public Pasien() {\r\n }", "private ControleurAcceuil(){ }", "public AfiliadoVista() {\r\n }", "public AgenteEstAleatorio() {\r\n }", "public EstadosSql() {\r\n }", "public FiltroMicrorregiao() {\r\n }", "public TipoPrestamo() {\n\t\tsuper();\n\t}", "public Unidadmedida() {\r\n\t}", "public ContaBancaria() {\n }", "public CTematicaBienestar() {\r\n\t}", "public FiltroRaEncerramentoComando() {\r\n }", "public DetArqueoRunt () {\r\n\r\n }", "public Controlador() {\n\t\t// m\n\t\tdatosPrueba1 = new ListaEnlazada();\n\t\t// m\n\t\tdatosPrueba2 = new ListaEnlazada();\n\t\t// add\n\t\tdatosPrueba3 = new ListaEnlazada();\n\t\tdatosPrueba4 = new ListaEnlazada();\n\t\tprueba1 = new Estadisticas(datosPrueba1);\n\t\tprueba2 = new Estadisticas(datosPrueba2);\n\t\tprueba3 = new Estadisticas(datosPrueba3);\n\t\tprueba4 = new Estadisticas(datosPrueba4);\n\t\t// finAdd\n\t}", "public Carrinho() {\n\t\tsuper();\n\t}", "public Corso() {\n\n }", "public Respuesta() {\n }", "public Venda() {\n }", "public Estado() {\r\n }", "public Kullanici() {}", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public Destruir() {\r\n }", "public MPaciente() {\r\n\t}", "public Personaje(Juego juego,Celda c) {\r\n\t\tsuper(juego,c);\r\n\t}", "public ControladorUsuario() {\n }", "public Diccionario(){\r\n rz=new BinaryTree<Association<String,String>>(null, null, null, null);\r\n llenDic();\r\n tradOra();\r\n }", "public Utilizador(){\n this.email = \"\";\n this.password = \"\";\n this.nome = \"\";\n this.genero = \"\";\n this.morada = \"\";\n this.data_nasc = new GregorianCalendar();\n this.data_reg = new GregorianCalendar();\n this.amigos = new TreeSet<>();\n this.pedido_amizade = new TreeSet<>();\n this.atividades = new HashMap<>();\n this.eventos = new TreeSet<>();\n }", "public Empleado() { }", "public Puntaje() {\n nombre = \"\";\n puntos = 0;\n }", "public Tequisquiapan()\n {\n nivel = new Counter(\"Barrio Tequisquiapan: \");\n \n nivel.setValue(5);\n hombre.escenario=5;\n\n casa5.creaCasa(4);\n addObject(casa5, 2, 3);\n \n arbol2.creaArbol(2);\n addObject(arbol2, 20, 3);\n arbol3.creaArbol(3);\n addObject(arbol3, 20, 16); \n \n addObject(letrero5, 15, 8);\n\n addObject(hombre, 11, 1);\n \n arbol4.creaArbol(4);\n addObject(arbol4, 20, 20);\n arbol5.creaArbol(5);\n addObject(arbol5, 3, 17);\n \n fuente2.creaAfuera(6);\n addObject(fuente2, 11, 19);\n \n lampara1.creaAfuera(2);\n addObject(lampara1, 8, 14);\n lampara2.creaAfuera(1);\n addObject(lampara2, 8, 7);\n \n addObject(nivel, 5, 0);\n addObject(atras, 20, 2); \n }", "public Postoj() {}", "public Puerto()\n {\n alquileres = new ArrayList<>();\n }", "public InventarioControlador() {\n }", "public SlanjePoruke() {\n }", "public TelaAgendamento() {\n initComponents();\n }", "public Estado() {\n }", "public ABMTiposDesvios() {\n super(new TiposDesviosT());\n initComponents();\n btnBorrar.setEnabled(false);\n HashMap parametros = new HashMap();\n List<TiposDesviosT> nuevo = DesktopApp.getApplication().getTiposDesviosT(parametros);\n setListDto((ArrayList<TiposDesviosT>) nuevo);\n\n tableModel = new TiposDesviosTableModel(columnNames, this.getListDto());\n tableModel.addTableModelListener(new CustomTableModelListener());\n tiposDesviosTable.setModel(tableModel);\n\n sorter = new TableRowSorter<TableModel>(tableModel) {\n\n @Override\n public void toggleSortOrder(int column) {\n RowFilter<? super TableModel, ? super Integer> f = getRowFilter();\n setRowFilter(null);\n super.toggleSortOrder(column);\n setRowFilter(f);\n }\n };\n tiposDesviosTable.setRowSorter(sorter);\n\n setModificado(false);\n setNuevo(false);\n txtMotivo.setEnabled(false);\n\n if (getPadre() == null) {\n btnSeleccionar.setEnabled(false);\n }\n\n parametros = new HashMap();\n\n tiposDesviosTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n }", "public CentrosTrabajo() {\n initComponents();\n }", "public ActividadTest()\n {\n prueba = new Actividad(\"Rumbear\",\"Salir a tomar y bailar con unos amigos\",2018,5,5,6,\n 15,8,30,30,new GregorianCalendar(2018,5,2,3,0),new GregorianCalendar(2018,5,7,8,0));\n }", "public Aritmetica(){ }", "public MessageTran() {\n\t}", "public Exercicio(){\n \n }", "public Persona(){\n /*super(nombresPosibles\n [r.nextInt(nombresPosibles.length)],(byte)r.nextInt(101));\n */\n super(\"Anónimo\",(byte)5);\n String[] nombresPosibles={\"Patracio\",\"Eusequio\",\"Bartolo\",\"Mortadelo\",\"Piorroncho\",\"Tiburcio\"};\n String[] apellidosPosibles={\"Sánchez\",\"López\",\"Martínez\",\"González\",\"Páramos\",\"Jiménez\",\"Parra\"};\n String[] nacionalidadesPosibles={\"Española\",\"Francesa\",\"Alemana\",\"Irlandesa\",\"Japonesa\",\"Congoleña\",\"Bielorrusa\",\"Mauritana\"};\n Random r=new Random();\n this.apellido=apellidosPosibles\n [r.nextInt(apellidosPosibles.length)];\n this.nacionalidad=nacionalidadesPosibles\n [r.nextInt(nacionalidadesPosibles.length)];\n mascota=new Mascota[5];\n this.saldo=r.nextInt(101);\n }", "public Trimestre(){\n id_trimestre=0;\n numero=0;\n debut_trimestre= new Date(2012,8,12);\n fin_trimestre=new Date(2013,1,13);\n id_anneeScolaire=0;\n }", "public Laboratorio() {}", "public Tigre() {\r\n }", "public Funcionario() {\r\n\t\t\r\n\t}", "public Rol() {}", "public CampoModelo(String valor, String etiqueta, Integer longitud)\n/* 10: */ {\n/* 11:17 */ this.valor = valor;\n/* 12:18 */ this.etiqueta = etiqueta;\n/* 13:19 */ this.longitud = longitud;\n/* 14: */ }", "public VotacaoSegundoDia() {\n\n\t}", "public Cgg_jur_anticipo(){}", "public TelaContaUnica() {\n initComponents();\n }", "public Busca(){\n }", "public CCuenta()\n {\n }", "public Transaksi() {\n initComponents();\n }", "public MVCModelo()\n\t{\n\t\ttablaChaining=new HashSeparateChaining<String, TravelTime>(20000000);\n\t\ttablaLineal = new TablaHashLineal<String, TravelTime>(20000000);\n\t}", "public vistaAlojamientos() {\n initComponents();\n \n try {\n miConn = new Conexion(\"jdbc:mysql://localhost/turismo\", \"root\", \"\");\n ad = new alojamientoData(miConn);\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(vistaAlojamientos.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n }", "public HorasTrabalhadasFaces() {\n }", "public Achterbahn() {\n }", "public ConsultaMedica() {\n super();\n }" ]
[ "0.8429635", "0.7345832", "0.7229806", "0.7183992", "0.7089845", "0.69434005", "0.6935616", "0.6926098", "0.68614346", "0.6860156", "0.6834465", "0.6829859", "0.6820203", "0.6820118", "0.6818074", "0.68179053", "0.6775539", "0.6774392", "0.6766166", "0.6752181", "0.6670657", "0.6650516", "0.66476536", "0.66408527", "0.6633365", "0.6620197", "0.66129065", "0.6607094", "0.6601962", "0.65920293", "0.6583168", "0.6580323", "0.6565447", "0.65616596", "0.65610904", "0.6552898", "0.6544437", "0.6526426", "0.6524058", "0.65216047", "0.65132535", "0.6506714", "0.6506534", "0.6501165", "0.64919984", "0.6486977", "0.64830226", "0.6470365", "0.64694285", "0.6467594", "0.64609647", "0.64533377", "0.6449756", "0.64442617", "0.6433516", "0.6429755", "0.64251393", "0.6403924", "0.6397148", "0.63778436", "0.6369632", "0.633549", "0.63315827", "0.63280916", "0.6321182", "0.63166577", "0.63155437", "0.63120186", "0.6307627", "0.63061196", "0.63022256", "0.6300924", "0.6276521", "0.62753445", "0.62709713", "0.62699205", "0.62607783", "0.6258245", "0.62567365", "0.6255994", "0.6254707", "0.62415576", "0.62404865", "0.62348837", "0.6234216", "0.62331736", "0.6229928", "0.62268656", "0.6226216", "0.6224777", "0.62118655", "0.6211746", "0.6211485", "0.61980754", "0.61978304", "0.61949503", "0.6190872", "0.619006", "0.6183919", "0.6183092" ]
0.67124367
20
Strart each test to start with a clean slate, run deleteAllRecords
@Override protected void setUp() throws Exception { super.setUp(); mDBService = new DBService(getContext()); deleteAllRecords(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUp() {\n deleteAllRecords();\n }", "@BeforeEach\n\tpublic void cleanDataBase()\n\t{\n\t\taddRepo.deleteAll()\n\t\t.as(StepVerifier::create) \n\t\t.verifyComplete();\n\t\t\n\t\tdomRepo.deleteAll()\n\t\t.as(StepVerifier::create) \n\t\t.verifyComplete();\n\t}", "@BeforeClass\n public static void clean() {\n DatabaseTest.clean();\n }", "@After\n public void tearDown() {\n addressDelete.setWhere(\"id = \"+addressModel1.getId());\n addressDelete.execute();\n\n addressDelete.setWhere(\"id = \"+addressModel2.getId());\n addressDelete.execute();\n\n addressDelete.setWhere(\"id = \"+addressModel3.getId());\n addressDelete.execute();\n\n\n personDelete.setWhere(\"id = \"+personModel1.getId());\n personDelete.execute();\n\n personDelete.setWhere(\"id = \"+personModel2.getId());\n personDelete.execute();\n\n personDelete.setWhere(\"id = \"+personModel3.getId());\n personDelete.execute();\n\n cityDelete.setWhere(\"id = \"+cityModel1.getId());\n cityDelete.execute();\n\n cityDelete.setWhere(\"id = \"+cityModel2.getId());\n cityDelete.execute();\n }", "@Test\n public void shouldDeleteAllDataInDatabase(){\n }", "@BeforeEach\n @AfterEach\n public void clearDatabase() {\n \taddressRepository.deleteAll();\n \tcartRepository.deleteAll();\n \tuserRepository.deleteAll();\n }", "private void deleteTestDataSet() {\n LOG.info(\"deleting test data set...\");\n try {\n Statement stmt = _conn.createStatement();\n stmt.executeUpdate(\"DELETE FROM tc8x_pks_person\");\n stmt.executeUpdate(\"DELETE FROM tc8x_pks_employee\");\n stmt.executeUpdate(\"DELETE FROM tc8x_pks_payroll\");\n stmt.executeUpdate(\"DELETE FROM tc8x_pks_address\");\n stmt.executeUpdate(\"DELETE FROM tc8x_pks_contract\");\n stmt.executeUpdate(\"DELETE FROM tc8x_pks_category\");\n stmt.executeUpdate(\"DELETE FROM tc8x_pks_project\");\n } catch (Exception e) {\n LOG.error(\"deleteTestDataSet: exception caught\", e);\n }\n }", "@Before\n public void setUp() {\n //clearDbData();//having some trouble\n }", "@After\n public void cleanDatabaseTablesAfterTest() {\n databaseCleaner.clean();\n }", "@After\n public void tearDown() {\n try(Connection con = DB.sql2o.open()) {\n String deleteClientsQuery = \"DELETE FROM clients *;\";\n String deleteStylistsQuery = \"DELETE FROM stylists *;\";\n con.createQuery(deleteClientsQuery).executeUpdate();\n con.createQuery(deleteStylistsQuery).executeUpdate();\n }\n }", "@After\n public void tearDown() {\n jdbcTemplate.execute(\"DELETE FROM assessment_rubric;\" +\n \"DELETE FROM user_group;\" +\n \"DELETE FROM learning_process;\" +\n \"DELETE FROM learning_supervisor;\" +\n \"DELETE FROM learning_process_status;\" +\n \"DELETE FROM rubric_type;\" +\n \"DELETE FROM learning_student;\");\n }", "public void setUp() {\n deleteTheDatabase();\n }", "public void setUp() {\n deleteTheDatabase();\n }", "@After\n\tpublic void tearDown() throws Exception {\n\t\tfor (int i = 0; i < feedbacks.length; ++i) {\n\t\t\tfeedbacks[i] = null;\n\t\t}\n\t\tfeedbacks = null;\n\t\texecuteSQL(connection, \"test_files/stress/clear.sql\");\n\t\tconnection.close();\n\t\tconnection = null;\n\t}", "@Override\r\n\tprotected void tearDown() throws Exception {\n\r\n\t\tdao.insert(\"delete from system.tables where table_id='0000001' and table_name='emp0'\");\r\n\t\tdao.insert(\"delete from system.tables where table_id='0000002' and table_name='dept0'\");\r\n\t\tdao.insert(\"delete from system.tables where table_id='0000003' and table_name='emp'\");\r\n\t\tdao.insert(\"delete from system.tables where table_id='0000004' and table_name='dept'\");\r\n\t\tdao.insert(\"delete from system.databases where database_id='00001' and database_name='database1'\");\r\n\t\tdao.insert(\"delete from system.databases where database_id='00002' and database_name='database2'\");\r\n\t\tdao.insert(\"delete from system.users where user_name='scott'\");\r\n\r\n\t\tdao.insert(\"commit\");\r\n//\t\tdao.disconnect();\r\n\t}", "@Before\n @After\n public void deleteTestTransactions() {\n if (sessionId == null) {\n getTestSession();\n }\n\n // No test transaction has been made yet, thus no need to delete anything.\n if (testTransactionId != null) {\n given()\n .header(\"X-session-ID\", sessionId)\n .delete(String.format(\"api/v1/transactions/%d\", testTransactionId));\n }\n\n if (clutterTransactionId != null) {\n given()\n .header(\"X-session-ID\", sessionId)\n .delete(String.format(\"api/v1/transactions/%d\", clutterTransactionId));\n }\n }", "@AfterEach\n public void tearDown() {\n try {\n Statement stmtSelect = conn.createStatement();\n String sql1 = (\"DELETE FROM tirocinio WHERE CODTIROCINIO='999';\");\n stmtSelect.executeUpdate(sql1);\n String sql2 = (\"DELETE FROM tirocinante WHERE matricola='4859';\");\n stmtSelect.executeUpdate(sql2);\n String sql3 = (\"DELETE FROM enteconvenzionato WHERE partitaIva='11111111111';\");\n stmtSelect.executeUpdate(sql3);\n String sql4 = (\"DELETE FROM User WHERE email='[email protected]';\");\n stmtSelect.executeUpdate(sql4);\n String sql5 = (\"DELETE FROM User WHERE email='[email protected]';\");\n stmtSelect.executeUpdate(sql5);\n conn.commit();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@BeforeEach\n void setUp(){\n DatabaseTwo database = DatabaseTwo.getInstance();\n database.runSQL(\"cleanAll.sql\");\n\n genericDao = new GenericDao(CompositionInstrument.class);\n }", "@Before\n public void prepare() throws Exception {\n Operation operation =\n sequenceOf(InitializeOperations.DELETE_ALL);\n DbSetup dbSetup = new DbSetup(new DataSourceDestination(dataSource), operation);\n dbSetup.launch();\n }", "@After\n\tpublic void tearDown() {\n\t\theroRepository.delete(HERO_ONE_KEY);\n\t\theroRepository.delete(HERO_TWO_KEY);\n\t\theroRepository.delete(HERO_THREE_KEY);\n\t\theroRepository.delete(HERO_FOUR_KEY);\n\t\theroRepository.delete(\"hero::counter\");\n\t}", "@After\n public void tearDown() throws Exception {\n File dbFile = new File(\"./data/clinicmate.h2.db\");\n dbFile.delete();\n dbFile = new File(\"./data/clinicmate.trace.db\");\n dbFile.delete();\n }", "@Override\n public void setUp() {\n deleteTheDatabase();\n }", "@AfterEach\n\tvoid clearDatabase() {\n\t\t//Clear the table\n\t\taccountRepository.deleteAll();\n\t}", "protected void tearDown() throws Exception {\n TestHelper.executeDBScript(TestHelper.SCRIPT_CLEAR);\n TestHelper.closeAllConnections();\n TestHelper.clearAllConfigurations();\n\n super.tearDown();\n }", "public void deleteAllRecords() {\n mContext.getContentResolver().delete(\n ResultContract.ResultEntry.CONTENT_URI,\n null,\n null\n );\n mContext.getContentResolver().delete(\n ResultContract.LocationEntry.CONTENT_URI,\n null,\n null\n );\n\n Cursor cursor = mContext.getContentResolver().query(\n ResultContract.ResultEntry.CONTENT_URI,\n null,\n null,\n null,\n null\n );\n assertEquals(0, cursor.getCount());\n cursor.close();\n\n cursor = mContext.getContentResolver().query(\n ResultContract.LocationEntry.CONTENT_URI,\n null,\n null,\n null,\n null\n );\n assertEquals(0, cursor.getCount());\n cursor.close();\n }", "@AfterEach\n public void tearDown() {\n objectStoreMetaDataService.findAll(ObjectStoreMetadata.class,\n (criteriaBuilder, objectStoreMetadataRoot) -> new Predicate[0],\n null, 0, 100).forEach(metadata -> {\n metadata.getDerivatives().forEach(derivativeService::delete);\n objectStoreMetaDataService.delete(metadata);\n });\n objectUploadService.delete(objectUpload);\n }", "@BeforeEach\n void setUp() {\n widgetRepository.deleteAll();\n }", "@BeforeEach\n public void setUp() {\n EntityManager em = emf.createEntityManager();\n try {\n em.getTransaction().begin();\n em.createNamedQuery(\"Movie.deleteAllRows\").executeUpdate();\n em.persist(m1);\n em.persist(m2);\n em.persist(m3);\n\n em.getTransaction().commit();\n } finally {\n em.close();\n }\n }", "public void testDeleteRecordsAtEnd() {\n deleteAllRecords();\n }", "@After\n public void clearup() {\n try {\n pm.close();\n DriverManager.getConnection(\"jdbc:derby:memory:test_db;drop=true\");\n } catch (SQLException se) {\n if (!se.getSQLState().equals(\"08006\")) {\n // SQLState 08006 indicates a success\n se.printStackTrace();\n }\n }\n }", "@BeforeEach\n void setUp() {\n\n Database database = Database.getInstance();\n database.runSQL(\"cleanDb.sql\");\n\n\n genericDao = new GenericDao(UserRoles.class);\n }", "@AfterClass\n\tpublic static void cleanIndex() {\n\t\tEntityTest et = new EntityTest(id, \"EntityTest\");\n\t\tRedisQuery.remove(et, id);\n\t}", "private void clearOneTest() {\n corpus.clear();\n Factory.deleteResource(corpus);\n Factory.deleteResource(learningApi);\n controller.remove(learningApi);\n controller.cleanup();\n Factory.deleteResource(controller);\n }", "@Before\n public void setUp() throws Exception {\n List<Note> nList = dao.getAllNotes();\n\n nList.stream()\n .forEach(note -> dao.deleteNote(note.getNoteId()));\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\tList<Coffee> cList = dao.allCoffee();\n\n\t\tcList.stream()\n\t\t\t\t.forEach(coffee -> dao.deleteCoffee(coffee.getCoffeeId()));\n\t}", "private static void deleteTest() throws SailException{\n\n\t\tString dir2 = \"repo-temp\";\n\t\tSail sail2 = new NativeStore(new File(dir2));\n\t\tsail2 = new IndexingSail(sail2, IndexManager.getInstance());\n\t\t\n//\t\tsail.initialize();\n\t\tsail2.initialize();\n\t\t\n//\t\tValueFactory factory = sail2.getValueFactory();\n//\t\tCloseableIteration<? extends Statement, SailException> statements = sail2\n//\t\t\t\t.getConnection().getStatements(null, null, null, false);\n\n\t\tSailConnection connection = sail2.getConnection();\n\n\t\tint cachesize = 1000;\n\t\tint cached = 0;\n\t\tlong count = 0;\n\t\tconnection.removeStatements(null, null, null, null);\n//\t\tconnection.commit();\n\t}", "public void deleteTableRecords()\n {\n coronaRepository.deleteAll();\n }", "@After\n public void tearDown() {\n for (Filter filter : filterService.createTaskFilterQuery().list()) {\n filterService.deleteFilter(filter.getId());\n }\n }", "@AfterEach\n\tpublic void tearThis() throws SQLException {\n\t\tbookDaoImpl.delete(testBook);\n\t\tbranchDaoImpl.delete(testBranch);\n\t}", "void resetTesting() {\r\n\t\tcompanyCars.clear();\r\n\t\trentDetails.clear();\r\n\t}", "public void DeleteAllRecordsInTable() {\n\n final List<Address> gndPlan = GetAllRecordsFromTable();\n for (int i = 0; i < gndPlan.size(); i++) {\n\n gndPlan.get(i).delete();\n //delete all item in table House\n }\n\n }", "@After\n\tpublic void testOut() {\n\t\tList<VehicleType> all = vehicleTypeService.getAll();\n\t\tfor (VehicleType vehicleType : all) {\n\t\t\tvehicleTypeService.delete(vehicleType.getId());\n\t\t}\n\t}", "@After\n public void tearDown() throws Exception {\n databaseTester.onTearDown();\n }", "private void doTests()\n {\n doDeleteTest(); // doSelectTest();\n }", "@Before\n public void setUp() {\n model.enterFolder(TypicalIndexes.INDEX_FIRST_CARD_FOLDER.getZeroBased());\n deleteFirstCard(model);\n deleteFirstCard(model);\n\n expectedModel.enterFolder(TypicalIndexes.INDEX_FIRST_CARD_FOLDER.getZeroBased());\n deleteFirstCard(expectedModel);\n deleteFirstCard(expectedModel);\n }", "@AfterAll\n static void cleanOperate()\n { \n //clear reference of operate after all the tests done\n operate = null;\n System.out.println(\"only After all the tests....\");\n }", "@AfterClass\n public void cleanUp() {\n }", "@Test\n @JUnitTemporaryDatabase // Relies on specific IDs so we need a fresh database\n public void testDelete() throws Exception {\n createAndFlushServiceTypes();\n createAndFlushCategories();\n \n //Initialize the database\n ModelImporter mi = m_importer;\n String specFile = \"/tec_dump.xml.smalltest\";\n mi.importModelFromResource(new ClassPathResource(specFile));\n \n assertEquals(10, mi.getNodeDao().countAll());\n }", "@AfterSuite\n\tpublic void tearDown() {\n\t\tremoveSingleFileOrAllFilesInDirectory(\"file\", \"./Logs/Log4j.log\");\n\n\t\t// Flushing extent report after completing all test cases\n\t\treports.endTest(extent);\n\t\treports.flush();\n\t}", "public void deleteAllCIQProfilesBeforeSuite() throws Exception {\n\t\tdciFunctions = new DCIFunctions();\n\t\tdciFunctions.cleanupAllTenants(restClient, suiteData);\n\t}", "@BeforeMethod\n public void cleanBefore() {\n roleRepository.deleteAll();\n }", "@After\n public void removeEverything() {\n\n ds.delete(uri1);\n ds.delete(uri2);\n ds.delete(uri3);\n\n System.out.println(\"\");\n }", "@Before\n public void setUp() throws Exception {\n attemptsInReport = attemptRecordService.findByCccid(reportTestStudent);\n deleteAttempts(true);\n }", "@BeforeEach\n public void setUp() {\n EntityManager em = emf.createEntityManager();\n try {\n em.getTransaction().begin();\n em.createNamedQuery(\"Cars.deleteAllCars\").executeUpdate();\n em.persist(c1);\n em.persist(c2); \n em.getTransaction().commit();\n } finally {\n em.close();\n }\n }", "@After\n public void deleteAfterwards() {\n DBhandlerTest db = null;\n try {\n db = new DBhandlerTest();\n } catch (Exception e) {\n e.printStackTrace();\n }\n db.deleteTable();\n }", "@After\r\n public void tearDown() {\r\n try {\r\n Connection conn=DriverManager.getConnection(\"jdbc:oracle:thin:@//localhost:1521/XE\",\"hr\",\"hr\");\r\n Statement stmt = conn.createStatement();\r\n stmt.execute(\"DELETE FROM Packages WHERE Pkg_Order_Id=-1\");\r\n stmt.execute(\"DELETE FROM Packages WHERE Pkg_Order_Id=-2\");\r\n } catch (Exception e) {System.out.println(e.getMessage());}\r\n }", "@BeforeMethod()\n @AfterClass(groups = \"close\")\n public void cleanup()\n throws Exception\n {\n this.cleanup(AbstractTest.CI.DM_PATHTYPE); // as first, so that local attributes of path types are deleted!\n this.cleanup(AbstractTest.CI.PRG_MQL);\n this.cleanup(AbstractTest.CI.DM_ATTRIBUTE);\n this.cleanup(AbstractTest.CI.DM_RELATIONSHIP);\n this.cleanup(AbstractTest.CI.DM_RULE);\n this.cleanup(AbstractTest.CI.DM_TYPE);\n }", "@AfterClass\n\tpublic static void teardown() {\n\t\tdataMunger = null;\n\n\t}", "@After\n public void tearDown() {\n userRepository.deleteAll();\n }", "@AfterMethod\r\n public void tearDown() {\r\n \ttry {\r\n Client.url(\"http://localhost:\" + port + getResourcePath() + \"/all\").delete().get();\r\n } catch (InterruptedException | ExecutionException e) {\r\n Assertions.fail(\"Exception during delete all request\", e);\r\n }\r\n }", "@AfterSuite(alwaysRun=true)\n\tpublic void deleteAllCIQProfilesAfterSuite() throws Exception {\n\t\tdciFunctions = new DCIFunctions();\n\t\tdciFunctions.cleanupAllTenants(restClient, suiteData);\n\t}", "@Before\r\n\tpublic void setUp() {\n\t\tfor (int i=0; i<NUM_USERS; i++) {\r\n\t\t\ttry {\r\n\t\t\t\tNewUser user = CrowdAuthUtil.getUser(userID(i));\r\n\t\t\t\tCrowdAuthUtil.deleteUser(user.getEmail());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// here we are doing the best we can, so just go on to the next one\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Before\n public void setUp() throws IkatsDaoException {\n Facade.removeAllMacroOp();\n }", "@After\n\tpublic void tearDown() throws URISyntaxException {\n\t\tTEST_ENVIRONMENT.emptyDb();\n\t\tTEST_ENVIRONMENT.migrateDb();\n\t}", "@After\n public void teardown() {\n for (UseTypeEntity thisEntity : entities) {\n me.deleteUseTypeEntity(thisEntity);\n }\n\n // clean up\n me = null;\n testEntity = null;\n entities = null;\n\n }", "@BeforeEach\n void clean() throws IOException {\n client.deleteMXRec(fqdn);\n client.deleteMXRec(newFqdn);\n }", "@AfterEach\n public void teardown() {\n mockDAO = null;\n addFlight = null;\n flight = null;\n }", "public void deleteAll() {\n\t\t\n\t}", "public void deleteAll() {\n\n\t}", "@Test\n public void teardown() throws SQLException {\n PreparedStatement ps = con.prepareStatement(\"delete from airline.user where username = \\\"username\\\";\");\n ps.executeUpdate();\n this.con.close();\n this.con = null;\n this.userDAO = null;\n this.testUser = null;\n }", "@After\n public void tearDown() throws Exception {\n if (!persistentDataStore) {\n datastore.deleteByQuery(datastore.newQuery());\n datastore.flush();\n datastore.close();\n }\n }", "@Test\n public void cleanWithRecycleBin() throws Exception {\n assertEquals(0, recycleBinCount());\n\n // in SYSTEM tablespace the recycle bin is deactivated\n jdbcTemplate.update(\"CREATE TABLE test_user (name VARCHAR(25) NOT NULL, PRIMARY KEY(name)) tablespace USERS\");\n jdbcTemplate.update(\"DROP TABLE test_user\");\n assertTrue(recycleBinCount() > 0);\n\n flyway.clean();\n assertEquals(0, recycleBinCount());\n }", "@AfterClass (alwaysRun = true)\r\n\tpublic void cleanApp() throws Exception{\r\n\r\n\t\ttry {\r\n\t\t\tUtility.destroyUsers(xlTestDataWorkBook);\r\n\t\t\tUtility.destroyTestVault();\r\n\r\n\t\t}//End try\r\n\r\n\t\tcatch(Exception e){\r\n\t\t\tthrow e;\r\n\t\t}//End Catch\r\n\t}", "@Override\n protected void tearDown() throws Exception {\n super.tearDown();\n\n for (Event e : events) {\n DBManager.removeEvent(e);\n Event e3 = DBManager.getEventById(e.eid);\n assertNull(e3);\n }\n\n for (Account a : accounts) {\n DBManager.removeAccount(a);\n Account a3 = DBManager.getAccountById(a.getUid());\n assertNull(a3);\n }\n\n for (Attending pair : attending) {\n assertTrue(DBManager.checkAttendance(pair.a, pair.e));\n DBManager.removeAttendance(pair.a, pair.e);\n assertFalse(DBManager.checkAttendance(pair.a, pair.e));\n }\n }", "@Before\n public void setUp() throws Exception {\n Context targetContext = InstrumentationRegistry.getInstrumentation()\n .getTargetContext();\n\n db = DatabaseHelper.getInstance(targetContext);\n db.deleteAllCustomerTableRecords();\n db.deleteAllLanesCustomers();\n db.deleteAllLanesPlayers();\n ServicesUtils.resetCustomers();\n\n addCustomerTest(\"a\",\"b\",\"a\");\n addCustomerTest(\"a\",\"b\",\"b\");\n addCustomerTest(\"a\",\"b\",\"c\");\n }", "@AfterEach\n public void tearDown() {\n rrpss = null;\n restaurant = null;\n customerFactory = null;\n staffFactory = null;\n tableFactory = null;\n menuFactory = null;\n setMenuFactory = null;\n reservationFactory = null;\n orderFactory = null;\n }", "@Override\r\n public void tearDown() throws Exception {\r\n super.tearDown();\r\n clearSqlLogHandler();\r\n }", "public void deleteAll()\n\t{\n\t}", "public void deleteAll()\n\t{\n\t}", "public void deleteAllRealTestCode() {\n\n\t myDataBase.delete(\"tbl_TestCode\", \"TestCode\" + \" != ?\",\n\t new String[] { \"1\" });\n\t }", "protected void tearDown() throws Exception {\n\n InvoiceDAOFactory.clear();\n TestHelper.clearNamespaces();\n super.tearDown();\n }", "@After\n public void cleanup() {\n Ebean.deleteAll(userQuery.findList());\n Ebean.deleteAll(userOptionalQuery.findList());\n }", "@AfterClass (alwaysRun = true)\r\n\tpublic void cleanApp() throws Exception{\r\n\r\n\t\ttry {\r\n\t\t\tUtility.destroyTestVault();\r\n\t\t\tUtility.destroyTestVault(\"My Vault\");\r\n\t\t\tUtility.destroyUsers(xlTestDataWorkBook, \"DestroyUsers\");\r\n\r\n\t\t}//End try\r\n\r\n\t\tcatch(Exception e){\r\n\t\t\tthrow e;\r\n\t\t}//End Catch\r\n\t}", "@After\n\tpublic void testEachCleanup() {\n\t\tSystem.out.println(\"Test Completed!\");\n\t}", "@BeforeEach\n public void setUp() {\n EntityManager em = emf.createEntityManager();\n p1 = new Person(\"Kim\", \"Hansen\", \"123456789\");\n p2 = new Person(\"Pia\", \"Hansen\", \"111111111\");\n try {\n em.getTransaction().begin();\n em.createNamedQuery(\"Person.deleteAllRows\").executeUpdate();\n em.persist(p1);\n em.persist(p2);\n em.getTransaction().commit();\n } finally {\n em.close();\n }\n }", "@AfterEach\n void dropAllTablesAfter() throws SQLException {\n Connection connPlayers = individualPlayerScraper.setNewConnection(\"playertest\");\n ResultSet rsTables = connPlayers.prepareStatement(\"SHOW TABLES\").executeQuery();\n while (rsTables.next()) {\n connPlayers.prepareStatement(\"DROP TABLE \" + rsTables.getString(1)).execute();\n }\n rsTables.close();\n connPlayers.close();\n }", "@Test\n public void deleteAllUsesStationDaoToRemoveAllStations()\n {\n StationDao mockStationDao = mock(StationDao.class);\n LundergroundFacade facade = new LundergroundFacade();\n facade.setStationDao(mockStationDao);\n\n facade.deleteAllStations();\n\n verify(mockStationDao).deleteAll();\n }", "void deleteAll() throws Exception;", "void deleteAll() throws Exception;", "public void deleteAll() {\n new Thread(new DeleteAllRunnable(dao)).start();\n }", "@BeforeEach\n public void setUp() {\n EntityManager em = emf.createEntityManager();\n\n try {\n em.getTransaction().begin();\n em.createQuery(\"DELETE FROM Book\").executeUpdate();\n em.createNamedQuery(\"RenameMe.deleteAllRows\").executeUpdate();\n em.persist(b1 = new Book(\"12312\", \"harry potter\", \"Gwenyth paltrow\", \"egmont\", \"1999\"));\n em.persist(b2 = new Book(\"8347\", \"harry potter2\", \"Gwenyth paltrow\", \"egmont\", \"1998\"));\n em.persist(b3 = new Book(\"1231\", \"harry potter3\", \"Gwenyth paltrow\", \"egmont\", \"1997\"));\n\n em.getTransaction().commit();\n } finally {\n em.close();\n }\n }", "@After\n public void tearDown() {\n fixture.cleanUp();\n }", "@Before\r\n\tpublic void cleanStart(){\n\t\tStartupFunctions.clearTabs();\r\n\t}", "@Before\r\n\tpublic void cleanStart(){\n\t\tStartupFunctions.clearTabs();\r\n\t}", "public void deleteAll() {\n try (Connection connection = dataSource.getConnection();\n Statement statement = connection.createStatement()) {\n statement.execute(INIT.DELETE_ALL.toString());\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }", "@Test\n void deleteUserBatchesRemainSuccess() {\n GenericDao anotherDao = new GenericDao( Batch.class );\n /* user id 2 in the test database has two associated batches */\n User userWithBatch = (User) genericDao.getById(2);\n /* store the associated batches for this user */\n Set<Batch> batches = (Set<Batch>) userWithBatch.getBatches();\n logger.debug(\"The user's batches: \" + batches);\n\n /*\n * -disassociate the batches (this is the only way I can see to not delete the orphan records)\n * -delete the user\n * -confirm deletion\n */\n userWithBatch.setBatches(null);\n\n genericDao.delete(userWithBatch);\n\n assertNull(genericDao.getById(2));\n\n /*\n * try to retrieve the batches based on id\n * confirm they have not been removed from the database\n */\n for (Batch batch : batches) {\n logger.debug(\"test batch id: \" + batch.getId());\n Batch testBatch = (Batch) anotherDao.getById(batch.getId());\n logger.debug(\"Test batch retrieved from db: \" + testBatch);\n assertNotNull(testBatch);\n }\n }", "@BeforeAll\n void dropAllTablesBefore() throws SQLException {\n Connection connPlayers = individualPlayerScraper.setNewConnection(\"playertest\");\n ResultSet rsTables = connPlayers.prepareStatement(\"SHOW TABLES\").executeQuery();\n while (rsTables.next()) {\n connPlayers.prepareStatement(\"DROP TABLE \" + rsTables.getString(1)).execute();\n }\n rsTables.close();\n connPlayers.close();\n }", "@After\r\n public void cleanTestObject()\r\n {\r\n testLongTermStorage.resetInventory();\r\n }", "@After\n public void tearDown() {\n\t\trepository.delete(dummyUser);\n System.out.println(\"@After - tearDown\");\n }", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}" ]
[ "0.83474094", "0.7599303", "0.7484611", "0.7341638", "0.7302981", "0.72967833", "0.7167896", "0.71386164", "0.71025443", "0.70136184", "0.6978271", "0.69612247", "0.69612247", "0.6907549", "0.6878417", "0.6877107", "0.68638766", "0.68560594", "0.6844387", "0.6811726", "0.6791319", "0.67681164", "0.67583025", "0.67226404", "0.6698348", "0.66947794", "0.66802365", "0.6660792", "0.66605544", "0.66472924", "0.6638502", "0.6637443", "0.66183543", "0.6616127", "0.66100866", "0.660635", "0.6606208", "0.65918845", "0.6581724", "0.6557276", "0.6540302", "0.65400445", "0.6524012", "0.65235925", "0.6522204", "0.6521264", "0.6494833", "0.6475602", "0.6466874", "0.646121", "0.64607567", "0.6447921", "0.6444869", "0.6444254", "0.6435889", "0.643291", "0.6430417", "0.64289176", "0.64205223", "0.64188945", "0.6412922", "0.64064676", "0.64038783", "0.6401059", "0.63943774", "0.63758737", "0.6370252", "0.63626", "0.6360461", "0.6356374", "0.6356158", "0.63548285", "0.63543457", "0.6350705", "0.6344673", "0.63425684", "0.6335748", "0.633379", "0.633379", "0.63310945", "0.63147813", "0.6312941", "0.6308684", "0.6307137", "0.63063633", "0.63060087", "0.63013726", "0.6289339", "0.6289339", "0.6284869", "0.6279117", "0.6265675", "0.62649864", "0.62649864", "0.6252864", "0.62416774", "0.6241044", "0.62371266", "0.6231413", "0.6229766" ]
0.7040452
9
TODO Autogenerated method stub
public static void main(String[] args) { System.out.println("Hello World"); SaveLoadHandler slhandler = new SaveLoadHandler(); slhandler.ConnectAndCheckTablesExists(); try { SessionData testData = new SessionData(new LinkedList<Location>(), 20, 30,"test", new HashSet<Names>(), "Test", "Test2", "Test3"); testData.addStation(new Location("teststraße1", "21629", "nw", 22)); slhandler.Save(testData); testData.addName(new Names("Tom", "Mueller")); testData.addName(new Names("Mark", "Mueller")); slhandler.Save(testData); testData.setFixCosts(100); slhandler.Save(testData); testData.addStation(new Location("teststraße2", "22880", "wedel", 29)); slhandler.Save(testData); testData.getStations().get(0).setStreetNumber(90); testData.addName(new Names("Tom", "Knoblauch")); slhandler.Save(testData); int sessionId = testData.getId(); SessionData loaded = slhandler.Load(sessionId); System.out.println("Loadedlocations: " + loaded.getStations().size()); System.out.println("Loadedlocations: " + slhandler.loadAllLocations().size()); System.out.println("LoadedNames: " + slhandler.loadAllNames().size()); loaded.setTitle("abcd"); slhandler.Save(loaded); } catch (SaveLoadException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
{ "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
O(n) time, O(n) space; where n is the length of the strings
boolean checkPermutation(String a, String b) { if (a == null || b == null) { throw new NullPointerException(); } if (a.length() != b.length()) { return false; } Map<Character, Integer> frequencies = getFrequency(a); for (int i = 0; i < b.length(); i++) { char c = b.charAt(i); if (frequencies.containsKey(c)) { int count = frequencies.get(c); if (count == 0) { return false; } frequencies.replace(c, count - 1); } else { return false; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static long substrCount(int n, String input) {\n List<String> result = new ArrayList<>();\n if (!isEmpty(input)) {\n for (int index = 0; index <= input.length(); index++) {\n for (int i = index; i <= input.length(); i++) {\n String temp = input.substring(index, i);\n if (valid(temp)) {\n result.add(temp);\n }\n }\n }\n }\n return result.size();\n\n }", "static long repeatedString(String s, long n) {\n \t\n \tchar first;\n \tfirst = s.charAt(0);\n \t\n \tint count = 0;\n \tlong[] fill = new long[n];\n \t\n \tfor(int i=1; i<n; i++) {\n \t\tif(first == s.charAt(i)) count++;\n \t}\n \t\n \tlong result = ((n / s.length()) * count) + (n % s.length());\n \treturn result;\n\n }", "static long repeatedString(String s, long n) {\n char[] arr=s.toCharArray();\n int i,count=0,cnt=0;\n for(i=0;i<arr.length;i++){\n if(arr[i]=='a'){\n count++;\n }\n }\n long len=(n/arr.length)*count;\n long extra=n%arr.length;\n if(extra==0){\n return len;\n }else{\n for(i=0;i<extra;i++){\n if(arr[i]=='a'){\n cnt++;\n }\n }\n return len+cnt;\n }\n\n\n }", "private static int solution2(String s) {\r\n int n = s.length();\r\n int ans = 0;\r\n for (int i = 0; i < n; i++)\r\n for (int j = i + 1; j <= n; j++)\r\n if (allUnique(s, i, j)) ans = Math.max(ans, j - i);\r\n return ans;\r\n }", "public boolean strCopies(String str, String sub, int n) {\n//Solution to problem coming soon\n}", "static long substrCount(int n, String s) {\n \tlong output=0;\n \t\n \tboolean[][] matrix = new boolean[n][n];\n \t\n \tfor(int i=0; i<n; i++) {\n \t\tmatrix[i][i] = true;\n \t\toutput++;\n \t}\n \t\n \tfor(int gap=1; gap<n; gap++) {\n \t\tfor(int i=0; i+gap <n; i++) {\n \t\t\tint j = i+gap;\n \t\t\t\n \t\t\tif(gap ==1) {\n \t\t\t\tif(s.charAt(i) == s.charAt(j)) {\n \t\t\t\t\tmatrix[i][j] = true;\n \t\t\t\t\toutput++;\n \t\t\t\t} else {\n \t\t\t\t\tmatrix[i][j] = false;\n \t\t\t\t}\n \t\t\t} else {\n \t\t\t\tif(s.charAt(i) == s.charAt(j) && matrix[i+1] [j-1]) {\n \t\t\t\t\t\n \t\t\t\t\tif(j-i >= 4 && s.charAt(i)== s.charAt(i+1)) {\n \t\t\t\t\t\tmatrix[i][j] = true;\n \t\t\t\t\toutput++;\n \t\t\t\t\t} else if(j-i <4) {\n \t\t\t\t\t\tmatrix[i][j] = true;\n \t\t\t\t\toutput++;\n \t\t\t\t\t} else {\n \t\t\t\t\t\tmatrix[i][j] = false;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t} else {\n \t\t\t\t\tmatrix[i][j] = false;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n \t\n \treturn output;\n }", "public abstract void createLongestRepeatedSubstring();", "static long repeatedString(String s, long n) {\n long l=s.length();\n long k=n/l;\n long r=n%l;\n long count=0;\n long count1=0;\n char ch[]=s.toCharArray();\n for(int t=0;t<ch.length;t++){\n if(ch[t]=='a')\n count1++;\n }\n for(int t=0;t<r;t++){\n if(ch[t]=='a')\n count++;\n }\n return k*count1+count;\n\n }", "private static void longestSubstringAllUnique(String s) {\n\t\tif(s == null || s.length() == 0) {\n\t\t\tSystem.out.println(\"\");\n\t\t\treturn;\n\t\t}\n\t\t//sliding window : 2 pointers (one is use for traverse)\n\t\tint l = 0;\n\t\tSet<Character> set = new HashSet<>();//keep track of current window char\n\t\tint longest = 0;\n\t\t\n\t\tfor(int r = 0; r < s.length(); r++) {\n//\t\t\tif(set.contains(s.charAt(r))) {\n//\t\t\t\twhile(set.contains(s.charAt(r))) {\n//\t\t\t\t\tset.remove(s.charAt(l));\n//\t\t\t\t\tl++;\n//\t\t\t\t}\n//\t\t\t}\n\t\t\t\n\t\t\twhile(set.contains(s.charAt(r))) {//set == itself give distinct key: our requirement is all distinct \n\t\t\t\tset.remove(s.charAt(l));\n\t\t\t\tl++;\n\t\t\t}\n\t\t\t\n\t\t\tset.add(s.charAt(r));\n\t\t\tint currentWindowSize = r - l + 1;\n\t\t\tlongest = Math.max(longest, currentWindowSize);\n\t\t}\n\t\tSystem.out.println(longest);\n\t}", "private static int solution3(String s) {\r\n int n = s.length();\r\n Set<Character> set = new HashSet<>();\r\n int ans = 0, i = 0, j = 0;\r\n while (i < n && j < n) {\r\n if (!set.contains(s.charAt(j))) {\r\n set.add(s.charAt(j++));\r\n ans = Math.max(ans, j - i);\r\n } else {\r\n set.remove(s.charAt(i++));\r\n }\r\n }\r\n return ans;\r\n }", "static long repeatedString(String s, long n) {\n if (s.contains(\"a\")) {\n StringBuilder stringBuilder = new StringBuilder(s);\n String infiniteString = \"\";\n if (stringBuilder.length() < n) {\n //repeat String if length is less than n\n infiniteString = infiniteString(s, n);\n }\n int count = 0;\n char[] stringArray = infiniteString.toCharArray();\n for (int i = 0; i < n; i++) {\n\n char a = 'a';\n if (stringArray[i] == a) {\n count++;\n }\n }\n return count;\n } else {\n return 0;\n }\n }", "static long repeatedString(String s, long n) {\n long a_count = 0;\n long total_a_count = 0;\n long modulo_s = 0;\n\n if(n>s.length()){\n for (int i=0; i<s.length(); i++)\n if(s.charAt(i)=='a') a_count++;\n\n total_a_count = a_count*(n/s.length());\n modulo_s = n%s.length();\n\n for (int i=0; i<modulo_s; i++)\n if(s.charAt(i)=='a') total_a_count++;\n\n return total_a_count;\n }\n\n else {\n for (int i=0; i<n; i++)\n if(s.charAt(i)=='a') a_count++;\n return a_count;\n }\n }", "static long repeatedString(String s, long n) {\n\n char[] str = s.toCharArray();\n\n String temp = \"\";\n\n int i=0;\n long count=0;\n\n while(i<str.length){\n if(str[i]=='a'){\n count++;\n }\n i++;\n }\n\n long occurance = n/str.length;\n long remainder = n%str.length;\n count = count*occurance;\n\n i=0;\n while(i<remainder){\n if(str[i]=='a'){\n count++;\n }\n i++;\n }\n\n return count;\n\n }", "public abstract String getLongestRepeatedSubstring();", "static int sherlockAndAnagrams(String s){\n // Complete this function\n ArrayList<String> substringArray = new ArrayList<>();\n for(int i=0;i<s.length();i++){\n for(int j=i+1;j<s.length()+1;j++){\n substringArray.add(s.substring(i,j));\n }\n }\n int count = countAnagrams(substringArray);\n return count;\n }", "static void stringConstruction(String s) {\n\n StringBuilder buildUniq = new StringBuilder();\n boolean[] uniqCheck = new boolean[128];\n\n for (int i = 0; i < s.length(); i++) {\n if (!uniqCheck[s.charAt(i)]) {\n uniqCheck[s.charAt(i)] = true;\n if (uniqCheck[s.charAt(i)]){\n buildUniq.append(s.charAt(i));\n }\n }\n }\n String unique=buildUniq.toString();\n int n = unique.length();\n System.out.println(n);\n }", "public static void SubString(String str, int n)\r\n {\r\n\t\tint count = 0;\r\n\t\tStringBuilder sb = new StringBuilder();\r\n for (int i = 0; i < n; i++) { \r\n for (int j = i+1; j <= n; j++) {\r\n \t String subs = str.substring(i, j);\r\n \t \r\n \t if((Integer.valueOf(subs)) <= 26) {\r\n \t\t System.out.println(subs);\r\n \t\t sb.append(subs);\r\n \t\t \r\n \t }\r\n }\r\n }\r\n \r\n for(int i = 0; i < sb.length() - 2; i++) {\r\n \t for(int j = i + 1; j < sb.length() - 1; j++) {\r\n \t\t for(int k = j + 1; k < sb.length(); k++) {\r\n \t\t\t StringBuilder temp = new StringBuilder();\r\n \t\t\t temp.append(sb.charAt(i));\r\n \t\t\t temp.append(sb.charAt(j));\r\n \t\t\t temp.append(sb.charAt(k));\r\n \t\t\t //System.out.println(temp.toString());\r\n \t\t\t if(temp.toString().equals(str)) { // !!! have to use equals!!!!\r\n \t\t\t\t count++;\r\n \t\t\t }\r\n \t\t }\r\n \t } \r\n \t}\r\n System.out.println(\"count \" + count);\r\n }", "public int lengthOfLongestSubstringKDistinctImprvd(String s, int k) {\n if (s == null || s.length() == 0) {\n return 0;\n }\n \n int[] map = new int[256];\n int j = 0;\n int distinctCt = 0;\n int maxLen = 0;\n\n for (int i = 0; i < s.length(); i++) {\n while (j < s.length()) {\n map[s.charAt(j)] += 1;\n if (map[s.charAt(j)] == 1) {\n distinctCt++;\n }\n j++;\n if (distinctCt > k) {\n break;\n }\n maxLen = Math.max(j- i, maxLen);\n }\n map[s.charAt(i)] -= 1;\n if (map[s.charAt(i)] == 0) {\n distinctCt--;\n }\n }\n\n return maxLen;\n}", "private static int substringPalindromes(String input) {\n // To check for duplicate palidromes we store them in hashset\n HashSet<String> palindromes = new HashSet<>();\n for(int i=0;i<input.length();i++){\n // For palidromes with odd length\n checkPalindrome(input,i,i,palindromes);\n // For palidromes with even length\n checkPalindrome(input,i,i+1,palindromes);\n }\n return palindromes.size();\n }", "public int findLUSlength(String[] strs) { //O(n^2) time. O(1) space.\r\n\t\tif (strs.length == 0)\r\n\t\t\treturn 0;\r\n\t\tint max = -1;\r\n\t\tint i = 0;\r\n\t\t// Arrays.sort(strs, (a,b) -> b.length() - a.length());\r\n\t\tfor (int j = 0; j < strs.length; j++) {\r\n\t\t\tfor (i = 0; i < strs.length; i++) {\r\n\t\t\t\tif (j == i || !isSubsequence(strs[j], strs[i]))\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif (i == strs.length)\r\n\t\t\t\tmax = Math.max(strs[j].length(), max);\r\n\t\t}\r\n\t\treturn max;\r\n\t}", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int N = Integer.parseInt(in.nextLine());\n HashSet<Character> first = new HashSet<Character>();\n HashSet<Character> second = new HashSet<Character>();\n int i=0;\n char temp = 'a';\n for(temp='a';temp<='z';temp++){\n \t first.add(temp);\n }\n int j;\n while(i<N){\n \t second.clear();\n \t char[] stringArray = in.nextLine().toCharArray();\n \t for(j=0;j<stringArray.length;j++){\n \t\t second.add(stringArray[j]); \n \t }\n \t first.retainAll(second);\n \t i++;\n }\n System.out.println(first.size());\n }", "private String concatNcopies(int n,String str){\n\t\tString result = \"\";\n\t\tfor (int i=0;i<n;i++){\n\t\t\tresult +=str;\n\t\t}\n\t\treturn result;\n\t}", "static int sherlockAndAnagrams(String s) {\n HashTable hashTable = new HashTable(s.length() * s.length() * 4);\n substrings(s).map(Solution::ordered).forEach(hashTable::insert);\n return substrings(s).map(Solution::ordered).mapToInt(s1 -> {\n hashTable.remove(s1);\n return hashTable.count(s1);\n }).sum();\n }", "static int size_of_ori(String passed){\n\t\treturn 2;\n\t}", "public long distinctSubstring() {\n long ans = 1;\n int n = rank.length;\n for (int i = 0; i < n; i++) {\n long len = n - i;\n if (rank[i] < n - 1) {\n len -= lcp[rank[i]];\n }\n ans += len;\n }\n return ans;\n }", "public int countSubstrings(String s) {\n int l = s.length();\n cache = new int[l][l];\n\n for (int[] is : cache) {\n Arrays.fill(is, -1);\n }\n\n for (int i = 0; i < l; i++) {\n cache[i][i] = 1;\n }\n\n for (int i = 0; i < l; i++) {\n for (int j = i + 1; j < l; j++) {\n char c1, c2;\n c1 = s.charAt(i);\n c2 = s.charAt(j);\n if (c1 == c2) {\n if (j == i + 1 && cache[i][j] == -1) {\n cache[i][j] = 1;\n } else if (cache[i][j] == -1) {\n cache[i][j] = solve(s, i + 1, j - 1);\n }\n } else {\n cache[i][j] = 0;\n }\n }\n }\n\n int total = 0;\n\n for (int[] is : cache) {\n for (int i : is) {\n if (i > 0) {\n total += i;\n }\n }\n }\n\n return total;\n }", "public static String nCopies(String s, int n) {\n\t\tif (s == null) {\n\t\t\treturn null;\n\t\t}\n\t\tStringBuilder sb = new StringBuilder(s.length() * n + 8);\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tsb.append(s);\n\t\t}\n\t\treturn sb.toString();\n\t}", "public static void main(String[] args) {\n\t\tString string1 = \"acbdfbdfacb\";\n\t\tint length = string1.length();\n\t\tString[] sub = new String[length*(length+1)/2];\n\t\tint temp = 0;\n\t\tfor(int i =0;i<length;i++) {\n\t\t\tfor(int j = i;j<length;j++) {\n\t\t\t\tString parts = string1.substring(i,j+1);\n\t\t\t\tsub[temp] = parts;\n\t\t\t\ttemp++;\n\t\t\t}\n\t\t}\n\t\tfor(int j =0;j<sub.length;j++) {\n\t\t\tSystem.out.println(sub[j]);\n\t\t}\n\t\tArrayList<String> rep = new ArrayList<String>();\n\t\tfor(int i=0;i<sub.length;i++) {\n\t\t\tfor(int j =i+1;j<sub.length;j++) {\n\t\t\t\tif(sub[i].equals(sub[j])) {\n\t\t\t\t\trep.add(sub[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint largestString = 0;\n\t\tSystem.out.println(rep);\n\t\tfor(int k =0;k<rep.size();k++) {\n\t\t\tif(rep.get(k).length()>largestString) {\n\t\t\t\tlargestString = rep.get(k).length();\n\t\t\t}\t\t\n\t\t}\n\t\tfor(int k =0;k<rep.size();k++) {\n\t\tif(rep.get(k).length()==largestString) {\n\t\t\tSystem.out.println(\"the longest repeating sequence in a string : \"+rep.get(k));\n\t\t}\n\t\t}\n\t}", "static int sherlockAndAnagrams(String s) {\n int total = 0;\n for (int width = 1; width <= s.length() - 1; width++) {\n\n for(int k = 0 ;k <= s.length() - width; k++){\n\n String sub = s.substring(k, k + width);\n\n int[] subFreq = frequenciesOf(sub);\n for (int j = k + 1; j <= s.length() - width; j++) {\n String target = s.substring(j, j + width);\n if (areAnagrams(subFreq,frequenciesOf(target))) total = total + 1;\n }\n }\n }\n return total;\n }", "public static int maxSubStringSizeKDistinctChars(String str, int k) {\n int start = 0;\n int maxLen = 0;\n int localSum = 0;\n HashMap<Character, Integer> hm = new HashMap<>();\n\n for(int end = 0; end < str.length(); end++) {\n\n localSum++;\n if (hm.containsKey(str.charAt(end))) {\n hm.put(str.charAt(end), hm.get(str.charAt(end)) + 1);\n } else {\n hm.put(str.charAt(end), 1);\n }\n\n while(hm.size() > k) {\n // maxLen = Math.max(maxLen, end - start);\n maxLen = Math.max(maxLen, localSum - 1);\n hm.put(str.charAt(start), hm.get(str.charAt(start)) - 1);\n if(hm.get(str.charAt(start)) == 0) {\n hm.remove(str.charAt(start));\n }\n start++;\n localSum--;\n }\n }\n\n return Math.max(maxLen, localSum);\n\n }", "private static boolean isUniqueM1(String str) {\n boolean isUnique = true;\n\n for (int i = 0; i < str.length(); i++) {\n\n for (int j = i + 1; j < str.length(); j++) {\n if (str.charAt(i) == str.charAt(j)) {\n isUnique = false;\n }\n }\n }\n return isUnique;\n }", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint k = input.nextInt();\n\t\tString s = input.next();\n\t\tString smallest = \" \";\n\t\tString largest = \" \";\n\t\tList<String> SubStringsOf_k_Length = new ArrayList<String>();\n\t\tfor(int i=0;(i+k)<=s.length();i++) {\n\t\t\tSubStringsOf_k_Length.add(s.substring(i,i+k));\n\t\t}\n//\t\tSystem.out.println(\"Before Sorting\");\n\t\tSystem.out.println(SubStringsOf_k_Length);\n\t\tSystem.out.println(SubStringsOf_k_Length.size());\n//\t\tCollections.sort(SubStringsOf_k_Length);\n//\t\tSystem.out.println(\"After Sorting\");\n//\t\tSystem.out.println(SubStringsOf_k_Length);\n\t\t\n//\t\tIterator itr = SubStringsOf_k_Length.iterator();\n//\t\t\n//\t\twhile(itr.hasNext()) {\n//\t\t\t\n//\t\t}\n\t\tString temp_largest = SubStringsOf_k_Length.get(0);\n\t\tString temp_smallest = SubStringsOf_k_Length.get(0);\n\t\tfor(int i=0;i<SubStringsOf_k_Length.size();i++) {\n\t\t\tif(temp_largest.compareTo(SubStringsOf_k_Length.get(i))>0 || temp_smallest.compareTo(SubStringsOf_k_Length.get(i))<0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfor(int j=i+1;j<SubStringsOf_k_Length.size();j++) {\n\t\t\t\t\tif(SubStringsOf_k_Length.get(i).compareTo(SubStringsOf_k_Length.get(j))>0) {\n\t\t\t\t\t\tlargest = SubStringsOf_k_Length.get(i);\n\t\t\t\t\t\tsmallest=SubStringsOf_k_Length.get(j);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//smallest = SubStringsOf_k_Length.get(i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp_largest = largest;\n\t\t\t\ttemp_smallest = smallest;\n\t\t\t\t\n\t\t\t}\t\n\t\t}\n\t\tSystem.out.println(largest);\n\t\tSystem.out.println(smallest);\n//\t\tfor(int i=1;i<subStrings_Of_k_Length.length;i++) {\n//\t\t\tSystem.out.println(subStrings_Of_k_Length[i-1]);\n//\t\t\tsmallest = subStrings_Of_k_Length[i-1];\n//\t\t\tif((subStrings_Of_k_Length[i].compareTo(smallest))<0) {\n//\t\t\t\tlargest = subStrings_Of_k_Length[i-1];\n//\t\t\t\tsmallest = subStrings_Of_k_Length[i];\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println(\"Smallest:\" +smallest);\n//\t\tSystem.out.println(\"Largest:\" +largest);\n\t}", "private static boolean isUniqueM2(String str) {\n\n if (str.length() > 128) return false;\n\n boolean[] char_set = new boolean[128];\n for (int i = 0; i < str.length(); i++) {\n int val = str.charAt(i);\n System.out.println(\"str.charAt(i): \" + val);\n if (char_set[val]) {\n return false;\n }\n char_set[val] = true;\n }\n return true;\n }", "static long substrCount(int n, String s) {\nchar arr[]=s.toCharArray();\nint round=0;\nlong count=0;\nwhile(round<=arr.length/2)\n{\nfor(int i=0;i<arr.length;i++)\n{\n\t\n\t\tif(round==0)\n\t\t{\n\t\t//System.out.println(arr[round+i]);\n\t\tcount++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(i-round>=0&&i+round<arr.length)\n\t\t\t{\n\t\t\t\tboolean flag=true;\n\t\t\t\tchar prev1=arr[i-round];\n\t\t\t\tchar prev2=arr[i+round];\n\t\t\t\t\n\t\t\t\tfor(int j=1;j<=round;j++)\n\t\t\t\t{\n\t\t\t\t\tif(prev1!=arr[i+j]||prev1!=arr[i-j])\n\t\t\t\t\t{\n\t\t\t\t\t\tflag=false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\tif(arr[i+j]!=arr[i-j])\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\tflag=false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(flag)\n\t\t\t\t{\n\t\t\t\t\t//System.out.print(arr[i-round]);\n\t\t\t\t\t//System.out.print(arr[round+i]);\n\t\t\t\t\t//System.out.println(round);\n\t\t\t\t\t//System.out.println();\n\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n}\nround++;\n}\nreturn count;\n }", "public List<String> findRepeatedDnaSequences(String s) {\n if(s.length() < 10) return new ArrayList<String>();\n \n int[] map = new int[256];\n map['A'] = 0;\n map['T'] = 1;\n map['C'] = 2;\n map['G'] = 3;\n \n List<String> result = new ArrayList<String>();\n \n //this set contains string that occurs before\n Set<Integer> visited = new HashSet<Integer>();\n //this set contains string that we have inserted into result\n Set<Integer> inResult = new HashSet<Integer>();\n \n int key = 0;\n \n //Since we only partially modify the key, we need to firstly initialize it\n for(int i = 0; i < 9; i++){\n key <<= 2;\n key |= map[s.charAt(i)];\n }\n \n for(int i = 9; i < s.length(); i++){\n key <<= 2;\n key |= map[s.charAt(i)];\n //our valid key has 20 digits, we use 0xFFFFF to remove digits that beyong this range\n key &= 0xFFFFF;\n \n String temp = s.substring(i - 9, i+1);\n \n //if this is not the first time we visit this substring\n if(!visited.add(key)){\n //if this is the first time we add this substring into result\n if(inResult.add(key)){\n result.add(temp);\n }\n }\n }\n \n return result;\n }", "static int alternate(String s) {\n HashMap<Character,Integer>mapCharacter = new HashMap<>();\n LinkedList<String>twoChar=new LinkedList<>();\n LinkedList<Character>arr=new LinkedList<>();\n Stack<String>stack=new Stack<>();\n int largest=0;\n int counter=0;\n if (s.length()==1){\n return 0;\n }\n\n for (int i =0; i<s.length();i++){\n if (mapCharacter.get(s.charAt(i))==null)\n {\n mapCharacter.put(s.charAt(i),1);\n }\n }\n\n Iterator iterator=mapCharacter.entrySet().iterator();\n while (iterator.hasNext()){\n counter++;\n Map.Entry entry=(Map.Entry)iterator.next();\n arr.addFirst((Character) entry.getKey());\n }\n\n for (int i=0;i<arr.size();i++){\n for (int j=i;j<arr.size();j++){\n StringBuilder sb =new StringBuilder();\n for (int k=0;k<s.length();k++){\n if (s.charAt(k)==arr.get(i)||s.charAt(k)==arr.get(j)){\n sb.append(s.charAt(k));\n }\n }\n twoChar.addFirst(sb.toString());\n }\n }\n\n\n for (int b=0;b<twoChar.size();b++){\n String elementIn=twoChar.get(b);\n stack.push(elementIn);\n\n for (int i=0;i<elementIn.length()-1;i++){\n\n if (elementIn.charAt(i)==elementIn.charAt(i+1)){\n stack.pop();\n break;\n }\n }\n }\n\n int stackSize=stack.size();\n\n for (int j=0;j<stackSize;j++){\n String s1=stack.pop();\n int length=s1.length();\n if (length>largest){\n largest=length;\n\n }\n }\n return largest;\n\n\n\n\n }", "List<Integer> allAnagrams(String s, String l) {\n\t\t// Write your solution here.\n\t\tList<Integer> result = new ArrayList<Integer>();\n\t\tif (s == null || l == null || s.length() == 0 || l.length() == 0) {\n\t\t\treturn result;\n\t\t}\n\t\tif (s.length() > l.length()) {\n\t\t\treturn result;\n\t\t}\n\t\tMap<Character, Integer> map = countMap(s);\n\t\tint match = 0;\n\t\tfor (int i = 0; i < l.length(); i++) {\n\t\t\tchar temp = l.charAt(i);\n\t\t\tInteger count = map.get(temp);\n\t\t\tif (count != null) {\n\t\t\t\tmap.put(temp, count - 1);\n\n\t\t\t\tif (count == 1) {\n\t\t\t\t\tmatch++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (i >= s.length()) {\n\t\t\t\ttemp = l.charAt(i - s.length());\n\t\t\t\tcount = map.get(temp);\n\t\t\t\tif (count != null) {\n\t\t\t\t\tmap.put(temp, count + 1);\n\t\t\t\t\tif (count == 0) {\n\t\t\t\t\t\tmatch--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (match == map.size()) {\n\t\t\t\tresult.add(i - s.length() + 1);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public int lengthOfLongestSubstring(String s) {\n int i = 0, j = 0, max = 0;\n Set<Character> set = new HashSet<>();\n \n while (j < s.length()) {\n if (!set.contains(s.charAt(j))) {\n set.add(s.charAt(j++));\n max = Math.max(max, set.size());\n } else {\n set.remove(s.charAt(i++));\n }\n }\n \n return max;\n}", "public List<String> findRepeatedDnaSequences2(String s) {\n if(s == null || s.length() <= 10){\n return new ArrayList<String>();\n }\n \n int n = s.length();\n Set<String> visited = new HashSet<String>();\n Set<String> duplicated = new HashSet<String>();\n \n for(int i = 0; i <= n - 10; ++i){\n String subStr = s.substring(i, i + 10);\n \n if(!visited.add(subStr)) {\n \tduplicated.add(subStr);\n }\n }\n \n return new ArrayList<String>(duplicated);\n }", "public int countSubstrings(String s) {\n int cnt = 0;\n\n char[] str = s.toCharArray();\n\n\n for(int j=0; j<2; j++) {\n for(int i=0; i< str.length; i++) {\n int left = i;\n int right = i+j;\n\n while(left>=0 && right<str.length && str[left] == str[right]) {\n cnt++;\n left--;\n right++;\n }\n\n }\n }\n\n return cnt;\n }", "public int lengthOfLongestSubstring2(String s) {\n\n int res = 0;\n int len = s.length();\n Map<Character, Integer> map = new HashMap<Character, Integer>();\n\n for (int i = 0, j = 0; j < len; j++) {\n if (map.containsKey(s.charAt(j))) {\n i = Math.max(map.get(s.charAt(j)), i);// use Max mesas never looking back\n }\n res = Math.max(res, j - i + 1); // j not plus yet, need add 1 to get a real length ( indicate j itself)\n map.put(s.charAt(j), j + 1); // (j+1) means skip duplicate\n System.out.println(map.toString()); // will update the value of key ( union key)\n }\n\n\n return res;\n }", "public static void main(String [] args) {\n\t\tString str = \"ccacacabccacabaaaabbcbccbabcbbcaccabaababcbcacabcabacbbbccccabcbcabbaaaaabacbcbbbcababaabcbbaa\"\n\t\t\t\t+ \"ababababbabcaabcaacacbbaccbbabbcbbcbacbacabaaaaccacbaabccabbacabaabaaaabbccbaaaab\"\n\t\t\t\t+ \"acabcacbbabbacbcbccbbbaaabaaacaabacccaacbcccaacbbcaabcbbccbccacbbcbcaaabbaababacccbaca\"\n\t\t\t\t+ \"cbcbcbbccaacbbacbcbaaaacaccbcaaacbbcbbabaaacbaccaccbbabbcccbcbcbcbcabbccbacccbacabcaacbcac\"\n\t\t\t\t+ \"cabbacbbccccaabbacccaacbbbacbccbcaaaaaabaacaaabccbbcccaacbacbccaaacaacaaaacbbaaccacbcbaaaccaab\"\n\t\t\t\t+ \"cbccacaaccccacaacbcacccbcababcabacaabbcacccbacbbaaaccabbabaaccabbcbbcaabbcabaacabacbcabbaaabccab\"\n\t\t\t\t+ \"cacbcbabcbccbabcabbbcbacaaacaabb\"\n\t\t\t\t+ \"babbaacbbacaccccabbabcbcabababbcbaaacbaacbacacbabbcacccbccbbbcbcabcabbbcaabbaccccabaa\"\n\t\t\t\t+ \"bbcbcccabaacccccaaacbbbcbcacacbabaccccbcbabacaaaabcccaaccacbcbbcccaacccbbcaaaccccaabacabc\"\n\t\t\t\t+ \"abbccaababbcabccbcaccccbaaabbbcbabaccacaabcabcbacaccbaccbbaabccbbbccaccabccbabbbccbaabcaab\"\n\t\t\t\t+ \"cabcbbabccbaaccabaacbbaaaabcbcabaacacbcaabbaaabaaccacbaacababcbacbaacacccacaacbacbbaacbcbbbabc\"\n\t\t\t\t+ \"cbababcbcccbccbcacccbababbcacaaaaacbabcabcacaccabaabcaaaacacbccccaaccbcbccaccacbcaaaba\";\n\t\tSystem.out.println(substrCount2(1017, str));\n\t}", "public static void testRandomString() {\n\r\n Set<String> set = new HashSet<>(1000000);\r\n String code = null;\r\n for (int i = 0; i < 100000; i++) {\r\n code = \"v\" + RandomStringUtils.random(5, \"0123456789abcdefghijklmnopqrstuvwxyz\");\r\n System.out.println(code);\r\n set.add(code);\r\n }\r\n System.out.println(set.size());\r\n }", "public static boolean startArrFill(String[] strings, int n, char[] chars){\n\t int comp = 0, comp2 = 0, b = fact(n-1), c = n-1, comp3 = 0;\n\t for(int j = comp2; b != 1; j++){\n \t for(int i = 0; i < strings.length; i++){\n \t while(contains(strings[i], chars[comp2])){\n \t comp2++;\n \t if(comp2 == chars.length){\n \t comp2 = 0;\n \t }\n \t }\n \t //System.out.println(\"comp2: \" + comp2 + \", chars[comp2]: \" + chars[comp2]);\n \t strings[i] += chars[comp2];\n \t //System.out.println(\"i: \" + i + \", j: \" + j + \"\\t\" +strings[i]);\n \t comp++;\n \t if(comp == b){\n \t comp2++;\n \t comp = 0;\n \t if(comp2 == chars.length){\n \t comp2 = 0;\n \t }\n \t }\n \t }\n \t c--;\n \t b = fact(c);\n\t }\n\t //System.out.println(\"b: \" + b);\n\t return true;\n\t}", "public int lengthOfLongestSubstring(String s) {\n\n int res = 0;\n int len = s.length();\n int i = 0, j = 0;\n Set<Character> set = new HashSet<>();\n while (i < len && j < len) {\n if (!set.contains(s.charAt(j))) {\n set.add(s.charAt(j++)); // here s.set an ele then j already plus\n res = Math.max(res, j - i); // so use j-i\n } else {\n set.remove(s.charAt(i++));\n }\n }\n\n return res;\n }", "public static int sherlock(String s) {\n\t\tint count = 0;\n\t\t// find the substrings to find the anagrams of\n\t\t// isAnagram function\n\t\t// with k unique chars, subset is k (k + 1) / 2\n\t\t\n\t\tList<String> subsets = getALlSubstring(s);\n\t\t\n\t\tfor(int i = 0 ;i < subsets.size() ; i++) {\n\t\t\tfor(int j = i + 1 ; j < subsets.size() ; j++) {\n\t\t\t\tif(i != j && subsets.get(i).length() == subsets.get(j).length() && isAnagram(subsets.get(i), subsets.get(j)))\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "int getMaxStringLiteralSize();", "@Test\n public void findEvenLengthWords() {\n List<String> output = null; // TODO\n\n assertEquals(Arrays.asList(\"in\", \"computer\", \"be\", \"solved\", \"by\", \"adding\", \"of\",\n \"except\", \"many\", \"levels\", \"of\"), output);\n }", "public static void main(String[] args) {\n String[] strings = new String[100];\n for (int i = 0; i < strings.length; i++) {\n strings[i] = randomStrings(2);\n }\n// for (String s : strings) {\n// System.out.println(s);\n// }\n ArrayList<String> appeared = new ArrayList<>();\n for (String s : strings) {\n if (!appeared.contains(s)) {\n appeared.add(s);\n }\n }\n System.out.println(appeared.size());\n\n }", "static int makingAnagrams(String s1, String s2){\n // Complete this function\n StringBuilder b = new StringBuilder(s2);\n int delCount =0;\n for(int i=0;i<s1.length();i++){\n int index = b.indexOf(String.valueOf(s1.charAt(i)));\n if(index == -1){\n delCount++;\n }else{\n b.deleteCharAt(index);\n } \n }\n return delCount + b.length();\n }", "public List<String> uniqueSubstring(String s, int k) {\n List<String> result = new ArrayList<>();\n Set<String> set = new HashSet<>();\n for (int i=0;i<=s.length()-k;i++) {\n set.add(s.substring(i, i+k));\n }\n for (String str: set) {\n result.add(str);\n }\n Collections.sort(result);\n return result;\n }", "static int editDist(String str1, String str2, int m, int n)\r\n {\n if(m == 0)\r\n return n;\r\n \r\n //if the second string is empty,the only option is insert all characters of\r\n //first string to the second\r\n if(n == 0)\r\n return m;\r\n \r\n //if the last characters of two strings are same,nothing much to do.\r\n //Ignore last characters and get count for remaining strings\r\n if(str1.charAt(m-1) == str2.charAt(n-1))\r\n return editDist(str1, str2, m-1, n-1);\r\n \r\n //if the last characters of two strings are not same,consider all three\r\n //oprations on last character of first string ,recursively compute minimum\r\n //cost for all thress oprations and take minimum of three values\r\n return 1 + min(editDist(str1,str2,m,n-1)\r\n ,editDist(str1,str2,m-1,n)\r\n ,editDist(str1,str2,m-1,n-1));\r\n }", "public List<Integer> partitionLabelsSlow(String S) {\n List<Integer> sizes = new ArrayList<>();\n\n boolean endReached = false;\n\n int start=0, end, extendedEnd;\n\n while(start < S.length()) {\n char startCharacter = S.charAt(start);\n end = S.lastIndexOf(startCharacter);\n extendedEnd = end;\n\n for(int i=start; i<end; i++) {\n\n if(S.lastIndexOf(S.charAt(i)) > end) {\n extendedEnd = S.lastIndexOf(S.charAt(i));\n end = extendedEnd;\n }\n }\n\n sizes.add((extendedEnd - start + 1));\n start = extendedEnd + 1;\n }\n\n return sizes;\n }", "public static String longestCommonPrefixNOOOOO(String[] strs) {\n HashSet<Character> set1 = new HashSet<>();\n for(int i=0; i<strs.length; i++){\n HashSet<Character> set2 = new HashSet<>();\n for(int j=0; j<strs[i].length(); j++){\n set2.add(strs[i].charAt(j));\n }\n if(i==0){\n set1=set2;\n }else{\n set1.retainAll(set2);\n }\n }\n StringBuilder sb = new StringBuilder();\n for(Character c : set1) sb.append(c);\n return sb.toString();\n }", "public static List<String> findRepeatedDnaSequences(String s) {\n if (s == null || s.length() < 10){\n return new ArrayList<String>();\n }\n Map<String,Integer> map = new HashMap<String,Integer>();\n List<String> res = new ArrayList<String>();\n for (int i = 0; i < s.length()-10; i++) {\n String tmp = s.substring(i,i+10);\n map.put(tmp,map.getOrDefault(tmp,0)+1);\n if (map.get(tmp)>1){\n res.add(tmp);\n }\n }\n return res;\n }", "public static int lengthOfLongestSubstringUsingSet(String s) {\n\t\tif (s == null || s.length() == 0)\n\t\t\treturn 0;\n\n\t\tint n = s.length();\n\t\tSet<Character> set = new HashSet<>();\n\t\tint ans = 0, start = 0, end = 0;\n\t\twhile (start <= end && end < n) {\n\t\t\t// try to extend the range [i, j]\n\t\t\tif (!set.contains(s.charAt(end))) {\n\t\t\t\tset.add(s.charAt(end));\n\t\t\t\tend++;\n\n\t\t\t\tans = Math.max(ans, end - start); // Update ans\n\t\t\t} else {\n\t\t\t\tset.remove(s.charAt(start++));\n\t\t\t}\n\t\t}\n\t\treturn ans;\n\t}", "public static List<String> findRepeatedDnaSequences(String s) {\n \tList<String> re=new ArrayList<String>();\n \tif(s.length()<=10){\n \t\treturn re;\n \t}\n \tMap<String, Integer> map=new HashMap<String, Integer>(); \t\n \tfor(int i=10; i<=s.length(); i++){\n \t\tString k=s.substring(i-10, i);\n \t\tif(map.containsKey(k)){\n \t\t\tint val=map.get(k);\n \t\t\tif(val==1){\n \t\t\t\tre.add(k);\n \t\t\t}\n \t\t\tmap.put(k, val+1);\n \t\t}else{\n \t\t\tmap.put(k, 1);\n \t\t}\n \t}\n \treturn re;\n }", "private static void stringConcat(String[] ss, int n) {\n Timer t = new Timer(); \n String res = \"\";\n for (int i=0; i<n; i++) \n res += ss[i];\n System.out.format(\"Result length:%7d; time:%8.3f sec\\n\" , res.length(), t.Check());\n }", "static int size_of_cmp(String passed){\n\t\treturn 1;\n\t}", "public int normalizedLength(List<String> sequence);", "public static String ntimes(String s,int n){\n\t\tStringBuffer buf = new StringBuffer();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tbuf.append(s);\n\t\t}\n\t\treturn buf.toString();\n\t}", "private String longestCommonPrefixVS(String[] strs){\n\t\tif (strs == null || strs.length == 0) return \"\";\n\t\t for (int i = 0; i < strs[0].length() ; i++){\n\t\t char c = strs[0].charAt(i);\n\t\t for (int j = 1; j < strs.length; j ++) {\n\t\t if (i == strs[j].length() || strs[j].charAt(i) != c)\n\t\t return strs[0].substring(0, i);\n\t\t }\n\t\t }\n\t\t return strs[0];\n\t}", "public static void main(String[] args) {\n\n\t\t\n\t\tList<Character>st1=new ArrayList<>();\n\t\n\t\tst1.add('a');\n\t\tst1.add('b');\n\t\tst1.add('a');\n\t\tst1.add('a');\n\t\tst1.add('c');\n\t\tst1.add('t');\n\t\n\t\tSystem.out.println(st1);//[a, b, a, a, c, t]\n\t\t\n\t\tList<Character>st2=new ArrayList<>();//empty []\n\t\tfor (int i=0; i<st1.size();i++) {\n\t\t\tif(!st2.contains(st1.get(i))) {\n\t\t\t\t// created str2 [empty], we will get the element from st1 to st2 while checking if there is repetition \n\t\t\t\tst2.add(st1.get(i));\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(st2);//[a, b, c, t]\n\t\t\n\n\t}", "private static void stringBuilder(String[] ss, int n) {\n Timer t = new Timer(); \n String res = null;\n StringBuilder buf = new StringBuilder();\n for (int i=0; i<n; i++) \n buf.append(ss[i]);\n res = buf.toString();\n System.out.format(\"Result length:%7d; time:%8.3f sec\\n\" , res.length(), t.Check());\n }", "public static int lengthOfLongestSubstring2(String s) {\n if(s.length()==1)\n return 1;\n\n int sum = 0;\n\n Map<Character, Integer> map = new HashMap<>();\n int i=0;\n\n while(i<s.length()){\n char c = s.charAt(i);\n\n // map exists char c\n if(map.containsKey(c)){\n if(map.keySet().size() > sum) // replace sum\n sum = map.keySet().size();\n i = map.get(c);\n map = new HashMap<>(); // clear map\n }\n // map doesn't exist char c\n else\n map.put(c, i);\n i++;\n }\n\n if(map.keySet().size() > sum)\n return map.keySet().size();\n return sum;\n }", "private static int solution4(String s) {\r\n int n = s.length(), ans = 0;\r\n Map<Character, Integer> map = new HashMap<>();\r\n for (int j = 0, i = 0; j < n; j++) {\r\n if (map.containsKey(s.charAt(j)))\r\n i = Math.max(map.get(s.charAt(j)), i);\r\n ans = Math.max(ans, j - i + 1);\r\n map.put(s.charAt(j), j + 1);\r\n }\r\n return ans;\r\n }", "static int sherlockAndAnagrams(String s) {\n int anagramCount = 0;\n Map<String, Integer> map = new HashMap<>();\n for (int i = 0; i < s.length(); i++) {\n for (int k = i + 1; k <= s.length(); k++) {\n String sub = s.substring(i, k);\n System.out.println(sub);\n sub = new String(sort(sub.toCharArray()));\n int value = map.getOrDefault(sub, 0);\n if(value > 0) {\n anagramCount = anagramCount + value;\n }\n map.put(sub, value+1);\n\n }\n }\n return anagramCount;\n }", "static String infiniteString(String strInput, Long n) {\n StringBuilder stringBuilder = new StringBuilder();\n for (int i = 0; i <= n; i++) {\n //stringWriter.write( strInput );\n //stringBuilder.append( String.format(strInput));\n stringBuilder.append(strInput);\n System.out.println(\"Length:\" + String.valueOf(stringBuilder).length());\n /*if(stringBuilder.length() == n || stringBuilder.length() > 100)*/\n if (String.valueOf(stringBuilder).length() == n) {\n break;\n }\n }\n\n return String.valueOf(stringBuilder);\n }", "private static int insertNames(String[] arr, int n) {\n\t\tint count=0;\n\t HashSet<String> set = new HashSet<String>(); \n\t for (int i = 0; i < n; i++) \n\t { \n\t \n\t // If current name is appearing for the first time \n\t if (!set.contains(arr[i])) \n\t { \n\t set.add(arr[i]); \n\t count++;\n\t } \n\t \n\t } \n\t return count;\n\t}", "static\nint\ncountPairs(String str) \n\n{ \n\nint\nresult = \n0\n; \n\nint\nn = str.length(); \n\n\nfor\n(\nint\ni = \n0\n; i < n; i++) \n\n\n// This loop runs at most 26 times \n\nfor\n(\nint\nj = \n1\n; (i + j) < n && j <= MAX_CHAR; j++) \n\nif\n((Math.abs(str.charAt(i + j) - str.charAt(i)) == j)) \n\nresult++; \n\n\nreturn\nresult; \n\n}", "public static void main(String[] args) {\n \n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n String[] p = new String[n];\n int[] counter = new int[n];\n for(int i = 0; i<n;i++ ){\n \tp[i] = input.next();\n \t\n \tint j = 0;\n \twhile(j<p[i].length()){\n \t\tint t =1;\n \t\tif(j + t < p[i].length()){\n \t\twhile(p[i].charAt(j) == p[i].charAt(j+t) ){\n \t\t\tt++;\n \t\t\tcounter[i]++;\n \t\t\tif(j+t >= p[i].length())\n \t\t\t\tbreak;\n \t\t\t\n \t\t}\n \t\t}\n \t\tj = j+t;\n \t\t\n \t\t\n \t\t\n \t}\n }\n \n for(int i= 0; i<n;i++){\n\t System.out.println(counter[i]);\n }\n \n \n \n input.close();\n }", "public int repeatedStringMatch(String a, String b) {\n \n int count = 0;\n StringBuilder sb = new StringBuilder();\n \n while(sb.length() < b.length()){\n sb.append(a); //O(roundUp(M/N) * N) < O(M*N)\n count++;\n }\n \n if(sb.indexOf(b) != -1) return count; //check at max O(M*N) characters\n \n //handles rotated array case\n if(sb.append(a).indexOf(b) != -1) return count + 1; //append takes O(N), indexOf takes in the worst case (missing match) ~O(M*N)\n \n return -1;\n }", "public static void main(String[] args) {\n\n int n = 20;\n int[] input = {0, 6, 0, 6, 4, 0, 6, 0, 6, 0, 4, 3, 0, 1, 5, 1, 2, 4, 2, 4};\n String[] inStr = {\"ab\", \"cd\", \"ef\", \"gh\", \"ij\", \"ab\", \"cd\", \"ef\", \"gh\", \"ij\", \"that\", \"be\", \"to\", \"be\", \"question\", \"or\", \"not\", \"is\", \"to\", \"the\"};\n int[] count = new int[100];\n for (int i = 0; i < n; i++) {\n// String line = in.nextLine();\n// String[] elem = line.split(\"\\\\s\");\n// System.out.println(elem[0]+\" - \"+elem[1]);\n// input[i] = Integer.parseInt(elem[0]);\n// inStr[i] = elem[1];\n// count[input[i]] ++;\n }\n\n for (int i = n / 2; i < input.length; i++)\n count[input[i]]++;\n\n// for (int i = 0; i < count.length; i++)\n// System.out.print(count[i]);\n// System.out.println();\n\n int printed = 0;\n int i = 0;\n StringBuffer buffer = new StringBuffer();\n while (count[i] > 0){\n// for (int i = 0; i < count.length; i++) {\n// for (Integer st : findIndex(input, i,count[i])) {\n// System.out.print(findStr(inStr, st) + \" \");\n for (String st : findIndex(input,inStr, i,count[i])) {\n // System.out.print( st + \" \");\n buffer.append(st+\" \");\n printed++;\n }\n i++;\n }\n for (int idx = printed; idx<n;idx++)\n buffer.append(\"- \");\n // System.out.print(\"- \");\n System.out.println(buffer);\n\n\n }", "public int commonPrefixLength(String s1, String s2)\r\n {\r\n\r\n int length = 0;\r\n if (s1.isEmpty() || s2.isEmpty())\r\n {\r\n return 0;\r\n }\r\n while (s1.charAt(length) == s2.charAt(length))\r\n {\r\n length++;\r\n //if (k >= s1.length() || k >= s2.length() || k >= system.getLookupTableSize() - 1)\r\n if (length >= s1.length() || length >= s2.length())\r\n {\r\n break;\r\n }\r\n }\r\n\r\n return length;\r\n\r\n }", "@Test\n public void repeatedSubstringPattern() {\n assertTrue(new Solution1().repeatedSubstringPattern(\"abcabcabcabc\"));\n }", "public int countSubstrings_Memo(String s) {\n\t\tint n = s.length(), count = n;\n\t\t\n\t\tBoolean[][] mem = new Boolean[n][n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tfor (int j = i + 1; j < n; j++)\n\t\t\t\tif (isPal_Memo(i, j, s, mem))\n\t\t\t\t\tcount++;\n\t\treturn count;\n\t}", "public static void findLongestSubPalindramic(String s) {\n\t\tchar[] arr = s.toCharArray();\n\t\tint begin = -1;\n\t\tint end;\n\t\tint temp_begin;\n\t\tint maxLength = -1;\n\t\tboolean[][] table = new boolean[1000][1000];\n\n\t\tfor (int i = 0; i < table.length; i++) {\n\t\t\ttable[i][i] = true;\n\t\t}\n\t\tfor (int i = 0; i < s.length() - 1; i++) {\n\t\t\tif (arr[i] == arr[i + 1]) {\n\t\t\t\ttable[i][i + 1] = true;\n\t\t\t\tbegin = i;\n\t\t\t\tmaxLength = 2;\n\t\t\t}\n\t\t}\n\t\tfor (int len = 2; len < arr.length; len++) {\n\t\t\tfor (int i = 0; i < arr.length - len + 1; i++) {\n\t\t\t\tint j = len + i - 1;\n\t\t\t\tif (table[i + 1][j - 1] && (arr[i] == arr[j])) {\n\t\t\t\t\ttable[i][j] = true;\n\t\t\t\t\tif (j - i + 1 > maxLength) {\n\t\t\t\t\t\tbegin = i;\n\t\t\t\t\t\tmaxLength = maxLength + 2;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"begin:\" + begin + \", length:\" + maxLength);\n\t}", "public static void main(String[] args) {\n\t\tString s = \"aabacbebebe\";\n\n\t\tSystem.out.println(\"Given String : \" + s);\n\n\t\tSystem.out.println(\"Longest Substring Using Set (2-pointer) : \"\n\t\t\t\t+ lengthOfLongestSubstringUsingSet(s));\n\t\tSystem.out.println(\"Longest Substring Using Sliding Window : \"\n\t\t\t\t+ longestStringWithNoRepeatingChars(s));\n\n\t\tSystem.out.println(\"\\n ===== Longest string with 2 distinct characters ===== \");\n\t\tSystem.out.println(\"Original String : \" + s);\n\t\tSystem.out\n\t\t\t\t.println(\"Length of Longest Substring with at most 2 distinct characters: \"\n\t\t\t\t\t\t+ longestStringWithTwoDistinctChars(s));\n\n\t\tSystem.out.println(\"\\n ===== Longest string with K distinct characters ===== \");\n\n\t\tPair<Integer, Pair<Integer, Integer>> pair = longestStringWithKDistinctChars(s, 3);\n\t\tSystem.out.print(\"Longest Substring length with 3 Distinct Chars : \");\n\t\tSystem.out.print(pair.getKey() + \", \" + pair.getValue().getKey() + \" \"\n\t\t\t\t+ pair.getValue().getValue());\n\n\t\tif (pair.getValue().getKey() != -1)\n\t\t\tSystem.out.println(\", \"\n\t\t\t\t\t+ s.substring(pair.getValue().getKey(), pair.getValue()\n\t\t\t\t\t\t\t.getValue() + 1));\n\t\telse\n\t\t\tSystem.out.println(\", Empty String\");\n\t\t\n\t\tSystem.out.println(\"\\n ===== Longest string with K distinct characters (AS approach) ===== \");\n\n\t\tPair<Integer, Pair<Integer, Integer>> pair1 = longestStringWithKDistinctCharsAS(s, 3);\n\t\tSystem.out.print(\"Longest Substring length with 3 Distinct Chars : \");\n\t\tSystem.out.print(pair1.getKey() + \", \" + pair1.getValue().getKey() + \" \"\n\t\t\t\t+ pair1.getValue().getValue());\n\n\t\tif (pair1.getValue().getKey() != -1)\n\t\t\tSystem.out.println(\", \"\n\t\t\t\t\t+ s.substring(pair1.getValue().getKey(), pair1.getValue()\n\t\t\t\t\t\t\t.getValue() + 1));\n\t\telse\n\t\t\tSystem.out.println(\", Empty String\");\n\n\t\tSystem.out.println(\"\\n ===== Longest string with no repeating characters ===== \");\n\n\t\ts = \"abcabcbb\";\n\t\tSystem.out.print(\"For string: \" + s);\n\t\tSystem.out.print(\"; Method Other: \"\n\t\t\t\t+ longestStringWithNoRepeatingChars(s));\n\t\tSystem.out.println(\"; AS: \" + longestStringWithNoRepeatingCharsAS(s));\n\n\t\ts = \"bbbbb\";\n\t\tSystem.out.print(\"For string: \" + s);\n\t\tSystem.out.print(\"; Method Other: \"\n\t\t\t\t+ longestStringWithNoRepeatingChars(s));\n\t\tSystem.out.println(\"; AS: \" + longestStringWithNoRepeatingCharsAS(s));\n\n\t\ts = \"pwwkew\";\n\t\tSystem.out.print(\"For string: \" + s);\n\t\tSystem.out.print(\"; Method Other: \"\n\t\t\t\t+ longestStringWithNoRepeatingChars(s));\n\t\tSystem.out.println(\"; AS: \" + longestStringWithNoRepeatingCharsAS(s));\n\t}", "static int twoCharaters(String s) {\n\t\tList<String> list = Arrays.asList(s.split(\"\"));\n\t\tHashSet<String> uniqueValues = new HashSet<>(list);\n\t\tSystem.out.println(uniqueValues);\n\t\tString result;\n\t\twhile(check(list,1,list.get(0))) {\n\t\t\tresult = replace(list,1,list.get(0));\n\t\t\tif(result != null) {\n\t\t\t\tSystem.out.println(result);\n\t\t\t\ts = s.replaceAll(result,\"\");\n\t\t\t\tlist = Arrays.asList(s.split(\"\"));\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(s);\n\t\treturn 5;\n }", "public int minInsertions(String s) {\n int n = s.length();\n //Initialising dp array. It will represent the longest common subsequence between first i characters of first string and first j characters of second string\n int[][] dp = new int[n+1][n+1];\n \n //Looping through start and end of the string. Thus dp will consider the string from start and string from end and then store the ans\n for (int i = 0; i < n; ++i){\n for (int j = 0; j < n; ++j){\n \n //If both the characters are equal, then we increment the previous dp value otherwise we take max of the next character considered for both strings\n dp[i + 1][j + 1] = s.charAt(i) == s.charAt(n - 1 - j) ? dp[i][j] + 1 : Math.max(dp[i][j + 1], dp[i + 1][j]);\n } \n }\n //Returning ans\n return n - dp[n][n];\n }", "int stringsConstruction(String a, String b){\n a=\" \"+a+\" \";\n b=\" \"+b+\" \";\n int output = b.split(\"\"+a.charAt(1)).length - 1;\n for(char i = 'a'; i <= 'z'; i++) {\n if (a.split(\"\"+i).length > 1) {\n int tempOut = (b.split(\"\"+i).length - 1) / (a.split(\"\"+i).length - 1);\n if (output > tempOut) {\n output = tempOut;\n }//if (output > tempOut) {\n }//if (a.split(\"\"+i).length > 1) {\n }//for(char i = 'a'; i <= 'z'; i++) {\n return output;\n }", "public ArrayList<String> anagrams(String[] strs) {\n HashMap<String, ArrayList<String>> rec=new HashMap<String,ArrayList<String>>();\n ArrayList<String> ans=new ArrayList<String>();\n if(strs.length==0)return ans;\n for(int i=0;i<strs.length;i++){\n char[] key=strs[i].toCharArray();\n Arrays.sort(key);\n String newkey=new String(key);\n if(rec.containsKey(newkey)){\n rec.get(newkey).add(strs[i]);\n }\n else{\n ArrayList<String> ad=new ArrayList<String>();\n ad.add(strs[i]);\n rec.put(newkey,ad);\n }\n }\n for(ArrayList<String> value:rec.values()){\n if(value.size()>1)ans.addAll(value);\n }\n return ans;\n }", "private static String longestCommonPrefix(String[] strs) {\n\t\tif (strs == null || strs.length == 0) {\n\t\t\treturn \"\";\n\t\t}\n\t\tint minLen = Integer.MAX_VALUE;\n\t\tfor (String str : strs) {\n\t\t\tif (minLen > str.length()) {\n\t\t\t\tminLen = str.length();\n\t\t\t}\n\t\t}\n\t\tif (minLen == 0) {\n\t\t\treturn \"\";\n\t\t}\n\t\tfor (int j = 0; j < minLen; j++) {\n\t\t\tchar prev = '0';\n\t\t\tfor (int i = 0; i < strs.length; i++) {\n\t\t\t\tif (i == 0) {\n\t\t\t\t\tprev = strs[i].charAt(j);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (prev != strs[i].charAt(j)) {\n\t\t\t\t\treturn strs[i].substring(0, j);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn strs[0].substring(0, minLen);\n\t}", "public static void main(String[] args) throws IOException {\n BufferedReader f = new BufferedReader(new FileReader(\"whereami.in\"));\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"whereami.out\")));\n\n //reads in and initializes n and k values\n StringTokenizer st = new StringTokenizer(f.readLine());\n int stringSize = Integer.parseInt(st.nextToken());\n\n st = new StringTokenizer(f.readLine());\n //initializes variable for input string\n String string = st.nextToken();\n\n //computes all subsequences and adds to set\n subsequence(string, string.length());\n\n boolean[] checks= new boolean[stringSize];\n\n int smallestSize = 0;\n\n for (int i = 0; i < stringSize; i++) {\n checks[i] = true;\n for (String s : subSequences) {\n if (s.length() == i + 1 && numberOccurrences(string, s) != 1) {\n checks[s.length() - 1] = false;\n }\n }\n if (checks[i] == true) {\n smallestSize = i + 1;\n break;\n }\n }\n\n out.println(smallestSize);\n out.close();\n }", "public static void main(String[] args) {\n\t\tint n=3;\n\t\tString s=\"1\";\n\t\tint count =1;\n\t\tint k=1;\n\t\twhile(k<n){\n\t\t\tStringBuilder t=new StringBuilder();\n\t\t\t//t.append(s.charAt(0));\n\t\t\tfor(int i=1;i<=s.length();i++){\n\t\t\t\t\t\t\t\t\n\t\t\t\tif(i==s.length() || s.charAt(i-1)!=s.charAt(i)){\n\t\t\t\t\tt.append(count); t.append(s.charAt(i-1));\n\t\t\t\t\tcount=1;\n\t\t\t\t}\n\t\t\t\telse if(s.charAt(i-1)==s.charAt(i)){count=count+1;}\n\t\t\t }\t\n\t\t\t\ts=t.toString();\n\t\t\t\tk=k+1;\n\t\t\t\tSystem.out.println(\"k:\"+k);\n\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(s);\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private byte[] setStringSize(StringBuffer s, int n) {\n\n byte b[];\n int i, slen;\n\n slen = s.length();\n\n if (slen >= n) {\n return (s.toString().substring(0, n).getBytes());\n }\n\n b = new byte[n];\n for (i = 0; i < slen; i++) {\n b[i] = (byte) s.charAt(i);\n }\n for (i = slen; i < n; i++) {\n b[i] = 0;\n }\n\n return (b);\n }", "public int countSubstrings(String S) {\n int N = S.length(), ans = 0;\n for (int center = 0; center <= 2*N-1; ++center) {\n int left = center / 2;\n int right = left + center % 2;\n while (left >= 0 && right < N && S.charAt(left) == S.charAt(right)) {\n ans++;\n left--;\n right++;\n }\n }\n return ans;\n }", "public static int getLevenshteinDistance (String s, String t) {\n\tif (s == null || t == null) {\n\t throw new IllegalArgumentException(\"Strings must not be null\");\n\t}\n\t\n\t/*\n\t The difference between this impl. and the previous is that, rather \n\t than creating and retaining a matrix of size s.length()+1 by t.length()+1, \n\t we maintain two single-dimensional arrays of length s.length()+1. The first, d,\n\t is the 'current working' distance array that maintains the newest distance cost\n\t counts as we iterate through the characters of String s. Each time we increment\n\t the index of String t we are comparing, d is copied to p, the second int[]. Doing so\n\t allows us to retain the previous cost counts as required by the algorithm (taking \n\t the minimum of the cost count to the left, up one, and diagonally up and to the left\n\t of the current cost count being calculated). (Note that the arrays aren't really \n\t copied anymore, just switched...this is clearly much better than cloning an array \n\t or doing a System.arraycopy() each time through the outer loop.)\n\t \n\t Effectively, the difference between the two implementations is this one does not \n\t cause an out of memory condition when calculating the LD over two very large strings. \t\t\n\t*/\t\t\n\t\n\tint n = s.length(); // length of s\n\tint m = t.length(); // length of t\n\t\n\tif (n == 0) {\n\t return m;\n\t} else if (m == 0) {\n\t return n;\n\t}\n\t\n\tint p[] = new int[n+1]; //'previous' cost array, horizontally\n\tint d[] = new int[n+1]; // cost array, horizontally\n\tint _d[]; //placeholder to assist in swapping p and d\n\t\n\t// indexes into strings s and t\n\tint i; // iterates through s\n\tint j; // iterates through t\n\t\n\tchar t_j; // jth character of t\n\t\n\tint cost; // cost\n\t\n\tfor (i = 0; i<=n; i++) {\n\t p[i] = i;\n\t}\n\t\n\tfor (j = 1; j<=m; j++) {\n\t t_j = t.charAt(j-1);\n\t d[0] = j;\n\t \n\t for (i=1; i<=n; i++) {\n\t\tcost = s.charAt(i-1)==t_j ? 0 : 1;\n\t\t// minimum of cell to the left+1, to the top+1, diagonally left and up +cost\t\t\t\t\n\t\td[i] = Math.min(Math.min(d[i-1]+1, p[i]+1), p[i-1]+cost); \n\t }\n\t \n\t // copy current distance counts to 'previous row' distance counts\n\t _d = p;\n\t p = d;\n\t d = _d;\n\t} \n\t\n\t// our last action in the above loop was to switch d and p, so p now \n\t// actually has the most recent cost counts\n\treturn p[n];\n }", "private String longestCommonPrefixHS(String[] strs){\n\t\tif (strs.length == 0) return \"\";\n\t\tString prefix = strs[0];\n\t\tfor (int i = 1; i < strs.length; i++){\n\t\t\twhile (strs[i].indexOf(prefix) != 0) {\n\t\t\t\tprefix = prefix.substring(0, prefix.length() - 1);\n\t\t\t\tif (prefix.isEmpty()) return \"\";\n\t\t\t}\n\t\t}\n\t\treturn prefix;\n\t}", "public List<String> findRepeatedDnaSequences(String s){\n HashMap<Character,Integer> map=new HashMap<>();\n Set<Integer> firstSet=new HashSet<>();\n Set<Integer> dupSet=new HashSet<>();\n List<String> res=new ArrayList<>();\n map.put('A',0);\n map.put('C',1);\n map.put('G',2);\n map.put('T',3);\n char[] chars=s.toCharArray();\n for(int i=0;i<chars.length-9;i++){\n int v=0;\n for(int j=i;j<i+10;j++){\n v<<=2;\n v|=map.get(chars[j]);\n }\n if(!firstSet.add(v)&&dupSet.add(v)){\n res.add(s.substring(i,i+10));\n }\n }\n return res;\n }", "private static int longestString(List<String> arr) {\n\t\tList<String> ll=new ArrayList();\r\n\t\tlongestString(arr,0,\"\",ll);\r\n\t\tint max=0;\r\n\t\tfor(String a:ll) {\r\n\t\t\tint len=a.length();\r\n\t\t\tif(len>max) {\r\n\t\t\t\tmax=len;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn max;\r\n\t}", "@Test\n\tvoid testPalindromicSubstrings() {\n\t\tassertEquals(3, new PalindromicSubstrings().countSubstrings(\"abc\"));\n\t\tassertEquals(6, new PalindromicSubstrings().countSubstrings(\"aaa\"));\n\t\tassertEquals(1, new PalindromicSubstrings().countSubstrings(\"a\"));\n\t\tassertEquals(0, new PalindromicSubstrings().countSubstrings(\"\"));\n\t\tassertEquals(12, new PalindromicSubstrings().countSubstrings(\"aabaaa\"));\n\t}", "boolean hasUniqueCharactersTimeEfficient(String s) {\n Set<Character> characterSet = new HashSet<Character>();\n for(int i=0; i < s.length();i++) {\n if(characterSet.contains(s.charAt(i))) {\n return false;\n } else {\n characterSet.add(s.charAt(i));\n }\n }\n return true;\n }", "public static List<Integer> allAnagrams(String s, String l) {\n List<Integer> ans = new ArrayList<Integer>();\n \n if(s == null || s.length() < 1 || l == null || l.length() < 1)\n return ans;\n StringBuilder sb = new StringBuilder();\n char[] sarray = s.toCharArray();\n permute(sarray,sb,0);\n for(int i = 0; i < l.length() - s.length()+1; i++){\n if(set.contains(l.substring(i,i+s.length()))){\n ans.add(i);\n }\n }\n return ans;\n }", "public int lengthOfLongestSubstringKDistinct(String s, int k) {\n Map<Character, Integer> map = new HashMap<>();\n int maxLenght = 0;\n\n int i = 0;\n int j = 0;\n int n = s.length();\n\n while (j < s.length()) {\n\n char c = s.charAt(j);\n if (map.containsKey(c)) {\n map.put(c, map.get(c) + 1);\n } else {\n map.put(c, 1);\n }\n\n if (map.size() <= k) {\n maxLenght = Math.max(maxLenght, j - i + 1);\n }\n\n if (map.size() > k) {\n\n while (map.size() > k && i < j) {\n char cx = s.charAt(i);\n map.put(cx, map.get(cx) - 1);\n if (map.get(cx) == 0) {\n map.remove(cx);\n }\n i++;\n }\n }\n\n j++;\n }\n\n return maxLenght;\n }", "public static List<String> getRepetitiveElements(String[] array)\n {\n if (array == null) return null;\n\n // variable -> each index maps to a linkedlist containing the values\n List<Integer>[] hashMap = new ArrayList[array.length];\n List<String> duplicateSet = new ArrayList<>();\n int index;\n int n = array.length;\n String curString;\n for (int i = 0; i < array.length; i++) {\n curString = array[i];\n index = curString.hashCode()%n;\n if (hashMap[index] == null) {\n hashMap[index]=new ArrayList<>(); // store the i index\n hashMap[index].add(i); // put in i within the arrayList\n } else { // index is not null\n List<Integer> matchingIndice = hashMap[index];\n boolean hit = false;\n for (Integer mi: matchingIndice) {\n if (array[mi].compareTo(curString)==0) {\n // collision, and the string matches, we are happy\n if (!duplicateSet.contains(curString)) { // this is O(m) where m is # of duplicate strings in the set\n duplicateSet.add(curString);// found duplicate string\n }\n hit = true;\n break; // exit -> found a match\n }\n }\n if (!hit) {\n matchingIndice.add(i); // put i into the linkedlist\n hashMap[index] = matchingIndice;\n }\n }\n }\n\n return duplicateSet;\n }", "public int countDistinct(String s) {\n\t\tTrie root = new Trie();\n\t\tint result = 0;\n for (int i = 0; i < s.length(); i++) {\n \tTrie cur = root;\n \tfor (int j = i; j < s.length(); j++) {\n \t\tint idx = s.charAt(j) - 'a';\n \t\tif (cur.arr[idx] == null) {\n \t\t\tresult++;\n \t\t\tcur.arr[idx] = new Trie();\n \t\t}\n \t\tcur = cur.arr[idx];\n \t}\n }\n return result;\n }", "String LetterCount(String str) {\n String strr1[]=str.split(\" \");\n String strr[]= strr1;\n String strt=\"\";\n int count=0;\n int count1=0;\n int maxi=0;\n \n for(int i=0; i<strr.length; i++){\n char[] crr=strr[i].toCharArray();\n java.util.Arrays.sort(crr);\n strt=new String(crr);\n for(int j=0; j<strt.length()-1; j++){\n while(strt.charAt(j)==strt.charAt(j+1) && j<strt.length()-2){\n count++;\n j++;\n }\n }\n if(count>count1){\n count1=count;\n maxi=i;\n }\n count=0;\n }\n return strr1[maxi];\n \n }", "public int minLength(String s, Set<String> dict) {\n StringBuilder sb = new StringBuilder();\n sb.append(s);\n sb.delete(sb.indexOf(s), sb.lastIndexOf(s));\n for (String st : dict) {\n s.replaceAll(st, \"\");\n }\n return 1;\n }", "static int size_of_rnz(String passed){\n\t\treturn 1;\n\t}", "public List<Integer> findSubstring(String s, String[] words) {\n if (s == null || s.isEmpty() || words == null || words.length == 0) {\n return new ArrayList<>();\n }\n\n List<Integer> res = new ArrayList<>();\n int size = words.length;\n int length = words[0].length();\n\n if (s.length() < size * length) {\n return new ArrayList<>();\n }\n\n Map<String,Integer> covered = new HashMap<>();\n\n for (int j=0; j<size; j++) {\n if (s.indexOf(words[j]) < 0) {\n return res;\n }\n\n covered.compute(words[j], (k, v) -> v != null ? covered.get(k)+1 : 1);\n }\n\n int i=0;\n int sLength = s.length();\n while(sLength -i >= size * length){\n Map<String, Integer> temp = new HashMap<>(covered);\n\n for (int j=0; j<words.length; j++){\n String testStr = s.substring(i + j*length, i + (j+1)*length);\n\n if (temp.containsKey(testStr)){\n if (temp.get(testStr) == 1)\n temp.remove(testStr);\n else\n temp.put(testStr, temp.get(testStr)-1);\n }\n else {\n break;\n }\n }\n\n if (temp.size() == 0) {\n res.add(i);\n }\n\n i++;\n }\n return res;\n }" ]
[ "0.6436582", "0.63661385", "0.6352143", "0.63009393", "0.6284061", "0.6240804", "0.6201599", "0.6068844", "0.60655576", "0.6056479", "0.597237", "0.5967314", "0.5954242", "0.5951952", "0.59293586", "0.5922497", "0.5895384", "0.5870931", "0.58510256", "0.5849876", "0.5849077", "0.5831977", "0.58282393", "0.58140355", "0.5794473", "0.5777427", "0.57633126", "0.5758102", "0.57491183", "0.5729131", "0.5719518", "0.57081467", "0.5693945", "0.56796235", "0.5666427", "0.5650973", "0.5632036", "0.5625053", "0.56212103", "0.56093395", "0.5606523", "0.56055", "0.56023467", "0.55968755", "0.55912274", "0.5587432", "0.55837625", "0.5583611", "0.55766445", "0.5567783", "0.55675465", "0.5566986", "0.55595183", "0.55541956", "0.5545445", "0.55411345", "0.5540388", "0.5539846", "0.55375206", "0.5534585", "0.5531472", "0.5523741", "0.5520383", "0.55202615", "0.55196923", "0.5513317", "0.5506067", "0.55050325", "0.5504024", "0.54977703", "0.5495253", "0.5490634", "0.5486725", "0.5485249", "0.54798734", "0.5478239", "0.5477754", "0.5472656", "0.54681814", "0.54681677", "0.5467889", "0.5446512", "0.54394567", "0.54373163", "0.543513", "0.5423411", "0.5422295", "0.54201686", "0.54187536", "0.5418559", "0.54154867", "0.54135656", "0.54111576", "0.54077774", "0.54067874", "0.5396909", "0.5396847", "0.5396685", "0.5396227", "0.5390276", "0.5385037" ]
0.0
-1
Loads every item from the set, with masterwork, items are unsealed
private List<Reward> loadFromSet(L2ArmorSet armorSet) { List<Reward> setReward = new ArrayList<>(); setReward.add(new Reward(armorSet.getChestId())); setReward.addAll(idsToSingularReward(armorSet.getHead())); setReward.addAll(idsToSingularReward(armorSet.getGloves())); setReward.addAll(idsToSingularReward(armorSet.getLegs())); setReward.addAll(idsToSingularReward(armorSet.getFeet())); setReward.addAll(idsToSingularReward(armorSet.getShield())); LOG.debug("Loaded Set Reward {}", armorSet.getSetName()); setReward.forEach(reward -> LOG.debug("new Reward(" + reward.getItemId() + "), // " + ItemTable.getInstance().getTemplate(reward.getItemId()).getName())); return setReward; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void loadItemsInternal();", "@Override\n public List<Item> retrieveAllItems() throws VendingMachinePersistenceException {\n loadItemFile();\n List<Item> itemList = new ArrayList<>();\n for (Item currentItem: itemMap.values()) {\n itemList.add(currentItem);\n }\n\n return itemList;\n }", "private void loadStartingInventory(){\n this.shelfList = floor.getShelf();\n Iterator<String> i = items.iterator();\n for (Shelf s : shelfList){\n while (s.hasFreeSpace()){\n s.addItem(i.next(), 1);\n }\n }\n }", "void loadMyset() throws XVException {\n\t\tCubeTree.init(null);\n\t\tCubeTree.create(ecs, synsets);\n\t}", "public void loadItems() {\n\t\tArrayList<String> lines = readData();\n\t\tfor (int i = 1; i < lines.size(); i++) {\n\t\t\tString line = lines.get(i);\n\t\t\t\n\t\t\tString[] parts = line.split(\",\");\n\t\t\t\n//\t\t\tSystem.out.println(\"Name: \" + parts[0]);\n//\t\t\tSystem.out.println(\"Amount: \" + parts[1]);\n//\t\t\tSystem.out.println(\"Price: \" + parts[2]);\n//\t\t\tSystem.out.println(\"-------\");\n\t\t\t\n\t\t\tString name = parts[0].trim();\n\t\t\tint amount = Integer.parseInt(parts[1].trim());\n\t\t\tdouble price = Double.parseDouble(parts[2].trim());\n\t\t\t\n\t\t\tItem item = new Item(name, amount, price);\n\t\t\titemsInStock.add(item);\n\t\t}\n\t}", "private void loadItemsMaps()\n {\n _icons=new HashMap<String,List<Item>>(); \n _names=new HashMap<String,List<Item>>(); \n List<Item> items=ItemsManager.getInstance().getAllItems();\n for(Item item : items)\n {\n String icon=item.getIcon();\n if (icon!=null)\n {\n registerMapping(_icons,icon,item);\n String mainIconId=icon.substring(0,icon.indexOf('-'));\n registerMapping(_icons,mainIconId,item);\n String name=item.getName();\n registerMapping(_names,name,item);\n }\n }\n }", "protected void realizeAll ()\r\n {\r\n for ( final String itemId : this.itemSet.keySet () )\r\n {\r\n try\r\n {\r\n realizeItem ( itemId );\r\n }\r\n catch ( final AddFailedException e )\r\n {\r\n Integer rc = e.getErrors ().get ( itemId );\r\n if ( rc == null )\r\n {\r\n rc = -1;\r\n }\r\n// logger.warn ( String.format ( \"Failed to add item: %s (%08X)\", itemId, rc ) );\r\n\r\n }\r\n catch ( final Exception e )\r\n {\r\n// logger.warn ( \"Failed to realize item: \" + itemId, e );\r\n }\r\n }\r\n }", "private void loadCombos() throws Exception {\r\n\t\titemsBranchOffices = new ArrayList<SelectItem>();\r\n\t\titemsFarms = new ArrayList<SelectItem>();\r\n\t\tList<Farm> farmsCurrent = farmDao.farmsList();\r\n\t\tif (farmsCurrent != null) {\r\n\t\t\tfor (Farm farm : farmsCurrent) {\r\n\t\t\t\titemsFarms\r\n\t\t\t\t\t\t.add(new SelectItem(farm.getIdFarm(), farm.getName()));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Set<Medicine> loadMedicines();", "public void loadItem() {\n if (items == maxLoad) {\n throw new IllegalArgumentException(\"The dishwasher is full\");\n } else if (dishwasherState != State.ON) {\n throw new InvalidStateException(\"You cannot load dishes while the dishwasher is running/unloading\");\n }\n items++;\n }", "@Override\n\tpublic List<Item> loadItems(int start, int count) {\n\t\treturn null;\n\t}", "public Set<IS> getFreItemSet();", "private Itemsets() {\n\t\t\tfrequentItemsets = new LinkedHashMap<Itemset, Integer>();\n\t\t\tinfrequentItemsets = new LinkedHashMap<Itemset, Integer>();\n\t\t}", "public LR1ItemSet itemSet( State state)\n {\n return itemSetMap.get( state);\n }", "protected void loadAll() {\n\t\ttry {\n\t\t\tloadGroups(this.folder, this.cls, this.cachedOnes);\n\t\t\t/*\n\t\t\t * we have to initialize the components\n\t\t\t */\n\t\t\tfor (Object obj : this.cachedOnes.values()) {\n\t\t\t\t((Component) obj).getReady();\n\t\t\t}\n\t\t\tTracer.trace(this.cachedOnes.size() + \" \" + this + \" loaded.\");\n\t\t} catch (Exception e) {\n\t\t\tthis.cachedOnes.clear();\n\t\t\tTracer.trace(\n\t\t\t\t\te,\n\t\t\t\t\tthis\n\t\t\t\t\t\t\t+ \" pre-loading failed. No component of this type is available till we successfully pre-load them again.\");\n\t\t}\n\t}", "private void populatesetlist() {\n\t\tmyset.add(new set(\"Password\", R.drawable.passwordop, \"hello\"));\n\t\tmyset.add(new set(\"Help\", R.drawable.helpso4, \"hello\"));\n\t\tmyset.add(new set(\"About Developers\", R.drawable.aboutusop2, \"hello\"));\n\t\tmyset.add(new set(\"Home\", R.drawable.homefi, \"hello\"));\n\t}", "private void loadItems() {\n CheckItemsActivity context = this;\n makeRestGetRequest(String.format(Locale.getDefault(),\n RestClient.ITEMS_URL, checkId), (success, response) -> {\n if (!success) {\n Log.d(DEBUG_TAG, \"Load items fail\");\n Toast.makeText(context, LOAD_ITEMS_FAIL, Toast.LENGTH_SHORT).show();\n } else {\n try {\n items = ModelsBuilder.buildItemsFromJSON(response);\n // pass loaded items and categories to adapter and set adapter to Recycler View\n itemsListAdapter = new ItemsListAdapter(items, categories, context);\n recyclerView.setAdapter(itemsListAdapter);\n } catch (JSONException e) {\n Log.d(DEBUG_TAG, \"Load items parsing fail\");\n }\n }\n // set loading progress bar to invisible when loading is finished\n progressBar.setVisibility(View.INVISIBLE);\n });\n }", "@Override\n\tpublic void load() {\n\t\tsuper.load();\n\t\t\n\t\tUriAdapter adapter = new UriAdapter(config);\n\t\tbnetMap = loadBnetMap(adapter, config.getStoreUri(), getName());\n\t\tadapter.close();\n\t\t\n\t\titemIds = bnetMap.keySet();\n\t}", "private void loadItems() {\n try {\n if (ServerIdUtil.isServerId(memberId)) {\n if (ServerIdUtil.containsServerId(memberId)) {\n memberId = ServerIdUtil.getLocalId(memberId);\n } else {\n return;\n }\n }\n List<VideoReference> videoReferences = new Select().from(VideoReference.class).where(VideoReference_Table.userId.is(memberId)).orderBy(OrderBy.fromProperty(VideoReference_Table.date).descending()).queryList();\n List<String> videoIds = new ArrayList<>();\n for (VideoReference videoReference : videoReferences) {\n videoIds.add(videoReference.getId());\n }\n itemList = new Select().from(Video.class).where(Video_Table.id.in(videoIds)).orderBy(OrderBy.fromProperty(Video_Table.date).descending()).queryList();\n } catch (Throwable t) {\n itemList = new ArrayList<>();\n }\n }", "void loadSet() {\n int returnVal = fc.showOpenDialog(this);\n if (returnVal != JFileChooser.APPROVE_OPTION) {\n System.out.println(\"Open command cancelled by user.\");\n return;\n }\n file = fc.getSelectedFile();\n System.out.println(\"Opening: \" + file.getName());\n closeAllTabs();\n try {\n FileInputStream fis = new FileInputStream(file);\n ObjectInputStream ois = new ObjectInputStream(fis);\n //loopButton.setSelected( ois.readObject() ); \n ArrayList l = (ArrayList) ois.readObject();\n System.out.println(\"read \"+l.size()+\" thingies\");\n ois.close();\n for(int i=0; i<l.size(); i++) {\n HashMap m = (HashMap) l.get(i);\n openNewTab();\n getCurrentTab().paste(m);\n }\n } catch(Exception e) {\n System.out.println(\"Open error \"+e);\n }\n }", "@Override\n public List<Integer> loadAllIds() {\n List<Integer> allCommerceItemIds = new LinkedList<>();\n try {\n allCommerceItemIds = mCommerceAccess.getAllCommerceItemsWithWifi();\n } catch (Exception ex) {\n Log.e(TAG, \"A general failure has occurred while trying to load all item IDs.\",\n ex);\n }\n return allCommerceItemIds;\n }", "private void loadRack() {\n buildRack();\n for (LetterTile tile : rack)\n add(tile);\n }", "public Set<InventoryCarModel> loadInventoryItems() {\r\n\t\tSet<InventoryCarModel> items = new HashSet<InventoryCarModel>();\r\n\t\ttry(BufferedReader br = new BufferedReader(new FileReader(this.data_location))) {\r\n\t\t\tString line;\r\n\t\t\tint counter = 0;\r\n\t\t\twhile ((line = br.readLine()) != null && line != \"\\n\") {\r\n\t\t\t\tString[] values = line.split(\",\");\r\n\t\t\t\tif (values[0].equals(\"vin\")) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tInventoryCarModel Inventory = new InventoryCarModel(values[0], values[1], values[2], values[3], Integer.parseInt(values[4]));\r\n\t\t\t\t\titems.add(Inventory);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Error adding vehicle to inventory: \" + e.getMessage());\r\n\t\t}\r\n\t\treturn items;\r\n\t}", "private void setAllAvailable() {\r\n for (int large = 0; large < 9; large++) {\r\n for (int small = 0; small < 9; small++) {\r\n Tile tile = mSmallTiles[large][small];\r\n if (tile.getOwner() == Tile.Owner.NEITHER)\r\n addAvailable(tile);\r\n }\r\n }\r\n }", "@Override\n\tpublic Set<T> retrieveAllItems() {\n\t\treturn cache;\n\t}", "public void run() {\n AuctionItemCollection coll = AuctionItemCollection.getInstance();\n for (AuctionItem item : coll.getValues()) {\n if (!item.isOpen())\n coll.remove(item.getItemInfo().getId());\n }\n coll.rebuildCache();\n }", "static private void loadGame() {\n ArrayList loadData = data.loadGame();\n\n //inventory\n inventory = new Inventory();\n LinkedTreeMap saveMap = (LinkedTreeMap) loadData.get(0);\n if (!saveMap.isEmpty()) {\n LinkedTreeMap inventoryItemWeight = (LinkedTreeMap) saveMap.get(\"itemWeight\");\n LinkedTreeMap inventoryItemQuantity = (LinkedTreeMap) saveMap.get(\"inventory\");\n String inventoryItemQuantityString = inventoryItemQuantity.toString();\n inventoryItemQuantityString = removeCrapCharsFromString(inventoryItemQuantityString);\n String itemListString = inventoryItemWeight.toString();\n itemListString = removeCrapCharsFromString(itemListString);\n\n for (int i = 0; i < inventoryItemWeight.size(); i++) {\n String itemSet;\n double itemQuantity;\n if (itemListString.contains(\",\")) {\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.indexOf(\",\")));\n inventoryItemQuantityString = inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\",\") + 1, inventoryItemQuantityString.length());\n itemSet = itemListString.substring(0, itemListString.indexOf(\",\"));\n itemListString = itemListString.substring(itemListString.indexOf(\",\") + 1, itemListString.length());\n } else {\n itemSet = itemListString;\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.length()));\n }\n String itemName = itemSet.substring(0, itemSet.indexOf(\"=\"));\n int itemWeight = Double.valueOf(itemSet.substring(itemSet.indexOf(\"=\") + 1, itemSet.length())).intValue();\n while (itemQuantity > 0) {\n Item item = new Item(itemName, \"\", itemWeight, true);\n inventory.addItemInInventory(item);\n itemQuantity--;\n }\n }\n }\n\n //itemList\n itemLocation = new ItemLocation();\n saveMap = (LinkedTreeMap) loadData.get(1);\n if (!saveMap.isEmpty()) {\n System.out.println(saveMap.keySet());\n LinkedTreeMap itemLocationOnMap = (LinkedTreeMap) saveMap;\n String rooms = saveMap.keySet().toString();\n rooms = removeCrapCharsFromString(rooms);\n for (int j = 0; j <= itemLocationOnMap.size() - 1; j++) {\n String itemToAdd;\n\n if (rooms.contains(\",\")) {\n itemToAdd = rooms.substring(0, rooms.indexOf(\",\"));\n } else {\n itemToAdd = rooms;\n }\n\n rooms = rooms.substring(rooms.indexOf(\",\") + 1, rooms.length());\n ArrayList itemInRoom = (ArrayList) itemLocationOnMap.get(itemToAdd);\n for (int i = 0; i < itemInRoom.size(); i++) {\n Item itemLocationToAdd;\n LinkedTreeMap itemT = (LinkedTreeMap) itemInRoom.get(i);\n String itemName = itemT.get(\"name\").toString();\n String itemDesc = \"\";\n int itemWeight = (int) Double.parseDouble(itemT.get(\"weight\").toString());\n boolean itemUseable = Boolean.getBoolean(itemT.get(\"useable\").toString());\n\n itemLocationToAdd = new PickableItem(itemName, itemDesc, itemWeight, itemUseable);\n itemLocation.addItem(itemToAdd, itemLocationToAdd);\n\n }\n }\n //set room\n String spawnRoom = loadData.get(3).toString();\n currentRoom = getRoomFromName(spawnRoom);\n }\n }", "private static void initializeAllGenresList(){\n\t\tfor(int i = 0; i < 13; i ++){\n\t\t\tALL_GENRES.add(new HashSet<String>());\n\t\t}\n\t}", "private void loadLists() {\n }", "@Override\r\n\tpublic void init() {\n\t\tint numOfItems = loader.getNumOfItems();\r\n\t\tsetStoreSize(numOfItems);\r\n\r\n\t\tfor (int i = 0; i < numOfItems; i++) {\r\n DrinksStoreItem item = (DrinksStoreItem) loader.getItem(i);\r\n\t\t\tStoreObject brand = item.getContent();\r\n\t\t\tStoreObject existingBrand = findObject(brand.getName());\r\n\t\t\tif (existingBrand != null) {\r\n\t\t\t item.setContent(existingBrand);\r\n\t\t\t}\r\n\t\t\taddItem(i, item);\t\r\n\t\t}\r\n\t}", "private void readItems() {\n }", "@Override\n public Set<T> getItems() {\n return items;\n }", "private Set<BoardObject> populateBoard(){\r\n\t\tSet<BoardObject> ob = new HashSet<BoardObject>();\r\n\t\tob.addAll(createCharacters());\r\n\t\tob.addAll(createWeapons());\r\n\t\treturn ob;\r\n\t}", "public void populate() {\n populate(this.mCurItem);\n }", "private void createItemsetsOfSize1() {\n itemsets = new ArrayList<>();\n for (int i = 0; i < numItems; i++) {\n String[] cand = {words.get(i)};\n itemsets.add(cand);\n }\n }", "private void loadItemList() {\n this.presenter.initialize();\n }", "public static void LoadItems() {\r\n\t\t\r\n\t\t/*\r\n\t\t * Basic Minecraft Hammers (Ex. Vannila Ores)\r\n\t\t */\r\n\t\r\n\t\tItemWoodHammer = new ItemWoodHammer(HammerModMain.MODID + \":ItemWoodHammer\", \"HammerMod-DZ_res/items/ItemWoodHammer.png\");\r\n\t\tItemStoneHammer = new ItemStoneHammer(HammerModMain.MODID + \":ItemStoneHammer\", \"HammerMod-DZ_res/items/ItemStoneHammer.png\");\r\n\t\t//ItemIronHammer = new ItemIronHammer(HammerModMain.MODID + \":ItemIronHammer\", \"HammerMod-DZ_res/items/ItemIronHammer.png\");\r\n\t\t//ItemGoldHammer = new ItemGoldHammer(HammerModMain.MODID + \":ItemGoldHammer\", \"HammerMod-DZ_res/items/ItemGoldHammer.png\");\r\n\t\tItemDiamondHammer = new ItemDiamondHammer(HammerModMain.MODID + \":ItemDiamondHammer\", \"HammerMod-DZ_res/items/ItemDiamondHammer.png\");\r\n\t\tItemDirtHammer = new ItemDirtHammer(HammerModMain.MODID + \":ItemDirtHammer\", \"HammerMod-DZ_res/items/ItemDirtHammer.png\");\r\n\t\tItemGlassHammer = new ItemGlassHammer(HammerModMain.MODID + \":ItemGlassHammer\", \"HammerMod-DZ_res/items/ItemGlassHammer.png\");\r\n\t\tItemSandHammer = new ItemSandHammer(HammerModMain.MODID + \":ItemSandHammer\", \"HammerMod-DZ_res/items/ItemSandHammer.png\");\r\n\t\t//ItemCactusHammer = new ItemCactusHammer(HammerModMain.MODID + \":ItemCactusHammer\", \"HammerMod-DZ_res/items/ItemCactusHammer.png\");\r\n\t\t//ItemGravelHammer = new ItemGravelHammer(HammerModMain.MODID + \":ItemGravelHammer\", \"HammerMod-DZ_res/items/ItemGravelHammer.png\");\r\n\t\t//ItemWoolHammer_white = new ItemWoolHammer_white(HammerModMain.MODID + \":ItemWoolHammer_white\", \"HammerMod-DZ_res/items/ItemWoolHammer_white.png\");\r\n\t\tItemEmeraldHammer = new ItemEmeraldHammer(HammerModMain.MODID + \":ItemEmeraldHammer\", \"HammerMod-DZ_res/items/ItemEmeraldHammer.png\");\r\n\t\tItemGrassHammer = new ItemGrassHammer(HammerModMain.MODID + \":ItemGrassHammer\", \"HammerMod-DZ_res/items/ItemGrassHammer.png\");\r\n\t\t//ItemObsidianHammer = new ItemObsidianHammer(HammerModMain.MODID + \":ItemObsidianHammer\", \"HammerMod-DZ_res/items/ItemObsidianHammer.png\");\r\n\t\t//ItemGlowstoneHammer = new ItemGlowstoneHammer(HammerModMain.MODID + \":ItemGlowstoneHammer\", \"HammerMod-DZ_res/items/ItemGlowstoneHammer.png\");\r\n\t\t//ItemRedstoneHammer = new ItemRedstoneHammer(HammerModMain.MODID + \":ItemRedstoneHammer\", \"HammerMod-DZ_res/items/ItemRedstoneHammer.png\");\r\n\t\t//ItemLapizHammer = new ItemLapizHammer(HammerModMain.MODID + \":ItemLapizHammer\", \"HammerMod-DZ_res/items/ItemLapizHammer.png\");\r\n\t\t//ItemNetherackHammer = new ItemNetherackHammer(HammerModMain.MODID + \":ItemNetherackHammer\", \"HammerMod-DZ_res/items/ItemNetherackHammer.png\");\r\n\t\t//ItemSoulSandHammer = new ItemSoulSandHammer(HammerModMain.MODID + \":ItemSoulSandHammer\", \"HammerMod-DZ_res/items/ItemSoulSandHammer.png\");\r\n\t\tItemCoalHammer = new ItemCoalHammer(HammerModMain.MODID + \":ItemCoalHammer\", \"HammerMod-DZ_res/items/ItemCoalHammer.png\");\r\n\t\tItemCharcoalHammer = new ItemCharcoalHammer(HammerModMain.MODID + \":ItemCharcoalHammer\", \"HammerMod-DZ_res/items/ItemCharcoalHammer.png\");\r\n\t\t//ItemEndstoneHammer = new ItemEndstoneHammer(HammerModMain.MODID + \":ItemEndstoneHammer\", \"HammerMod-DZ_res/items/ItemEndstoneHammer.png\");\r\n\t\tItemBoneHammer = new ItemBoneHammer(HammerModMain.MODID + \":ItemBoneHammer\", \"HammerMod-DZ_res/items/ItemBoneHammer.png\");\r\n\t\t//ItemSpongeHammer = new ItemSpongeHammer(HammerModMain.MODID + \":ItemSpongeHammer\", \"HammerMod-DZ_res/items/ItemSpongeHammer.png\");\r\n\t\t//ItemBrickHammer = new ItemBrickHammer(HammerModMain.MODID + \":ItemBrickHammer\", \"HammerMod-DZ_res/items/ItemBrickHammer.png\");\r\n\t\t//ItemSugarHammer = new ItemSugarHammer(HammerModMain.MODID + \":ItemSugarHammer\", \"HammerMod-DZ_res/items/ItemSugarHammer.png\");\r\n\t\t//ItemSlimeHammer = new ItemSlimeHammer(HammerModMain.MODID + \":ItemSlimeHammer\", \"HammerMod-DZ_res/items/ItemSlimeHammer.png\");\r\n\t\t//ItemMelonHammer = new ItemMelonHammer(HammerModMain.MODID + \":ItemMelonHammer\", \"HammerMod-DZ_res/items/ItemMelonHammer.png\");\r\n\t\t//ItemPumpkinHammer = new ItemPumpkinHammer(HammerModMain.MODID + \":ItemPumpkinHammer\", \"HammerMod-DZ_res/items/ItemPumpkinHammer.png\");\r\n\t\t//ItemPotatoHammer = new ItemPotatoHammer(HammerModMain.MODID + \":ItemPotatoHammer\", \"HammerMod-DZ_res/items/ItemPotatoHammer.png\");\r\n\t\t//ItemCarrotHammer = new ItemCarrotHammer(HammerModMain.MODID + \":ItemCarrotHammer\", \"HammerMod-DZ_res/items/ItemCarrotHammer.png\");\r\n\t\tItemAppleHammer = new ItemAppleHammer(HammerModMain.MODID + \":ItemAppleHammer\", \"HammerMod-DZ_res/items/ItemAppleHammer.png\");\r\n\t\t//ItemIceHammer = new ItemIceHammer(HammerModMain.MODID + \":ItemIceHammer\", \"HammerMod-DZ_res/items/ItemIceHammer.png\");\r\n\t\t//ItemPackedIceHammer = new ItemPackedIceHammer(HammerModMain.MODID + \":ItemPackedIceHammer\", \"HammerMod-DZ_res/items/ItemPackedIceHammer.png\");\r\n\t\t//ItemSnowHammer = new ItemSnowHammer(HammerModMain.MODID + \":ItemSnowHammer\", \"HammerMod-DZ_res/items/ItemSnowHammer.png\");\r\n\t\t//ItemCakeHammer = new ItemCakeHammer(HammerModMain.MODID + \":ItemCakeHammer\", \"HammerMod-DZ_res/items/ItemCakeHammer.png\");\r\n\t\t//ItemDragonEggHammer = new ItemDragonEggHammer(HammerModMain.MODID + \":ItemDragonEggHammer\", \"HammerMod-DZ_res/items/ItemDragonEggHammer.png\");\r\n\t\t//ItemTntHammer = new ItemTntHammer(HammerModMain.MODID + \":ItemTntHammer\", \"HammerMod-DZ_res/items/ItemTntHammer.png\");\r\n\t\t//ItemBedrockHammer = new ItemBedrockHammer(HammerModMain.MODID + \":ItemBedrockHammer\", \"HammerMod-DZ_res/items/ItemBedrockHammer.png\");\r\n\r\n\t\t/*\r\n\t\t * Mob Hammers\r\n\t\t */\r\n\t\t//ItemCreeperHammer = new ItemCreeperHammer(CREEPER).setUnlocalizedName(\"ItemCreeperHammer\").setTextureName(\"hammermod:ItemCreeperHammer\").setCreativeTab(HammerMod.HammerMod);\r\n\t\t//ItemPigHammer = new ItemPigHammer(PIG).setUnlocalizedName(\"ItemPigHammer\").setTextureName(\"hammermod:ItemPigHammer\").setCreativeTab(HammerMod.HammerMod);\r\n\t\t//ItemCowHammer = new ItemCowHammer(COW).setUnlocalizedName(\"ItemCowHammer\").setTextureName(\"hammermod:ItemCowHammer\").setCreativeTab(HammerMod.HammerMod);\r\n\t\t\r\n\r\n\t\t/*\r\n\t\t * Hammers Using Ores from other mods\r\n\t\t * **NOTE: REQUIRES Other mods to craft these hammers**\r\n\t\t */\r\n\t\tItemCopperHammer = new ItemCopperHammer(HammerModMain.MODID + \":ItemCopperHammer\", \"HammerMod-DZ_res/items/ItemCopperHammer.png\");\r\n\t\tItemBronzeHammer = new ItemBronzeHammer(HammerModMain.MODID + \":ItemBronzeHammer\", \"HammerMod-DZ_res/items/ItemBronzeHammer.png\");\r\n\t\tItemSilverHammer = new ItemSilverHammer(HammerModMain.MODID + \":ItemSilverHammer\", \"HammerMod-DZ_res/items/ItemSilverHammer.png\");\r\n\t\tItemTungstenHammer = new ItemTungstenHammer(HammerModMain.MODID + \":ItemTungstenHammer\", \"HammerMod-DZ_res/items/ItemTungstenHammer.png\");\r\n\t\tItemRubyHammer = new ItemRubyHammer(HammerModMain.MODID + \":ItemRubyHammer\", \"HammerMod-DZ_res/items/ItemRubyHammer.png\");\r\n\t\tItemTinHammer = new ItemTinHammer(HammerModMain.MODID + \":ItemTinHammer\", \"HammerMod-DZ_res/items/ItemTinHammer.png\");\r\n\t\tItemJadeHammer = new ItemJadeHammer(HammerModMain.MODID + \":ItemJadeHammer\", \"HammerMod-DZ_res/items/ItemJadeHammer.png\");\r\n\t\tItemAmethystHammer = new ItemAmethystHammer(HammerModMain.MODID + \":ItemAmethystHammer\", \"HammerMod-DZ_res/items/ItemAmethystHammer.png\");\r\n\t\tItemGraphiteHammer = new ItemGraphiteHammer(HammerModMain.MODID + \":ItemGraphiteHammer\", \"HammerMod-DZ_res/items/ItemGraphiteHammer.png\");\r\n\t\tItemCitrineHammer = new ItemCitrineHammer(HammerModMain.MODID + \":ItemCitrineHammer\", \"HammerMod-DZ_res/items/ItemCitrineHammer.png\");\r\n\t\tItemPierreHammer = new ItemPierreHammer(HammerModMain.MODID + \":ItemPierreHammer\", \"HammerMod-DZ_res/items/ItemPierreHammer.png\");\r\n\t\tItemSapphireHammer = new ItemSapphireHammer(HammerModMain.MODID + \":ItemSapphireHammer\", \"HammerMod-DZ_res/items/ItemSapphireHammer.png\");\r\n\t\tItemOnyxHammer = new ItemOnyxHammer(HammerModMain.MODID + \":ItemOnyxHammer\", \"HammerMod-DZ_res/items/ItemOnyxHammer.png\");\r\n\t\tItemNikoliteHammer = new ItemNikoliteHammer(HammerModMain.MODID + \":ItemNikoliteHammer\", \"HammerMod-DZ_res/items/ItemNikoliteHammer.png\");\r\n\t\tItemSilicaHammer = new ItemSilicaHammer(HammerModMain.MODID + \":ItemSilicaHammer\", \"HammerMod-DZ_res/items/ItemSilicaHammer.png\");\r\n\t\tItemCinnabarHammer = new ItemCinnabarHammer(HammerModMain.MODID + \":ItemCinnabarHammer\", \"HammerMod-DZ_res/items/ItemCinnabarHammer.png\");\r\n\t\tItemAmberBearingStoneHammer = new ItemAmberBearingStoneHammer(HammerModMain.MODID + \":ItemAmberBearingStoneHammer\", \"HammerMod-DZ_res/items/ItemAmberBearingStoneHammer.png\");\r\n\t\tItemFerrousHammer = new ItemFerrousHammer(HammerModMain.MODID + \":ItemFerrousHammer\", \"HammerMod-DZ_res/items/ItemFerrousHammer.png\");\r\n\t\tItemAdaminiteHammer = new ItemAdaminiteHammer(HammerModMain.MODID + \":ItemAdaminiteHammer\", \"HammerMod-DZ_res/items/ItemAdaminiteHammer.png\");\r\n\t\tItemShinyHammer = new ItemShinyHammer(HammerModMain.MODID + \":ItemShinyHammer\", \"HammerMod-DZ_res/items/ItemShinyHammer.png\");\r\n\t\tItemXychoriumHammer = new ItemXychoriumHammer(HammerModMain.MODID + \":ItemXychoriumHammer\", \"HammerMod-DZ_res/items/ItemXychoriumHammer.png\");\r\n\t\tItemUraniumHammer = new ItemUraniumHammer(HammerModMain.MODID + \":ItemUraniumHammer\", \"HammerMod-DZ_res/items/ItemUraniumHammer.png\");\r\n\t\tItemTitaniumHammer = new ItemTitaniumHammer(HammerModMain.MODID + \":ItemTitaniumHammer\", \"HammerMod-DZ_res/items/ItemTitaniumHammer.png\");\r\n\t\tItemBloodStoneHammer = new ItemBloodStoneHammer(HammerModMain.MODID + \":ItemBloodStoneHammer\", \"HammerMod-DZ_res/items/ItemBloodStoneHammer.png\");\r\n\t\tItemRustedHammer = new ItemRustedHammer(HammerModMain.MODID + \":ItemRustedHammer\", \"HammerMod-DZ_res/items/ItemRustedHammer.png\");\r\n\t\tItemRositeHammer = new ItemRositeHammer(HammerModMain.MODID + \":ItemRositeHammer\", \"HammerMod-DZ_res/items/ItemRositeHammer.png\");\r\n\t\tItemLimoniteHammer = new ItemLimoniteHammer(HammerModMain.MODID + \":ItemLimoniteHammer\", \"HammerMod-DZ_res/items/ItemLimoniteHammer.png\");\r\n\t\tItemMithrilHammer = new ItemMithrilHammer(HammerModMain.MODID + \":ItemMithrilHammer\", \"HammerMod-DZ_res/items/ItemMithrilHammer.png\");\r\n\t\tItemPrometheumHammer = new ItemPrometheumHammer(HammerModMain.MODID + \":ItemPrometheumHammer\", \"HammerMod-DZ_res/items/ItemPrometheumHammer.png\");\r\n\t\tItemHepatizonHammer = new ItemHepatizonHammer(HammerModMain.MODID + \":ItemHepatizonHammer\", \"HammerMod-DZ_res/items/ItemHepatizonHammer.png\");\r\n\t\tItemPoopHammer = new ItemPoopHammer(HammerModMain.MODID + \":ItemPoopHammer\", \"HammerMod-DZ_res/items/ItemPoopHammer.png\");\r\n\t\tItemAngmallenHammer = new ItemAngmallenHammer(HammerModMain.MODID + \":ItemAngmallenHammer\", \"HammerMod-DZ_res/items/ItemAngmallenHammer.png\");\r\n\t\tItemManganeseHammer = new ItemManganeseHammer(HammerModMain.MODID + \":ItemManganeseHammer\", \"HammerMod-DZ_res/items/ItemManganeseHammer.png\");\r\n\t\tItemSearedBrickHammer = new ItemSearedBrickHammer(HammerModMain.MODID + \":ItemSearedBrickHammer\", \"HammerMod-DZ_res/items/ItemSearedBrickHammer.png\");\r\n\t\tItemElectrumHammer = new ItemElectrumHammer(HammerModMain.MODID + \":ItemElectrumHammer\", \"HammerMod-DZ_res/items/ItemElectrumHammer.png\");\r\n\t\tItemPigIronHammer = new ItemPigIronHammer(HammerModMain.MODID + \":ItemPigIronHammer\", \"HammerMod-DZ_res/items/ItemPigIronHammer.png\");\r\n\t\tItemArditeHammer = new ItemArditeHammer(HammerModMain.MODID + \":ItemArditeHammer\", \"HammerMod-DZ_res/items/ItemArditeHammer.png\");\r\n\t\tItemAlumiteHammer = new ItemAlumiteHammer(HammerModMain.MODID + \":ItemAlumiteHammer\", \"HammerMod-DZ_res/items/ItemAlumiteHammer.png\");\r\n\t\tItemCobaltHammer = new ItemCobaltHammer(HammerModMain.MODID + \":ItemCobaltHammer\", \"HammerMod-DZ_res/items/ItemCobaltHammer.png\");\r\n\t\tItemManyullynHammer = new ItemManyullynHammer(HammerModMain.MODID + \":ItemManyullynHammer\", \"HammerMod-DZ_res/items/ItemManyullynHammer.png\");\r\n\t\tItemOureclaseHammer = new ItemOureclaseHammer(HammerModMain.MODID + \":ItemOureclaseHammer\", \"HammerMod-DZ_res/items/ItemOureclaseHammer.png\");\r\n\t\tItemHaderothHammer = new ItemHaderothHammer(HammerModMain.MODID + \":ItemHaderothHammer\", \"HammerMod-DZ_res/items/ItemHaderothHammer.png\");\r\n\t\tItemInfuscoliumHammer = new ItemInfuscoliumHammer(HammerModMain.MODID + \":ItemInfuscoliumHammer\", \"HammerMod-DZ_res/items/ItemInfuscoliumHammer.png\");\r\n\t\tItemRubberHammer = new ItemRubberHammer(HammerModMain.MODID + \":ItemRubberHammer\", \"HammerMod-DZ_res/items/ItemRubberHammer.png\");\r\n\t\tItemDesichalkosHammer = new ItemDesichalkosHammer(HammerModMain.MODID + \":ItemDesichalkosHammer\", \"HammerMod-DZ_res/items/ItemDesichalkosHammer.png\");\r\n\t\tItemMeutoiteHammer = new ItemMeutoiteHammer(HammerModMain.MODID + \":ItemMeutoiteHammer\", \"HammerMod-DZ_res/items/ItemMeutoiteHammer.png\");\r\n\t\tItemEximiteHammer = new ItemEximiteHammer(HammerModMain.MODID + \":ItemEximiteHammer\", \"HammerMod-DZ_res/items/ItemEximiteHammer.png\");\r\n\t\tItemMidasiumHammer = new ItemMidasiumHammer(HammerModMain.MODID + \":ItemMidasiumHammer\", \"HammerMod-DZ_res/items/ItemMidasiumHammer.png\");\r\n\t\tItemSanguiniteHammer = new ItemSanguiniteHammer(HammerModMain.MODID + \":ItemSanguiniteHammer\", \"HammerMod-DZ_res/items/ItemSanguiniteHammer.png\");\r\n\t\tItemInolashiteHammer = new ItemInolashiteHammer(HammerModMain.MODID + \":ItemInolashiteHammer\", \"HammerMod-DZ_res/items/ItemInolashiteHammer.png\");\r\n\t\tItemVulcaniteHammer = new ItemVulcaniteHammer(HammerModMain.MODID + \":ItemVulcaniteHammer\", \"HammerMod-DZ_res/items/ItemVulcaniteHammer.png\");\r\n\t\tItemLemuriteHammer = new ItemLemuriteHammer(HammerModMain.MODID + \":ItemLemuriteHammer\", \"HammerMod-DZ_res/items/ItemLemuriteHammer.png\");\r\n\t\tItemAmordrineHammer = new ItemAmordrineHammer(HammerModMain.MODID + \":ItemAmordrineHammer\", \"HammerMod-DZ_res/items/ItemAmordrineHammer.png\");\r\n\t\tItemCeruclaseHammer = new ItemCeruclaseHammer(HammerModMain.MODID + \":ItemCeruclaseHammer\", \"HammerMod-DZ_res/items/ItemCeruclaseHammer.png\");\r\n\t\tItemKalendriteHammer = new ItemKalendriteHammer(HammerModMain.MODID + \":ItemKalendriteHammer\", \"HammerMod-DZ_res/items/ItemKalendriteHammer.png\");\r\n\t\tItemVyroxeresHammer = new ItemVyroxeresHammer(HammerModMain.MODID + \":ItemVyroxeresHammer\", \"HammerMod-DZ_res/items/ItemVyroxeresHammer.png\");\r\n\t\tItemCarmotHammer = new ItemCarmotHammer(HammerModMain.MODID + \":ItemCarmotHammer\", \"HammerMod-DZ_res/items/ItemCarmotHammer.png\");\r\n\t\tItemTartariteHammer = new ItemTartariteHammer(HammerModMain.MODID + \":ItemTartariteHammer\", \"HammerMod-DZ_res/items/ItemTartariteHammer.png\");\r\n\t\tItemAtlarusHammer = new ItemAtlarusHammer(HammerModMain.MODID + \":ItemAtlarusHammer\", \"HammerMod-DZ_res/items/ItemAtlarusHammer.png\");\r\n\t\tItemAstralHammer = new ItemAstralHammer(HammerModMain.MODID + \":ItemAstralHammer\", \"HammerMod-DZ_res/items/ItemAstralHammer.png\");\r\n\t\tItemCelenegilHammer = new ItemCelenegilHammer(HammerModMain.MODID + \":ItemCelenegilHammer\", \"HammerMod-DZ_res/items/ItemCelenegilHammer.png\");\r\n\t\tItemAredriteHammer = new ItemAredriteHammer(HammerModMain.MODID + \":ItemAredriteHammer\", \"HammerMod-DZ_res/items/ItemAredriteHammer.png\");\r\n\t\tItemOrichalcumHammer = new ItemOrichalcumHammer(HammerModMain.MODID + \":ItemOrichalcumHammer\", \"HammerMod-DZ_res/items/ItemOrichalcumHammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Hammers For YouTubers\r\n\t\t */\r\n\t\tItemPatHammer = new ItemPatHammer(HammerModMain.MODID + \":ItemPatHammer\", \"HammerMod-DZ_res/items/ItemPatHammer.png\");\r\n\t\tItemJenHammer = new ItemJenHammer(HammerModMain.MODID + \":ItemJenHammer\", \"HammerMod-DZ_res/items/ItemJenHammer.png\");\r\n\t\tItemDanTDMHammer = new ItemDanTDMHammer(HammerModMain.MODID + \":ItemDanTDMHammer\", \"HammerMod-DZ_res/items/ItemDanTDMHammer.png\");\r\n\t\tItemxJSQHammer = new ItemxJSQHammer(HammerModMain.MODID + \":ItemxJSQHammer\", \"HammerMod-DZ_res/items/ItemxJSQHammer.png\");\r\n\t\tItemSkyTheKidRSHammer = new ItemSkyTheKidRSHammer(HammerModMain.MODID + \":ItemSkyTheKidRSHammer\", \"HammerMod-DZ_res/items/ItemSkyTheKidRSHammer.png\");\r\n\t\tItemThackAttack_MCHammer = new ItemThackAttack_MCHammer(HammerModMain.MODID + \":ItemThackAttack_MCHammer\", \"HammerMod-DZ_res/items/ItemThackAttack_MCHammer.png\");\r\n\t\tItem_MrGregor_Hammer = new Item_MrGregor_Hammer(HammerModMain.MODID + \":Item_MrGregor_Hammer\", \"HammerMod-DZ_res/items/Item_MrGregor_Hammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Hammers For Twitch Streamers\r\n\t\t */\r\n\t\tItemDeeAxelJayHammer = new ItemDeeAxelJayHammer(HammerModMain.MODID + \":ItemDeeAxelJayHammer\", \"HammerMod-DZ_res/items/ItemDeeAxelJayHammer.png\");\r\n\t\tItemincapablegamerHammer = new ItemincapablegamerHammer(HammerModMain.MODID + \":ItemincapablegamerHammer\", \"HammerMod-DZ_res/items/ItemincapablegamerHammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Community Hammers\r\n\t\t */\r\n\t\tItemCryingObsidainHammer = new ItemCryingObsidainHammer(HammerModMain.MODID + \":ItemCryingObsidainHammer\", \"HammerMod-DZ_res/items/ItemCryingObsidainHammer.png\");\r\n\t\tItemMythicalHammer = new ItemMythicalHammer(HammerModMain.MODID + \":ItemMythicalHammer\", \"HammerMod-DZ_res/items/ItemMythicalHammer.png\");\r\n\t\tItemToasterHammer = new ItemToasterHammer(HammerModMain.MODID + \":ItemToasterHammer\", \"HammerMod-DZ_res/items/ItemToasterHammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Special Hammers\r\n\t\t */\r\n\t\tItemRainbowHammer = new ItemRainbowHammer(HammerModMain.MODID + \":ItemRainbowHammer\", \"HammerMod-DZ_res/items/ItemRainbowHammer.png\");\r\n\t\tItemMissingTextureHammer = new ItemMissingTextureHammer(HammerModMain.MODID + \":ItemMissingTextureHammer\", \"HammerMod-DZ_res/items/ItemMissingTextureHammer.png\");\r\n\r\n\t\tregisterItems();\r\n\t}", "private void getSynsets(HashSet<WordProvider.Word> words) {\n HashMap<String, String> synsets_map = new HashMap<>();\n for (WordProvider.Word word: words) {\n ArrayList<String> synsetList = new ArrayList<>(Arrays.asList(word.getSynsets().trim().split(\" \")));\n for (String synset_tag: synsetList)\n synsets_map.put(synset_tag, word.getPos());\n }\n // for each synset load the meanings in the background\n final Object[] params= {synsets_map};\n new FetchRows().execute(params);\n }", "void loadAll() {\n\t\tsynchronized (this) {\n\t\t\tif (isFullyLoaded) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfor (Entry<Integer, Supplier<ChunkMeta<?>>> generator : ChunkMetaFactory.getInstance()\n\t\t\t\t\t.getEmptyChunkFunctions()) {\n\t\t\t\tChunkMeta<?> chunk = generator.getValue().get();\n\t\t\t\tchunk.setChunkCoord(this);\n\t\t\t\tchunk.setPluginID(generator.getKey());\n\t\t\t\ttry {\n\t\t\t\t\tchunk.populate();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// need to catch everything here, otherwise we block the main thread forever\n\t\t\t\t\t// once it tries to read this\n\t\t\t\t\tCivModCorePlugin.getInstance().getLogger().log(Level.SEVERE, \n\t\t\t\t\t\t\t\"Failed to load chunk data\", e);\n\t\t\t\t}\n\t\t\t\taddChunkMeta(chunk);\n\t\t\t}\n\t\t\tisFullyLoaded = true;\n\t\t\tthis.notifyAll();\n\t\t}\n\t}", "public void loadAllLists(){\n }", "public void shuffleItems() {\n LoadProducts(idCategory);\n }", "public static void loadAllAdditionalCachedObjectList() {\n\n\t\t// TODO Completar cuando sea necesario.\n\n\t}", "@Override\n\tpublic void load() throws RemoteException {\n\t\tsuper.load();\n\t\t\n\t\tUriAdapter adapter = new UriAdapter(config);\n\t\tbnetMap = loadBnetMap(adapter, config.getStoreUri(), getName());\n\t\tadapter.close();\n\t\t\n\t\titemIds = bnetMap.keySet();\n\t}", "private void initialState() {\n forEach(item -> item.setInKnapsack(false));\n\n for (final Item item : this) {\n if (wouldOverpack(item)) {\n break;\n }\n item.switchIsKnapsack();\n }\n }", "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 PotCollection loadPotList(){\n SharedPreferences preferences = getSharedPreferences(SHAREDPREF_SET, MODE_PRIVATE);\n int sizeOfPotList = preferences.getInt(SHAREDPREF_ITEM_POTLIST_SIZE, 0);\n for(int i = 0; i<sizeOfPotList; i++){\n Log.i(\"serving calculator\", \"once\");\n String potName = preferences.getString(SHAREDPREF_ITEM_POTLIST_NAME+i, \"N\");\n int potWeight = preferences.getInt(SHAREDPREF_ITEM_POTLIST_WEIGHT+i, 0);\n Pot tempPot = new Pot(potName, potWeight);\n potList.addPot(tempPot);\n }\n return potList;\n }", "private static void initBaseSet() {\r\n KEYS.add(\"0\");\r\n SET.put(\"0\", new Module(new int[]{1, 1, 1, 2, 2, 1, 2, 1, 1}));\r\n KEYS.add(\"1\");\r\n SET.put(\"1\", new Module(new int[]{2, 1, 1, 2, 1, 1, 1, 1, 2}));\r\n KEYS.add(\"2\");\r\n SET.put(\"2\", new Module(new int[]{1, 1, 2, 2, 1, 1, 1, 1, 2}));\r\n KEYS.add(\"3\");\r\n SET.put(\"3\", new Module(new int[]{2, 1, 2, 2, 1, 1, 1, 1, 1}));\r\n KEYS.add(\"4\");\r\n SET.put(\"4\", new Module(new int[]{1, 1, 1, 2, 2, 1, 1, 1, 2}));\r\n KEYS.add(\"5\");\r\n SET.put(\"5\", new Module(new int[]{2, 1, 1, 2, 2, 1, 1, 1, 1}));\r\n KEYS.add(\"6\");\r\n SET.put(\"6\", new Module(new int[]{1, 1, 2, 2, 2, 1, 1, 1, 1}));\r\n KEYS.add(\"7\");\r\n SET.put(\"7\", new Module(new int[]{1, 1, 1, 2, 1, 1, 2, 1, 2}));\r\n KEYS.add(\"8\");\r\n SET.put(\"8\", new Module(new int[]{2, 1, 1, 2, 1, 1, 2, 1, 1}));\r\n KEYS.add(\"9\");\r\n SET.put(\"9\", new Module(new int[]{1, 1, 2, 2, 1, 1, 2, 1, 1}));\r\n KEYS.add(\"A\");\r\n SET.put(\"A\", new Module(new int[]{2, 1, 1, 1, 1, 2, 1, 1, 2}));\r\n KEYS.add(\"B\");\r\n SET.put(\"B\", new Module(new int[]{1, 1, 2, 1, 1, 2, 1, 1, 2}));\r\n KEYS.add(\"C\");\r\n SET.put(\"C\", new Module(new int[]{2, 1, 2, 1, 1, 2, 1, 1, 1}));\r\n KEYS.add(\"D\");\r\n SET.put(\"D\", new Module(new int[]{1, 1, 1, 1, 2, 2, 1, 1, 2}));\r\n KEYS.add(\"E\");\r\n SET.put(\"E\", new Module(new int[]{2, 1, 1, 1, 2, 2, 1, 1, 1}));\r\n KEYS.add(\"F\");\r\n SET.put(\"F\", new Module(new int[]{1, 1, 2, 1, 2, 2, 1, 1, 1}));\r\n KEYS.add(\"G\");\r\n SET.put(\"G\", new Module(new int[]{1, 1, 1, 1, 1, 2, 2, 1, 2}));\r\n KEYS.add(\"H\");\r\n SET.put(\"H\", new Module(new int[]{2, 1, 1, 1, 1, 2, 2, 1, 1}));\r\n KEYS.add(\"I\");\r\n SET.put(\"I\", new Module(new int[]{1, 1, 2, 1, 1, 2, 2, 1, 1}));\r\n KEYS.add(\"J\");\r\n SET.put(\"J\", new Module(new int[]{1, 1, 1, 1, 2, 2, 2, 1, 1}));\r\n KEYS.add(\"K\");\r\n SET.put(\"K\", new Module(new int[]{2, 1, 1, 1, 1, 1, 1, 2, 2}));\r\n KEYS.add(\"L\");\r\n SET.put(\"L\", new Module(new int[]{1, 1, 2, 1, 1, 1, 1, 2, 2}));\r\n KEYS.add(\"M\");\r\n SET.put(\"M\", new Module(new int[]{2, 1, 2, 1, 1, 1, 1, 2, 1}));\r\n KEYS.add(\"N\");\r\n SET.put(\"N\", new Module(new int[]{1, 1, 1, 1, 2, 1, 1, 2, 2}));\r\n KEYS.add(\"O\");\r\n SET.put(\"O\", new Module(new int[]{2, 1, 1, 1, 2, 1, 1, 2, 1}));\r\n KEYS.add(\"P\");\r\n SET.put(\"P\", new Module(new int[]{1, 1, 2, 1, 2, 1, 1, 2, 1}));\r\n KEYS.add(\"Q\");\r\n SET.put(\"Q\", new Module(new int[]{1, 1, 1, 1, 1, 1, 2, 2, 2}));\r\n KEYS.add(\"R\");\r\n SET.put(\"R\", new Module(new int[]{2, 1, 1, 1, 1, 1, 2, 2, 1}));\r\n KEYS.add(\"S\");\r\n SET.put(\"S\", new Module(new int[]{1, 1, 2, 1, 1, 1, 2, 2, 1}));\r\n KEYS.add(\"T\");\r\n SET.put(\"T\", new Module(new int[]{1, 1, 1, 1, 2, 1, 2, 2, 1}));\r\n KEYS.add(\"U\");\r\n SET.put(\"U\", new Module(new int[]{2, 2, 1, 1, 1, 1, 1, 1, 2}));\r\n KEYS.add(\"V\");\r\n SET.put(\"V\", new Module(new int[]{1, 2, 2, 1, 1, 1, 1, 1, 2}));\r\n KEYS.add(\"W\");\r\n SET.put(\"W\", new Module(new int[]{2, 2, 2, 1, 1, 1, 1, 1, 1}));\r\n KEYS.add(\"X\");\r\n SET.put(\"X\", new Module(new int[]{1, 2, 1, 1, 2, 1, 1, 1, 2}));\r\n KEYS.add(\"Y\");\r\n SET.put(\"Y\", new Module(new int[]{2, 2, 1, 1, 2, 1, 1, 1, 1}));\r\n KEYS.add(\"Z\");\r\n SET.put(\"Z\", new Module(new int[]{1, 2, 2, 1, 2, 1, 1, 1, 1}));\r\n KEYS.add(\"-\");\r\n SET.put(\"-\", new Module(new int[]{1, 2, 1, 1, 1, 1, 2, 1, 2}));\r\n KEYS.add(\".\");\r\n SET.put(\".\", new Module(new int[]{2, 2, 1, 1, 1, 1, 2, 1, 1}));\r\n KEYS.add(\" \");\r\n SET.put(\" \", new Module(new int[]{1, 2, 2, 1, 1, 1, 2, 1, 1}));\r\n KEYS.add(\"$\");\r\n SET.put(\"$\", new Module(new int[]{1, 2, 1, 2, 1, 2, 1, 1, 1}));\r\n KEYS.add(\"/\");\r\n SET.put(\"/\", new Module(new int[]{1, 2, 1, 2, 1, 1, 1, 2, 1}));\r\n KEYS.add(\"+\");\r\n SET.put(\"+\", new Module(new int[]{1, 2, 1, 1, 1, 2, 1, 2, 1}));\r\n KEYS.add(\"%\");\r\n SET.put(\"%\", new Module(new int[]{1, 1, 1, 2, 1, 2, 1, 2, 1}));\r\n }", "public void addItems() {\r\n\t\tproductSet.add(new FoodItems(1000, \"maggi\", 12.0, 100, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1001, \"Pulses\", 55.0, 50, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1004, \"Meat\", 101.53, 5, new Date(), new Date(), \"no\"));\r\n\t\tproductSet.add(new FoodItems(1006, \"Jelly\", 30.0, 73, new Date(), new Date(), \"no\"));\r\n\t\t\r\n\t\tproductSet.add(new Apparels(1005, \"t-shirt\", 1000.0, 10, \"small\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1002, \"sweater\", 2000.0, 5,\"medium\", \"woolen\"));\r\n\t\tproductSet.add(new Apparels(1003, \"cardigan\", 1001.53,22, \"large\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1007, \"shirt\", 500.99, 45,\"large\",\"woolen\"));\r\n\t\t\r\n\t\tproductSet.add(new Electronics(1010, \"tv\", 100000.0, 13, 10));\r\n\t\tproductSet.add(new Electronics(1012, \"mobile\", 20000.0, 20,12));\r\n\t\tproductSet.add(new Electronics(1013, \"watch\", 1101.53,50, 5));\r\n\t\tproductSet.add(new Electronics(1009, \"headphones\", 300.0, 60,2));\r\n\t\t\r\n\t}", "private List<Entity> getLoadableEntities() { \n ArrayList<Entity> choices = new ArrayList<Entity>();\n // If current entity is null, nothing to do\n if (ce() == null) {\n return choices;\n }\n List<Entity> entities = clientgui.getClient().getGame()\n .getEntitiesVector();\n for (Entity other : entities) { \n if (other.isSelectableThisTurn() && ce().canLoad(other, false)) {\n choices.add(other);\n }\n }\n return choices;\n }", "public void removeAllPartOfSet() {\r\n\t\tBase.removeAll(this.model, this.getResource(), PARTOFSET);\r\n\t}", "private void loadLists() {\n loadSavedCourses();\n loadSavedSchedules();\n }", "private void loadToChoice() {\n\t\tfor(Genre genre : genreList) {\n\t\t\tuploadPanel.getGenreChoice().add(genre.getName());\n\t\t}\n\t}", "private void loadItem(String path) {\r\n assert (itemManager != null);\r\n \r\n try {\r\n Scanner sc = new Scanner(new File(path));\r\n while (sc.hasNext()) {\r\n int id = sc.nextInt();\r\n int x = sc.nextInt();\r\n int y = sc.nextInt();\r\n switch (id) {\r\n case 0: itemManager.addItem(Item.keyItem.createNew(x * Tile.TILEWIDTH, \r\n y * Tile.TILEHEIGHT)); \r\n break;\r\n case 1: itemManager.addItem(Item.candleItem.createNew(x * Tile.TILEWIDTH, \r\n y * Tile.TILEHEIGHT)); \r\n break;\r\n case 2: itemManager.addItem(Item.knifeItem.createNew(x * Tile.TILEWIDTH, \r\n y * Tile.TILEHEIGHT)); \r\n break;\r\n case 3: itemManager.addItem(Item.ghostAshItem.createNew(x * Tile.TILEWIDTH, \r\n y * Tile.TILEHEIGHT)); \r\n break;\r\n case 4: itemManager.addItem(Item.goldItem.createNew(x * Tile.TILEWIDTH, \r\n y * Tile.TILEHEIGHT)); \r\n break;\r\n default: itemManager.addItem(Item.ghostAshItem.createNew(x * Tile.TILEWIDTH, \r\n y * Tile.TILEHEIGHT)); \r\n break;\r\n }\r\n }\r\n sc.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "private void loadCachedLabTestCollection()\n {\n cachedFacilityList = new HashMap<Object,Object>();\n SRTOrderedTestDAOImpl dao = new SRTOrderedTestDAOImpl();\n cachedLabTest= (ArrayList<Object> ) convertToSRTLabTestDT(dao.getAllOrderedTests());\n\n //load cachedFacilityList\n Iterator<Object> iter = cachedLabTest.iterator();\n while(iter.hasNext()){\n SRTLabTestDT srtLabTestDT = (SRTLabTestDT)iter.next();\n if(srtLabTestDT.getLaboratoryId()!= null ){\n this.addToCachedFacilityList(srtLabTestDT.getLaboratoryId(),srtLabTestDT);\n }// end if labId !=null\n }//end while\n\n }", "public void takeItemsFromChest() {\r\n currentRoom = player.getCurrentRoom();\r\n for (int i = 0; i < currentRoom.getChest().size(); i++) {\r\n player.addToInventory(currentRoom.getChest().get(i));\r\n currentRoom.getChest().remove(i);\r\n }\r\n\r\n }", "private void populate(Set<Integer> set) {\n for (int i = 0; i < 100; i++) {\n if(Time.now() % 3 == 0) {\n set.add(i);\n }\n }\n }", "@Override\n public void loadData(final List<Integer> allCommerceItemIds) {\n if (allCommerceItemIds.size() == 0) {\n return;\n }\n int pos = 0;\n // initiates the loading of items and their price via REST. Since each item must\n // be loaded in a single request, this loop loads the items in chunks (otherwise\n // we might have too many requests at once)\n while (pos < allCommerceItemIds.size()) {\n try {\n Log.i(TAG, \"loaded items: \" + mDatabaseAccess.itemsDAO().selectItemCount());\n Log.i(TAG, \"loaded item prices: \" +\n mDatabaseAccess.itemsDAO().selectItemPriceCount());\n // creates a \",\" separated list of item IDs for the GET parameter\n String ids = RestHelper.splitIntToGetParamList(allCommerceItemIds,\n pos, ITEM_PROCESS_SIZE);\n // all prices to the \",\" separated ID list.\n List<Price> prices = mCommerceAccess.getPricesWithWifi(ids);\n\n processPrices(prices);\n pos += ITEM_PROCESS_SIZE;\n\n // to prevent too many request at once, wait every 1000 processed items\n if (pos % ITEM_PROCESS_WAIT_COUNT == 0) {\n waitMs(TOO_MANY_REQUEST_DELAY_MS);\n }\n } catch (ResponseException ex) {\n Log.e(TAG, \"An error has occurred while trying to load the commerce data from the\" +\n \" server side!\",\n ex);\n } catch (Exception ex) {\n Log.e(TAG, \"A general failure has occurred while trying to load commerce data.\",\n ex);\n }\n }\n }", "private void setItems()\n {\n sewers.setItem(rope); \n promenade.setItem(rope);\n bridge.setItem(potion);\n tower.setItem(potion);\n throneRoomEntrance.setItem(potion);\n depths.setItem(shovel);\n crypt.setItem(shovel);\n }", "@Override\r\n @Test\r\n @ConditionalIgnore(condition = IgnoreTreeUncontained.class)\r\n public void testSelectedOnSetItemsWithUncontained() {\r\n TreeItem uncontained = createItem(\"uncontained\");\r\n // prepare state\r\n getSelectionModel().select(uncontained);\r\n assertEquals(\"sanity: having uncontained selectedItem\", uncontained, getSelectedItem());\r\n assertEquals(\"sanity: no selected index\", -1, getSelectedIndex());\r\n // make uncontained part of the items by replacing old items\r\n ObservableList copy = FXCollections.observableArrayList(items);\r\n int insertIndex = 3;\r\n copy.add(insertIndex, uncontained);\r\n setAllItems(copy);\r\n assertEquals(\"sanity: selectedItem unchanged\", uncontained, getSelectedItem());\r\n assertEquals(\"selectedIndex updated\", insertIndex, getSelectedIndex());\r\n }", "@SuppressWarnings(\"unchecked\")\r\n @Override\r\n public List<Item> loadItems(final int startIndex, final int count) {\r\n List<Item> items = new ArrayList<Item>();\r\n if (count <= 0) {\r\n return items;\r\n }\r\n \r\n TypedQuery<Tuple> selectQuery = getSelectQuery();\r\n adjustRetrievalBoundaries(selectQuery, startIndex, count);\r\n logger.debug(\">>>>> first: {}, count: {} \", selectQuery.getFirstResult(), selectQuery.getMaxResults());\r\n\t\tList<?> entities = selectQuery.getResultList();\r\n\t\tlogger.debug(\"<<<<<\");\r\n \r\n Object keyPropertyId = keyToIdMapper.getKeyPropertyId();\r\n int curCount = 0;\r\n for (Object entity : entities) {\r\n T curEntity = (T) ((Tuple) entity).get(0);\r\n Item item = toItem(curEntity);\r\n if (queryDefinition.isDetachedEntities()) {\r\n entityManager.detach(curEntity);\r\n }\r\n items.add(item);\r\n addToMapping(item, keyPropertyId, startIndex+curCount);\r\n //logger.debug(\"adding {} at index {}\",item, startIndex+curCount);\r\n curCount++;\r\n }\r\n return items;\r\n }", "Set<Art> getAllArt();", "private void loadShip() {\n cargo.add(new Water());\n cargo.add(new Water());\n cargo.add(new Water());\n cargo.add(new Furs());\n cargo.add(new Ore());\n cargo.add(new Food());\n numOfGoods = cargo.size();\n }", "@BeforeClass\n\tpublic static void generatingItems() {\n\t\tfor (Item i : allItems) {\n\t\t\tif (i.getType().equals(\"spores engine\")) {\n\t\t\t\titem4 = i;\n\t\t\t}\n\t\t}\n\t\tltsTest = new LongTermStorage();\n\t\tltsTest1 = new LongTermStorage();\n\t}", "@Override\n void collectMixedSectionItems(MixedSectionCollection mixedItems) {\n assert false;\n }", "public void setLoadItems(String borrowedFileName) \n\t{\n\t\trecordCount = RESET_VALUE;\n\n\t\ttry \n\t\t{\n\t\t\tScanner infile = new Scanner(new FileInputStream(borrowedFileName));\n\n\t\t\twhile(infile.hasNext() == true && recordCount < MAX_ITEMS) \n\t\t\t{\n\t\t\t\titemIDs[recordCount] = infile.nextInt();\n\t\t\t\titemNames[recordCount] = infile.next(); \n\t\t\t\titemPrices[recordCount] = infile.nextDouble(); \n\t\t\t\tinStockCounts[recordCount] = infile.nextInt();\n\t\t\t\trecordCount++;\n\t\t\t}\n\n\t\t\tinfile.close();\n\n\t\t\t//sort parallel arrays by itemID\n\t\t\tsetBubbleSort();\n\n\t\t}//END try\n\n\t\tcatch(IOException ex) \n\t\t{\n\t\t\trecordCount = NOT_FOUND;\n\t\t}\n\t}", "public void withdrawAll() {\r\n for (int i = 0; i < container.capacity(); i++) {\r\n Item item = container.get(i);\r\n if (item == null) {\r\n continue;\r\n }\r\n int amount = owner.getInventory().getMaximumAdd(item);\r\n if (item.getCount() > amount) {\r\n item = new Item(item.getId(), amount);\r\n container.remove(item, false);\r\n owner.getInventory().add(item, false);\r\n } else {\r\n container.replace(null, i, false);\r\n owner.getInventory().add(item, false);\r\n }\r\n }\r\n container.update();\r\n owner.getInventory().update();\r\n }", "@Override\r\n @Test\r\n @ConditionalIgnore(condition = IgnoreTreeUncontained.class)\r\n public void testSelectedOnSetItemsWithoutUncontained() {\r\n TreeItem uncontained = createItem(\"uncontained\");\r\n // prepare state\r\n getSelectionModel().select(uncontained);\r\n assertEquals(\"sanity: having uncontained selectedItem\", uncontained, getSelectedItem());\r\n assertEquals(\"sanity: no selected index\", -1, getSelectedIndex());\r\n // make uncontained part of the items by replacing old items\r\n ObservableList copy = FXCollections.observableArrayList(items);\r\n int insertIndex = 3;\r\n copy.add(insertIndex, createItem(\"anything\"));\r\n setAllItems(copy);\r\n assertEquals(\"sanity: selectedItem unchanged\", uncontained, getSelectedItem());\r\n assertEquals(\"selectedIndex unchanged\", -1, getSelectedIndex());\r\n }", "@Override\n public void load(AllContainer con) {\n addMultipleChoice(con);\n addFillBlank(con);\n }", "private Itemset[] getItemsets() {\n\t\t\treturn frequentItemsets.keySet().toArray(new Itemset[frequentItemsets.size()]);\n\t\t}", "private void getItems() {\n getComputers();\n getPrinters();\n }", "private Runnable loadItems() {\n File file = new File(getFilesDir(), \"data.txt\");\n\n try {\n // Clears and adds appropriate items\n this._items.clear();\n this._items.addAll(FileUtils.readLines(file, Charset.defaultCharset()));\n } catch (IOException e) {\n Log.e(\"MainActivity\", \"Error reading items\", e);\n }\n\n // Return a callback function for saving items\n return () -> {\n try {\n FileUtils.writeLines(file, this._items);\n } catch (IOException e) {\n Log.e(\"MainActivity\", \"Error writing items\", e);\n }\n };\n }", "public void setAllLoaded(boolean value) {\n this.allLoaded = value;\n }", "@Test\n\tpublic void testLoadEach() {\n\t\tCollection<QuestForUser> quests = \n\t\t\tqfuRepo.findByUserIdAndAll(\n\t\t\t\tuserId,\n\t\t\t\tnew Director<QuestForUserRepository.QuestForUserConditionBuilder>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void apply(QuestForUserConditionBuilder builder) {\n\t\t\t\t\t\tbuilder.complete(new Director<IBooleanConditionBuilder>() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void apply(IBooleanConditionBuilder builder) {\n\t\t\t\t\t\t\t\tbuilder.isTrue();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}).questId(new Director<IIntConditionBuilder>() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void apply(IIntConditionBuilder builder) {\n\t\t\t\t\t\t\t\tbuilder.inNumberCollection(questIds);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t);\n\t\t\tlog.info(\"Found {} quests\", quests.size());\n\t\tAssert.assertTrue(\"Found all quests\", quests.size() == questIds.size());\n\t}", "@Override public Set<String> forcedItems() {\n Set<String> forcedItems = new HashSet<>(first.forcedItems());\n forcedItems.addAll(next.forcedItems());\n return forcedItems;\n }", "public void load(ArrayList<String> pieces) {\n\tthis.pieces = pieces;\n\tupdate();\n }", "public void unloadItems() {\n if (dishwasherState == State.ON) {\n throw new InvalidStateException(\"The washing cycle hasn't been run yet\");\n } else if (dishwasherState == State.RUNNING) {\n throw new InvalidStateException(\"Please wait until washing cycle is finished\");\n }\n items = 0;\n dishwasherState = State.ON;\n System.out.println(\"The dishwasher is ready to go\");\n }", "public void loadMap() {\n\t\tchests.clear();\r\n\t\t// Load the chests for the map\r\n\t\tchestsLoaded = false;\r\n\t\t// Load data asynchronously\r\n\t\tg.p.getServer().getScheduler().runTaskAsynchronously(g.p, new AsyncLoad());\r\n\t}", "public Item() {this.users = new HashSet<>();}", "public static void loadTiles() {\n\t\tTILE_SETS.put(\"grass\", TileSet.loadTileSet(\"plains\"));\n\t}", "public RandomizedSet() {\n m = new HashMap<>();\n l = new ArrayList<>();\n }", "public void init() {\n\t\tlong startTime = System.currentTimeMillis();\n\t\t\n\t\tfor(BusinessCategoryList categoryList : BusinessCategoryList.values()) {\n\t\t\tString[] names = categoryList.getValues().split(\",\");\n\t\t\tfor(String name : names) {\n\t\t\t\tget(name);\n\t\t\t}\n\t\t}\n\t\t\n\t\tlog.debug(\"Dirty hack completed in {} ms.\", System.currentTimeMillis() - startTime);\n\t}", "@Override\r\n\tpublic List<Item> getAllHomework() {\n\t\t\r\n\t\treturn itemdao.find(\"from Item\");\r\n\t}", "private void cargarSitiosLibres() {\r\n\t\tList<ArrSitioPeriodo> listado = mngRes.sitiosLibresPorPeriodoGenero(periodo.getPrdId(),\r\n\t\t\t\tgetEstudiante().getMatGenero());\r\n\t\thashSitios = new HashMap<String, ArrSitioPeriodo>();\r\n\t\tsitiosLibres = new ArrayList<SelectItem>();\r\n\t\tif (listado != null && !listado.isEmpty()) {\r\n\t\t\tgetSitiosLibres().add(new SelectItem(0, \"Seleccionar\"));\r\n\t\t\tfor (ArrSitioPeriodo sitio : listado) {\r\n\t\t\t\tgetSitiosLibres().add(new SelectItem(sitio.getId().getArtId(), sitio.getSitNombre()));\r\n\t\t\t\thashSitios.put(sitio.getId().getArtId(), sitio);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void loadRounds ()\n {\n for (Integer roundId : selectedRounds) {\n log.info(\"Loading Round \" + roundId);\n }\n log.info(\"End of list of rounds that are loaded\");\n\n Scheduler scheduler = Scheduler.getScheduler();\n scheduler.loadRounds(selectedRounds);\n }", "private void readItems() {\n // open file\n File file = getFilesDir();\n File todoFile = new File(file, \"scores.txt\");\n // try to find items to add\n try {\n items = new ArrayList<>(FileUtils.readLines(todoFile));\n } catch (IOException e) {\n items = new ArrayList<>();\n }\n }", "public void loadMeals(){\n //Create a service to load all the Meals / Recipes from the database in a background thread\n LoadAllRecipesService service = new LoadAllRecipesService();\n\n //When the service is successful set the returned Recipes / Meals to various comboBoxes\n service.setOnSucceeded(new EventHandler<WorkerStateEvent>() {\n @Override\n public void handle(WorkerStateEvent workerStateEvent) {\n recipesFromDatabase = service.getValue();\n comboMealSelection.setItems(recipesFromDatabase);\n //A test\n breakfastCombo.setItems(recipesFromDatabase);\n lunchCombo.setItems(recipesFromDatabase);\n dinnerCombo.setItems(recipesFromDatabase);\n }\n });\n\n\n if (service.getState() == Service.State.SUCCEEDED){\n service.reset();\n service.start();\n } else if (service.getState() == Service.State.READY){\n service.start();\n }\n }", "public Set<Goal> loadGoals();", "@Override\n protected void findBootLayerAtomosContents(Set<AtomosContentBase> result)\n {\n }", "private void populateEntitiesLists() {\n\t\tfor (StaticEntity entity : ((ClientTiledMap) map).staticEntities) {\n\t\t\tregisterStaticEntity(entity);\n\t\t}\n\t}", "private void refreshPlayerList() {\n List<MarketItem> items = new ArrayList<>();\n EntityRef player = localPlayer.getCharacterEntity();\n for (int i = 0; i < inventoryManager.getNumSlots(player); i++) {\n EntityRef entity = inventoryManager.getItemInSlot(player, i);\n\n if (entity.getParentPrefab() != null) {\n MarketItem item;\n\n if (entity.hasComponent(BlockItemComponent.class)) {\n String itemName = entity.getComponent(BlockItemComponent.class).blockFamily.getURI().toString();\n item = marketItemRegistry.get(itemName, 1);\n } else {\n item = marketItemRegistry.get(entity.getParentPrefab().getName(), 1);\n }\n\n items.add(item);\n }\n }\n\n tradingScreen.setPlayerItems(items);\n }", "private Set<BoardObject> createWeapons(){\r\n\t\tSet<BoardObject> weaps = new HashSet<BoardObject>();\r\n\r\n\t\tweaps.add(new BoardObject(getImage(\"xboardObjects/revolver1.png\"), new Coordinate(3,12), \"Revolver\"));\r\n\t\tweaps.add(new BoardObject(getImage(\"xboardObjects/candlestick3.png\"), new Coordinate(2,3), \"Candlestick\"));\r\n\t\tweaps.add(new BoardObject(getImage(\"xboardObjects/knife1.png\"), new Coordinate(12,3), \"Knife\"));\r\n\t\tweaps.add(new BoardObject(getImage(\"xboardObjects/leadpipe1.png\"), new Coordinate(20,3), \"LeadPipe\"));\r\n\t\tweaps.add(new BoardObject(getImage(\"xboardObjects/rope1.png\"), new Coordinate(20,10), \"Rope\"));\r\n\t\tweaps.add(new BoardObject(getImage(\"xboardObjects/spanner1.png\"), new Coordinate(20,16), \"Wrench\"));\r\n\t\treturn weaps;\r\n\t}", "public void loadList () {\r\n ArrayList<String> list = fileManager.loadWordList();\r\n if (list != null) {\r\n for (String s : list) {\r\n addWord(s);\r\n }\r\n }\r\n }", "private Object readResolve() {\n\t\titemsArray = new ItemDefinition[256];\n\t\tfor (ItemDefinition def : itemsList) {\n\t\t\titemsArray[def.getId()] = def;\n\t\t}\n\t\treturn this;\n\t}", "@Override\n public boolean areAllItemsEnabled() {\n return false;\n }", "public static void main(String[] args) throws IOException {\n\n ItemSet items = ItemSet.load(\"c:/temp/items.txt\");\n System.out.println(items);\n }", "private void populateStations() throws Exception{\t\n\t\t\n\t\tTreeSet<String> set = new TreeSet<String>();\n\t\tif(quotList != null){\t\t\t\n\t\t\tfor(int i = 0; i < quotList.length; i++){\t\t\t\t\n\t\t\t\tset.add(quotList[i].getStationCode());\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tIterator<String> itr = set.iterator();\n\t\t\twhile(itr.hasNext()){\n\t\t\t\tcbStation.add(itr.next());\n\t\t\t}\t\t\t\n\t\t}\t\t\n\t}", "public static List<Item> loadItems(Statement st) {\n\t\tList<Item> items = new ArrayList<>();\n\t\tString sentSQL = \"\";\n\t\ttry {\n\t\t\tsentSQL = \"select * from items\";\n\t\t\tResultSet rs = st.executeQuery(sentSQL);\n\t\t\t// Iteramos sobre la tabla result set\n\t\t\t// El metodo next() pasa a la siguiente fila, y devuelve true si hay más filas\n\t\t\twhile (rs.next()) {\n\t\t\t\tint id = rs.getInt(\"id\");\n\t\t\t\tString name = rs.getString(\"name\");\n\t\t\t\tfloat timePerUnit = rs.getFloat(\"timeperunit\");\n\t\t\t\tItem item = new Item(id, name, timePerUnit);\n\t\t\t\titems.add(item);\n\t\t\t\tlog(Level.INFO,\"Fila leida: \" + item, null);\n\t\t\t}\n\t\t\tlog(Level.INFO, \"BD consultada: \" + sentSQL, null);\n\t\t} catch (SQLException e) {\n\t\t\tlog(Level.SEVERE, \"Error en BD\\t\" + sentSQL, e);\n\t\t\tlastError = e;\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn items;\n\t}", "private Itemsets findFirstCandidateItemsets() {\n\t\t\tItemsets candidateItemsets = new Itemsets();\n\t\t\tItemset[] frequentItemsetsArr = frequentItemsets.keySet().toArray(new Itemset[frequentItemsets.size()]);\n\t\t\t\n\t\t\tfor (int i = 0; i < frequentItemsetsArr.length - 1; i++) {\n\t\t\t\t//combine items to form candidate itemset\n\t\t\t\tfor (int j = i + 1; j < frequentItemsetsArr.length; j++) {\n\t\t\t\t\tItemset itemset1 = frequentItemsetsArr[i].getItem(0);\n\t\t\t\t\tItemset itemset2 = frequentItemsetsArr[j].getItem(0);\n\t\t\t\t\tItemset candidateItemset = itemset1;\n\t\t\t\t\tcandidateItemset.add(itemset2);\n\t\t\t\t\t\t\n\t\t\t\t\tcandidateItemsets.addCandidateItemset(candidateItemset);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn candidateItemsets;\n\t\t}", "public void processLargeInList(Set values);", "public MyMultiset() {\n\t\tthis.set = new HashSet<Node>();\n\t}" ]
[ "0.67307836", "0.6126638", "0.6125383", "0.5920818", "0.58209366", "0.5782884", "0.57758635", "0.57325554", "0.5683893", "0.56796503", "0.5633764", "0.56219345", "0.5611387", "0.5584559", "0.55762285", "0.55724025", "0.55463624", "0.5544273", "0.5535166", "0.55207485", "0.55167127", "0.54892665", "0.5489023", "0.54889935", "0.54887533", "0.5486228", "0.5481746", "0.5459423", "0.5452081", "0.5440186", "0.5427114", "0.5387798", "0.5385275", "0.53724635", "0.5369334", "0.5347923", "0.53470284", "0.5321422", "0.53005356", "0.52885914", "0.5288502", "0.5287048", "0.52859205", "0.5270875", "0.52657384", "0.52631825", "0.5256557", "0.5237516", "0.5236613", "0.52340084", "0.5233951", "0.5232527", "0.52317023", "0.52307844", "0.5230418", "0.5229853", "0.52254397", "0.5225253", "0.52180845", "0.52110237", "0.5210018", "0.52071834", "0.52064055", "0.5200699", "0.51992893", "0.51932746", "0.51931787", "0.5189869", "0.51827294", "0.5167512", "0.51645344", "0.51394904", "0.5132284", "0.5131475", "0.51277214", "0.511894", "0.5110505", "0.51092833", "0.5106606", "0.5104321", "0.5099785", "0.5096369", "0.50901634", "0.5082595", "0.50804484", "0.5079926", "0.5075874", "0.5075226", "0.50679153", "0.5057729", "0.5055501", "0.5051115", "0.50391656", "0.50380355", "0.5036785", "0.5022745", "0.50210166", "0.5017221", "0.5016647", "0.5011363" ]
0.5357629
35
This is the default constructor
public Sapphiron() { this.output = new ByteArrayOutputStream(); System.setOut(new PrintStream(this.output)); this.currentTest = new Hashtable<String, AnimalStatistics>(); this.enquirers = new Vector<IEnquirerComponent>(); this.enquirerNames = new Vector<String>(); this.jComboBoxListeners = new LinkedList<ActionListener>(); this.base = new BaseConhecimento(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "defaultConstructor(){}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public Orbiter() {\n }", "public Pitonyak_09_02() {\r\n }", "public PSRelation()\n {\n }", "public Pasien() {\r\n }", "private Instantiation(){}", "public Tbdtokhaihq3() {\n super();\n }", "public Anschrift() {\r\n }", "public Aanbieder() {\r\n\t\t}", "public CyanSus() {\n\n }", "public Chauffeur() {\r\n\t}", "public Curso() {\r\n }", "public CSSTidier() {\n\t}", "public Chick() {\n\t}", "public Coche() {\n super();\n }", "void DefaultConstructor(){}", "public Cohete() {\n\n\t}", "private Default()\n {}", "public Tbdcongvan36() {\n super();\n }", "public Generic(){\n\t\tthis(null);\n\t}", "public Lanceur() {\n\t}", "public Mannschaft() {\n }", "public Demo() {\n\t\t\n\t}", "public AntrianPasien() {\r\n\r\n }", "public Achterbahn() {\n }", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "public SgaexpedbultoImpl()\n {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public Mitarbeit() {\r\n }", "public Odontologo() {\n }", "public Supercar() {\r\n\t\t\r\n\t}", "public Trening() {\n }", "public SlanjePoruke() {\n }", "public Phl() {\n }", "public Basic() {}", "public Ov_Chipkaart() {\n\t\t\n\t}", "public _355() {\n\n }", "public Parser()\n {\n //nothing to do\n }", "public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}", "public Clade() {}", "protected Asignatura()\r\n\t{}", "public Zeffit()\n {\n // TODO: initialize instance variable(s)\n }", "public Data() {\n }", "public Data() {\n }", "private Rekenhulp()\n\t{\n\t}", "public Waschbecken() {\n this(0, 0);\n }", "public Node(){\n\n\t\t}", "public EnsembleLettre() {\n\t\t\n\t}", "@Override public void init()\n\t\t{\n\t\t}", "private TMCourse() {\n\t}", "public mapper3c() { super(); }", "public Libro() {\r\n }", "public ExamMB() {\n }", "protected Betaling()\r\n\t{\r\n\t\t\r\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "public Main() {\n\t\tsuper();\n\t}", "public Catelog() {\n super();\n }", "public Factory() {\n\t\tsuper();\n\t}", "public Data() {\n \n }", "public CMN() {\n\t}", "public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }", "private Main() {\n\n super();\n }", "public Magazzino() {\r\n }", "public ChaCha()\n\t{\n\t\tsuper();\n\t}", "public RngObject() {\n\t\t\n\t}", "public Alojamiento() {\r\n\t}", "public Excellon ()\n {}", "protected GraphNode() {\n }", "protected GraphNode() {\n }", "public SimOI() {\n super();\n }", "private Converter()\n\t{\n\t\tsuper();\n\t}", "public JSFOla() {\n }", "public Node() {\n }", "private Node() {\n\n }", "@Override\r\n\tpublic void init() {}", "public TTau() {}", "public Job() {\n\t\t\t\n\t\t}", "public AirAndPollen() {\n\n\t}", "public Soil()\n\t{\n\n\t}", "@Override\n public void init() {}", "public TennisCoach () {\n\t\tSystem.out.println(\">> inside default constructor.\");\n\t}", "public Livro() {\n\n\t}", "public Data() {}", "public Connection() {\n\t\t\n\t}", "public Goodsinfo() {\n super();\n }", "public DetArqueoRunt () {\r\n\r\n }", "public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }", "public Book() {\n\t\t// Default constructor\n\t}", "public Tigre() {\r\n }", "public Carrinho() {\n\t\tsuper();\n\t}", "public Content() {\n\t}", "public Rol() {}", "public Node() {\r\n\t}", "public Node() {\r\n\t}", "private Sequence() {\n this(\"<Sequence>\", null, null);\n }", "public Job() {\r\n\t\tSystem.out.println(\"Constructor\");\r\n\t}", "public Node() {\n\t}", "private NfkjBasic()\n\t\t{\n\t\t\t\n\t\t}" ]
[ "0.85315686", "0.8274922", "0.75848484", "0.74773645", "0.7456932", "0.7447545", "0.7443651", "0.7441528", "0.7410326", "0.74039483", "0.7391621", "0.7377517", "0.73672515", "0.7351425", "0.73242426", "0.7324195", "0.73132765", "0.73016304", "0.7279156", "0.7262864", "0.72578615", "0.7245583", "0.7229312", "0.72281915", "0.7211734", "0.72051984", "0.7185298", "0.7184384", "0.71790564", "0.7176436", "0.7175265", "0.71689993", "0.7151911", "0.7143988", "0.714167", "0.71416116", "0.71346617", "0.71331203", "0.7115635", "0.7104915", "0.7104565", "0.71001244", "0.7098205", "0.70919895", "0.70840013", "0.70816535", "0.70816535", "0.707803", "0.70770115", "0.70722747", "0.70719784", "0.7071146", "0.7067329", "0.7064678", "0.70623577", "0.7048247", "0.70420784", "0.70372427", "0.7030708", "0.7029412", "0.7029382", "0.7029282", "0.7024578", "0.7024181", "0.7022025", "0.70202535", "0.7017857", "0.7017089", "0.7014772", "0.7008654", "0.70085454", "0.70085454", "0.70051914", "0.7003109", "0.7000585", "0.69971156", "0.69901764", "0.6985152", "0.6983319", "0.6983309", "0.69713455", "0.6964426", "0.6964122", "0.6960143", "0.69536775", "0.6952563", "0.6951489", "0.6946712", "0.6943544", "0.69430006", "0.6937155", "0.69328207", "0.6928417", "0.69263786", "0.6925607", "0.69225854", "0.69225854", "0.69220567", "0.6916494", "0.6904696", "0.6902761" ]
0.0
-1
/ Remove listeners so they won't be triggered during the set up of the new values.
private void clearPreviousTest() { for (ActionListener al : this.jComboBoxListeners) { this.jComboBox.removeActionListener(al); } this.jComboBox.removeAllItems(); this.jTabbedPane.removeAll(); this.currentTest.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removeListeners() {\n \t\tlistenToTextChanges(false);\n \t\tfHistory.removeOperationHistoryListener(fHistoryListener);\n \t\tfHistoryListener= null;\n \t}", "protected void removeListeners() {\n }", "public void removeListeners() {\n listeners = new ArrayList<MinMaxListener>();\n listeners.add(evalFct);\n }", "protected void uninstallListeners() {\n frame.removePropertyChangeListener(propertyChangeListener);\n }", "protected void uninstallListeners() { this.tipPane.removePropertyChangeListener(this.changeListener); }", "protected void uninstallListeners() {\n spinner.removePropertyChangeListener(propertyChangeListener); }", "public void unregisterListeners(){\n listeners.clear();\n }", "protected void uninstallListeners() {\n }", "protected void uninstallListeners() {\n }", "protected void uninstallListeners() {\n\t}", "protected void removeChangeListeners() {\n\t\tif (this.getChangeListenersAdded()) {\n\t\t\tthis.removeCollectableComponentModelListeners();\n\t\t\tthis.removeAdditionalChangeListeners();\n\t\t\tthis.bChangeListenersAdded = false;\n\t\t}\n\n\t\tassert !this.getChangeListenersAdded();\n\t}", "public void resetListeners() {\n\t\tfinal ListenerSupport<AgentShutDownListener> backup = new ListenerSupport<>();\n\n\t\tgetListeners().apply(backup::add);\n\n\t\tbackup.apply(listener -> {\n\t\t\tgetListeners().remove(listener);\n\t\t});\n\t}", "public abstract void unregisterListeners();", "public void clearChangeListeners() {\n observer.clear();\n }", "void unregisterListeners();", "public void removeAllListeners()\n {\n tableModelListeners.clear();\n comboBoxModelListDataListeners.clear();\n }", "private void removeListeners()\n {\n // Enable LDAP Checkbox\n removeDirtyListener( enableLdapCheckbox );\n removeSelectionListener( enableLdapCheckbox, enableLdapCheckboxListener );\n\n // LDAP Port Text\n removeDirtyListener( ldapPortText );\n removeModifyListener( ldapPortText, ldapPortTextListener );\n\n // LDAP Address Text\n removeDirtyListener( ldapAddressText );\n removeModifyListener( ldapAddressText, ldapAddressTextListener );\n\n // LDAP NbThreads Text\n removeDirtyListener( ldapNbThreadsText );\n removeModifyListener( ldapNbThreadsText, ldapNbThreadsTextListener );\n\n // LDAP BackLogSize Text\n removeDirtyListener( ldapBackLogSizeText );\n removeModifyListener( ldapBackLogSizeText, ldapBackLogSizeTextListener );\n\n // Enable LDAPS Checkbox\n removeDirtyListener( enableLdapsCheckbox );\n removeSelectionListener( enableLdapsCheckbox, enableLdapsCheckboxListener );\n\n // LDAPS Port Text\n removeDirtyListener( ldapsPortText );\n removeModifyListener( ldapsPortText, ldapsPortTextListener );\n\n // LDAPS Address Text\n removeDirtyListener( ldapsAddressText );\n removeModifyListener( ldapsAddressText, ldapsAddressTextListener );\n\n // LDAPS NbThreads Text\n removeDirtyListener( ldapsNbThreadsText );\n removeModifyListener( ldapsNbThreadsText, ldapsNbThreadsTextListener );\n\n // LDAPS BackLogSize Text\n removeDirtyListener( ldapsBackLogSizeText );\n removeModifyListener( ldapsBackLogSizeText, ldapsBackLogSizeTextListener );\n \n // Enable wantClientAuth Checkbox\n removeDirtyListener( wantClientAuthCheckbox );\n removeSelectionListener( wantClientAuthCheckbox, wantClientAuthListener );\n\n // Enable needClientAuth Checkbox\n removeDirtyListener( needClientAuthCheckbox );\n removeSelectionListener( needClientAuthCheckbox, needClientAuthListener );\n\n // Auth Mechanisms Simple Checkbox\n removeDirtyListener( authMechSimpleCheckbox );\n removeSelectionListener( authMechSimpleCheckbox, authMechSimpleCheckboxListener );\n\n // Auth Mechanisms CRAM-MD5 Checkbox\n removeDirtyListener( authMechCramMd5Checkbox );\n removeSelectionListener( authMechCramMd5Checkbox, authMechCramMd5CheckboxListener );\n\n // Auth Mechanisms DIGEST-MD5 Checkbox\n removeDirtyListener( authMechDigestMd5Checkbox );\n removeSelectionListener( authMechDigestMd5Checkbox, authMechDigestMd5CheckboxListener );\n\n // Auth Mechanisms GSSAPI Checkbox\n removeDirtyListener( authMechGssapiCheckbox );\n removeSelectionListener( authMechGssapiCheckbox, authMechGssapiCheckboxListener );\n\n // Auth Mechanisms NTLM Checkbox\n removeDirtyListener( authMechNtlmCheckbox );\n removeSelectionListener( authMechNtlmCheckbox, authMechNtlmCheckboxListener );\n removeModifyListener( authMechNtlmText, authMechNtlmTextListener );\n\n // Auth Mechanisms NTLM Text\n removeDirtyListener( authMechNtlmText );\n removeModifyListener( authMechNtlmText, authMechNtlmTextListener );\n\n // Auth Mechanisms GSS SPNEGO Checkbox\n removeDirtyListener( authMechGssSpnegoCheckbox );\n removeSelectionListener( authMechGssSpnegoCheckbox, authMechGssSpnegoCheckboxListener );\n removeModifyListener( authMechGssSpnegoText, authMechGssSpnegoTextListener );\n\n // Auth Mechanisms GSS SPNEGO Text\n removeDirtyListener( authMechGssSpnegoText );\n removeModifyListener( authMechGssSpnegoText, authMechGssSpnegoTextListener );\n\n // Keystore File Text\n removeDirtyListener( keystoreFileText );\n removeModifyListener( keystoreFileText, keystoreFileTextListener );\n\n // Keystore File Browse Button\n removeSelectionListener( keystoreFileBrowseButton, keystoreFileBrowseButtonSelectionListener );\n\n // Password Text\n removeDirtyListener( keystorePasswordText );\n removeModifyListener( keystorePasswordText, keystorePasswordTextListener );\n\n // Show Password Checkbox\n removeSelectionListener( showPasswordCheckbox, showPasswordCheckboxSelectionListener );\n\n // SASL Host Text\n removeDirtyListener( saslHostText );\n removeModifyListener( saslHostText, saslHostTextListener );\n\n // SASL Principal Text\n removeDirtyListener( saslPrincipalText );\n removeModifyListener( saslPrincipalText, saslPrincipalTextListener );\n\n // SASL Seach Base Dn Text\n removeDirtyListener( saslSearchBaseDnText );\n removeModifyListener( saslSearchBaseDnText, saslSearchBaseDnTextListener );\n \n // SASL Realms\n removeSelectionChangedListener( saslRealmsTableViewer, saslRealmsTableViewerSelectionChangedListener );\n removeDoubleClickListener( saslRealmsTableViewer, saslRealmsTableViewerDoubleClickListener );\n \n // SASL Realms add/edit/delete buttons\n removeSelectionListener( addSaslRealmsButton, addSaslRealmsButtonListener );\n removeSelectionListener( editSaslRealmsButton, editSaslRealmsButtonListener );\n removeSelectionListener( deleteSaslRealmsButton, deleteSaslRealmsButtonListener );\n \n // Max Time Limit Text\n removeDirtyListener( maxTimeLimitText );\n removeModifyListener( maxTimeLimitText, maxTimeLimitTextListener );\n\n // Max Size Limit Text\n removeDirtyListener( maxSizeLimitText );\n removeModifyListener( maxSizeLimitText, maxSizeLimitTextListener );\n\n // Max PDU Size Text\n removeDirtyListener( maxPduSizeText );\n removeModifyListener( maxPduSizeText, maxPduSizeTextListener );\n\n // Hashing Password Checkbox\n removeDirtyListener( enableServerSidePasswordHashingCheckbox );\n removeSelectionListener( enableServerSidePasswordHashingCheckbox,\n enableServerSidePasswordHashingCheckboxListener );\n\n // Hashing Method Combo Viewer\n removeDirtyListener( hashingMethodComboViewer );\n removeSelectionChangedListener( hashingMethodComboViewer, hashingMethodComboViewerListener );\n\n // Advanced SSL Cipher Suites\n ciphersSuiteTableViewer.removeCheckStateListener( ciphersSuiteTableViewerListener );\n\n // Advanced SSL Enabled Protocols SSL v3\n removeDirtyListener( sslv3Checkbox );\n removeSelectionListener( sslv3Checkbox, sslv3CheckboxListener );\n\n // Advanced SSL Enabled Protocols TLS v1\n removeDirtyListener( tlsv1_0Checkbox );\n removeSelectionListener( tlsv1_0Checkbox, tlsv1_0CheckboxListener );\n\n // Advanced SSL Enabled Protocols TLS v1.1\n removeDirtyListener( tlsv1_1Checkbox );\n removeSelectionListener( tlsv1_1Checkbox, tlsv1_1CheckboxListener );\n\n // Advanced SSL Enabled Protocols TLS v1.2\n removeDirtyListener( tlsv1_2Checkbox );\n removeSelectionListener( tlsv1_2Checkbox, tlsv1_2CheckboxListener );\n\n\n // Advanced SSL Enabled Protocols add/edit/delete buttons removal\n\n // Replication Pinger Sleep\n removeDirtyListener( replicationPingerSleepText );\n removeModifyListener( replicationPingerSleepText, replicationPingerSleepTextListener );\n\n // Disk Synchronization Delay\n removeDirtyListener( diskSynchronizationDelayText );\n removeModifyListener( diskSynchronizationDelayText, diskSynchronizationDelayTextListener );\n }", "public void removeAllListener() {\r\n listeners.clear();\r\n }", "void removeCalcValueListener(CalcValueListener l);", "protected void detachListeners() {\n\t\t\n\t}", "public void removeListeners() {\n if ( listeners != null ) {\n listeners.clear();\n }\n }", "public synchronized void removeValueChangedListener(ValueChangedListener listener) {\n\t\tif (listeners != null && listeners.length > 0) {\n\t\t\tValueChangedListener[] tmp = new ValueChangedListener[listeners.length - 1];\n\t\t\tint idx = 0;\n\t\t\tfor (int i = 0; i < listeners.length; i++) {\n\t\t\t\tif (listeners[i] != listener) {\n\t\t\t\t\tif (idx == tmp.length) {\n\t\t\t\t\t\t// the listener was not registerd\n\t\t\t\t\t\treturn; // early exit\n\t\t\t\t\t}\n\t\t\t\t\ttmp[idx++] = listeners[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\tlisteners = tmp;\n\t\t}\n\t}", "@Override\n public void removeNotify()\n {\n unregisterListeners();\n super.removeNotify();\n }", "@Override\r\n\tprotected void detachListeners() {\n\t\t\r\n\t}", "@Override\r\n public void rmValueListener(PropertyChangeListener l) {\n\r\n }", "public void removeAllTuioListeners()\n\t{\n\t\tlistenerList.clear();\n\t}", "public void removeAllObjectChangeListeners()\n\t{\n\t\tlistenerList = null;\n\t}", "public void removeAllObjectChangeListeners()\n\t{\n\t\tlistenerList = null;\n\t}", "public synchronized void removePropertyChangeListener(PropertyChangeListener l) {\n int cnt = listeners.size();\n for (int i = 0; i < cnt; i++) {\n Object o = ((WeakReference)listeners.get(i)).get();\n if (o == null || o == l) { // remove null references and the required one\n listeners.remove(i);\n interestNames.remove(i);\n i--;\n cnt--;\n }\n }\n }", "public void cleanUp() { listener = null; }", "@Override\n public void removeChangeListener(ChangeListener listener, Event[] events) {\n boolean addEvent[] = selectEventsToModify(events);\n if (addEvent[Event.LOAD.ordinal()]) {\n loadListeners.removeChangeListener(listener);\n }\n if (addEvent[Event.STORE.ordinal()]) {\n storeListeners.removeChangeListener(listener);\n }\n if (addEvent[Event.REMOVE.ordinal()]) {\n removeListeners.removeChangeListener(listener);\n }\n }", "@Override\n\tpublic void removeAllListener() {\n\t\tLog.d(\"HFModuleManager\", \"removeAllListener\");\n\t\tthis.eventListenerList.clear();\n\t}", "public void removeAllRatioListeners()\r\n {\r\n ratioListeners.clear();\r\n }", "protected void RemoveEvents()\r\n {\r\n INotifyPropertyChanged propParent = (INotifyPropertyChanged)getProxyParent();\r\n propParent.getPropertyChanged().removeObservers(filterPropertyChanges);\r\n }", "public void removeAllListeners() {\n die();\n }", "public void removeAllListeners() {\r\n\t\tgetListeners().removeAllListeners();\r\n\t}", "@Override\n public void removePropertyChangeListener(PropertyChangeListener listener) {\n\n }", "private void setListeners() {\n\n }", "public void removeItemListerners() {\r\n\t\titemListeners.clear();\r\n\t}", "public void removeAllListeners() {\n mCircularBar.removeAllListeners();\n }", "public void testRemoveAllModelElementChangeListeners() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.removeAllModelElementChangeListeners();\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "public void removeListeners()\r\n {\r\n for (int i = 0; i < squares.size(); i++)\r\n {\r\n Square s = (Square) squares.get(i);\r\n SquareListener ml = (SquareListener) s.getMouseListeners()[0];\r\n s.removeMouseListener(ml);\r\n }\r\n }", "public void removeAllAmplitudeListeners()\r\n {\r\n amplitudeListeners.clear();\r\n }", "@Override\r\n\tprotected void setListeners() {\n\t\t\r\n\t}", "@Override\n public void removeListener(ChangeListener<? super String> listener) {\n }", "public void removeChangeListener(ChangeListener l) {\n\t\t//do nothing\n\t}", "public void removeSnapListeners() {\r\n\t\torthoSnapListeners.clear();\r\n\t}", "@Override\n\tpublic void removeValueChangeListener(final ValueChangeListener<T> listener) {\n\t\t\n\t}", "protected void removeListeners() {\n Window topLevelWindows[] = EventQueueMonitor.getTopLevelWindows();\n if (topLevelWindows != null) {\n for (int i = 0; i < topLevelWindows.length; i++) {\n if (topLevelWindows[i] instanceof Accessible) {\n removeListeners((Accessible) topLevelWindows[i]);\n }\n }\n }\n }", "void removeModelEventListener(UmlChangeListener listener, Object modelelement, String[] propertyNames);", "public void addListeners(){\n\n //listener for artists ComboBox\n artists.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observableValue, String s, String t1) {\n if(t1 != null){\n search.setDisable(false);\n genres.getSelectionModel().clearSelection();\n year.getSelectionModel().clearSelection();\n }\n }\n });\n\n //listener for genres ComboBox\n genres.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observableValue, String s, String t1) {\n if(t1 != null){\n search.setDisable(false);\n artists.getSelectionModel().clearSelection();\n year.getSelectionModel().clearSelection();\n }\n }\n });\n\n //listener for year ComboBox\n year.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Integer>() {\n @Override\n public void changed(ObservableValue<? extends Integer> observableValue, Integer integer, Integer t1) {\n if(t1 != null){\n search.setDisable(false);\n artists.getSelectionModel().clearSelection();\n genres.getSelectionModel().clearSelection();\n }\n }\n });\n\n }", "void removeListener(ChangeListener<? super T> listener);", "@Deprecated\n\tprotected void removeListeners() {\n\t\tif (propertyChangeListener != null) {\n\t\t\tcomboBox.removePropertyChangeListener(propertyChangeListener);\n\t\t}\n\t}", "private void addChangeListeners() {\n\t\troom.textProperty().addListener((observable, oldValue, newValue) -> {\n\t\t\tif (!hotel.getText().isEmpty() && !quality.getText().isEmpty()) {\n\t\t\t\tcalculatePrice();\n\t\t\t}\n\t\t});\n\t\thotel.textProperty().addListener((observable, oldValue, newValue) -> {\n\t\t\tif (!hotel.getText().isEmpty() && !quality.getText().isEmpty()) {\n\t\t\t\tcalculatePrice();\n\t\t\t}\n\t\t});\n\t\tquality.textProperty().addListener((observable, oldValue, newValue) -> {\n\t\t\tif (!hotel.getText().isEmpty() && !quality.getText().isEmpty()) {\n\t\t\t\tcalculatePrice();\n\t\t\t}\n\t\t});\n\t}", "@SuppressWarnings(\"unused\")\n public void removeAllListeners() {\n eventHandlerList.clear();\n }", "private void stopAllListeners() {\n if (unitReg != null && unitListener != null) {\n unitReg.remove();\n }\n }", "public void removeChangeListener(ChangeListener stackEngineListener);", "default void removePropertyChangeListener(PropertyChangeListener listener)\r\n {\r\n }", "public void removeAll() {\n\t\tmListenerSet.clear();\n\t}", "@Override\r\n public void removeValidListener(ValidListener l) {\n\r\n }", "public void removeListeners() {\n for (LetterTile tile : rack)\n tile.removeTileListener();\n }", "public synchronized void removeChangeListener(ChangeListener l) {\n if (changeListeners != null && changeListeners.contains(l)) {\n Vector v = (Vector) changeListeners.clone();\n v.removeElement(l);\n changeListeners = v;\n }\n }", "public void removeMultiTouchListeners() {\r\n\t\tlisteners.clear();\r\n\t}", "public void removePropertyChangeListener (PropertyChangeListener l)\n { pcs.removePropertyChangeListener (l); }", "private void removeListeners(AccessibleContext ac) {\n\n\n if (ac != null) {\n // Listeners are not added to transient components.\n AccessibleStateSet states = ac.getAccessibleStateSet();\n if (!states.contains(AccessibleState.TRANSIENT)) {\n ac.removePropertyChangeListener(this);\n /*\n * Listeners are not added to transient children. Components\n * with transient children should return an AccessibleStateSet\n * containing AccessibleState.MANAGES_DESCENDANTS. Components\n * may not explicitly return the MANAGES_DESCENDANTS state.\n * In this case, don't remove listeners from the children of\n * lists, tables and trees.\n */\n if (states.contains(_AccessibleState.MANAGES_DESCENDANTS)) {\n return;\n }\n AccessibleRole role = ac.getAccessibleRole();\n if (role == AccessibleRole.LIST ||\n role == AccessibleRole.TABLE ||\n role == AccessibleRole.TREE) {\n return;\n }\n int count = ac.getAccessibleChildrenCount();\n for (int i = 0; i < count; i++) {\n Accessible child = ac.getAccessibleChild(i);\n if (child != null) {\n removeListeners(child);\n }\n }\n }\n }\n }", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.vportal.portlet.vcalendar.model.VCal\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<VCal>> listenersList = new ArrayList<ModelListener<VCal>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<VCal>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tlistenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void removePropertyChangeListener (PropertyChangeListener l) {\n pcs.removePropertyChangeListener (l);\n }", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.ifli.rapid.model.AddressChangeReqDetails\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<AddressChangeReqDetails>> listenersList = new ArrayList<ModelListener<AddressChangeReqDetails>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<AddressChangeReqDetails>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.vn.com.ecopharma.hrm.rc.model.InterviewSchedule\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<InterviewSchedule>> listenersList = new ArrayList<ModelListener<InterviewSchedule>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<InterviewSchedule>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "@CallSuper\n protected void clear() {\n EventListener eventListener = mUseCaseConfig.getUseCaseEventListener(null);\n if (eventListener != null) {\n eventListener.onUnbind();\n }\n\n mListeners.clear();\n }", "public void removeFlickListeners() {\r\n\t\tflickListeners.clear();\r\n\t}", "public void disconnectListeners(){\n for(int i=0; i<3; i++){\n for(int j=0; j<3; j++){\n grid[i][j].removeActionListener(this);\n }\n }\n }", "@Override\n public void stop() {\n\n for (FermatEventListener fermatEventListener : listenersAdded) {\n eventManager.removeListener(fermatEventListener);\n }\n\n listenersAdded.clear();\n }", "public void clearRegistrationStateChangeListener()\n {\n synchronized (registrationListeners) {\n registrationListeners.clear();\n }\n }", "public void stopListening(){\n\t\tcv.getConfigurer().getControlFieldProvider().removeChangeListener(this);\n\t}", "void removeModelEventListener(PropertyChangeListener listener, Object modelelement, String[] propertyNames);", "@Override\n public void removeListener(InvalidationListener listener) {\n }", "void removePropertyChangeListener(PropertyChangeListener listener);", "void removePropertyChangeListener(PropertyChangeListener listener);", "void removePropertyChangedObserver(PropertyChangeObserver observer);", "public void removeListener(ValueChangedListener listener) {\n\t\t_listenerManager.removeListener(listener);\n\t}", "private void removeTimeListeners()\n {\n myProcessorBuilder.getTimeManager().removeActiveTimeSpanChangeListener(myActiveTimeSpanChangeListener);\n myProcessorBuilder.getAnimationManager().removeAnimationChangeListener(myAnimationListener);\n myTimeAgnostic = true;\n }", "public void removeAllListeners() {\n messageListeners.clear();\n children.clear();\n }", "void removeModelEventListener(PropertyChangeListener listener, Object modelelement);", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.hrms.model.EmployeeComplaint\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<EmployeeComplaint>> listenersList = new ArrayList<ModelListener<EmployeeComplaint>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<EmployeeComplaint>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "private void addListeners() {\n\t\t\n\t\tresetButton.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t \n\t\t public void handle(ActionEvent e) {\n\t\t \n\t\t \treset();\n\t\t \t\n\t\t }\n\t\t \n\t\t});\n\t\t\n\t\ttoggleGroup.selectedToggleProperty().addListener(\n\t\t\t (ObservableValue<? extends Toggle> ov, Toggle old_toggle, \n\t\t\t Toggle new_toggle) -> {\n\t\t\t \t\n\t\t\t \tif(rbCourse.isSelected()) {\n\t\t \t\t\n\t\t \t\thbox3.getChildren().set(0, CourseSelectionBox.instance());\n\t\t \t\thbox3.setDisable(false);\n\t\t \t\t\n\t\t \t}else if(rbAuthor.isSelected()) {\n\t\t \t\t\n\t\t \t\thbox3.getChildren().set(0, AuthorSelectionBox.instance());\n\t\t \t\thbox3.setDisable(false);\n\t\t \t\t\n\t\t \t}else if(rbNone.isSelected()) {\n\t\t \t\t\n\t\t \t\thbox3.setDisable(true);\n\t\t \t\t\n\t\t \t}\n\t\t\t \t\n\t\t\t});\n\t\t\n\t\tapplyButton.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t \n\t\t public void handle(ActionEvent e) {\n\t\t \n\t\t \tfilter();\n\t\t \t\n\t\t }\n\t\t \n\t\t});\n\t\t\n\t\tsearchButton.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t \n\t\t public void handle(ActionEvent e) {\n\t\t \n\t\t \tResult.instance().search(quizIDField.getText());\n\t\t \t\n\t\t }\n\t\t \n\t\t});\n\t\t\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.edu.jhu.cvrg.waveform.main.dbpersistence.model.AnnotationInfo\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<AnnotationInfo>> listenersList = new ArrayList<ModelListener<AnnotationInfo>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<AnnotationInfo>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tlistenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "private void clearConnectionListeners()\n {\n XMPPConnection connection = parentProvider.getConnection();\n if(connection != null\n && subscribtionPacketListener != null\n && contactChangesListener != null)\n {\n connection.removeAsyncStanzaListener(\n subscribtionPacketListener);\n Roster.getInstanceFor(connection)\n .removeRosterListener(contactChangesListener);\n\n subscribtionPacketListener = null;\n contactChangesListener = null;\n }\n }", "@Override\n\tpublic void removePropertyChangeListener(PropertyChangeListener l) {\n\t\t//do nothing\n\t}", "private void cleanup() {\n\t\tif (myListener!=null)\n\t\t\t_prb.removeListener(myListener);\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.tamarack.creekridge.model.CreditAppBankReference\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<CreditAppBankReference>> listenersList = new ArrayList<ModelListener<CreditAppBankReference>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<CreditAppBankReference>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.agbar.intranet.quienesquien.model.CompanyAg\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<CompanyAg>> listenersList = new ArrayList<ModelListener<CompanyAg>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<CompanyAg>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tlistenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "void removeChangeListener(PropertyChangeListener<? super R> listener);", "void removeListener(MapChangeListener<? super K, ? super V> listener);", "public void clearEvents()\n {\n ClientListener.INSTANCE.clear();\n BackingMapListener.INSTANCE.clear();\n }", "private void updateListener() {\n \n if(resizeListener != null) {\n s.heightProperty().removeListener(resizeListener);\n s.widthProperty().removeListener(resizeListener);\n }\n \n resizeListener = (observable, oldValue, newValue) -> {\n listeners.forEach((r) -> r.onResize());\n };\n \n s.heightProperty().addListener(resizeListener);\n s.widthProperty().addListener(resizeListener);\n }", "@Override\n\tpublic void resetEventListener() {\n\t\tcreateHists();\n\t}", "public void removeDeepChangeListener(DeepChangeListener aLstnr) { removeListener(DeepChangeListener.class, aLstnr); }", "@Override\r\n public void handleEvent(Event evt) {\n System.out.println(\"Focused out, removing click and change listeners\");\r\n documentElement.removeEventListener(\"change\", changeEventListener, false);\r\n documentElement.removeEventListener(\"click\", clickEventListener, false);\r\n \r\n }", "private void m1559a() {\n Set<String> enabledListenerPackages = NotificationManagerCompat.getEnabledListenerPackages(this.f1840a);\n if (!enabledListenerPackages.equals(this.f1844e)) {\n this.f1844e = enabledListenerPackages;\n List<ResolveInfo> queryIntentServices = this.f1840a.getPackageManager().queryIntentServices(new Intent().setAction(NotificationManagerCompat.ACTION_BIND_SIDE_CHANNEL), 0);\n HashSet<ComponentName> hashSet = new HashSet();\n for (ResolveInfo resolveInfo : queryIntentServices) {\n if (enabledListenerPackages.contains(resolveInfo.serviceInfo.packageName)) {\n ComponentName componentName = new ComponentName(resolveInfo.serviceInfo.packageName, resolveInfo.serviceInfo.name);\n if (resolveInfo.serviceInfo.permission != null) {\n Log.w(\"NotifManCompat\", \"Permission present on component \" + componentName + \", not adding listener record.\");\n } else {\n hashSet.add(componentName);\n }\n }\n }\n for (ComponentName componentName2 : hashSet) {\n if (!this.f1843d.containsKey(componentName2)) {\n if (Log.isLoggable(\"NotifManCompat\", 3)) {\n Log.d(\"NotifManCompat\", \"Adding listener record for \" + componentName2);\n }\n this.f1843d.put(componentName2, new ListenerRecord(componentName2));\n }\n }\n Iterator<Map.Entry<ComponentName, ListenerRecord>> it = this.f1843d.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<ComponentName, ListenerRecord> next = it.next();\n if (!hashSet.contains(next.getKey())) {\n if (Log.isLoggable(\"NotifManCompat\", 3)) {\n Log.d(\"NotifManCompat\", \"Removing listener record for \" + next.getKey());\n }\n m1565b(next.getValue());\n it.remove();\n }\n }\n }\n }", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.trianz.lms.model.LMSLeaveInformation\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<LMSLeaveInformation>> listenersList = new ArrayList<ModelListener<LMSLeaveInformation>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<LMSLeaveInformation>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.77870065", "0.7552324", "0.75449026", "0.75077194", "0.73722124", "0.7339807", "0.7336185", "0.7306003", "0.7306003", "0.7274852", "0.71898293", "0.71420836", "0.7119897", "0.71036375", "0.7092777", "0.70697325", "0.7015001", "0.7003963", "0.6993116", "0.69747466", "0.6971657", "0.6945492", "0.6924027", "0.68932813", "0.68857485", "0.6838103", "0.6811435", "0.6811435", "0.6735478", "0.6733603", "0.67180884", "0.6702294", "0.67001057", "0.66903925", "0.6663462", "0.6654298", "0.66285455", "0.66280836", "0.66245145", "0.660371", "0.6603004", "0.65699995", "0.6538113", "0.6526515", "0.6514937", "0.65141743", "0.6508701", "0.64824", "0.6473352", "0.6467146", "0.64648205", "0.6451419", "0.64391875", "0.6437104", "0.6416318", "0.641277", "0.6407949", "0.6401416", "0.63964534", "0.63912725", "0.638442", "0.6382772", "0.6381631", "0.638095", "0.6380195", "0.6376825", "0.6375684", "0.63739353", "0.63706285", "0.63700086", "0.6350507", "0.6344256", "0.6341279", "0.63396776", "0.63396376", "0.6335965", "0.6334084", "0.6295142", "0.6295142", "0.6291707", "0.62795293", "0.62738174", "0.6269018", "0.62649554", "0.626374", "0.62597567", "0.6247062", "0.62424505", "0.62404394", "0.62391436", "0.6234556", "0.6230918", "0.6230227", "0.62299937", "0.6214721", "0.62124425", "0.6205283", "0.62046", "0.6198599", "0.6196202", "0.61847395" ]
0.0
-1
This method initializes jbChangeEnquirer
private JButton getJbChangeEnquirer() { if (this.jbChangeEnquirer == null) { this.jbChangeEnquirer = new JButton(); this.jbChangeEnquirer.setText("Change"); this.jbChangeEnquirer.setSize(new Dimension(140, 15)); this.jbChangeEnquirer.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { getNewEnquirer(); } }); } return this.jbChangeEnquirer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void jbInit() throws Exception {\n }", "public void init() {\n cupDataChangeListener = new CupDataChangeListener(dataBroker);\n }", "void jbInit() throws Exception\r\n\t{\r\n\t}", "private void init() {\n\n\t}", "private void myInit() {\n init_key();\n init_tbl_inventory();\n data_cols();\n focus();\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n jTextField1.grabFocus();\n }\n });\n\n }", "public static void initial(){\n\t}", "public static void chsrInit(){\n for(int i = 0; i < chsrDesc.length; i++){\n chsr.addOption(chsrDesc[i], chsrNum[i]);\n }\n chsr.setDefaultOption(chsrDesc[2] + \" (Default)\", chsrNum[2]); //Default MUST have a different name\n SmartDashboard.putData(\"JS/Choice\", chsr);\n SmartDashboard.putString(\"JS/Choosen\", chsrDesc[chsr.getSelected()]); //Put selected on sdb\n }", "protected abstract void initializeBartender();", "private void init() {\n }", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void init() {\n\t\t}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "@Override\n public void initialize() {\n if(prefix == null)\n prefix = getToolkit().getArguments().referenceFile.getAbsolutePath();\n BWTFiles bwtFiles = new BWTFiles(prefix);\n BWAConfiguration configuration = new BWAConfiguration();\n aligner = new BWACAligner(bwtFiles,configuration);\n }", "public void init() {\r\n\r\n\t}", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "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 initialize() {\r\n\r\n // add default buttons\r\n addButton(getToggleButton(),\"toggle\");\r\n addButton(getFinishButton(),\"finish\");\r\n addButton(getCancelButton(),\"cancel\");\r\n addActionListener(new ActionListener() {\r\n\r\n public void actionPerformed(ActionEvent e) {\r\n String cmd = e.getActionCommand();\r\n if(\"toggle\".equalsIgnoreCase(cmd)) change();\r\n else if(\"finish\".equalsIgnoreCase(cmd)) finish();\r\n else if(\"cancel\".equalsIgnoreCase(cmd)) cancel();\r\n }\r\n\r\n });\r\n\r\n }", "private void initialize() {\n\t}", "public void init() {\n \n }", "JBIDescriptorReader(String su_Name) {\n mSu_Name = su_Name;\n }", "private void initialize() {\n\t\t\n\t}", "public void initialize() {\r\n\t\tsetValue(initialValue);\r\n\t}", "private void initConnections() throws Exception {\r\n\t\t// user code begin {1}\r\n\t\tgetJTextField().addMouseListener(this);\r\n\t\tgetJTextField().addFocusListener(this);\r\n\t\t// user code end\r\n\t\tgetJTextField().addPropertyChangeListener(this);\r\n\t\tthis.addFocusListener(this);\r\n\t\tgetJTextField().addActionListener(this);\r\n\t\tgetJTextField().addFocusListener(this);\r\n\t\tgetJTextField().addKeyListener(this);\r\n\t\tgetJTextField().addMouseListener(this);\r\n\t}", "private void init() {\n\n\n\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "public void init() {\n\t\t\n\t}", "public void init() {\n\t}", "public void init() {\n\t}", "public void init() {\n\t}", "@Override\n\tpublic void initial() {\n\t\t\n\t}", "private void initialize() {\n }", "public void initialize() {\r\n\t\t\tsetTextValue(!updateNoteEnabled);\r\n\t\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void init() {\n\t\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n try {\n localConf = JCineFX.leerConf();\n fillUserData();\n userMenuItem.setText(localConf.getUsuarioActual());\n if( JCineFX.getCurrentUser().getUsername().equals(\"guest\") )\n disableInput();\n } catch (Exception ex) {\n System.out.println(ex);\n }\n SalaBuilder.fillSalaChoices(salasChoice, new ArrayList<String>());\n salasChoice.getSelectionModel().selectedIndexProperty().addListener(new ChangeListener<Number>() {\n\n @Override\n public void changed(ObservableValue<? extends Number> ov, Number t, Number t1) {\n loadHorarios();\n System.out.println(\"Salachoice changed \" + t1);\n }\n });\n }", "public void init() {\n\r\n\t}", "public void init() {\n\r\n\t}", "public void initialize() {\n fillCombobox();\n }", "public void init()\r\n {\r\n this.setText(\"Migrate\");\r\n \r\n this.addActionListener(this);\r\n }", "@Override public void init()\n\t\t{\n\t\t}", "@Override\n\tpublic void initialisation_specifique() {\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 init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "public JCB() {\r\n this.setJobInTime(Clock.clock.getCurrentTime());\r\n this.instructions = new ArrayList<>();\r\n }", "public void init() {\r\n\t\t// to override\r\n\t}", "public static void init() {\n //Reset Flywheel Falcons to factory default\n flywheelMaster.configFactoryDefault();\n flywheelSlave.configFactoryDefault();\n\n //Master settings\n flywheelMaster.setNeutralMode(NeutralMode.Brake); //Set neutral mode to break\n flywheelMaster.configSelectedFeedbackSensor(FeedbackDevice.IntegratedSensor); //Use Falcon 500 Integrated Encoder\n flywheelMaster.setSelectedSensorPosition(0,0,10); //Reset encoder position\n\n //Slave settings\n flywheelSlave.follow(flywheelMaster); //Follow master mode\n flywheelSlave.setInverted(true); //Invert motor to go along with master controller\n flywheelSlave.setNeutralMode(NeutralMode.Brake); //Set neutral mode to break\n }", "private void myInit() {\n init_key();\n\n String business_name = System.getProperty(\"business_name\", \"Tyrol Restaurant\");\n jTextField1.setText(business_name);\n String operated_by = System.getProperty(\"operated_by\", \"Fely Romano Sanin\");\n jTextField2.setText(operated_by);\n String address = System.getProperty(\"address\", \"Mayfair place 12th Lacson St, Bacolod City\");\n jTextField3.setText(address);\n\n String tin_no = System.getProperty(\"tin_no\", \"161-107-778-000\");\n jTextField4.setText(tin_no);\n String serial_no = System.getProperty(\"serial_no\", \"\");\n jTextField5.setText(serial_no);\n String permit_no = System.getProperty(\"permit_no\", \"\");\n jTextField6.setText(permit_no);\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public void initForAddNew() {\r\n\r\n\t}", "public void init (){\n for (int i = 0; i < tvalores.length; i++) {\n tvalores[i] = Almacen1.LIBRE;\n }\n valoresAlmacenados = 0;\n }", "public void init(){\n \n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "private void initialize() {\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\r\n\t\tthis.setTitle(\"Extremum Values\");\r\n\t\tthis.setSize(300,180);\r\n\t\tthis.setLocation(300, 100);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.getRootPane().setDefaultButton(getOkButton());\r\n\t\tthis.setVisible(true);\r\n\t}", "@Override\n\tpublic synchronized void init() {\n\t}", "@Override\n public void init() {\n }", "private void jbInit() throws Exception {\n jLabelCarName.setText(\"Carrier Name\");\n this.getContentPane().setLayout(gridBagLayout1);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //terminates carrier when frame is closed only if carriers is not yet registered\n\n jmFile.setMnemonic('F');\n jmFile.setText(\"File\");\n jmiExit.setEnabled(false); //remains inactive carrier user registers\n jmiExit.setToolTipText(\"Unregister and terminate the agent.\");\n jmiExit.setText(\"Exit\");\n jmiExit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(ActionEvent e) {\n jmiExit_actionPerformed(e);\n }\n });\n\n jmiOptions.setToolTipText(\"Set constraint multipliers for the agent.\");\n jmiOptions.setText(\"Options\");\n jmiOptions.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(ActionEvent e) {\n jmiOptions_actionPerformed(e);\n }\n });\n\n CarrierLabel.setText(\"Carrier Name\");\n this.setFont(new java.awt.Font(\"Dialog\", 1, 12));\n this.setTitle(\"Carrier Agent\");\n jtfCarName.setText(\"UPS SRU\");\n jtfCarName.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(ActionEvent e) {\n jtfCarName_actionPerformed(e);\n }\n });\n jLabelCarCode.setText(\"Carrier Code\");\n jbRegister.setActionCommand(\"jbregisterCar\");\n jbRegister.setContentAreaFilled(false);\n jbRegister.setMargin(new Insets(2, 5, 2, 5));\n jbRegister.setMnemonic('0');\n jbRegister.setText(\"Register Agent\");\n jbRegister.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(ActionEvent e) {\n jbRegister_actionPerformed(e);\n }\n });\n jbOptimize.setEnabled(false);\n jbOptimize.setActionCommand(\"jbOptimize\");\n jbOptimize.setMargin(new Insets(2, 5, 2, 5));\n jbOptimize.setMnemonic('0');\n jbOptimize.setText(\"Optimize\");\n jbOptimize.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(ActionEvent e) {\n jbOptimize_actionPerformed(e);\n }\n });\n jtfCarCode.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(ActionEvent e) {\n jtfCarCode_actionPerformed(e);\n }\n });\n jtfCarCode.setText(\"2020\");\n jbDisplayRoute.setEnabled(false);\n jbDisplayRoute.setActionCommand(\"jbDisplayRoute\");\n jbDisplayRoute.setMargin(new Insets(2, 5, 2, 5));\n jbDisplayRoute.setMnemonic('0');\n jbDisplayRoute.setText(\"Display\");\n jbDisplayRoute.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(ActionEvent e) {\n jbDisplayRoute_actionPerformed(e);\n }\n });\n jlTotalDemand.setText(\"Total Demand\");\n jlTotalDistance.setText(\"Total Distance\");\n jlTotalTravTime.setText(\"Total Travel Time\");\n jlTotalTard.setText(\"Total Tardiness\");\n jlExcTime.setText(\"Total Excess Time\");\n jlTotalOverload.setText(\"Total Overload\");\n jlTotalWaitTime.setText(\"Total Wait Time\");\n jtfTotalDemand.setEditable(false);\n jtfTotalDistance.setEditable(false);\n jtfTotalTravTime.setEditable(false);\n jtfTotalTard.setEditable(false);\n jtfTotalExcTime.setEditable(false);\n jtfTotalOverload.setEditable(false);\n jtfTotalWaitTime.setEditable(false);\n jtfTotalServTime.setEditable(false);\n jlTotalServTime.setText(\"Total Service Time\");\n jlTotalCustomers.setText(\"Total Customers\");\n jtfTotalCustomers.setEditable(false);\n\n this.setJMenuBar(jMenuBar1);\n jMenuBar1.setAlignmentY((float) 0.5);\n\n jtfCarPort.setText(\"Unassigned\");\n jLabelCarPort.setText(\"Carrier Port\");\n jtfCarPort.setEditable(false);\n\n jlTotalTrucks.setText(\"Total Trucks\");\n jtfTotalTrucks.setEditable(false);\n jlMasterIP.setText(\" Master Server IP\");\n jlMasterPort.setText(\"Master Server Port\");\n jtfMasterIP.setText(carrierIP);\n jtfMasterIP.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(ActionEvent e) {\n jtfMasterIP_actionPerformed(e);\n }\n });\n jtfMasterPort.setText(\"\" + HermesGlobals.masterServerPortNo);\n jtfMasterPort.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(ActionEvent e) {\n jtfMasterPort_actionPerformed(e);\n }\n });\n jbReschedule.setEnabled(false);\n jbReschedule.setToolTipText(\"\");\n jbReschedule.setMargin(new Insets(2, 5, 2, 5));\n jbReschedule.setMnemonic('0');\n jbReschedule.setText(\"Reschedule\");\n jbReschedule.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(ActionEvent e) {\n jbReschedule_actionPerformed(e);\n }\n });\n jMenuBar1.add(jmFile);\n jmFile.add(jmiExit);\n\n //\tjmFile.add(jmiOptions);\n this.getContentPane().add(jtfTotalOverload,\n new GridBagConstraints(2, 13, 4, 1, 1.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,\n new Insets(9, 0, 33, 20), 263, -3));\n this.getContentPane().add(jtfTotalExcTime,\n new GridBagConstraints(2, 12, 4, 1, 1.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,\n new Insets(10, 0, 0, 20), 263, -3));\n this.getContentPane().add(jtfTotalTard,\n new GridBagConstraints(2, 11, 4, 1, 1.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,\n new Insets(9, 0, 0, 20), 263, -3));\n this.getContentPane().add(jtfTotalServTime,\n new GridBagConstraints(2, 10, 4, 1, 1.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,\n new Insets(9, 0, 0, 20), 263, -3));\n this.getContentPane().add(jtfTotalWaitTime,\n new GridBagConstraints(2, 9, 4, 1, 1.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,\n new Insets(9, 0, 0, 20), 263, -3));\n this.getContentPane().add(jtfTotalDistance,\n new GridBagConstraints(2, 7, 4, 1, 1.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,\n new Insets(9, 0, 0, 20), 263, -3));\n this.getContentPane().add(jtfTotalTravTime,\n new GridBagConstraints(2, 8, 4, 1, 1.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,\n new Insets(10, 0, 0, 20), 263, -3));\n this.getContentPane().add(jtfTotalDemand,\n new GridBagConstraints(2, 6, 4, 1, 1.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,\n new Insets(9, 0, 0, 20), 263, -3));\n this.getContentPane().add(jlTotalDemand,\n new GridBagConstraints(0, 6, 2, 1, 0.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.NONE,\n new Insets(9, 7, 0, 10), 27, 1));\n this.getContentPane().add(jlTotalDistance,\n new GridBagConstraints(0, 7, 2, 1, 0.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.NONE,\n new Insets(9, 7, 0, 10), 26, 1));\n this.getContentPane().add(jlTotalTravTime,\n new GridBagConstraints(0, 8, 2, 1, 0.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.NONE,\n new Insets(10, 7, 0, 10), 11, 1));\n this.getContentPane().add(jlTotalWaitTime,\n new GridBagConstraints(0, 9, 2, 1, 0.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.NONE,\n new Insets(9, 7, 0, 10), 20, 1));\n this.getContentPane().add(jlTotalServTime,\n new GridBagConstraints(0, 10, 2, 1, 0.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.NONE,\n new Insets(9, 7, 0, 10), 4, 1));\n this.getContentPane().add(jlTotalTard,\n new GridBagConstraints(0, 11, 2, 1, 0.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.NONE,\n new Insets(9, 7, 0, 10), 19, 1));\n this.getContentPane().add(jlExcTime,\n new GridBagConstraints(0, 12, 2, 1, 0.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.NONE,\n new Insets(10, 7, 0, 10), 4, 1));\n this.getContentPane().add(jlTotalOverload,\n new GridBagConstraints(0, 13, 2, 1, 0.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.NONE,\n new Insets(9, 7, 33, 11), 25, 1));\n this.getContentPane().add(jbRegister,\n new GridBagConstraints(0, 4, 3, 1, 0.0, 0.0,\n GridBagConstraints.SOUTHWEST, GridBagConstraints.NONE,\n new Insets(17, 7, 0, 10), 13, 3));\n this.getContentPane().add(jlTotalCustomers,\n new GridBagConstraints(0, 5, 2, 1, 0.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.NONE,\n new Insets(17, 7, 0, 10), 13, 1));\n this.getContentPane().add(jtfTotalCustomers,\n new GridBagConstraints(2, 5, 1, 1, 1.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,\n new Insets(17, 0, 0, 10), 40, -3));\n this.getContentPane().add(jLabelCarPort,\n new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.NONE,\n new Insets(0, 7, 0, 0), 11, 4));\n this.getContentPane().add(jtfCarName,\n new GridBagConstraints(1, 0, 2, 2, 1.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,\n new Insets(39, 13, 15, 11), 38, 0));\n this.getContentPane().add(jLabelCarName,\n new GridBagConstraints(0, 0, 1, 2, 0.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.NONE,\n new Insets(39, 7, 15, 0), 4, 4));\n this.getContentPane().add(jtfCarCode,\n new GridBagConstraints(1, 2, 2, 1, 1.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,\n new Insets(0, 13, 14, 11), 64, 0));\n this.getContentPane().add(jLabelCarCode,\n new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.NONE,\n new Insets(0, 7, 14, 8), 0, 4));\n this.getContentPane().add(jtfCarPort,\n new GridBagConstraints(1, 3, 2, 1, 1.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,\n new Insets(0, 13, 0, 11), 24, 0));\n this.getContentPane().add(jlMasterIP,\n new GridBagConstraints(3, 0, 3, 1, 0.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.NONE,\n new Insets(32, 8, 0, 50), 16, 4));\n this.getContentPane().add(jtfMasterIP,\n new GridBagConstraints(3, 1, 3, 1, 1.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,\n new Insets(0, 32, 0, 20), 92, 0));\n this.getContentPane().add(jtfMasterPort,\n new GridBagConstraints(3, 3, 3, 1, 1.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,\n new Insets(0, 32, 0, 20), 92, 0));\n this.getContentPane().add(jtfTotalTrucks,\n new GridBagConstraints(3, 5, 2, 1, 1.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL,\n new Insets(17, 95, 0, 20), 40, -3));\n this.getContentPane().add(jlTotalTrucks,\n new GridBagConstraints(2, 5, 3, 1, 0.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.NONE,\n new Insets(17, 75, 0, 0), 12, 1));\n this.getContentPane().add(jlMasterPort,\n new GridBagConstraints(3, 2, 3, 1, 0.0, 0.0,\n GridBagConstraints.WEST, GridBagConstraints.NONE,\n new Insets(10, 8, 0, 50), 30, 4));\n this.getContentPane().add(jbReschedule,\n new GridBagConstraints(2, 4, 3, 1, 0.0, 0.0,\n GridBagConstraints.SOUTHWEST, GridBagConstraints.HORIZONTAL,\n new Insets(0, 75, 0, 115), 0, 4));\n this.getContentPane().add(jbDisplayRoute,\n new GridBagConstraints(3, 4, 2, 1, 1.0, 0.0,\n GridBagConstraints.SOUTHWEST, GridBagConstraints.NONE,\n new Insets(17, 105, 0, 20), 40, 3));\n this.getContentPane().add(jbOptimize,\n new GridBagConstraints(2, 4, 2, 1, 0.0, 0.0,\n GridBagConstraints.SOUTHWEST, GridBagConstraints.NONE,\n new Insets(16, 0, 0, 0), 15, 3));\n\n this.setSize(new Dimension(409, 461));\n this.setVisible(true);\n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "public BBDJPAAdminGUI() {\n initComponents();\n\n myInit();\n }", "protected void init() {\n\t}", "protected void init() {\n\t}", "private void initialize() {\r\n this.add(getJMenuItemRestore()); // Generated\r\n\r\n this.add(getJMenuItemExit()); // Generated\r\n\r\n this.setLabel(\"WorkDayPlanner\");\r\n }", "@Override\n\tpublic void robotInit() {\n\t\tm_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n\t\tm_chooser.addOption(\"My Auto\", kCustomAuto);\n\t\tSmartDashboard.putData(\"Auto choices\", m_chooser);\n\n\t\tJoy = new Joystick(0);\n\t\ts1 = new DoubleSolenoid(1, 0);\n\t\ts2 = new DoubleSolenoid(2, 3);\n\t\tairCompressor = new Compressor();\n\t\ttriggerValue = false;\n\t\ts1Value = false;\n\t}", "protected void initialize() {\n \t\n }", "@Override\r\n\tpublic void init() {}", "@Override\n protected void init() {\n }", "private void init() {\n\r\n\t\tmyTerminal.inputSource.addUserInputEventListener(this);\r\n//\t\ttextSource.addUserInputEventListener(this);\r\n\r\n\t}", "private void init() {\n listeners = new PropertyChangeSupport(this);\n }", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void conferenceroom() {\n\t\t\n\t}", "protected void initialize()\n\t{\n\t}", "protected void init() {\n // to override and use this method\n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "public void initDefaultCommand() {\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}", "protected void initialize() {\n\n\t}", "@Override\n public void init() {}", "void initAitalk() {\n\t\tAsr.JniBeginLexicon(\"menu\", false);\n \tfor(int i = 0; i < mAiStrings.length; i++){\n \t\tAsr.JniAddLexiconItem(mAiStrings[i], i);\n \t}\n \tAsr.JniEndLexicon();\n \tmMsgHandler.sendEmptyMessage(MSG_HANDLE_START_REG);\n }", "private void init(){\n //Selected value in Spinner\n String selectedSubj= getActivity().getIntent().getStringExtra(\"subj\");\n String selectedPoten= getActivity().getIntent().getStringExtra(\"prob\");\n String selectedInst= getActivity().getIntent().getStringExtra(\"inst\");\n String selectedY= getActivity().getIntent().getStringExtra(\"peri\");\n\n if(selectedY.equals(\"2015~2017\")){\n String yList[]= {\"2015\", \"2016\", \"2017\"};\n selectedY= yList[new Random().nextInt(yList.length)];\n }\n\n String e_inst= QuestionUtil.create_eInst(selectedY, selectedInst);\n String k_inst= QuestionUtil.create_kInst(e_inst);\n String m= QuestionUtil.createPeriodM(selectedY, e_inst);\n\n QuestionNameBuilder.inst= new QuestionNameBuilder(selectedY, m, k_inst, selectedSubj, QuestionNameBuilder.UNDEFINED\n , QuestionNameBuilder.UNDEFINED, QuestionNameBuilder.TYPE_KOR);\n qnBuilder= QuestionNameBuilder.inst;\n\n //Potential Load\n loadPotentials(selectedPoten);\n }", "private void initialize(FujabaTransaction fujaba_tx) {\n for (FujabaRecord f_rec : fujaba_tx.getChanges()) {\n if (f_rec.getRecordType() == CoobraType.CHANGE) {\n FujabaChangeRecord fc_rec = (FujabaChangeRecord) f_rec;\n\n switch (fc_rec.getChangeKind()) {\n case CREATE_OBJECT:\n changes_.add(new MiradorCreateRecord(fc_rec, this));\n break;\n\n case DESTROY_OBJECT:\n// changes_.add(new MiradorDestroyRecord(fc_rec, this));\n break;\n\n case ALTER_FIELD:\n changes_.add(new MiradorAlterRecord(fc_rec, this));\n break;\n }\n }\n }\n\n Debug.dbg.println(\"\\n\\t>>> Creating Mirador Transaction - \"\n + tx_id_ + \": \" + tx_name_ + \" <<<\");\n for (ListIterator<MiradorRecord> it = changeIterator(); it.hasNext();)\n Debug.dbg.println(it.next());\n }", "@Override\n public void initState() {\n \n\t//TODO: Complete Method\n\n }", "public void initialize() {\n\t}", "public void initialize() {\n\t}" ]
[ "0.5993621", "0.55467904", "0.55278236", "0.5438758", "0.53648907", "0.5290892", "0.52698237", "0.5250366", "0.5242327", "0.5241927", "0.5241927", "0.5241927", "0.52375585", "0.5233761", "0.5231032", "0.5230739", "0.5208325", "0.5208325", "0.5208325", "0.5208325", "0.5205469", "0.52025807", "0.51967967", "0.5195298", "0.51780236", "0.5176381", "0.51727635", "0.5165188", "0.5160918", "0.51502424", "0.5149056", "0.5139968", "0.5139968", "0.5139968", "0.51396817", "0.51304376", "0.51170915", "0.51072156", "0.5105246", "0.5097083", "0.50939476", "0.50939476", "0.50898385", "0.50880903", "0.5082068", "0.50774974", "0.50721186", "0.50721186", "0.50721186", "0.5069241", "0.5069241", "0.5069241", "0.506275", "0.5058629", "0.50524855", "0.5050966", "0.5049929", "0.5048758", "0.50443655", "0.50431275", "0.50407153", "0.50301635", "0.5028643", "0.50253266", "0.501867", "0.5017968", "0.5017968", "0.5017968", "0.5017968", "0.5017968", "0.501711", "0.5016645", "0.5016645", "0.50150526", "0.5014304", "0.50079393", "0.5002329", "0.50018156", "0.49950436", "0.49909255", "0.4988481", "0.49879435", "0.4978265", "0.49766845", "0.49726364", "0.49726364", "0.49726364", "0.49726364", "0.49693277", "0.49660876", "0.49660876", "0.49660876", "0.4964527", "0.49589497", "0.4957963", "0.4957145", "0.4955831", "0.4955499", "0.49553654", "0.49553654" ]
0.56986874
1
This method initializes jContentPane
private JPanel getJContentPane() { if (jContentPane == null) { jContentPane = new JPanel(); jContentPane.setLayout(new BorderLayout()); jContentPane.add(getJPanelLeft(), BorderLayout.WEST); jContentPane.add(getJPanelRight(), BorderLayout.CENTER); } return jContentPane; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }", "private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}", "public void init()\n {\n buildUI(getContentPane());\n }", "private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}", "public MainContentPane() {\r\n\t\tsuper();\r\n\r\n\t\t// Add design-time configured components.\r\n\t\tinitComponents();\r\n\t}", "private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}", "private void initialize()\n\t{\n\t\tthis.setModal(true);\t\t\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(450,400);\n\t\tScreenResolution.centerComponent(this);\n\t}", "private void initialize() {\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.setSize(300, 200);\n\t\tthis.add(getJScrollPane(), java.awt.BorderLayout.CENTER);\n\t}", "private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}", "private void initComponents() {\n\n jScrollPane = new javax.swing.JScrollPane();\n jPanelContent = new javax.swing.JPanel();\n\n setPreferredSize(new java.awt.Dimension(300, 600));\n\n jScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n\n jPanelContent.setLayout(new java.awt.GridLayout(1, 0));\n jScrollPane.setViewportView(jPanelContent);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 523, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 600, Short.MAX_VALUE)\n );\n }", "private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}", "public void createContentPane() {\n\t\tLOG.log(\"Creating the content panel.\");\n\t\tCONTENT_PANE = new JPanel();\n\t\tCONTENT_PANE.setBorder(null);\n\t\tCONTENT_PANE.setLayout(new BorderLayout());\n\t}", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}", "private void initialize() {\n this.setSize(253, 175);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setContentPane(getJContentPane());\n this.setTitle(\"Breuken vereenvoudigen\");\n }", "private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private JPanel getJContentPane() {\r\n if (jContentPane == null) {\r\n jContentPane = new JPanel();\r\n jContentPane.setLayout(new BorderLayout());\r\n }\r\n return jContentPane;\r\n }", "private void initialize() {\n\t\tthis.setSize(293, 155);\n\t\tthis.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/abdo.jpg\")));\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"Désincription d'un étudiant\");\n\t}", "private void initialize() {\r\n\t\tthis.setSize(497, 316);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "private void buildContentPane() {\n\t\t// The JPanel that will become the content pane\n\t\tJPanel cp = new JPanel();\n\t\tcp.setLayout(new BoxLayout(cp, BoxLayout.PAGE_AXIS));\n\n\t\tlanguagePanel = initLanguagePanel();\n\t\tcp.add(languagePanel);\n\n\t\tinputPanel = initInputPanel();\n\t\tcp.add(inputPanel);\n\n\t\tJPanel btnPanel = initBtnPanel();\n\t\tcp.add(btnPanel);\n\n\t\toutputPanel = initOutputPanel();\n\t\tcp.add(outputPanel);\n\n\t\tJPanel picturePanel = initPicturePanel();\n\t\tif(picturePanel == null) {\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_SMALL_HEIGHT);\n\t\t}\n\t\telse {\n\t\t\tcp.add(picturePanel);\n\t\t}\n\n\t\tLanguage selectedLang = languagePanel.getSelectedLanguage();\n\t\tsetLanguage(selectedLang);\n\n\t\tframe.setContentPane(cp);\n\t}", "private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }", "protected javax.swing.JPanel getJContentPane() {\n if (jContentPane == null) {\n jContentPane = new javax.swing.JPanel();\n java.awt.GridBagConstraints consGridBagConstraints9 = new java.awt.GridBagConstraints();\n java.awt.GridBagConstraints consGridBagConstraints8 = new java.awt.GridBagConstraints();\n java.awt.GridBagConstraints consGridBagConstraints10 = new java.awt.GridBagConstraints();\n consGridBagConstraints9.insets = new java.awt.Insets(1,5,2,5);\n consGridBagConstraints9.ipady = 263;\n consGridBagConstraints9.ipadx = 0;\n consGridBagConstraints9.fill = java.awt.GridBagConstraints.BOTH;\n consGridBagConstraints9.weighty = 2.0D;\n consGridBagConstraints9.weightx = 1.0;\n consGridBagConstraints9.gridy = 1;\n consGridBagConstraints9.gridx = 0;\n consGridBagConstraints8.insets = new java.awt.Insets(2,5,6,5);\n consGridBagConstraints8.ipadx = 0;\n consGridBagConstraints8.fill = java.awt.GridBagConstraints.HORIZONTAL;\n consGridBagConstraints8.weighty = 1.0;\n consGridBagConstraints8.weightx = 1.0;\n consGridBagConstraints8.gridy = 2;\n consGridBagConstraints8.gridx = 0;\n consGridBagConstraints10.insets = new java.awt.Insets(6,5,1,5);\n consGridBagConstraints10.ipadx = 0;\n consGridBagConstraints10.fill = java.awt.GridBagConstraints.HORIZONTAL;\n consGridBagConstraints10.weighty = 1.0;\n consGridBagConstraints10.weightx = 1.0;\n consGridBagConstraints10.gridy = 0;\n consGridBagConstraints10.gridx = 0;\n jContentPane.setLayout(new java.awt.GridBagLayout());\n jContentPane.add(getJPanelExitButtons(), consGridBagConstraints8);\n jContentPane.add(getJScrollPane(), consGridBagConstraints9);\n jContentPane.add(getJPanelPlayListButtons(), consGridBagConstraints10);\n }\n return jContentPane;\n }", "private void initialize() {\n\t\tthis.setSize(300, 300);\n\t\tthis.setIconifiable(true);\n\t\tthis.setClosable(true);\n\t\tthis.setTitle(\"Sobre\");\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setFrameIcon(new ImageIcon(\"images/16x16/info16x16.gif\"));\n\t}", "private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(new BorderLayout());\r\n\t\t\tjContentPane.add(getTlbNavigate(), BorderLayout.NORTH);\r\n\t\t\tjContentPane.add(getPnlCenter(), BorderLayout.CENTER);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}", "private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}", "private JPanel getJContentPane() {\n\t\tif (jContentPane == null) {\n\t\t\tjContentPane = new JPanel();\n\t\t\t// jContentPane.setLayout(new BorderLayout());\n\t\t\tjContentPane.setLayout(new CardLayout());\n\t\t\tjContentPane.setPreferredSize(new Dimension(25, 25));\n\t\t}\n\t\treturn jContentPane;\n\t}", "private void initPane() {\n\t\tContainer localContainer = getContentPane();\n\t\tlocalContainer.setLayout(new BorderLayout());\n\t\t\n\t\tsplitpane_left_top.setBorder(BorderFactory.createTitledBorder(\"Training Data\"));\n\t\tsplitpane_left_bottom.setBorder(BorderFactory.createTitledBorder(\"Tree View\"));\n\t\tsplitpane_left.setDividerLocation(400);\n\t\tsplitpane_left.setLastDividerLocation(0);\n\t\tsplitpane_left.setOneTouchExpandable(true);\n\t\tsplitpane_right.setBorder(BorderFactory.createTitledBorder(\"Classifer Output\"));\n\t\tsplitpane_main.setDividerLocation(500);\n\t\tsplitpane_main.setLastDividerLocation(0);\n\t\tsplitpane_main.setOneTouchExpandable(true);\n\t\tlocalContainer.add(splitpane_main, \"Center\");\n\t\tlocalContainer.add(statusPanel,BorderLayout.SOUTH);\n\t}", "private void initialize() {\r\n\t\tthis.setSize(733, 427);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"jProxyChecker\");\r\n\t}", "private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(new BorderLayout());\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}", "private void initComponents() {\r\n\r\n setLayout(new java.awt.BorderLayout());\r\n }", "private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }", "private void fillContentPane() {\n\t\tadd(Box.createRigidArea(new Dimension(0,10))); //empty spacing\n\n\t\tsetWelcomeText(\"testFirst\", \"testLast\");//TODO remove? the cardChanger sets this when go to this page\n\t\twelcomeText.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tadd(welcomeText);\n\n\t\tadd(Box.createRigidArea(new Dimension(0,10))); //empty spacing\n\n\t\tadd(GuiUtilities.centeredJLabel(\"Courses:\"));\n\t\tsetupCourseList();\n\n\t}", "private javax.swing.JPanel getJContentPane() {\n if (jContentPane == null) {\n jContentPane = new javax.swing.JPanel();\n jContentPane.setLayout(new java.awt.BorderLayout());\n jContentPane.add(getPButtons(), java.awt.BorderLayout.SOUTH);\n jContentPane.add(getSpPrefixList(), java.awt.BorderLayout.CENTER);\n }\n return jContentPane;\n }", "private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }", "private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}", "private void initialize() {\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\r\n\t\tthis.setTitle(\"Extremum Values\");\r\n\t\tthis.setSize(300,180);\r\n\t\tthis.setLocation(300, 100);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.getRootPane().setDefaultButton(getOkButton());\r\n\t\tthis.setVisible(true);\r\n\t}", "private PanelConImagen getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjLabel10 = new JLabel();\r\n\t\t\tjLabel10.setBounds(new Rectangle(108, 292, 106, 19));\r\n\t\t\tjLabel10.setText(\"Fonasa\");\r\n\t\t\tjLabel10.setForeground(Color.black);\r\n\t\t\tjLabel9 = new JLabel();\r\n\t\t\tjLabel9.setBounds(new Rectangle(107, 217, 106, 19));\r\n\t\t\tjLabel9.setText(\"Direccion\");\r\n\t\t\tjLabel9.setForeground(Color.black);\r\n\t\t\tjLabel8 = new JLabel();\r\n\t\t\tjLabel8.setBounds(new Rectangle(107, 191, 106, 19));\r\n\t\t\tjLabel8.setText(\"E-mail\");\r\n\t\t\tjLabel8.setForeground(Color.black);\r\n\t\t\tjLabel7 = new JLabel();\r\n\t\t\tjLabel7.setBounds(new Rectangle(107, 268, 106, 19));\r\n\t\t\tjLabel7.setText(\"Fecha Ingreso *\");\r\n\t\t\tjLabel7.setForeground(Color.black);\r\n\t\t\tjLabel6 = new JLabel();\r\n\t\t\tjLabel6.setBounds(new Rectangle(107, 243, 106, 19));\r\n\t\t\tjLabel6.setText(\"Telefono\");\r\n\t\t\tjLabel6.setForeground(Color.black);\r\n\t\t\tjLabel5 = new JLabel();\r\n\t\t\tjLabel5.setBounds(new Rectangle(107, 166, 106, 19));\r\n\t\t\tjLabel5.setText(\"C.I *\");\r\n\t\t\tjLabel5.setForeground(Color.black);\r\n\t\t\tjLabel4 = new JLabel();\r\n\t\t\tjLabel4.setBounds(new Rectangle(107, 140, 106, 19));\r\n\t\t\tjLabel4.setForeground(java.awt.Color.black);\r\n\t\t\tjLabel4.setText(\"Apellido *\");\r\n\t\t\tjLabel3 = new JLabel();\r\n\t\t\tjLabel3.setBounds(new Rectangle(107, 112, 106, 19));\r\n\t\t\tjLabel3.setForeground(java.awt.Color.black);\r\n\t\t\tjLabel3.setText(\"Nombre *\");\r\n\t\t\tjLabel1 = new JLabel();\r\n\t\t\tjLabel1.setBounds(new Rectangle(214, 9, 136, 33));\r\n\t\t\tjLabel1.setFont(new java.awt.Font(\"Arial\", java.awt.Font.PLAIN, 18));\r\n\t\t\tjLabel1.setForeground(new java.awt.Color(118,144,201));\r\n\t\t\tjLabel1.setText(\" Alta de Afiliado\");\r\n\t\t\tjLabel2 = new JLabel();\r\n\t\t\tjLabel2.setBounds(new Rectangle(107, 84, 106, 19));\r\n\t\t\tjLabel2.setForeground(java.awt.Color.black);\r\n\t\t\tjLabel2.setText(\"Nro. Afiliado *\");\r\n\t\t\tjContentPane = new PanelConImagen(\"./fondos/imgFondoGrl.jpg\");\r\n\t\t\tjContentPane.setLayout(null);\r\n\t\t\tjContentPane.setForeground(java.awt.Color.white);\r\n\t\t\tjContentPane.setBackground(new java.awt.Color(80,80,80));\r\n\t\t\tjContentPane.add(jLabel1, null);\r\n\t\t\tjContentPane.add(jLabel2, null);\r\n\t\t\tjContentPane.add(jLabel3, null);\r\n\t\t\tjContentPane.add(jLabel4, null);\r\n\t\t\tjContentPane.add(getJTextField1(), null);\r\n\t\t\tjContentPane.add(getJTextField2(), null);\r\n\t\t\tjContentPane.add(getJButton1(), null);\r\n\t\t\tjContentPane.add(getJButton2(), null);\r\n\t\t\tjContentPane.add(jTextField1, null);\r\n\t\t\tjContentPane.add(getJTextField(), null);\r\n\t\t\tjContentPane.add(jLabel5, null);\r\n\t\t\tjContentPane.add(getJTextField3(), null);\r\n\t\t\tjContentPane.add(jLabel6, null);\r\n\t\t\tjContentPane.add(getJTextField4(), null);\r\n\t\t\tjContentPane.add(jLabel7, null);\r\n\t\t\tjContentPane.add(jLabel8, null);\r\n\t\t\tjContentPane.add(getJTextField5(), null);\r\n\t\t\tjContentPane.add(jLabel9, null);\r\n\t\t\tjContentPane.add(getJTextField6(), null);\r\n\t\t\tjContentPane.add(jLabel10, null);\r\n\t\t\tjContentPane.add(getJCheckBox(), null);\r\n\t\t\tjContentPane.add(getJPanelFecha(), null);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}", "private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjLabel2 = new JLabel();\r\n\t\t\tjLabel2.setText(\"Note: the anon level is defined visiting a php script with the current testing proxy, this can take some time.\");\r\n\t\t\tlblDebug = new JLabel();\r\n\t\t\tlblDebug.setText(\"\");\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tGroupLayout gl_jContentPane = new GroupLayout(jContentPane);\r\n\t\t\tgl_jContentPane.setHorizontalGroup(\r\n\t\t\t\tgl_jContentPane.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t\t.addGroup(gl_jContentPane.createSequentialGroup()\r\n\t\t\t\t\t\t.addGap(1)\r\n\t\t\t\t\t\t.addGroup(gl_jContentPane.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t\t\t\t.addGroup(gl_jContentPane.createSequentialGroup()\r\n\t\t\t\t\t\t\t\t.addComponent(jLabel2, GroupLayout.PREFERRED_SIZE, 606, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t\t\t.addContainerGap())\r\n\t\t\t\t\t\t\t.addGroup(gl_jContentPane.createSequentialGroup()\r\n\t\t\t\t\t\t\t\t.addComponent(getJToolBar(), GroupLayout.DEFAULT_SIZE, 1383, Short.MAX_VALUE)\r\n\t\t\t\t\t\t\t\t.addGap(10))))\r\n\t\t\t\t\t.addGroup(gl_jContentPane.createSequentialGroup()\r\n\t\t\t\t\t\t.addContainerGap()\r\n\t\t\t\t\t\t.addComponent(lblDebug, GroupLayout.PREFERRED_SIZE, 676, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t.addContainerGap(28, Short.MAX_VALUE))\r\n\t\t\t\t\t.addComponent(getJScrollPane(), GroupLayout.DEFAULT_SIZE, 717, Short.MAX_VALUE)\r\n\t\t\t);\r\n\t\t\tgl_jContentPane.setVerticalGroup(\r\n\t\t\t\tgl_jContentPane.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t\t.addGroup(gl_jContentPane.createSequentialGroup()\r\n\t\t\t\t\t\t.addGap(1)\r\n\t\t\t\t\t\t.addComponent(getJToolBar(), GroupLayout.PREFERRED_SIZE, 53, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\r\n\t\t\t\t\t\t.addComponent(getJScrollPane(), GroupLayout.DEFAULT_SIZE, 264, Short.MAX_VALUE)\r\n\t\t\t\t\t\t.addGap(19)\r\n\t\t\t\t\t\t.addComponent(lblDebug, GroupLayout.PREFERRED_SIZE, 16, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\r\n\t\t\t\t\t\t.addComponent(jLabel2, GroupLayout.PREFERRED_SIZE, 19, GroupLayout.PREFERRED_SIZE))\r\n\t\t\t);\r\n\t\t\tjContentPane.setLayout(gl_jContentPane);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}", "private void fillContentPane(){\n contentPane.add(inicio, \"inicio\");\n contentPane.add(registro, \"registro\");\n contentPane.add(login, \"login\");\n\n /* PANELES DEL USUARIO */\n contentPane.add(inicioUser, \"inicioUser\");\n contentPane.add(notif, \"notif\");\n contentPane.add(perfil, \"perfil\");\n contentPane.add(nuevoColectivo, \"nuevoColectivo\");\n contentPane.add(nuevoProyecto, \"nuevoProyecto\");\n contentPane.add(informes, \"informes\");\n\n /* DISPLAYS */\n contentPane.add(displayProject, \"displayProject\");\n contentPane.add(displayCollective, \"displayCollective\");\n\n /* PANELES DEL ADMINISTRADOR */\n contentPane.add(inicioAdmin, \"inicioAdmin\");\n contentPane.add(adminUsuarios, \"adminUsuarios\");\n contentPane.add(adminConfig, \"adminConfig\");\n }", "private void initMainComponents() {\n\t\tsetBackground(Color.RED);\n\t\tsetTitle(\"TABL\");\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetBounds(100, 100, 974, 842);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBackground(new Color(100, 149, 237));\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\t\n\t\tcontentPane.setVisible(true);\n\t\tcontentPane.setLayout(null);\n\t\t\n\t\t\n\t\tlayeredPane = new JLayeredPane();\n\t\tlayeredPane.setBounds(10, 40, 941, 757);\n\t\tcontentPane.add(layeredPane);\n\t\t\n\t\tsetForeground(Color.BLACK);\n\t\tsetIconImage(Toolkit.getDefaultToolkit().getImage(AdminManageUsers.class.getResource(\"/resources/Logo.PNG\")));\n\n\t}", "private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjLabel4 = new JLabel();\r\n\t\t\tjLabel4.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\r\n\t\t\tjLabel4.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\tjLabel4.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\t\tjLabel4.setLocation(new Point(296, 355));\r\n\t\t\tjLabel4.setSize(new Dimension(120, 30));\r\n\t\t\tjLabel4.setText(\" Quitter\");\r\n\t\t\tjLabel21 = new JLabel();\r\n\t\t\tjLabel21.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\tjLabel21.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\t\tjLabel21.setText(\" Sauvegarde\");\r\n\t\t\tjLabel21.setLocation(new Point(88, 355));\r\n\t\t\tjLabel21.setSize(new Dimension(120, 30));\r\n\t\t\tjLabel21.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\r\n\t\t\tjLabel2 = new JLabel();\r\n\t\t\tjLabel2.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\r\n\t\t\tjLabel2.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\tjLabel2.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\t\tjLabel2.setLocation(new Point(348, 165));\r\n\t\t\tjLabel2.setSize(new Dimension(120, 30));\r\n\t\t\tjLabel2.setText(\" Parametre(s)\");\r\n\t\t\tjLabel1 = new JLabel();\r\n\t\t\tjLabel1.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\tjLabel1.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\t\tjLabel1.setLocation(new Point(192, 164));\r\n\t\t\tjLabel1.setSize(new Dimension(120, 30));\r\n\t\t\tjLabel1.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\r\n\t\t\tjLabel1.setText(\" Rech / Modif / Suppr\");\r\n\t\t\tjLabel = new JLabel();\r\n\t\t\tjLabel.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\tjLabel.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\t\tjLabel.setLocation(new Point(36, 164));\r\n\t\t\tjLabel.setSize(new Dimension(120, 30));\r\n\t\t\tjLabel.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\r\n\t\t\tjLabel.setText(\" Ajouter\");\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(null);\r\n\t\t\tjContentPane.add(getNouveujButton(), null);\r\n\t\t\tjContentPane.add(getRecherchejButton(), null);\r\n\t\t\tjContentPane.add(jLabel, null);\r\n\t\t\tjContentPane.add(jLabel1, null);\r\n\t\t\tjContentPane.add(getParamjButton(), null);\r\n\t\t\tjContentPane.add(jLabel2, null);\r\n\t\t\tjContentPane.add(getSavejButton(), null);\r\n\t\t\tjContentPane.add(jLabel21, null);\r\n\t\t\tjContentPane.add(getQuitjButton(), null);\r\n\t\t\tjContentPane.add(jLabel4, null);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}", "private void init() {\n\t\tcontentPane=getContentPane();\n\t\ttopPanel= new JPanel();\n\t\tcontentPane.setLayout(new BorderLayout());\n\t\tlabel = new JLabel(\"Username\");\n\t\ttextfield = new JTextField(\"Type Username\", 15);\n\t\ttextfield.addActionListener(aListener);\n\t\tconnectButton = new JButton(\"Connect to Server\");\n\t\tconnectButton.addActionListener(aListener);\n\t\ttopPanel.setLayout(new FlowLayout());\n\t\tlabel.setVerticalAlignment(FlowLayout.LEFT);\n\t\ttopPanel.add(label);\n\t\ttopPanel.add(textfield);\n\t\ttopPanel.add(connectButton);\n\t\tsetSize(600, 600);\n\t\tcontentPane.add(topPanel, BorderLayout.NORTH);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\t\tthis.addWindowListener(framListener);\n\t}", "private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(new BorderLayout());\r\n\t\t\tjContentPane.add(getJPanel(), BorderLayout.CENTER);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setTitle(\"Error\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "private void initialize() {\n\t\tthis.setSize(500, 400);\n\t\tthis.setContentPane(getJContentPane());\n\t\t\n\t\tthis.setTitle(\"Login\");\n\t}", "private JComponent buildContentPane() {\r\n contentPane = new ContentPanel(new BorderLayout());\r\n contentPane.add(buildToolBar(), BorderLayout.NORTH);\r\n contentPane.add(buildMainPanel(), BorderLayout.CENTER);\r\n return contentPane;\r\n }", "private JPanel getJContentPane() {\n\t\tif (jContentPane == null) {\n\t\t\tjLabel412 = new JLabel();\n\t\t\tjLabel412.setBounds(new Rectangle(65, 142, 338, 15));\n\t\t\tjLabel412.setText(\"Nájdeš ju ako prílohu práce, alebo na stránke\");\n\t\t\tjLabel412.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\t\tjLabel411 = new JLabel();\n\t\t\tjLabel411.setBounds(new Rectangle(65, 124, 338, 15));\n\t\t\tjLabel411.setText(\"Ak stále nevieš, čo zadávať, pozri si dokumentáciu\");\n\t\t\tjLabel411.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\t\tjLabel43 = new JLabel();\n\t\t\tjLabel43.setText(\"Analýza náhodných súzvukov\");\n\t\t\tjLabel43.setSize(new Dimension(276, 15));\n\t\t\tjLabel43.setLocation(new Point(65, 7));\n\t\t\tjLabel43.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\t\tjLabel42 = new JLabel();\n\t\t\tjLabel42.setBounds(new Rectangle(65, 38, 267, 15));\n\t\t\tjLabel42.setText(\"Možnosť zvýšiť si úroveň\");\n\t\t\tjLabel42.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\t\tjLabel41 = new JLabel();\n\t\t\tjLabel41.setBounds(new Rectangle(65, 106, 430, 15));\n\t\t\tjLabel41.setText(\"Skús nazvať to, čo počuješ a zadať to do textového riadku\");\n\t\t\tjLabel41.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\n\t\t\tjContentPane = new JPanel();\n\t\t\tjContentPane.setLayout(null);\n\t\t\tjContentPane.add(jLabel5, null);\n\t\t\tjContentPane.add(jLabel1, null);\n\t\t\tjContentPane.add(jLabel2, null);\n\t\t\tjContentPane.add(jLabel3, null);\n\t\t\tjContentPane.add(jLabel4, null);\n\t\t\tjContentPane.add(jLabel41, null);\n\t\t\tjContentPane.add(jLabel42, null);\n\t\t\tjContentPane.add(jLabel43, null);\n\t\t\tjContentPane.add(jLabel411, null);\n\t\t\tjContentPane.add(jLabel412, null);\n\t\t}\n\t\treturn jContentPane;\n\t}", "private JPanel getJContentPane() {\n\t\tif (jContentPane == null) {\n\t\t\tjContentPane = new JPanel();\n\t\t\tjContentPane.setLayout(new BorderLayout());\n\t\t\tjContentPane.setBorder(javax.swing.BorderFactory.createEmptyBorder(\n\t\t\t\t\t5, 5, 5, 5));\n\t\t\tjContentPane.add(getButtonPanel(), java.awt.BorderLayout.SOUTH);\n\t\t\tjContentPane.add(getScrollPane(), java.awt.BorderLayout.CENTER);\n\t\t}\n\t\treturn jContentPane;\n\t}", "private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(new BorderLayout());\r\n\t\t\tjContentPane.add(getPanelCrearCuenta(), BorderLayout.CENTER);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}", "private void initComponents() {\n\t\t\n\t\tsetBounds(800, 250, 320, 250);\n\t\tcontentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\t{\n\t\t\tbuttonPane = new JPanel();\n\t\t\tbuttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\t\t{\n\t\t\t\tbtnOK = new JButton(\"OK\");\n\t\t\t\tbtnOK.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\t\t\tbtnOK.setIcon(null);\n\t\t\t\tbtnOK.setActionCommand(\"OK\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tbuttonPane.add(btnOK);\n\t\t\t\tgetRootPane().setDefaultButton(btnOK);\n\t\t\t}\n\t\t\t{\n\t\t\t\tbtnCancel = new JButton(\"Cancel\");\n\t\t\t\tbtnCancel.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\t\t\tbtnCancel.setActionCommand(\"Cancel\");\n\t\t\t\tbuttonPane.add(btnCancel);\n\t\t\t}\n\t\t}\n\t\tGroupLayout groupLayout = new GroupLayout(getContentPane());\n\t\tgroupLayout.setHorizontalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addComponent(contentPanel, GroupLayout.DEFAULT_SIZE, 311, Short.MAX_VALUE)\n\t\t\t\t\t\t.addComponent(buttonPane, GroupLayout.DEFAULT_SIZE, 311, Short.MAX_VALUE))\n\t\t\t\t\t.addGap(76))\n\t\t);\n\t\tgroupLayout.setVerticalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addComponent(contentPanel, GroupLayout.PREFERRED_SIZE, 160, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 39, Short.MAX_VALUE)\n\t\t\t\t\t.addComponent(buttonPane, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t);\n\t\tlblXCoordinate = new JLabel(\"X coordinate (ULP):\");\n\t\tlblXCoordinate.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tlblYCoordinate = new JLabel(\"Y coordinate (ULP):\");\n\t\tlblYCoordinate.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tlblHeight = new JLabel(\"Height:\");\n\t\tlblHeight.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tlblWidth = new JLabel(\"Width:\");\n\t\tlblWidth.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\t\n\t\ttxtXC = new JTextField();\n\t\ttxtXC.setEnabled(false);\n\t\ttxtXC.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\ttxtXC.setColumns(10);\n\t\t\n\t\ttxtYC = new JTextField();\n\t\ttxtYC.setEnabled(false);\n\t\ttxtYC.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\ttxtYC.setColumns(10);\n\t\t\n\t\ttxtHeight = new JTextField();\n\t\ttxtHeight.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\ttxtHeight.setColumns(10);\n\t\t\n\t\ttxtWidth = new JTextField();\n\t\ttxtWidth.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\ttxtWidth.setColumns(10);\n\t\t\n\t\ttxtColor = new JTextField();\n\t\ttxtColor.setMaximumSize(new Dimension(6, 22));\n\t\ttxtColor.setEnabled(false);\n\t\ttxtColor.setVisible(false);\n\t\ttxtColor.setColumns(10);\n\t\t\n\t\ttxtFill = new JTextField();\n\t\ttxtFill.setMaximumSize(new Dimension(6, 22));\n\t\ttxtFill.setVisible(false);\n\t\ttxtFill.setEnabled(false);\n\t\ttxtFill.setColumns(10);\n\t\t\n\t\t\n\t\tGroupLayout gl_contentPanel = new GroupLayout(contentPanel);\n\t\tgl_contentPanel.setHorizontalGroup(\n\t\t\tgl_contentPanel.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addComponent(lblXCoordinate, GroupLayout.DEFAULT_SIZE, 129, Short.MAX_VALUE)\n\t\t\t\t\t\t.addComponent(lblYCoordinate)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(txtColor, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t.addComponent(txtFill, GroupLayout.PREFERRED_SIZE, 22, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 29, Short.MAX_VALUE)\n\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addComponent(lblHeight, Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(lblWidth, Alignment.TRAILING))))\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(txtHeight, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(txtWidth, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t.addComponent(txtYC, Alignment.LEADING, 0, 0, Short.MAX_VALUE)\n\t\t\t\t\t\t\t.addComponent(txtXC, Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 68, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\tgl_contentPanel.setVerticalGroup(\n\t\t\tgl_contentPanel.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(lblXCoordinate)\n\t\t\t\t\t\t.addComponent(txtXC, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(lblYCoordinate)\n\t\t\t\t\t\t.addComponent(txtYC, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(txtColor, GroupLayout.DEFAULT_SIZE, 53, Short.MAX_VALUE)\n\t\t\t\t\t\t\t.addComponent(txtFill, GroupLayout.DEFAULT_SIZE, 53, Short.MAX_VALUE))\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblHeight)\n\t\t\t\t\t\t\t\t.addComponent(txtHeight, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblWidth)\n\t\t\t\t\t\t\t\t.addComponent(txtWidth, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t.addGap(29))\n\t\t);\n\t\tcontentPanel.setLayout(gl_contentPanel);\n\t\tgetContentPane().setLayout(groupLayout);\n\t}", "private void init() {\n\t\tsetModal(true);\n\t\t\n\t\tsetResizable(false);\n\t\tgetContentPane().setLayout(new GridBagLayout());\n\t\tc = new GridBagConstraints();\n\t\tc.insets = new Insets(10, 10, 10, 10);\n\t\tc.gridx = 0;\n\t\tc.gridy = 0;\n\t}", "private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tGridBagConstraints gridBagConstraints14 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints14.gridx = 0;\r\n\t\t\tgridBagConstraints14.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints14.gridwidth = 3;\r\n\t\t\tgridBagConstraints14.weightx = 1.0D;\r\n\t\t\tgridBagConstraints14.insets = new Insets(16, 0, 8, 0);\r\n\t\t\tgridBagConstraints14.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints14.gridy = 2;\r\n\t\t\tGridBagConstraints gridBagConstraints13 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints13.gridx = 2;\r\n\t\t\tgridBagConstraints13.insets = new Insets(4, 8, 0, 16);\r\n\t\t\tgridBagConstraints13.gridy = 1;\r\n\t\t\tlabel4 = new BLabel();\r\n\t\t\tlabel4.setText(\":0:000\");\r\n\t\t\tGridBagConstraints gridBagConstraints12 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints12.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints12.gridy = 1;\r\n\t\t\tgridBagConstraints12.weightx = 1.0;\r\n\t\t\tgridBagConstraints12.insets = new Insets(4, 0, 0, 0);\r\n\t\t\tgridBagConstraints12.gridx = 1;\r\n\t\t\tGridBagConstraints gridBagConstraints3 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints3.gridx = 0;\r\n\t\t\tgridBagConstraints3.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints3.insets = new Insets(4, 16, 0, 8);\r\n\t\t\tgridBagConstraints3.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints3.gridy = 1;\r\n\t\t\tlblEnd = new BLabel();\r\n\t\t\tlblEnd.setText(\"End\");\r\n\t\t\tlblEnd.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\t\tlblEnd.setHorizontalTextPosition(SwingConstants.RIGHT);\r\n\t\t\tlblEnd.setVerticalAlignment(SwingConstants.CENTER);\r\n\t\t\tGridBagConstraints gridBagConstraints2 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints2.gridx = 2;\r\n\t\t\tgridBagConstraints2.insets = new Insets(8, 8, 0, 16);\r\n\t\t\tgridBagConstraints2.gridy = 0;\r\n\t\t\tlabel3 = new BLabel();\r\n\t\t\tlabel3.setText(\":0:000\");\r\n\t\t\tGridBagConstraints gridBagConstraints1 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints1.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints1.gridy = 0;\r\n\t\t\tgridBagConstraints1.weightx = 1.0;\r\n\t\t\tgridBagConstraints1.insets = new Insets(8, 0, 0, 0);\r\n\t\t\tgridBagConstraints1.gridx = 1;\r\n\t\t\tGridBagConstraints gridBagConstraints = new GridBagConstraints();\r\n\t\t\tgridBagConstraints.gridx = 0;\r\n\t\t\tgridBagConstraints.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints.insets = new Insets(8, 16, 0, 8);\r\n\t\t\tgridBagConstraints.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints.gridy = 0;\r\n\t\t\tlblStart = new BLabel();\r\n\t\t\tlblStart.setText(\"Start\");\r\n\t\t\tlblStart.setPreferredSize(new Dimension(30, 13));\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(new GridBagLayout());\r\n\t\t\tjContentPane.add(lblStart, gridBagConstraints);\r\n\t\t\tjContentPane.add(getNumStart(), gridBagConstraints1);\r\n\t\t\tjContentPane.add(label3, gridBagConstraints2);\r\n\t\t\tjContentPane.add(lblEnd, gridBagConstraints3);\r\n\t\t\tjContentPane.add(getNumEnd(), gridBagConstraints12);\r\n\t\t\tjContentPane.add(label4, gridBagConstraints13);\r\n\t\t\tjContentPane.add(getJPanel(), gridBagConstraints14);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}", "private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(null);\r\n\r\n\t\t\tJTabbedPane mainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\t\tmainTabbedPane.setBounds(10, 29, 606, 331);\r\n\t\t\tjContentPane.add(mainTabbedPane);\r\n\t\t\tmainTabbedPane.addTab(\"Verify\", null, getVerifyPanel(), null);\r\n\t\t\tmainTabbedPane.addTab(\"Add/Capture\", null, getCapturePanel(), null);\r\n\t\t\tmainTabbedPane.addTab(\"Train\", null, getTrainPanel(), null);\r\n\t\t\t// mainTabbedPane.addTab(\"Train Data Editor\", null,\r\n\t\t\t// getTrainTestDataEditorPanel(), null);\r\n\t\t\tjContentPane.add(getStatusLabel());\r\n\t\t\tjContentPane.add(getAboutLabel());\r\n\r\n\t\t\tJLabel lblMouseGestureRecognition = new JLabel(\"Mouse Gesture Recognition\");\r\n\t\t\tlblMouseGestureRecognition.setFont(new Font(\"Arial\", Font.BOLD, 15));\r\n\t\t\tlblMouseGestureRecognition.setBounds(410, 11, 206, 27);\r\n\t\t\tjContentPane.add(lblMouseGestureRecognition);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}", "public void initialize() {\n this.setPreferredSize(new com.ulcjava.base.application.util.Dimension(548, 372));\n this.add(getTitlePane(), new com.ulcjava.base.application.GridBagConstraints(0, 0, 3, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getXpertIvyPane(), new com.ulcjava.base.application.GridBagConstraints(0, 1, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getLicensePane(), new com.ulcjava.base.application.GridBagConstraints(0, 2, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getDatabasePane(), new com.ulcjava.base.application.GridBagConstraints(0, 3, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getJavaPane(), new com.ulcjava.base.application.GridBagConstraints(0, 4, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n }", "private void initialize() {\n\t\tthis.setSize(629, 270);\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.setPreferredSize(new Dimension(629, 270));\n\t\tthis.setMinimumSize(new Dimension(629, 270));\n\t\tthis.setMaximumSize(new Dimension(629, 270));\n\t\tthis.add(getJSplitPane2(), BorderLayout.CENTER);\n\t}", "private JPanel getJContentPane() {\n\t\tif (jContentPane == null) {\n\t\t\tjLabelTexto = new JLabel();\n\t\t\tjLabelTexto.setText(\"À desenvolver...\");\n\t\t\tjLabelTexto.setSize(new Dimension(100, 20));\n\t\t\tjLabelTexto.setLocation(new Point(98, 61));\n\t\t\tjContentPane = new JPanel();\n\t\t\tjContentPane.setLayout(null);\n\t\t\tjContentPane.add(jLabelTexto, null);\n\t\t\tjContentPane.add(getJButtonOK(), null);\n\t\t}\n\t\treturn jContentPane;\n\t}", "private JPanel getJContentPane() {\n\t\tif (jContentPane == null) {\n\t\t\tGridBagConstraints gridBagScrollPane = new GridBagConstraints();\n\t\t\tgridBagScrollPane.fill = GridBagConstraints.BOTH;\n\t\t\tgridBagScrollPane.gridy = 0;\n\t\t\tgridBagScrollPane.weightx = 1.0;\n\t\t\tgridBagScrollPane.weighty = 1.0;\n\t\t\tgridBagScrollPane.gridwidth = 2;\n\t\t\tgridBagScrollPane.gridx = 0;\n\t\t\tGridBagConstraints gridBagButtonOk = new GridBagConstraints();\n\t\t\tgridBagButtonOk.gridx = 1;\n\t\t\tgridBagButtonOk.anchor = GridBagConstraints.EAST;\n\t\t\tgridBagButtonOk.insets = new Insets(5, 0, 5, 5);\n\t\t\tgridBagButtonOk.gridy = 1;\n\t\t\tGridBagConstraints gridBagButtonCancel = new GridBagConstraints();\n\t\t\tgridBagButtonCancel.gridx = 0;\n\t\t\tgridBagButtonCancel.insets = new Insets(5, 5, 5, 0);\n\t\t\tgridBagButtonCancel.gridy = 1;\n\t\t\tjContentPane = new JPanel();\n\t\t\tjContentPane.setLayout(new GridBagLayout());\n\t\t\tjContentPane.add(getJButtonCancel(), gridBagButtonCancel);\n\t\t\tjContentPane.add(getJButtonOk(), gridBagButtonOk);\n\t\t\tjContentPane.add(getJScrollPane(), gridBagScrollPane);\n\t\t}\n\t\treturn jContentPane;\n\t}", "private javax.swing.JPanel getJContentPane() {\n\t\tif (jContentPane == null) {\n\t\t\tjContentPane = new javax.swing.JPanel();\n\t\t\tjava.awt.FlowLayout layFlowLayout14 = new java.awt.FlowLayout();\n\t\t\tlayFlowLayout14.setHgap(0);\n\t\t\tlayFlowLayout14.setVgap(0);\n\t\t\tjContentPane.setLayout(layFlowLayout14);\n\t\t\tjContentPane.add(getJPanel3(), null);\n\t\t\tjContentPane.add(getJPanel2(), null);\n\t\t\tjContentPane.setBorder(new javax.swing.border.SoftBevelBorder(BevelBorder.RAISED));\n\t\t\tjContentPane.setBackground(new java.awt.Color(226,226,222));\n\t\t}\n\t\treturn jContentPane;\n\t}", "private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(new BorderLayout());\r\n\t\t\tjContentPane.add(getJPanelCambiarPassword(), BorderLayout.CENTER);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}", "private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)\n );\n }", "private void initialize() {\r\n\t\tthis.setSize(new java.awt.Dimension(611,413));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"Afiliados\");\r\n\t\tthis.setIconImage(Toolkit.getDefaultToolkit().getImage(\"./fondos/miniLogo.gif\"));\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tthis.setVisible(true);\r\n\t\tthis.addWindowListener(new java.awt.event.WindowAdapter() {\r\n\t\t\tpublic void windowClosing(java.awt.event.WindowEvent e) {\r\n\t\t\t\tcdor.actionCerrar();\r\n\t\t\t\tdispose();\t\t\t}\r\n\t\t});\r\n\t}", "public void init() {\n setLayout(new BorderLayout());\n }", "private void initialize() {\r\n\t\tSpringLayout springLayout = new SpringLayout();\r\n\t\tthis.setLayout(springLayout);\r\n\r\n\t\tcoi = new ContenedorOfertasInterno(gui);\r\n\r\n\t\tscrollPane = new JScrollPane(coi, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\r\n\t\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\r\n\t\tscrollPane.getVerticalScrollBar().setUI(new ThinSolidScrollBarUi(7));\r\n\t\tscrollPane.getVerticalScrollBar().setUnitIncrement(16);\r\n\t\tscrollPane.setPreferredSize(new Dimension(1006, 563));\r\n\t\tscrollPane.setBackground(Color.BLUE);\r\n\r\n\t\tthis.add(scrollPane);\r\n\t\tthis.setLayer(scrollPane, 1);\r\n\r\n\t}", "private void initialiseUI()\n { \n // The actual data go in this component.\n String defaultRootElement = \"icr:regionSetData\";\n JPanel contentPanel = initialiseContentPanel(defaultRootElement);\n pane = new JScrollPane(contentPanel);\n \n panelLayout = new GroupLayout(this);\n\t\tthis.setLayout(panelLayout);\n\t\tthis.setBackground(DAOConstants.BG_COLOUR);\n\n\t\tpanelLayout.setAutoCreateContainerGaps(true);\n\n panelLayout.setHorizontalGroup(\n\t\t\tpanelLayout.createParallelGroup()\n\t\t\t.addComponent(pane, 10, 520, 540)\n );\n\n panelLayout.setVerticalGroup(\n\t\t\tpanelLayout.createSequentialGroup()\n .addComponent(pane, 10, GroupLayout.PREFERRED_SIZE, Short.MAX_VALUE)\n );\n }", "private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setPreferredSize(new java.awt.Dimension(686, 530));\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, 699, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 541, Short.MAX_VALUE)\n );\n\n pack();\n }", "private JPanel getJContentPane() {\r\n\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(null);\r\n\t\t\tjContentPane.setSize(new Dimension(600, 320));\r\n\t\t\tjContentPane.add(getEkitCoreEditorHTMLPanel(), null);\r\n\t\t\tjContentPane.add(getJToolBarEditorHTML(), null);\r\n\t\t\tjContentPane.add(getJButtonAcceptHTML(), null);\r\n\t\t\tjContentPane.add(getJButtonCancelHTML(), null);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}", "private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(null);\r\n\t\t\tjContentPane.add(getLblNewLabel());\r\n\t\t\tjContentPane.add(getBoton3());\r\n\t\t\tjContentPane.add(getBoton2());\r\n\t\t\tjContentPane.add(getPanel());\r\n\r\n\t\t\tJButton botonOfertas = new JButton();\r\n\t\t\tbotonOfertas.setText(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainGUI.botonOfertas.text_1\")); //$NON-NLS-1$ //$NON-NLS-2$\r\n\t\t\tbotonOfertas.addActionListener(new ActionListener() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\tVector<RuralHouse> houses = getBusinessLogic().getAllRuralHouses();\r\n\t\t\t\t\tif (houses.isEmpty()) {\r\n\t\t\t\t\t\tshowDialog(\"No hay casas rurales\");\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tAllHouses ah = new AllHouses(getBusinessLogic(), houses);\r\n\t\t\t\t\t\tah.setVisible(true);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tbotonOfertas.setBounds(0, 191, 479, 65);\r\n\t\t\tjContentPane.add(botonOfertas);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}", "private JPanel buildContentPane(){\t\n\t\tinitialiseElements();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new FlowLayout());\n\t\tpanel.setBackground(Color.lightGray);\n\t\tpanel.add(scroll);\n\t\tpanel.add(bouton);\n\t\tpanel.add(bouton2);\n\t\treturn panel;\n\t}", "private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjLabelDataNum = new JLabel();\r\n\t\t\tjLabelDataNum.setBounds(new Rectangle(484, 6, 70, 23));\r\n\t\t\tjLabelDataNum.setBorder(BorderFactory.createLineBorder(SystemColor.controlShadow, 1));\r\n\t\t\tjLabelDataNum.setText(\"共 0 个\");\r\n\t\t\tjLabel12 = new JLabel();\r\n\t\t\tjLabel12.setBounds(new Rectangle(7, 36, 80, 23));\r\n\t\t\tjLabel12.setText(\"配置名称:\");\r\n\t\t\tjLabelDataDir = new JLabel();\r\n\t\t\tjLabelDataDir.setBounds(new Rectangle(88, 6, 389, 23));\r\n\t\t\tjLabelDataDir.setForeground(new Color(204, 51, 0));\r\n\t\t\tjLabelDataDir.setBorder(BorderFactory.createLineBorder(SystemColor.controlShadow, 1));\r\n\t\t\tjLabelDataDir.setText(\"\");\r\n\t\t\tjLabel7 = new JLabel();\r\n\t\t\tjLabel7.setBounds(new Rectangle(7, 6, 80, 23));\r\n\t\t\tjLabel7.setText(\"数据文件夹:\");\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(null);\r\n\t\t\tjContentPane.add(getJPanelVar(), null);\r\n\t\t\tjContentPane.add(getJPaneSql(), null);\r\n\t\t\tjContentPane.add(getJPanelConfig(), null);\r\n\t\t\tjContentPane.add(getJButtonInto(), null);\r\n\t\t\tjContentPane.add(jLabel5, null);\r\n\t\t\tjContentPane.add(getJComboBoxDbType(), null);\r\n\t\t\tjContentPane.add(jLabel7, null);\r\n\t\t\tjContentPane.add(jLabelDataDir, null);\r\n\t\t\tjContentPane.add(getJButtonSelectData(), null);\r\n\t\t\tjContentPane.add(getJButtonOpen(), null);\r\n\t\t\tjContentPane.add(jLabel12, null);\r\n\t\t\tjContentPane.add(getJComboBoxConfigName(), null);\r\n\t\t\tjContentPane.add(getJButtonSaveCfg(), null);\r\n\t\t\tjContentPane.add(getJButtonDelCfg(), null);\r\n\t\t\tjContentPane.add(jLabelDataNum, null);\r\n\t\t\tjContentPane.add(getJButtonSaveInto(), null);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}", "private void setContentPane(JLabel jLabel) {\n\t\t\n\t}", "private JPanel getJContentPane() {\n if( jContentPane == null ) {\n GridBagConstraints gridBagConstraints11 = new GridBagConstraints();\n gridBagConstraints11.gridx = 0;\n gridBagConstraints11.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints11.insets = new java.awt.Insets(3,5,0,5);\n gridBagConstraints11.gridy = 3;\n jLabel2 = new JLabel();\n jLabel2.setText(\"(The fallback language for all missing keys is english.)\");\n GridBagConstraints gridBagConstraints4 = new GridBagConstraints();\n gridBagConstraints4.gridx = 0;\n gridBagConstraints4.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints4.weightx = 1.0;\n gridBagConstraints4.gridy = 6;\n GridBagConstraints gridBagConstraints3 = new GridBagConstraints();\n gridBagConstraints3.fill = java.awt.GridBagConstraints.NONE;\n gridBagConstraints3.gridy = 4;\n gridBagConstraints3.weightx = 0.0;\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints3.insets = new java.awt.Insets(5,25,10,5);\n gridBagConstraints3.gridx = 0;\n GridBagConstraints gridBagConstraints2 = new GridBagConstraints();\n gridBagConstraints2.gridx = 0;\n gridBagConstraints2.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints2.insets = new java.awt.Insets(15,5,0,5);\n gridBagConstraints2.gridy = 2;\n jLabel1 = new JLabel();\n jLabel1.setText(\"Choose the language used as source for the translation:\");\n GridBagConstraints gridBagConstraints1 = new GridBagConstraints();\n gridBagConstraints1.fill = java.awt.GridBagConstraints.NONE;\n gridBagConstraints1.gridy = 1;\n gridBagConstraints1.weightx = 0.0;\n gridBagConstraints1.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints1.insets = new java.awt.Insets(5,25,0,5);\n gridBagConstraints1.gridx = 0;\n GridBagConstraints gridBagConstraints = new GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.insets = new java.awt.Insets(5,5,0,5);\n gridBagConstraints.gridy = 0;\n jLabel = new JLabel();\n jLabel.setText(\"Choose the target language to translate into:\");\n jContentPane = new JPanel();\n jContentPane.setLayout(new GridBagLayout());\n jContentPane.add(jLabel, gridBagConstraints);\n jContentPane.add(getCBoxTargetLanguage(), gridBagConstraints1);\n jContentPane.add(jLabel1, gridBagConstraints2);\n jContentPane.add(getCBoxSourceLanguage(), gridBagConstraints3);\n jContentPane.add(getJPanel(), gridBagConstraints4);\n jContentPane.add(jLabel2, gridBagConstraints11);\n }\n return jContentPane;\n }", "private JPanel getJContentPane() {\n if (jContentPane == null) {\n jContentPane = new JPanel();\n jContentPane.setLayout(new BorderLayout());\n jContentPane.add(getCsvFilePanel(), BorderLayout.NORTH);\n jContentPane.add(getResultPane(), BorderLayout.CENTER);\n }\n return jContentPane;\n }", "public Container createContentPane()\r\n\t{\r\n\t\t//add items to lvl choice\r\n\t\tfor(int g=1; g<21; g++)\r\n\t\t{\r\n\t\t\tcharLvlChoice.addItem(String.valueOf(g));\r\n\t\t}\r\n\r\n\t\t//add stuff to panels\r\n\t\tinputsPanel.setLayout(new GridLayout(2,2,3,3));\r\n\t\tdisplayPanel.setLayout(new GridLayout(1,1,8,8));\r\n\t\tinputsPanel.add(runButton);\r\n\t\tinputsPanel.add(clearButton);\r\n\t\t\ttimesPanel.add(timesLabel);\r\n\t\t\ttimesPanel.add(runTimesField);\r\n\t\tinputsPanel.add(timesPanel);\r\n\t\t\tlevelPanel.add(levelLabel);\r\n\t\t\tlevelPanel.add(charLvlChoice);\r\n\t\tinputsPanel.add(levelPanel);\r\n\t\t\trunTimesField.setText(\"1\");\r\n\t\tdisplay.setEditable(false);\r\n\r\n\t\trunButton.addActionListener(this);\r\n\t\tclearButton.addActionListener(this);\r\n\r\n\t\tdisplay.setBackground(Color.black);\r\n\t\tdisplay.setForeground(Color.white);\r\n\r\n\t\tsetTabsAndStyles(display);\r\n\t\tdisplay = addTextToTextPane();\r\n\t\t\tJScrollPane scrollPane = new JScrollPane(display);\r\n\t\t\t\tscrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\t\t\tscrollPane.setPreferredSize(new Dimension(500, 200));\r\n\t\tdisplayPanel.add(scrollPane);\r\n\r\n\t\t//create Container and set attributes\r\n\t\tContainer c = getContentPane();\r\n\t\t\tc.setLayout(new BorderLayout());\r\n\t\t\tc.add(inputsPanel, BorderLayout.NORTH);\r\n\t\t\tc.add(displayPanel, BorderLayout.CENTER);\r\n\r\n\t\treturn c;\r\n\t}", "private JPanel getJContentPane() {\n\t\tif (jContentPane == null) {\n\t\t\tjLabel = new JLabel();\n\t\t\tjLabel.setText(\"JLabel\");\n\t\t\tjContentPane = new JPanel();\n\t\t\tjContentPane.setLayout(new BoxLayout(getJContentPane(), BoxLayout.X_AXIS));\n\t\t\tjContentPane.add(getJPanel(), null);\n\t\t\tjContentPane.add(jLabel, null);\n\t\t}\n\t\treturn jContentPane;\n\t}", "private javax.swing.JPanel getJContentPane() {\n\t\tif (jContentPane == null) {\n\t\t\tjContentPane = new javax.swing.JPanel();\n\t\t\tjava.awt.FlowLayout layFlowLayout21 = new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 1, 1);\n\t\t\tlayFlowLayout21.setHgap(0);\n\t\t\tlayFlowLayout21.setVgap(0);\n\t\t\tjContentPane.setLayout(layFlowLayout21);\n\t\t\tjContentPane.add(getJPanel(), null);\n\t\t\tjContentPane.add(getJPanel1(), null);\n\t\t\tjContentPane.add(getJPanel(), null);\n\t\t\tjContentPane.add(getJPanel1(), null);\n\t\t\tjContentPane.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjContentPane.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n\t\t\tjContentPane.setPreferredSize(new java.awt.Dimension(810,600));\n\t\t}\n\t\treturn jContentPane;\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}", "private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tmsgLabel = new JLabel();\r\n\t\t\tmsgLabel.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\tmsgLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\t\tmsgLabel.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(new BorderLayout());\r\n\t\t\tjContentPane.add(getSouthPanel(), BorderLayout.SOUTH);\r\n\t\t\tjContentPane.add(getLabelPanel(), BorderLayout.NORTH);\r\n\t\t\tjContentPane.add(getTestAreaScrollPane(), BorderLayout.CENTER);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}", "private void setupLayout()\n {\n Container contentPane;\n\n setSize(300, 300); \n\n contentPane = getContentPane();\n\n // Layout this PINPadWindow\n }", "private JPanel getJContentPane() {\n\t\tif (jContentPane == null) {\n\t\t\tl2 = new JLabel();\n\t\t\tl2.setBounds(new Rectangle(10, 50, 125, 16));\n\t\t\tl2.setText(\"Identifiant étudiant:\");\n\t\t\tl1 = new JLabel();\n\t\t\tl1.setBounds(new Rectangle(10, 10, 125, 16));\n\t\t\tl1.setText(\"Code Cours\");\n\t\t\tjContentPane = new JPanel();\n\t\t\tjContentPane.setLayout(null);\n\t\t\tjContentPane.add(l1, null);\n\t\t\tjContentPane.add(l2, null);\n\t\t\tjContentPane.add(getJButton(), null);\n\t\t\tjContentPane.add(getTxtIdC(), null);\n\t\t\tjContentPane.add(getTxtIdE(), null);\n\t\t}\n\t\treturn jContentPane;\n\t}", "private void initialize() {\r\n this.setSize(new Dimension(374, 288));\r\n this.setContentPane(getJPanel());\r\n this.setResizable(false);\r\n this.setModal(true);\r\n this.setTitle(\"颜色选择面板\");\r\n addJPanel();\r\n\t}", "@Override\n public void init() {\n javax.swing.SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n setContentPane(new BallWorld(640, 480)); // BouncingBalls.BallWorld is a JPanel\n }\n });\n }", "private void initLayoutComponents()\n {\n viewPaneWrapper = new JPanel(new CardLayout());\n viewPane = new JTabbedPane();\n crawlPane = new JPanel(new BorderLayout());\n transitionPane = new JPanel();\n searchPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n resultsPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n }", "public void initComponents(){\t\r\n\t\tsetName(\"dialog01\");\r\n\t\tsetTitle(\"Candle Exercise\");\r\n\t\tsetBounds(100, 100, 356, 300);\r\n\t\tgetContentPane().setLayout(new BorderLayout());\r\n\t\tcontentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tgetContentPane().add(contentPanel, BorderLayout.CENTER);\r\n\t\tcontentPanel.setLayout(null);\r\n\t\tFont font = new Font(\"Tahoma\", Font.PLAIN, 13);\r\n\r\n\t\tbtnCurrent = new JButton(\"Show Labels\");\r\n\t\tbtnCurrent.setToolTipText(\"shows current best data saved\");\r\n\t\tbtnCurrent.setFont(new Font(\"Tahoma\", Font.PLAIN, 13));\r\n\t\tbtnCurrent.setFocusPainted(false);\r\n\t\tbtnCurrent.setBounds(68, 77, 214, 88);\r\n\t\tcontentPanel.add(btnCurrent);\r\n\r\n\t}", "private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(300, 200);\n this.setPreferredSize(new java.awt.Dimension(450, 116));\n this.add(getListPanel(), java.awt.BorderLayout.CENTER);\n this.add(getButtonPanel(), java.awt.BorderLayout.SOUTH);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n contentPanel = new javax.swing.JPanel();\n\n setBackground(new java.awt.Color(255, 255, 255));\n\n contentPanel.setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout contentPanelLayout = new javax.swing.GroupLayout(contentPanel);\n contentPanel.setLayout(contentPanelLayout);\n contentPanelLayout.setHorizontalGroup(\n contentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 393, Short.MAX_VALUE)\n );\n contentPanelLayout.setVerticalGroup(\n contentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 307, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(contentPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(contentPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n }", "private void setContentPanelComponents(){\n\t\tcontentPanel = new JPanel();\n\t\tcontentPanel.setLayout(new BorderLayout());\n\t\tcontentPanel.setBackground(Constant.DIALOG_BOX_COLOR_BG);\n\t\tgetContentPane().add(contentPanel, BorderLayout.NORTH);\n\t\t\n\t\t//--------------------------\n\t\tJPanel payrollDatePanel= new JPanel();\n\t\tpayrollDatePanel.setLayout(new GridLayout(0,2,5,5));\n\t\tpayrollDatePanel.setPreferredSize(new Dimension(0,20));\n\t\tpayrollDatePanel.setOpaque(false);\n\t\t\n\t\tlblPayrollDate = new JLabel(\"Payroll Date: \");\n\t\tlblPayrollDate.setForeground(Color.WHITE);\n\t\tlblPayrollDate.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tpayrollDatePanel.add(lblPayrollDate);\n\t\t\n\t\t\n\t\tpayrollDateComboBox = new JComboBox<String>();\n\t\tpayrollDatePanel.add(payrollDateComboBox);\n\t\n\t\t\n\t\tcontentPanel.add(payrollDatePanel,BorderLayout.NORTH);\n\t\t//--------------------------\n\t\t\n\t\n\t\tJPanel textAreaPanel= new JPanel();\n\t\ttextAreaPanel.setPreferredSize(new Dimension(0, 95));\n\t\ttextAreaPanel.setLayout(null);\n\t\ttextAreaPanel.setOpaque(false);\n\t\t\n\t\t\n\t\tcontentPanel.add(textAreaPanel,BorderLayout.CENTER);\n\t\t\n\t\tJLabel lblComments = new JLabel(\"Comments:\");\n\t\tlblComments.setForeground(Color.WHITE);\n\t\tlblComments.setBounds(10, 11, 75, 14);\n\t\ttextAreaPanel.add(lblComments);\n\t\t\n\t\tcommentTextArea = new JTextArea();\n\t\tcommentTextArea.setBounds(87, 14, 100, 75);\n\t\ttextAreaPanel.add(commentTextArea);\n\t}", "private void initFrame() {\n setLayout(new BorderLayout());\n }", "private JPanel getJContentPane() {\n if (jContentPane == null) {\n foutLabel = new JLabel();\n foutLabel.setBounds(new Rectangle(0, 120, 249, 25));\n foutLabel.setForeground(Color.red);\n foutLabel.setText(\"\");\n streep = new JLabel();\n streep.setBounds(new Rectangle(5, 30, 98, 41));\n streep.setFont(new Font(\"Elephant\", Font.BOLD, 24));\n streep.setText(\"_______\");\n jContentPane = new JPanel();\n jContentPane.setLayout(null);\n jContentPane.add(getTellerVeld(), null);\n jContentPane.add(getNoemerVeld(), null);\n jContentPane.add(getVereenvoudigKnop(), null);\n jContentPane.add(streep, null);\n jContentPane.add(foutLabel, null);\n }\n return jContentPane;\n }", "private void initComponents() {\n\t\tpanelImagen = new JScrollPane();\n\t\tscrollPane2 = new JScrollPane();\n\t\ttextoInformacion = new JTextPane();\n\t\tbotonSalir = new JButton();\n\n\t\t//======== this ========\n\t\tContainer contentPane = getContentPane();\n\n\t\t//======== scrollPane2 ========\n\t\t{\n\t\t\tscrollPane2.setViewportView(textoInformacion);\n\t\t}\n\n\t\t//---- botonSalir ----\n\t\tbotonSalir.setText(\"Salir\");\n\t\tbotonSalir.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tbotonSalirMouseClicked(e);\n\t\t\t}\n\t\t});\n\n\t\tGroupLayout contentPaneLayout = new GroupLayout(contentPane);\n\t\tcontentPane.setLayout(contentPaneLayout);\n\t\tcontentPaneLayout.setHorizontalGroup(\n\t\t\tcontentPaneLayout.createParallelGroup()\n\t\t\t\t.addGroup(contentPaneLayout.createSequentialGroup()\n\t\t\t\t\t.addGap(2, 2, 2)\n\t\t\t\t\t.addComponent(panelImagen, GroupLayout.PREFERRED_SIZE, 375, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(18, 18, 18)\n\t\t\t\t\t.addGroup(contentPaneLayout.createParallelGroup()\n\t\t\t\t\t\t.addComponent(botonSalir, GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)\n\t\t\t\t\t\t.addComponent(scrollPane2, GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)))\n\t\t);\n\t\tcontentPaneLayout.setVerticalGroup(\n\t\t\tcontentPaneLayout.createParallelGroup()\n\t\t\t\t.addGroup(contentPaneLayout.createSequentialGroup()\n\t\t\t\t\t.addComponent(scrollPane2, GroupLayout.PREFERRED_SIZE, 293, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t.addComponent(botonSalir)\n\t\t\t\t\t.addGap(0, 7, Short.MAX_VALUE))\n\t\t\t\t.addComponent(panelImagen)\n\t\t);\n\t\tpack();\n\t\tsetLocationRelativeTo(getOwner());\n\t\t// JFormDesigner - End of component initialization //GEN-END:initComponents\n\t}", "private void init() {\n\n\t\tthis.setResizable(false);\n\t\tthis.setSize(575, 155);\n\t\tthis.setLocationRelativeTo(null);\n\t\tthis.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\n\n\t\tJPanel panNom = addPannelName();\n\t\tJPanel panPass = addPannelPassword();\n\t\tJPanel panTopic = addPannelTopic();\n\n\t\tJPanel content = new JPanel();\n\t\tcontent.add(panNom);\n\t\tcontent.add(panPass);\n\t\tcontent.add(panTopic);\n\n\t\tJPanel control = new JPanel();\n\n\t\tJButton okButton = addOKButtonTopic();\n\t\tJButton cancelButton = addCancelButton();\n\n\t\tcontrol.add(okButton);\n\t\tcontrol.add(cancelButton);\n\n\t\tthis.getContentPane().add(content, BorderLayout.NORTH);\n\t\tthis.getContentPane().add(control, BorderLayout.SOUTH);\n\t}", "private void setup() {\r\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\r\n\r\n // list\r\n listPanel = new JPanel();\r\n listPanel.setLayout(new BoxLayout(listPanel, BoxLayout.PAGE_AXIS));\r\n\r\n JScrollPane scrollPane = new JScrollPane(listPanel);\r\n\r\n // button\r\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));\r\n buttonPanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));\r\n\r\n JButton button = new JButton(\"Close\");\r\n button.addActionListener(this);\r\n buttonPanel.add(button);\r\n\r\n // container\r\n Container contentPane = getContentPane();\r\n contentPane.setLayout(new BorderLayout());\r\n\r\n contentPane.add(scrollPane, BorderLayout.CENTER);\r\n contentPane.add(buttonPanel, BorderLayout.PAGE_END);\r\n }", "private void initComponents() {\n\t\tscrollPane = new JScrollPane();\n\t\tlocationList = new JList();\n\t\tloadLocationsButton = new JButton();\n\t\ttempCheck = new JCheckBox();\n\t\trainCheck = new JCheckBox();\n\t\tdisplayLiveButton = new JButton();\n\t\tdisplayChangeButton = new JButton();\n\t\tsourceLabel = new JLabel();\n\t\tweather2Radio = new JRadioButton();\n\t\tweatherTimeLapseRadio = new JRadioButton();\n\t\tdisplayLabel = new JLabel();\n\n\t\t//======== this ========\n\t\tsetTitle(\"Melbourne Weather Application\");\n\t\tsetMinimumSize(new Dimension(450, 310));\n\t\tContainer contentPane = getContentPane();\n\n\t\t//======== scrollPane ========\n\t\t{\n\n\t\t\t//---- locationList ----\n\t\t\tlocationList.setFont(new Font(\"Arial\", Font.PLAIN, 12));\n\t\t\tscrollPane.setViewportView(locationList);\n\t\t}\n\n\t\t//---- loadLocationsButton ----\n\t\tloadLocationsButton.setText(\"Load Locations\");\n\t\tloadLocationsButton.setFont(new Font(\"Arial\", Font.PLAIN, 12));\n\n\t\t//---- tempCheck ----\n\t\ttempCheck.setText(\"Temperature\");\n\t\ttempCheck.setFont(new Font(\"Arial\", Font.PLAIN, 12));\n\n\t\t//---- rainCheck ----\n\t\trainCheck.setText(\"Rainfall\");\n\t\trainCheck.setFont(new Font(\"Arial\", Font.PLAIN, 12));\n\n\t\t//---- displayLiveButton ----\n\t\tdisplayLiveButton.setText(\"Display Live Information\");\n\t\tdisplayLiveButton.setFont(new Font(\"Arial\", Font.PLAIN, 12));\n\n\t\t//---- displayChangeButton ----\n\t\tdisplayChangeButton.setText(\"Display Change Over Time\");\n\t\tdisplayChangeButton.setFont(new Font(\"Arial\", Font.PLAIN, 12));\n\n\t\t//---- sourceLabel ----\n\t\tsourceLabel.setText(\"Source:\");\n\t\tsourceLabel.setFont(new Font(\"Arial\", Font.PLAIN, 12));\n\n\t\t//---- weather2Radio ----\n\t\tweather2Radio.setText(\"MelbourneWeather2\");\n\t\tweather2Radio.setSelected(true);\n\t\tweather2Radio.setFont(new Font(\"Arial\", Font.PLAIN, 12));\n\n\t\t//---- weatherTimeLapseRadio ----\n\t\tweatherTimeLapseRadio.setText(\"MelbourneWeatherTimeLapse\");\n\t\tweatherTimeLapseRadio.setFont(new Font(\"Arial\", Font.PLAIN, 12));\n\n\t\t//---- displayLabel ----\n\t\tdisplayLabel.setText(\"Display:\");\n\t\tdisplayLabel.setFont(new Font(\"Arial\", Font.PLAIN, 12));\n\n\t\tGroupLayout contentPaneLayout = new GroupLayout(contentPane);\n\t\tcontentPane.setLayout(contentPaneLayout);\n\t\tcontentPaneLayout.setHorizontalGroup(\n\t\t\tcontentPaneLayout.createParallelGroup()\n\t\t\t\t.addGroup(GroupLayout.Alignment.TRAILING, contentPaneLayout.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addGroup(contentPaneLayout.createParallelGroup()\n\t\t\t\t\t\t.addComponent(sourceLabel)\n\t\t\t\t\t\t.addComponent(displayLabel)\n\t\t\t\t\t\t.addGroup(contentPaneLayout.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(10, 10, 10)\n\t\t\t\t\t\t\t.addGroup(contentPaneLayout.createParallelGroup()\n\t\t\t\t\t\t\t\t.addComponent(weatherTimeLapseRadio)\n\t\t\t\t\t\t\t\t.addComponent(weather2Radio)\n\t\t\t\t\t\t\t\t.addComponent(tempCheck)\n\t\t\t\t\t\t\t\t.addComponent(rainCheck)\n\t\t\t\t\t\t\t\t.addGroup(contentPaneLayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t.addGap(21, 21, 21)\n\t\t\t\t\t\t\t\t\t.addComponent(loadLocationsButton))))\n\t\t\t\t\t\t.addGroup(GroupLayout.Alignment.TRAILING, contentPaneLayout.createParallelGroup()\n\t\t\t\t\t\t\t.addComponent(displayLiveButton)\n\t\t\t\t\t\t\t.addComponent(displayChangeButton)))\n\t\t\t\t\t.addGap(18, 18, 18)\n\t\t\t\t\t.addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 186, Short.MAX_VALUE))\n\t\t);\n\t\tcontentPaneLayout.setVerticalGroup(\n\t\t\tcontentPaneLayout.createParallelGroup()\n\t\t\t\t.addGroup(GroupLayout.Alignment.TRAILING, contentPaneLayout.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addComponent(sourceLabel)\n\t\t\t\t\t.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t.addComponent(weather2Radio)\n\t\t\t\t\t.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t.addComponent(weatherTimeLapseRadio)\n\t\t\t\t\t.addGap(14, 14, 14)\n\t\t\t\t\t.addComponent(loadLocationsButton)\n\t\t\t\t\t.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)\n\t\t\t\t\t.addComponent(displayLabel)\n\t\t\t\t\t.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t.addComponent(tempCheck)\n\t\t\t\t\t.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t.addComponent(rainCheck)\n\t\t\t\t\t.addGap(18, 18, Short.MAX_VALUE)\n\t\t\t\t\t.addComponent(displayLiveButton)\n\t\t\t\t\t.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t.addComponent(displayChangeButton)\n\t\t\t\t\t.addGap(16, 16, 16))\n\t\t\t\t.addComponent(scrollPane)\n\t\t);\n\t\tpack();\n\t\tsetLocationRelativeTo(getOwner());\n\n\t\t//---- buttonGroup1 ----\n\t\tButtonGroup buttonGroup1 = new ButtonGroup();\n\t\tbuttonGroup1.add(weather2Radio);\n\t\tbuttonGroup1.add(weatherTimeLapseRadio);\n\t\t// JFormDesigner - End of component initialization //GEN-END:initComponents\n\t}", "private JPanel getJContentPane() {\n\t\tif (jContentPane == null) {\n\t\t\tPassLabel = new JLabel();\n\t\t\tPassLabel.setBounds(new Rectangle(75, 170, 100, 30));\n\t\t\tPassLabel.setText(\"Password : \");\n\t\t\tNameLabel = new JLabel();\n\t\t\tNameLabel.setBounds(new Rectangle(75, 120, 100, 30));\n\t\t\tNameLabel.setText(\"Name : \");\n\t\t\tjContentPane = new JPanel();\n\t\t\tjContentPane.setLayout(null);\n\t\t\tjContentPane.add(NameLabel, null);\n\t\t\tjContentPane.add(PassLabel, null);\n\t\t\tjContentPane.add(getNameTextField(), null);\n\t\t\tjContentPane.add(getPasswordField(), null);\n\t\t\tjContentPane.add(getLoginButton(), null);\n\t\t\tjContentPane.add(getClearButton(), null);\n\t\t\t\n\t\t}\n\t\treturn jContentPane;\n\t}", "private void setContent() {\n\t\t// sets window content visible\n\t\tthis.getContentPane().setVisible(true);\n\n\t\t// sets up desktop area inside JFrame for JInternalFrame\n\t\tdesktop = new JDesktopPane();\n\t\tdesktop.setOpaque(false);\n\t\ti_console = getNewInternalFrame();\n\t\ti_palette = getNewInternalFrame();\n\n\t\tJPanel s_workspace = new JPanel(new BorderLayout());\n\t\tJPanel s_palette = new JPanel(new BorderLayout());\n\t\tdock_palette.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ti_palette_docked = !i_palette_docked;\n\t\t\t\ti_palette.setSize(new Dimension(250, 200));\n\t\t\t}\n\t\t});\n\t\ts_palette.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tif (SwingUtilities.isRightMouseButton(e)) {\n\t\t\t\t\trightMenuClick = true;\n\t\t\t\t\trmenu.removeAll();\n\t\t\t\t\trmenu.add(dock_palette);\n\t\t\t\t\trmenu.show(e.getComponent(), e.getX(), e.getY());\n\t\t\t\t}\n\t\t\t\tif (SwingUtilities.isLeftMouseButton(e)) {\n\t\t\t\t\trightMenuClick = false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// palette internalframe content\n\n\t\ts_palette.setLayout(new BoxLayout(s_palette, BoxLayout.Y_AXIS));\n\n\t\tJButton button_DRect = new JButton(\"DraggableRect\");\n\t\tbutton_DRect.setAlignmentX(JButton.CENTER_ALIGNMENT);\n\t\tbutton_DRect.setMaximumSize(new Dimension(125, 25));\n\t\tbutton_DRect.addActionListener(this);\n\t\tbutton_DRect.setActionCommand(\"draggableRect\");\n\t\ts_palette.add(button_DRect);\n\n\t\ts_palette.add(Box.createRigidArea(new Dimension(0, 10)));\n\n\t\tJButton button_Assignment = new JButton(\"Assignment\");\n\t\tbutton_Assignment.setAlignmentX(JButton.CENTER_ALIGNMENT);\n\t\tbutton_Assignment.setMaximumSize(new Dimension(125, 25));\n\t\tbutton_Assignment.addActionListener(this);\n\t\tbutton_Assignment.setActionCommand(\"assignment\");\n\t\ts_palette.add(button_Assignment);\n\n\t\ts_palette.add(Box.createRigidArea(new Dimension(0, 10)));\n\n\t\tJButton button_Conditional = new JButton(\"Conditional\");\n\t\tbutton_Conditional.setAlignmentX(JButton.CENTER_ALIGNMENT);\n\t\tbutton_Conditional.addActionListener(this);\n\t\tbutton_Conditional.setActionCommand(\"conditional\");\n\t\tbutton_Conditional.setMaximumSize(new Dimension(125, 25));\n\t\ts_palette.add(button_Conditional);\n\n\t\ts_palette.add(Box.createRigidArea(new Dimension(0, 10)));\n\n\t\tJButton button_Loop = new JButton(\"Loop\");\n\t\tbutton_Loop.setAlignmentX(JButton.CENTER_ALIGNMENT);\n\t\tbutton_Loop.setMaximumSize(new Dimension(125, 25));\n\t\tbutton_Loop.addActionListener(this);\n\t\tbutton_Loop.setActionCommand(\"loop\");\n\t\ts_palette.add(button_Loop);\n\n\t\ts_palette.add(Box.createRigidArea(new Dimension(0, 10)));\n\t\t// ---------------------------------------------------------------------------------\n\n\t\tJButton button_Function = new JButton(\"Function\");\n\t\tbutton_Function.setAlignmentX(JButton.CENTER_ALIGNMENT);\n\t\tbutton_Function.setMaximumSize(new Dimension(125, 25));\n\t\tbutton_Function.addActionListener(this);\n\t\tbutton_Function.setActionCommand(\"function\");\n\t\ts_palette.add(button_Function);\n\n\t\ts_palette.add(Box.createRigidArea(new Dimension(0, 10)));\n\t\t// -------------------------------------------------------------------------------\n\t\tJButton button_Start = new JButton(\"Start\");\n\t\tbutton_Start.setAlignmentX(JButton.CENTER_ALIGNMENT);\n\t\tbutton_Start.setMaximumSize(new Dimension(125, 25));\n\t\tbutton_Start.addActionListener(this);\n\t\tbutton_Start.setActionCommand(\"start\");\n\t\ts_palette.add(button_Start);\n\n\t\ts_palette.add(Box.createRigidArea(new Dimension(0, 10)));\n\n\t\tJButton button_Text = new JButton(\"Script\");\n\t\tbutton_Text.setAlignmentX(JButton.CENTER_ALIGNMENT);\n\t\tbutton_Text.setMaximumSize(new Dimension(125, 25));\n\t\tbutton_Text.addActionListener(this);\n\t\tbutton_Text.setActionCommand(\"script\");\n\t\ts_palette.add(button_Text);\n\n\t\tJPanel s_output = new JPanel(new BorderLayout());\n\n\t\tdock_console.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ti_console_docked = !i_console_docked;\n\t\t\t\tif (!i_console_docked) {\n\t\t\t\t\ti_console.setSize(new Dimension(250, 200));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tcodeLabel.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tif (SwingUtilities.isRightMouseButton(e)) {\n\t\t\t\t\trightMenuClick = true;\n\t\t\t\t\trmenu.removeAll();\n\t\t\t\t\trmenu.add(dock_console);\n\t\t\t\t\trmenu.show(e.getComponent(), e.getX(), e.getY());\n\t\t\t\t}\n\t\t\t\tif (SwingUtilities.isLeftMouseButton(e)) {\n\t\t\t\t\trightMenuClick = false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tJScrollPane codeScrollPane = new JScrollPane(codeLabel); // made\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// scrollPane\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// connecting\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// to\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// codeLabel\n\t\tJScrollPane s_workspace_ScrollPane = new JScrollPane(s_workspace);\n\t\tJScrollPane s_palette_ScrollPane = new JScrollPane(s_palette);\n\t\tJScrollPane s_output_ScrollPane = new JScrollPane(s_output);\n\t\t// JScrollPane s_main_ScrollPane = new JScrollPane(desktop);\n\n\t\ti_console.getContentPane().add(codeScrollPane);\n\t\ti_palette.getContentPane().add(s_palette_ScrollPane);\n\n\t\tcodeScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); \n\t\ts_workspace_ScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\ts_palette_ScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\ts_output_ScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\t// s_main_ScrollPane\n\t\t// .setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\n\t\tdesktop.add(i_console);\n\t\tdesktop.add(i_palette);\n\t\tthis.setContentPane(desktop);\n\t\t// this.setContentPane(s_main_ScrollPane);\n\n\t\t// buffer panel between JFrame and p_main content\n\t\tbufferPanel.setVisible(true);\n\t\tbufferPanel.setLayout(new GridBagLayout());\n\t\tbufferPanel.setOpaque(false);\n\t\tthis.getContentPane().add(bufferPanel);\n\n\t\t// GridBagConstraints for setting p_main into bufferPanel\n\t\tGridBagConstraints gbc_p_main = new GridBagConstraints();\n\t\tgbc_p_main.anchor = GridBagConstraints.CENTER;\n\t\tgbc_p_main.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_p_main.weightx = 1;\n\t\tgbc_p_main.weighty = 1;\n\t\tgbc_p_main.gridx = 0;\n\t\tgbc_p_main.gridy = 0;\n\t\tgbc_p_main.fill = GridBagConstraints.BOTH;\n\n\t\t// initializes JPanel encapsulating the content (p_main)\n\t\tp_main.setVisible(true);\n\t\tp_main.setBorder(BorderFactory.createLineBorder(Color.black));\n\t\tp_main.setRequestFocusEnabled(false);\n\t\tp_main.setOpaque(false);\n\t\tp_main.setFocusable(false);\n\t\t// p_main.setBackground(Color.WHITE);\n\t\tbufferPanel.add(p_main, gbc_p_main);\n\t\tGridBagLayout gbl_p_main = new GridBagLayout();\n\t\tgbl_p_main.columnWidths = new int[] { 0, 0, 0, 0 };\n\t\tgbl_p_main.rowHeights = new int[] { 0, 0, 0, 0, 0, 0, 0, 0 };\n\t\tgbl_p_main.columnWeights = new double[] { 1.0, 2.0, 1.0, Double.MIN_VALUE };\n\t\tgbl_p_main.rowWeights = new double[] { 1.0, 2.0, 2.0, 2.0, 2.0, 4.0, 1.0, Double.MIN_VALUE };\n\t\tp_main.setLayout(gbl_p_main);\n\n\t\t// this is the left panel\n\t\t// initializes p_palette\n\t\tp_palette.setVisible(true);\n\t\tp_palette.setOpaque(false);\n\t\tGridBagConstraints gbc_p_palette = new GridBagConstraints();\n\t\tgbc_p_palette.anchor = GridBagConstraints.WEST;\n\t\tgbc_p_palette.gridheight = 6;\n\t\tgbc_p_palette.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_p_palette.fill = GridBagConstraints.BOTH;\n\t\tgbc_p_palette.gridx = 0;\n\t\tgbc_p_palette.gridy = 0;\n\n\t\tp_main.add(p_palette, gbc_p_palette);\n\t\tGridBagLayout gbl_p_palette = new GridBagLayout();\n\t\tgbl_p_palette.columnWidths = new int[] { 0 };\n\t\tgbl_p_palette.rowHeights = new int[] { 0 };\n\t\tgbl_p_palette.columnWeights = new double[] { Double.MIN_VALUE };\n\t\tgbl_p_palette.rowWeights = new double[] { Double.MIN_VALUE };\n\t\tp_palette.setLayout(gbl_p_palette);\n\n\t\t// this is the bottom panel\n\t\t// initializes p_console\n\t\tp_console.setVisible(true);\n\t\tp_console.setOpaque(false);\n\t\tGridBagConstraints gbc_p_console = new GridBagConstraints();\n\t\tgbc_p_console.anchor = GridBagConstraints.WEST;\n\t\tgbc_p_console.gridwidth = 2;\n\t\tgbc_p_console.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_p_console.fill = GridBagConstraints.BOTH;\n\t\tgbc_p_console.gridx = 1;\n\t\tgbc_p_console.gridy = 5;\n\t\tp_main.add(p_console, gbc_p_console);\n\t\t/*\n\t\t * GridBagLayout gbl_p_console = new GridBagLayout();\n\t\t * gbl_p_console.columnWidths = new int[]{0}; gbl_p_console.rowHeights =\n\t\t * new int[]{0}; gbl_p_console.columnWeights = new\n\t\t * double[]{Double.MIN_VALUE}; gbl_p_console.rowWeights = new\n\t\t * double[]{Double.MIN_VALUE}; p_console.setLayout(gbl_p_console);\n\t\t */\n\t\tp_console.setLayout(new BorderLayout());\n\n\t}", "private void addComponents(Container content){\r\n\r\n content.add(getRentPane());\r\n content.add(getSellPane());\r\n\r\n }", "public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }", "private javax.swing.JPanel getJContentPane() {\r\n\t\tif(jContentPane == null) {\r\n\t\t\tinstructionLabel = new JLabel();\r\n\t\t\tjContentPane = new javax.swing.JPanel();\r\n\t\t\tjContentPane.setLayout(new java.awt.BorderLayout());\r\n\t\t\tinstructionLabel.setText(\"Select the new minimal and maximal values:\");\r\n\t\t\tinstructionLabel.setPreferredSize(new java.awt.Dimension(216,55));\r\n\t\t\tinstructionLabel.setVerticalAlignment(javax.swing.SwingConstants.CENTER);\r\n\t\t\tinstructionLabel.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n\t\t\tinstructionLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r\n\t\t\tjContentPane.add(instructionLabel, java.awt.BorderLayout.NORTH);\r\n\t\t\tjContentPane.add(getJPanel(), java.awt.BorderLayout.CENTER);\r\n\t\t\tjContentPane.add(getValidationPanel(), java.awt.BorderLayout.SOUTH);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}", "private void init() {\n initComponents();\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(calendarPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(calendarPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));\n setVisible(true);\n setLocationRelativeTo(null);\n }" ]
[ "0.80564976", "0.79863834", "0.781657", "0.780102", "0.77667063", "0.75706494", "0.7561094", "0.75221556", "0.75199485", "0.7516095", "0.74889266", "0.74818385", "0.7474047", "0.745395", "0.7450439", "0.74450225", "0.74051523", "0.73895437", "0.7384667", "0.73795295", "0.7379256", "0.73589945", "0.73466015", "0.73189515", "0.73078215", "0.729246", "0.7290558", "0.7279952", "0.7277178", "0.7266716", "0.7260959", "0.7240282", "0.7237759", "0.721873", "0.7196905", "0.71941143", "0.7193143", "0.7188254", "0.7175924", "0.7154043", "0.71383095", "0.7138164", "0.71187776", "0.7115256", "0.7093767", "0.7091603", "0.70895785", "0.7058226", "0.704639", "0.70296806", "0.7026264", "0.70217186", "0.70157117", "0.700384", "0.69950104", "0.6994304", "0.6981083", "0.69630754", "0.69517756", "0.69449687", "0.69417113", "0.692572", "0.69256043", "0.69192344", "0.69132954", "0.689726", "0.6895646", "0.68865305", "0.688486", "0.6881021", "0.68782675", "0.68601", "0.68582416", "0.6841855", "0.68395203", "0.68339413", "0.6832495", "0.68236005", "0.68143624", "0.680717", "0.6806614", "0.68024594", "0.67945224", "0.6780829", "0.6775791", "0.67749727", "0.67449296", "0.6728238", "0.6722437", "0.67136544", "0.6711246", "0.6710957", "0.66819316", "0.66769373", "0.6664157", "0.6656077", "0.66482496", "0.664722", "0.66364664", "0.66351587" ]
0.6845383
73
This method initializes jMenuSapphiron
private JMenu getJMenuSapphiron() { if (jMenuSapphiron == null) { jMenuSapphiron = new JMenu(); jMenuSapphiron.setPreferredSize(new Dimension(65, 20)); jMenuSapphiron.setMnemonic(KeyEvent.VK_S); jMenuSapphiron.setLocation(new Point(0, 0)); jMenuSapphiron.setText("Sapphiron"); jMenuSapphiron.add(getJMenuFile()); jMenuSapphiron.add(getJMenuHelp()); } return jMenuSapphiron; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initMenu(){\n\t}", "private void initMenu()\n {\n bar = new JMenuBar();\n fileMenu = new JMenu(\"File\");\n crawlerMenu = new JMenu(\"Crawler\"); \n aboutMenu = new JMenu(\"About\");\n \n bar.add(fileMenu);\n bar.add(crawlerMenu);\n bar.add(aboutMenu);\n \n exit = new JMenuItem(\"Exit\");\n preferences = new JMenuItem(\"Preferences\");\n author = new JMenuItem(\"Author\");\n startCrawlerItem = new JMenuItem(\"Start\");\n stopCrawlerItem = new JMenuItem(\"Stop\");\n newIndexItem = new JMenuItem(\"New index\");\n openIndexItem = new JMenuItem(\"Open index\");\n \n stopCrawlerItem.setEnabled(false);\n \n fileMenu.add(newIndexItem);\n fileMenu.add(openIndexItem);\n fileMenu.add(exit);\n aboutMenu.add(author);\n crawlerMenu.add(startCrawlerItem);\n crawlerMenu.add(stopCrawlerItem);\n crawlerMenu.add(preferences);\n \n author.addActionListener(this);\n preferences.addActionListener(this);\n exit.addActionListener(this);\n startCrawlerItem.addActionListener(this);\n stopCrawlerItem.addActionListener(this);\n newIndexItem.addActionListener(this);\n openIndexItem.addActionListener(this);\n \n frame.setJMenuBar(bar);\n }", "public void InitializeMenu(){\n\t\tmnbBar = new JMenuBar();\n\t\tmnuFile = new JMenu(\"File\");\n\t\tmnuFormat = new JMenu(\"Format\");\n\t\tmniOpen = new JMenuItem(\"Open\");\n\t\tmniExit = new JMenuItem(\"Exit\");\n\t\tmniSave = new JMenuItem(\"Save\");\n\t\tmniSaveAs = new JMenuItem(\"Save as\");\n\t\tmniSaveAs.setMnemonic(KeyEvent.VK_A);\n\t\tmniSave.setMnemonic(KeyEvent.VK_S);\n\t\tmniChangeBgColor = new JMenuItem(\"Change Backgroud Color\");\n\t\tmniChangeFontColor = new JMenuItem(\"Change Font Color\");\n\t\t//them menu item vao menu file\n\t\tmnuFile.add(mniOpen);\n\t\tmnuFile.addSeparator();\n\t\tmnuFile.add(mniExit);\n\t\tmnuFile.add(mniSaveAs);\n\t\tmnuFile.add(mniSave);\n\t\t//them menu item vao menu format\n\t\tmnuFormat.add(mniChangeBgColor);\n\t\tmnuFormat.addSeparator();\n\t\tmnuFormat.add(mniChangeFontColor);\n\t\t//them menu file va menu format vao menu bar\n\t\tmnbBar.add(mnuFile);\n\t\tmnbBar.add(mnuFormat);\n\t\t//thiet lap menubar thanh menu chinh cua frame\n\t\tsetJMenuBar(mnbBar);\n\t}", "private void initMenu() {\n \n JMenuBar menuBar = new JMenuBar();\n \n JMenu commands = new JMenu(\"Commands\");\n \n JMenuItem add = new JMenuItem(\"Add\");\n add.addActionListener((ActionEvent e) -> {\n changeState(\"Add\");\n });\n commands.add(add);\n \n JMenuItem search = new JMenuItem(\"Search\");\n search.addActionListener((ActionEvent e) -> {\n changeState(\"Search\");\n });\n commands.add(search);\n \n JMenuItem quit = new JMenuItem(\"Quit\");\n quit.addActionListener((ActionEvent e) -> {\n System.out.println(\"QUITING\");\n System.exit(0);\n });\n commands.add(quit);\n \n menuBar.add(commands);\n \n setJMenuBar(menuBar);\n }", "public startingMenu() {\r\n initComponents();\r\n }", "private void initMenubar() {\r\n\t\tsetJMenuBar(new MenuBar(controller));\r\n\t}", "@Override\n\tpublic void setUpMenu() {\n\t\t\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 678, 450);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tframe.setJMenuBar(menuBar);\n\t\t\n\t\tmnuAcciones = new JMenu(\"Acciones\");\n\t\tmenuBar.add(mnuAcciones);\n\t\t\n\t\tmnuABMCPersona = new JMenuItem(\"ABMC de Personas\");\n\t\tmnuABMCPersona.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tmnuABMCPersonaClick();\n\t\t\t}\n\t\t});\n\t\tmnuAcciones.add(mnuABMCPersona);\n\t\t\n\t\tnuABMCTipoElemento = new JMenuItem(\"ABMC de Tipos de Elemento\");\n\t\tnuABMCTipoElemento.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tmnuABMCTipoElementoClick();\n\t\t\t}\n\t\t});\n\t\tmnuAcciones.add(nuABMCTipoElemento);\n\t\t\n\t\tnuABMCElemento = new JMenuItem(\"ABMC de Elementos\");\n\t\tnuABMCElemento.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tmnuABMCElementoClick();\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}\n\t\t});\n\t\tmnuAcciones.add(nuABMCElemento);\n\t\t\n\t\tnuAReserva = new JMenuItem(\"Hacer una Reserva\");\n\t\tnuAReserva.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tmnuAReservaClick();\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}\n\t\t});\n\t\tmnuAcciones.add(nuAReserva);\n\t\t\n\t\tnuCBReserva = new JMenuItem(\"Listado de Reservas\");\n\t\tnuCBReserva.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tmnuListadoPersonaClick();\n\t\t\t}\n\t\t});\n\t\tmnuAcciones.add(nuCBReserva);\n\t\t\n\t\tnuSalir = new JMenuItem(\"Salir\");\n\t\tnuSalir.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsalir();\n\t\t\t}\n\t\t});\n\t\tmnuAcciones.add(nuSalir);\n\t\tframe.getContentPane().setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tdesktopPane = new JDesktopPane();\n\t\tframe.getContentPane().add(desktopPane, BorderLayout.CENTER);\n\t}", "private void constructMenus()\n\t{\n\t\tthis.fileMenu = new JMenu(\"File\");\n\t\tthis.editMenu = new JMenu(\"Edit\");\n\t\tthis.caseMenu = new JMenu(\"Case\");\n\t\tthis.imageMenu = new JMenu(\"Image\");\n\t\tthis.fileMenu.add(this.saveImageMenuItem);\n\t\tthis.fileMenu.addSeparator();\n\t\tthis.fileMenu.add(this.quitMenuItem);\n\t\tthis.editMenu.add(this.undoMenuItem);\n\t\tthis.editMenu.add(this.redoMenuItem);\n\t\tthis.caseMenu.add(this.removeImageMenuItem);\n\t\tthis.imageMenu.add(this.antiAliasMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.brightenMenuItem);\n\t\tthis.imageMenu.add(this.darkenMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.grayscaleMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.resizeMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.cropMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.rotate90MenuItem);\n\t\tthis.imageMenu.add(this.rotate180MenuItem);\n\t\tthis.imageMenu.add(this.rotate270MenuItem);\n\t}", "public menu() {\n initComponents();\n }", "public menu() {\n initComponents();\n }", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "public Menu() { //Menu pannel constructor\n\t\tmenuBar = new JMenuBar();\n\t\tmenu = new JMenu(\"Menu\");\n\t\tabout = new JMenu(\"About\");\n\t\tabout.addMenuListener(new MenuListener() {\n\t\t\tpublic void menuSelected(MenuEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Ragnarock Web Browser 2017\\nIvan Mykolenko\\u00AE\", \"About\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\t\t\tpublic void menuDeselected(MenuEvent e) {\n\t\t\t}\n\t\t\tpublic void menuCanceled(MenuEvent e) {\n\t\t\t}\n\t\t});\n\t\thistory = new JMenu(\"History\");\n\t\thistory.addMenuListener(new MenuListener() {\n\t\t\tpublic void menuSelected(MenuEvent e) {\n\t\t\t\tcreateList(\"history\");\n\t\t\t\taddBackButton();\n\t\t\t\tuserViewPort.add(new JScrollPane(list), \"History\");\n\t\t\t\tlayer.show(userViewPort, \"History\");\n\t\t\t\tmenuBar.remove(removeButton);\n\t\t\t\tmenuBar.revalidate();\n\t\t\t\tviewMode = 2;\n\t\t\t}\n\t\t\tpublic void menuDeselected(MenuEvent e) {\n\t\t\t}\n\t\t\tpublic void menuCanceled(MenuEvent e) {\n\t\t\t}\n\t\t});\n\t\tbookmarks = new JMenu(\"Bookmarks\");\n\t\tbookmarks.addMenuListener(new MenuListener() {\n\t\t\tpublic void menuSelected(MenuEvent e) {\n\t\t\t\tcreateList(\"bookmarks\");\n\t\t\t\taddBackButton();\n\t\t\t\tuserViewPort.add(new JScrollPane(list), \"Bookmarks\");\n\t\t\t\tlayer.show(userViewPort, \"Bookmarks\");\n\t\t\t\tmenuBar.remove(removeButton);\n\t\t\t\tmenuBar.revalidate();\n\t\t\t\tviewMode = 3;\n\t\t\t}\n\t\t\tpublic void menuDeselected(MenuEvent e) {\n\t\t\t}\n\t\t\tpublic void menuCanceled(MenuEvent e) {\n\t\t\t}\n\t\t});\n\t\tsettingsMenuItem = new JMenuItem(\"Settings\", KeyEvent.VK_X);\n\t\tsettingsMenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcreateSettings();\n\t\t\t\tsettings.setVisible(true);\n\t\t\t}\n\t\t});\n\t\texitMenuItem = new JMenuItem(\"Exit\");\n\t\texitMenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tbackButton = new JButton(\"Back\");\n\t\tremoveButton = new JButton(\"Remove\");\n\t\tmenu.add(settingsMenuItem);\n\t\tmenu.add(exitMenuItem);\n\t\tmenuBar.add(menu);\n\t\tmenuBar.add(history);\n\t\tmenuBar.add(bookmarks);\n\t\tmenuBar.add(about);\n\t\tmenuBar.add(Box.createHorizontalGlue()); // Changing backButton's alignment to right\n\t\tsettings = new JDialog();\n\t\tadd(menuBar);\n\t\tsaveButton = new JButton(\"Save\");\n\t\tclearHistory = new JButton(\"Clear History\");\n\t\tclearBookmarks = new JButton(\"Clear Bookmarks\");\n\t\tbuttonsPanel = new JPanel();\n\t\tpanel = new JPanel();\n\t\turlField = new JTextField(15);\n\t\tedit = new JLabel(\"Edit Homepage:\");\n\t\tviewMode = 1;\n\t\tlistModel = new DefaultListModel<String>();\n\t\tlist = new JList<String>(listModel);\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n\t\tlist.setLayoutOrientation(JList.VERTICAL);\n\t}", "public Menus() {\n initComponents();\n }", "public Menu() {\n initComponents();\n }", "public Menu() {\n initComponents();\n }", "public Menu() {\n initComponents();\n }", "private void setupMenu() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tJMenuItem conn = new JMenuItem(connectAction);\n\t\tJMenuItem exit = new JMenuItem(\"退出\");\n\t\texit.addActionListener(new AbstractAction() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\texit();\n\t\t\t}\n\t\t});\n\t\tJMenu file = new JMenu(\"客户端\");\n\t\tfile.add(conn);\n\t\tmenuBar.add(file);\n\t\tsetJMenuBar(menuBar);\n\t}", "private JMenu brugerMenuSetup() {\n JMenu brugerMenu = generalMenuSetup(\"Bruger\");\n JMenuItem logUdItem = new JMenuItem(\"Log ud\");\n brugerMenu.add(logUdItem);\n logUdItem.addActionListener(\n e -> System.exit(0)\n );\n JMenuItem minListeItem = new JMenuItem(\"Min liste\");\n brugerMenu.add(minListeItem);\n\n return brugerMenu;\n }", "public LibrarianMenu() {\n initComponents();\n }", "public void init() {\n\t\tMenu menu = new Menu();\n\t\tmenu.register();\n\n\t\t// Application.getInstance().getGUILog().showMessage(\"Show a popup the proper\n\t\t// way !\");\n\n\t\t// final ActionsConfiguratorsManager manager =\n\t\t// ActionsConfiguratorsManager.getInstance();\n\n\t\t// final MDAction action = new ExampleAction();\n\t\t// Adding action to main menu\n\t\t// manager.addMainMenuConfigurator(new MainMenuConfigurator(action));\n\t\t// Adding action to main toolbar\n\t\t// manager.addMainToolbarConfigurator(new MainToolbarConfigurator(action));\n\n\t\t// pluginDir = getDescriptor().getPluginDirectory().getPath();\n\n\t\t// Creating submenu in the MagicDraw main menu\n\t\t// ActionsConfiguratorsManager manager =\n\t\t// ActionsConfiguratorsManager.getInstance();\n\t\t// manager.addMainMenuConfigurator(new\n\t\t// MainMenuConfigurator(getSubmenuActions()));\n\n\t\t/**\n\t\t * @Todo: load project options (@see myplugin.generator.options.ProjectOptions)\n\t\t * from ProjectOptions.xml and take ejb generator options\n\t\t */\n\n\t\t// for test purpose only:\n\t\t// GeneratorOptions ejbOptions = new GeneratorOptions(\"c:/temp\", \"ejbclass\",\n\t\t// \"templates\", \"{0}.java\", true, \"ejb\");\n\t\t// ProjectOptions.getProjectOptions().getGeneratorOptions().put(\"EJBGenerator\",\n\t\t// ejbOptions);\n\n\t\t// ejbOptions.setTemplateDir(pluginDir + File.separator +\n\t\t// ejbOptions.getTemplateDir()); //apsolutna putanja\n\t}", "private void createMenu(){\n\n JMenuBar mbar = new JMenuBar();\n setJMenuBar(mbar);\n JMenu Opcje = new JMenu(\"Opcje\");\n mbar.add(Opcje);\n JMenuItem Ustawienia = new JMenuItem(\"Ustawienia\");\n /** Obsluga zdarzen wcisniecia przycisku ustawien w menu */\n Ustawienia.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if(Justawienia==null)\n Justawienia =new JUstawienia();\n Justawienia.setVisible(true);\n if (controller.timer!=null)\n controller.timer.stop();\n }\n });\n Opcje.add(Ustawienia);\n Opcje.addSeparator();\n JMenuItem Info = new JMenuItem(\"Info\");\n /** Obsluga zdarzen wcisniecia przycisku info w menu */\n Info.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n controller.WyswietlInfo();\n }\n });\n Opcje.add(Info);\n }", "private void initializeMenuBar()\r\n\t{\r\n\t\tJMenuBar menuBar = new SmsMenuBar(this);\r\n\t\tsetJMenuBar(menuBar);\r\n\t}", "public void initializeMenuItems() {\n\t\tuserMenuButton = new MenuButton();\n\t\tmenu1 = new MenuItem(bundle.getString(\"mVmenu1\")); //\n\t\tmenu2 = new MenuItem(bundle.getString(\"mVmenu2\")); //\n\t}", "public MainMenu() {\n initComponents();\n }", "public MainMenu() {\n initComponents();\n }", "public MainMenu() {\n initComponents();\n }", "private void initializeMenu() {\n menu = new Menu(parent.getShell());\n MenuItem item1 = new MenuItem(menu, SWT.NONE);\n item1.setText(Resources.getMessage(\"LatticeView.9\")); //$NON-NLS-1$\n item1.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(final SelectionEvent arg0) {\n model.getClipboard().addToClipboard(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.CLIPBOARD, selectedNode));\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.SELECTED_NODE, selectedNode));\n actionRedraw();\n }\n });\n \n MenuItem item2 = new MenuItem(menu, SWT.NONE);\n item2.setText(Resources.getMessage(\"LatticeView.10\")); //$NON-NLS-1$\n item2.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(final SelectionEvent arg0) {\n controller.actionApplySelectedTransformation();\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.SELECTED_NODE, selectedNode));\n actionRedraw();\n }\n });\n }", "private void setupMenus() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\n\t\t// Build the first menu.\n\t\tJMenu menu = new JMenu(Messages.getString(\"Gui.File\")); //$NON-NLS-1$\n\t\tmenu.setMnemonic(KeyEvent.VK_A);\n\t\tmenuBar.add(menu);\n\n\t\t// a group of JMenuItems\n\t\tJMenuItem menuItem = new JMenuItem(openAction);\n\t\tmenu.add(menuItem);\n\n\t\t// menuItem = new JMenuItem(openHttpAction);\n\t\t// menu.add(menuItem);\n\n\t\t/*\n\t\t * menuItem = new JMenuItem(crudAction); menu.add(menuItem);\n\t\t */\n\n\t\tmenuItem = new JMenuItem(showLoggingFrameAction);\n\t\tmenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(quitAction);\n\t\tmenu.add(menuItem);\n\n\t\tmenuBar.add(menu);\n\n\t\tJMenu optionMenu = new JMenu(Messages.getString(\"Gui.Options\")); //$NON-NLS-1$\n\t\tmenuItem = new JCheckBoxMenuItem(baselineModeAction);\n\t\toptionMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(toggleButtonsAction);\n\t\toptionMenu.add(menuItem);\n\n\t\tmenuBar.add(optionMenu);\n\t\tJMenu buttonMenu = new JMenu(Messages.getString(\"Gui.Buttons\")); //$NON-NLS-1$\n\t\tmenuItem = new JMenuItem(wrongAnswerAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(attendingAction);\n\t\tbuttonMenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(independentAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(verbalAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(modelingAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(noAnswerAction);\n\t\tbuttonMenu.add(menuItem);\n\n\t\tmenuBar.add(buttonMenu);\n\t\tframe.setJMenuBar(menuBar);\n\n\t\tframe.pack();\n\n\t\tframe.setVisible(true);\n\t}", "public void initMenu() {\n\t\t\r\n\t\treturnToGame = new JButton(\"Return to Game\");\r\n\t\treturnToGame.setBounds(900, 900, 0, 0);\r\n\t\treturnToGame.setBackground(Color.BLACK);\r\n\t\treturnToGame.setForeground(Color.WHITE);\r\n\t\treturnToGame.setVisible(false);\r\n\t\treturnToGame.addActionListener(this);\r\n\t\t\r\n\t\treturnToStart = new JButton(\"Main Menu\");\r\n\t\treturnToStart.setBounds(900, 900, 0, 0);\r\n\t\treturnToStart.setBackground(Color.BLACK);\r\n\t\treturnToStart.setForeground(Color.WHITE);\r\n\t\treturnToStart.setVisible(false);\r\n\t\treturnToStart.addActionListener(this);\r\n\t\t\r\n\t\t//add(menubackground);\r\n\t\tadd(returnToGame);\r\n\t\tadd(returnToStart);\r\n\t}", "public void init() {\n\t\tsuper.init();\n\n\t\tsetName(NAME);\n\n\t\tmoveUpMenuItem = new JMenuItem(MENU_ITEM_MOVE_UP);\n\t\tmoveUpMenuItem.setName(NAME_MENU_ITEM_MOVE_UP);\n\t\tmoveUpMenuItem.setEnabled(true);\n\t\tmoveUpMenuItem.addActionListener(moveUpAction);\n\t\tmoveUpMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_UP,\n\t\t\t\tActionEvent.ALT_MASK));\n\n\t\tmoveDownMenuItem = new JMenuItem(MENU_ITEM_MOVE_DOWN);\n\t\tmoveDownMenuItem.setName(NAME_MENU_ITEM_MOVE_DOWN);\n\t\tmoveDownMenuItem.setEnabled(true);\n\t\tmoveDownMenuItem.addActionListener(moveDownAction);\n\t\tmoveDownMenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t\t\tKeyEvent.VK_DOWN, ActionEvent.ALT_MASK));\n\n\t\tdeleteMenuItem = new JMenuItem(MENU_ITEM_DELETE);\n\t\tdeleteMenuItem.setName(NAME_MENU_ITEM_DELETE);\n\t\tdeleteMenuItem.setEnabled(true);\n\t\tdeleteMenuItem.addActionListener(deleteAction);\n\t\tdeleteMenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t\t\tKeyEvent.VK_DELETE, 0));\n\n\t\taddMenuItem = new JMenuItem(MENU_ITEM_ADD);\n\t\taddMenuItem.setName(NAME_MENU_ITEM_ADD);\n\t\taddMenuItem.setEnabled(true);\n\t\taddMenuItem.addActionListener(addAction);\n\t\taddMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A,\n\t\t\t\tActionEvent.ALT_MASK));\n\n\t\teditMenuItem = new JMenuItem(MENU_ITEM_EDIT);\n\t\teditMenuItem.setName(NAME_MENU_ITEM_EDIT);\n\t\teditMenuItem.setEnabled(true);\n\t\teditMenuItem.addActionListener(editAction);\n\t\teditMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_E,\n\t\t\t\tActionEvent.ALT_MASK));\n\n\t\tsendMidiMenuItem = new JMenuItem(MENU_ITEM_SEND_MIDI);\n\t\tsendMidiMenuItem.setName(NAME_MENU_ITEM_SEND_MIDI);\n\t\tsendMidiMenuItem.setEnabled(false);\n\t\tsendMidiMenuItem.addActionListener(sendMidiAction);\n\t\tsendMidiMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M,\n\t\t\t\tActionEvent.ALT_MASK));\n\t}", "private void buildMenu() {\n JMenuBar mbar = new JMenuBar();\n setJMenuBar(mbar);\n\n JMenu fileMenu = new JMenu(\"File\");\n fileMenu.addMenuListener(this);\n\n JMenuItem openItem = new JMenuItem(\"Open\");\n openItem.setEnabled(false);\n JMenuItem newItem = new JMenuItem(\"New\");\n newItem.setEnabled(false);\n saveItem = new JMenuItem(\"Save\");\n saveItem.setEnabled(false);\n saveAsItem = new JMenuItem(\"Save As\");\n saveAsItem.setEnabled(false);\n reloadCalItem = new JMenuItem(RELOAD_CAL);\n exitItem = new JMenuItem(EXIT);\n\n mbar.add(makeMenu(fileMenu, new Object[]{newItem, openItem, null,\n reloadCalItem, null,\n saveItem, saveAsItem, null, exitItem}, this));\n\n JMenu viewMenu = new JMenu(\"View\");\n mbar.add(viewMenu);\n JMenuItem columnItem = new JMenuItem(COLUMNS);\n columnItem.addActionListener(this);\n JMenuItem logItem = new JMenuItem(LOG);\n logItem.addActionListener(this);\n JMenu satMenu = new JMenu(\"Satellite Image\");\n JMenuItem irItem = new JMenuItem(INFRA_RED);\n irItem.addActionListener(this);\n JMenuItem wvItem = new JMenuItem(WATER_VAPOUR);\n wvItem.addActionListener(this);\n satMenu.add(irItem);\n satMenu.add(wvItem);\n viewMenu.add(columnItem);\n viewMenu.add(logItem);\n viewMenu.add(satMenu);\n\n observability = new JCheckBoxMenuItem(\"Observability\", true);\n observability.setToolTipText(\"Check that the source is observable.\");\n remaining = new JCheckBoxMenuItem(\"Remaining\", true);\n remaining.setToolTipText(\n \"Check that the MSB has repeats remaining to be observed.\");\n allocation = new JCheckBoxMenuItem(\"Allocation\", true);\n allocation.setToolTipText(\n \"Check that the project still has sufficient time allocated.\");\n\n String ZOA = System.getProperty(\"ZOA\", \"true\");\n boolean tickZOA = true;\n if (\"false\".equalsIgnoreCase(ZOA)) {\n tickZOA = false;\n }\n\n zoneOfAvoidance = new JCheckBoxMenuItem(\"Zone of Avoidance\", tickZOA);\n localQuerytool.setZoneOfAvoidanceConstraint(!tickZOA);\n\n disableAll = new JCheckBoxMenuItem(\"Disable All\", false);\n JMenuItem cutItem = new JMenuItem(\"Cut\",\n new ImageIcon(ClassLoader.getSystemResource(\"cut.gif\")));\n cutItem.setEnabled(false);\n JMenuItem copyItem = new JMenuItem(\"Copy\",\n new ImageIcon(ClassLoader.getSystemResource(\"copy.gif\")));\n copyItem.setEnabled(false);\n JMenuItem pasteItem = new JMenuItem(\"Paste\",\n new ImageIcon(ClassLoader.getSystemResource(\"paste.gif\")));\n pasteItem.setEnabled(false);\n\n mbar.add(makeMenu(\"Edit\",\n new Object[]{\n cutItem,\n copyItem,\n pasteItem,\n null,\n makeMenu(\"Constraints\", new Object[]{observability,\n remaining, allocation, zoneOfAvoidance, null,\n disableAll}, this)}, this));\n\n mbar.add(SampClient.getInstance().buildMenu(this, sorter, table));\n\n JMenu helpMenu = new JMenu(\"Help\");\n helpMenu.setMnemonic('H');\n\n mbar.add(makeMenu(helpMenu, new Object[]{new JMenuItem(INDEX, 'I'),\n new JMenuItem(ABOUT, 'A')}, this));\n\n menuBuilt = true;\n }", "private void initialize() {\r\n //this.setVisible(true);\r\n \r\n\t // added pre-set popup menu here\r\n// this.add(getPopupFindMenu());\r\n this.add(getPopupDeleteMenu());\r\n this.add(getPopupPurgeMenu());\r\n\t}", "private void init() {\n StateManager.setState(new MenuState());\n }", "public menuAddStasiun() {\n initComponents();\n }", "private void initialize( )\n {\n this.setSize( 300, 200 );\n this.setLayout( new BorderLayout( ) );\n this.setBorder( BorderFactory.createTitledBorder( null, \"GnericMenu\", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, null ) );\n this.add( getJScrollPane( ), BorderLayout.CENTER );\n\n itemAddMenuItem.addActionListener( this );\n itemDelCategory.addActionListener( this );\n popupmenuCategory.add( itemAddMenuItem );\n popupmenuCategory.add( itemDelCategory );\n\n itemDel.addActionListener( this );\n popupmenuItem.add( itemDel );\n\n itemAddCategory.addActionListener( this );\n popupmenuMenu.add( itemAddCategory );\n }", "public Menu2() {\n initComponents();\n }", "public void menuSetup(){\r\n menu.add(menuItemSave);\r\n menu.add(menuItemLoad);\r\n menu.add(menuItemRestart);\r\n menuBar.add(menu); \r\n topPanel.add(menuBar);\r\n bottomPanel.add(message);\r\n \r\n this.setLayout(new BorderLayout());\r\n this.add(topPanel, BorderLayout.NORTH);\r\n this.add(middlePanel, BorderLayout.CENTER);\r\n this.add(bottomPanel, BorderLayout.SOUTH);\r\n \r\n }", "private void initializeMenuBar() {\n\t\tthis.hydraMenu = new HydraMenu(this.commands);\n\t\tthis.setJMenuBar(this.hydraMenu);\n\t}", "public frameMenu() {\n initComponents();\n }", "protected void initializeNavigationMenu() {\n\t\tfinal JMenu navigationMenu = new JMenu(\"Navigation\");\n\t\tthis.add(navigationMenu);\n\t\t// Revert to Picked\n\t\tfinal JMenuItem revertPickedItem = new JMenuItem();\n\t\trevertPickedItem.setAction(this.commands\n\t\t\t\t.findById(GUICmdGraphRevert.DEFAULT_ID));\n\t\trevertPickedItem.setAccelerator(KeyStroke.getKeyStroke('R',\n\t\t\t\tInputEvent.ALT_DOWN_MASK));\n\t\tnavigationMenu.add(revertPickedItem);\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}", "public MenuPanel() {\n initComponents();\n }", "public FormMenu() {\n initComponents();\n menuController = new MenuController(this);\n menuController.nonAktif();\n }", "public MenuBangunRuang() {\n initComponents();\n }", "private void initialize() {\n frame = new JFrame();\n frame.setBounds(500, 500, 450, 300);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n JMenuBar menuBar = new JMenuBar();\n frame.setJMenuBar(menuBar);\n\n\n JMenu mnArchivo = new JMenu(\"Registrar Cliente\");\n menuBar.add(mnArchivo);\n\n\n JMenuItem mntmNewMenuItem_1 = new JMenuItem(\"CLIENTE CENTRO COMERCIAL\");\n mntmNewMenuItem_1.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent arg0) {\n Principal.RegistrarCliente objPA = new Principal.RegistrarCliente();\n objPA.Clientes();\n }\n });\n mnArchivo.add( mntmNewMenuItem_1);\n\n\n JMenu mnReportes = new JMenu(\"Tiendas\");\n menuBar.add(mnReportes);\n\n JMenu mnTienda1 = new JMenu(\"ETAFASHION\");\n mnReportes.add(mnTienda1);\n\n JMenuItem mntmNewMenuItem_2 = new JMenuItem(\"Deportiva\");\n mntmNewMenuItem_2.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent arg0) {\n Comprar objVA = new Comprar(0);\n objVA.Producto(0);\n }\n });\n mnTienda1.add(mntmNewMenuItem_2);\n\n JMenuItem mntmNewMenuItem_3 = new JMenuItem(\"Casual\");\n mntmNewMenuItem_3.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent arg0) {\n Comprar objVA = new Comprar(1);\n objVA.Producto(1);\n }\n });\n mnTienda1.add(mntmNewMenuItem_3);\n\n JMenu mnTienda2 = new JMenu(\"LA GANGA\");\n mnReportes.add(mnTienda2);\n\n JMenuItem mntmNewMenuItem_4 = new JMenuItem(\"Electrodomesticos\");\n mntmNewMenuItem_4.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent arg0) {\n Comprar objVA = new Comprar(2);\n objVA.Producto(2);\n }\n });\n mnTienda2.add(mntmNewMenuItem_4);\n\n JMenuItem mntmNewMenuItem_5 = new JMenuItem(\"Tecnologia\");\n mntmNewMenuItem_5.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent arg0) {\n Comprar objVA = new Comprar(3);\n objVA.Producto(3);\n }\n });\n mnTienda2.add(mntmNewMenuItem_5);\n\n JMenuItem mnCarrito = new JMenuItem(\"Carrito\");\n mnCarrito.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent arg0) {\n Principal.Pedido objC = new Principal.Pedido();\n objC.Carrito();\n }\n });\n mnReportes.add(mnCarrito);\n\n JMenu mnArchMNSesion = new JMenu(\"Iniciar Secion\");\n menuBar.add(mnArchMNSesion);\n\n JMenuItem mntmAdministrador= new JMenuItem(\"Administrador\");\n mntmAdministrador.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent arg0) {\n Usuario usr = new Usuario();\n usr.setVisible(true);\n }\n });\n mnArchMNSesion.add(mntmAdministrador);\n\n JMenuItem mntmCliente= new JMenuItem(\"Usuario\");\n mntmCliente.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent arg0) {\n //Principal.Manual objST = new Principal.Manual();\n //objST.Manual();\n }\n });\n mnArchMNSesion.add(mntmCliente);\n\n JMenu mnManual = new JMenu(\"Manual\");\n menuBar.add(mnManual);\n\n JMenuItem mntmNewMenuItem_N = new JMenuItem(\"Servicio Técnico\");\n mntmNewMenuItem_N.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent arg0) {\n Principal.Manual objST = new Principal.Manual();\n objST.Manual();\n }\n });\n mnManual.add(mntmNewMenuItem_N);\n\n JLayeredPane layeredPane = new JLayeredPane();\n layeredPane.setBounds(23, 11, 374, 204);\n frame.getContentPane().add(layeredPane);\n\n\n }", "public void init() {\n f = new MenuFrame(\"DEMO Menu\");\n int width = Integer.parseInt(getParameter(\"width\"));\n int height = Integer.parseInt(getParameter(\"height\"));\n \n setSize(new Dimension(width, height));\n \n f.setSize(width, height);\n f.setVisible(true);\n }", "public Menu() {\n initComponents();\n setSize(822, 539);\n setLocationRelativeTo(this);\n setVisible(true);\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // Repartos\n// initializeMainMenu();\n connectMainMenuClickActions();\n \n initFirstMenu();\n }", "private MenuBar setupMenu () {\n MenuBar mb = new MenuBar ();\n Menu fileMenu = new Menu (\"File\");\n openXn = makeMenuItem (\"Open Connection\", OPEN_CONNECTION);\n closeXn = makeMenuItem (\"Close Connection\", CLOSE_CONNECTION);\n closeXn.setEnabled (false);\n MenuItem exit = makeMenuItem (\"Exit\", EXIT_APPLICATION);\n fileMenu.add (openXn);\n fileMenu.add (closeXn);\n fileMenu.addSeparator ();\n fileMenu.add (exit);\n\n Menu twMenu = new Menu (\"Tw\");\n getWksp = makeMenuItem (\"Get Workspace\", GET_WORKSPACE);\n getWksp.setEnabled (false);\n twMenu.add (getWksp);\n\n mb.add (fileMenu);\n mb.add (twMenu);\n return mb;\n }", "public MenuKullanimi()\n {\n initComponents();\n setLocationRelativeTo(null);\n }", "public menu() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}", "public Menu_Ingreso() {\n initComponents();\n setLocationRelativeTo(null);\n }", "private void init() {\n initMenu();\n initWelcome();\n search = new SearchFrame();\n search.setVisible(true);\n basePanel.add(search, \"Search\");\n add = new AddFrame();\n add.setVisible(true);\n basePanel.add(add, \"Add\");\n this.changeState(\"Welcome\");\n \n }", "private void initMenuBar() {\n\t\t// Menu Bar\n\t\tmenuBar = new JMenuBar();\n\t\tgameMenu = new JMenu(\"Boggle\");\n\t\tgameMenu.setMnemonic('B');\n\t\tmenuBar.add(gameMenu);\n\t\tthis.setJMenuBar(menuBar);\n\t\t\n\t\t// New Game\n\t\tnewGame = new JMenuItem(\"New Game\");\n\t\tnewGame.setMnemonic('N');\n\t\tnewGame.addActionListener(new NewGameListener());\n\t\tgameMenu.add(newGame);\n\t\t\n\t\t// Exit Game\n\t\texitGame = new JMenuItem(\"Exit Game\");\n\t\texitGame.setMnemonic('E');\n\t\texitGame.addActionListener(new ExitListener());\n\t\tgameMenu.add(exitGame);\n\t}", "public Menu_Train() {\n initComponents();\n }", "private void bind() \r\n\t{\r\n\t\tsuper.menuPut(\"list\", newJMenu(\"List\", 'L'));\r\n\t\tsuper.menuPut(\"list/new\", newJMenuItem(\"New\", 'N', KeyEvent.VK_1, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionNew(x));\r\n\t\tsuper.menuPut(\"list/open\", newJMenuItem(\"Open\", 'O', KeyEvent.VK_2, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionLoad(x));\r\n\t\tsuper.menuPut(\"list/save\", newJMenuItem(\"Save\", 'S', KeyEvent.VK_3, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionSave(x));\r\n\t\tsuper.menuPut(\"list/***1\", \"\");\r\n\t\tsuper.menuPut(\"list/add\", newJMenuItem(\"Add\", 'A', KeyEvent.VK_4, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionAdd(x));\r\n\t\tsuper.menuPut(\"list/remove\", newJMenuItem(\"Remove\", 'R', KeyEvent.VK_5, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionRemove(x));\r\n\t\t\r\n\t\tsuper.menuPut(\"tree\", newJMenu(\"Tree\", 'T'));\r\n\t\tsuper.menuPut(\"tree/new\", newJMenuItem(\"New\", 'N', KeyEvent.VK_1, ActionEvent.SHIFT_MASK), x -> menuEdit.actionNew(x));\r\n\t\tsuper.menuPut(\"tree/open\", newJMenuItem(\"Open\", 'O', KeyEvent.VK_2, ActionEvent.SHIFT_MASK), x -> menuEdit.actionLoad(x));\r\n\t\tsuper.menuPut(\"tree/save\", newJMenuItem(\"Save\", 'S', KeyEvent.VK_3, ActionEvent.SHIFT_MASK), x -> menuEdit.actionSave(x));\r\n\t\tsuper.menuPut(\"tree/***1\", \"\");\r\n\t\tsuper.menuPut(\"tree/add\", newJMenuItem(\"Add\", 'A', KeyEvent.VK_4, ActionEvent.SHIFT_MASK), x -> menuEdit.actionAdd(x));\r\n\t\tsuper.menuPut(\"tree/remove\", newJMenuItem(\"Remove\", 'R', KeyEvent.VK_5, ActionEvent.SHIFT_MASK), x -> menuEdit.actionRemove(x));\r\n\t\tsuper.menuPut(\"tree/move\", newJMenuItem(\"Move\", 'V', KeyEvent.VK_6, ActionEvent.SHIFT_MASK), x -> menuEdit.actionMove(x));\r\n\t\t\r\n\t\tsuper.menuPut(\"graph\", newJMenu(\"Graph\", 'G'));\r\n\t\tsuper.menuPut(\"graph/new\", newJMenuItem(\"New\", 'N', KeyEvent.VK_1, ActionEvent.CTRL_MASK), x -> menuHelp.actionNew(x));\r\n\t\tsuper.menuPut(\"graph/open\", newJMenuItem(\"Open\", 'O', KeyEvent.VK_2, ActionEvent.CTRL_MASK), x -> menuHelp.actionOpen(x));\r\n\t\tsuper.menuPut(\"graph/save\", newJMenuItem(\"Save\", 'S', KeyEvent.VK_3, ActionEvent.CTRL_MASK), x -> menuHelp.actionSave(x));\r\n\t\tsuper.menuPut(\"graph/***1\", \"\");\r\n\t\tsuper.menuPut(\"graph/add-node\", newJMenuItem(\"Add node\", 'A', KeyEvent.VK_4, ActionEvent.CTRL_MASK), x -> menuHelp.actionAddNode(x));\r\n\t\tsuper.menuPut(\"graph/remove-node\", newJMenuItem(\"Remove node\", 'R', KeyEvent.VK_5, ActionEvent.CTRL_MASK), x -> menuHelp.actionRemoveNode(x));\r\n\t\tsuper.menuPut(\"graph/move-node\", newJMenuItem(\"Move node\", 'V', KeyEvent.VK_6, ActionEvent.CTRL_MASK), x -> menuHelp.actionMoveNode(x));\r\n\t\tsuper.menuPut(\"graph/***2\", \"\");\r\n\t\tsuper.menuPut(\"graph/add-link\", newJMenuItem(\"Add link\", 'D', KeyEvent.VK_7, ActionEvent.CTRL_MASK), x -> menuHelp.actionAddLink(x));\r\n\t\tsuper.menuPut(\"graph/remove-link\", newJMenuItem(\"Remove link\", 'L', KeyEvent.VK_8, ActionEvent.CTRL_MASK), x -> menuHelp.actionRemoveLink(x));\r\n\t\t\r\n\t\tsuper.menuDump();\t\t\r\n\t}", "private void initComponents() {\r\n jPopupMenuCrosstabReporteElement = new javax.swing.JPopupMenu();\r\n jMenuItemElementProperties = new javax.swing.JMenuItem();\r\n jMenuItemCrosstabProperties = new javax.swing.JMenuItem();\r\n jMenuItemCellProperties = new javax.swing.JMenuItem();\r\n jCheckBoxMenuItemDefaultCellEdit = new javax.swing.JCheckBoxMenuItem();\r\n jSeparator1 = new javax.swing.JSeparator();\r\n jMenuItemCut = new javax.swing.JMenuItem();\r\n jMenuItemCopy = new javax.swing.JMenuItem();\r\n jMenuItemPaste = new javax.swing.JMenuItem();\r\n jMenuItemDelete = new javax.swing.JMenuItem();\r\n jSeparator3 = new javax.swing.JSeparator();\r\n jMenuItemCopyStyle = new javax.swing.JMenuItem();\r\n jMenuItemPasteStyle = new javax.swing.JMenuItem();\r\n jMenuItemTransformStaticText = new javax.swing.JMenuItem();\r\n jMenuItemPattern = new javax.swing.JMenuItem();\r\n jSeparator4 = new javax.swing.JSeparator();\r\n jPopupMenuCrosstab = new javax.swing.JPopupMenu();\r\n jMenuItemCrosstabProperties1 = new javax.swing.JMenuItem();\r\n jMenuItemCellProperties1 = new javax.swing.JMenuItem();\r\n jCheckBoxMenuItemDefaultCellEdit1 = new javax.swing.JCheckBoxMenuItem();\r\n jMenuItemPaste1 = new javax.swing.JMenuItem();\r\n\r\n jMenuItemElementProperties.setText(it.businesslogic.ireport.util.I18n.getString(\"elementProperties\",\"Element properties\"));\r\n jMenuItemElementProperties.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemElementPropertiesActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jMenuItemElementProperties);\r\n\r\n jMenuItemCrosstabProperties.setText(\"Crosstab properties\");\r\n jMenuItemCrosstabProperties.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemCrosstabPropertiesActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jMenuItemCrosstabProperties);\r\n\r\n jMenuItemCellProperties.setText(\"Cell properties\");\r\n jMenuItemCellProperties.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemCellPropertiesActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jMenuItemCellProperties);\r\n\r\n jCheckBoxMenuItemDefaultCellEdit.setText(\"Edit When-No-Data default cell\");\r\n jCheckBoxMenuItemDefaultCellEdit.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jCheckBoxMenuItemDefaultCellEditActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jCheckBoxMenuItemDefaultCellEdit);\r\n\r\n jPopupMenuCrosstabReporteElement.add(jSeparator1);\r\n\r\n jMenuItemCut.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/cut.png\")));\r\n jMenuItemCut.setText(\"Cut\");\r\n jMenuItemCut.setEnabled(false);\r\n jMenuItemCut.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemCutActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jMenuItemCut);\r\n\r\n jMenuItemCopy.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/copy.png\")));\r\n jMenuItemCopy.setText(\"Copy\");\r\n jMenuItemCopy.setEnabled(false);\r\n jMenuItemCopy.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemCopyActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jMenuItemCopy);\r\n\r\n jMenuItemPaste.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/paste.png\")));\r\n jMenuItemPaste.setText(\"Paste\");\r\n jMenuItemPaste.setEnabled(false);\r\n jMenuItemPaste.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemPasteActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jMenuItemPaste);\r\n\r\n jMenuItemDelete.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/delete.png\")));\r\n jMenuItemDelete.setText(\"Delete\");\r\n jMenuItemDelete.setEnabled(false);\r\n jMenuItemDelete.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemDeleteActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jMenuItemDelete);\r\n\r\n jPopupMenuCrosstabReporteElement.add(jSeparator3);\r\n\r\n jMenuItemCopyStyle.setEnabled(false);\r\n jMenuItemCopyStyle.setLabel(\"Copy style\");\r\n jMenuItemCopyStyle.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemCopyStyleActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jMenuItemCopyStyle);\r\n\r\n jMenuItemPasteStyle.setEnabled(false);\r\n jMenuItemPasteStyle.setLabel(\"Paste style\");\r\n jMenuItemPasteStyle.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemPasteStyleActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jMenuItemPasteStyle);\r\n\r\n jMenuItemTransformStaticText.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F3, 0));\r\n jMenuItemTransformStaticText.setLabel(\"Transform in Textfield\");\r\n jMenuItemTransformStaticText.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemTransformStaticTextActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jMenuItemTransformStaticText);\r\n\r\n jMenuItemPattern.setText(\"Field pattern\");\r\n jMenuItemPattern.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemPatternActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jMenuItemPattern);\r\n\r\n jPopupMenuCrosstabReporteElement.add(jSeparator4);\r\n\r\n jMenuItemCrosstabProperties1.setText(\"Crosstab properties\");\r\n jMenuItemCrosstabProperties1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemCrosstabPropertiesActionPerformed1(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstab.add(jMenuItemCrosstabProperties1);\r\n\r\n jMenuItemCellProperties1.setText(\"Cell properties\");\r\n jMenuItemCellProperties1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemCellPropertiesActionPerformed1(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstab.add(jMenuItemCellProperties1);\r\n\r\n jCheckBoxMenuItemDefaultCellEdit1.setText(\"Edit When-No-Data default cell\");\r\n jCheckBoxMenuItemDefaultCellEdit1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jCheckBoxMenuItemDefaultCellEdit1ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstab.add(jCheckBoxMenuItemDefaultCellEdit1);\r\n\r\n jMenuItemPaste1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/paste.png\")));\r\n jMenuItemPaste1.setText(\"Paste\");\r\n jMenuItemPaste1.setEnabled(false);\r\n jMenuItemPaste1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemPasteActionPerformed1(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstab.add(jMenuItemPaste1);\r\n\r\n setLayout(null);\r\n\r\n setBackground(new java.awt.Color(204, 204, 204));\r\n setFocusCycleRoot(true);\r\n addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\r\n public void mouseDragged(java.awt.event.MouseEvent evt) {\r\n formMouseDragged(evt);\r\n }\r\n public void mouseMoved(java.awt.event.MouseEvent evt) {\r\n formMouseMoved(evt);\r\n }\r\n });\r\n addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusGained(java.awt.event.FocusEvent evt) {\r\n formFocusGained(evt);\r\n }\r\n });\r\n addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyPressed(java.awt.event.KeyEvent evt) {\r\n formKeyPressed(evt);\r\n }\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n formKeyTyped(evt);\r\n }\r\n });\r\n addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n formMouseClicked(evt);\r\n }\r\n public void mousePressed(java.awt.event.MouseEvent evt) {\r\n formMousePressed(evt);\r\n }\r\n public void mouseReleased(java.awt.event.MouseEvent evt) {\r\n formMouseReleased(evt);\r\n }\r\n });\r\n\r\n }", "public MenuFrame() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jMenuBar = new javax.swing.JMenuBar();\n jMenuTiket = new javax.swing.JMenu();\n jMenuItemKreirajTiket = new javax.swing.JMenuItem();\n jMenuItemPretraziTiket = new javax.swing.JMenuItem();\n jMenuUtakmice = new javax.swing.JMenu();\n jMenuItemUnosUtakmice = new javax.swing.JMenuItem();\n jMenuItemIzmenaUtakmice = new javax.swing.JMenuItem();\n jMenuItemUnosRezultata = new javax.swing.JMenuItem();\n jMenuLista = new javax.swing.JMenu();\n jMenuItemGenerisiListu = new javax.swing.JMenuItem();\n jMenuStanje = new javax.swing.JMenu();\n jMenuItemPregledStanja = new javax.swing.JMenuItem();\n jMenuAdmin = new javax.swing.JMenu();\n jMenuItemUnosRadnika = new javax.swing.JMenuItem();\n jMenuItemIzmenaRadnika = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Kladionica\");\n setName(\"Kladionica\"); // NOI18N\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n jMenuTiket.setText(\"Tiket\");\n\n jMenuItemKreirajTiket.setText(\"Kreiraj tiket\");\n jMenuItemKreirajTiket.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemKreirajTiketActionPerformed(evt);\n }\n });\n jMenuTiket.add(jMenuItemKreirajTiket);\n\n jMenuItemPretraziTiket.setText(\"Pretrazi tiket\");\n jMenuItemPretraziTiket.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemPretraziTiketActionPerformed(evt);\n }\n });\n jMenuTiket.add(jMenuItemPretraziTiket);\n\n jMenuBar.add(jMenuTiket);\n\n jMenuUtakmice.setText(\"Utakmice\");\n\n jMenuItemUnosUtakmice.setText(\"Unos utakmice\");\n jMenuItemUnosUtakmice.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemUnosUtakmiceActionPerformed(evt);\n }\n });\n jMenuUtakmice.add(jMenuItemUnosUtakmice);\n\n jMenuItemIzmenaUtakmice.setText(\"Izmena utakmice\");\n jMenuItemIzmenaUtakmice.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemIzmenaUtakmiceActionPerformed(evt);\n }\n });\n jMenuUtakmice.add(jMenuItemIzmenaUtakmice);\n\n jMenuItemUnosRezultata.setText(\"Unos rezultata\");\n jMenuItemUnosRezultata.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemUnosRezultataActionPerformed(evt);\n }\n });\n jMenuUtakmice.add(jMenuItemUnosRezultata);\n\n jMenuBar.add(jMenuUtakmice);\n\n jMenuLista.setText(\"Lista\");\n\n jMenuItemGenerisiListu.setText(\"Generisi listu\");\n jMenuItemGenerisiListu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemGenerisiListuActionPerformed(evt);\n }\n });\n jMenuLista.add(jMenuItemGenerisiListu);\n\n jMenuBar.add(jMenuLista);\n\n jMenuStanje.setText(\"Stanje\");\n\n jMenuItemPregledStanja.setText(\"Pregled stanja\");\n jMenuItemPregledStanja.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemPregledStanjaActionPerformed(evt);\n }\n });\n jMenuStanje.add(jMenuItemPregledStanja);\n\n jMenuBar.add(jMenuStanje);\n\n jMenuAdmin.setText(\"Admin\");\n\n jMenuItemUnosRadnika.setText(\"Unos radnika\");\n jMenuItemUnosRadnika.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemUnosRadnikaActionPerformed(evt);\n }\n });\n jMenuAdmin.add(jMenuItemUnosRadnika);\n\n jMenuItemIzmenaRadnika.setText(\"Izmena radnika\");\n jMenuItemIzmenaRadnika.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemIzmenaRadnikaActionPerformed(evt);\n }\n });\n jMenuAdmin.add(jMenuItemIzmenaRadnika);\n\n jMenuBar.add(jMenuAdmin);\n\n setJMenuBar(jMenuBar);\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, 459, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 329, Short.MAX_VALUE)\n );\n\n pack();\n }", "public Tela_Menu2() {\n initComponents();\n }", "public MenuTamu() {\n initComponents();\n \n }", "public OptionsMenu() {\n initComponents();\n }", "public MainMenuPanel() {\n\t\tinitComponents();\n\t}", "public MainMenu() {\n super();\n }", "private void initMenuBar() {\r\n\t\t// file menu\r\n\t\tJMenu fileMenu = new JMenu(\"File\");\r\n\t\tfileMenu.setMnemonic(KeyEvent.VK_F);\r\n\t\tadd(fileMenu);\r\n\r\n\t\tJMenuItem fileNewMenuItem = new JMenuItem(new NewAction(parent, main));\r\n\t\tfileNewMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileNewMenuItem);\r\n\t\tJMenuItem fileOpenMenuItem = new JMenuItem(new OpenAction(parent, main));\r\n\t\tfileOpenMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileOpenMenuItem);\r\n\r\n\t\tJMenuItem fileSaveMenuItem = new JMenuItem(new SaveAction(main));\r\n\t\tfileSaveMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileSaveMenuItem);\r\n\t\tJMenuItem fileSaveAsMenuItem = new JMenuItem(new SaveAsAction(main));\r\n\t\tfileSaveAsMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileSaveAsMenuItem);\r\n\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(recentMenu);\r\n\t\tfileMenu.addSeparator();\r\n\r\n\t\tJMenuItem exitMenuItem = new JMenuItem(new ExitAction(main));\r\n\t\texitMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(exitMenuItem);\r\n\r\n\t\t// tools menu\r\n\t\tJMenu toolsMenu = new JMenu(\"Application\");\r\n\t\ttoolsMenu.setMnemonic(KeyEvent.VK_A);\r\n\t\tadd(toolsMenu);\r\n\r\n\t\tJMenuItem defineCategoryMenuItem = new JMenuItem(\r\n\t\t\t\tnew DefineCategoryAction());\r\n\t\tdefineCategoryMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_C, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(defineCategoryMenuItem);\r\n\t\tJMenuItem defineBehaviorNetworkMenuItem = new JMenuItem(\r\n\t\t\t\tnew DefineBehaviorNetworkAction());\r\n\t\tdefineBehaviorNetworkMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_B, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(defineBehaviorNetworkMenuItem);\r\n\t\tJMenuItem startSimulationMenuItem = new JMenuItem(\r\n\t\t\t\tnew StartSimulationAction(main));\r\n\t\tstartSimulationMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_E, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(startSimulationMenuItem);\r\n\r\n\t\t// help menu\r\n\t\tJMenu helpMenu = new JMenu(\"Help\");\r\n\t\thelpMenu.setMnemonic(KeyEvent.VK_H);\r\n\t\tadd(helpMenu);\r\n\r\n\t\tJMenuItem helpMenuItem = new JMenuItem(new HelpAction(parent));\r\n\t\thelpMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_H,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\thelpMenu.add(helpMenuItem);\r\n\r\n\t\t// JCheckBoxMenuItem clock = new JCheckBoxMenuItem(new\r\n\t\t// ScheduleSaveAction(parent));\r\n\t\t// helpMenu.add(clock);\r\n\t\thelpMenu.addSeparator();\r\n\t\tJMenuItem showMemItem = new JMenuItem(new ShowMemAction(parent));\r\n\t\thelpMenu.add(showMemItem);\r\n\r\n\t\tJMenuItem aboutMenuItem = new JMenuItem(new AboutAction(parent));\r\n\t\thelpMenu.add(aboutMenuItem);\r\n\t}", "public void initPlayerMenu() {\n Font f = new Font(\"Helvetica\", Font.BOLD, 16);\n\n menuPanel = new JPanel();\n menuPanel.setPreferredSize(new Dimension(buttonWidth, buttonHeight));\n menuPanel.setLayout(null);\n\n menuBar = new JMenuBar();\n menuBar.setPreferredSize(new Dimension(buttonWidth, buttonHeight));\n menuBar.setBounds(0, 0, buttonWidth, buttonHeight);\n menuBar.setLayout(null);\n\n playerMenu = new JMenu();\n playerMenu.setText(\"Players\");\n playerMenu.setFont(f);\n playerMenu.setBounds(0, 0, buttonWidth, buttonHeight);\n playerMenu.setBackground(new Color(0xeaf1f7));\n playerMenu.setHorizontalTextPosition(SwingConstants.CENTER);\n playerMenu.setOpaque(true);\n playerMenu.setBorder(BorderFactory.createBevelBorder(0));\n\n menuBar.add(playerMenu);\n menuPanel.add(menuBar);\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n \n //Definindo que somente Administradores podem vizualizar meno de Configuração\n if(\"Administrador\".equals(Form_LoginController.usuario_Nivel_Acesso))\n { \n //Menus para administrador:****************\n menu_Configuracao.setVisible(true);\n menu_Relatorios.setVisible(true);\n menuItem_RelatAcessos.setVisible(true);\n menu_Cadastro.setVisible(false);\n //******************************************\n }\n if(\"Supervisor\".equals(Form_LoginController.usuario_Nivel_Acesso))\n {\n //Menus para Supervisor:****************\n menu_Relatorios.setVisible(true);\n menuItem_RelatClientes.setVisible(true);\n menuItem_RelatDigitador.setVisible(true);\n //******************************************\n }\n }", "public DropMainMenu() {\n initComponents();\n }", "public void setUpEditMenu() {\n add(editMenu);\n\n //editMenu.add(cutItem);\n //editMenu.add(copyItem);\n //editMenu.add(pasteItem);\n //editMenu.addSeparator();\n clearAllItems.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n world.deleteAllEntities();\n }\n });\n editMenu.add(clearAllItems);\n editMenu.addSeparator();\n JMenuItem loadVectors = new JMenuItem(\"Load stimulus vectors...\");\n loadVectors.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n SFileChooser chooser = new SFileChooser(\".\", \"Load vectors\");\n File theFile = chooser.showOpenDialog();\n if (theFile != null) {\n double[][] vecs = Utils.getDoubleMatrix(theFile);\n world.loadStimulusVectors(vecs);\n }\n }\n });\n editMenu.add(loadVectors);\n\n }", "public MenuCriarArranhaCeus() {\n initComponents();\n }", "private void buildMenu() {\r\n\t\tJMenuBar mainmenu = new JMenuBar();\r\n\t\tsetJMenuBar(mainmenu);\r\n\r\n\t\tui.fileMenu = new JMenu(\"File\");\r\n\t\tui.editMenu = new JMenu(\"Edit\");\r\n\t\tui.viewMenu = new JMenu(\"View\");\r\n\t\tui.helpMenu = new JMenu(\"Help\");\r\n\t\t\r\n\t\tui.fileNew = new JMenuItem(\"New...\");\r\n\t\tui.fileOpen = new JMenuItem(\"Open...\");\r\n\t\tui.fileImport = new JMenuItem(\"Import...\");\r\n\t\tui.fileSave = new JMenuItem(\"Save\");\r\n\t\tui.fileSaveAs = new JMenuItem(\"Save as...\");\r\n\t\tui.fileExit = new JMenuItem(\"Exit\");\r\n\r\n\t\tui.fileOpen.setAccelerator(KeyStroke.getKeyStroke('O', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.fileSave.setAccelerator(KeyStroke.getKeyStroke('S', InputEvent.CTRL_DOWN_MASK));\r\n\t\t\r\n\t\tui.fileImport.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doImport(); } });\r\n\t\tui.fileExit.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { dispose(); doExit(); } });\r\n\t\t\r\n\t\tui.fileOpen.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoLoad();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.fileSave.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoSave();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.fileSaveAs.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoSaveAs();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tui.editUndo = new JMenuItem(\"Undo\");\r\n\t\tui.editUndo.setEnabled(undoManager.canUndo()); \r\n\t\t\r\n\t\tui.editRedo = new JMenuItem(\"Redo\");\r\n\t\tui.editRedo.setEnabled(undoManager.canRedo()); \r\n\t\t\r\n\t\t\r\n\t\tui.editCut = new JMenuItem(\"Cut\");\r\n\t\tui.editCopy = new JMenuItem(\"Copy\");\r\n\t\tui.editPaste = new JMenuItem(\"Paste\");\r\n\t\t\r\n\t\tui.editCut.addActionListener(new Act() { @Override public void act() { doCut(true, true); } });\r\n\t\tui.editCopy.addActionListener(new Act() { @Override public void act() { doCopy(true, true); } });\r\n\t\tui.editPaste.addActionListener(new Act() { @Override public void act() { doPaste(true, true); } });\r\n\t\t\r\n\t\tui.editPlaceMode = new JCheckBoxMenuItem(\"Placement mode\");\r\n\t\t\r\n\t\tui.editDeleteBuilding = new JMenuItem(\"Delete building\");\r\n\t\tui.editDeleteSurface = new JMenuItem(\"Delete surface\");\r\n\t\tui.editDeleteBoth = new JMenuItem(\"Delete both\");\r\n\t\t\r\n\t\tui.editClearBuildings = new JMenuItem(\"Clear buildings\");\r\n\t\tui.editClearSurface = new JMenuItem(\"Clear surface\");\r\n\r\n\t\tui.editUndo.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doUndo(); } });\r\n\t\tui.editRedo.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doRedo(); } });\r\n\t\tui.editClearBuildings.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doClearBuildings(true); } });\r\n\t\tui.editClearSurface.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doClearSurfaces(true); } });\r\n\t\t\r\n\r\n\t\tui.editUndo.setAccelerator(KeyStroke.getKeyStroke('Z', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editRedo.setAccelerator(KeyStroke.getKeyStroke('Y', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editCut.setAccelerator(KeyStroke.getKeyStroke('X', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editCopy.setAccelerator(KeyStroke.getKeyStroke('C', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editPaste.setAccelerator(KeyStroke.getKeyStroke('V', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editPlaceMode.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F3, 0));\r\n\t\t\r\n\t\tui.editDeleteBuilding.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0));\r\n\t\tui.editDeleteSurface.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editDeleteBoth.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK));\r\n\t\t\r\n\t\tui.editDeleteBuilding.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doDeleteBuilding(); } });\r\n\t\tui.editDeleteSurface.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doDeleteSurface(); } });\r\n\t\tui.editDeleteBoth.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doDeleteBoth(); } });\r\n\t\tui.editPlaceMode.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doPlaceMode(ui.editPlaceMode.isSelected()); } });\r\n\t\t\r\n\t\tui.editPlaceRoads = new JMenu(\"Place roads\");\r\n\t\t\r\n\t\tui.editResize = new JMenuItem(\"Resize map\");\r\n\t\tui.editCleanup = new JMenuItem(\"Remove outbound objects\");\r\n\t\t\r\n\t\tui.editResize.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoResize();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.editCleanup.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoCleanup();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tui.editCutBuilding = new JMenuItem(\"Cut: building\");\r\n\t\tui.editCutSurface = new JMenuItem(\"Cut: surface\");\r\n\t\tui.editPasteBuilding = new JMenuItem(\"Paste: building\");\r\n\t\tui.editPasteSurface = new JMenuItem(\"Paste: surface\");\r\n\t\tui.editCopyBuilding = new JMenuItem(\"Copy: building\");\r\n\t\tui.editCopySurface = new JMenuItem(\"Copy: surface\");\r\n\t\t\r\n\t\tui.editCutBuilding.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK));\r\n\t\tui.editCopyBuilding.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK));\r\n\t\tui.editPasteBuilding.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_V, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK));\r\n\t\t\r\n\t\tui.editCutBuilding.addActionListener(new Act() { @Override public void act() { doCut(false, true); } });\r\n\t\tui.editCutSurface.addActionListener(new Act() { @Override public void act() { doCut(true, false); } });\r\n\t\tui.editCopyBuilding.addActionListener(new Act() { @Override public void act() { doCopy(false, true); } });\r\n\t\tui.editCopySurface.addActionListener(new Act() { @Override public void act() { doCopy(true, false); } });\r\n\t\tui.editPasteBuilding.addActionListener(new Act() { @Override public void act() { doPaste(false, true); } });\r\n\t\tui.editPasteSurface.addActionListener(new Act() { @Override public void act() { doPaste(true, false); } });\r\n\t\t\r\n\t\tui.viewZoomIn = new JMenuItem(\"Zoom in\");\r\n\t\tui.viewZoomOut = new JMenuItem(\"Zoom out\");\r\n\t\tui.viewZoomNormal = new JMenuItem(\"Zoom normal\");\r\n\t\tui.viewBrighter = new JMenuItem(\"Daylight (1.0)\");\r\n\t\tui.viewDarker = new JMenuItem(\"Night (0.5)\");\r\n\t\tui.viewMoreLight = new JMenuItem(\"More light (+0.05)\");\r\n\t\tui.viewLessLight = new JMenuItem(\"Less light (-0.05)\");\r\n\t\t\r\n\t\tui.viewShowBuildings = new JCheckBoxMenuItem(\"Show/hide buildings\", renderer.showBuildings);\r\n\t\tui.viewShowBuildings.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_B, InputEvent.CTRL_DOWN_MASK));\r\n\t\t\r\n\t\tui.viewSymbolicBuildings = new JCheckBoxMenuItem(\"Minimap rendering mode\", renderer.minimapMode);\r\n\t\tui.viewSymbolicBuildings.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M, InputEvent.CTRL_DOWN_MASK));\r\n\t\t\r\n\t\tui.viewTextBackgrounds = new JCheckBoxMenuItem(\"Show/hide text background boxes\", renderer.textBackgrounds);\r\n\t\tui.viewTextBackgrounds.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewTextBackgrounds.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doToggleTextBackgrounds(); } });\r\n\t\t\r\n\t\tui.viewZoomIn.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doZoomIn(); } });\r\n\t\tui.viewZoomOut.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doZoomOut(); } });\r\n\t\tui.viewZoomNormal.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doZoomNormal(); } });\r\n\t\tui.viewShowBuildings.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doToggleBuildings(); } });\r\n\t\tui.viewSymbolicBuildings.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doToggleMinimap(); } });\r\n\t\t\r\n\t\tui.viewBrighter.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doBright(); } });\r\n\t\tui.viewDarker.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doDark(); } });\r\n\t\tui.viewMoreLight.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doMoreLight(); } });\r\n\t\tui.viewLessLight.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doLessLight(); } });\r\n\t\t\r\n\t\tui.viewZoomIn.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD9, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewZoomOut.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD3, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewZoomNormal.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD0, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewMoreLight.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD8, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewLessLight.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD2, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewBrighter.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD7, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewDarker.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD1, InputEvent.CTRL_DOWN_MASK));\r\n\t\t\r\n\t\tui.viewStandardFonts = new JCheckBoxMenuItem(\"Use standard fonts\", TextRenderer.USE_STANDARD_FONTS);\r\n\t\t\r\n\t\tui.viewStandardFonts.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoStandardFonts();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.viewPlacementHints = new JCheckBoxMenuItem(\"View placement hints\", renderer.placementHints);\r\n\t\tui.viewPlacementHints.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoViewPlacementHints();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tui.helpOnline = new JMenuItem(\"Online wiki...\");\r\n\t\tui.helpOnline.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdoHelp();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.helpAbout = new JMenuItem(\"About...\");\r\n\t\tui.helpAbout.setEnabled(false); // TODO implement\r\n\t\t\r\n\t\tui.languageMenu = new JMenu(\"Language\");\r\n\t\t\r\n\t\tui.languageEn = new JRadioButtonMenuItem(\"English\", true);\r\n\t\tui.languageEn.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tsetLabels(\"en\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.languageHu = new JRadioButtonMenuItem(\"Hungarian\", false);\r\n\t\tui.languageHu.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tsetLabels(\"hu\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tButtonGroup bg = new ButtonGroup();\r\n\t\tbg.add(ui.languageEn);\r\n\t\tbg.add(ui.languageHu);\r\n\t\t\r\n\t\tui.fileRecent = new JMenu(\"Recent\");\r\n\t\tui.clearRecent = new JMenuItem(\"Clear recent\");\r\n\t\tui.clearRecent.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoClearRecent();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\taddAll(ui.fileRecent, ui.clearRecent);\r\n\t\t\r\n\t\taddAll(mainmenu, ui.fileMenu, ui.editMenu, ui.viewMenu, ui.languageMenu, ui.helpMenu);\r\n\t\taddAll(ui.fileMenu, ui.fileNew, null, ui.fileOpen, ui.fileRecent, ui.fileImport, null, ui.fileSave, ui.fileSaveAs, null, ui.fileExit);\r\n\t\taddAll(ui.editMenu, ui.editUndo, ui.editRedo, null, \r\n\t\t\t\tui.editCut, ui.editCopy, ui.editPaste, null, \r\n\t\t\t\tui.editCutBuilding, ui.editCopyBuilding, ui.editPasteBuilding, null, \r\n\t\t\t\tui.editCutSurface, ui.editCopySurface, ui.editPasteSurface, null, \r\n\t\t\t\tui.editPlaceMode, null, ui.editDeleteBuilding, ui.editDeleteSurface, ui.editDeleteBoth, null, \r\n\t\t\t\tui.editClearBuildings, ui.editClearSurface, null, ui.editPlaceRoads, null, ui.editResize, ui.editCleanup);\r\n\t\taddAll(ui.viewMenu, ui.viewZoomIn, ui.viewZoomOut, ui.viewZoomNormal, null, \r\n\t\t\t\tui.viewBrighter, ui.viewDarker, ui.viewMoreLight, ui.viewLessLight, null, \r\n\t\t\t\tui.viewShowBuildings, ui.viewSymbolicBuildings, ui.viewTextBackgrounds, ui.viewStandardFonts, ui.viewPlacementHints);\r\n\t\taddAll(ui.helpMenu, ui.helpOnline, null, ui.helpAbout);\r\n\t\t\r\n\t\taddAll(ui.languageMenu, ui.languageEn, ui.languageHu);\r\n\t\t\r\n\t\tui.fileNew.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdoNew();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tui.toolbar = new JToolBar(\"Tools\");\r\n\t\tContainer c = getContentPane();\r\n\t\tc.add(ui.toolbar, BorderLayout.PAGE_START);\r\n\r\n\t\tui.toolbarCut = createFor(\"res/Cut24.gif\", \"Cut\", ui.editCut, false);\r\n\t\tui.toolbarCopy = createFor(\"res/Copy24.gif\", \"Copy\", ui.editCopy, false);\r\n\t\tui.toolbarPaste = createFor(\"res/Paste24.gif\", \"Paste\", ui.editPaste, false);\r\n\t\tui.toolbarRemove = createFor(\"res/Remove24.gif\", \"Remove\", ui.editDeleteBuilding, false);\r\n\t\tui.toolbarUndo = createFor(\"res/Undo24.gif\", \"Undo\", ui.editUndo, false);\r\n\t\tui.toolbarRedo = createFor(\"res/Redo24.gif\", \"Redo\", ui.editRedo, false);\r\n\t\tui.toolbarPlacementMode = createFor(\"res/Down24.gif\", \"Placement mode\", ui.editPlaceMode, true);\r\n\r\n\t\tui.toolbarUndo.setEnabled(false);\r\n\t\tui.toolbarRedo.setEnabled(false);\r\n\t\t\r\n\t\tui.toolbarNew = createFor(\"res/New24.gif\", \"New\", ui.fileNew, false);\r\n\t\tui.toolbarOpen = createFor(\"res/Open24.gif\", \"Open\", ui.fileOpen, false);\r\n\t\tui.toolbarSave = createFor(\"res/Save24.gif\", \"Save\", ui.fileSave, false);\r\n\t\tui.toolbarImport = createFor(\"res/Import24.gif\", \"Import\", ui.fileImport, false);\r\n\t\tui.toolbarSaveAs = createFor(\"res/SaveAs24.gif\", \"Save as\", ui.fileSaveAs, false);\r\n\t\tui.toolbarZoomNormal = createFor(\"res/Zoom24.gif\", \"Zoom normal\", ui.viewZoomNormal, false);\r\n\t\tui.toolbarZoomIn = createFor(\"res/ZoomIn24.gif\", \"Zoom in\", ui.viewZoomIn, false);\r\n\t\tui.toolbarZoomOut = createFor(\"res/ZoomOut24.gif\", \"Zoom out\", ui.viewZoomOut, false);\r\n\t\tui.toolbarBrighter = createFor(\"res/TipOfTheDay24.gif\", \"Daylight\", ui.viewBrighter, false);\r\n\t\tui.toolbarDarker = createFor(\"res/TipOfTheDayDark24.gif\", \"Night\", ui.viewDarker, false);\r\n\t\tui.toolbarHelp = createFor(\"res/Help24.gif\", \"Help\", ui.helpOnline, false);\r\n\r\n\t\t\r\n\t\tui.toolbar.add(ui.toolbarNew);\r\n\t\tui.toolbar.add(ui.toolbarOpen);\r\n\t\tui.toolbar.add(ui.toolbarSave);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarImport);\r\n\t\tui.toolbar.add(ui.toolbarSaveAs);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarCut);\r\n\t\tui.toolbar.add(ui.toolbarCopy);\r\n\t\tui.toolbar.add(ui.toolbarPaste);\r\n\t\t\r\n\t\tui.toolbar.add(ui.toolbarRemove);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarUndo);\r\n\t\tui.toolbar.add(ui.toolbarRedo);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarPlacementMode);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarZoomNormal);\r\n\t\tui.toolbar.add(ui.toolbarZoomIn);\r\n\t\tui.toolbar.add(ui.toolbarZoomOut);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarBrighter);\r\n\t\tui.toolbar.add(ui.toolbarDarker);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarHelp);\r\n\t\t\r\n\t}", "public vistaMenu() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Menu() {\n initComponents();\n getContentPane().setBackground(Color.WHITE);\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(messageIcons.getFrameIcon())));\n Customer_Panel.setVisible(false);\n Employee_Panel.setVisible(false);\n Report_Panel.setVisible(false);\n Report_Summary.setVisible(false);\n }", "public FrmMenu() {\n initComponents();\n }", "public static void initMenuBars()\n\t{\n\t\tmenuBar = new JMenuBar();\n\n\t\t//Build the first menu.\n\t\tmenu = new JMenu(\"Options\");\n\t\tmenu.setMnemonic(KeyEvent.VK_A);\n\t\tmenu.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tmenuBar.add(menu);\n\n\t\t//a group of JMenuItems\n\t\tmenuItem = new JMenuItem(\"Quit\",\n\t\t KeyEvent.VK_T);\n\t\tmenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tmenuItem.getAccessibleContext().setAccessibleDescription(\n\t\t \"This doesn't really do anything\");\n\t\tmenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\n\t\tmenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(\"Both text and icon\",\n\t\t new ImageIcon(\"images/middle.gif\"));\n\t\tmenuItem.setMnemonic(KeyEvent.VK_B);\n\t\tmenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(new ImageIcon(\"images/middle.gif\"));\n\t\tmenuItem.setMnemonic(KeyEvent.VK_D);\n\t\tmenu.add(menuItem);\n\n\t\t//a group of radio button menu items\n\t\tmenu.addSeparator();\n\t\tButtonGroup group = new ButtonGroup();\n\t\trbMenuItem = new JRadioButtonMenuItem(\"A radio button menu item\");\n\t\trbMenuItem.setSelected(true);\n\t\trbMenuItem.setMnemonic(KeyEvent.VK_R);\n\t\tgroup.add(rbMenuItem);\n\t\tmenu.add(rbMenuItem);\n\n\t\trbMenuItem = new JRadioButtonMenuItem(\"Another one\");\n\t\trbMenuItem.setMnemonic(KeyEvent.VK_O);\n\t\tgroup.add(rbMenuItem);\n\t\tmenu.add(rbMenuItem);\n\n\t\t//a group of check box menu items\n\t\tmenu.addSeparator();\n\t\tcbMenuItem = new JCheckBoxMenuItem(\"A check box menu item\");\n\t\tcbMenuItem.setMnemonic(KeyEvent.VK_C);\n\t\tmenu.add(cbMenuItem);\n\n\t\tcbMenuItem = new JCheckBoxMenuItem(\"Another one\");\n\t\tcbMenuItem.setMnemonic(KeyEvent.VK_H);\n\t\tmenu.add(cbMenuItem);\n\n\t\t//a submenu\n\t\tmenu.addSeparator();\n\t\tsubmenu = new JMenu(\"A submenu\");\n\t\tsubmenu.setMnemonic(KeyEvent.VK_S);\n\n\t\tmenuItem = new JMenuItem(\"An item in the submenu\");\n\t\tmenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t KeyEvent.VK_2, ActionEvent.ALT_MASK));\n\t\tsubmenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(\"Another item\");\n\t\tsubmenu.add(menuItem);\n\t\tmenu.add(submenu);\n\n\t\t//Build second menu in the menu bar.\n\t\tmenu = new JMenu(\"Another Menu\");\n\t\tmenu.setMnemonic(KeyEvent.VK_N);\n\t\tmenu.getAccessibleContext().setAccessibleDescription(\n\t\t \"This menu does nothing\");\n\t\tmenuBar.add(menu);\n\t}", "public MenuPrincipal() {\n initComponents();\n \n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setTitle(\"Gesti\\u00F3n de personal y suministros para la estaci\\u00F3n VDNKH\");\r\n\t\tframe.setBounds(300, 100, 700, 550);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\r\n\t\tJMenu mitNew = new JMenu(\"Nuevo\");\r\n\t\tmenuBar.add(mitNew);\r\n\r\n\t\tJMenuItem mitNewSoldier = new JMenuItem(\"Soldado\");\r\n\t\tmitNewSoldier.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tIfrSoldier ifrSoldier = new IfrSoldier();\r\n\t\t\t\tifrSoldier.setBounds(300, 100, 700, 550);\r\n\t\t\t\tframe.getContentPane().add(ifrSoldier);\r\n\t\t\t\tifrSoldier.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tmitNew.add(mitNewSoldier);\r\n\r\n\t\tJMenu mitSearch = new JMenu(\"Buscar\");\r\n\t\tmenuBar.add(mitSearch);\r\n\r\n\t\tJMenuItem mitSearchSoldier = new JMenuItem(\"Soldado\");\r\n\t\tmitSearch.add(mitSearchSoldier);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t}", "private void createMenus() {\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\t\r\n\t\tJMenu fileMenu = new LJMenu(\"file\", flp);\r\n\t\tmenuBar.add(fileMenu);\r\n\t\t\r\n\t\tfileMenu.add(new JMenuItem(createBlankDocument));\r\n\t\tfileMenu.add(new JMenuItem(openDocumentAction));\r\n\t\tfileMenu.add(new JMenuItem(saveDocumentAction));\r\n\t\tfileMenu.add(new JMenuItem(saveDocumentAsAction));\r\n\t\tfileMenu.add(new JMenuItem(closeCurrentTabAction));\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(new JMenuItem(getStatsAction));\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(new JMenuItem(exitAction));\r\n\t\t\r\n\t\tJMenu editMenu = new LJMenu(\"edit\", flp);\r\n\t\tmenuBar.add(editMenu);\r\n\t\t\r\n\t\teditMenu.add(new JMenuItem(copyAction));\r\n\t\teditMenu.add(new JMenuItem(pasteAction));\r\n\t\teditMenu.add(new JMenuItem(cutAction));\r\n\t\t\r\n\t\tJMenu langMenu = new LJMenu(\"lang\", flp);\r\n\t\tJMenuItem hr = new LJMenuItem(\"cro\", flp);\r\n\t\thr.addActionListener((l) -> { \r\n\t\t\tLocalizationProvider.getInstance().setLanguage(\"hr\");\r\n\t\t\tcurrentLang = \"hr\";\r\n\t\t});\r\n\t\t\r\n\t\tlangMenu.add(hr);\r\n\t\tJMenuItem en = new LJMenuItem(\"eng\", flp);\r\n\t\ten.addActionListener((l) -> { \r\n\t\t\t LocalizationProvider.getInstance().setLanguage(\"en\");\r\n\t\t\t currentLang = \"en\";\r\n\t\t});\r\n\t\tlangMenu.add(en);\r\n\t\tJMenuItem de = new LJMenuItem(\"de\", flp);\r\n\t\tde.addActionListener((l) -> { \r\n\t\t\t LocalizationProvider.getInstance().setLanguage(\"de\");\r\n\t\t\t currentLang = \"de\";\r\n\t\t});\r\n\t\tlangMenu.add(de);\r\n\t\tmenuBar.add(langMenu);\r\n\t\t\r\n\t\tJMenu toolsMenu = new LJMenu(\"tools\", flp);\r\n\t\tJMenuItem toUp = new JMenuItem(toUpperCaseAction);\r\n\t\ttoolsMenu.add(toUp);\r\n\t\ttoggable.add(toUp);\r\n\t\ttoUp.setEnabled(false);\r\n\t\tJMenuItem toLow = new JMenuItem(toLowerCaseAction);\r\n\t\ttoolsMenu.add(toLow);\r\n\t\ttoggable.add(toLow);\r\n\t\ttoLow.setEnabled(false);\r\n\t\tJMenuItem inv = new JMenuItem(invertSelected);\r\n\t\ttoolsMenu.add(inv);\r\n\t\ttoggable.add(inv);\r\n\t\tinv.setEnabled(false);\r\n\t\tmenuBar.add(toolsMenu);\r\n\t\t\r\n\t\tJMenu sort = new LJMenu(\"sort\", flp);\r\n\t\tJMenuItem sortAsc = new JMenuItem(sortAscAction);\r\n\t\tsort.add(sortAsc);\r\n\t\ttoggable.add(sortAsc);\r\n\t\tJMenuItem sortDesc = new JMenuItem(sortDescAction);\r\n\t\tsort.add(sortDesc);\r\n\t\ttoggable.add(sortDesc);\r\n\t\tJMenuItem uniq = new JMenuItem(uniqueLinesAction);\r\n\t\ttoolsMenu.add(uniq);\r\n\t\ttoggable.add(uniq);\r\n\t\t\r\n\t\ttoolsMenu.add(sort);\r\n\t\tsetJMenuBar(menuBar);\r\n\r\n\t}", "protected void initialize() {\n\t\tthis.initializeFileMenu();\n\t\tthis.initializeEditMenu();\n\t\tthis.initializeNavigationMenu();\n\t\tthis.initializeHelpMenu();\n\t}", "public void init() {\n menus.values().forEach(ToolbarSubMenuMenu::init);\n }", "public void generateMenu(){\n menuBar = new JMenuBar();\n\n JMenu file = new JMenu(\"Datei\");\n JMenu tools = new JMenu(\"Werkzeuge\");\n JMenu help = new JMenu(\"Hilfe\");\n\n JMenuItem open = new JMenuItem(\"Öffnen \");\n JMenuItem save = new JMenuItem(\"Speichern \");\n JMenuItem exit = new JMenuItem(\"Beenden \");\n JMenuItem preferences = new JMenuItem(\"Einstellungen \");\n JMenuItem about = new JMenuItem(\"Über das Projekt \");\n\n\n file.add(open);\n file.add(save);\n file.addSeparator();\n file.add(exit);\n tools.add(preferences);\n help.add(about);\n\n menuBar.add(file);\n menuBar.add(tools);\n menuBar.add(help);\n }", "public MaeocsMappingApplication(){\n\t\t\n\t\tthis.setSize(principalDim);\n\t\tthis.setLocation(Theme.menuBarLocation);\n\t\tthis.setBackground(Theme.background);\n\t\tthis.setForeground(Theme.foreground);\n\t\tthis.setMaximumSize(principalDim);\n\t\tthis.setMinimumSize(principalDim);\n\t\tthis.setResizable(false);\n\t\tthis.setVisible(true);\n\n\t\tselectedState = new State();\n\t\tselectedNode = new LocalAtributesManager();\n\t\t\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t \n\t menuBar = new JMenuBar();\n\t \n\t menuBar.setBackground(Theme.background);\n\t menuBar.repaint();\n\t \n\t /*\n\t * Add the menu bar to the frame\n\t */\n\t setJMenuBar(menuBar);\n\t \n\t /* \n\t * Define and add two drop down menu to the menu bar\n\t */\n\t JMenu fileMenu = new JMenu(\"File\");\n\t fileMenu.setForeground(Theme.foreground);\n\t fileMenu.setBackground(Theme.background);\n\t \n\t JMenu editMenu = new JMenu(\"Edit\");\n\t editMenu.setForeground(Theme.foreground);\n\t editMenu.setBackground(Theme.background);\n\t \n\t JMenu createMenu = new JMenu(\"Create\");\n\t editMenu.setForeground(Theme.foreground);\n\t editMenu.setBackground(Theme.background);\n\t \n\t JMenu viewMenu = new JMenu(\"View\");\n\t editMenu.setForeground(Theme.foreground);\n\t editMenu.setBackground(Theme.background);\n\t \n\t menuBar.add(fileMenu);\n menuBar.add(editMenu);\n menuBar.add(createMenu);\n menuBar.add(viewMenu);\n \n /*\n * Create and add simple menu items to the drop down menu\n */\n final JMenuItem newAction = new JMenuItem(\"New\");\n newAction.setForeground(Theme.foreground);\n newAction.setBackground(Theme.background);\n \n final JMenuItem loadAction = new JMenuItem(\"Load\");\n loadAction.setForeground(Theme.foreground);\n loadAction.setBackground(Theme.background);\n\n \n final JMenuItem saveAction = new JMenuItem(\"Save\");\n saveAction.setForeground(Theme.blockedBackground);\n saveAction.setBackground(Theme.background);\n saveAction.setEnabled(false);\n \n final JMenuItem exportAction = new JMenuItem(\"Export\");\n exportAction.setForeground(Theme.blockedBackground);\n exportAction.setBackground(Theme.background);\n exportAction.setEnabled(false);\n \n final JMenuItem editAction = new JMenuItem(\"Edit Size\");\n editAction.setForeground(Theme.blockedForeground);\n editAction.setBackground(Theme.background);\n editAction.setEnabled(false);\n\n final JMenuItem openImageAction = new JMenuItem(\"OpenImage\");\n openImageAction.setForeground(Theme.blockedForeground);\n openImageAction.setBackground(Theme.background);\n openImageAction.setEnabled(false);\n \n final JMenuItem compileMapAction = new JMenuItem(\"Compile Map\");\n compileMapAction.setForeground(Theme.blockedForeground);\n compileMapAction.setBackground(Theme.background);\n compileMapAction.setEnabled(false);\n \n \n JMenuItem exitAction = new JMenuItem(\"Exit\");\n exitAction.setForeground(Theme.foreground);\n exitAction.setBackground(Theme.background);\n \n JMenuItem cutAction = new JMenuItem(\"Cut\");\n cutAction.setForeground(Theme.foreground);\n cutAction.setBackground(Theme.background);\n \n JMenuItem copyAction = new JMenuItem(\"Copy\");\n copyAction.setForeground(Theme.foreground);\n copyAction.setBackground(Theme.background);\n \n JMenuItem pasteAction = new JMenuItem(\"Paste\");\n pasteAction.setForeground(Theme.foreground);\n pasteAction.setBackground(Theme.background);\n \n final JMenuItem showSimulatorAction = new JMenuItem(\"Simulator\");\n showSimulatorAction.setForeground(Theme.blockedForeground);\n showSimulatorAction.setBackground(Theme.background);\n showSimulatorAction.setEnabled(false);\n \n /*\n * add the items to the menu item\n */\n \n fileMenu.add(newAction);\n fileMenu.add(loadAction);\n fileMenu.add(saveAction);\n fileMenu.add(exportAction);\n fileMenu.add(editAction);\n fileMenu.add(openImageAction);\n fileMenu.add(compileMapAction);\n fileMenu.addSeparator();\n fileMenu.add(exitAction);\n \n editMenu.add(cutAction);\n editMenu.add(copyAction);\n editMenu.add(pasteAction);\n \n viewMenu.add(showSimulatorAction);\n \n /*\n * Sets the \"New\" button action\n */\n newAction.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tselected = new MapWindow(selectedState, selectedNode);\n\t\t\t\tdimensionWindow = new DimensionsWindow(selected);\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Enable edit size and compile map \n\t\t\t\t */\n\t\t\t\teditAction.setEnabled(true);\n\t\t\t\teditAction.setForeground(Theme.foreground);\n\t\t\t\t\n\t\t\t\tsaveAction.setEnabled(true);\n\t\t\t\tsaveAction.setForeground(Theme.foreground);\n\t\t\t\t\n\t\t\t\texportAction.setEnabled(true);\n\t\t\t\texportAction.setForeground(Theme.foreground);\n\t\t\t\t\n\t\t\t\topenImageAction.setEnabled(true);\n\t\t\t\topenImageAction.setForeground(Theme.foreground);\n\t\t\t\t\n\t\t\t\tcompileMapAction.setEnabled(true);\n\t\t\t\tcompileMapAction.setForeground(Theme.foreground);\n\t\t\t\t\n\t\t\t\tshowSimulatorAction.setEnabled(true);\n\t\t\t\tshowSimulatorAction.setForeground(Theme.foreground);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\n /*\n * Sets the \"Load\" button action\n */\n loadAction.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tJFileChooser chooser = new JFileChooser();\n\t\t\t\tchooser.setFileFilter(new MCSFileFilter());\n\t\t\t\tchooser.setDialogTitle(\"Load Map\");\n\t\t\t\tchooser.setAcceptAllFileFilterUsed(false);\n\t\t\t\tchooser.showOpenDialog(parent);\n\t\t\t\tchooser.setFileHidingEnabled(true);\n\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\n\t\t\t\t \"MAEOCS\",\"mcs\");\n\t\t\t\tchooser.setFileFilter(filter);\n\t\t\t\tString saveFile = chooser.getSelectedFile().getAbsolutePath();\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tselected = new MapWindow(selectedState, selectedNode, saveFile);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\t/*\n\t\t\t\t\t * Enable edit size and compile map \n\t\t\t\t\t */\n\t\t\t\t\teditAction.setEnabled(true);\n\t\t\t\t\teditAction.setForeground(Theme.foreground);\n\t\t\t\t\t\n\t\t\t\t\tsaveAction.setEnabled(true);\n\t\t\t\t\tsaveAction.setForeground(Theme.foreground);\n\t\t\t\t\t\n\t\t\t\t\texportAction.setEnabled(true);\n\t\t\t\t\texportAction.setForeground(Theme.foreground);\n\t\t\t\t\t\n\t\t\t\t\topenImageAction.setEnabled(true);\n\t\t\t\t\topenImageAction.setForeground(Theme.foreground);\n\t\t\t\t\t\n\t\t\t\t\tcompileMapAction.setEnabled(true);\n\t\t\t\t\tcompileMapAction.setForeground(Theme.foreground);\n\t\t\t\t\t\n\t\t\t\t\tshowSimulatorAction.setEnabled(true);\n\t\t\t\t\tshowSimulatorAction.setForeground(Theme.foreground);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n \n /*\n * Sets the \"Save\" button action\n */\n saveAction.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tJFileChooser chooser = new JFileChooser();\n\t\t\t\tchooser.setFileFilter(new MCSFileFilter());\n\t\t\t\tchooser.setDialogTitle(\"Save Map\");\n\t\t\t\tchooser.setAcceptAllFileFilterUsed(false);\n\t\t\t\tchooser.showSaveDialog(parent);\n\t\t\t\tString saveFile = chooser.getSelectedFile().getPath();\n\t\t\t\tif(!saveFile.endsWith(\".mcs\")){\n\t\t\t\t\tsaveFile = saveFile.concat(\".mcs\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tselected.saveFile(saveFile);\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 /*\n * Sets the \"Export\" button action\n */\n exportAction.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tJFileChooser chooser = new JFileChooser();\n\t\t\t\tchooser.setFileFilter(new MCSFileFilter());\n\t\t\t\tchooser.setDialogTitle(\"Export Map\");\n\t\t\t\tchooser.setAcceptAllFileFilterUsed(false);\n\t\t\t\tchooser.showSaveDialog(parent);\n\t\t\t\tString saveFile = chooser.getSelectedFile().getPath();\n\t\t\t\tif(!saveFile.endsWith(\".mmcs\")){\n\t\t\t\t\tsaveFile = saveFile.concat(\".mmcs\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tselected.exportFile(saveFile);\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 /*\n * Sets the \"Edit\" button action\n */\n editAction.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tdimensionWindow.beVisible();\n//\t\t\t\tnew DimensionsWindow(selected);\n\t\t\t}\n\t\t});\n \n /*\n * Sets the \"Open Image\" button action\n */\n openImageAction.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tJFileChooser chooser = new JFileChooser();\n\t\t\t\tchooser.setFileFilter(new FileNameExtensionFilter(\"png\", \"JPG & GIF Images\", \"jpg\", \"gif\"));\n\t\t\t\tchooser.setDialogTitle(\"Map Selection\");\n\t\t\t\tchooser.setAcceptAllFileFilterUsed(false);\n\t\t\t\tchooser.showOpenDialog(parent);\n\t\t\t\tString imgFile = chooser.getSelectedFile().getPath();\n\t\t\t\tselected.setBackgroundImage(imgFile);\n\t\t\t\t\n\t\t\t}\n\t\t});\n \n /*\n * Sets the \"Compile Map\" button action\n */\n compileMapAction.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tselected.compileMap();\n\t\t\t}\n\t\t});\n \n showSimulatorAction.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tselected.startSimulation();\n\t\t\t}\n\t\t});\n \n tools = new ToolsGraphicsPanel();\n atributes = new AtributesPanel(selectedNode);\n selectedNode.addPanel(atributes);\n \n tools.setSelectBtAction(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tselectedState.setStateType(SelectedState.SELECT);\n\t\t\t}\n\t\t});\n \n tools.setRoadBtAction(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tselectedState.setStateType(SelectedState.ROAD);\n\t\t\t}\n\t\t});\n \n tools.setLocalBtAction(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tselectedState.setStateType(SelectedState.LOCAL);\n\t\t\t}\n\t\t});\n \n tools.setStairsBtAction(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tselectedState.setStateType(SelectedState.STAIRS);\n\t\t\t}\n\t\t});\n \n tools.setExitBtAction(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tselectedState.setStateType(SelectedState.EXIT);\n\t\t\t}\n\t\t});\n \n tools.setEraseBtAction(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tselectedState.setStateType(SelectedState.ERASE);\n\t\t\t}\n\t\t});\n \n menuBar.updateUI(); \n \n\t}", "public Menu() {\n mainMenuScene = createMainMenuScene();\n mainMenu();\n }", "private void createMenu()\n\t{\n\t\tfileMenu = new JMenu(\"File\");\n\t\thelpMenu = new JMenu(\"Help\");\n\t\ttoolsMenu = new JMenu(\"Tools\");\n\t\t\n\t\tmenuBar = new JMenuBar();\n\t\t\n\t\texit = new JMenuItem(\"Exit\");\t\t\n\t\treadme = new JMenuItem(\"Readme\");\n\t\tabout = new JMenuItem(\"About\");\n\t\tsettings = new JMenuItem(\"Settings\");\n\t\t\t\t\n\t\tfileMenu.add (exit);\n\t\t\n\t\thelpMenu.add (readme);\n\t\thelpMenu.add (about);\t\n\t\t\n\t\ttoolsMenu.add (settings);\n\t\t\n\t\tmenuBar.add(fileMenu);\n\t\tmenuBar.add(toolsMenu);\n\t\tmenuBar.add(helpMenu);\t\t\n\t\t\t\t\n\t\tdefaultMenuBackground = menuBar.getBackground();\n\t\tdefaultMenuForeground = fileMenu.getForeground();\n\t\t\n\t}", "private void initializeMenu(){\n\t\troot = new TreeField(new TreeFieldCallback() {\n\t\t\t\n\t\t\tpublic void drawTreeItem(TreeField treeField, Graphics graphics, int node,\n\t\t\t\t\tint y, int width, int indent) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tString text = treeField.getCookie(node).toString(); \n\t graphics.drawText(text, indent, y);\n\t\t\t}\n\t\t}, Field.FOCUSABLE){\n\t\t\tprotected boolean navigationClick(int status, int time) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif(!isAnimating()){\n\t\t\t\t\tMenuModel menu = (MenuModel) root.getCookie(root.getCurrentNode());\n\t\t\t\t\tif(menu.isChild()){\n\t\t\t\t\t\tonMenuSelected(menu);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\treturn super.navigationClick(status, time);\n\t\t\t}\n\t\t\t\n\t\t\tprotected boolean keyDown(int keycode, int time) {\n\t\t\t\tif(!isAnimating()){\n\t\t\t\t\tif(keycode == 655360){\n\t\t\t\t\t\tMenuModel menu = (MenuModel) root.getCookie(root.getCurrentNode());\n\t\t\t\t\t\tif(menu.isChild()){\n\t\t\t\t\t\t\tonMenuSelected(menu);\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t\treturn super.keyDown(keycode, time);\n\t\t\t}\n\t\t};\n\t\troot.setDefaultExpanded(false);\n\n\t\t//home\n\t\tMenuModel home = new MenuModel(\"Home\", MenuModel.HOME, true);\n\t\thome.setId(root.addChildNode(0, home));\n\t\t\n\t\tint lastRootChildId = home.getId();\n\t\t\n\t\t//menu tree\n\t\tif(Singleton.getInstance().getMenuTree() != null){\n\t\t\tJSONArray menuTree = Singleton.getInstance().getMenuTree();\n\t\t\tif(menuTree.length() > 0){\n\t\t\t\tfor (int i = 0; i < menuTree.length(); i++) {\n\t\t\t\t\tif(!menuTree.isNull(i)){\n\t\t\t\t\t\tJSONObject node;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tnode = menuTree.getJSONObject(i);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//root menu tree (pria, wanita)\n\t\t\t\t\t\t\tboolean isChild = false;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString name = node.getString(\"name\");\n\t\t\t\t\t\t\tString url = node.getString(\"url\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tMenuModel treeNode = new MenuModel(\n\t\t\t\t\t\t\t\t\tname, url, MenuModel.JSON_TREE_NODE, isChild);\n\t\t\t\t\t\t\ttreeNode.setId(root.addSiblingNode(lastRootChildId, treeNode));\n\t\t\t\t\t\t\tlastRootChildId = treeNode.getId();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tif(!node.isNull(\"child\")){\n\t\t\t\t\t\t\t\t\tJSONArray childNodes = node.getJSONArray(\"child\");\n\t\t\t\t\t\t\t\t\tif(childNodes.length() > 0){\n\t\t\t\t\t\t\t\t\t\tfor (int j = childNodes.length() - 1; j >= 0; j--) {\n\t\t\t\t\t\t\t\t\t\t\tif(!childNodes.isNull(j)){\n\t\t\t\t\t\t\t\t\t\t\t\taddChildNode(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttreeNode.getId(), \n\t\t\t\t\t\t\t\t\t\t\t\t\t\tchildNodes.getJSONObject(j));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tif(Singleton.getInstance().getIsLogin()){\n\t\t\t//akun saya\n\t\t\tMenuModel myAccount = new MenuModel(\"Akun Saya\", MenuModel.MY_ACCOUNT, false);\n\t\t\tmyAccount.setId(root.addSiblingNode(lastRootChildId, myAccount));\n\t\t\t\n\t\t\tlastRootChildId = myAccount.getId();\n\t\t\t\n\t\t\t//akun saya->detail akun\n\t\t\tMenuModel profile = new MenuModel(\"Detail Akun\", MenuModel.PROFILE, true);\n\t\t\tprofile.setId(root.addChildNode(myAccount.getId(), profile));\n\t\t\t\n\t\t\t//akun saya->daftar pesanan\n\t\t\tMenuModel myOrderList = new MenuModel(\n\t\t\t\t\t\"Daftar Pesanan\", MenuModel.MY_ORDER, true);\n\t\t\tmyOrderList.setId(root.addSiblingNode(profile.getId(), myOrderList));\t\t\n\t\t\t\n\t\t\t//logout\n\t\t\tMenuModel logout = new MenuModel(\"Logout\", MenuModel.LOGOUT, true);\n\t\t\tlogout.setId(root.addSiblingNode(lastRootChildId, logout));\n\t\t\tlastRootChildId = logout.getId();\n\t\t} else{\n\t\t\t//login\n\t\t\tMenuModel login = new MenuModel(\"Login\", MenuModel.LOGIN, false);\n\t\t\tlogin.setId(root.addSiblingNode(lastRootChildId, login));\n\t\t\t\n\t\t\tlastRootChildId = login.getId();\n\t\t\t\n\t\t\t//login->login\n\t\t\tMenuModel loginMenu = new MenuModel(\"Login\", MenuModel.LOGIN_MENU, true);\n\t\t\tloginMenu.setId(root.addChildNode(login.getId(), loginMenu));\n\t\t\t\n\t\t\t//login->register\n\t\t\tMenuModel register = new MenuModel(\"Register\", MenuModel.REGISTER, true);\n\t\t\tregister.setId(root.addSiblingNode(loginMenu.getId(), register));\n\t\t}\n\t\t\n\t\tMenuUserModel menu = Singleton.getInstance().getMenu();\n\t\tif(menu != null){\n\t\t\t//sales\n\t\t\tif(menu.getMenuSalesOrder() || menu.isMenuSalesRetur()){\n\t\t\t\tMenuModel sales = new MenuModel(\"Sales\", MenuModel.SALES, false);\n\t\t\t\tsales.setId(root.addSiblingNode(lastRootChildId, sales));\n\t\t\t\tlastRootChildId = sales.getId();\n\t\t\t\t\n\t\t\t\t//sales retur\n\t\t\t\tif(menu.isMenuSalesRetur()){\n\t\t\t\t\tMenuModel salesRetur = new MenuModel(\n\t\t\t\t\t\t\t\"Sales Retur\", MenuModel.SALES_RETUR, true);\n\t\t\t\t\tsalesRetur.setId(root.addChildNode(sales.getId(), salesRetur));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//sales order\n\t\t\t\tif(menu.getMenuSalesOrder()){\n\t\t\t\t\tMenuModel salesOrder = new MenuModel(\n\t\t\t\t\t\t\t\"Sales Order\", MenuModel.SALES_ORDER, true);\n\t\t\t\t\tsalesOrder.setId(root.addChildNode(sales.getId(), salesOrder));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//cms product\n\t\t\tif(menu.getMenuCmsProduct() || menu.getMenuCmsProductGrosir()){\n\t\t\t\tMenuModel cmsProduct = new MenuModel(\n\t\t\t\t\t\t\"Produk\", MenuModel.CMS_PRODUCT, false);\n\t\t\t\tcmsProduct.setId(\n\t\t\t\t\t\troot.addSiblingNode(lastRootChildId, cmsProduct));\n\t\t\t\tlastRootChildId = cmsProduct.getId();\n\t\t\t\t\n\t\t\t\t//product retail\n\t\t\t\tif(menu.getMenuCmsProduct()){\n\t\t\t\t\tMenuModel productRetail = new MenuModel(\n\t\t\t\t\t\t\t\"Produk Retail\", MenuModel.CMS_PRODUCT_RETAIL, true);\n\t\t\t\t\tproductRetail.setId(\n\t\t\t\t\t\t\troot.addChildNode(cmsProduct.getId(), productRetail));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//product grosir\n\t\t\t\tif(menu.getMenuCmsProductGrosir()){\n\t\t\t\t\tMenuModel productGrosir = new MenuModel(\n\t\t\t\t\t\t\t\"Produk Grosir\", MenuModel.CMS_PRODUCT_GROSIR, true);\n\t\t\t\t\tproductGrosir.setId(\n\t\t\t\t\t\t\troot.addChildNode(cmsProduct.getId(), productGrosir));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\t//service\n\t\tMenuModel service = new MenuModel(\"Layanan\", MenuModel.SERVICE, false);\n\t\tservice.setId(root.addSiblingNode(lastRootChildId, service));\n\t\tlastRootChildId = service.getId();\n\t\tVector serviceList = Singleton.getInstance().getServices();\n\t\ttry {\n\t\t\tfor (int i = serviceList.size() -1; i >= 0; i--) {\n\t\t\t\tMenuFooterModel footer = (MenuFooterModel) serviceList.elementAt(i);\n\t\t\t\tMenuModel serviceMenu = new MenuModel(\n\t\t\t\t\t\tfooter.getCatTitle(), footer.getCatTautan(),\n\t\t\t\t\t\tMenuModel.SERVICE_MENU, true);\n\t\t\t\tserviceMenu.setId(root.addChildNode(service.getId(), serviceMenu));\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\n\t\t}\n\t\t\n\t\t//about\n\t\tMenuModel about = new MenuModel(\"Tentang Y2\", MenuModel.ABOUT, false);\n\t\tabout.setId(root.addSiblingNode(service.getId(), about));\n\t\tlastRootChildId = service.getId();\n\t\tVector aboutList = Singleton.getInstance().getAbouts();\n\t\ttry {\n\t\t\tfor (int i = aboutList.size() -1; i >= 0; i--) {\n\t\t\t\tMenuFooterModel footer = (MenuFooterModel) aboutList.elementAt(i);\n\t\t\t\tMenuModel aboutMenu = new MenuModel(\n\t\t\t\t\t\tfooter.getCatTitle(), footer.getCatTautan(), \n\t\t\t\t\t\tMenuModel.SERVICE_MENU, true);\n\t\t\t\taboutMenu.setId(root.addChildNode(service.getId(), aboutMenu));\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t\tcontainer.add(root);\n\t}", "public Menu() {\n\n\t}", "private void init()\n {\n btnUser.setOnAction(buttonHandler);\n btnHome.setOnAction(event -> changeScene(\"store/fxml/home/home.fxml\"));\n btnCategories.setOnAction(event -> changeScene(\"store/fxml/category/categories.fxml\"));\n btnTopApps.setOnAction(buttonHandler);\n btnPurchased.setOnAction(buttonHandler);\n btnMenu.setOnAction(buttonHandler);\n btnSearch.setOnAction(buttonHandler);\n btnFeatured.setOnAction(buttonHandler);\n\n itmLogout = new MenuItem(\"Logout\");\n itmAddApp = new MenuItem(\"Add app\");\n itmUsers = new MenuItem(\"Manage users\");\n itmCategories = new MenuItem(\"Manage categories\");\n\n itmAddApp.setOnAction(itemHandler);\n itmLogout.setOnAction(itemHandler);\n itmUsers.setOnAction(itemHandler);\n itmCategories.setOnAction(itemHandler);\n\n if (user.getId() != null)\n {\n btnMenu.setVisible(true);\n if (user.getAdmin())\n btnMenu.getItems().addAll(itmAddApp, itmCategories, itmUsers, itmLogout);\n else\n btnMenu.getItems().add(itmLogout);\n\n ImageView imageView = new ImageView(user.getPicture());\n imageView.setFitHeight(25);\n imageView.setFitWidth(25);\n\n btnUser.setText(user.getUsername());\n }\n else\n btnMenu.setVisible(false);\n }", "private void initComponents() {\n\n jDesktopPane1 = new javax.swing.JDesktopPane();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n jMenuItem2 = new javax.swing.JMenuItem();\n jMenuItem1 = new javax.swing.JMenuItem();\n jMenuItem3 = new javax.swing.JMenuItem();\n jMenuItem11 = new javax.swing.JMenuItem();\n jMenu2 = new javax.swing.JMenu();\n jMenuItem4 = new javax.swing.JMenuItem();\n jMenuItem5 = new javax.swing.JMenuItem();\n jMenuItem8 = new javax.swing.JMenuItem();\n jMenuItem9 = new javax.swing.JMenuItem();\n consultar_c = new javax.swing.JMenuItem();\n jMenu3 = new javax.swing.JMenu();\n jMenuItem6 = new javax.swing.JMenuItem();\n jMenuItem7 = new javax.swing.JMenuItem();\n jmCuentasEm = new javax.swing.JMenu();\n jMenuItem10 = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 51, 51));\n setPreferredSize(new java.awt.Dimension(1294, 912));\n\n jDesktopPane1.setBackground(new java.awt.Color(255, 200, 217));\n jDesktopPane1.setForeground(new java.awt.Color(255, 0, 102));\n jDesktopPane1.setPreferredSize(new java.awt.Dimension(1068, 959));\n\n javax.swing.GroupLayout jDesktopPane1Layout = new javax.swing.GroupLayout(jDesktopPane1);\n jDesktopPane1.setLayout(jDesktopPane1Layout);\n jDesktopPane1Layout.setHorizontalGroup(\n jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 1068, Short.MAX_VALUE)\n );\n jDesktopPane1Layout.setVerticalGroup(\n jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 727, Short.MAX_VALUE)\n );\n\n getContentPane().add(jDesktopPane1, java.awt.BorderLayout.CENTER);\n\n jMenuBar1.setBackground(new java.awt.Color(51, 0, 51));\n jMenuBar1.setBorder(javax.swing.BorderFactory.createCompoundBorder(new javax.swing.border.MatteBorder(null), null));\n\n jMenu1.setBackground(new java.awt.Color(204, 255, 255));\n jMenu1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.LOWERED, null, new java.awt.Color(0, 0, 0), null, null));\n jMenu1.setForeground(new java.awt.Color(0, 51, 51));\n jMenu1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icon/archivom.png\"))); // NOI18N\n jMenu1.setText(\"Registrar \");\n jMenu1.setFont(new java.awt.Font(\"Sitka Small\", 1, 16)); // NOI18N\n\n jMenuItem2.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem2.setBackground(new java.awt.Color(204, 255, 255));\n jMenuItem2.setFont(new java.awt.Font(\"Sitka Small\", 1, 15)); // NOI18N\n jMenuItem2.setForeground(new java.awt.Color(0, 51, 51));\n jMenuItem2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icon/anadir (1).png\"))); // NOI18N\n jMenuItem2.setText(\"Registrar Solicitud de Inversion\");\n jMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem2);\n\n jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem1.setBackground(new java.awt.Color(204, 255, 255));\n jMenuItem1.setFont(new java.awt.Font(\"Sitka Small\", 1, 15)); // NOI18N\n jMenuItem1.setForeground(new java.awt.Color(0, 51, 51));\n jMenuItem1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icon/anadir (2).png\"))); // NOI18N\n jMenuItem1.setText(\"Registrar Solicitud de Credito\");\n jMenuItem1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem1ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem1);\n\n jMenuItem3.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem3.setBackground(new java.awt.Color(204, 255, 255));\n jMenuItem3.setFont(new java.awt.Font(\"Sitka Small\", 1, 15)); // NOI18N\n jMenuItem3.setForeground(new java.awt.Color(0, 51, 51));\n jMenuItem3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icon/anadir (3).png\"))); // NOI18N\n jMenuItem3.setText(\"Registrar Nuevo Cliente\");\n jMenuItem3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem3ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem3);\n\n jMenuItem11.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem11.setBackground(new java.awt.Color(204, 255, 255));\n jMenuItem11.setFont(new java.awt.Font(\"Sitka Small\", 1, 15)); // NOI18N\n jMenuItem11.setForeground(new java.awt.Color(0, 51, 51));\n jMenuItem11.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icon/visualizarms.png\"))); // NOI18N\n jMenuItem11.setText(\"Ver - Actualizar datos\");\n jMenuItem11.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem11ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem11);\n\n jMenuBar1.add(jMenu1);\n\n jMenu2.setBackground(new java.awt.Color(204, 255, 255));\n jMenu2.setBorder(javax.swing.BorderFactory.createCompoundBorder(null, javax.swing.BorderFactory.createEtchedBorder(new java.awt.Color(255, 51, 51), new java.awt.Color(102, 0, 51))));\n jMenu2.setForeground(new java.awt.Color(0, 51, 51));\n jMenu2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icon/revision.png\"))); // NOI18N\n jMenu2.setText(\"Administracion de Solicitudes \");\n jMenu2.setActionCommand(\"Administracion de Solicitudes \");\n jMenu2.setFont(new java.awt.Font(\"Sitka Small\", 1, 16)); // NOI18N\n\n jMenuItem4.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem4.setBackground(new java.awt.Color(204, 255, 255));\n jMenuItem4.setFont(new java.awt.Font(\"Sitka Small\", 1, 15)); // NOI18N\n jMenuItem4.setForeground(new java.awt.Color(0, 51, 51));\n jMenuItem4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icon/registro (2).png\"))); // NOI18N\n jMenuItem4.setText(\"Administrar Solicitudes de Credito\");\n jMenuItem4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem4ActionPerformed(evt);\n }\n });\n jMenu2.add(jMenuItem4);\n\n jMenuItem5.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_I, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem5.setBackground(new java.awt.Color(204, 255, 255));\n jMenuItem5.setFont(new java.awt.Font(\"Sitka Small\", 1, 15)); // NOI18N\n jMenuItem5.setForeground(new java.awt.Color(0, 51, 51));\n jMenuItem5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icon/registro (1).png\"))); // NOI18N\n jMenuItem5.setText(\"Administrar Solicitudes de Inversion\");\n jMenuItem5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem5ActionPerformed(evt);\n }\n });\n jMenu2.add(jMenuItem5);\n\n jMenuItem8.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem8.setBackground(new java.awt.Color(204, 255, 255));\n jMenuItem8.setFont(new java.awt.Font(\"Sitka Small\", 1, 15)); // NOI18N\n jMenuItem8.setForeground(new java.awt.Color(0, 51, 51));\n jMenuItem8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icon/registro (4).png\"))); // NOI18N\n jMenuItem8.setText(\"Creditos Aprobados\");\n jMenuItem8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem8ActionPerformed(evt);\n }\n });\n jMenu2.add(jMenuItem8);\n\n jMenuItem9.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem9.setBackground(new java.awt.Color(204, 255, 255));\n jMenuItem9.setFont(new java.awt.Font(\"Sitka Small\", 1, 15)); // NOI18N\n jMenuItem9.setForeground(new java.awt.Color(0, 51, 51));\n jMenuItem9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icon/registro (5).png\"))); // NOI18N\n jMenuItem9.setText(\"Inversiones Aprobadas\");\n jMenuItem9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem9ActionPerformed(evt);\n }\n });\n jMenu2.add(jMenuItem9);\n\n consultar_c.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.ALT_MASK));\n consultar_c.setBackground(new java.awt.Color(204, 255, 255));\n consultar_c.setFont(new java.awt.Font(\"Sitka Small\", 1, 15)); // NOI18N\n consultar_c.setForeground(new java.awt.Color(0, 51, 51));\n consultar_c.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icon/buscar (1).png\"))); // NOI18N\n consultar_c.setText(\"consulltar solicitudes\");\n consultar_c.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n consultar_cActionPerformed(evt);\n }\n });\n jMenu2.add(consultar_c);\n\n jMenuBar1.add(jMenu2);\n\n jMenu3.setBackground(new java.awt.Color(204, 255, 255));\n jMenu3.setBorder(new javax.swing.border.MatteBorder(null));\n jMenu3.setForeground(new java.awt.Color(0, 51, 51));\n jMenu3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icon/pagos.png\"))); // NOI18N\n jMenu3.setText(\" Pagos\");\n jMenu3.setActionCommand(\" Pagos\");\n jMenu3.setFocusable(false);\n jMenu3.setFont(new java.awt.Font(\"Sitka Small\", 1, 16)); // NOI18N\n\n jMenuItem6.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem6.setBackground(new java.awt.Color(204, 255, 255));\n jMenuItem6.setFont(new java.awt.Font(\"Sitka Small\", 1, 15)); // NOI18N\n jMenuItem6.setForeground(new java.awt.Color(0, 51, 51));\n jMenuItem6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icon/comprar (1).png\"))); // NOI18N\n jMenuItem6.setText(\"Pagos de Creditos\");\n jMenuItem6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem6ActionPerformed(evt);\n }\n });\n jMenu3.add(jMenuItem6);\n\n jMenuItem7.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem7.setBackground(new java.awt.Color(204, 255, 255));\n jMenuItem7.setFont(new java.awt.Font(\"Sitka Small\", 1, 15)); // NOI18N\n jMenuItem7.setForeground(new java.awt.Color(0, 51, 51));\n jMenuItem7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icon/comprar.png\"))); // NOI18N\n jMenuItem7.setText(\"Pagos a Inversionistas\");\n jMenuItem7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem7ActionPerformed(evt);\n }\n });\n jMenu3.add(jMenuItem7);\n\n jMenuBar1.add(jMenu3);\n\n jmCuentasEm.setBackground(new java.awt.Color(204, 255, 255));\n jmCuentasEm.setBorder(new javax.swing.border.MatteBorder(null));\n jmCuentasEm.setForeground(new java.awt.Color(0, 51, 51));\n jmCuentasEm.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icon/name usr.png\"))); // NOI18N\n jmCuentasEm.setText(\" Cuentas\");\n jmCuentasEm.setActionCommand(\"Cuentas\");\n jmCuentasEm.setFont(new java.awt.Font(\"Sitka Small\", 1, 16)); // NOI18N\n\n jMenuItem10.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem10.setBackground(new java.awt.Color(204, 255, 255));\n jMenuItem10.setFont(new java.awt.Font(\"Sitka Small\", 1, 15)); // NOI18N\n jMenuItem10.setForeground(new java.awt.Color(0, 51, 51));\n jMenuItem10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icon/opcion-multimedia.png\"))); // NOI18N\n jMenuItem10.setText(\"Menu Principal\");\n jMenuItem10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem10ActionPerformed(evt);\n }\n });\n jmCuentasEm.add(jMenuItem10);\n\n jMenuBar1.add(jmCuentasEm);\n\n setJMenuBar(jMenuBar1);\n\n pack();\n }", "private void createMenu(){\n \n menuBar = new JMenuBar();\n \n game = new JMenu(\"Rummy\");\n game.setMnemonic('R');\n \n newGame = new JMenuItem(\"New Game\");\n newGame.setMnemonic('N');\n newGame.addActionListener(menuListener);\n \n \n \n exit = new JMenuItem(\"Exit\");\n exit.setMnemonic('E');\n exit.addActionListener(menuListener); \n \n \n \n }", "public void componentesimplementacionIsmael() {\n\t\t// En el menu bar Ismael\n\t\tmenuIsmael = new JMenu(\"Ismael\");\n\t\tmenuBar.add(menuIsmael);\n\n\t\t// SUBMENU\n\t\tsubMenuRecientes = new JMenu(\"Recientes\");\n\t\titemSubMenuRecientes = new ArrayList<>();\n\t\trutasRecientes = new ArrayList<>();\n\t\ttry {\n\t\t\trutasRecientes = manejadorFichero.obtenerLineasDelFichero();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (!rutasRecientes.isEmpty()) {\n\t\t\tfor (int i = 0; i < rutasRecientes.size(); i++) {\n\t\t\t\tJMenuItem textoSubmenu = new JMenuItem(rutasRecientes.get(i));\n\t\t\t\titemSubMenuRecientes.add(textoSubmenu);\n\t\t\t\tsubMenuRecientes.add(textoSubmenu);\n\t\t\t}\n\t\t}\n\t\tmenuIsmael.add(subMenuRecientes);\n\n\t\tmenuIsmael.addSeparator();\n\n\t\t// Fuente\n\t\titemFuente = new JMenuItem(\"Fuente\");\n\t\titemFuente.setEnabled(false);\n\t\titemFuente.setMnemonic(KeyEvent.VK_F);\n\t\titemFuente.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemFuente);\n\n\t\tmenuIsmael.addSeparator();\n\n\t\titemSeleccionarTodo = new JMenuItem(\"Selec.Todo\");\n\t\titemSeleccionarTodo.setEnabled(false);\n\t\titemSeleccionarTodo.setMnemonic(KeyEvent.VK_N);\n\t\titemSeleccionarTodo.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemSeleccionarTodo);\n\n\t\titemSeleccionarTodoYCopiar = new JMenuItem(\"Selec All+Copy\");\n\t\titemSeleccionarTodoYCopiar.setEnabled(false);\n\t\titemSeleccionarTodoYCopiar.setMnemonic(KeyEvent.VK_M);\n\t\titemSeleccionarTodoYCopiar.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemSeleccionarTodoYCopiar);\n\n\t\tmenuIsmael.addSeparator();\n\n\t\titemHora = new JMenuItem(\"Hora\");\n\t\titemHora.setEnabled(true);\n\t\titemHora.setMnemonic(KeyEvent.VK_H);\n\t\titemHora.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_H, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemHora);\n\n\t}", "private void buildJMenuBar() {\r\n // create Menu Bar\r\n gameBar = new JMenuBar();\r\n\r\n buildGameMenu();\r\n buildSettingsMenu();\r\n\r\n gameBar.add( gameMenu );\r\n gameBar.add( settingsMenu );\r\n }", "private void initOption() {\r\n\t\tthis.option = new JMenu(\"Options\");\r\n\t\tthis.add(option);\r\n\t\tthis.initNewGame();\r\n\t\tthis.initNewServer();\r\n\t\tthis.initNewConnect();\r\n\t\tthis.initExitConnect();\r\n\t\tthis.initExitGame();\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n desktopPane = new javax.swing.JDesktopPane();\n menuBar = new javax.swing.JMenuBar();\n menuSistema = new javax.swing.JMenu();\n mnuSistemaSair = new javax.swing.JMenuItem();\n mnuSistemaConfiguracao = new javax.swing.JMenuItem();\n menuCadastro = new javax.swing.JMenu();\n mnuCadastroCliente = new javax.swing.JMenuItem();\n mnuCadastroAluno = new javax.swing.JMenuItem();\n mnuCadastroProfessor = new javax.swing.JMenuItem();\n mnuCadastroQuadra = new javax.swing.JMenuItem();\n mnuCadastroUsuario = new javax.swing.JMenuItem();\n mnuCadastroHorariosMensalista = new javax.swing.JMenuItem();\n menuRelatorio = new javax.swing.JMenu();\n mnuRelatorioClientes = new javax.swing.JMenuItem();\n mnuRelatorioUsuarios = new javax.swing.JMenuItem();\n mnuRelatorioHorariosQuadras = new javax.swing.JMenuItem();\n menuAjuda = new javax.swing.JMenu();\n mnuAjudaSobre = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"G.A.P\");\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n menuSistema.setMnemonic('S');\n menuSistema.setText(\"Sistema\");\n\n mnuSistemaSair.setMnemonic('X');\n mnuSistemaSair.setText(\"Sair\");\n mnuSistemaSair.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mnuSistemaSairActionPerformed(evt);\n }\n });\n menuSistema.add(mnuSistemaSair);\n\n mnuSistemaConfiguracao.setMnemonic('C');\n mnuSistemaConfiguracao.setText(\"Configurações\");\n mnuSistemaConfiguracao.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mnuSistemaConfiguracaoActionPerformed(evt);\n }\n });\n menuSistema.add(mnuSistemaConfiguracao);\n\n menuBar.add(menuSistema);\n\n menuCadastro.setMnemonic('C');\n menuCadastro.setText(\"Cadastro\");\n\n mnuCadastroCliente.setMnemonic('t');\n mnuCadastroCliente.setText(\"Cliente\");\n mnuCadastroCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mnuCadastroClienteActionPerformed(evt);\n }\n });\n menuCadastro.add(mnuCadastroCliente);\n\n mnuCadastroAluno.setMnemonic('y');\n mnuCadastroAluno.setText(\"Aluno\");\n menuCadastro.add(mnuCadastroAluno);\n\n mnuCadastroProfessor.setText(\"Professor\");\n menuCadastro.add(mnuCadastroProfessor);\n\n mnuCadastroQuadra.setText(\"Quadra\");\n mnuCadastroQuadra.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mnuCadastroQuadraActionPerformed(evt);\n }\n });\n menuCadastro.add(mnuCadastroQuadra);\n\n mnuCadastroUsuario.setText(\"Usuário\");\n mnuCadastroUsuario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mnuCadastroUsuarioActionPerformed(evt);\n }\n });\n menuCadastro.add(mnuCadastroUsuario);\n\n mnuCadastroHorariosMensalista.setMnemonic('H');\n mnuCadastroHorariosMensalista.setText(\"Horários / Mensalista\");\n mnuCadastroHorariosMensalista.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mnuCadastroHorariosMensalistaActionPerformed(evt);\n }\n });\n menuCadastro.add(mnuCadastroHorariosMensalista);\n\n menuBar.add(menuCadastro);\n\n menuRelatorio.setMnemonic('R');\n menuRelatorio.setText(\"Relatório\");\n\n mnuRelatorioClientes.setText(\"Clientes\");\n menuRelatorio.add(mnuRelatorioClientes);\n\n mnuRelatorioUsuarios.setText(\"Usuários\");\n menuRelatorio.add(mnuRelatorioUsuarios);\n\n mnuRelatorioHorariosQuadras.setText(\"Horários x Quadras\");\n menuRelatorio.add(mnuRelatorioHorariosQuadras);\n\n menuBar.add(menuRelatorio);\n\n menuAjuda.setMnemonic('A');\n menuAjuda.setText(\"Ajuda\");\n\n mnuAjudaSobre.setMnemonic('S');\n mnuAjudaSobre.setText(\"Sobre\");\n mnuAjudaSobre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mnuAjudaSobreActionPerformed(evt);\n }\n });\n menuAjuda.add(mnuAjudaSobre);\n\n menuBar.add(menuAjuda);\n\n setJMenuBar(menuBar);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(desktopPane, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(desktopPane, javax.swing.GroupLayout.DEFAULT_SIZE, 279, Short.MAX_VALUE)\n );\n\n pack();\n }", "private void createMenu() {\n\t\tJMenuBar mb = new JMenuBar();\n\t\tsetJMenuBar(mb);\n\t\tmb.setVisible(true);\n\t\t\n\t\tJMenu menu = new JMenu(\"File\");\n\t\tmb.add(menu);\n\t\t//mb.getComponent();\n\t\tmenu.add(new JMenuItem(\"Exit\"));\n\t\t\n\t\t\n\t}", "private void setMenu() {\n\n if (tree.isEmpty() || !treeGrid.anySelected()) {\n mainMenu.setItems(newMenuItem, new MenuItemSeparator(), settingMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem);\n } else if (treeGrid.getSelectedRecord() == null) {\n mainMenu.setItems(renameMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem);\n } else if (treeGrid.getSelectedRecords().length > 1) {\n ListGridRecord[] selectedNode = treeGrid.getSelectedRecords();\n if (isSameExtension(selectedNode, Extension.FP)) {\n mainMenu.setItems(deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem, exportMenuItem);\n } else if (isSameExtension(selectedNode, Extension.FPS)) {\n mainMenu.setItems(newFPItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else if (isSameExtension(selectedNode, Extension.BPS)) {\n mainMenu.setItems(newBPItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else if (isSameExtension(selectedNode, Extension.SCSS)) {\n mainMenu.setItems(newSCSItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else {\n mainMenu.setItems(deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n }\n } else if (tree.isFolder(treeGrid.getSelectedRecord())) {\n mainMenu.setItems(newMenuItem, deleteMenu, renameMenuItem, copyMenuItem, pasteMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem, downloadMenuItem,\n copyPathMenuItem);\n } else {\n FileTreeNode selectedNode = (FileTreeNode) treeGrid.getSelectedRecord();\n VMResource resource = selectedNode.getResource();\n if (resource instanceof VMDirectory) {\n return;\n }\n Extension extension = ((VMFile) resource).getExtension();\n if (extension == null) {\n mainMenu.setItems(openWithMenuItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n } else\n switch (extension) {\n case ARC:\n mainMenu.setItems(newBPSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FM:\n mainMenu.setItems(newFMCItem, newTCItem, newFPSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FMC:\n mainMenu.setItems(deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case TC:\n mainMenu.setItems(newTCItem, newFPSItem, deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem,\n copyPathMenuItem);\n break;\n case FPS:\n mainMenu.setItems(newFPItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FP:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, exportMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case BPS:\n mainMenu.setItems(newBPItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case BP:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case SCSS:\n mainMenu.setItems(newSCSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case SCS:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n default:\n mainMenu.setItems(deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem,\n copyPathMenuItem);\n break;\n }\n }\n }", "private void initialize() {\n\t\tframe = new JFrame(\"考试系统后台管理\");\n\t\tframe.setBounds(100, 100, 1000, 543);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tmenuBar.setBackground(Color.LIGHT_GRAY);\n\t\tmenuBar.setBounds(0, 0, 1114, 43);\n\t\tframe.getContentPane().add(menuBar);\n\n\t\tJMenu mnNewMenu = new JMenu(\"\\u9898\\u5E93\\u7BA1\\u7406\");\n\t\tmnNewMenu.setIcon(new ImageIcon(AdminFrm.class.getResource(\"/images/question.png\")));\n\t\tmnNewMenu.setFont(new Font(\"Microsoft YaHei UI\", Font.PLAIN, 20));\n\t\tmenuBar.add(mnNewMenu);\n\t\t\n\t\t//添加\n\t\tJMenuItem mntmNewMenuItem = new JMenuItem(\"\\u6DFB\\u52A0\\u8BD5\\u9898\");\n\t\tmntmNewMenuItem.setIcon(new ImageIcon(AdminFrm.class.getResource(\"/images/add.png\")));\n\t\tmntmNewMenuItem.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// 跳转到修改删除界面\n\t\t\t\t// 销毁该界面\n\t\t\t\tframe.dispose();\n\t\t\t\tnew AddTitleFrm().getFrame().setVisible(true);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJMenuItem mntmNewMenuItem_2 = new JMenuItem(\"\\u6DFB\\u52A0\\u8BD5\\u5377\");\n\t\tmntmNewMenuItem_2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.dispose();\n\t\t\t\tnew AddpaperFrm().getFrame().setVisible(true);\n\t\t\t}\n\t\t});\n\t\tmntmNewMenuItem_2.setIcon(new ImageIcon(AdminFrm.class.getResource(\"/images/add.png\")));\n\t\tmntmNewMenuItem_2.setFont(new Font(\"Microsoft YaHei UI\", Font.PLAIN, 18));\n\t\tmnNewMenu.add(mntmNewMenuItem_2);\n\t\tmntmNewMenuItem.setFont(new Font(\"Microsoft YaHei UI\", Font.PLAIN, 18));\n\t\tmnNewMenu.add(mntmNewMenuItem);\n\t\t// 修改 删除\n\t\tJMenuItem mntmNewMenuItem_1 = new JMenuItem(\"\\u4FEE\\u6539/\\u5220\\u9664\\u8BD5\\u9898\");\n\t\tmntmNewMenuItem_1.setIcon(new ImageIcon(AdminFrm.class.getResource(\"/images/dl.png\")));\n\t\tmntmNewMenuItem_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// 跳转到修改删除界面\n\t\t\t\t// 销毁该界面\n\t\t\t\tframe.dispose();\n\t\t\t\tnew testPaperFrm().getFrame().setVisible(true);\n\n\t\t\t}\n\t\t});\n\t\tmntmNewMenuItem_1.setFont(new Font(\"Microsoft YaHei UI\", Font.PLAIN, 18));\n\t\tmnNewMenu.add(mntmNewMenuItem_1);\n\n\t\tJLabel lblNewLabel = new JLabel(\"\\u67E5\\u8BE2\\u6761\\u4EF6\\uFF1A\");\n\t\tlblNewLabel.setFont(new Font(\"宋体\", Font.PLAIN, 18));\n\t\tlblNewLabel.setBounds(207, 96, 90, 21);\n\t\tframe.getContentPane().add(lblNewLabel);\n\n\t\t// 下拉框\n\t\tcomboBox = new JComboBox();\n\t\tcomboBox.setFont(new Font(\"宋体\", Font.PLAIN, 18));\n\t\tcomboBox.addItem(\"--请选择--\");\n\t\tcomboBox.addItem(\"考生id\");\n\t\tcomboBox.addItem(\"考生姓名\");\n\n\t\tcomboBox.setBounds(315, 96, 129, 24);\n\t\tframe.getContentPane().add(comboBox);\n\n\t\tJLabel lblNewLabel_1 = new JLabel(\"\\u67E5\\u8BE2\\u503C\\uFF1A\");\n\t\tlblNewLabel_1.setFont(new Font(\"宋体\", Font.PLAIN, 18));\n\t\tlblNewLabel_1.setBounds(474, 99, 90, 21);\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(542, 96, 172, 24);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\n\t\tJButton btnNewButton = new JButton(\"\\u67E5\\u8BE2\");\n\t\tbtnNewButton.setIcon(new ImageIcon(AdminFrm.class.getResource(\"/images/query.png\")));\n\t\t// 查询时间\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tqueryScoreAction();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setFont(new Font(\"宋体\", Font.PLAIN, 18));\n\t\tbtnNewButton.setBounds(728, 93, 113, 27);\n\t\tframe.getContentPane().add(btnNewButton);\n\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(204, 142, 672, 323);\n\t\tframe.getContentPane().add(scrollPane);\n\n\t\ttable = new JTable();\n\t\ttable.setFont(new Font(\"宋体\", Font.PLAIN, 18));\n\t\ttable.setModel(new DefaultTableModel(new Object[][] {\n\n\t\t}, new String[] { \"\\u8003\\u751Fid\", \"\\u8003\\u751F\\u59D3\\u540D\", \"\\u5355\\u9009\\u9898\\u5F97\\u5206\",\n\t\t\t\t\"\\u591A\\u9009\\u9898\\u5F97\\u5206\", \"\\u603B\\u5206\", \"\\u8003\\u8BD5\\u65F6\\u95F4\" }) {\n\t\t\tClass[] columnTypes = new Class[] { Integer.class, Object.class, Object.class, Integer.class, Object.class,\n\t\t\t\t\tObject.class };\n\n\t\t\tpublic Class getColumnClass(int columnIndex) {\n\t\t\t\treturn columnTypes[columnIndex];\n\t\t\t}\n\t\t});\n\t\ttable.getColumnModel().getColumn(2).setPreferredWidth(93);\n\t\ttable.getColumnModel().getColumn(3).setPreferredWidth(92);\n\t\ttable.getColumnModel().getColumn(4).setPreferredWidth(58);\n\t\ttable.getColumnModel().getColumn(5).setPreferredWidth(253);\n\t\tscrollPane.setViewportView(table);\n\n\t\tJButton btnD = new JButton(\"\\u5BFC\\u51FA\\u8868\\u683C\");\n\t\tbtnD.setIcon(new ImageIcon(AdminFrm.class.getResource(\"/images/exporter.png\")));\n\t\t\n\t\t//导出表格\n\t\tbtnD.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t//导出表格方法\n\t\t\t\tjButtonActionPerformed();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnD.setFont(new Font(\"宋体\", Font.PLAIN, 18));\n\t\tbtnD.setBounds(38, 272, 152, 27);\n\t\tframe.getContentPane().add(btnD);\n\n\t\tJButton btnNewButton_2 = new JButton(\"\\u8FD4\\u56DE\\u4E3B\\u754C\\u9762\");\n\t\tbtnNewButton_2.setIcon(new ImageIcon(AdminFrm.class.getResource(\"/images/out.png\")));\n\t\t//返回主页\n\t\tbtnNewButton_2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t//销毁本窗口\n\t\t\t\tframe.dispose();\n\t\t\t\t//显示主窗口\n\t\t\t\tnew Index().getFrame().setVisible(true);\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2.setFont(new Font(\"宋体\", Font.PLAIN, 18));\n\t\tbtnNewButton_2.setBounds(38, 364, 152, 27);\n\t\tframe.getContentPane().add(btnNewButton_2);\n\t\t\n\t\tJButton btnNewButton_1 = new JButton(\"\\u5237\\u65B0\");\n\t\tbtnNewButton_1.setIcon(new ImageIcon(AdminFrm.class.getResource(\"/images/de.png\")));\n\t\t//刷新\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfillScore();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setFont(new Font(\"宋体\", Font.PLAIN, 18));\n\t\tbtnNewButton_1.setBounds(855, 93, 113, 27);\n\t\tframe.getContentPane().add(btnNewButton_1);\n\t\t\n\t\tJButton btnNewButton_3 = new JButton(\"\\u5206\\u6570\\u6392\\u5E8F\");\n\t\tbtnNewButton_3.setFont(new Font(\"宋体\", Font.PLAIN, 20));\n\t\tbtnNewButton_3.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttotalFrm to = new totalFrm(); \n\t\t\t\tto.getFrame().setVisible(true);\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_3.setIcon(new ImageIcon(AdminFrm.class.getResource(\"/images/\\u6392\\u5E8F.png\")));\n\t\tbtnNewButton_3.setBounds(38, 190, 152, 27);\n\t\tframe.getContentPane().add(btnNewButton_3);\n\t\t// 设置窗体居中\n\t\tframe.setLocationRelativeTo(null);\n\t\tfillScore();\n\t}", "public MenuInfo() {\n initComponents();\n setSize(1024,768);\n }", "private void constructMenuItems()\n\t{\n\t\tthis.saveImageMenuItem = ComponentGenerator.generateMenuItem(\"Save Image\", this, KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK));\n\t\tthis.quitMenuItem = ComponentGenerator.generateMenuItem(\"Quit\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Q, ActionEvent.CTRL_MASK));\n\t\tthis.undoMenuItem = ComponentGenerator.generateMenuItem(\"Undo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Z, ActionEvent.CTRL_MASK));\n\t\tthis.redoMenuItem = ComponentGenerator.generateMenuItem(\"Redo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Y, ActionEvent.CTRL_MASK));\n\t\tthis.removeImageMenuItem = ComponentGenerator.generateMenuItem(\"Remove Image from Case\", this);\n\t\tthis.antiAliasMenuItem = ComponentGenerator.generateMenuItem(\"Apply Anti Aliasing\", this);\n\t\tthis.brightenMenuItem = ComponentGenerator.generateMenuItem(\"Brighten by 10%\", this);\n\t\tthis.darkenMenuItem = ComponentGenerator.generateMenuItem(\"Darken by 10%\", this);\n\t\tthis.grayscaleMenuItem = ComponentGenerator.generateMenuItem(\"Convert to Grayscale\", this);\n\t\tthis.resizeMenuItem = ComponentGenerator.generateMenuItem(\"Resize Image\", this);\n\t\tthis.cropMenuItem = ComponentGenerator.generateMenuItem(\"Crop Image\", this);\n\t\tthis.rotate90MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 90\\u00b0 Right\", this);\n\t\tthis.rotate180MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 180\\u00b0 Right\", this);\n\t\tthis.rotate270MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 270\\u00b0 Right\", this);\n\t}" ]
[ "0.79537636", "0.77936375", "0.7784865", "0.776678", "0.74574816", "0.7427663", "0.742642", "0.73393935", "0.7323029", "0.7315243", "0.7315243", "0.7305216", "0.73039883", "0.72454876", "0.72391605", "0.72391605", "0.72391605", "0.720436", "0.7191428", "0.7160889", "0.7140703", "0.71378684", "0.7100949", "0.70960474", "0.7092526", "0.7092526", "0.7092526", "0.7065605", "0.7059871", "0.7046248", "0.70382696", "0.70304734", "0.6985771", "0.69807136", "0.6972541", "0.69648427", "0.69615084", "0.6955728", "0.69516385", "0.6945009", "0.6936202", "0.6918513", "0.6910598", "0.69071794", "0.6887625", "0.68748903", "0.68687934", "0.685843", "0.68329626", "0.6822798", "0.68183154", "0.68164253", "0.6808098", "0.68040943", "0.68010116", "0.6792746", "0.67910075", "0.6770669", "0.6764505", "0.67636794", "0.67568874", "0.6744311", "0.6728927", "0.67275274", "0.672651", "0.67148644", "0.67119855", "0.6708974", "0.6707936", "0.67072606", "0.6703552", "0.6678419", "0.6670734", "0.66600955", "0.66517967", "0.6649392", "0.66437364", "0.6642311", "0.663566", "0.6631739", "0.6626531", "0.66237044", "0.6616396", "0.6613791", "0.66115206", "0.66071", "0.65996796", "0.659563", "0.6593716", "0.65867805", "0.65831965", "0.6582923", "0.6578359", "0.657654", "0.657206", "0.65617317", "0.6546717", "0.6539724", "0.65285975", "0.6527955" ]
0.6951659
38